@shaykec/bridge 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/canvas-dist/assets/_basePickBy-DP8E_5FD.js +1 -0
- package/canvas-dist/assets/_baseUniq-Dmgqrx1w.js +1 -0
- package/canvas-dist/assets/arc-DD0lRB0-.js +1 -0
- package/canvas-dist/assets/architectureDiagram-VXUJARFQ-DOq-Y3RV.js +36 -0
- package/canvas-dist/assets/blockDiagram-VD42YOAC-TcpTe9UV.js +122 -0
- package/canvas-dist/assets/c4Diagram-YG6GDRKO-BnOHaShT.js +10 -0
- package/canvas-dist/assets/channel-Bub7vOyc.js +1 -0
- package/canvas-dist/assets/chunk-4BX2VUAB-1G8HPKwB.js +1 -0
- package/canvas-dist/assets/chunk-55IACEB6-DVyUd-ZY.js +1 -0
- package/canvas-dist/assets/chunk-B4BG7PRW-9j8XahNQ.js +165 -0
- package/canvas-dist/assets/chunk-DI55MBZ5-Dps5VfNg.js +220 -0
- package/canvas-dist/assets/chunk-FMBD7UC4-15C4ghAa.js +15 -0
- package/canvas-dist/assets/chunk-QN33PNHL-DSRXKDTe.js +1 -0
- package/canvas-dist/assets/chunk-QZHKN3VN-DSiH5mQ3.js +1 -0
- package/canvas-dist/assets/chunk-TZMSLE5B-B_tSeHmN.js +1 -0
- package/canvas-dist/assets/classDiagram-2ON5EDUG-D_eYi68R.js +1 -0
- package/canvas-dist/assets/classDiagram-v2-WZHVMYZB-D_eYi68R.js +1 -0
- package/canvas-dist/assets/clone-3plxJ6lT.js +1 -0
- package/canvas-dist/assets/cose-bilkent-S5V4N54A-DlQMwqZd.js +1 -0
- package/canvas-dist/assets/cytoscape.esm-BQaXIfA_.js +331 -0
- package/canvas-dist/assets/dagre-6UL2VRFP-Cg3bcXLB.js +4 -0
- package/canvas-dist/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/canvas-dist/assets/diagram-PSM6KHXK-DE96Mux2.js +24 -0
- package/canvas-dist/assets/diagram-QEK2KX5R-CD0NQ76t.js +43 -0
- package/canvas-dist/assets/diagram-S2PKOQOG-Dy8e1fcf.js +24 -0
- package/canvas-dist/assets/erDiagram-Q2GNP2WA-DYwUWlCT.js +60 -0
- package/canvas-dist/assets/flowDiagram-NV44I4VS-sQ3kW-fI.js +162 -0
- package/canvas-dist/assets/ganttDiagram-JELNMOA3-CIuv7p9q.js +267 -0
- package/canvas-dist/assets/gitGraphDiagram-V2S2FVAM-DFEvKer1.js +65 -0
- package/canvas-dist/assets/graph-CA8_Vyci.js +1 -0
- package/canvas-dist/assets/index-B3pZcTqz.js +11 -0
- package/canvas-dist/assets/index-HoDH2nb_.js +351 -0
- package/canvas-dist/assets/infoDiagram-HS3SLOUP-C0TxWZ2S.js +2 -0
- package/canvas-dist/assets/init-Gi6I4Gst.js +1 -0
- package/canvas-dist/assets/journeyDiagram-XKPGCS4Q-96urCN97.js +139 -0
- package/canvas-dist/assets/kanban-definition-3W4ZIXB7-CSa3oBXn.js +89 -0
- package/canvas-dist/assets/katex-BlHpptmG.js +261 -0
- package/canvas-dist/assets/layout-DEZXjsNN.js +1 -0
- package/canvas-dist/assets/linear-DVxUTDHa.js +1 -0
- package/canvas-dist/assets/mindmap-definition-VGOIOE7T-CkBjm9Lt.js +68 -0
- package/canvas-dist/assets/ordinal-Cboi1Yqb.js +1 -0
- package/canvas-dist/assets/pieDiagram-ADFJNKIX-Cgsew47Y.js +30 -0
- package/canvas-dist/assets/quadrantDiagram-AYHSOK5B-BE2Bdgtn.js +7 -0
- package/canvas-dist/assets/requirementDiagram-UZGBJVZJ-BTaZACZy.js +64 -0
- package/canvas-dist/assets/sankeyDiagram-TZEHDZUN-CjDSXCPY.js +10 -0
- package/canvas-dist/assets/sequenceDiagram-WL72ISMW-C3iJAHn9.js +145 -0
- package/canvas-dist/assets/stateDiagram-FKZM4ZOC-BcsiwuIg.js +1 -0
- package/canvas-dist/assets/stateDiagram-v2-4FDKWEC3-C_To8yt7.js +1 -0
- package/canvas-dist/assets/timeline-definition-IT6M3QCI-DE_h5BkE.js +61 -0
- package/canvas-dist/assets/treemap-GDKQZRPO-DutCtD2j.js +162 -0
- package/canvas-dist/assets/xychartDiagram-PRI3JC2R-DzTsHhGI.js +7 -0
- package/canvas-dist/index.html +26 -0
- package/package.json +1 -1
- package/src/server.js +6 -2
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-6UL2VRFP-Cg3bcXLB.js","assets/graph-CA8_Vyci.js","assets/_baseUniq-Dmgqrx1w.js","assets/layout-DEZXjsNN.js","assets/_basePickBy-DP8E_5FD.js","assets/clone-3plxJ6lT.js","assets/cose-bilkent-S5V4N54A-DlQMwqZd.js","assets/cytoscape.esm-BQaXIfA_.js","assets/c4Diagram-YG6GDRKO-BnOHaShT.js","assets/chunk-TZMSLE5B-B_tSeHmN.js","assets/flowDiagram-NV44I4VS-sQ3kW-fI.js","assets/chunk-FMBD7UC4-15C4ghAa.js","assets/chunk-55IACEB6-DVyUd-ZY.js","assets/chunk-QN33PNHL-DSRXKDTe.js","assets/channel-Bub7vOyc.js","assets/erDiagram-Q2GNP2WA-DYwUWlCT.js","assets/gitGraphDiagram-V2S2FVAM-DFEvKer1.js","assets/chunk-4BX2VUAB-1G8HPKwB.js","assets/chunk-QZHKN3VN-DSiH5mQ3.js","assets/treemap-GDKQZRPO-DutCtD2j.js","assets/ganttDiagram-JELNMOA3-CIuv7p9q.js","assets/linear-DVxUTDHa.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-DX6XiGOO.js","assets/infoDiagram-HS3SLOUP-C0TxWZ2S.js","assets/pieDiagram-ADFJNKIX-Cgsew47Y.js","assets/arc-DD0lRB0-.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-AYHSOK5B-BE2Bdgtn.js","assets/xychartDiagram-PRI3JC2R-DzTsHhGI.js","assets/requirementDiagram-UZGBJVZJ-BTaZACZy.js","assets/sequenceDiagram-WL72ISMW-C3iJAHn9.js","assets/classDiagram-2ON5EDUG-D_eYi68R.js","assets/chunk-B4BG7PRW-9j8XahNQ.js","assets/classDiagram-v2-WZHVMYZB-D_eYi68R.js","assets/stateDiagram-FKZM4ZOC-BcsiwuIg.js","assets/chunk-DI55MBZ5-Dps5VfNg.js","assets/stateDiagram-v2-4FDKWEC3-C_To8yt7.js","assets/journeyDiagram-XKPGCS4Q-96urCN97.js","assets/timeline-definition-IT6M3QCI-DE_h5BkE.js","assets/mindmap-definition-VGOIOE7T-CkBjm9Lt.js","assets/kanban-definition-3W4ZIXB7-CSa3oBXn.js","assets/sankeyDiagram-TZEHDZUN-CjDSXCPY.js","assets/diagram-S2PKOQOG-Dy8e1fcf.js","assets/diagram-QEK2KX5R-CD0NQ76t.js","assets/blockDiagram-VD42YOAC-TcpTe9UV.js","assets/architectureDiagram-VXUJARFQ-DOq-Y3RV.js","assets/diagram-PSM6KHXK-DE96Mux2.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var $_=Object.defineProperty;var F_=(e,t,r)=>t in e?$_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var te=(e,t,r)=>F_(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function r(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=r(s);fetch(s.href,o)}})();function lp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iO(e){if(Object.prototype.hasOwnProperty.call(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 s=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,s.get?s:{enumerable:!0,get:function(){return e[i]}})}),r}var Pf={exports:{}},lo={},Of={exports:{}},Ht={};/**
|
|
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 D0;function R_(){if(D0)return Ht;D0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),g=Symbol.iterator;function m($){return $===null||typeof $!="object"?null:($=g&&$[g]||$["@@iterator"],typeof $=="function"?$:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,C={};function k($,X,lt){this.props=$,this.context=X,this.refs=C,this.updater=lt||y}k.prototype.isReactComponent={},k.prototype.setState=function($,X){if(typeof $!="object"&&typeof $!="function"&&$!=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,$,X,"setState")},k.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function S(){}S.prototype=k.prototype;function _($,X,lt){this.props=$,this.context=X,this.refs=C,this.updater=lt||y}var E=_.prototype=new S;E.constructor=_,b(E,k.prototype),E.isPureReactComponent=!0;var M=Array.isArray,B=Object.prototype.hasOwnProperty,L={current:null},F={key:!0,ref:!0,__self:!0,__source:!0};function V($,X,lt){var gt,dt={},ut=null,kt=null;if(X!=null)for(gt in X.ref!==void 0&&(kt=X.ref),X.key!==void 0&&(ut=""+X.key),X)B.call(X,gt)&&!F.hasOwnProperty(gt)&&(dt[gt]=X[gt]);var Lt=arguments.length-2;if(Lt===1)dt.children=lt;else if(1<Lt){for(var Pt=Array(Lt),jt=0;jt<Lt;jt++)Pt[jt]=arguments[jt+2];dt.children=Pt}if($&&$.defaultProps)for(gt in Lt=$.defaultProps,Lt)dt[gt]===void 0&&(dt[gt]=Lt[gt]);return{$$typeof:e,type:$,key:ut,ref:kt,props:dt,_owner:L.current}}function et($,X){return{$$typeof:e,type:$.type,key:X,ref:$.ref,props:$.props,_owner:$._owner}}function tt($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function G($){var X={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(lt){return X[lt]})}var ot=/\/+/g;function Z($,X){return typeof $=="object"&&$!==null&&$.key!=null?G(""+$.key):X.toString(36)}function q($,X,lt,gt,dt){var ut=typeof $;(ut==="undefined"||ut==="boolean")&&($=null);var kt=!1;if($===null)kt=!0;else switch(ut){case"string":case"number":kt=!0;break;case"object":switch($.$$typeof){case e:case t:kt=!0}}if(kt)return kt=$,dt=dt(kt),$=gt===""?"."+Z(kt,0):gt,M(dt)?(lt="",$!=null&&(lt=$.replace(ot,"$&/")+"/"),q(dt,X,lt,"",function(jt){return jt})):dt!=null&&(tt(dt)&&(dt=et(dt,lt+(!dt.key||kt&&kt.key===dt.key?"":(""+dt.key).replace(ot,"$&/")+"/")+$)),X.push(dt)),1;if(kt=0,gt=gt===""?".":gt+":",M($))for(var Lt=0;Lt<$.length;Lt++){ut=$[Lt];var Pt=gt+Z(ut,Lt);kt+=q(ut,X,lt,Pt,dt)}else if(Pt=m($),typeof Pt=="function")for($=Pt.call($),Lt=0;!(ut=$.next()).done;)ut=ut.value,Pt=gt+Z(ut,Lt++),kt+=q(ut,X,lt,Pt,dt);else if(ut==="object")throw X=String($),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.");return kt}function W($,X,lt){if($==null)return $;var gt=[],dt=0;return q($,gt,"","",function(ut){return X.call(lt,ut,dt++)}),gt}function z($){if($._status===-1){var X=$._result;X=X(),X.then(function(lt){($._status===0||$._status===-1)&&($._status=1,$._result=lt)},function(lt){($._status===0||$._status===-1)&&($._status=2,$._result=lt)}),$._status===-1&&($._status=0,$._result=X)}if($._status===1)return $._result.default;throw $._result}var U={current:null},R={transition:null},K={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:R,ReactCurrentOwner:L};function Q(){throw Error("act(...) is not supported in production builds of React.")}return Ht.Children={map:W,forEach:function($,X,lt){W($,function(){X.apply(this,arguments)},lt)},count:function($){var X=0;return W($,function(){X++}),X},toArray:function($){return W($,function(X){return X})||[]},only:function($){if(!tt($))throw Error("React.Children.only expected to receive a single React element child.");return $}},Ht.Component=k,Ht.Fragment=r,Ht.Profiler=s,Ht.PureComponent=_,Ht.StrictMode=i,Ht.Suspense=h,Ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,Ht.act=Q,Ht.cloneElement=function($,X,lt){if($==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+$+".");var gt=b({},$.props),dt=$.key,ut=$.ref,kt=$._owner;if(X!=null){if(X.ref!==void 0&&(ut=X.ref,kt=L.current),X.key!==void 0&&(dt=""+X.key),$.type&&$.type.defaultProps)var Lt=$.type.defaultProps;for(Pt in X)B.call(X,Pt)&&!F.hasOwnProperty(Pt)&&(gt[Pt]=X[Pt]===void 0&&Lt!==void 0?Lt[Pt]:X[Pt])}var Pt=arguments.length-2;if(Pt===1)gt.children=lt;else if(1<Pt){Lt=Array(Pt);for(var jt=0;jt<Pt;jt++)Lt[jt]=arguments[jt+2];gt.children=Lt}return{$$typeof:e,type:$.type,key:dt,ref:ut,props:gt,_owner:kt}},Ht.createContext=function($){return $={$$typeof:c,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},$.Provider={$$typeof:o,_context:$},$.Consumer=$},Ht.createElement=V,Ht.createFactory=function($){var X=V.bind(null,$);return X.type=$,X},Ht.createRef=function(){return{current:null}},Ht.forwardRef=function($){return{$$typeof:l,render:$}},Ht.isValidElement=tt,Ht.lazy=function($){return{$$typeof:d,_payload:{_status:-1,_result:$},_init:z}},Ht.memo=function($,X){return{$$typeof:f,type:$,compare:X===void 0?null:X}},Ht.startTransition=function($){var X=R.transition;R.transition={};try{$()}finally{R.transition=X}},Ht.unstable_act=Q,Ht.useCallback=function($,X){return U.current.useCallback($,X)},Ht.useContext=function($){return U.current.useContext($)},Ht.useDebugValue=function(){},Ht.useDeferredValue=function($){return U.current.useDeferredValue($)},Ht.useEffect=function($,X){return U.current.useEffect($,X)},Ht.useId=function(){return U.current.useId()},Ht.useImperativeHandle=function($,X,lt){return U.current.useImperativeHandle($,X,lt)},Ht.useInsertionEffect=function($,X){return U.current.useInsertionEffect($,X)},Ht.useLayoutEffect=function($,X){return U.current.useLayoutEffect($,X)},Ht.useMemo=function($,X){return U.current.useMemo($,X)},Ht.useReducer=function($,X,lt){return U.current.useReducer($,X,lt)},Ht.useRef=function($){return U.current.useRef($)},Ht.useState=function($){return U.current.useState($)},Ht.useSyncExternalStore=function($,X,lt){return U.current.useSyncExternalStore($,X,lt)},Ht.useTransition=function(){return U.current.useTransition()},Ht.version="18.3.1",Ht}var P0;function cp(){return P0||(P0=1,Of.exports=R_()),Of.exports}/**
|
|
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 O0;function D_(){if(O0)return lo;O0=1;var e=cp(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function c(l,h,f){var d,g={},m=null,y=null;f!==void 0&&(m=""+f),h.key!==void 0&&(m=""+h.key),h.ref!==void 0&&(y=h.ref);for(d in h)i.call(h,d)&&!o.hasOwnProperty(d)&&(g[d]=h[d]);if(l&&l.defaultProps)for(d in h=l.defaultProps,h)g[d]===void 0&&(g[d]=h[d]);return{$$typeof:t,type:l,key:m,ref:y,props:g,_owner:s.current}}return lo.Fragment=r,lo.jsx=c,lo.jsxs=c,lo}var I0;function P_(){return I0||(I0=1,Pf.exports=D_()),Pf.exports}var O=P_(),ht=cp();const O_=lp(ht);var gc={},If={exports:{}},lr={},Nf={exports:{}},zf={};/**
|
|
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
|
+
*/var N0;function I_(){return N0||(N0=1,(function(e){function t(R,K){var Q=R.length;R.push(K);t:for(;0<Q;){var $=Q-1>>>1,X=R[$];if(0<s(X,K))R[$]=K,R[Q]=X,Q=$;else break t}}function r(R){return R.length===0?null:R[0]}function i(R){if(R.length===0)return null;var K=R[0],Q=R.pop();if(Q!==K){R[0]=Q;t:for(var $=0,X=R.length,lt=X>>>1;$<lt;){var gt=2*($+1)-1,dt=R[gt],ut=gt+1,kt=R[ut];if(0>s(dt,Q))ut<X&&0>s(kt,dt)?(R[$]=kt,R[ut]=Q,$=ut):(R[$]=dt,R[gt]=Q,$=gt);else if(ut<X&&0>s(kt,Q))R[$]=kt,R[ut]=Q,$=ut;else break t}}return K}function s(R,K){var Q=R.sortIndex-K.sortIndex;return Q!==0?Q:R.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var c=Date,l=c.now();e.unstable_now=function(){return c.now()-l}}var h=[],f=[],d=1,g=null,m=3,y=!1,b=!1,C=!1,k=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(R){for(var K=r(f);K!==null;){if(K.callback===null)i(f);else if(K.startTime<=R)i(f),K.sortIndex=K.expirationTime,t(h,K);else break;K=r(f)}}function M(R){if(C=!1,E(R),!b)if(r(h)!==null)b=!0,z(B);else{var K=r(f);K!==null&&U(M,K.startTime-R)}}function B(R,K){b=!1,C&&(C=!1,S(V),V=-1),y=!0;var Q=m;try{for(E(K),g=r(h);g!==null&&(!(g.expirationTime>K)||R&&!G());){var $=g.callback;if(typeof $=="function"){g.callback=null,m=g.priorityLevel;var X=$(g.expirationTime<=K);K=e.unstable_now(),typeof X=="function"?g.callback=X:g===r(h)&&i(h),E(K)}else i(h);g=r(h)}if(g!==null)var lt=!0;else{var gt=r(f);gt!==null&&U(M,gt.startTime-K),lt=!1}return lt}finally{g=null,m=Q,y=!1}}var L=!1,F=null,V=-1,et=5,tt=-1;function G(){return!(e.unstable_now()-tt<et)}function ot(){if(F!==null){var R=e.unstable_now();tt=R;var K=!0;try{K=F(!0,R)}finally{K?Z():(L=!1,F=null)}}else L=!1}var Z;if(typeof _=="function")Z=function(){_(ot)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,W=q.port2;q.port1.onmessage=ot,Z=function(){W.postMessage(null)}}else Z=function(){k(ot,0)};function z(R){F=R,L||(L=!0,Z())}function U(R,K){V=k(function(){R(e.unstable_now())},K)}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(R){R.callback=null},e.unstable_continueExecution=function(){b||y||(b=!0,z(B))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):et=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return r(h)},e.unstable_next=function(R){switch(m){case 1:case 2:case 3:var K=3;break;default:K=m}var Q=m;m=K;try{return R()}finally{m=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,K){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var Q=m;m=R;try{return K()}finally{m=Q}},e.unstable_scheduleCallback=function(R,K,Q){var $=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?$+Q:$):Q=$,R){case 1:var X=-1;break;case 2:X=250;break;case 5:X=1073741823;break;case 4:X=1e4;break;default:X=5e3}return X=Q+X,R={id:d++,callback:K,priorityLevel:R,startTime:Q,expirationTime:X,sortIndex:-1},Q>$?(R.sortIndex=Q,t(f,R),r(h)===null&&R===r(f)&&(C?(S(V),V=-1):C=!0,U(M,Q-$))):(R.sortIndex=X,t(h,R),b||y||(b=!0,z(B))),R},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(R){var K=m;return function(){var Q=m;m=K;try{return R.apply(this,arguments)}finally{m=Q}}}})(zf)),zf}var z0;function N_(){return z0||(z0=1,Nf.exports=I_()),Nf.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 j0;function z_(){if(j0)return lr;j0=1;var e=cp(),t=N_();function r(n){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+n,u=1;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function o(n,a){c(n,a),c(n+"Capture",a)}function c(n,a){for(s[n]=a,n=0;n<a.length;n++)i.add(a[n])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,f=/^[: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]*$/,d={},g={};function m(n){return h.call(g,n)?!0:h.call(d,n)?!1:f.test(n)?g[n]=!0:(d[n]=!0,!1)}function y(n,a,u,p){if(u!==null&&u.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return p?!1:u!==null?!u.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function b(n,a,u,p){if(a===null||typeof a>"u"||y(n,a,u,p))return!0;if(p)return!1;if(u!==null)switch(u.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function C(n,a,u,p,x,v,T){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=p,this.attributeNamespace=x,this.mustUseProperty=u,this.propertyName=n,this.type=a,this.sanitizeURL=v,this.removeEmptyString=T}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){k[n]=new C(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var a=n[0];k[a]=new C(a,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){k[n]=new C(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){k[n]=new C(n,2,!1,n,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(n){k[n]=new C(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){k[n]=new C(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){k[n]=new C(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){k[n]=new C(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){k[n]=new C(n,5,!1,n.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function _(n){return n[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(n){var a=n.replace(S,_);k[a]=new C(a,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var a=n.replace(S,_);k[a]=new C(a,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var a=n.replace(S,_);k[a]=new C(a,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){k[n]=new C(n,1,!1,n.toLowerCase(),null,!1,!1)}),k.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){k[n]=new C(n,1,!1,n.toLowerCase(),null,!0,!0)});function E(n,a,u,p){var x=k.hasOwnProperty(a)?k[a]:null;(x!==null?x.type!==0:p||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(b(a,u,x,p)&&(u=null),p||x===null?m(a)&&(u===null?n.removeAttribute(a):n.setAttribute(a,""+u)):x.mustUseProperty?n[x.propertyName]=u===null?x.type===3?!1:"":u:(a=x.attributeName,p=x.attributeNamespace,u===null?n.removeAttribute(a):(x=x.type,u=x===3||x===4&&u===!0?"":""+u,p?n.setAttributeNS(p,a,u):n.setAttribute(a,u))))}var M=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,B=Symbol.for("react.element"),L=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),et=Symbol.for("react.profiler"),tt=Symbol.for("react.provider"),G=Symbol.for("react.context"),ot=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),U=Symbol.for("react.offscreen"),R=Symbol.iterator;function K(n){return n===null||typeof n!="object"?null:(n=R&&n[R]||n["@@iterator"],typeof n=="function"?n:null)}var Q=Object.assign,$;function X(n){if($===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);$=a&&a[1]||""}return`
|
|
35
|
+
`+$+n}var lt=!1;function gt(n,a){if(!n||lt)return"";lt=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(Y){var p=Y}Reflect.construct(n,[],a)}else{try{a.call()}catch(Y){p=Y}n.call(a.prototype)}else{try{throw Error()}catch(Y){p=Y}n()}}catch(Y){if(Y&&p&&typeof Y.stack=="string"){for(var x=Y.stack.split(`
|
|
36
|
+
`),v=p.stack.split(`
|
|
37
|
+
`),T=x.length-1,A=v.length-1;1<=T&&0<=A&&x[T]!==v[A];)A--;for(;1<=T&&0<=A;T--,A--)if(x[T]!==v[A]){if(T!==1||A!==1)do if(T--,A--,0>A||x[T]!==v[A]){var D=`
|
|
38
|
+
`+x[T].replace(" at new "," at ");return n.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",n.displayName)),D}while(1<=T&&0<=A);break}}}finally{lt=!1,Error.prepareStackTrace=u}return(n=n?n.displayName||n.name:"")?X(n):""}function dt(n){switch(n.tag){case 5:return X(n.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return n=gt(n.type,!1),n;case 11:return n=gt(n.type.render,!1),n;case 1:return n=gt(n.type,!0),n;default:return""}}function ut(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case F:return"Fragment";case L:return"Portal";case et:return"Profiler";case V:return"StrictMode";case Z:return"Suspense";case q:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case G:return(n.displayName||"Context")+".Consumer";case tt:return(n._context.displayName||"Context")+".Provider";case ot:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case W:return a=n.displayName||null,a!==null?a:ut(n.type)||"Memo";case z:a=n._payload,n=n._init;try{return ut(n(a))}catch{}}return null}function kt(n){var a=n.type;switch(n.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=a.render,n=n.displayName||n.name||"",a.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ut(a);case 8:return a===V?"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 a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function Lt(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Pt(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function jt(n){var a=Pt(n)?"checked":"value",u=Object.getOwnPropertyDescriptor(n.constructor.prototype,a),p=""+n[a];if(!n.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var x=u.get,v=u.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return x.call(this)},set:function(T){p=""+T,v.call(this,T)}}),Object.defineProperty(n,a,{enumerable:u.enumerable}),{getValue:function(){return p},setValue:function(T){p=""+T},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function ne(n){n._valueTracker||(n._valueTracker=jt(n))}function er(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var u=a.getValue(),p="";return n&&(p=Pt(n)?n.checked?"true":"false":n.value),n=p,n!==u?(a.setValue(n),!0):!1}function Be(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function kr(n,a){var u=a.checked;return Q({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??n._wrapperState.initialChecked})}function en(n,a){var u=a.defaultValue==null?"":a.defaultValue,p=a.checked!=null?a.checked:a.defaultChecked;u=Lt(a.value!=null?a.value:u),n._wrapperState={initialChecked:p,initialValue:u,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function ya(n,a){a=a.checked,a!=null&&E(n,"checked",a,!1)}function Mi(n,a){ya(n,a);var u=Lt(a.value),p=a.type;if(u!=null)p==="number"?(u===0&&n.value===""||n.value!=u)&&(n.value=""+u):n.value!==""+u&&(n.value=""+u);else if(p==="submit"||p==="reset"){n.removeAttribute("value");return}a.hasOwnProperty("value")?qn(n,a.type,u):a.hasOwnProperty("defaultValue")&&qn(n,a.type,Lt(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(n.defaultChecked=!!a.defaultChecked)}function wn(n,a,u){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var p=a.type;if(!(p!=="submit"&&p!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+n._wrapperState.initialValue,u||a===n.value||(n.value=a),n.defaultValue=a}u=n.name,u!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,u!==""&&(n.name=u)}function qn(n,a,u){(a!=="number"||Be(n.ownerDocument)!==n)&&(u==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+u&&(n.defaultValue=""+u))}var rn=Array.isArray;function Cn(n,a,u,p){if(n=n.options,a){a={};for(var x=0;x<u.length;x++)a["$"+u[x]]=!0;for(u=0;u<n.length;u++)x=a.hasOwnProperty("$"+n[u].value),n[u].selected!==x&&(n[u].selected=x),x&&p&&(n[u].defaultSelected=!0)}else{for(u=""+Lt(u),a=null,x=0;x<n.length;x++){if(n[x].value===u){n[x].selected=!0,p&&(n[x].defaultSelected=!0);return}a!==null||n[x].disabled||(a=n[x])}a!==null&&(a.selected=!0)}}function xa(n,a){if(a.dangerouslySetInnerHTML!=null)throw Error(r(91));return Q({},a,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function al(n,a){var u=a.value;if(u==null){if(u=a.children,a=a.defaultValue,u!=null){if(a!=null)throw Error(r(92));if(rn(u)){if(1<u.length)throw Error(r(93));u=u[0]}a=u}a==null&&(a=""),u=a}n._wrapperState={initialValue:Lt(u)}}function va(n,a){var u=Lt(a.value),p=Lt(a.defaultValue);u!=null&&(u=""+u,u!==n.value&&(n.value=u),a.defaultValue==null&&n.defaultValue!==u&&(n.defaultValue=u)),p!=null&&(n.defaultValue=""+p)}function Un(n){var a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function kn(n){switch(n){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 rr(n,a){return n==null||n==="http://www.w3.org/1999/xhtml"?kn(a):n==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var Yn,ws=(function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,u,p,x){MSApp.execUnsafeLocalFunction(function(){return n(a,u,p,x)})}:n})(function(n,a){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=a;else{for(Yn=Yn||document.createElement("div"),Yn.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=Yn.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;a.firstChild;)n.appendChild(a.firstChild)}});function Vn(n,a){if(a){var u=n.firstChild;if(u&&u===n.lastChild&&u.nodeType===3){u.nodeValue=a;return}}n.textContent=a}var _n={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},sl=["Webkit","ms","Moz","O"];Object.keys(_n).forEach(function(n){sl.forEach(function(a){a=a+n.charAt(0).toUpperCase()+n.substring(1),_n[a]=_n[n]})});function Ai(n,a,u){return a==null||typeof a=="boolean"||a===""?"":u||typeof a!="number"||a===0||_n.hasOwnProperty(n)&&_n[n]?(""+a).trim():a+"px"}function Bi(n,a){n=n.style;for(var u in a)if(a.hasOwnProperty(u)){var p=u.indexOf("--")===0,x=Ai(u,a[u],p);u==="float"&&(u="cssFloat"),p?n.setProperty(u,x):n[u]=x}}var Pr=Q({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 nn(n,a){if(a){if(Pr[n]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(r(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(r(61))}if(a.style!=null&&typeof a.style!="object")throw Error(r(62))}}function $i(n,a){if(n.indexOf("-")===-1)return typeof a.is=="string";switch(n){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 Fi=null;function Cs(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Gn=null,Or=null,Xn=null;function Qn(n){if(n=Vs(n)){if(typeof Gn!="function")throw Error(r(280));var a=n.stateNode;a&&(a=Al(a),Gn(n.stateNode,n.type,a))}}function ol(n){Or?Xn?Xn.push(n):Xn=[n]:Or=n}function ll(){if(Or){var n=Or,a=Xn;if(Xn=Or=null,Qn(n),a)for(n=0;n<a.length;n++)Qn(a[n])}}function fe(n,a){return n(a)}function Sn(){}var ks=!1;function _s(n,a,u){if(ks)return n(a,u);ks=!0;try{return fe(n,a,u)}finally{ks=!1,(Or!==null||Xn!==null)&&(Sn(),ll())}}function Tn(n,a){var u=n.stateNode;if(u===null)return null;var p=Al(u);if(p===null)return null;u=p[a];t:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(n=n.type,p=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!p;break t;default:n=!1}if(n)return null;if(u&&typeof u!="function")throw Error(r(231,a,typeof u));return u}var ba=!1;if(l)try{var Kn={};Object.defineProperty(Kn,"passive",{get:function(){ba=!0}}),window.addEventListener("test",Kn,Kn),window.removeEventListener("test",Kn,Kn)}catch{ba=!1}function eh(n,a,u,p,x,v,T,A,D){var Y=Array.prototype.slice.call(arguments,3);try{a.apply(u,Y)}catch(nt){this.onError(nt)}}var Pe=!1,_r=null,Ri=!1,wa=null,Ss={onError:function(n){Pe=!0,_r=n}};function cl(n,a,u,p,x,v,T,A,D){Pe=!1,_r=null,eh.apply(Ss,arguments)}function Ir(n,a,u,p,x,v,T,A,D){if(cl.apply(this,arguments),Pe){if(Pe){var Y=_r;Pe=!1,_r=null}else throw Error(r(198));Ri||(Ri=!0,wa=Y)}}function an(n){var a=n,u=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(u=a.return),n=a.return;while(n)}return a.tag===3?u:null}function Ts(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function Es(n){if(an(n)!==n)throw Error(r(188))}function ul(n){var a=n.alternate;if(!a){if(a=an(n),a===null)throw Error(r(188));return a!==n?null:n}for(var u=n,p=a;;){var x=u.return;if(x===null)break;var v=x.alternate;if(v===null){if(p=x.return,p!==null){u=p;continue}break}if(x.child===v.child){for(v=x.child;v;){if(v===u)return Es(x),n;if(v===p)return Es(x),a;v=v.sibling}throw Error(r(188))}if(u.return!==p.return)u=x,p=v;else{for(var T=!1,A=x.child;A;){if(A===u){T=!0,u=x,p=v;break}if(A===p){T=!0,p=x,u=v;break}A=A.sibling}if(!T){for(A=v.child;A;){if(A===u){T=!0,u=v,p=x;break}if(A===p){T=!0,p=v,u=x;break}A=A.sibling}if(!T)throw Error(r(189))}}if(u.alternate!==p)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?n:a}function hl(n){return n=ul(n),n!==null?Et(n):null}function Et(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var a=Et(n);if(a!==null)return a;n=n.sibling}return null}var P=t.unstable_scheduleCallback,at=t.unstable_cancelCallback,bt=t.unstable_shouldYield,ee=t.unstable_requestPaint,Wt=t.unstable_now,de=t.unstable_getCurrentPriorityLevel,Ee=t.unstable_ImmediatePriority,Sr=t.unstable_UserBlockingPriority,Nr=t.unstable_NormalPriority,Ls=t.unstable_LowPriority,xe=t.unstable_IdlePriority,Di=null,pr=null;function VC(n){if(pr&&typeof pr.onCommitFiberRoot=="function")try{pr.onCommitFiberRoot(Di,n,void 0,(n.current.flags&128)===128)}catch{}}var zr=Math.clz32?Math.clz32:QC,GC=Math.log,XC=Math.LN2;function QC(n){return n>>>=0,n===0?32:31-(GC(n)/XC|0)|0}var fl=64,dl=4194304;function Ms(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function pl(n,a){var u=n.pendingLanes;if(u===0)return 0;var p=0,x=n.suspendedLanes,v=n.pingedLanes,T=u&268435455;if(T!==0){var A=T&~x;A!==0?p=Ms(A):(v&=T,v!==0&&(p=Ms(v)))}else T=u&~x,T!==0?p=Ms(T):v!==0&&(p=Ms(v));if(p===0)return 0;if(a!==0&&a!==p&&(a&x)===0&&(x=p&-p,v=a&-a,x>=v||x===16&&(v&4194240)!==0))return a;if((p&4)!==0&&(p|=u&16),a=n.entangledLanes,a!==0)for(n=n.entanglements,a&=p;0<a;)u=31-zr(a),x=1<<u,p|=n[u],a&=~x;return p}function KC(n,a){switch(n){case 1:case 2:case 4:return a+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 a+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 ZC(n,a){for(var u=n.suspendedLanes,p=n.pingedLanes,x=n.expirationTimes,v=n.pendingLanes;0<v;){var T=31-zr(v),A=1<<T,D=x[T];D===-1?((A&u)===0||(A&p)!==0)&&(x[T]=KC(A,a)):D<=a&&(n.expiredLanes|=A),v&=~A}}function rh(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function fg(){var n=fl;return fl<<=1,(fl&4194240)===0&&(fl=64),n}function nh(n){for(var a=[],u=0;31>u;u++)a.push(n);return a}function As(n,a,u){n.pendingLanes|=a,a!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,a=31-zr(a),n[a]=u}function JC(n,a){var u=n.pendingLanes&~a;n.pendingLanes=a,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=a,n.mutableReadLanes&=a,n.entangledLanes&=a,a=n.entanglements;var p=n.eventTimes;for(n=n.expirationTimes;0<u;){var x=31-zr(u),v=1<<x;a[x]=0,p[x]=-1,n[x]=-1,u&=~v}}function ih(n,a){var u=n.entangledLanes|=a;for(n=n.entanglements;u;){var p=31-zr(u),x=1<<p;x&a|n[p]&a&&(n[p]|=a),u&=~x}}var Jt=0;function dg(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var pg,ah,gg,mg,yg,sh=!1,gl=[],Zn=null,Jn=null,ti=null,Bs=new Map,$s=new Map,ei=[],tk="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 xg(n,a){switch(n){case"focusin":case"focusout":Zn=null;break;case"dragenter":case"dragleave":Jn=null;break;case"mouseover":case"mouseout":ti=null;break;case"pointerover":case"pointerout":Bs.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":$s.delete(a.pointerId)}}function Fs(n,a,u,p,x,v){return n===null||n.nativeEvent!==v?(n={blockedOn:a,domEventName:u,eventSystemFlags:p,nativeEvent:v,targetContainers:[x]},a!==null&&(a=Vs(a),a!==null&&ah(a)),n):(n.eventSystemFlags|=p,a=n.targetContainers,x!==null&&a.indexOf(x)===-1&&a.push(x),n)}function ek(n,a,u,p,x){switch(a){case"focusin":return Zn=Fs(Zn,n,a,u,p,x),!0;case"dragenter":return Jn=Fs(Jn,n,a,u,p,x),!0;case"mouseover":return ti=Fs(ti,n,a,u,p,x),!0;case"pointerover":var v=x.pointerId;return Bs.set(v,Fs(Bs.get(v)||null,n,a,u,p,x)),!0;case"gotpointercapture":return v=x.pointerId,$s.set(v,Fs($s.get(v)||null,n,a,u,p,x)),!0}return!1}function vg(n){var a=Pi(n.target);if(a!==null){var u=an(a);if(u!==null){if(a=u.tag,a===13){if(a=Ts(u),a!==null){n.blockedOn=a,yg(n.priority,function(){gg(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){n.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}n.blockedOn=null}function ml(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var u=lh(n.domEventName,n.eventSystemFlags,a[0],n.nativeEvent);if(u===null){u=n.nativeEvent;var p=new u.constructor(u.type,u);Fi=p,u.target.dispatchEvent(p),Fi=null}else return a=Vs(u),a!==null&&ah(a),n.blockedOn=u,!1;a.shift()}return!0}function bg(n,a,u){ml(n)&&u.delete(a)}function rk(){sh=!1,Zn!==null&&ml(Zn)&&(Zn=null),Jn!==null&&ml(Jn)&&(Jn=null),ti!==null&&ml(ti)&&(ti=null),Bs.forEach(bg),$s.forEach(bg)}function Rs(n,a){n.blockedOn===a&&(n.blockedOn=null,sh||(sh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,rk)))}function Ds(n){function a(x){return Rs(x,n)}if(0<gl.length){Rs(gl[0],n);for(var u=1;u<gl.length;u++){var p=gl[u];p.blockedOn===n&&(p.blockedOn=null)}}for(Zn!==null&&Rs(Zn,n),Jn!==null&&Rs(Jn,n),ti!==null&&Rs(ti,n),Bs.forEach(a),$s.forEach(a),u=0;u<ei.length;u++)p=ei[u],p.blockedOn===n&&(p.blockedOn=null);for(;0<ei.length&&(u=ei[0],u.blockedOn===null);)vg(u),u.blockedOn===null&&ei.shift()}var Ca=M.ReactCurrentBatchConfig,yl=!0;function nk(n,a,u,p){var x=Jt,v=Ca.transition;Ca.transition=null;try{Jt=1,oh(n,a,u,p)}finally{Jt=x,Ca.transition=v}}function ik(n,a,u,p){var x=Jt,v=Ca.transition;Ca.transition=null;try{Jt=4,oh(n,a,u,p)}finally{Jt=x,Ca.transition=v}}function oh(n,a,u,p){if(yl){var x=lh(n,a,u,p);if(x===null)Sh(n,a,p,xl,u),xg(n,p);else if(ek(x,n,a,u,p))p.stopPropagation();else if(xg(n,p),a&4&&-1<tk.indexOf(n)){for(;x!==null;){var v=Vs(x);if(v!==null&&pg(v),v=lh(n,a,u,p),v===null&&Sh(n,a,p,xl,u),v===x)break;x=v}x!==null&&p.stopPropagation()}else Sh(n,a,p,null,u)}}var xl=null;function lh(n,a,u,p){if(xl=null,n=Cs(p),n=Pi(n),n!==null)if(a=an(n),a===null)n=null;else if(u=a.tag,u===13){if(n=Ts(a),n!==null)return n;n=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null);return xl=n,null}function wg(n){switch(n){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(de()){case Ee:return 1;case Sr:return 4;case Nr:case Ls:return 16;case xe:return 536870912;default:return 16}default:return 16}}var ri=null,ch=null,vl=null;function Cg(){if(vl)return vl;var n,a=ch,u=a.length,p,x="value"in ri?ri.value:ri.textContent,v=x.length;for(n=0;n<u&&a[n]===x[n];n++);var T=u-n;for(p=1;p<=T&&a[u-p]===x[v-p];p++);return vl=x.slice(n,1<p?1-p:void 0)}function bl(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function wl(){return!0}function kg(){return!1}function gr(n){function a(u,p,x,v,T){this._reactName=u,this._targetInst=x,this.type=p,this.nativeEvent=v,this.target=T,this.currentTarget=null;for(var A in n)n.hasOwnProperty(A)&&(u=n[A],this[A]=u?u(v):v[A]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?wl:kg,this.isPropagationStopped=kg,this}return Q(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=wl)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=wl)},persist:function(){},isPersistent:wl}),a}var ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uh=gr(ka),Ps=Q({},ka,{view:0,detail:0}),ak=gr(Ps),hh,fh,Os,Cl=Q({},Ps,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ph,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Os&&(Os&&n.type==="mousemove"?(hh=n.screenX-Os.screenX,fh=n.screenY-Os.screenY):fh=hh=0,Os=n),hh)},movementY:function(n){return"movementY"in n?n.movementY:fh}}),_g=gr(Cl),sk=Q({},Cl,{dataTransfer:0}),ok=gr(sk),lk=Q({},Ps,{relatedTarget:0}),dh=gr(lk),ck=Q({},ka,{animationName:0,elapsedTime:0,pseudoElement:0}),uk=gr(ck),hk=Q({},ka,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),fk=gr(hk),dk=Q({},ka,{data:0}),Sg=gr(dk),pk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gk={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"},mk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yk(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=mk[n])?!!a[n]:!1}function ph(){return yk}var xk=Q({},Ps,{key:function(n){if(n.key){var a=pk[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=bl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?gk[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ph,charCode:function(n){return n.type==="keypress"?bl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?bl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),vk=gr(xk),bk=Q({},Cl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tg=gr(bk),wk=Q({},Ps,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ph}),Ck=gr(wk),kk=Q({},ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),_k=gr(kk),Sk=Q({},Cl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),Tk=gr(Sk),Ek=[9,13,27,32],gh=l&&"CompositionEvent"in window,Is=null;l&&"documentMode"in document&&(Is=document.documentMode);var Lk=l&&"TextEvent"in window&&!Is,Eg=l&&(!gh||Is&&8<Is&&11>=Is),Lg=" ",Mg=!1;function Ag(n,a){switch(n){case"keyup":return Ek.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var _a=!1;function Mk(n,a){switch(n){case"compositionend":return Bg(a);case"keypress":return a.which!==32?null:(Mg=!0,Lg);case"textInput":return n=a.data,n===Lg&&Mg?null:n;default:return null}}function Ak(n,a){if(_a)return n==="compositionend"||!gh&&Ag(n,a)?(n=Cg(),vl=ch=ri=null,_a=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Eg&&a.locale!=="ko"?null:a.data;default:return null}}var Bk={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 $g(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!Bk[n.type]:a==="textarea"}function Fg(n,a,u,p){ol(p),a=El(a,"onChange"),0<a.length&&(u=new uh("onChange","change",null,u,p),n.push({event:u,listeners:a}))}var Ns=null,zs=null;function $k(n){Kg(n,0)}function kl(n){var a=Ma(n);if(er(a))return n}function Fk(n,a){if(n==="change")return a}var Rg=!1;if(l){var mh;if(l){var yh="oninput"in document;if(!yh){var Dg=document.createElement("div");Dg.setAttribute("oninput","return;"),yh=typeof Dg.oninput=="function"}mh=yh}else mh=!1;Rg=mh&&(!document.documentMode||9<document.documentMode)}function Pg(){Ns&&(Ns.detachEvent("onpropertychange",Og),zs=Ns=null)}function Og(n){if(n.propertyName==="value"&&kl(zs)){var a=[];Fg(a,zs,n,Cs(n)),_s($k,a)}}function Rk(n,a,u){n==="focusin"?(Pg(),Ns=a,zs=u,Ns.attachEvent("onpropertychange",Og)):n==="focusout"&&Pg()}function Dk(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return kl(zs)}function Pk(n,a){if(n==="click")return kl(a)}function Ok(n,a){if(n==="input"||n==="change")return kl(a)}function Ik(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var jr=typeof Object.is=="function"?Object.is:Ik;function js(n,a){if(jr(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var u=Object.keys(n),p=Object.keys(a);if(u.length!==p.length)return!1;for(p=0;p<u.length;p++){var x=u[p];if(!h.call(a,x)||!jr(n[x],a[x]))return!1}return!0}function Ig(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Ng(n,a){var u=Ig(n);n=0;for(var p;u;){if(u.nodeType===3){if(p=n+u.textContent.length,n<=a&&p>=a)return{node:u,offset:a-n};n=p}t:{for(;u;){if(u.nextSibling){u=u.nextSibling;break t}u=u.parentNode}u=void 0}u=Ig(u)}}function zg(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?zg(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function jg(){for(var n=window,a=Be();a instanceof n.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)n=a.contentWindow;else break;a=Be(n.document)}return a}function xh(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}function Nk(n){var a=jg(),u=n.focusedElem,p=n.selectionRange;if(a!==u&&u&&u.ownerDocument&&zg(u.ownerDocument.documentElement,u)){if(p!==null&&xh(u)){if(a=p.start,n=p.end,n===void 0&&(n=a),"selectionStart"in u)u.selectionStart=a,u.selectionEnd=Math.min(n,u.value.length);else if(n=(a=u.ownerDocument||document)&&a.defaultView||window,n.getSelection){n=n.getSelection();var x=u.textContent.length,v=Math.min(p.start,x);p=p.end===void 0?v:Math.min(p.end,x),!n.extend&&v>p&&(x=p,p=v,v=x),x=Ng(u,v);var T=Ng(u,p);x&&T&&(n.rangeCount!==1||n.anchorNode!==x.node||n.anchorOffset!==x.offset||n.focusNode!==T.node||n.focusOffset!==T.offset)&&(a=a.createRange(),a.setStart(x.node,x.offset),n.removeAllRanges(),v>p?(n.addRange(a),n.extend(T.node,T.offset)):(a.setEnd(T.node,T.offset),n.addRange(a)))}}for(a=[],n=u;n=n.parentNode;)n.nodeType===1&&a.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof u.focus=="function"&&u.focus(),u=0;u<a.length;u++)n=a[u],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var zk=l&&"documentMode"in document&&11>=document.documentMode,Sa=null,vh=null,Ws=null,bh=!1;function Wg(n,a,u){var p=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;bh||Sa==null||Sa!==Be(p)||(p=Sa,"selectionStart"in p&&xh(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Ws&&js(Ws,p)||(Ws=p,p=El(vh,"onSelect"),0<p.length&&(a=new uh("onSelect","select",null,a,u),n.push({event:a,listeners:p}),a.target=Sa)))}function _l(n,a){var u={};return u[n.toLowerCase()]=a.toLowerCase(),u["Webkit"+n]="webkit"+a,u["Moz"+n]="moz"+a,u}var Ta={animationend:_l("Animation","AnimationEnd"),animationiteration:_l("Animation","AnimationIteration"),animationstart:_l("Animation","AnimationStart"),transitionend:_l("Transition","TransitionEnd")},wh={},Hg={};l&&(Hg=document.createElement("div").style,"AnimationEvent"in window||(delete Ta.animationend.animation,delete Ta.animationiteration.animation,delete Ta.animationstart.animation),"TransitionEvent"in window||delete Ta.transitionend.transition);function Sl(n){if(wh[n])return wh[n];if(!Ta[n])return n;var a=Ta[n],u;for(u in a)if(a.hasOwnProperty(u)&&u in Hg)return wh[n]=a[u];return n}var qg=Sl("animationend"),Ug=Sl("animationiteration"),Yg=Sl("animationstart"),Vg=Sl("transitionend"),Gg=new Map,Xg="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 ni(n,a){Gg.set(n,a),o(a,[n])}for(var Ch=0;Ch<Xg.length;Ch++){var kh=Xg[Ch],jk=kh.toLowerCase(),Wk=kh[0].toUpperCase()+kh.slice(1);ni(jk,"on"+Wk)}ni(qg,"onAnimationEnd"),ni(Ug,"onAnimationIteration"),ni(Yg,"onAnimationStart"),ni("dblclick","onDoubleClick"),ni("focusin","onFocus"),ni("focusout","onBlur"),ni(Vg,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hs="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(" "),Hk=new Set("cancel close invalid load scroll toggle".split(" ").concat(Hs));function Qg(n,a,u){var p=n.type||"unknown-event";n.currentTarget=u,Ir(p,a,void 0,n),n.currentTarget=null}function Kg(n,a){a=(a&4)!==0;for(var u=0;u<n.length;u++){var p=n[u],x=p.event;p=p.listeners;t:{var v=void 0;if(a)for(var T=p.length-1;0<=T;T--){var A=p[T],D=A.instance,Y=A.currentTarget;if(A=A.listener,D!==v&&x.isPropagationStopped())break t;Qg(x,A,Y),v=D}else for(T=0;T<p.length;T++){if(A=p[T],D=A.instance,Y=A.currentTarget,A=A.listener,D!==v&&x.isPropagationStopped())break t;Qg(x,A,Y),v=D}}}if(Ri)throw n=wa,Ri=!1,wa=null,n}function ie(n,a){var u=a[Bh];u===void 0&&(u=a[Bh]=new Set);var p=n+"__bubble";u.has(p)||(Zg(a,n,2,!1),u.add(p))}function _h(n,a,u){var p=0;a&&(p|=4),Zg(u,n,p,a)}var Tl="_reactListening"+Math.random().toString(36).slice(2);function qs(n){if(!n[Tl]){n[Tl]=!0,i.forEach(function(u){u!=="selectionchange"&&(Hk.has(u)||_h(u,!1,n),_h(u,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[Tl]||(a[Tl]=!0,_h("selectionchange",!1,a))}}function Zg(n,a,u,p){switch(wg(a)){case 1:var x=nk;break;case 4:x=ik;break;default:x=oh}u=x.bind(null,a,u,n),x=void 0,!ba||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(x=!0),p?x!==void 0?n.addEventListener(a,u,{capture:!0,passive:x}):n.addEventListener(a,u,!0):x!==void 0?n.addEventListener(a,u,{passive:x}):n.addEventListener(a,u,!1)}function Sh(n,a,u,p,x){var v=p;if((a&1)===0&&(a&2)===0&&p!==null)t:for(;;){if(p===null)return;var T=p.tag;if(T===3||T===4){var A=p.stateNode.containerInfo;if(A===x||A.nodeType===8&&A.parentNode===x)break;if(T===4)for(T=p.return;T!==null;){var D=T.tag;if((D===3||D===4)&&(D=T.stateNode.containerInfo,D===x||D.nodeType===8&&D.parentNode===x))return;T=T.return}for(;A!==null;){if(T=Pi(A),T===null)return;if(D=T.tag,D===5||D===6){p=v=T;continue t}A=A.parentNode}}p=p.return}_s(function(){var Y=v,nt=Cs(u),it=[];t:{var rt=Gg.get(n);if(rt!==void 0){var pt=uh,yt=n;switch(n){case"keypress":if(bl(u)===0)break t;case"keydown":case"keyup":pt=vk;break;case"focusin":yt="focus",pt=dh;break;case"focusout":yt="blur",pt=dh;break;case"beforeblur":case"afterblur":pt=dh;break;case"click":if(u.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pt=_g;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pt=ok;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pt=Ck;break;case qg:case Ug:case Yg:pt=uk;break;case Vg:pt=_k;break;case"scroll":pt=ak;break;case"wheel":pt=Tk;break;case"copy":case"cut":case"paste":pt=fk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pt=Tg}var _t=(a&4)!==0,me=!_t&&n==="scroll",j=_t?rt!==null?rt+"Capture":null:rt;_t=[];for(var I=Y,H;I!==null;){H=I;var st=H.stateNode;if(H.tag===5&&st!==null&&(H=st,j!==null&&(st=Tn(I,j),st!=null&&_t.push(Us(I,st,H)))),me)break;I=I.return}0<_t.length&&(rt=new pt(rt,yt,null,u,nt),it.push({event:rt,listeners:_t}))}}if((a&7)===0){t:{if(rt=n==="mouseover"||n==="pointerover",pt=n==="mouseout"||n==="pointerout",rt&&u!==Fi&&(yt=u.relatedTarget||u.fromElement)&&(Pi(yt)||yt[En]))break t;if((pt||rt)&&(rt=nt.window===nt?nt:(rt=nt.ownerDocument)?rt.defaultView||rt.parentWindow:window,pt?(yt=u.relatedTarget||u.toElement,pt=Y,yt=yt?Pi(yt):null,yt!==null&&(me=an(yt),yt!==me||yt.tag!==5&&yt.tag!==6)&&(yt=null)):(pt=null,yt=Y),pt!==yt)){if(_t=_g,st="onMouseLeave",j="onMouseEnter",I="mouse",(n==="pointerout"||n==="pointerover")&&(_t=Tg,st="onPointerLeave",j="onPointerEnter",I="pointer"),me=pt==null?rt:Ma(pt),H=yt==null?rt:Ma(yt),rt=new _t(st,I+"leave",pt,u,nt),rt.target=me,rt.relatedTarget=H,st=null,Pi(nt)===Y&&(_t=new _t(j,I+"enter",yt,u,nt),_t.target=H,_t.relatedTarget=me,st=_t),me=st,pt&&yt)e:{for(_t=pt,j=yt,I=0,H=_t;H;H=Ea(H))I++;for(H=0,st=j;st;st=Ea(st))H++;for(;0<I-H;)_t=Ea(_t),I--;for(;0<H-I;)j=Ea(j),H--;for(;I--;){if(_t===j||j!==null&&_t===j.alternate)break e;_t=Ea(_t),j=Ea(j)}_t=null}else _t=null;pt!==null&&Jg(it,rt,pt,_t,!1),yt!==null&&me!==null&&Jg(it,me,yt,_t,!0)}}t:{if(rt=Y?Ma(Y):window,pt=rt.nodeName&&rt.nodeName.toLowerCase(),pt==="select"||pt==="input"&&rt.type==="file")var Tt=Fk;else if($g(rt))if(Rg)Tt=Ok;else{Tt=Dk;var Ft=Rk}else(pt=rt.nodeName)&&pt.toLowerCase()==="input"&&(rt.type==="checkbox"||rt.type==="radio")&&(Tt=Pk);if(Tt&&(Tt=Tt(n,Y))){Fg(it,Tt,u,nt);break t}Ft&&Ft(n,rt,Y),n==="focusout"&&(Ft=rt._wrapperState)&&Ft.controlled&&rt.type==="number"&&qn(rt,"number",rt.value)}switch(Ft=Y?Ma(Y):window,n){case"focusin":($g(Ft)||Ft.contentEditable==="true")&&(Sa=Ft,vh=Y,Ws=null);break;case"focusout":Ws=vh=Sa=null;break;case"mousedown":bh=!0;break;case"contextmenu":case"mouseup":case"dragend":bh=!1,Wg(it,u,nt);break;case"selectionchange":if(zk)break;case"keydown":case"keyup":Wg(it,u,nt)}var Rt;if(gh)t:{switch(n){case"compositionstart":var It="onCompositionStart";break t;case"compositionend":It="onCompositionEnd";break t;case"compositionupdate":It="onCompositionUpdate";break t}It=void 0}else _a?Ag(n,u)&&(It="onCompositionEnd"):n==="keydown"&&u.keyCode===229&&(It="onCompositionStart");It&&(Eg&&u.locale!=="ko"&&(_a||It!=="onCompositionStart"?It==="onCompositionEnd"&&_a&&(Rt=Cg()):(ri=nt,ch="value"in ri?ri.value:ri.textContent,_a=!0)),Ft=El(Y,It),0<Ft.length&&(It=new Sg(It,n,null,u,nt),it.push({event:It,listeners:Ft}),Rt?It.data=Rt:(Rt=Bg(u),Rt!==null&&(It.data=Rt)))),(Rt=Lk?Mk(n,u):Ak(n,u))&&(Y=El(Y,"onBeforeInput"),0<Y.length&&(nt=new Sg("onBeforeInput","beforeinput",null,u,nt),it.push({event:nt,listeners:Y}),nt.data=Rt))}Kg(it,a)})}function Us(n,a,u){return{instance:n,listener:a,currentTarget:u}}function El(n,a){for(var u=a+"Capture",p=[];n!==null;){var x=n,v=x.stateNode;x.tag===5&&v!==null&&(x=v,v=Tn(n,u),v!=null&&p.unshift(Us(n,v,x)),v=Tn(n,a),v!=null&&p.push(Us(n,v,x))),n=n.return}return p}function Ea(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function Jg(n,a,u,p,x){for(var v=a._reactName,T=[];u!==null&&u!==p;){var A=u,D=A.alternate,Y=A.stateNode;if(D!==null&&D===p)break;A.tag===5&&Y!==null&&(A=Y,x?(D=Tn(u,v),D!=null&&T.unshift(Us(u,D,A))):x||(D=Tn(u,v),D!=null&&T.push(Us(u,D,A)))),u=u.return}T.length!==0&&n.push({event:a,listeners:T})}var qk=/\r\n?/g,Uk=/\u0000|\uFFFD/g;function tm(n){return(typeof n=="string"?n:""+n).replace(qk,`
|
|
39
|
+
`).replace(Uk,"")}function Ll(n,a,u){if(a=tm(a),tm(n)!==a&&u)throw Error(r(425))}function Ml(){}var Th=null,Eh=null;function Lh(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Mh=typeof setTimeout=="function"?setTimeout:void 0,Yk=typeof clearTimeout=="function"?clearTimeout:void 0,em=typeof Promise=="function"?Promise:void 0,Vk=typeof queueMicrotask=="function"?queueMicrotask:typeof em<"u"?function(n){return em.resolve(null).then(n).catch(Gk)}:Mh;function Gk(n){setTimeout(function(){throw n})}function Ah(n,a){var u=a,p=0;do{var x=u.nextSibling;if(n.removeChild(u),x&&x.nodeType===8)if(u=x.data,u==="/$"){if(p===0){n.removeChild(x),Ds(a);return}p--}else u!=="$"&&u!=="$?"&&u!=="$!"||p++;u=x}while(u);Ds(a)}function ii(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return n}function rm(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var u=n.data;if(u==="$"||u==="$!"||u==="$?"){if(a===0)return n;a--}else u==="/$"&&a++}n=n.previousSibling}return null}var La=Math.random().toString(36).slice(2),sn="__reactFiber$"+La,Ys="__reactProps$"+La,En="__reactContainer$"+La,Bh="__reactEvents$"+La,Xk="__reactListeners$"+La,Qk="__reactHandles$"+La;function Pi(n){var a=n[sn];if(a)return a;for(var u=n.parentNode;u;){if(a=u[En]||u[sn]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(n=rm(n);n!==null;){if(u=n[sn])return u;n=rm(n)}return a}n=u,u=n.parentNode}return null}function Vs(n){return n=n[sn]||n[En],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function Ma(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function Al(n){return n[Ys]||null}var $h=[],Aa=-1;function ai(n){return{current:n}}function ae(n){0>Aa||(n.current=$h[Aa],$h[Aa]=null,Aa--)}function re(n,a){Aa++,$h[Aa]=n.current,n.current=a}var si={},Oe=ai(si),nr=ai(!1),Oi=si;function Ba(n,a){var u=n.type.contextTypes;if(!u)return si;var p=n.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===a)return p.__reactInternalMemoizedMaskedChildContext;var x={},v;for(v in u)x[v]=a[v];return p&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=a,n.__reactInternalMemoizedMaskedChildContext=x),x}function ir(n){return n=n.childContextTypes,n!=null}function Bl(){ae(nr),ae(Oe)}function nm(n,a,u){if(Oe.current!==si)throw Error(r(168));re(Oe,a),re(nr,u)}function im(n,a,u){var p=n.stateNode;if(a=a.childContextTypes,typeof p.getChildContext!="function")return u;p=p.getChildContext();for(var x in p)if(!(x in a))throw Error(r(108,kt(n)||"Unknown",x));return Q({},u,p)}function $l(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||si,Oi=Oe.current,re(Oe,n),re(nr,nr.current),!0}function am(n,a,u){var p=n.stateNode;if(!p)throw Error(r(169));u?(n=im(n,a,Oi),p.__reactInternalMemoizedMergedChildContext=n,ae(nr),ae(Oe),re(Oe,n)):ae(nr),re(nr,u)}var Ln=null,Fl=!1,Fh=!1;function sm(n){Ln===null?Ln=[n]:Ln.push(n)}function Kk(n){Fl=!0,sm(n)}function oi(){if(!Fh&&Ln!==null){Fh=!0;var n=0,a=Jt;try{var u=Ln;for(Jt=1;n<u.length;n++){var p=u[n];do p=p(!0);while(p!==null)}Ln=null,Fl=!1}catch(x){throw Ln!==null&&(Ln=Ln.slice(n+1)),P(Ee,oi),x}finally{Jt=a,Fh=!1}}return null}var $a=[],Fa=0,Rl=null,Dl=0,Tr=[],Er=0,Ii=null,Mn=1,An="";function Ni(n,a){$a[Fa++]=Dl,$a[Fa++]=Rl,Rl=n,Dl=a}function om(n,a,u){Tr[Er++]=Mn,Tr[Er++]=An,Tr[Er++]=Ii,Ii=n;var p=Mn;n=An;var x=32-zr(p)-1;p&=~(1<<x),u+=1;var v=32-zr(a)+x;if(30<v){var T=x-x%5;v=(p&(1<<T)-1).toString(32),p>>=T,x-=T,Mn=1<<32-zr(a)+x|u<<x|p,An=v+n}else Mn=1<<v|u<<x|p,An=n}function Rh(n){n.return!==null&&(Ni(n,1),om(n,1,0))}function Dh(n){for(;n===Rl;)Rl=$a[--Fa],$a[Fa]=null,Dl=$a[--Fa],$a[Fa]=null;for(;n===Ii;)Ii=Tr[--Er],Tr[Er]=null,An=Tr[--Er],Tr[Er]=null,Mn=Tr[--Er],Tr[Er]=null}var mr=null,yr=null,oe=!1,Wr=null;function lm(n,a){var u=Br(5,null,null,0);u.elementType="DELETED",u.stateNode=a,u.return=n,a=n.deletions,a===null?(n.deletions=[u],n.flags|=16):a.push(u)}function cm(n,a){switch(n.tag){case 5:var u=n.type;return a=a.nodeType!==1||u.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(n.stateNode=a,mr=n,yr=ii(a.firstChild),!0):!1;case 6:return a=n.pendingProps===""||a.nodeType!==3?null:a,a!==null?(n.stateNode=a,mr=n,yr=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(u=Ii!==null?{id:Mn,overflow:An}:null,n.memoizedState={dehydrated:a,treeContext:u,retryLane:1073741824},u=Br(18,null,null,0),u.stateNode=a,u.return=n,n.child=u,mr=n,yr=null,!0):!1;default:return!1}}function Ph(n){return(n.mode&1)!==0&&(n.flags&128)===0}function Oh(n){if(oe){var a=yr;if(a){var u=a;if(!cm(n,a)){if(Ph(n))throw Error(r(418));a=ii(u.nextSibling);var p=mr;a&&cm(n,a)?lm(p,u):(n.flags=n.flags&-4097|2,oe=!1,mr=n)}}else{if(Ph(n))throw Error(r(418));n.flags=n.flags&-4097|2,oe=!1,mr=n}}}function um(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;mr=n}function Pl(n){if(n!==mr)return!1;if(!oe)return um(n),oe=!0,!1;var a;if((a=n.tag!==3)&&!(a=n.tag!==5)&&(a=n.type,a=a!=="head"&&a!=="body"&&!Lh(n.type,n.memoizedProps)),a&&(a=yr)){if(Ph(n))throw hm(),Error(r(418));for(;a;)lm(n,a),a=ii(a.nextSibling)}if(um(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));t:{for(n=n.nextSibling,a=0;n;){if(n.nodeType===8){var u=n.data;if(u==="/$"){if(a===0){yr=ii(n.nextSibling);break t}a--}else u!=="$"&&u!=="$!"&&u!=="$?"||a++}n=n.nextSibling}yr=null}}else yr=mr?ii(n.stateNode.nextSibling):null;return!0}function hm(){for(var n=yr;n;)n=ii(n.nextSibling)}function Ra(){yr=mr=null,oe=!1}function Ih(n){Wr===null?Wr=[n]:Wr.push(n)}var Zk=M.ReactCurrentBatchConfig;function Gs(n,a,u){if(n=u.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(u._owner){if(u=u._owner,u){if(u.tag!==1)throw Error(r(309));var p=u.stateNode}if(!p)throw Error(r(147,n));var x=p,v=""+n;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===v?a.ref:(a=function(T){var A=x.refs;T===null?delete A[v]:A[v]=T},a._stringRef=v,a)}if(typeof n!="string")throw Error(r(284));if(!u._owner)throw Error(r(290,n))}return n}function Ol(n,a){throw n=Object.prototype.toString.call(a),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n))}function fm(n){var a=n._init;return a(n._payload)}function dm(n){function a(j,I){if(n){var H=j.deletions;H===null?(j.deletions=[I],j.flags|=16):H.push(I)}}function u(j,I){if(!n)return null;for(;I!==null;)a(j,I),I=I.sibling;return null}function p(j,I){for(j=new Map;I!==null;)I.key!==null?j.set(I.key,I):j.set(I.index,I),I=I.sibling;return j}function x(j,I){return j=gi(j,I),j.index=0,j.sibling=null,j}function v(j,I,H){return j.index=H,n?(H=j.alternate,H!==null?(H=H.index,H<I?(j.flags|=2,I):H):(j.flags|=2,I)):(j.flags|=1048576,I)}function T(j){return n&&j.alternate===null&&(j.flags|=2),j}function A(j,I,H,st){return I===null||I.tag!==6?(I=Af(H,j.mode,st),I.return=j,I):(I=x(I,H),I.return=j,I)}function D(j,I,H,st){var Tt=H.type;return Tt===F?nt(j,I,H.props.children,st,H.key):I!==null&&(I.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===z&&fm(Tt)===I.type)?(st=x(I,H.props),st.ref=Gs(j,I,H),st.return=j,st):(st=oc(H.type,H.key,H.props,null,j.mode,st),st.ref=Gs(j,I,H),st.return=j,st)}function Y(j,I,H,st){return I===null||I.tag!==4||I.stateNode.containerInfo!==H.containerInfo||I.stateNode.implementation!==H.implementation?(I=Bf(H,j.mode,st),I.return=j,I):(I=x(I,H.children||[]),I.return=j,I)}function nt(j,I,H,st,Tt){return I===null||I.tag!==7?(I=Vi(H,j.mode,st,Tt),I.return=j,I):(I=x(I,H),I.return=j,I)}function it(j,I,H){if(typeof I=="string"&&I!==""||typeof I=="number")return I=Af(""+I,j.mode,H),I.return=j,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case B:return H=oc(I.type,I.key,I.props,null,j.mode,H),H.ref=Gs(j,null,I),H.return=j,H;case L:return I=Bf(I,j.mode,H),I.return=j,I;case z:var st=I._init;return it(j,st(I._payload),H)}if(rn(I)||K(I))return I=Vi(I,j.mode,H,null),I.return=j,I;Ol(j,I)}return null}function rt(j,I,H,st){var Tt=I!==null?I.key:null;if(typeof H=="string"&&H!==""||typeof H=="number")return Tt!==null?null:A(j,I,""+H,st);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case B:return H.key===Tt?D(j,I,H,st):null;case L:return H.key===Tt?Y(j,I,H,st):null;case z:return Tt=H._init,rt(j,I,Tt(H._payload),st)}if(rn(H)||K(H))return Tt!==null?null:nt(j,I,H,st,null);Ol(j,H)}return null}function pt(j,I,H,st,Tt){if(typeof st=="string"&&st!==""||typeof st=="number")return j=j.get(H)||null,A(I,j,""+st,Tt);if(typeof st=="object"&&st!==null){switch(st.$$typeof){case B:return j=j.get(st.key===null?H:st.key)||null,D(I,j,st,Tt);case L:return j=j.get(st.key===null?H:st.key)||null,Y(I,j,st,Tt);case z:var Ft=st._init;return pt(j,I,H,Ft(st._payload),Tt)}if(rn(st)||K(st))return j=j.get(H)||null,nt(I,j,st,Tt,null);Ol(I,st)}return null}function yt(j,I,H,st){for(var Tt=null,Ft=null,Rt=I,It=I=0,Ae=null;Rt!==null&&It<H.length;It++){Rt.index>It?(Ae=Rt,Rt=null):Ae=Rt.sibling;var Gt=rt(j,Rt,H[It],st);if(Gt===null){Rt===null&&(Rt=Ae);break}n&&Rt&&Gt.alternate===null&&a(j,Rt),I=v(Gt,I,It),Ft===null?Tt=Gt:Ft.sibling=Gt,Ft=Gt,Rt=Ae}if(It===H.length)return u(j,Rt),oe&&Ni(j,It),Tt;if(Rt===null){for(;It<H.length;It++)Rt=it(j,H[It],st),Rt!==null&&(I=v(Rt,I,It),Ft===null?Tt=Rt:Ft.sibling=Rt,Ft=Rt);return oe&&Ni(j,It),Tt}for(Rt=p(j,Rt);It<H.length;It++)Ae=pt(Rt,j,It,H[It],st),Ae!==null&&(n&&Ae.alternate!==null&&Rt.delete(Ae.key===null?It:Ae.key),I=v(Ae,I,It),Ft===null?Tt=Ae:Ft.sibling=Ae,Ft=Ae);return n&&Rt.forEach(function(mi){return a(j,mi)}),oe&&Ni(j,It),Tt}function _t(j,I,H,st){var Tt=K(H);if(typeof Tt!="function")throw Error(r(150));if(H=Tt.call(H),H==null)throw Error(r(151));for(var Ft=Tt=null,Rt=I,It=I=0,Ae=null,Gt=H.next();Rt!==null&&!Gt.done;It++,Gt=H.next()){Rt.index>It?(Ae=Rt,Rt=null):Ae=Rt.sibling;var mi=rt(j,Rt,Gt.value,st);if(mi===null){Rt===null&&(Rt=Ae);break}n&&Rt&&mi.alternate===null&&a(j,Rt),I=v(mi,I,It),Ft===null?Tt=mi:Ft.sibling=mi,Ft=mi,Rt=Ae}if(Gt.done)return u(j,Rt),oe&&Ni(j,It),Tt;if(Rt===null){for(;!Gt.done;It++,Gt=H.next())Gt=it(j,Gt.value,st),Gt!==null&&(I=v(Gt,I,It),Ft===null?Tt=Gt:Ft.sibling=Gt,Ft=Gt);return oe&&Ni(j,It),Tt}for(Rt=p(j,Rt);!Gt.done;It++,Gt=H.next())Gt=pt(Rt,j,It,Gt.value,st),Gt!==null&&(n&&Gt.alternate!==null&&Rt.delete(Gt.key===null?It:Gt.key),I=v(Gt,I,It),Ft===null?Tt=Gt:Ft.sibling=Gt,Ft=Gt);return n&&Rt.forEach(function(B_){return a(j,B_)}),oe&&Ni(j,It),Tt}function me(j,I,H,st){if(typeof H=="object"&&H!==null&&H.type===F&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case B:t:{for(var Tt=H.key,Ft=I;Ft!==null;){if(Ft.key===Tt){if(Tt=H.type,Tt===F){if(Ft.tag===7){u(j,Ft.sibling),I=x(Ft,H.props.children),I.return=j,j=I;break t}}else if(Ft.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===z&&fm(Tt)===Ft.type){u(j,Ft.sibling),I=x(Ft,H.props),I.ref=Gs(j,Ft,H),I.return=j,j=I;break t}u(j,Ft);break}else a(j,Ft);Ft=Ft.sibling}H.type===F?(I=Vi(H.props.children,j.mode,st,H.key),I.return=j,j=I):(st=oc(H.type,H.key,H.props,null,j.mode,st),st.ref=Gs(j,I,H),st.return=j,j=st)}return T(j);case L:t:{for(Ft=H.key;I!==null;){if(I.key===Ft)if(I.tag===4&&I.stateNode.containerInfo===H.containerInfo&&I.stateNode.implementation===H.implementation){u(j,I.sibling),I=x(I,H.children||[]),I.return=j,j=I;break t}else{u(j,I);break}else a(j,I);I=I.sibling}I=Bf(H,j.mode,st),I.return=j,j=I}return T(j);case z:return Ft=H._init,me(j,I,Ft(H._payload),st)}if(rn(H))return yt(j,I,H,st);if(K(H))return _t(j,I,H,st);Ol(j,H)}return typeof H=="string"&&H!==""||typeof H=="number"?(H=""+H,I!==null&&I.tag===6?(u(j,I.sibling),I=x(I,H),I.return=j,j=I):(u(j,I),I=Af(H,j.mode,st),I.return=j,j=I),T(j)):u(j,I)}return me}var Da=dm(!0),pm=dm(!1),Il=ai(null),Nl=null,Pa=null,Nh=null;function zh(){Nh=Pa=Nl=null}function jh(n){var a=Il.current;ae(Il),n._currentValue=a}function Wh(n,a,u){for(;n!==null;){var p=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,p!==null&&(p.childLanes|=a)):p!==null&&(p.childLanes&a)!==a&&(p.childLanes|=a),n===u)break;n=n.return}}function Oa(n,a){Nl=n,Nh=Pa=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&a)!==0&&(ar=!0),n.firstContext=null)}function Lr(n){var a=n._currentValue;if(Nh!==n)if(n={context:n,memoizedValue:a,next:null},Pa===null){if(Nl===null)throw Error(r(308));Pa=n,Nl.dependencies={lanes:0,firstContext:n}}else Pa=Pa.next=n;return a}var zi=null;function Hh(n){zi===null?zi=[n]:zi.push(n)}function gm(n,a,u,p){var x=a.interleaved;return x===null?(u.next=u,Hh(a)):(u.next=x.next,x.next=u),a.interleaved=u,Bn(n,p)}function Bn(n,a){n.lanes|=a;var u=n.alternate;for(u!==null&&(u.lanes|=a),u=n,n=n.return;n!==null;)n.childLanes|=a,u=n.alternate,u!==null&&(u.childLanes|=a),u=n,n=n.return;return u.tag===3?u.stateNode:null}var li=!1;function qh(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mm(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function $n(n,a){return{eventTime:n,lane:a,tag:0,payload:null,callback:null,next:null}}function ci(n,a,u){var p=n.updateQueue;if(p===null)return null;if(p=p.shared,(Vt&2)!==0){var x=p.pending;return x===null?a.next=a:(a.next=x.next,x.next=a),p.pending=a,Bn(n,u)}return x=p.interleaved,x===null?(a.next=a,Hh(p)):(a.next=x.next,x.next=a),p.interleaved=a,Bn(n,u)}function zl(n,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194240)!==0)){var p=a.lanes;p&=n.pendingLanes,u|=p,a.lanes=u,ih(n,u)}}function ym(n,a){var u=n.updateQueue,p=n.alternate;if(p!==null&&(p=p.updateQueue,u===p)){var x=null,v=null;if(u=u.firstBaseUpdate,u!==null){do{var T={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};v===null?x=v=T:v=v.next=T,u=u.next}while(u!==null);v===null?x=v=a:v=v.next=a}else x=v=a;u={baseState:p.baseState,firstBaseUpdate:x,lastBaseUpdate:v,shared:p.shared,effects:p.effects},n.updateQueue=u;return}n=u.lastBaseUpdate,n===null?u.firstBaseUpdate=a:n.next=a,u.lastBaseUpdate=a}function jl(n,a,u,p){var x=n.updateQueue;li=!1;var v=x.firstBaseUpdate,T=x.lastBaseUpdate,A=x.shared.pending;if(A!==null){x.shared.pending=null;var D=A,Y=D.next;D.next=null,T===null?v=Y:T.next=Y,T=D;var nt=n.alternate;nt!==null&&(nt=nt.updateQueue,A=nt.lastBaseUpdate,A!==T&&(A===null?nt.firstBaseUpdate=Y:A.next=Y,nt.lastBaseUpdate=D))}if(v!==null){var it=x.baseState;T=0,nt=Y=D=null,A=v;do{var rt=A.lane,pt=A.eventTime;if((p&rt)===rt){nt!==null&&(nt=nt.next={eventTime:pt,lane:0,tag:A.tag,payload:A.payload,callback:A.callback,next:null});t:{var yt=n,_t=A;switch(rt=a,pt=u,_t.tag){case 1:if(yt=_t.payload,typeof yt=="function"){it=yt.call(pt,it,rt);break t}it=yt;break t;case 3:yt.flags=yt.flags&-65537|128;case 0:if(yt=_t.payload,rt=typeof yt=="function"?yt.call(pt,it,rt):yt,rt==null)break t;it=Q({},it,rt);break t;case 2:li=!0}}A.callback!==null&&A.lane!==0&&(n.flags|=64,rt=x.effects,rt===null?x.effects=[A]:rt.push(A))}else pt={eventTime:pt,lane:rt,tag:A.tag,payload:A.payload,callback:A.callback,next:null},nt===null?(Y=nt=pt,D=it):nt=nt.next=pt,T|=rt;if(A=A.next,A===null){if(A=x.shared.pending,A===null)break;rt=A,A=rt.next,rt.next=null,x.lastBaseUpdate=rt,x.shared.pending=null}}while(!0);if(nt===null&&(D=it),x.baseState=D,x.firstBaseUpdate=Y,x.lastBaseUpdate=nt,a=x.shared.interleaved,a!==null){x=a;do T|=x.lane,x=x.next;while(x!==a)}else v===null&&(x.shared.lanes=0);Hi|=T,n.lanes=T,n.memoizedState=it}}function xm(n,a,u){if(n=a.effects,a.effects=null,n!==null)for(a=0;a<n.length;a++){var p=n[a],x=p.callback;if(x!==null){if(p.callback=null,p=u,typeof x!="function")throw Error(r(191,x));x.call(p)}}}var Xs={},on=ai(Xs),Qs=ai(Xs),Ks=ai(Xs);function ji(n){if(n===Xs)throw Error(r(174));return n}function Uh(n,a){switch(re(Ks,a),re(Qs,n),re(on,Xs),n=a.nodeType,n){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:rr(null,"");break;default:n=n===8?a.parentNode:a,a=n.namespaceURI||null,n=n.tagName,a=rr(a,n)}ae(on),re(on,a)}function Ia(){ae(on),ae(Qs),ae(Ks)}function vm(n){ji(Ks.current);var a=ji(on.current),u=rr(a,n.type);a!==u&&(re(Qs,n),re(on,u))}function Yh(n){Qs.current===n&&(ae(on),ae(Qs))}var ce=ai(0);function Wl(n){for(var a=n;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Vh=[];function Gh(){for(var n=0;n<Vh.length;n++)Vh[n]._workInProgressVersionPrimary=null;Vh.length=0}var Hl=M.ReactCurrentDispatcher,Xh=M.ReactCurrentBatchConfig,Wi=0,ue=null,we=null,Le=null,ql=!1,Zs=!1,Js=0,Jk=0;function Ie(){throw Error(r(321))}function Qh(n,a){if(a===null)return!1;for(var u=0;u<a.length&&u<n.length;u++)if(!jr(n[u],a[u]))return!1;return!0}function Kh(n,a,u,p,x,v){if(Wi=v,ue=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,Hl.current=n===null||n.memoizedState===null?n_:i_,n=u(p,x),Zs){v=0;do{if(Zs=!1,Js=0,25<=v)throw Error(r(301));v+=1,Le=we=null,a.updateQueue=null,Hl.current=a_,n=u(p,x)}while(Zs)}if(Hl.current=Vl,a=we!==null&&we.next!==null,Wi=0,Le=we=ue=null,ql=!1,a)throw Error(r(300));return n}function Zh(){var n=Js!==0;return Js=0,n}function ln(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Le===null?ue.memoizedState=Le=n:Le=Le.next=n,Le}function Mr(){if(we===null){var n=ue.alternate;n=n!==null?n.memoizedState:null}else n=we.next;var a=Le===null?ue.memoizedState:Le.next;if(a!==null)Le=a,we=n;else{if(n===null)throw Error(r(310));we=n,n={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},Le===null?ue.memoizedState=Le=n:Le=Le.next=n}return Le}function to(n,a){return typeof a=="function"?a(n):a}function Jh(n){var a=Mr(),u=a.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=n;var p=we,x=p.baseQueue,v=u.pending;if(v!==null){if(x!==null){var T=x.next;x.next=v.next,v.next=T}p.baseQueue=x=v,u.pending=null}if(x!==null){v=x.next,p=p.baseState;var A=T=null,D=null,Y=v;do{var nt=Y.lane;if((Wi&nt)===nt)D!==null&&(D=D.next={lane:0,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null}),p=Y.hasEagerState?Y.eagerState:n(p,Y.action);else{var it={lane:nt,action:Y.action,hasEagerState:Y.hasEagerState,eagerState:Y.eagerState,next:null};D===null?(A=D=it,T=p):D=D.next=it,ue.lanes|=nt,Hi|=nt}Y=Y.next}while(Y!==null&&Y!==v);D===null?T=p:D.next=A,jr(p,a.memoizedState)||(ar=!0),a.memoizedState=p,a.baseState=T,a.baseQueue=D,u.lastRenderedState=p}if(n=u.interleaved,n!==null){x=n;do v=x.lane,ue.lanes|=v,Hi|=v,x=x.next;while(x!==n)}else x===null&&(u.lanes=0);return[a.memoizedState,u.dispatch]}function tf(n){var a=Mr(),u=a.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=n;var p=u.dispatch,x=u.pending,v=a.memoizedState;if(x!==null){u.pending=null;var T=x=x.next;do v=n(v,T.action),T=T.next;while(T!==x);jr(v,a.memoizedState)||(ar=!0),a.memoizedState=v,a.baseQueue===null&&(a.baseState=v),u.lastRenderedState=v}return[v,p]}function bm(){}function wm(n,a){var u=ue,p=Mr(),x=a(),v=!jr(p.memoizedState,x);if(v&&(p.memoizedState=x,ar=!0),p=p.queue,ef(_m.bind(null,u,p,n),[n]),p.getSnapshot!==a||v||Le!==null&&Le.memoizedState.tag&1){if(u.flags|=2048,eo(9,km.bind(null,u,p,x,a),void 0,null),Me===null)throw Error(r(349));(Wi&30)!==0||Cm(u,a,x)}return x}function Cm(n,a,u){n.flags|=16384,n={getSnapshot:a,value:u},a=ue.updateQueue,a===null?(a={lastEffect:null,stores:null},ue.updateQueue=a,a.stores=[n]):(u=a.stores,u===null?a.stores=[n]:u.push(n))}function km(n,a,u,p){a.value=u,a.getSnapshot=p,Sm(a)&&Tm(n)}function _m(n,a,u){return u(function(){Sm(a)&&Tm(n)})}function Sm(n){var a=n.getSnapshot;n=n.value;try{var u=a();return!jr(n,u)}catch{return!0}}function Tm(n){var a=Bn(n,1);a!==null&&Yr(a,n,1,-1)}function Em(n){var a=ln();return typeof n=="function"&&(n=n()),a.memoizedState=a.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:n},a.queue=n,n=n.dispatch=r_.bind(null,ue,n),[a.memoizedState,n]}function eo(n,a,u,p){return n={tag:n,create:a,destroy:u,deps:p,next:null},a=ue.updateQueue,a===null?(a={lastEffect:null,stores:null},ue.updateQueue=a,a.lastEffect=n.next=n):(u=a.lastEffect,u===null?a.lastEffect=n.next=n:(p=u.next,u.next=n,n.next=p,a.lastEffect=n)),n}function Lm(){return Mr().memoizedState}function Ul(n,a,u,p){var x=ln();ue.flags|=n,x.memoizedState=eo(1|a,u,void 0,p===void 0?null:p)}function Yl(n,a,u,p){var x=Mr();p=p===void 0?null:p;var v=void 0;if(we!==null){var T=we.memoizedState;if(v=T.destroy,p!==null&&Qh(p,T.deps)){x.memoizedState=eo(a,u,v,p);return}}ue.flags|=n,x.memoizedState=eo(1|a,u,v,p)}function Mm(n,a){return Ul(8390656,8,n,a)}function ef(n,a){return Yl(2048,8,n,a)}function Am(n,a){return Yl(4,2,n,a)}function Bm(n,a){return Yl(4,4,n,a)}function $m(n,a){if(typeof a=="function")return n=n(),a(n),function(){a(null)};if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function Fm(n,a,u){return u=u!=null?u.concat([n]):null,Yl(4,4,$m.bind(null,a,n),u)}function rf(){}function Rm(n,a){var u=Mr();a=a===void 0?null:a;var p=u.memoizedState;return p!==null&&a!==null&&Qh(a,p[1])?p[0]:(u.memoizedState=[n,a],n)}function Dm(n,a){var u=Mr();a=a===void 0?null:a;var p=u.memoizedState;return p!==null&&a!==null&&Qh(a,p[1])?p[0]:(n=n(),u.memoizedState=[n,a],n)}function Pm(n,a,u){return(Wi&21)===0?(n.baseState&&(n.baseState=!1,ar=!0),n.memoizedState=u):(jr(u,a)||(u=fg(),ue.lanes|=u,Hi|=u,n.baseState=!0),a)}function t_(n,a){var u=Jt;Jt=u!==0&&4>u?u:4,n(!0);var p=Xh.transition;Xh.transition={};try{n(!1),a()}finally{Jt=u,Xh.transition=p}}function Om(){return Mr().memoizedState}function e_(n,a,u){var p=di(n);if(u={lane:p,action:u,hasEagerState:!1,eagerState:null,next:null},Im(n))Nm(a,u);else if(u=gm(n,a,u,p),u!==null){var x=Ge();Yr(u,n,p,x),zm(u,a,p)}}function r_(n,a,u){var p=di(n),x={lane:p,action:u,hasEagerState:!1,eagerState:null,next:null};if(Im(n))Nm(a,x);else{var v=n.alternate;if(n.lanes===0&&(v===null||v.lanes===0)&&(v=a.lastRenderedReducer,v!==null))try{var T=a.lastRenderedState,A=v(T,u);if(x.hasEagerState=!0,x.eagerState=A,jr(A,T)){var D=a.interleaved;D===null?(x.next=x,Hh(a)):(x.next=D.next,D.next=x),a.interleaved=x;return}}catch{}finally{}u=gm(n,a,x,p),u!==null&&(x=Ge(),Yr(u,n,p,x),zm(u,a,p))}}function Im(n){var a=n.alternate;return n===ue||a!==null&&a===ue}function Nm(n,a){Zs=ql=!0;var u=n.pending;u===null?a.next=a:(a.next=u.next,u.next=a),n.pending=a}function zm(n,a,u){if((u&4194240)!==0){var p=a.lanes;p&=n.pendingLanes,u|=p,a.lanes=u,ih(n,u)}}var Vl={readContext:Lr,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useInsertionEffect:Ie,useLayoutEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useMutableSource:Ie,useSyncExternalStore:Ie,useId:Ie,unstable_isNewReconciler:!1},n_={readContext:Lr,useCallback:function(n,a){return ln().memoizedState=[n,a===void 0?null:a],n},useContext:Lr,useEffect:Mm,useImperativeHandle:function(n,a,u){return u=u!=null?u.concat([n]):null,Ul(4194308,4,$m.bind(null,a,n),u)},useLayoutEffect:function(n,a){return Ul(4194308,4,n,a)},useInsertionEffect:function(n,a){return Ul(4,2,n,a)},useMemo:function(n,a){var u=ln();return a=a===void 0?null:a,n=n(),u.memoizedState=[n,a],n},useReducer:function(n,a,u){var p=ln();return a=u!==void 0?u(a):a,p.memoizedState=p.baseState=a,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:a},p.queue=n,n=n.dispatch=e_.bind(null,ue,n),[p.memoizedState,n]},useRef:function(n){var a=ln();return n={current:n},a.memoizedState=n},useState:Em,useDebugValue:rf,useDeferredValue:function(n){return ln().memoizedState=n},useTransition:function(){var n=Em(!1),a=n[0];return n=t_.bind(null,n[1]),ln().memoizedState=n,[a,n]},useMutableSource:function(){},useSyncExternalStore:function(n,a,u){var p=ue,x=ln();if(oe){if(u===void 0)throw Error(r(407));u=u()}else{if(u=a(),Me===null)throw Error(r(349));(Wi&30)!==0||Cm(p,a,u)}x.memoizedState=u;var v={value:u,getSnapshot:a};return x.queue=v,Mm(_m.bind(null,p,v,n),[n]),p.flags|=2048,eo(9,km.bind(null,p,v,u,a),void 0,null),u},useId:function(){var n=ln(),a=Me.identifierPrefix;if(oe){var u=An,p=Mn;u=(p&~(1<<32-zr(p)-1)).toString(32)+u,a=":"+a+"R"+u,u=Js++,0<u&&(a+="H"+u.toString(32)),a+=":"}else u=Jk++,a=":"+a+"r"+u.toString(32)+":";return n.memoizedState=a},unstable_isNewReconciler:!1},i_={readContext:Lr,useCallback:Rm,useContext:Lr,useEffect:ef,useImperativeHandle:Fm,useInsertionEffect:Am,useLayoutEffect:Bm,useMemo:Dm,useReducer:Jh,useRef:Lm,useState:function(){return Jh(to)},useDebugValue:rf,useDeferredValue:function(n){var a=Mr();return Pm(a,we.memoizedState,n)},useTransition:function(){var n=Jh(to)[0],a=Mr().memoizedState;return[n,a]},useMutableSource:bm,useSyncExternalStore:wm,useId:Om,unstable_isNewReconciler:!1},a_={readContext:Lr,useCallback:Rm,useContext:Lr,useEffect:ef,useImperativeHandle:Fm,useInsertionEffect:Am,useLayoutEffect:Bm,useMemo:Dm,useReducer:tf,useRef:Lm,useState:function(){return tf(to)},useDebugValue:rf,useDeferredValue:function(n){var a=Mr();return we===null?a.memoizedState=n:Pm(a,we.memoizedState,n)},useTransition:function(){var n=tf(to)[0],a=Mr().memoizedState;return[n,a]},useMutableSource:bm,useSyncExternalStore:wm,useId:Om,unstable_isNewReconciler:!1};function Hr(n,a){if(n&&n.defaultProps){a=Q({},a),n=n.defaultProps;for(var u in n)a[u]===void 0&&(a[u]=n[u]);return a}return a}function nf(n,a,u,p){a=n.memoizedState,u=u(p,a),u=u==null?a:Q({},a,u),n.memoizedState=u,n.lanes===0&&(n.updateQueue.baseState=u)}var Gl={isMounted:function(n){return(n=n._reactInternals)?an(n)===n:!1},enqueueSetState:function(n,a,u){n=n._reactInternals;var p=Ge(),x=di(n),v=$n(p,x);v.payload=a,u!=null&&(v.callback=u),a=ci(n,v,x),a!==null&&(Yr(a,n,x,p),zl(a,n,x))},enqueueReplaceState:function(n,a,u){n=n._reactInternals;var p=Ge(),x=di(n),v=$n(p,x);v.tag=1,v.payload=a,u!=null&&(v.callback=u),a=ci(n,v,x),a!==null&&(Yr(a,n,x,p),zl(a,n,x))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var u=Ge(),p=di(n),x=$n(u,p);x.tag=2,a!=null&&(x.callback=a),a=ci(n,x,p),a!==null&&(Yr(a,n,p,u),zl(a,n,p))}};function jm(n,a,u,p,x,v,T){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(p,v,T):a.prototype&&a.prototype.isPureReactComponent?!js(u,p)||!js(x,v):!0}function Wm(n,a,u){var p=!1,x=si,v=a.contextType;return typeof v=="object"&&v!==null?v=Lr(v):(x=ir(a)?Oi:Oe.current,p=a.contextTypes,v=(p=p!=null)?Ba(n,x):si),a=new a(u,v),n.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Gl,n.stateNode=a,a._reactInternals=n,p&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=x,n.__reactInternalMemoizedMaskedChildContext=v),a}function Hm(n,a,u,p){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,p),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,p),a.state!==n&&Gl.enqueueReplaceState(a,a.state,null)}function af(n,a,u,p){var x=n.stateNode;x.props=u,x.state=n.memoizedState,x.refs={},qh(n);var v=a.contextType;typeof v=="object"&&v!==null?x.context=Lr(v):(v=ir(a)?Oi:Oe.current,x.context=Ba(n,v)),x.state=n.memoizedState,v=a.getDerivedStateFromProps,typeof v=="function"&&(nf(n,a,v,u),x.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(a=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),a!==x.state&&Gl.enqueueReplaceState(x,x.state,null),jl(n,u,x,p),x.state=n.memoizedState),typeof x.componentDidMount=="function"&&(n.flags|=4194308)}function Na(n,a){try{var u="",p=a;do u+=dt(p),p=p.return;while(p);var x=u}catch(v){x=`
|
|
40
|
+
Error generating stack: `+v.message+`
|
|
41
|
+
`+v.stack}return{value:n,source:a,stack:x,digest:null}}function sf(n,a,u){return{value:n,source:null,stack:u??null,digest:a??null}}function of(n,a){try{console.error(a.value)}catch(u){setTimeout(function(){throw u})}}var s_=typeof WeakMap=="function"?WeakMap:Map;function qm(n,a,u){u=$n(-1,u),u.tag=3,u.payload={element:null};var p=a.value;return u.callback=function(){ec||(ec=!0,Cf=p),of(n,a)},u}function Um(n,a,u){u=$n(-1,u),u.tag=3;var p=n.type.getDerivedStateFromError;if(typeof p=="function"){var x=a.value;u.payload=function(){return p(x)},u.callback=function(){of(n,a)}}var v=n.stateNode;return v!==null&&typeof v.componentDidCatch=="function"&&(u.callback=function(){of(n,a),typeof p!="function"&&(hi===null?hi=new Set([this]):hi.add(this));var T=a.stack;this.componentDidCatch(a.value,{componentStack:T!==null?T:""})}),u}function Ym(n,a,u){var p=n.pingCache;if(p===null){p=n.pingCache=new s_;var x=new Set;p.set(a,x)}else x=p.get(a),x===void 0&&(x=new Set,p.set(a,x));x.has(u)||(x.add(u),n=b_.bind(null,n,a,u),a.then(n,n))}function Vm(n){do{var a;if((a=n.tag===13)&&(a=n.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return n;n=n.return}while(n!==null);return null}function Gm(n,a,u,p,x){return(n.mode&1)===0?(n===a?n.flags|=65536:(n.flags|=128,u.flags|=131072,u.flags&=-52805,u.tag===1&&(u.alternate===null?u.tag=17:(a=$n(-1,1),a.tag=2,ci(u,a,1))),u.lanes|=1),n):(n.flags|=65536,n.lanes=x,n)}var o_=M.ReactCurrentOwner,ar=!1;function Ve(n,a,u,p){a.child=n===null?pm(a,null,u,p):Da(a,n.child,u,p)}function Xm(n,a,u,p,x){u=u.render;var v=a.ref;return Oa(a,x),p=Kh(n,a,u,p,v,x),u=Zh(),n!==null&&!ar?(a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~x,Fn(n,a,x)):(oe&&u&&Rh(a),a.flags|=1,Ve(n,a,p,x),a.child)}function Qm(n,a,u,p,x){if(n===null){var v=u.type;return typeof v=="function"&&!Mf(v)&&v.defaultProps===void 0&&u.compare===null&&u.defaultProps===void 0?(a.tag=15,a.type=v,Km(n,a,v,p,x)):(n=oc(u.type,null,p,a,a.mode,x),n.ref=a.ref,n.return=a,a.child=n)}if(v=n.child,(n.lanes&x)===0){var T=v.memoizedProps;if(u=u.compare,u=u!==null?u:js,u(T,p)&&n.ref===a.ref)return Fn(n,a,x)}return a.flags|=1,n=gi(v,p),n.ref=a.ref,n.return=a,a.child=n}function Km(n,a,u,p,x){if(n!==null){var v=n.memoizedProps;if(js(v,p)&&n.ref===a.ref)if(ar=!1,a.pendingProps=p=v,(n.lanes&x)!==0)(n.flags&131072)!==0&&(ar=!0);else return a.lanes=n.lanes,Fn(n,a,x)}return lf(n,a,u,p,x)}function Zm(n,a,u){var p=a.pendingProps,x=p.children,v=n!==null?n.memoizedState:null;if(p.mode==="hidden")if((a.mode&1)===0)a.memoizedState={baseLanes:0,cachePool:null,transitions:null},re(ja,xr),xr|=u;else{if((u&1073741824)===0)return n=v!==null?v.baseLanes|u:u,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:n,cachePool:null,transitions:null},a.updateQueue=null,re(ja,xr),xr|=n,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},p=v!==null?v.baseLanes:u,re(ja,xr),xr|=p}else v!==null?(p=v.baseLanes|u,a.memoizedState=null):p=u,re(ja,xr),xr|=p;return Ve(n,a,x,u),a.child}function Jm(n,a){var u=a.ref;(n===null&&u!==null||n!==null&&n.ref!==u)&&(a.flags|=512,a.flags|=2097152)}function lf(n,a,u,p,x){var v=ir(u)?Oi:Oe.current;return v=Ba(a,v),Oa(a,x),u=Kh(n,a,u,p,v,x),p=Zh(),n!==null&&!ar?(a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~x,Fn(n,a,x)):(oe&&p&&Rh(a),a.flags|=1,Ve(n,a,u,x),a.child)}function t0(n,a,u,p,x){if(ir(u)){var v=!0;$l(a)}else v=!1;if(Oa(a,x),a.stateNode===null)Ql(n,a),Wm(a,u,p),af(a,u,p,x),p=!0;else if(n===null){var T=a.stateNode,A=a.memoizedProps;T.props=A;var D=T.context,Y=u.contextType;typeof Y=="object"&&Y!==null?Y=Lr(Y):(Y=ir(u)?Oi:Oe.current,Y=Ba(a,Y));var nt=u.getDerivedStateFromProps,it=typeof nt=="function"||typeof T.getSnapshotBeforeUpdate=="function";it||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(A!==p||D!==Y)&&Hm(a,T,p,Y),li=!1;var rt=a.memoizedState;T.state=rt,jl(a,p,T,x),D=a.memoizedState,A!==p||rt!==D||nr.current||li?(typeof nt=="function"&&(nf(a,u,nt,p),D=a.memoizedState),(A=li||jm(a,u,A,p,rt,D,Y))?(it||typeof T.UNSAFE_componentWillMount!="function"&&typeof T.componentWillMount!="function"||(typeof T.componentWillMount=="function"&&T.componentWillMount(),typeof T.UNSAFE_componentWillMount=="function"&&T.UNSAFE_componentWillMount()),typeof T.componentDidMount=="function"&&(a.flags|=4194308)):(typeof T.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=p,a.memoizedState=D),T.props=p,T.state=D,T.context=Y,p=A):(typeof T.componentDidMount=="function"&&(a.flags|=4194308),p=!1)}else{T=a.stateNode,mm(n,a),A=a.memoizedProps,Y=a.type===a.elementType?A:Hr(a.type,A),T.props=Y,it=a.pendingProps,rt=T.context,D=u.contextType,typeof D=="object"&&D!==null?D=Lr(D):(D=ir(u)?Oi:Oe.current,D=Ba(a,D));var pt=u.getDerivedStateFromProps;(nt=typeof pt=="function"||typeof T.getSnapshotBeforeUpdate=="function")||typeof T.UNSAFE_componentWillReceiveProps!="function"&&typeof T.componentWillReceiveProps!="function"||(A!==it||rt!==D)&&Hm(a,T,p,D),li=!1,rt=a.memoizedState,T.state=rt,jl(a,p,T,x);var yt=a.memoizedState;A!==it||rt!==yt||nr.current||li?(typeof pt=="function"&&(nf(a,u,pt,p),yt=a.memoizedState),(Y=li||jm(a,u,Y,p,rt,yt,D)||!1)?(nt||typeof T.UNSAFE_componentWillUpdate!="function"&&typeof T.componentWillUpdate!="function"||(typeof T.componentWillUpdate=="function"&&T.componentWillUpdate(p,yt,D),typeof T.UNSAFE_componentWillUpdate=="function"&&T.UNSAFE_componentWillUpdate(p,yt,D)),typeof T.componentDidUpdate=="function"&&(a.flags|=4),typeof T.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof T.componentDidUpdate!="function"||A===n.memoizedProps&&rt===n.memoizedState||(a.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||A===n.memoizedProps&&rt===n.memoizedState||(a.flags|=1024),a.memoizedProps=p,a.memoizedState=yt),T.props=p,T.state=yt,T.context=D,p=Y):(typeof T.componentDidUpdate!="function"||A===n.memoizedProps&&rt===n.memoizedState||(a.flags|=4),typeof T.getSnapshotBeforeUpdate!="function"||A===n.memoizedProps&&rt===n.memoizedState||(a.flags|=1024),p=!1)}return cf(n,a,u,p,v,x)}function cf(n,a,u,p,x,v){Jm(n,a);var T=(a.flags&128)!==0;if(!p&&!T)return x&&am(a,u,!1),Fn(n,a,v);p=a.stateNode,o_.current=a;var A=T&&typeof u.getDerivedStateFromError!="function"?null:p.render();return a.flags|=1,n!==null&&T?(a.child=Da(a,n.child,null,v),a.child=Da(a,null,A,v)):Ve(n,a,A,v),a.memoizedState=p.state,x&&am(a,u,!0),a.child}function e0(n){var a=n.stateNode;a.pendingContext?nm(n,a.pendingContext,a.pendingContext!==a.context):a.context&&nm(n,a.context,!1),Uh(n,a.containerInfo)}function r0(n,a,u,p,x){return Ra(),Ih(x),a.flags|=256,Ve(n,a,u,p),a.child}var uf={dehydrated:null,treeContext:null,retryLane:0};function hf(n){return{baseLanes:n,cachePool:null,transitions:null}}function n0(n,a,u){var p=a.pendingProps,x=ce.current,v=!1,T=(a.flags&128)!==0,A;if((A=T)||(A=n!==null&&n.memoizedState===null?!1:(x&2)!==0),A?(v=!0,a.flags&=-129):(n===null||n.memoizedState!==null)&&(x|=1),re(ce,x&1),n===null)return Oh(a),n=a.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((a.mode&1)===0?a.lanes=1:n.data==="$!"?a.lanes=8:a.lanes=1073741824,null):(T=p.children,n=p.fallback,v?(p=a.mode,v=a.child,T={mode:"hidden",children:T},(p&1)===0&&v!==null?(v.childLanes=0,v.pendingProps=T):v=lc(T,p,0,null),n=Vi(n,p,u,null),v.return=a,n.return=a,v.sibling=n,a.child=v,a.child.memoizedState=hf(u),a.memoizedState=uf,n):ff(a,T));if(x=n.memoizedState,x!==null&&(A=x.dehydrated,A!==null))return l_(n,a,T,p,A,x,u);if(v){v=p.fallback,T=a.mode,x=n.child,A=x.sibling;var D={mode:"hidden",children:p.children};return(T&1)===0&&a.child!==x?(p=a.child,p.childLanes=0,p.pendingProps=D,a.deletions=null):(p=gi(x,D),p.subtreeFlags=x.subtreeFlags&14680064),A!==null?v=gi(A,v):(v=Vi(v,T,u,null),v.flags|=2),v.return=a,p.return=a,p.sibling=v,a.child=p,p=v,v=a.child,T=n.child.memoizedState,T=T===null?hf(u):{baseLanes:T.baseLanes|u,cachePool:null,transitions:T.transitions},v.memoizedState=T,v.childLanes=n.childLanes&~u,a.memoizedState=uf,p}return v=n.child,n=v.sibling,p=gi(v,{mode:"visible",children:p.children}),(a.mode&1)===0&&(p.lanes=u),p.return=a,p.sibling=null,n!==null&&(u=a.deletions,u===null?(a.deletions=[n],a.flags|=16):u.push(n)),a.child=p,a.memoizedState=null,p}function ff(n,a){return a=lc({mode:"visible",children:a},n.mode,0,null),a.return=n,n.child=a}function Xl(n,a,u,p){return p!==null&&Ih(p),Da(a,n.child,null,u),n=ff(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function l_(n,a,u,p,x,v,T){if(u)return a.flags&256?(a.flags&=-257,p=sf(Error(r(422))),Xl(n,a,T,p)):a.memoizedState!==null?(a.child=n.child,a.flags|=128,null):(v=p.fallback,x=a.mode,p=lc({mode:"visible",children:p.children},x,0,null),v=Vi(v,x,T,null),v.flags|=2,p.return=a,v.return=a,p.sibling=v,a.child=p,(a.mode&1)!==0&&Da(a,n.child,null,T),a.child.memoizedState=hf(T),a.memoizedState=uf,v);if((a.mode&1)===0)return Xl(n,a,T,null);if(x.data==="$!"){if(p=x.nextSibling&&x.nextSibling.dataset,p)var A=p.dgst;return p=A,v=Error(r(419)),p=sf(v,p,void 0),Xl(n,a,T,p)}if(A=(T&n.childLanes)!==0,ar||A){if(p=Me,p!==null){switch(T&-T){case 4:x=2;break;case 16:x=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:x=32;break;case 536870912:x=268435456;break;default:x=0}x=(x&(p.suspendedLanes|T))!==0?0:x,x!==0&&x!==v.retryLane&&(v.retryLane=x,Bn(n,x),Yr(p,n,x,-1))}return Lf(),p=sf(Error(r(421))),Xl(n,a,T,p)}return x.data==="$?"?(a.flags|=128,a.child=n.child,a=w_.bind(null,n),x._reactRetry=a,null):(n=v.treeContext,yr=ii(x.nextSibling),mr=a,oe=!0,Wr=null,n!==null&&(Tr[Er++]=Mn,Tr[Er++]=An,Tr[Er++]=Ii,Mn=n.id,An=n.overflow,Ii=a),a=ff(a,p.children),a.flags|=4096,a)}function i0(n,a,u){n.lanes|=a;var p=n.alternate;p!==null&&(p.lanes|=a),Wh(n.return,a,u)}function df(n,a,u,p,x){var v=n.memoizedState;v===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:p,tail:u,tailMode:x}:(v.isBackwards=a,v.rendering=null,v.renderingStartTime=0,v.last=p,v.tail=u,v.tailMode=x)}function a0(n,a,u){var p=a.pendingProps,x=p.revealOrder,v=p.tail;if(Ve(n,a,p.children,u),p=ce.current,(p&2)!==0)p=p&1|2,a.flags|=128;else{if(n!==null&&(n.flags&128)!==0)t:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&i0(n,u,a);else if(n.tag===19)i0(n,u,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break t;for(;n.sibling===null;){if(n.return===null||n.return===a)break t;n=n.return}n.sibling.return=n.return,n=n.sibling}p&=1}if(re(ce,p),(a.mode&1)===0)a.memoizedState=null;else switch(x){case"forwards":for(u=a.child,x=null;u!==null;)n=u.alternate,n!==null&&Wl(n)===null&&(x=u),u=u.sibling;u=x,u===null?(x=a.child,a.child=null):(x=u.sibling,u.sibling=null),df(a,!1,x,u,v);break;case"backwards":for(u=null,x=a.child,a.child=null;x!==null;){if(n=x.alternate,n!==null&&Wl(n)===null){a.child=x;break}n=x.sibling,x.sibling=u,u=x,x=n}df(a,!0,u,null,v);break;case"together":df(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Ql(n,a){(a.mode&1)===0&&n!==null&&(n.alternate=null,a.alternate=null,a.flags|=2)}function Fn(n,a,u){if(n!==null&&(a.dependencies=n.dependencies),Hi|=a.lanes,(u&a.childLanes)===0)return null;if(n!==null&&a.child!==n.child)throw Error(r(153));if(a.child!==null){for(n=a.child,u=gi(n,n.pendingProps),a.child=u,u.return=a;n.sibling!==null;)n=n.sibling,u=u.sibling=gi(n,n.pendingProps),u.return=a;u.sibling=null}return a.child}function c_(n,a,u){switch(a.tag){case 3:e0(a),Ra();break;case 5:vm(a);break;case 1:ir(a.type)&&$l(a);break;case 4:Uh(a,a.stateNode.containerInfo);break;case 10:var p=a.type._context,x=a.memoizedProps.value;re(Il,p._currentValue),p._currentValue=x;break;case 13:if(p=a.memoizedState,p!==null)return p.dehydrated!==null?(re(ce,ce.current&1),a.flags|=128,null):(u&a.child.childLanes)!==0?n0(n,a,u):(re(ce,ce.current&1),n=Fn(n,a,u),n!==null?n.sibling:null);re(ce,ce.current&1);break;case 19:if(p=(u&a.childLanes)!==0,(n.flags&128)!==0){if(p)return a0(n,a,u);a.flags|=128}if(x=a.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),re(ce,ce.current),p)break;return null;case 22:case 23:return a.lanes=0,Zm(n,a,u)}return Fn(n,a,u)}var s0,pf,o0,l0;s0=function(n,a){for(var u=a.child;u!==null;){if(u.tag===5||u.tag===6)n.appendChild(u.stateNode);else if(u.tag!==4&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break;for(;u.sibling===null;){if(u.return===null||u.return===a)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},pf=function(){},o0=function(n,a,u,p){var x=n.memoizedProps;if(x!==p){n=a.stateNode,ji(on.current);var v=null;switch(u){case"input":x=kr(n,x),p=kr(n,p),v=[];break;case"select":x=Q({},x,{value:void 0}),p=Q({},p,{value:void 0}),v=[];break;case"textarea":x=xa(n,x),p=xa(n,p),v=[];break;default:typeof x.onClick!="function"&&typeof p.onClick=="function"&&(n.onclick=Ml)}nn(u,p);var T;u=null;for(Y in x)if(!p.hasOwnProperty(Y)&&x.hasOwnProperty(Y)&&x[Y]!=null)if(Y==="style"){var A=x[Y];for(T in A)A.hasOwnProperty(T)&&(u||(u={}),u[T]="")}else Y!=="dangerouslySetInnerHTML"&&Y!=="children"&&Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&Y!=="autoFocus"&&(s.hasOwnProperty(Y)?v||(v=[]):(v=v||[]).push(Y,null));for(Y in p){var D=p[Y];if(A=x!=null?x[Y]:void 0,p.hasOwnProperty(Y)&&D!==A&&(D!=null||A!=null))if(Y==="style")if(A){for(T in A)!A.hasOwnProperty(T)||D&&D.hasOwnProperty(T)||(u||(u={}),u[T]="");for(T in D)D.hasOwnProperty(T)&&A[T]!==D[T]&&(u||(u={}),u[T]=D[T])}else u||(v||(v=[]),v.push(Y,u)),u=D;else Y==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,A=A?A.__html:void 0,D!=null&&A!==D&&(v=v||[]).push(Y,D)):Y==="children"?typeof D!="string"&&typeof D!="number"||(v=v||[]).push(Y,""+D):Y!=="suppressContentEditableWarning"&&Y!=="suppressHydrationWarning"&&(s.hasOwnProperty(Y)?(D!=null&&Y==="onScroll"&&ie("scroll",n),v||A===D||(v=[])):(v=v||[]).push(Y,D))}u&&(v=v||[]).push("style",u);var Y=v;(a.updateQueue=Y)&&(a.flags|=4)}},l0=function(n,a,u,p){u!==p&&(a.flags|=4)};function ro(n,a){if(!oe)switch(n.tailMode){case"hidden":a=n.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?n.tail=null:u.sibling=null;break;case"collapsed":u=n.tail;for(var p=null;u!==null;)u.alternate!==null&&(p=u),u=u.sibling;p===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:p.sibling=null}}function Ne(n){var a=n.alternate!==null&&n.alternate.child===n.child,u=0,p=0;if(a)for(var x=n.child;x!==null;)u|=x.lanes|x.childLanes,p|=x.subtreeFlags&14680064,p|=x.flags&14680064,x.return=n,x=x.sibling;else for(x=n.child;x!==null;)u|=x.lanes|x.childLanes,p|=x.subtreeFlags,p|=x.flags,x.return=n,x=x.sibling;return n.subtreeFlags|=p,n.childLanes=u,a}function u_(n,a,u){var p=a.pendingProps;switch(Dh(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(a),null;case 1:return ir(a.type)&&Bl(),Ne(a),null;case 3:return p=a.stateNode,Ia(),ae(nr),ae(Oe),Gh(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(n===null||n.child===null)&&(Pl(a)?a.flags|=4:n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Wr!==null&&(Sf(Wr),Wr=null))),pf(n,a),Ne(a),null;case 5:Yh(a);var x=ji(Ks.current);if(u=a.type,n!==null&&a.stateNode!=null)o0(n,a,u,p,x),n.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!p){if(a.stateNode===null)throw Error(r(166));return Ne(a),null}if(n=ji(on.current),Pl(a)){p=a.stateNode,u=a.type;var v=a.memoizedProps;switch(p[sn]=a,p[Ys]=v,n=(a.mode&1)!==0,u){case"dialog":ie("cancel",p),ie("close",p);break;case"iframe":case"object":case"embed":ie("load",p);break;case"video":case"audio":for(x=0;x<Hs.length;x++)ie(Hs[x],p);break;case"source":ie("error",p);break;case"img":case"image":case"link":ie("error",p),ie("load",p);break;case"details":ie("toggle",p);break;case"input":en(p,v),ie("invalid",p);break;case"select":p._wrapperState={wasMultiple:!!v.multiple},ie("invalid",p);break;case"textarea":al(p,v),ie("invalid",p)}nn(u,v),x=null;for(var T in v)if(v.hasOwnProperty(T)){var A=v[T];T==="children"?typeof A=="string"?p.textContent!==A&&(v.suppressHydrationWarning!==!0&&Ll(p.textContent,A,n),x=["children",A]):typeof A=="number"&&p.textContent!==""+A&&(v.suppressHydrationWarning!==!0&&Ll(p.textContent,A,n),x=["children",""+A]):s.hasOwnProperty(T)&&A!=null&&T==="onScroll"&&ie("scroll",p)}switch(u){case"input":ne(p),wn(p,v,!0);break;case"textarea":ne(p),Un(p);break;case"select":case"option":break;default:typeof v.onClick=="function"&&(p.onclick=Ml)}p=x,a.updateQueue=p,p!==null&&(a.flags|=4)}else{T=x.nodeType===9?x:x.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=kn(u)),n==="http://www.w3.org/1999/xhtml"?u==="script"?(n=T.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof p.is=="string"?n=T.createElement(u,{is:p.is}):(n=T.createElement(u),u==="select"&&(T=n,p.multiple?T.multiple=!0:p.size&&(T.size=p.size))):n=T.createElementNS(n,u),n[sn]=a,n[Ys]=p,s0(n,a,!1,!1),a.stateNode=n;t:{switch(T=$i(u,p),u){case"dialog":ie("cancel",n),ie("close",n),x=p;break;case"iframe":case"object":case"embed":ie("load",n),x=p;break;case"video":case"audio":for(x=0;x<Hs.length;x++)ie(Hs[x],n);x=p;break;case"source":ie("error",n),x=p;break;case"img":case"image":case"link":ie("error",n),ie("load",n),x=p;break;case"details":ie("toggle",n),x=p;break;case"input":en(n,p),x=kr(n,p),ie("invalid",n);break;case"option":x=p;break;case"select":n._wrapperState={wasMultiple:!!p.multiple},x=Q({},p,{value:void 0}),ie("invalid",n);break;case"textarea":al(n,p),x=xa(n,p),ie("invalid",n);break;default:x=p}nn(u,x),A=x;for(v in A)if(A.hasOwnProperty(v)){var D=A[v];v==="style"?Bi(n,D):v==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,D!=null&&ws(n,D)):v==="children"?typeof D=="string"?(u!=="textarea"||D!=="")&&Vn(n,D):typeof D=="number"&&Vn(n,""+D):v!=="suppressContentEditableWarning"&&v!=="suppressHydrationWarning"&&v!=="autoFocus"&&(s.hasOwnProperty(v)?D!=null&&v==="onScroll"&&ie("scroll",n):D!=null&&E(n,v,D,T))}switch(u){case"input":ne(n),wn(n,p,!1);break;case"textarea":ne(n),Un(n);break;case"option":p.value!=null&&n.setAttribute("value",""+Lt(p.value));break;case"select":n.multiple=!!p.multiple,v=p.value,v!=null?Cn(n,!!p.multiple,v,!1):p.defaultValue!=null&&Cn(n,!!p.multiple,p.defaultValue,!0);break;default:typeof x.onClick=="function"&&(n.onclick=Ml)}switch(u){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break t;case"img":p=!0;break t;default:p=!1}}p&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return Ne(a),null;case 6:if(n&&a.stateNode!=null)l0(n,a,n.memoizedProps,p);else{if(typeof p!="string"&&a.stateNode===null)throw Error(r(166));if(u=ji(Ks.current),ji(on.current),Pl(a)){if(p=a.stateNode,u=a.memoizedProps,p[sn]=a,(v=p.nodeValue!==u)&&(n=mr,n!==null))switch(n.tag){case 3:Ll(p.nodeValue,u,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&Ll(p.nodeValue,u,(n.mode&1)!==0)}v&&(a.flags|=4)}else p=(u.nodeType===9?u:u.ownerDocument).createTextNode(p),p[sn]=a,a.stateNode=p}return Ne(a),null;case 13:if(ae(ce),p=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(oe&&yr!==null&&(a.mode&1)!==0&&(a.flags&128)===0)hm(),Ra(),a.flags|=98560,v=!1;else if(v=Pl(a),p!==null&&p.dehydrated!==null){if(n===null){if(!v)throw Error(r(318));if(v=a.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[sn]=a}else Ra(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ne(a),v=!1}else Wr!==null&&(Sf(Wr),Wr=null),v=!0;if(!v)return a.flags&65536?a:null}return(a.flags&128)!==0?(a.lanes=u,a):(p=p!==null,p!==(n!==null&&n.memoizedState!==null)&&p&&(a.child.flags|=8192,(a.mode&1)!==0&&(n===null||(ce.current&1)!==0?Ce===0&&(Ce=3):Lf())),a.updateQueue!==null&&(a.flags|=4),Ne(a),null);case 4:return Ia(),pf(n,a),n===null&&qs(a.stateNode.containerInfo),Ne(a),null;case 10:return jh(a.type._context),Ne(a),null;case 17:return ir(a.type)&&Bl(),Ne(a),null;case 19:if(ae(ce),v=a.memoizedState,v===null)return Ne(a),null;if(p=(a.flags&128)!==0,T=v.rendering,T===null)if(p)ro(v,!1);else{if(Ce!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(T=Wl(n),T!==null){for(a.flags|=128,ro(v,!1),p=T.updateQueue,p!==null&&(a.updateQueue=p,a.flags|=4),a.subtreeFlags=0,p=u,u=a.child;u!==null;)v=u,n=p,v.flags&=14680066,T=v.alternate,T===null?(v.childLanes=0,v.lanes=n,v.child=null,v.subtreeFlags=0,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null):(v.childLanes=T.childLanes,v.lanes=T.lanes,v.child=T.child,v.subtreeFlags=0,v.deletions=null,v.memoizedProps=T.memoizedProps,v.memoizedState=T.memoizedState,v.updateQueue=T.updateQueue,v.type=T.type,n=T.dependencies,v.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),u=u.sibling;return re(ce,ce.current&1|2),a.child}n=n.sibling}v.tail!==null&&Wt()>Wa&&(a.flags|=128,p=!0,ro(v,!1),a.lanes=4194304)}else{if(!p)if(n=Wl(T),n!==null){if(a.flags|=128,p=!0,u=n.updateQueue,u!==null&&(a.updateQueue=u,a.flags|=4),ro(v,!0),v.tail===null&&v.tailMode==="hidden"&&!T.alternate&&!oe)return Ne(a),null}else 2*Wt()-v.renderingStartTime>Wa&&u!==1073741824&&(a.flags|=128,p=!0,ro(v,!1),a.lanes=4194304);v.isBackwards?(T.sibling=a.child,a.child=T):(u=v.last,u!==null?u.sibling=T:a.child=T,v.last=T)}return v.tail!==null?(a=v.tail,v.rendering=a,v.tail=a.sibling,v.renderingStartTime=Wt(),a.sibling=null,u=ce.current,re(ce,p?u&1|2:u&1),a):(Ne(a),null);case 22:case 23:return Ef(),p=a.memoizedState!==null,n!==null&&n.memoizedState!==null!==p&&(a.flags|=8192),p&&(a.mode&1)!==0?(xr&1073741824)!==0&&(Ne(a),a.subtreeFlags&6&&(a.flags|=8192)):Ne(a),null;case 24:return null;case 25:return null}throw Error(r(156,a.tag))}function h_(n,a){switch(Dh(a),a.tag){case 1:return ir(a.type)&&Bl(),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return Ia(),ae(nr),ae(Oe),Gh(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 5:return Yh(a),null;case 13:if(ae(ce),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(r(340));Ra()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return ae(ce),null;case 4:return Ia(),null;case 10:return jh(a.type._context),null;case 22:case 23:return Ef(),null;case 24:return null;default:return null}}var Kl=!1,ze=!1,f_=typeof WeakSet=="function"?WeakSet:Set,mt=null;function za(n,a){var u=n.ref;if(u!==null)if(typeof u=="function")try{u(null)}catch(p){pe(n,a,p)}else u.current=null}function gf(n,a,u){try{u()}catch(p){pe(n,a,p)}}var c0=!1;function d_(n,a){if(Th=yl,n=jg(),xh(n)){if("selectionStart"in n)var u={start:n.selectionStart,end:n.selectionEnd};else t:{u=(u=n.ownerDocument)&&u.defaultView||window;var p=u.getSelection&&u.getSelection();if(p&&p.rangeCount!==0){u=p.anchorNode;var x=p.anchorOffset,v=p.focusNode;p=p.focusOffset;try{u.nodeType,v.nodeType}catch{u=null;break t}var T=0,A=-1,D=-1,Y=0,nt=0,it=n,rt=null;e:for(;;){for(var pt;it!==u||x!==0&&it.nodeType!==3||(A=T+x),it!==v||p!==0&&it.nodeType!==3||(D=T+p),it.nodeType===3&&(T+=it.nodeValue.length),(pt=it.firstChild)!==null;)rt=it,it=pt;for(;;){if(it===n)break e;if(rt===u&&++Y===x&&(A=T),rt===v&&++nt===p&&(D=T),(pt=it.nextSibling)!==null)break;it=rt,rt=it.parentNode}it=pt}u=A===-1||D===-1?null:{start:A,end:D}}else u=null}u=u||{start:0,end:0}}else u=null;for(Eh={focusedElem:n,selectionRange:u},yl=!1,mt=a;mt!==null;)if(a=mt,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,mt=n;else for(;mt!==null;){a=mt;try{var yt=a.alternate;if((a.flags&1024)!==0)switch(a.tag){case 0:case 11:case 15:break;case 1:if(yt!==null){var _t=yt.memoizedProps,me=yt.memoizedState,j=a.stateNode,I=j.getSnapshotBeforeUpdate(a.elementType===a.type?_t:Hr(a.type,_t),me);j.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var H=a.stateNode.containerInfo;H.nodeType===1?H.textContent="":H.nodeType===9&&H.documentElement&&H.removeChild(H.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(st){pe(a,a.return,st)}if(n=a.sibling,n!==null){n.return=a.return,mt=n;break}mt=a.return}return yt=c0,c0=!1,yt}function no(n,a,u){var p=a.updateQueue;if(p=p!==null?p.lastEffect:null,p!==null){var x=p=p.next;do{if((x.tag&n)===n){var v=x.destroy;x.destroy=void 0,v!==void 0&&gf(a,u,v)}x=x.next}while(x!==p)}}function Zl(n,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var u=a=a.next;do{if((u.tag&n)===n){var p=u.create;u.destroy=p()}u=u.next}while(u!==a)}}function mf(n){var a=n.ref;if(a!==null){var u=n.stateNode;switch(n.tag){case 5:n=u;break;default:n=u}typeof a=="function"?a(n):a.current=n}}function u0(n){var a=n.alternate;a!==null&&(n.alternate=null,u0(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&(delete a[sn],delete a[Ys],delete a[Bh],delete a[Xk],delete a[Qk])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function h0(n){return n.tag===5||n.tag===3||n.tag===4}function f0(n){t:for(;;){for(;n.sibling===null;){if(n.return===null||h0(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function yf(n,a,u){var p=n.tag;if(p===5||p===6)n=n.stateNode,a?u.nodeType===8?u.parentNode.insertBefore(n,a):u.insertBefore(n,a):(u.nodeType===8?(a=u.parentNode,a.insertBefore(n,u)):(a=u,a.appendChild(n)),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=Ml));else if(p!==4&&(n=n.child,n!==null))for(yf(n,a,u),n=n.sibling;n!==null;)yf(n,a,u),n=n.sibling}function xf(n,a,u){var p=n.tag;if(p===5||p===6)n=n.stateNode,a?u.insertBefore(n,a):u.appendChild(n);else if(p!==4&&(n=n.child,n!==null))for(xf(n,a,u),n=n.sibling;n!==null;)xf(n,a,u),n=n.sibling}var $e=null,qr=!1;function ui(n,a,u){for(u=u.child;u!==null;)d0(n,a,u),u=u.sibling}function d0(n,a,u){if(pr&&typeof pr.onCommitFiberUnmount=="function")try{pr.onCommitFiberUnmount(Di,u)}catch{}switch(u.tag){case 5:ze||za(u,a);case 6:var p=$e,x=qr;$e=null,ui(n,a,u),$e=p,qr=x,$e!==null&&(qr?(n=$e,u=u.stateNode,n.nodeType===8?n.parentNode.removeChild(u):n.removeChild(u)):$e.removeChild(u.stateNode));break;case 18:$e!==null&&(qr?(n=$e,u=u.stateNode,n.nodeType===8?Ah(n.parentNode,u):n.nodeType===1&&Ah(n,u),Ds(n)):Ah($e,u.stateNode));break;case 4:p=$e,x=qr,$e=u.stateNode.containerInfo,qr=!0,ui(n,a,u),$e=p,qr=x;break;case 0:case 11:case 14:case 15:if(!ze&&(p=u.updateQueue,p!==null&&(p=p.lastEffect,p!==null))){x=p=p.next;do{var v=x,T=v.destroy;v=v.tag,T!==void 0&&((v&2)!==0||(v&4)!==0)&&gf(u,a,T),x=x.next}while(x!==p)}ui(n,a,u);break;case 1:if(!ze&&(za(u,a),p=u.stateNode,typeof p.componentWillUnmount=="function"))try{p.props=u.memoizedProps,p.state=u.memoizedState,p.componentWillUnmount()}catch(A){pe(u,a,A)}ui(n,a,u);break;case 21:ui(n,a,u);break;case 22:u.mode&1?(ze=(p=ze)||u.memoizedState!==null,ui(n,a,u),ze=p):ui(n,a,u);break;default:ui(n,a,u)}}function p0(n){var a=n.updateQueue;if(a!==null){n.updateQueue=null;var u=n.stateNode;u===null&&(u=n.stateNode=new f_),a.forEach(function(p){var x=C_.bind(null,n,p);u.has(p)||(u.add(p),p.then(x,x))})}}function Ur(n,a){var u=a.deletions;if(u!==null)for(var p=0;p<u.length;p++){var x=u[p];try{var v=n,T=a,A=T;t:for(;A!==null;){switch(A.tag){case 5:$e=A.stateNode,qr=!1;break t;case 3:$e=A.stateNode.containerInfo,qr=!0;break t;case 4:$e=A.stateNode.containerInfo,qr=!0;break t}A=A.return}if($e===null)throw Error(r(160));d0(v,T,x),$e=null,qr=!1;var D=x.alternate;D!==null&&(D.return=null),x.return=null}catch(Y){pe(x,a,Y)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)g0(a,n),a=a.sibling}function g0(n,a){var u=n.alternate,p=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(Ur(a,n),cn(n),p&4){try{no(3,n,n.return),Zl(3,n)}catch(_t){pe(n,n.return,_t)}try{no(5,n,n.return)}catch(_t){pe(n,n.return,_t)}}break;case 1:Ur(a,n),cn(n),p&512&&u!==null&&za(u,u.return);break;case 5:if(Ur(a,n),cn(n),p&512&&u!==null&&za(u,u.return),n.flags&32){var x=n.stateNode;try{Vn(x,"")}catch(_t){pe(n,n.return,_t)}}if(p&4&&(x=n.stateNode,x!=null)){var v=n.memoizedProps,T=u!==null?u.memoizedProps:v,A=n.type,D=n.updateQueue;if(n.updateQueue=null,D!==null)try{A==="input"&&v.type==="radio"&&v.name!=null&&ya(x,v),$i(A,T);var Y=$i(A,v);for(T=0;T<D.length;T+=2){var nt=D[T],it=D[T+1];nt==="style"?Bi(x,it):nt==="dangerouslySetInnerHTML"?ws(x,it):nt==="children"?Vn(x,it):E(x,nt,it,Y)}switch(A){case"input":Mi(x,v);break;case"textarea":va(x,v);break;case"select":var rt=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!v.multiple;var pt=v.value;pt!=null?Cn(x,!!v.multiple,pt,!1):rt!==!!v.multiple&&(v.defaultValue!=null?Cn(x,!!v.multiple,v.defaultValue,!0):Cn(x,!!v.multiple,v.multiple?[]:"",!1))}x[Ys]=v}catch(_t){pe(n,n.return,_t)}}break;case 6:if(Ur(a,n),cn(n),p&4){if(n.stateNode===null)throw Error(r(162));x=n.stateNode,v=n.memoizedProps;try{x.nodeValue=v}catch(_t){pe(n,n.return,_t)}}break;case 3:if(Ur(a,n),cn(n),p&4&&u!==null&&u.memoizedState.isDehydrated)try{Ds(a.containerInfo)}catch(_t){pe(n,n.return,_t)}break;case 4:Ur(a,n),cn(n);break;case 13:Ur(a,n),cn(n),x=n.child,x.flags&8192&&(v=x.memoizedState!==null,x.stateNode.isHidden=v,!v||x.alternate!==null&&x.alternate.memoizedState!==null||(wf=Wt())),p&4&&p0(n);break;case 22:if(nt=u!==null&&u.memoizedState!==null,n.mode&1?(ze=(Y=ze)||nt,Ur(a,n),ze=Y):Ur(a,n),cn(n),p&8192){if(Y=n.memoizedState!==null,(n.stateNode.isHidden=Y)&&!nt&&(n.mode&1)!==0)for(mt=n,nt=n.child;nt!==null;){for(it=mt=nt;mt!==null;){switch(rt=mt,pt=rt.child,rt.tag){case 0:case 11:case 14:case 15:no(4,rt,rt.return);break;case 1:za(rt,rt.return);var yt=rt.stateNode;if(typeof yt.componentWillUnmount=="function"){p=rt,u=rt.return;try{a=p,yt.props=a.memoizedProps,yt.state=a.memoizedState,yt.componentWillUnmount()}catch(_t){pe(p,u,_t)}}break;case 5:za(rt,rt.return);break;case 22:if(rt.memoizedState!==null){x0(it);continue}}pt!==null?(pt.return=rt,mt=pt):x0(it)}nt=nt.sibling}t:for(nt=null,it=n;;){if(it.tag===5){if(nt===null){nt=it;try{x=it.stateNode,Y?(v=x.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none"):(A=it.stateNode,D=it.memoizedProps.style,T=D!=null&&D.hasOwnProperty("display")?D.display:null,A.style.display=Ai("display",T))}catch(_t){pe(n,n.return,_t)}}}else if(it.tag===6){if(nt===null)try{it.stateNode.nodeValue=Y?"":it.memoizedProps}catch(_t){pe(n,n.return,_t)}}else if((it.tag!==22&&it.tag!==23||it.memoizedState===null||it===n)&&it.child!==null){it.child.return=it,it=it.child;continue}if(it===n)break t;for(;it.sibling===null;){if(it.return===null||it.return===n)break t;nt===it&&(nt=null),it=it.return}nt===it&&(nt=null),it.sibling.return=it.return,it=it.sibling}}break;case 19:Ur(a,n),cn(n),p&4&&p0(n);break;case 21:break;default:Ur(a,n),cn(n)}}function cn(n){var a=n.flags;if(a&2){try{t:{for(var u=n.return;u!==null;){if(h0(u)){var p=u;break t}u=u.return}throw Error(r(160))}switch(p.tag){case 5:var x=p.stateNode;p.flags&32&&(Vn(x,""),p.flags&=-33);var v=f0(n);xf(n,v,x);break;case 3:case 4:var T=p.stateNode.containerInfo,A=f0(n);yf(n,A,T);break;default:throw Error(r(161))}}catch(D){pe(n,n.return,D)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function p_(n,a,u){mt=n,m0(n)}function m0(n,a,u){for(var p=(n.mode&1)!==0;mt!==null;){var x=mt,v=x.child;if(x.tag===22&&p){var T=x.memoizedState!==null||Kl;if(!T){var A=x.alternate,D=A!==null&&A.memoizedState!==null||ze;A=Kl;var Y=ze;if(Kl=T,(ze=D)&&!Y)for(mt=x;mt!==null;)T=mt,D=T.child,T.tag===22&&T.memoizedState!==null?v0(x):D!==null?(D.return=T,mt=D):v0(x);for(;v!==null;)mt=v,m0(v),v=v.sibling;mt=x,Kl=A,ze=Y}y0(n)}else(x.subtreeFlags&8772)!==0&&v!==null?(v.return=x,mt=v):y0(n)}}function y0(n){for(;mt!==null;){var a=mt;if((a.flags&8772)!==0){var u=a.alternate;try{if((a.flags&8772)!==0)switch(a.tag){case 0:case 11:case 15:ze||Zl(5,a);break;case 1:var p=a.stateNode;if(a.flags&4&&!ze)if(u===null)p.componentDidMount();else{var x=a.elementType===a.type?u.memoizedProps:Hr(a.type,u.memoizedProps);p.componentDidUpdate(x,u.memoizedState,p.__reactInternalSnapshotBeforeUpdate)}var v=a.updateQueue;v!==null&&xm(a,v,p);break;case 3:var T=a.updateQueue;if(T!==null){if(u=null,a.child!==null)switch(a.child.tag){case 5:u=a.child.stateNode;break;case 1:u=a.child.stateNode}xm(a,T,u)}break;case 5:var A=a.stateNode;if(u===null&&a.flags&4){u=A;var D=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":D.autoFocus&&u.focus();break;case"img":D.src&&(u.src=D.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var Y=a.alternate;if(Y!==null){var nt=Y.memoizedState;if(nt!==null){var it=nt.dehydrated;it!==null&&Ds(it)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}ze||a.flags&512&&mf(a)}catch(rt){pe(a,a.return,rt)}}if(a===n){mt=null;break}if(u=a.sibling,u!==null){u.return=a.return,mt=u;break}mt=a.return}}function x0(n){for(;mt!==null;){var a=mt;if(a===n){mt=null;break}var u=a.sibling;if(u!==null){u.return=a.return,mt=u;break}mt=a.return}}function v0(n){for(;mt!==null;){var a=mt;try{switch(a.tag){case 0:case 11:case 15:var u=a.return;try{Zl(4,a)}catch(D){pe(a,u,D)}break;case 1:var p=a.stateNode;if(typeof p.componentDidMount=="function"){var x=a.return;try{p.componentDidMount()}catch(D){pe(a,x,D)}}var v=a.return;try{mf(a)}catch(D){pe(a,v,D)}break;case 5:var T=a.return;try{mf(a)}catch(D){pe(a,T,D)}}}catch(D){pe(a,a.return,D)}if(a===n){mt=null;break}var A=a.sibling;if(A!==null){A.return=a.return,mt=A;break}mt=a.return}}var g_=Math.ceil,Jl=M.ReactCurrentDispatcher,vf=M.ReactCurrentOwner,Ar=M.ReactCurrentBatchConfig,Vt=0,Me=null,ve=null,Fe=0,xr=0,ja=ai(0),Ce=0,io=null,Hi=0,tc=0,bf=0,ao=null,sr=null,wf=0,Wa=1/0,Rn=null,ec=!1,Cf=null,hi=null,rc=!1,fi=null,nc=0,so=0,kf=null,ic=-1,ac=0;function Ge(){return(Vt&6)!==0?Wt():ic!==-1?ic:ic=Wt()}function di(n){return(n.mode&1)===0?1:(Vt&2)!==0&&Fe!==0?Fe&-Fe:Zk.transition!==null?(ac===0&&(ac=fg()),ac):(n=Jt,n!==0||(n=window.event,n=n===void 0?16:wg(n.type)),n)}function Yr(n,a,u,p){if(50<so)throw so=0,kf=null,Error(r(185));As(n,u,p),((Vt&2)===0||n!==Me)&&(n===Me&&((Vt&2)===0&&(tc|=u),Ce===4&&pi(n,Fe)),or(n,p),u===1&&Vt===0&&(a.mode&1)===0&&(Wa=Wt()+500,Fl&&oi()))}function or(n,a){var u=n.callbackNode;ZC(n,a);var p=pl(n,n===Me?Fe:0);if(p===0)u!==null&&at(u),n.callbackNode=null,n.callbackPriority=0;else if(a=p&-p,n.callbackPriority!==a){if(u!=null&&at(u),a===1)n.tag===0?Kk(w0.bind(null,n)):sm(w0.bind(null,n)),Vk(function(){(Vt&6)===0&&oi()}),u=null;else{switch(dg(p)){case 1:u=Ee;break;case 4:u=Sr;break;case 16:u=Nr;break;case 536870912:u=xe;break;default:u=Nr}u=M0(u,b0.bind(null,n))}n.callbackPriority=a,n.callbackNode=u}}function b0(n,a){if(ic=-1,ac=0,(Vt&6)!==0)throw Error(r(327));var u=n.callbackNode;if(Ha()&&n.callbackNode!==u)return null;var p=pl(n,n===Me?Fe:0);if(p===0)return null;if((p&30)!==0||(p&n.expiredLanes)!==0||a)a=sc(n,p);else{a=p;var x=Vt;Vt|=2;var v=k0();(Me!==n||Fe!==a)&&(Rn=null,Wa=Wt()+500,Ui(n,a));do try{x_();break}catch(A){C0(n,A)}while(!0);zh(),Jl.current=v,Vt=x,ve!==null?a=0:(Me=null,Fe=0,a=Ce)}if(a!==0){if(a===2&&(x=rh(n),x!==0&&(p=x,a=_f(n,x))),a===1)throw u=io,Ui(n,0),pi(n,p),or(n,Wt()),u;if(a===6)pi(n,p);else{if(x=n.current.alternate,(p&30)===0&&!m_(x)&&(a=sc(n,p),a===2&&(v=rh(n),v!==0&&(p=v,a=_f(n,v))),a===1))throw u=io,Ui(n,0),pi(n,p),or(n,Wt()),u;switch(n.finishedWork=x,n.finishedLanes=p,a){case 0:case 1:throw Error(r(345));case 2:Yi(n,sr,Rn);break;case 3:if(pi(n,p),(p&130023424)===p&&(a=wf+500-Wt(),10<a)){if(pl(n,0)!==0)break;if(x=n.suspendedLanes,(x&p)!==p){Ge(),n.pingedLanes|=n.suspendedLanes&x;break}n.timeoutHandle=Mh(Yi.bind(null,n,sr,Rn),a);break}Yi(n,sr,Rn);break;case 4:if(pi(n,p),(p&4194240)===p)break;for(a=n.eventTimes,x=-1;0<p;){var T=31-zr(p);v=1<<T,T=a[T],T>x&&(x=T),p&=~v}if(p=x,p=Wt()-p,p=(120>p?120:480>p?480:1080>p?1080:1920>p?1920:3e3>p?3e3:4320>p?4320:1960*g_(p/1960))-p,10<p){n.timeoutHandle=Mh(Yi.bind(null,n,sr,Rn),p);break}Yi(n,sr,Rn);break;case 5:Yi(n,sr,Rn);break;default:throw Error(r(329))}}}return or(n,Wt()),n.callbackNode===u?b0.bind(null,n):null}function _f(n,a){var u=ao;return n.current.memoizedState.isDehydrated&&(Ui(n,a).flags|=256),n=sc(n,a),n!==2&&(a=sr,sr=u,a!==null&&Sf(a)),n}function Sf(n){sr===null?sr=n:sr.push.apply(sr,n)}function m_(n){for(var a=n;;){if(a.flags&16384){var u=a.updateQueue;if(u!==null&&(u=u.stores,u!==null))for(var p=0;p<u.length;p++){var x=u[p],v=x.getSnapshot;x=x.value;try{if(!jr(v(),x))return!1}catch{return!1}}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function pi(n,a){for(a&=~bf,a&=~tc,n.suspendedLanes|=a,n.pingedLanes&=~a,n=n.expirationTimes;0<a;){var u=31-zr(a),p=1<<u;n[u]=-1,a&=~p}}function w0(n){if((Vt&6)!==0)throw Error(r(327));Ha();var a=pl(n,0);if((a&1)===0)return or(n,Wt()),null;var u=sc(n,a);if(n.tag!==0&&u===2){var p=rh(n);p!==0&&(a=p,u=_f(n,p))}if(u===1)throw u=io,Ui(n,0),pi(n,a),or(n,Wt()),u;if(u===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=a,Yi(n,sr,Rn),or(n,Wt()),null}function Tf(n,a){var u=Vt;Vt|=1;try{return n(a)}finally{Vt=u,Vt===0&&(Wa=Wt()+500,Fl&&oi())}}function qi(n){fi!==null&&fi.tag===0&&(Vt&6)===0&&Ha();var a=Vt;Vt|=1;var u=Ar.transition,p=Jt;try{if(Ar.transition=null,Jt=1,n)return n()}finally{Jt=p,Ar.transition=u,Vt=a,(Vt&6)===0&&oi()}}function Ef(){xr=ja.current,ae(ja)}function Ui(n,a){n.finishedWork=null,n.finishedLanes=0;var u=n.timeoutHandle;if(u!==-1&&(n.timeoutHandle=-1,Yk(u)),ve!==null)for(u=ve.return;u!==null;){var p=u;switch(Dh(p),p.tag){case 1:p=p.type.childContextTypes,p!=null&&Bl();break;case 3:Ia(),ae(nr),ae(Oe),Gh();break;case 5:Yh(p);break;case 4:Ia();break;case 13:ae(ce);break;case 19:ae(ce);break;case 10:jh(p.type._context);break;case 22:case 23:Ef()}u=u.return}if(Me=n,ve=n=gi(n.current,null),Fe=xr=a,Ce=0,io=null,bf=tc=Hi=0,sr=ao=null,zi!==null){for(a=0;a<zi.length;a++)if(u=zi[a],p=u.interleaved,p!==null){u.interleaved=null;var x=p.next,v=u.pending;if(v!==null){var T=v.next;v.next=x,p.next=T}u.pending=p}zi=null}return n}function C0(n,a){do{var u=ve;try{if(zh(),Hl.current=Vl,ql){for(var p=ue.memoizedState;p!==null;){var x=p.queue;x!==null&&(x.pending=null),p=p.next}ql=!1}if(Wi=0,Le=we=ue=null,Zs=!1,Js=0,vf.current=null,u===null||u.return===null){Ce=1,io=a,ve=null;break}t:{var v=n,T=u.return,A=u,D=a;if(a=Fe,A.flags|=32768,D!==null&&typeof D=="object"&&typeof D.then=="function"){var Y=D,nt=A,it=nt.tag;if((nt.mode&1)===0&&(it===0||it===11||it===15)){var rt=nt.alternate;rt?(nt.updateQueue=rt.updateQueue,nt.memoizedState=rt.memoizedState,nt.lanes=rt.lanes):(nt.updateQueue=null,nt.memoizedState=null)}var pt=Vm(T);if(pt!==null){pt.flags&=-257,Gm(pt,T,A,v,a),pt.mode&1&&Ym(v,Y,a),a=pt,D=Y;var yt=a.updateQueue;if(yt===null){var _t=new Set;_t.add(D),a.updateQueue=_t}else yt.add(D);break t}else{if((a&1)===0){Ym(v,Y,a),Lf();break t}D=Error(r(426))}}else if(oe&&A.mode&1){var me=Vm(T);if(me!==null){(me.flags&65536)===0&&(me.flags|=256),Gm(me,T,A,v,a),Ih(Na(D,A));break t}}v=D=Na(D,A),Ce!==4&&(Ce=2),ao===null?ao=[v]:ao.push(v),v=T;do{switch(v.tag){case 3:v.flags|=65536,a&=-a,v.lanes|=a;var j=qm(v,D,a);ym(v,j);break t;case 1:A=D;var I=v.type,H=v.stateNode;if((v.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||H!==null&&typeof H.componentDidCatch=="function"&&(hi===null||!hi.has(H)))){v.flags|=65536,a&=-a,v.lanes|=a;var st=Um(v,A,a);ym(v,st);break t}}v=v.return}while(v!==null)}S0(u)}catch(Tt){a=Tt,ve===u&&u!==null&&(ve=u=u.return);continue}break}while(!0)}function k0(){var n=Jl.current;return Jl.current=Vl,n===null?Vl:n}function Lf(){(Ce===0||Ce===3||Ce===2)&&(Ce=4),Me===null||(Hi&268435455)===0&&(tc&268435455)===0||pi(Me,Fe)}function sc(n,a){var u=Vt;Vt|=2;var p=k0();(Me!==n||Fe!==a)&&(Rn=null,Ui(n,a));do try{y_();break}catch(x){C0(n,x)}while(!0);if(zh(),Vt=u,Jl.current=p,ve!==null)throw Error(r(261));return Me=null,Fe=0,Ce}function y_(){for(;ve!==null;)_0(ve)}function x_(){for(;ve!==null&&!bt();)_0(ve)}function _0(n){var a=L0(n.alternate,n,xr);n.memoizedProps=n.pendingProps,a===null?S0(n):ve=a,vf.current=null}function S0(n){var a=n;do{var u=a.alternate;if(n=a.return,(a.flags&32768)===0){if(u=u_(u,a,xr),u!==null){ve=u;return}}else{if(u=h_(u,a),u!==null){u.flags&=32767,ve=u;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{Ce=6,ve=null;return}}if(a=a.sibling,a!==null){ve=a;return}ve=a=n}while(a!==null);Ce===0&&(Ce=5)}function Yi(n,a,u){var p=Jt,x=Ar.transition;try{Ar.transition=null,Jt=1,v_(n,a,u,p)}finally{Ar.transition=x,Jt=p}return null}function v_(n,a,u,p){do Ha();while(fi!==null);if((Vt&6)!==0)throw Error(r(327));u=n.finishedWork;var x=n.finishedLanes;if(u===null)return null;if(n.finishedWork=null,n.finishedLanes=0,u===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var v=u.lanes|u.childLanes;if(JC(n,v),n===Me&&(ve=Me=null,Fe=0),(u.subtreeFlags&2064)===0&&(u.flags&2064)===0||rc||(rc=!0,M0(Nr,function(){return Ha(),null})),v=(u.flags&15990)!==0,(u.subtreeFlags&15990)!==0||v){v=Ar.transition,Ar.transition=null;var T=Jt;Jt=1;var A=Vt;Vt|=4,vf.current=null,d_(n,u),g0(u,n),Nk(Eh),yl=!!Th,Eh=Th=null,n.current=u,p_(u),ee(),Vt=A,Jt=T,Ar.transition=v}else n.current=u;if(rc&&(rc=!1,fi=n,nc=x),v=n.pendingLanes,v===0&&(hi=null),VC(u.stateNode),or(n,Wt()),a!==null)for(p=n.onRecoverableError,u=0;u<a.length;u++)x=a[u],p(x.value,{componentStack:x.stack,digest:x.digest});if(ec)throw ec=!1,n=Cf,Cf=null,n;return(nc&1)!==0&&n.tag!==0&&Ha(),v=n.pendingLanes,(v&1)!==0?n===kf?so++:(so=0,kf=n):so=0,oi(),null}function Ha(){if(fi!==null){var n=dg(nc),a=Ar.transition,u=Jt;try{if(Ar.transition=null,Jt=16>n?16:n,fi===null)var p=!1;else{if(n=fi,fi=null,nc=0,(Vt&6)!==0)throw Error(r(331));var x=Vt;for(Vt|=4,mt=n.current;mt!==null;){var v=mt,T=v.child;if((mt.flags&16)!==0){var A=v.deletions;if(A!==null){for(var D=0;D<A.length;D++){var Y=A[D];for(mt=Y;mt!==null;){var nt=mt;switch(nt.tag){case 0:case 11:case 15:no(8,nt,v)}var it=nt.child;if(it!==null)it.return=nt,mt=it;else for(;mt!==null;){nt=mt;var rt=nt.sibling,pt=nt.return;if(u0(nt),nt===Y){mt=null;break}if(rt!==null){rt.return=pt,mt=rt;break}mt=pt}}}var yt=v.alternate;if(yt!==null){var _t=yt.child;if(_t!==null){yt.child=null;do{var me=_t.sibling;_t.sibling=null,_t=me}while(_t!==null)}}mt=v}}if((v.subtreeFlags&2064)!==0&&T!==null)T.return=v,mt=T;else t:for(;mt!==null;){if(v=mt,(v.flags&2048)!==0)switch(v.tag){case 0:case 11:case 15:no(9,v,v.return)}var j=v.sibling;if(j!==null){j.return=v.return,mt=j;break t}mt=v.return}}var I=n.current;for(mt=I;mt!==null;){T=mt;var H=T.child;if((T.subtreeFlags&2064)!==0&&H!==null)H.return=T,mt=H;else t:for(T=I;mt!==null;){if(A=mt,(A.flags&2048)!==0)try{switch(A.tag){case 0:case 11:case 15:Zl(9,A)}}catch(Tt){pe(A,A.return,Tt)}if(A===T){mt=null;break t}var st=A.sibling;if(st!==null){st.return=A.return,mt=st;break t}mt=A.return}}if(Vt=x,oi(),pr&&typeof pr.onPostCommitFiberRoot=="function")try{pr.onPostCommitFiberRoot(Di,n)}catch{}p=!0}return p}finally{Jt=u,Ar.transition=a}}return!1}function T0(n,a,u){a=Na(u,a),a=qm(n,a,1),n=ci(n,a,1),a=Ge(),n!==null&&(As(n,1,a),or(n,a))}function pe(n,a,u){if(n.tag===3)T0(n,n,u);else for(;a!==null;){if(a.tag===3){T0(a,n,u);break}else if(a.tag===1){var p=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(hi===null||!hi.has(p))){n=Na(u,n),n=Um(a,n,1),a=ci(a,n,1),n=Ge(),a!==null&&(As(a,1,n),or(a,n));break}}a=a.return}}function b_(n,a,u){var p=n.pingCache;p!==null&&p.delete(a),a=Ge(),n.pingedLanes|=n.suspendedLanes&u,Me===n&&(Fe&u)===u&&(Ce===4||Ce===3&&(Fe&130023424)===Fe&&500>Wt()-wf?Ui(n,0):bf|=u),or(n,a)}function E0(n,a){a===0&&((n.mode&1)===0?a=1:(a=dl,dl<<=1,(dl&130023424)===0&&(dl=4194304)));var u=Ge();n=Bn(n,a),n!==null&&(As(n,a,u),or(n,u))}function w_(n){var a=n.memoizedState,u=0;a!==null&&(u=a.retryLane),E0(n,u)}function C_(n,a){var u=0;switch(n.tag){case 13:var p=n.stateNode,x=n.memoizedState;x!==null&&(u=x.retryLane);break;case 19:p=n.stateNode;break;default:throw Error(r(314))}p!==null&&p.delete(a),E0(n,u)}var L0;L0=function(n,a,u){if(n!==null)if(n.memoizedProps!==a.pendingProps||nr.current)ar=!0;else{if((n.lanes&u)===0&&(a.flags&128)===0)return ar=!1,c_(n,a,u);ar=(n.flags&131072)!==0}else ar=!1,oe&&(a.flags&1048576)!==0&&om(a,Dl,a.index);switch(a.lanes=0,a.tag){case 2:var p=a.type;Ql(n,a),n=a.pendingProps;var x=Ba(a,Oe.current);Oa(a,u),x=Kh(null,a,p,n,x,u);var v=Zh();return a.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,ir(p)?(v=!0,$l(a)):v=!1,a.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,qh(a),x.updater=Gl,a.stateNode=x,x._reactInternals=a,af(a,p,n,u),a=cf(null,a,p,!0,v,u)):(a.tag=0,oe&&v&&Rh(a),Ve(null,a,x,u),a=a.child),a;case 16:p=a.elementType;t:{switch(Ql(n,a),n=a.pendingProps,x=p._init,p=x(p._payload),a.type=p,x=a.tag=__(p),n=Hr(p,n),x){case 0:a=lf(null,a,p,n,u);break t;case 1:a=t0(null,a,p,n,u);break t;case 11:a=Xm(null,a,p,n,u);break t;case 14:a=Qm(null,a,p,Hr(p.type,n),u);break t}throw Error(r(306,p,""))}return a;case 0:return p=a.type,x=a.pendingProps,x=a.elementType===p?x:Hr(p,x),lf(n,a,p,x,u);case 1:return p=a.type,x=a.pendingProps,x=a.elementType===p?x:Hr(p,x),t0(n,a,p,x,u);case 3:t:{if(e0(a),n===null)throw Error(r(387));p=a.pendingProps,v=a.memoizedState,x=v.element,mm(n,a),jl(a,p,null,u);var T=a.memoizedState;if(p=T.element,v.isDehydrated)if(v={element:p,isDehydrated:!1,cache:T.cache,pendingSuspenseBoundaries:T.pendingSuspenseBoundaries,transitions:T.transitions},a.updateQueue.baseState=v,a.memoizedState=v,a.flags&256){x=Na(Error(r(423)),a),a=r0(n,a,p,u,x);break t}else if(p!==x){x=Na(Error(r(424)),a),a=r0(n,a,p,u,x);break t}else for(yr=ii(a.stateNode.containerInfo.firstChild),mr=a,oe=!0,Wr=null,u=pm(a,null,p,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Ra(),p===x){a=Fn(n,a,u);break t}Ve(n,a,p,u)}a=a.child}return a;case 5:return vm(a),n===null&&Oh(a),p=a.type,x=a.pendingProps,v=n!==null?n.memoizedProps:null,T=x.children,Lh(p,x)?T=null:v!==null&&Lh(p,v)&&(a.flags|=32),Jm(n,a),Ve(n,a,T,u),a.child;case 6:return n===null&&Oh(a),null;case 13:return n0(n,a,u);case 4:return Uh(a,a.stateNode.containerInfo),p=a.pendingProps,n===null?a.child=Da(a,null,p,u):Ve(n,a,p,u),a.child;case 11:return p=a.type,x=a.pendingProps,x=a.elementType===p?x:Hr(p,x),Xm(n,a,p,x,u);case 7:return Ve(n,a,a.pendingProps,u),a.child;case 8:return Ve(n,a,a.pendingProps.children,u),a.child;case 12:return Ve(n,a,a.pendingProps.children,u),a.child;case 10:t:{if(p=a.type._context,x=a.pendingProps,v=a.memoizedProps,T=x.value,re(Il,p._currentValue),p._currentValue=T,v!==null)if(jr(v.value,T)){if(v.children===x.children&&!nr.current){a=Fn(n,a,u);break t}}else for(v=a.child,v!==null&&(v.return=a);v!==null;){var A=v.dependencies;if(A!==null){T=v.child;for(var D=A.firstContext;D!==null;){if(D.context===p){if(v.tag===1){D=$n(-1,u&-u),D.tag=2;var Y=v.updateQueue;if(Y!==null){Y=Y.shared;var nt=Y.pending;nt===null?D.next=D:(D.next=nt.next,nt.next=D),Y.pending=D}}v.lanes|=u,D=v.alternate,D!==null&&(D.lanes|=u),Wh(v.return,u,a),A.lanes|=u;break}D=D.next}}else if(v.tag===10)T=v.type===a.type?null:v.child;else if(v.tag===18){if(T=v.return,T===null)throw Error(r(341));T.lanes|=u,A=T.alternate,A!==null&&(A.lanes|=u),Wh(T,u,a),T=v.sibling}else T=v.child;if(T!==null)T.return=v;else for(T=v;T!==null;){if(T===a){T=null;break}if(v=T.sibling,v!==null){v.return=T.return,T=v;break}T=T.return}v=T}Ve(n,a,x.children,u),a=a.child}return a;case 9:return x=a.type,p=a.pendingProps.children,Oa(a,u),x=Lr(x),p=p(x),a.flags|=1,Ve(n,a,p,u),a.child;case 14:return p=a.type,x=Hr(p,a.pendingProps),x=Hr(p.type,x),Qm(n,a,p,x,u);case 15:return Km(n,a,a.type,a.pendingProps,u);case 17:return p=a.type,x=a.pendingProps,x=a.elementType===p?x:Hr(p,x),Ql(n,a),a.tag=1,ir(p)?(n=!0,$l(a)):n=!1,Oa(a,u),Wm(a,p,x),af(a,p,x,u),cf(null,a,p,!0,n,u);case 19:return a0(n,a,u);case 22:return Zm(n,a,u)}throw Error(r(156,a.tag))};function M0(n,a){return P(n,a)}function k_(n,a,u,p){this.tag=n,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Br(n,a,u,p){return new k_(n,a,u,p)}function Mf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function __(n){if(typeof n=="function")return Mf(n)?1:0;if(n!=null){if(n=n.$$typeof,n===ot)return 11;if(n===W)return 14}return 2}function gi(n,a){var u=n.alternate;return u===null?(u=Br(n.tag,a,n.key,n.mode),u.elementType=n.elementType,u.type=n.type,u.stateNode=n.stateNode,u.alternate=n,n.alternate=u):(u.pendingProps=a,u.type=n.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=n.flags&14680064,u.childLanes=n.childLanes,u.lanes=n.lanes,u.child=n.child,u.memoizedProps=n.memoizedProps,u.memoizedState=n.memoizedState,u.updateQueue=n.updateQueue,a=n.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=n.sibling,u.index=n.index,u.ref=n.ref,u}function oc(n,a,u,p,x,v){var T=2;if(p=n,typeof n=="function")Mf(n)&&(T=1);else if(typeof n=="string")T=5;else t:switch(n){case F:return Vi(u.children,x,v,a);case V:T=8,x|=8;break;case et:return n=Br(12,u,a,x|2),n.elementType=et,n.lanes=v,n;case Z:return n=Br(13,u,a,x),n.elementType=Z,n.lanes=v,n;case q:return n=Br(19,u,a,x),n.elementType=q,n.lanes=v,n;case U:return lc(u,x,v,a);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case tt:T=10;break t;case G:T=9;break t;case ot:T=11;break t;case W:T=14;break t;case z:T=16,p=null;break t}throw Error(r(130,n==null?n:typeof n,""))}return a=Br(T,u,a,x),a.elementType=n,a.type=p,a.lanes=v,a}function Vi(n,a,u,p){return n=Br(7,n,p,a),n.lanes=u,n}function lc(n,a,u,p){return n=Br(22,n,p,a),n.elementType=U,n.lanes=u,n.stateNode={isHidden:!1},n}function Af(n,a,u){return n=Br(6,n,null,a),n.lanes=u,n}function Bf(n,a,u){return a=Br(4,n.children!==null?n.children:[],n.key,a),a.lanes=u,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}function S_(n,a,u,p,x){this.tag=a,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nh(0),this.expirationTimes=nh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nh(0),this.identifierPrefix=p,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function $f(n,a,u,p,x,v,T,A,D){return n=new S_(n,a,u,A,D),a===1?(a=1,v===!0&&(a|=8)):a=0,v=Br(3,null,null,a),n.current=v,v.stateNode=n,v.memoizedState={element:p,isDehydrated:u,cache:null,transitions:null,pendingSuspenseBoundaries:null},qh(v),n}function T_(n,a,u){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:L,key:p==null?null:""+p,children:n,containerInfo:a,implementation:u}}function A0(n){if(!n)return si;n=n._reactInternals;t:{if(an(n)!==n||n.tag!==1)throw Error(r(170));var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(ir(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(r(171))}if(n.tag===1){var u=n.type;if(ir(u))return im(n,u,a)}return a}function B0(n,a,u,p,x,v,T,A,D){return n=$f(u,p,!0,n,x,v,T,A,D),n.context=A0(null),u=n.current,p=Ge(),x=di(u),v=$n(p,x),v.callback=a??null,ci(u,v,x),n.current.lanes=x,As(n,x,p),or(n,p),n}function cc(n,a,u,p){var x=a.current,v=Ge(),T=di(x);return u=A0(u),a.context===null?a.context=u:a.pendingContext=u,a=$n(v,T),a.payload={element:n},p=p===void 0?null:p,p!==null&&(a.callback=p),n=ci(x,a,T),n!==null&&(Yr(n,x,T,v),zl(n,x,T)),T}function uc(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function $0(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var u=n.retryLane;n.retryLane=u!==0&&u<a?u:a}}function Ff(n,a){$0(n,a),(n=n.alternate)&&$0(n,a)}function E_(){return null}var F0=typeof reportError=="function"?reportError:function(n){console.error(n)};function Rf(n){this._internalRoot=n}hc.prototype.render=Rf.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(r(409));cc(n,a,null,null)},hc.prototype.unmount=Rf.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;qi(function(){cc(null,n,null,null)}),a[En]=null}};function hc(n){this._internalRoot=n}hc.prototype.unstable_scheduleHydration=function(n){if(n){var a=mg();n={blockedOn:null,target:n,priority:a};for(var u=0;u<ei.length&&a!==0&&a<ei[u].priority;u++);ei.splice(u,0,n),u===0&&vg(n)}};function Df(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function fc(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function R0(){}function L_(n,a,u,p,x){if(x){if(typeof p=="function"){var v=p;p=function(){var Y=uc(T);v.call(Y)}}var T=B0(a,p,n,0,null,!1,!1,"",R0);return n._reactRootContainer=T,n[En]=T.current,qs(n.nodeType===8?n.parentNode:n),qi(),T}for(;x=n.lastChild;)n.removeChild(x);if(typeof p=="function"){var A=p;p=function(){var Y=uc(D);A.call(Y)}}var D=$f(n,0,!1,null,null,!1,!1,"",R0);return n._reactRootContainer=D,n[En]=D.current,qs(n.nodeType===8?n.parentNode:n),qi(function(){cc(a,D,u,p)}),D}function dc(n,a,u,p,x){var v=u._reactRootContainer;if(v){var T=v;if(typeof x=="function"){var A=x;x=function(){var D=uc(T);A.call(D)}}cc(a,T,n,x)}else T=L_(u,a,n,x,p);return uc(T)}pg=function(n){switch(n.tag){case 3:var a=n.stateNode;if(a.current.memoizedState.isDehydrated){var u=Ms(a.pendingLanes);u!==0&&(ih(a,u|1),or(a,Wt()),(Vt&6)===0&&(Wa=Wt()+500,oi()))}break;case 13:qi(function(){var p=Bn(n,1);if(p!==null){var x=Ge();Yr(p,n,1,x)}}),Ff(n,1)}},ah=function(n){if(n.tag===13){var a=Bn(n,134217728);if(a!==null){var u=Ge();Yr(a,n,134217728,u)}Ff(n,134217728)}},gg=function(n){if(n.tag===13){var a=di(n),u=Bn(n,a);if(u!==null){var p=Ge();Yr(u,n,a,p)}Ff(n,a)}},mg=function(){return Jt},yg=function(n,a){var u=Jt;try{return Jt=n,a()}finally{Jt=u}},Gn=function(n,a,u){switch(a){case"input":if(Mi(n,u),a=u.name,u.type==="radio"&&a!=null){for(u=n;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<u.length;a++){var p=u[a];if(p!==n&&p.form===n.form){var x=Al(p);if(!x)throw Error(r(90));er(p),Mi(p,x)}}}break;case"textarea":va(n,u);break;case"select":a=u.value,a!=null&&Cn(n,!!u.multiple,a,!1)}},fe=Tf,Sn=qi;var M_={usingClientEntryPoint:!1,Events:[Vs,Ma,Al,ol,ll,Tf]},oo={findFiberByHostInstance:Pi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},A_={bundleType:oo.bundleType,version:oo.version,rendererPackageName:oo.rendererPackageName,rendererConfig:oo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=hl(n),n===null?null:n.stateNode},findFiberByHostInstance:oo.findFiberByHostInstance||E_,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 pc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pc.isDisabled&&pc.supportsFiber)try{Di=pc.inject(A_),pr=pc}catch{}}return lr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M_,lr.createPortal=function(n,a){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Df(a))throw Error(r(200));return T_(n,a,null,u)},lr.createRoot=function(n,a){if(!Df(n))throw Error(r(299));var u=!1,p="",x=F0;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(p=a.identifierPrefix),a.onRecoverableError!==void 0&&(x=a.onRecoverableError)),a=$f(n,1,!1,null,null,u,!1,p,x),n[En]=a.current,qs(n.nodeType===8?n.parentNode:n),new Rf(a)},lr.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=hl(a),n=n===null?null:n.stateNode,n},lr.flushSync=function(n){return qi(n)},lr.hydrate=function(n,a,u){if(!fc(a))throw Error(r(200));return dc(null,n,a,!0,u)},lr.hydrateRoot=function(n,a,u){if(!Df(n))throw Error(r(405));var p=u!=null&&u.hydratedSources||null,x=!1,v="",T=F0;if(u!=null&&(u.unstable_strictMode===!0&&(x=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onRecoverableError!==void 0&&(T=u.onRecoverableError)),a=B0(a,null,n,1,u??null,x,!1,v,T),n[En]=a.current,qs(n),p)for(n=0;n<p.length;n++)u=p[n],x=u._getVersion,x=x(u._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[u,x]:a.mutableSourceEagerHydrationData.push(u,x);return new hc(a)},lr.render=function(n,a,u){if(!fc(a))throw Error(r(200));return dc(null,n,a,!1,u)},lr.unmountComponentAtNode=function(n){if(!fc(n))throw Error(r(40));return n._reactRootContainer?(qi(function(){dc(null,null,n,!1,function(){n._reactRootContainer=null,n[En]=null})}),!0):!1},lr.unstable_batchedUpdates=Tf,lr.unstable_renderSubtreeIntoContainer=function(n,a,u,p){if(!fc(u))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return dc(n,a,u,!1,p)},lr.version="18.3.1-next-f1338f8080-20240426",lr}var W0;function j_(){if(W0)return If.exports;W0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),If.exports=z_(),If.exports}var H0;function W_(){if(H0)return gc;H0=1;var e=j_();return gc.createRoot=e.createRoot,gc.hydrateRoot=e.hydrateRoot,gc}var H_=W_();const q_=lp(H_),U_="ws://localhost:3456/ws",Y_="http://localhost:3456/sse",q0="http://localhost:3456/api";function V_(e){const[t,r]=ht.useState("disconnected"),[i,s]=ht.useState(null),o=ht.useRef(null),c=ht.useRef(null),l=ht.useRef(0),h=ht.useRef(null),f=ht.useRef(!0),d=ht.useRef(e);ht.useEffect(()=>{d.current=e},[e]);const g=ht.useCallback(()=>{o.current&&(o.current.onopen=null,o.current.onclose=null,o.current.onerror=null,o.current.onmessage=null,(o.current.readyState===WebSocket.OPEN||o.current.readyState===WebSocket.CONNECTING)&&o.current.close(),o.current=null),c.current&&(c.current.close(),c.current=null),h.current&&(clearTimeout(h.current),h.current=null)},[]),m=ht.useCallback(_=>{try{const E=typeof _=="string"?JSON.parse(_):_;d.current&&d.current(E)}catch(E){console.warn("[useConnection] Failed to parse message:",E)}},[]),y=ht.useCallback(_=>{var M;const E={v:1,type:"sys:connect",payload:{clientType:"canvas",protocolVersion:1,capabilities:["dashboard","canvas","quiz","playground"]},source:"canvas",timestamp:Date.now()};_==="ws"&&((M=o.current)==null?void 0:M.readyState)===WebSocket.OPEN?o.current.send(JSON.stringify(E)):_==="sse"&&fetch(`${q0}/event`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(E)}).catch(B=>{console.warn("[useConnection] Failed to send connect handshake via REST:",B)})},[]),b=ht.useCallback(()=>{if(!f.current)return;const _=Math.min(1e3*Math.pow(2,l.current),3e4);l.current+=1,console.log(`[useConnection] Reconnecting in ${_}ms (attempt ${l.current})`),r("disconnected"),h.current=setTimeout(()=>{f.current&&k()},_)},[]),C=ht.useCallback(()=>{if(f.current){console.log("[useConnection] Falling back to SSE"),r("connecting");try{const _=new EventSource(Y_);c.current=_,_.onopen=()=>{f.current&&(console.log("[useConnection] SSE connected"),r("connected"),s("sse"),l.current=0,y("sse"))},_.onmessage=E=>{f.current&&m(E.data)},_.onerror=()=>{f.current&&(console.warn("[useConnection] SSE error"),_.close(),c.current=null,s(null),b())}}catch(_){console.warn("[useConnection] SSE failed to connect:",_),s(null),b()}}},[m,y,b]),k=ht.useCallback(()=>{if(f.current){g(),r("connecting");try{const _=new WebSocket(U_);o.current=_,_.onopen=()=>{f.current&&(console.log("[useConnection] WebSocket connected"),r("connected"),s("ws"),l.current=0,y("ws"))},_.onmessage=E=>{f.current&&m(E.data)},_.onclose=E=>{f.current&&(console.log("[useConnection] WebSocket closed:",E.code,E.reason),o.current=null,s(null),E.code===1e3||l.current===0?C():b())},_.onerror=()=>{f.current&&(console.warn("[useConnection] WebSocket error — will try SSE"),l.current===0&&(o.current=null,s(null),C()))}}catch(_){console.warn("[useConnection] WebSocket failed:",_),C()}}},[g,m,y,C,b]),S=ht.useCallback((_,E)=>{var B;const M={v:1,type:_,payload:E,source:"canvas",timestamp:Date.now()};i==="ws"&&((B=o.current)==null?void 0:B.readyState)===WebSocket.OPEN?o.current.send(JSON.stringify(M)):fetch(`${q0}/event`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)}).catch(L=>{console.warn("[useConnection] Failed to send event via REST:",L)})},[i]);return ht.useEffect(()=>(f.current=!0,k(),()=>{f.current=!1,g()}),[]),{status:t,transport:i,sendEvent:S}}function G_({data:e,getBelt:t,getNextBelt:r,BELTS:i}){const s=(e==null?void 0:e.progress)||{xp:0,modules:[],streak:0},o=(e==null?void 0:e.recommendation)||null,c=s.xp||0,l=s.streak||0,h=ht.useMemo(()=>t(c),[c,t]),f=ht.useMemo(()=>r(c),[c,r]),d=s.modules||[],g=ht.useMemo(()=>{if(!f)return 100;const m=h.minXP,y=f.minXP;return Math.min(100,Math.max(0,(c-m)/(y-m)*100))},[c,h,f]);return O.jsxs("div",{style:Bt.container,children:[O.jsxs("div",{style:Bt.heroSection,children:[O.jsxs("div",{style:Bt.beltCard,children:[O.jsx("div",{style:{...Bt.beltIcon,borderColor:h.color},children:O.jsx("span",{style:Bt.beltEmoji,children:h.badge})}),O.jsxs("div",{style:Bt.beltInfo,children:[O.jsxs("h2",{style:Bt.beltName,children:[h.name," Belt"]}),O.jsxs("p",{style:Bt.xpText,children:[c.toLocaleString()," XP"]})]})]}),O.jsxs("div",{style:Bt.progressSection,children:[O.jsxs("div",{style:Bt.progressHeader,children:[O.jsx("span",{style:Bt.progressLabel,children:f?`Next: ${f.badge} ${f.name} Belt`:"Max Level!"}),O.jsx("span",{style:Bt.progressValue,children:f?`${(f.minXP-c).toLocaleString()} XP to go`:""})]}),O.jsx("div",{style:Bt.progressBar,children:O.jsx("div",{style:{...Bt.progressFill,width:`${g}%`,backgroundColor:(f==null?void 0:f.color)||h.color}})})]}),O.jsxs("div",{style:Bt.streakCard,children:[O.jsx("span",{style:Bt.streakIcon,children:l>0?"🔥":"❄️"}),O.jsxs("div",{children:[O.jsxs("p",{style:Bt.streakCount,children:[l," day streak"]}),O.jsx("p",{style:Bt.streakSubtext,children:l>0?"Keep it going!":"Start learning today!"})]})]})]}),O.jsxs("div",{style:Bt.section,children:[O.jsx("h3",{style:Bt.sectionTitle,children:"Belt Roadmap"}),O.jsx("div",{style:Bt.roadmap,children:i.map((m,y)=>{const b=c>=m.minXP,C=h.name===m.name;return O.jsxs("div",{style:{...Bt.roadmapItem,opacity:b?1:.4},children:[O.jsx("div",{style:{...Bt.roadmapDot,backgroundColor:b?m.color:"#30363d",border:C?`2px solid ${m.color}`:"2px solid transparent",boxShadow:C?`0 0 12px ${m.color}40`:"none"},children:O.jsx("span",{style:{fontSize:14},children:m.badge})}),O.jsx("span",{style:{...Bt.roadmapLabel,color:C?"#c9d1d9":"#8b949e",fontWeight:C?600:400},children:m.name}),O.jsxs("span",{style:Bt.roadmapXP,children:[m.minXP," XP"]}),y<i.length-1&&O.jsx("div",{style:{...Bt.roadmapLine,backgroundColor:c>=i[y+1].minXP?m.color:"#30363d"}})]},m.name)})})]}),O.jsxs("div",{style:Bt.section,children:[O.jsx("h3",{style:Bt.sectionTitle,children:"Modules"}),d.length===0?O.jsxs("div",{style:Bt.emptyState,children:[O.jsx("p",{style:Bt.emptyTitle,children:"No modules yet"}),O.jsxs("p",{style:Bt.emptySubtext,children:["Start a lesson in the terminal with ",O.jsx("code",{style:Bt.code,children:"/teach"})," to begin learning"]})]}):O.jsx("div",{style:Bt.moduleGrid,children:d.map(m=>O.jsx(X_,{module:m},m.slug))})]}),o&&O.jsxs("div",{style:Bt.section,children:[O.jsx("h3",{style:Bt.sectionTitle,children:"Recommended"}),O.jsxs("div",{style:Bt.recommendCard,children:[O.jsx("div",{style:Bt.recommendIcon,children:o.difficulty==="beginner"?"🌱":o.difficulty==="intermediate"?"🌿":"🌳"}),O.jsxs("div",{style:Bt.recommendInfo,children:[O.jsx("h4",{style:Bt.recommendTitle,children:o.title||o.slug}),O.jsx("p",{style:Bt.recommendDesc,children:o.description||"Ready for your next challenge?"}),o.xp&&O.jsxs("span",{style:Bt.recommendXP,children:[typeof o.xp=="number"?o.xp:Object.values(o.xp).reduce((m,y)=>m+y,0)," XP available"]})]}),O.jsxs("div",{style:Bt.recommendAction,children:[O.jsx("span",{style:Bt.recommendHint,children:"Type in terminal:"}),O.jsxs("code",{style:Bt.recommendCommand,children:["/teach ",o.slug]})]})]})]})]})}function X_({module:e}){const{slug:t,title:r,status:i,xp_earned:s,quiz_score:o,walkthrough_step:c}=e,l=i==="completed",h=i==="in-progress",f=i==="locked",d=l?"#3fb950":h?"#58a6ff":"#30363d",g=f?.5:1;return O.jsxs("div",{style:{...Bt.moduleCard,borderColor:d,opacity:g},children:[O.jsxs("div",{style:Bt.moduleHeader,children:[O.jsx("span",{style:Bt.moduleStatus,children:l?"✅":h?"🟦":"🔒"}),O.jsx("h4",{style:Bt.moduleTitle,children:r||t})]}),O.jsxs("div",{style:Bt.moduleDetails,children:[s>0&&O.jsxs("span",{style:Bt.moduleXP,children:[s," XP"]}),o&&O.jsxs("span",{style:Bt.moduleQuiz,children:["Quiz: ",o]}),h&&c&&O.jsxs("span",{style:Bt.moduleStep,children:["Step ",c]})]}),f&&O.jsx("p",{style:Bt.moduleLocked,children:"Complete prerequisites to unlock"})]})}const Bt={container:{maxWidth:900,margin:"0 auto",display:"flex",flexDirection:"column",gap:28},heroSection:{display:"flex",gap:16,flexWrap:"wrap"},beltCard:{display:"flex",alignItems:"center",gap:16,padding:"20px 24px",backgroundColor:"#161b22",border:"1px solid #30363d",borderRadius:12,flex:"1 1 200px"},beltIcon:{width:56,height:56,borderRadius:"50%",border:"3px solid",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#21262d",flexShrink:0},beltEmoji:{fontSize:28},beltInfo:{display:"flex",flexDirection:"column",gap:4},beltName:{fontSize:20,fontWeight:700,color:"#e6edf3",margin:0},xpText:{fontSize:14,color:"#8b949e",margin:0},progressSection:{flex:"2 1 300px",padding:"20px 24px",backgroundColor:"#161b22",border:"1px solid #30363d",borderRadius:12,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},progressHeader:{display:"flex",justifyContent:"space-between",alignItems:"center"},progressLabel:{fontSize:14,color:"#c9d1d9",fontWeight:500},progressValue:{fontSize:13,color:"#8b949e"},progressBar:{height:10,backgroundColor:"#21262d",borderRadius:5,overflow:"hidden"},progressFill:{height:"100%",borderRadius:5,transition:"width 0.6s cubic-bezier(0.22, 1, 0.36, 1)"},streakCard:{display:"flex",alignItems:"center",gap:12,padding:"20px 24px",backgroundColor:"#161b22",border:"1px solid #30363d",borderRadius:12,flex:"0 1 180px"},streakIcon:{fontSize:28},streakCount:{fontSize:16,fontWeight:700,color:"#e6edf3",margin:0},streakSubtext:{fontSize:12,color:"#8b949e",margin:0},section:{display:"flex",flexDirection:"column",gap:12},sectionTitle:{fontSize:16,fontWeight:600,color:"#e6edf3",margin:0},roadmap:{display:"flex",gap:0,padding:"16px 0",overflowX:"auto"},roadmapItem:{display:"flex",flexDirection:"column",alignItems:"center",gap:6,position:"relative",flex:"1 1 0",minWidth:70},roadmapDot:{width:36,height:36,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1},roadmapLabel:{fontSize:12},roadmapXP:{fontSize:10,color:"#484f58"},roadmapLine:{position:"absolute",top:18,left:"55%",right:"-45%",height:2,zIndex:0},moduleGrid:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:12},moduleCard:{padding:"16px 20px",backgroundColor:"#161b22",border:"2px solid",borderRadius:10,display:"flex",flexDirection:"column",gap:10,transition:"border-color 0.2s ease, box-shadow 0.2s ease"},moduleHeader:{display:"flex",alignItems:"center",gap:8},moduleStatus:{fontSize:16},moduleTitle:{fontSize:14,fontWeight:600,color:"#e6edf3",margin:0},moduleDetails:{display:"flex",gap:12,flexWrap:"wrap"},moduleXP:{fontSize:12,color:"#58a6ff",backgroundColor:"#58a6ff18",padding:"2px 8px",borderRadius:4},moduleQuiz:{fontSize:12,color:"#3fb950",backgroundColor:"#3fb95018",padding:"2px 8px",borderRadius:4},moduleStep:{fontSize:12,color:"#d29922",backgroundColor:"#d2992218",padding:"2px 8px",borderRadius:4},moduleLocked:{fontSize:12,color:"#484f58",fontStyle:"italic",margin:0},emptyState:{textAlign:"center",padding:"48px 24px",backgroundColor:"#161b22",border:"1px solid #30363d",borderRadius:12},emptyTitle:{fontSize:16,fontWeight:600,color:"#e6edf3",margin:"0 0 8px"},emptySubtext:{fontSize:14,color:"#8b949e",margin:0},code:{backgroundColor:"#21262d",padding:"2px 6px",borderRadius:4,fontSize:13,fontFamily:"monospace",color:"#58a6ff"},recommendCard:{display:"flex",alignItems:"center",gap:16,padding:"16px 20px",backgroundColor:"#161b22",border:"1px solid #30363d",borderRadius:12,flexWrap:"wrap"},recommendIcon:{fontSize:32,flexShrink:0},recommendInfo:{flex:"1 1 200px",display:"flex",flexDirection:"column",gap:4},recommendTitle:{fontSize:15,fontWeight:600,color:"#e6edf3",margin:0},recommendDesc:{fontSize:13,color:"#8b949e",margin:0},recommendXP:{fontSize:12,color:"#3fb950"},recommendAction:{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:4},recommendHint:{fontSize:11,color:"#484f58"},recommendCommand:{fontSize:13,fontFamily:"monospace",color:"#58a6ff",backgroundColor:"#21262d",padding:"4px 10px",borderRadius:6}},Q_="modulepreload",K_=function(e){return"/"+e},U0={},Qt=function(t,r,i){let s=Promise.resolve();if(r&&r.length>0){let c=function(f){return Promise.all(f.map(d=>Promise.resolve(d).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),h=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));s=c(r.map(f=>{if(f=K_(f),f in U0)return;U0[f]=!0;const d=f.endsWith(".css"),g=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${g}`))return;const m=document.createElement("link");if(m.rel=d?"stylesheet":Q_,d||(m.as="script"),m.crossOrigin="",m.href=f,h&&m.setAttribute("nonce",h),document.head.appendChild(m),d)return new Promise((y,b)=>{m.addEventListener("load",y),m.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(c){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=c,window.dispatchEvent(l),!l.defaultPrevented)throw c}return s.then(c=>{for(const l of c||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})};var Y0={name:"mermaid",version:"11.12.3",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.23",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},Ac={exports:{}},Z_=Ac.exports,V0;function J_(){return V0||(V0=1,(function(e,t){(function(r,i){e.exports=i()})(Z_,(function(){var r=1e3,i=6e4,s=36e5,o="millisecond",c="second",l="minute",h="hour",f="day",d="week",g="month",m="quarter",y="year",b="date",C="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|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,_={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(q){var W=["th","st","nd","rd"],z=q%100;return"["+q+(W[(z-20)%10]||W[z]||W[0])+"]"}},E=function(q,W,z){var U=String(q);return!U||U.length>=W?q:""+Array(W+1-U.length).join(z)+q},M={s:E,z:function(q){var W=-q.utcOffset(),z=Math.abs(W),U=Math.floor(z/60),R=z%60;return(W<=0?"+":"-")+E(U,2,"0")+":"+E(R,2,"0")},m:function q(W,z){if(W.date()<z.date())return-q(z,W);var U=12*(z.year()-W.year())+(z.month()-W.month()),R=W.clone().add(U,g),K=z-R<0,Q=W.clone().add(U+(K?-1:1),g);return+(-(U+(z-R)/(K?R-Q:Q-R))||0)},a:function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},p:function(q){return{M:g,y,w:d,d:f,D:b,h,m:l,s:c,ms:o,Q:m}[q]||String(q||"").toLowerCase().replace(/s$/,"")},u:function(q){return q===void 0}},B="en",L={};L[B]=_;var F="$isDayjsObject",V=function(q){return q instanceof ot||!(!q||!q[F])},et=function q(W,z,U){var R;if(!W)return B;if(typeof W=="string"){var K=W.toLowerCase();L[K]&&(R=K),z&&(L[K]=z,R=K);var Q=W.split("-");if(!R&&Q.length>1)return q(Q[0])}else{var $=W.name;L[$]=W,R=$}return!U&&R&&(B=R),R||!U&&B},tt=function(q,W){if(V(q))return q.clone();var z=typeof W=="object"?W:{};return z.date=q,z.args=arguments,new ot(z)},G=M;G.l=et,G.i=V,G.w=function(q,W){return tt(q,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var ot=(function(){function q(z){this.$L=et(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[F]=!0}var W=q.prototype;return W.parse=function(z){this.$d=(function(U){var R=U.date,K=U.utc;if(R===null)return new Date(NaN);if(G.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var Q=R.match(k);if(Q){var $=Q[2]-1||0,X=(Q[7]||"0").substring(0,3);return K?new Date(Date.UTC(Q[1],$,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,X)):new Date(Q[1],$,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,X)}}return new Date(R)})(z),this.init()},W.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},W.$utils=function(){return G},W.isValid=function(){return this.$d.toString()!==C},W.isSame=function(z,U){var R=tt(z);return this.startOf(U)<=R&&R<=this.endOf(U)},W.isAfter=function(z,U){return tt(z)<this.startOf(U)},W.isBefore=function(z,U){return this.endOf(U)<tt(z)},W.$g=function(z,U,R){return G.u(z)?this[U]:this.set(R,z)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(z,U){var R=this,K=!!G.u(U)||U,Q=G.p(z),$=function(Pt,jt){var ne=G.w(R.$u?Date.UTC(R.$y,jt,Pt):new Date(R.$y,jt,Pt),R);return K?ne:ne.endOf(f)},X=function(Pt,jt){return G.w(R.toDate()[Pt].apply(R.toDate("s"),(K?[0,0,0,0]:[23,59,59,999]).slice(jt)),R)},lt=this.$W,gt=this.$M,dt=this.$D,ut="set"+(this.$u?"UTC":"");switch(Q){case y:return K?$(1,0):$(31,11);case g:return K?$(1,gt):$(0,gt+1);case d:var kt=this.$locale().weekStart||0,Lt=(lt<kt?lt+7:lt)-kt;return $(K?dt-Lt:dt+(6-Lt),gt);case f:case b:return X(ut+"Hours",0);case h:return X(ut+"Minutes",1);case l:return X(ut+"Seconds",2);case c:return X(ut+"Milliseconds",3);default:return this.clone()}},W.endOf=function(z){return this.startOf(z,!1)},W.$set=function(z,U){var R,K=G.p(z),Q="set"+(this.$u?"UTC":""),$=(R={},R[f]=Q+"Date",R[b]=Q+"Date",R[g]=Q+"Month",R[y]=Q+"FullYear",R[h]=Q+"Hours",R[l]=Q+"Minutes",R[c]=Q+"Seconds",R[o]=Q+"Milliseconds",R)[K],X=K===f?this.$D+(U-this.$W):U;if(K===g||K===y){var lt=this.clone().set(b,1);lt.$d[$](X),lt.init(),this.$d=lt.set(b,Math.min(this.$D,lt.daysInMonth())).$d}else $&&this.$d[$](X);return this.init(),this},W.set=function(z,U){return this.clone().$set(z,U)},W.get=function(z){return this[G.p(z)]()},W.add=function(z,U){var R,K=this;z=Number(z);var Q=G.p(U),$=function(gt){var dt=tt(K);return G.w(dt.date(dt.date()+Math.round(gt*z)),K)};if(Q===g)return this.set(g,this.$M+z);if(Q===y)return this.set(y,this.$y+z);if(Q===f)return $(1);if(Q===d)return $(7);var X=(R={},R[l]=i,R[h]=s,R[c]=r,R)[Q]||1,lt=this.$d.getTime()+z*X;return G.w(lt,this)},W.subtract=function(z,U){return this.add(-1*z,U)},W.format=function(z){var U=this,R=this.$locale();if(!this.isValid())return R.invalidDate||C;var K=z||"YYYY-MM-DDTHH:mm:ssZ",Q=G.z(this),$=this.$H,X=this.$m,lt=this.$M,gt=R.weekdays,dt=R.months,ut=R.meridiem,kt=function(jt,ne,er,Be){return jt&&(jt[ne]||jt(U,K))||er[ne].slice(0,Be)},Lt=function(jt){return G.s($%12||12,jt,"0")},Pt=ut||function(jt,ne,er){var Be=jt<12?"AM":"PM";return er?Be.toLowerCase():Be};return K.replace(S,(function(jt,ne){return ne||(function(er){switch(er){case"YY":return String(U.$y).slice(-2);case"YYYY":return G.s(U.$y,4,"0");case"M":return lt+1;case"MM":return G.s(lt+1,2,"0");case"MMM":return kt(R.monthsShort,lt,dt,3);case"MMMM":return kt(dt,lt);case"D":return U.$D;case"DD":return G.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return kt(R.weekdaysMin,U.$W,gt,2);case"ddd":return kt(R.weekdaysShort,U.$W,gt,3);case"dddd":return gt[U.$W];case"H":return String($);case"HH":return G.s($,2,"0");case"h":return Lt(1);case"hh":return Lt(2);case"a":return Pt($,X,!0);case"A":return Pt($,X,!1);case"m":return String(X);case"mm":return G.s(X,2,"0");case"s":return String(U.$s);case"ss":return G.s(U.$s,2,"0");case"SSS":return G.s(U.$ms,3,"0");case"Z":return Q}return null})(jt)||Q.replace(":","")}))},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(z,U,R){var K,Q=this,$=G.p(U),X=tt(z),lt=(X.utcOffset()-this.utcOffset())*i,gt=this-X,dt=function(){return G.m(Q,X)};switch($){case y:K=dt()/12;break;case g:K=dt();break;case m:K=dt()/3;break;case d:K=(gt-lt)/6048e5;break;case f:K=(gt-lt)/864e5;break;case h:K=gt/s;break;case l:K=gt/i;break;case c:K=gt/r;break;default:K=gt}return R?K:G.a(K)},W.daysInMonth=function(){return this.endOf(g).$D},W.$locale=function(){return L[this.$L]},W.locale=function(z,U){if(!z)return this.$L;var R=this.clone(),K=et(z,U,!0);return K&&(R.$L=K),R},W.clone=function(){return G.w(this.$d,this)},W.toDate=function(){return new Date(this.valueOf())},W.toJSON=function(){return this.isValid()?this.toISOString():null},W.toISOString=function(){return this.$d.toISOString()},W.toString=function(){return this.$d.toUTCString()},q})(),Z=ot.prototype;return tt.prototype=Z,[["$ms",o],["$s",c],["$m",l],["$H",h],["$W",f],["$M",g],["$y",y],["$D",b]].forEach((function(q){Z[q[1]]=function(W){return this.$g(W,q[0],q[1])}})),tt.extend=function(q,W){return q.$i||(q(W,ot,tt),q.$i=!0),tt},tt.locale=et,tt.isDayjs=V,tt.unix=function(q){return tt(1e3*q)},tt.en=L[B],tt.Ls=L,tt.p={},tt}))})(Ac)),Ac.exports}var tS=J_();const eS=lp(tS);var Lx=Object.defineProperty,w=(e,t)=>Lx(e,"name",{value:t,configurable:!0}),rS=(e,t)=>{for(var r in t)Lx(e,r,{get:t[r],enumerable:!0})},Dn={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},J={trace:w((...e)=>{},"trace"),debug:w((...e)=>{},"debug"),info:w((...e)=>{},"info"),warn:w((...e)=>{},"warn"),error:w((...e)=>{},"error"),fatal:w((...e)=>{},"fatal")},up=w(function(e="fatal"){let t=Dn.fatal;typeof e=="string"?e.toLowerCase()in Dn&&(t=Dn[e]):typeof e=="number"&&(t=e),J.trace=()=>{},J.debug=()=>{},J.info=()=>{},J.warn=()=>{},J.error=()=>{},J.fatal=()=>{},t<=Dn.fatal&&(J.fatal=console.error?console.error.bind(console,$r("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",$r("FATAL"))),t<=Dn.error&&(J.error=console.error?console.error.bind(console,$r("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",$r("ERROR"))),t<=Dn.warn&&(J.warn=console.warn?console.warn.bind(console,$r("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",$r("WARN"))),t<=Dn.info&&(J.info=console.info?console.info.bind(console,$r("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",$r("INFO"))),t<=Dn.debug&&(J.debug=console.debug?console.debug.bind(console,$r("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$r("DEBUG"))),t<=Dn.trace&&(J.trace=console.debug?console.debug.bind(console,$r("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$r("TRACE")))},"setLogLevel"),$r=w(e=>`%c${eS().format("ss.SSS")} : ${e} : `,"format");const Bc={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 s=r<.5?r*(1+t):r+t-r*t,o=2*r-s;switch(i){case"r":return Bc.hue2rgb(o,s,e+1/3)*255;case"g":return Bc.hue2rgb(o,s,e)*255;case"b":return Bc.hue2rgb(o,s,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const s=Math.max(e,t,r),o=Math.min(e,t,r),c=(s+o)/2;if(i==="l")return c*100;if(s===o)return 0;const l=s-o,h=c>.5?l/(2-s-o):l/(s+o);if(i==="s")return h*100;switch(s){case e:return((t-r)/l+(t<r?6:0))*60;case t:return((r-e)/l+2)*60;case r:return((e-t)/l+4)*60;default:return-1}}},nS={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},iS={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},Nt={channel:Bc,lang:nS,unit:iS},yi={};for(let e=0;e<=255;e++)yi[e]=Nt.unit.dec2hex(e);const je={ALL:0,RGB:1,HSL:2};class aS{constructor(){this.type=je.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=je.ALL}is(t){return this.type===t}}class sS{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new aS}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=je.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:s}=t;r===void 0&&(t.h=Nt.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=Nt.channel.rgb2hsl(t,"s")),s===void 0&&(t.l=Nt.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:s}=t;r===void 0&&(t.r=Nt.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=Nt.channel.hsl2rgb(t,"g")),s===void 0&&(t.b=Nt.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(je.HSL)&&r!==void 0?r:(this._ensureHSL(),Nt.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(je.HSL)&&r!==void 0?r:(this._ensureHSL(),Nt.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(je.HSL)&&r!==void 0?r:(this._ensureHSL(),Nt.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(je.RGB)&&r!==void 0?r:(this._ensureRGB(),Nt.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(je.RGB)&&r!==void 0?r:(this._ensureRGB(),Nt.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(je.RGB)&&r!==void 0?r:(this._ensureRGB(),Nt.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(je.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(je.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(je.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(je.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(je.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(je.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const Lu=new sS({r:0,g:0,b:0,a:0},"transparent"),Xa={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Xa.re);if(!t)return;const r=t[1],i=parseInt(r,16),s=r.length,o=s%4===0,c=s>4,l=c?1:17,h=c?8:4,f=o?0:-1,d=c?255:15;return Lu.set({r:(i>>h*(f+3)&d)*l,g:(i>>h*(f+2)&d)*l,b:(i>>h*(f+1)&d)*l,a:o?(i&d)*l/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:s}=e;return s<1?`#${yi[Math.round(t)]}${yi[Math.round(r)]}${yi[Math.round(i)]}${yi[Math.round(s*255)]}`:`#${yi[Math.round(t)]}${yi[Math.round(r)]}${yi[Math.round(i)]}`}},Zi={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(Zi.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return Nt.channel.clamp.h(parseFloat(r)*.9);case"rad":return Nt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Nt.channel.clamp.h(parseFloat(r)*360)}}return Nt.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(Zi.re);if(!r)return;const[,i,s,o,c,l]=r;return Lu.set({h:Zi._hue2deg(i),s:Nt.channel.clamp.s(parseFloat(s)),l:Nt.channel.clamp.l(parseFloat(o)),a:c?Nt.channel.clamp.a(l?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:s}=e;return s<1?`hsla(${Nt.lang.round(t)}, ${Nt.lang.round(r)}%, ${Nt.lang.round(i)}%, ${s})`:`hsl(${Nt.lang.round(t)}, ${Nt.lang.round(r)}%, ${Nt.lang.round(i)}%)`}},Ao={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=Ao.colors[e];if(t)return Xa.parse(t)},stringify:e=>{const t=Xa.stringify(e);for(const r in Ao.colors)if(Ao.colors[r]===t)return r}},wo={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(wo.re);if(!r)return;const[,i,s,o,c,l,h,f,d]=r;return Lu.set({r:Nt.channel.clamp.r(s?parseFloat(i)*2.55:parseFloat(i)),g:Nt.channel.clamp.g(c?parseFloat(o)*2.55:parseFloat(o)),b:Nt.channel.clamp.b(h?parseFloat(l)*2.55:parseFloat(l)),a:f?Nt.channel.clamp.a(d?parseFloat(f)/100:parseFloat(f)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:s}=e;return s<1?`rgba(${Nt.lang.round(t)}, ${Nt.lang.round(r)}, ${Nt.lang.round(i)}, ${Nt.lang.round(s)})`:`rgb(${Nt.lang.round(t)}, ${Nt.lang.round(r)}, ${Nt.lang.round(i)})`}},yn={format:{keyword:Ao,hex:Xa,rgb:wo,rgba:wo,hsl:Zi,hsla:Zi},parse:e=>{if(typeof e!="string")return e;const t=Xa.parse(e)||wo.parse(e)||Zi.parse(e)||Ao.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(je.HSL)||e.data.r===void 0?Zi.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?wo.stringify(e):Xa.stringify(e)},Mx=(e,t)=>{const r=yn.parse(e);for(const i in t)r[i]=Nt.channel.clamp[i](t[i]);return yn.stringify(r)},Bo=(e,t,r=0,i=1)=>{if(typeof e!="number")return Mx(e,{a:t});const s=Lu.set({r:Nt.channel.clamp.r(e),g:Nt.channel.clamp.g(t),b:Nt.channel.clamp.b(r),a:Nt.channel.clamp.a(i)});return yn.stringify(s)},oS=e=>{const{r:t,g:r,b:i}=yn.parse(e),s=.2126*Nt.channel.toLinear(t)+.7152*Nt.channel.toLinear(r)+.0722*Nt.channel.toLinear(i);return Nt.lang.round(s)},lS=e=>oS(e)>=.5,Xo=e=>!lS(e),Ax=(e,t,r)=>{const i=yn.parse(e),s=i[t],o=Nt.channel.clamp[t](s+r);return s!==o&&(i[t]=o),yn.stringify(i)},xt=(e,t)=>Ax(e,"l",t),At=(e,t)=>Ax(e,"l",-t),N=(e,t)=>{const r=yn.parse(e),i={};for(const s in t)t[s]&&(i[s]=r[s]+t[s]);return Mx(e,i)},cS=(e,t,r=50)=>{const{r:i,g:s,b:o,a:c}=yn.parse(e),{r:l,g:h,b:f,a:d}=yn.parse(t),g=r/100,m=g*2-1,y=c-d,C=((m*y===-1?m:(m+y)/(1+m*y))+1)/2,k=1-C,S=i*C+l*k,_=s*C+h*k,E=o*C+f*k,M=c*g+d*(1-g);return Bo(S,_,E,M)},ct=(e,t=100)=>{const r=yn.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,cS(r,e,t)};/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:Bx,setPrototypeOf:G0,isFrozen:uS,getPrototypeOf:hS,getOwnPropertyDescriptor:fS}=Object;let{freeze:Je,seal:Fr,create:cd}=Object,{apply:ud,construct:hd}=typeof Reflect<"u"&&Reflect;Je||(Je=function(t){return t});Fr||(Fr=function(t){return t});ud||(ud=function(t,r){for(var i=arguments.length,s=new Array(i>2?i-2:0),o=2;o<i;o++)s[o-2]=arguments[o];return t.apply(r,s)});hd||(hd=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return new t(...i)});const mc=tr(Array.prototype.forEach),dS=tr(Array.prototype.lastIndexOf),X0=tr(Array.prototype.pop),co=tr(Array.prototype.push),pS=tr(Array.prototype.splice),$c=tr(String.prototype.toLowerCase),jf=tr(String.prototype.toString),Wf=tr(String.prototype.match),uo=tr(String.prototype.replace),gS=tr(String.prototype.indexOf),mS=tr(String.prototype.trim),Vr=tr(Object.prototype.hasOwnProperty),Xe=tr(RegExp.prototype.test),ho=yS(TypeError);function tr(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return ud(e,t,i)}}function yS(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return hd(e,r)}}function qt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$c;G0&&G0(e,null);let i=t.length;for(;i--;){let s=t[i];if(typeof s=="string"){const o=r(s);o!==s&&(uS(t)||(t[i]=o),s=o)}e[s]=!0}return e}function xS(e){for(let t=0;t<e.length;t++)Vr(e,t)||(e[t]=null);return e}function fn(e){const t=cd(null);for(const[r,i]of Bx(e))Vr(e,r)&&(Array.isArray(i)?t[r]=xS(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=fn(i):t[r]=i);return t}function fo(e,t){for(;e!==null;){const i=fS(e,t);if(i){if(i.get)return tr(i.get);if(typeof i.value=="function")return tr(i.value)}e=hS(e)}function r(){return null}return r}const Q0=Je(["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"]),Hf=Je(["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"]),qf=Je(["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"]),vS=Je(["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"]),Uf=Je(["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"]),bS=Je(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),K0=Je(["#text"]),Z0=Je(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Yf=Je(["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"]),J0=Je(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),yc=Je(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),wS=Fr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),CS=Fr(/<%[\w\W]*|[\w\W]*%>/gm),kS=Fr(/\$\{[\w\W]*/gm),_S=Fr(/^data-[\-\w.\u00B7-\uFFFF]+$/),SS=Fr(/^aria-[\-\w]+$/),$x=Fr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),TS=Fr(/^(?:\w+script|data):/i),ES=Fr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fx=Fr(/^html$/i),LS=Fr(/^[a-z][.\w]*(-[.\w]+)+$/i);var ty=Object.freeze({__proto__:null,ARIA_ATTR:SS,ATTR_WHITESPACE:ES,CUSTOM_ELEMENT:LS,DATA_ATTR:_S,DOCTYPE_NAME:Fx,ERB_EXPR:CS,IS_ALLOWED_URI:$x,IS_SCRIPT_OR_DATA:TS,MUSTACHE_EXPR:wS,TMPLIT_EXPR:kS});const po={element:1,text:3,progressingInstruction:7,comment:8,document:9},MS=function(){return typeof window>"u"?null:window},AS=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(i=r.getAttribute(s));const o="dompurify"+(i?"#"+i:"");try{return t.createPolicy(o,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},ey=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Rx(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:MS();const t=Et=>Rx(Et);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==po.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const i=r,s=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:c,Node:l,Element:h,NodeFilter:f,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:g,DOMParser:m,trustedTypes:y}=e,b=h.prototype,C=fo(b,"cloneNode"),k=fo(b,"remove"),S=fo(b,"nextSibling"),_=fo(b,"childNodes"),E=fo(b,"parentNode");if(typeof c=="function"){const Et=r.createElement("template");Et.content&&Et.content.ownerDocument&&(r=Et.content.ownerDocument)}let M,B="";const{implementation:L,createNodeIterator:F,createDocumentFragment:V,getElementsByTagName:et}=r,{importNode:tt}=i;let G=ey();t.isSupported=typeof Bx=="function"&&typeof E=="function"&&L&&L.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ot,ERB_EXPR:Z,TMPLIT_EXPR:q,DATA_ATTR:W,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:R,CUSTOM_ELEMENT:K}=ty;let{IS_ALLOWED_URI:Q}=ty,$=null;const X=qt({},[...Q0,...Hf,...qf,...Uf,...K0]);let lt=null;const gt=qt({},[...Z0,...Yf,...J0,...yc]);let dt=Object.seal(cd(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}})),ut=null,kt=null;const Lt=Object.seal(cd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Pt=!0,jt=!0,ne=!1,er=!0,Be=!1,kr=!0,en=!1,ya=!1,Mi=!1,wn=!1,qn=!1,rn=!1,Cn=!0,xa=!1;const al="user-content-";let va=!0,Un=!1,kn={},rr=null;const Yn=qt({},["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 ws=null;const Vn=qt({},["audio","video","img","source","image","track"]);let _n=null;const sl=qt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ai="http://www.w3.org/1998/Math/MathML",Bi="http://www.w3.org/2000/svg",Pr="http://www.w3.org/1999/xhtml";let nn=Pr,$i=!1,Fi=null;const Cs=qt({},[Ai,Bi,Pr],jf);let Gn=qt({},["mi","mo","mn","ms","mtext"]),Or=qt({},["annotation-xml"]);const Xn=qt({},["title","style","font","a","script"]);let Qn=null;const ol=["application/xhtml+xml","text/html"],ll="text/html";let fe=null,Sn=null;const ks=r.createElement("form"),_s=function(P){return P instanceof RegExp||P instanceof Function},Tn=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Sn&&Sn===P)){if((!P||typeof P!="object")&&(P={}),P=fn(P),Qn=ol.indexOf(P.PARSER_MEDIA_TYPE)===-1?ll:P.PARSER_MEDIA_TYPE,fe=Qn==="application/xhtml+xml"?jf:$c,$=Vr(P,"ALLOWED_TAGS")?qt({},P.ALLOWED_TAGS,fe):X,lt=Vr(P,"ALLOWED_ATTR")?qt({},P.ALLOWED_ATTR,fe):gt,Fi=Vr(P,"ALLOWED_NAMESPACES")?qt({},P.ALLOWED_NAMESPACES,jf):Cs,_n=Vr(P,"ADD_URI_SAFE_ATTR")?qt(fn(sl),P.ADD_URI_SAFE_ATTR,fe):sl,ws=Vr(P,"ADD_DATA_URI_TAGS")?qt(fn(Vn),P.ADD_DATA_URI_TAGS,fe):Vn,rr=Vr(P,"FORBID_CONTENTS")?qt({},P.FORBID_CONTENTS,fe):Yn,ut=Vr(P,"FORBID_TAGS")?qt({},P.FORBID_TAGS,fe):fn({}),kt=Vr(P,"FORBID_ATTR")?qt({},P.FORBID_ATTR,fe):fn({}),kn=Vr(P,"USE_PROFILES")?P.USE_PROFILES:!1,Pt=P.ALLOW_ARIA_ATTR!==!1,jt=P.ALLOW_DATA_ATTR!==!1,ne=P.ALLOW_UNKNOWN_PROTOCOLS||!1,er=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Be=P.SAFE_FOR_TEMPLATES||!1,kr=P.SAFE_FOR_XML!==!1,en=P.WHOLE_DOCUMENT||!1,wn=P.RETURN_DOM||!1,qn=P.RETURN_DOM_FRAGMENT||!1,rn=P.RETURN_TRUSTED_TYPE||!1,Mi=P.FORCE_BODY||!1,Cn=P.SANITIZE_DOM!==!1,xa=P.SANITIZE_NAMED_PROPS||!1,va=P.KEEP_CONTENT!==!1,Un=P.IN_PLACE||!1,Q=P.ALLOWED_URI_REGEXP||$x,nn=P.NAMESPACE||Pr,Gn=P.MATHML_TEXT_INTEGRATION_POINTS||Gn,Or=P.HTML_INTEGRATION_POINTS||Or,dt=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&_s(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(dt.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&_s(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(dt.attributeNameCheck=P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(dt.allowCustomizedBuiltInElements=P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Be&&(jt=!1),qn&&(wn=!0),kn&&($=qt({},K0),lt=[],kn.html===!0&&(qt($,Q0),qt(lt,Z0)),kn.svg===!0&&(qt($,Hf),qt(lt,Yf),qt(lt,yc)),kn.svgFilters===!0&&(qt($,qf),qt(lt,Yf),qt(lt,yc)),kn.mathMl===!0&&(qt($,Uf),qt(lt,J0),qt(lt,yc))),P.ADD_TAGS&&(typeof P.ADD_TAGS=="function"?Lt.tagCheck=P.ADD_TAGS:($===X&&($=fn($)),qt($,P.ADD_TAGS,fe))),P.ADD_ATTR&&(typeof P.ADD_ATTR=="function"?Lt.attributeCheck=P.ADD_ATTR:(lt===gt&&(lt=fn(lt)),qt(lt,P.ADD_ATTR,fe))),P.ADD_URI_SAFE_ATTR&&qt(_n,P.ADD_URI_SAFE_ATTR,fe),P.FORBID_CONTENTS&&(rr===Yn&&(rr=fn(rr)),qt(rr,P.FORBID_CONTENTS,fe)),P.ADD_FORBID_CONTENTS&&(rr===Yn&&(rr=fn(rr)),qt(rr,P.ADD_FORBID_CONTENTS,fe)),va&&($["#text"]=!0),en&&qt($,["html","head","body"]),$.table&&(qt($,["tbody"]),delete ut.tbody),P.TRUSTED_TYPES_POLICY){if(typeof P.TRUSTED_TYPES_POLICY.createHTML!="function")throw ho('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ho('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');M=P.TRUSTED_TYPES_POLICY,B=M.createHTML("")}else M===void 0&&(M=AS(y,s)),M!==null&&typeof B=="string"&&(B=M.createHTML(""));Je&&Je(P),Sn=P}},ba=qt({},[...Hf,...qf,...vS]),Kn=qt({},[...Uf,...bS]),eh=function(P){let at=E(P);(!at||!at.tagName)&&(at={namespaceURI:nn,tagName:"template"});const bt=$c(P.tagName),ee=$c(at.tagName);return Fi[P.namespaceURI]?P.namespaceURI===Bi?at.namespaceURI===Pr?bt==="svg":at.namespaceURI===Ai?bt==="svg"&&(ee==="annotation-xml"||Gn[ee]):!!ba[bt]:P.namespaceURI===Ai?at.namespaceURI===Pr?bt==="math":at.namespaceURI===Bi?bt==="math"&&Or[ee]:!!Kn[bt]:P.namespaceURI===Pr?at.namespaceURI===Bi&&!Or[ee]||at.namespaceURI===Ai&&!Gn[ee]?!1:!Kn[bt]&&(Xn[bt]||!ba[bt]):!!(Qn==="application/xhtml+xml"&&Fi[P.namespaceURI]):!1},Pe=function(P){co(t.removed,{element:P});try{E(P).removeChild(P)}catch{k(P)}},_r=function(P,at){try{co(t.removed,{attribute:at.getAttributeNode(P),from:at})}catch{co(t.removed,{attribute:null,from:at})}if(at.removeAttribute(P),P==="is")if(wn||qn)try{Pe(at)}catch{}else try{at.setAttribute(P,"")}catch{}},Ri=function(P){let at=null,bt=null;if(Mi)P="<remove></remove>"+P;else{const de=Wf(P,/^[\r\n\t ]+/);bt=de&&de[0]}Qn==="application/xhtml+xml"&&nn===Pr&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");const ee=M?M.createHTML(P):P;if(nn===Pr)try{at=new m().parseFromString(ee,Qn)}catch{}if(!at||!at.documentElement){at=L.createDocument(nn,"template",null);try{at.documentElement.innerHTML=$i?B:ee}catch{}}const Wt=at.body||at.documentElement;return P&&bt&&Wt.insertBefore(r.createTextNode(bt),Wt.childNodes[0]||null),nn===Pr?et.call(at,en?"html":"body")[0]:en?at.documentElement:Wt},wa=function(P){return F.call(P.ownerDocument||P,P,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Ss=function(P){return P instanceof g&&(typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||!(P.attributes instanceof d)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function")},cl=function(P){return typeof l=="function"&&P instanceof l};function Ir(Et,P,at){mc(Et,bt=>{bt.call(t,P,at,Sn)})}const an=function(P){let at=null;if(Ir(G.beforeSanitizeElements,P,null),Ss(P))return Pe(P),!0;const bt=fe(P.nodeName);if(Ir(G.uponSanitizeElement,P,{tagName:bt,allowedTags:$}),kr&&P.hasChildNodes()&&!cl(P.firstElementChild)&&Xe(/<[/\w!]/g,P.innerHTML)&&Xe(/<[/\w!]/g,P.textContent)||P.nodeType===po.progressingInstruction||kr&&P.nodeType===po.comment&&Xe(/<[/\w]/g,P.data))return Pe(P),!0;if(!(Lt.tagCheck instanceof Function&&Lt.tagCheck(bt))&&(!$[bt]||ut[bt])){if(!ut[bt]&&Es(bt)&&(dt.tagNameCheck instanceof RegExp&&Xe(dt.tagNameCheck,bt)||dt.tagNameCheck instanceof Function&&dt.tagNameCheck(bt)))return!1;if(va&&!rr[bt]){const ee=E(P)||P.parentNode,Wt=_(P)||P.childNodes;if(Wt&&ee){const de=Wt.length;for(let Ee=de-1;Ee>=0;--Ee){const Sr=C(Wt[Ee],!0);Sr.__removalCount=(P.__removalCount||0)+1,ee.insertBefore(Sr,S(P))}}}return Pe(P),!0}return P instanceof h&&!eh(P)||(bt==="noscript"||bt==="noembed"||bt==="noframes")&&Xe(/<\/no(script|embed|frames)/i,P.innerHTML)?(Pe(P),!0):(Be&&P.nodeType===po.text&&(at=P.textContent,mc([ot,Z,q],ee=>{at=uo(at,ee," ")}),P.textContent!==at&&(co(t.removed,{element:P.cloneNode()}),P.textContent=at)),Ir(G.afterSanitizeElements,P,null),!1)},Ts=function(P,at,bt){if(Cn&&(at==="id"||at==="name")&&(bt in r||bt in ks))return!1;if(!(jt&&!kt[at]&&Xe(W,at))){if(!(Pt&&Xe(z,at))){if(!(Lt.attributeCheck instanceof Function&&Lt.attributeCheck(at,P))){if(!lt[at]||kt[at]){if(!(Es(P)&&(dt.tagNameCheck instanceof RegExp&&Xe(dt.tagNameCheck,P)||dt.tagNameCheck instanceof Function&&dt.tagNameCheck(P))&&(dt.attributeNameCheck instanceof RegExp&&Xe(dt.attributeNameCheck,at)||dt.attributeNameCheck instanceof Function&&dt.attributeNameCheck(at,P))||at==="is"&&dt.allowCustomizedBuiltInElements&&(dt.tagNameCheck instanceof RegExp&&Xe(dt.tagNameCheck,bt)||dt.tagNameCheck instanceof Function&&dt.tagNameCheck(bt))))return!1}else if(!_n[at]){if(!Xe(Q,uo(bt,R,""))){if(!((at==="src"||at==="xlink:href"||at==="href")&&P!=="script"&&gS(bt,"data:")===0&&ws[P])){if(!(ne&&!Xe(U,uo(bt,R,"")))){if(bt)return!1}}}}}}}return!0},Es=function(P){return P!=="annotation-xml"&&Wf(P,K)},ul=function(P){Ir(G.beforeSanitizeAttributes,P,null);const{attributes:at}=P;if(!at||Ss(P))return;const bt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:lt,forceKeepAttr:void 0};let ee=at.length;for(;ee--;){const Wt=at[ee],{name:de,namespaceURI:Ee,value:Sr}=Wt,Nr=fe(de),Ls=Sr;let xe=de==="value"?Ls:mS(Ls);if(bt.attrName=Nr,bt.attrValue=xe,bt.keepAttr=!0,bt.forceKeepAttr=void 0,Ir(G.uponSanitizeAttribute,P,bt),xe=bt.attrValue,xa&&(Nr==="id"||Nr==="name")&&(_r(de,P),xe=al+xe),kr&&Xe(/((--!?|])>)|<\/(style|title|textarea)/i,xe)){_r(de,P);continue}if(Nr==="attributename"&&Wf(xe,"href")){_r(de,P);continue}if(bt.forceKeepAttr)continue;if(!bt.keepAttr){_r(de,P);continue}if(!er&&Xe(/\/>/i,xe)){_r(de,P);continue}Be&&mc([ot,Z,q],pr=>{xe=uo(xe,pr," ")});const Di=fe(P.nodeName);if(!Ts(Di,Nr,xe)){_r(de,P);continue}if(M&&typeof y=="object"&&typeof y.getAttributeType=="function"&&!Ee)switch(y.getAttributeType(Di,Nr)){case"TrustedHTML":{xe=M.createHTML(xe);break}case"TrustedScriptURL":{xe=M.createScriptURL(xe);break}}if(xe!==Ls)try{Ee?P.setAttributeNS(Ee,de,xe):P.setAttribute(de,xe),Ss(P)?Pe(P):X0(t.removed)}catch{_r(de,P)}}Ir(G.afterSanitizeAttributes,P,null)},hl=function Et(P){let at=null;const bt=wa(P);for(Ir(G.beforeSanitizeShadowDOM,P,null);at=bt.nextNode();)Ir(G.uponSanitizeShadowNode,at,null),an(at),ul(at),at.content instanceof o&&Et(at.content);Ir(G.afterSanitizeShadowDOM,P,null)};return t.sanitize=function(Et){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},at=null,bt=null,ee=null,Wt=null;if($i=!Et,$i&&(Et="<!-->"),typeof Et!="string"&&!cl(Et))if(typeof Et.toString=="function"){if(Et=Et.toString(),typeof Et!="string")throw ho("dirty is not a string, aborting")}else throw ho("toString is not a function");if(!t.isSupported)return Et;if(ya||Tn(P),t.removed=[],typeof Et=="string"&&(Un=!1),Un){if(Et.nodeName){const Sr=fe(Et.nodeName);if(!$[Sr]||ut[Sr])throw ho("root node is forbidden and cannot be sanitized in-place")}}else if(Et instanceof l)at=Ri("<!---->"),bt=at.ownerDocument.importNode(Et,!0),bt.nodeType===po.element&&bt.nodeName==="BODY"||bt.nodeName==="HTML"?at=bt:at.appendChild(bt);else{if(!wn&&!Be&&!en&&Et.indexOf("<")===-1)return M&&rn?M.createHTML(Et):Et;if(at=Ri(Et),!at)return wn?null:rn?B:""}at&&Mi&&Pe(at.firstChild);const de=wa(Un?Et:at);for(;ee=de.nextNode();)an(ee),ul(ee),ee.content instanceof o&&hl(ee.content);if(Un)return Et;if(wn){if(qn)for(Wt=V.call(at.ownerDocument);at.firstChild;)Wt.appendChild(at.firstChild);else Wt=at;return(lt.shadowroot||lt.shadowrootmode)&&(Wt=tt.call(i,Wt,!0)),Wt}let Ee=en?at.outerHTML:at.innerHTML;return en&&$["!doctype"]&&at.ownerDocument&&at.ownerDocument.doctype&&at.ownerDocument.doctype.name&&Xe(Fx,at.ownerDocument.doctype.name)&&(Ee="<!DOCTYPE "+at.ownerDocument.doctype.name+`>
|
|
42
|
+
`+Ee),Be&&mc([ot,Z,q],Sr=>{Ee=uo(Ee,Sr," ")}),M&&rn?M.createHTML(Ee):Ee},t.setConfig=function(){let Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Tn(Et),ya=!0},t.clearConfig=function(){Sn=null,ya=!1},t.isValidAttribute=function(Et,P,at){Sn||Tn({});const bt=fe(Et),ee=fe(P);return Ts(bt,ee,at)},t.addHook=function(Et,P){typeof P=="function"&&co(G[Et],P)},t.removeHook=function(Et,P){if(P!==void 0){const at=dS(G[Et],P);return at===-1?void 0:pS(G[Et],at,1)[0]}return X0(G[Et])},t.removeHooks=function(Et){G[Et]=[]},t.removeAllHooks=function(){G=ey()},t}var ss=Rx(),Dx=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,$o=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,BS=/\s*%%.*\n/gm,Za,Px=(Za=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},w(Za,"UnknownDiagramError"),Za),aa={},hp=w(function(e,t){e=e.replace(Dx,"").replace($o,"").replace(BS,`
|
|
43
|
+
`);for(const[r,{detector:i}]of Object.entries(aa))if(i(e,t))return r;throw new Px(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),fd=w((...e)=>{for(const{id:t,detector:r,loader:i}of e)Ox(t,r,i)},"registerLazyLoadedDiagrams"),Ox=w((e,t,r)=>{aa[e]&&J.warn(`Detector with key ${e} already exists. Overwriting.`),aa[e]={detector:t,loader:r},J.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),$S=w(e=>aa[e].loader,"getDiagramLoader"),dd=w((e,t,{depth:r=2,clobber:i=!1}={})=>{const s={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(o=>dd(e,o,s)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(o=>{e.includes(o)||e.push(o)}),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(o=>{typeof t[o]=="object"&&(e[o]===void 0||typeof e[o]=="object")?(e[o]===void 0&&(e[o]=Array.isArray(t[o])?[]:{}),e[o]=dd(e[o],t[o],{depth:r-1,clobber:i})):(i||typeof e[o]!="object"&&typeof t[o]!="object")&&(e[o]=t[o])}),e)},"assignWithDepth"),_e=dd,Mu="#ffffff",Au="#f2f2f2",Qe=w((e,t)=>t?N(e,{s:-40,l:10}):N(e,{s:-40,l:-10}),"mkBorder"),Ja,FS=(Ja=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var r,i,s,o,c,l,h,f,d,g,m,y,b,C,k,S,_,E,M,B,L;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||N(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||N(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Qe(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Qe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Qe(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Qe(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||ct(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||ct(this.tertiaryColor),this.lineColor=this.lineColor||ct(this.background),this.arrowheadColor=this.arrowheadColor||ct(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?At(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||At(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||ct(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||xt(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.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||At(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||At(this.mainBkg,10)):(this.rowOdd=this.rowOdd||xt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||xt(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||N(this.primaryColor,{h:30}),this.cScale4=this.cScale4||N(this.primaryColor,{h:60}),this.cScale5=this.cScale5||N(this.primaryColor,{h:90}),this.cScale6=this.cScale6||N(this.primaryColor,{h:120}),this.cScale7=this.cScale7||N(this.primaryColor,{h:150}),this.cScale8=this.cScale8||N(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||N(this.primaryColor,{h:270}),this.cScale10=this.cScale10||N(this.primaryColor,{h:300}),this.cScale11=this.cScale11||N(this.primaryColor,{h:330}),this.darkMode)for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScale"+F]=At(this["cScale"+F],75);else for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScale"+F]=At(this["cScale"+F],25);for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScaleInv"+F]=this["cScaleInv"+F]||ct(this["cScale"+F]);for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this.darkMode?this["cScalePeer"+F]=this["cScalePeer"+F]||xt(this["cScale"+F],10):this["cScalePeer"+F]=this["cScalePeer"+F]||At(this["cScale"+F],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let F=0;F<this.THEME_COLOR_LIMIT;F++)this["cScaleLabel"+F]=this["cScaleLabel"+F]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let F=0;F<5;F++)this["surface"+F]=this["surface"+F]||N(this.mainBkg,{h:180,s:-15,l:t*(5+F*3)}),this["surfacePeer"+F]=this["surfacePeer"+F]||N(this.mainBkg,{h:180,s:-15,l:t*(8+F*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||N(this.primaryColor,{h:64}),this.fillType3=this.fillType3||N(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||N(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||N(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||N(this.primaryColor,{h:128}),this.fillType7=this.fillType7||N(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||N(this.primaryColor,{l:-10}),this.pie5=this.pie5||N(this.secondaryColor,{l:-10}),this.pie6=this.pie6||N(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||N(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||N(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||N(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||N(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||N(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||N(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.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((i=this.radar)==null?void 0:i.axisStrokeWidth)||2,axisLabelFontSize:((s=this.radar)==null?void 0:s.axisLabelFontSize)||12,curveOpacity:((o=this.radar)==null?void 0:o.curveOpacity)||.5,curveStrokeWidth:((c=this.radar)==null?void 0:c.curveStrokeWidth)||2,graticuleColor:((l=this.radar)==null?void 0:l.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((h=this.radar)==null?void 0:h.graticuleStrokeWidth)||1,graticuleOpacity:((f=this.radar)==null?void 0:f.graticuleOpacity)||.3,legendBoxSize:((d=this.radar)==null?void 0:d.legendBoxSize)||12,legendFontSize:((g=this.radar)==null?void 0:g.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||N(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||N(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||N(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||N(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||N(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||N(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Xo(this.quadrant1Fill)?xt(this.quadrant1Fill):At(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:((m=this.xyChart)==null?void 0:m.backgroundColor)||this.background,titleColor:((y=this.xyChart)==null?void 0:y.titleColor)||this.primaryTextColor,xAxisTitleColor:((b=this.xyChart)==null?void 0:b.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((C=this.xyChart)==null?void 0:C.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((k=this.xyChart)==null?void 0:k.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((S=this.xyChart)==null?void 0:S.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((_=this.xyChart)==null?void 0:_.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((E=this.xyChart)==null?void 0:E.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((M=this.xyChart)==null?void 0:M.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((B=this.xyChart)==null?void 0:B.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((L=this.xyChart)==null?void 0:L.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?At(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||N(this.primaryColor,{h:-30}),this.git4=this.git4||N(this.primaryColor,{h:-60}),this.git5=this.git5||N(this.primaryColor,{h:-90}),this.git6=this.git6||N(this.primaryColor,{h:60}),this.git7=this.git7||N(this.primaryColor,{h:120}),this.darkMode?(this.git0=xt(this.git0,25),this.git1=xt(this.git1,25),this.git2=xt(this.git2,25),this.git3=xt(this.git3,25),this.git4=xt(this.git4,25),this.git5=xt(this.git5,25),this.git6=xt(this.git6,25),this.git7=xt(this.git7,25)):(this.git0=At(this.git0,25),this.git1=At(this.git1,25),this.git2=At(this.git2,25),this.git3=At(this.git3,25),this.git4=At(this.git4,25),this.git5=At(this.git5,25),this.git6=At(this.git6,25),this.git7=At(this.git7,25)),this.gitInv0=this.gitInv0||ct(this.git0),this.gitInv1=this.gitInv1||ct(this.git1),this.gitInv2=this.gitInv2||ct(this.git2),this.gitInv3=this.gitInv3||ct(this.git3),this.gitInv4=this.gitInv4||ct(this.git4),this.gitInv5=this.gitInv5||ct(this.git5),this.gitInv6=this.gitInv6||ct(this.git6),this.gitInv7=this.gitInv7||ct(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||Mu,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Au}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]})}},w(Ja,"Theme"),Ja),RS=w(e=>{const t=new FS;return t.calculate(e),t},"getThemeVariables"),ts,DS=(ts=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=xt(this.primaryColor,16),this.tertiaryColor=N(this.primaryColor,{h:-160}),this.primaryBorderColor=ct(this.background),this.secondaryBorderColor=Qe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ct(this.primaryColor),this.secondaryTextColor=ct(this.secondaryColor),this.tertiaryTextColor=ct(this.tertiaryColor),this.lineColor=ct(this.background),this.textColor=ct(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=xt(ct("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Bo(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=At("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=At(this.sectionBkgColor,10),this.taskBorderColor=Bo(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Bo(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||xt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||At(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,r,i,s,o,c,l,h,f,d,g,m,y,b,C,k,S,_,E,M,B;this.secondBkg=xt(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=xt(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=xt(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=N(this.primaryColor,{h:64}),this.fillType3=N(this.secondaryColor,{h:64}),this.fillType4=N(this.primaryColor,{h:-64}),this.fillType5=N(this.secondaryColor,{h:-64}),this.fillType6=N(this.primaryColor,{h:128}),this.fillType7=N(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||N(this.primaryColor,{h:30}),this.cScale4=this.cScale4||N(this.primaryColor,{h:60}),this.cScale5=this.cScale5||N(this.primaryColor,{h:90}),this.cScale6=this.cScale6||N(this.primaryColor,{h:120}),this.cScale7=this.cScale7||N(this.primaryColor,{h:150}),this.cScale8=this.cScale8||N(this.primaryColor,{h:210}),this.cScale9=this.cScale9||N(this.primaryColor,{h:270}),this.cScale10=this.cScale10||N(this.primaryColor,{h:300}),this.cScale11=this.cScale11||N(this.primaryColor,{h:330});for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleInv"+L]=this["cScaleInv"+L]||ct(this["cScale"+L]);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScalePeer"+L]=this["cScalePeer"+L]||xt(this["cScale"+L],10);for(let L=0;L<5;L++)this["surface"+L]=this["surface"+L]||N(this.mainBkg,{h:30,s:-30,l:-(-10+L*4)}),this["surfacePeer"+L]=this["surfacePeer"+L]||N(this.mainBkg,{h:30,s:-30,l:-(-7+L*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleLabel"+L]=this["cScaleLabel"+L]||this.scaleLabelColor;for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["pie"+L]=this["cScale"+L];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||N(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||N(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||N(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||N(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||N(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||N(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Xo(this.quadrant1Fill)?xt(this.quadrant1Fill):At(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,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.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:((c=this.xyChart)==null?void 0:c.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:((f=this.xyChart)==null?void 0:f.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((g=this.xyChart)==null?void 0:g.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:((m=this.radar)==null?void 0:m.axisColor)||this.lineColor,axisStrokeWidth:((y=this.radar)==null?void 0:y.axisStrokeWidth)||2,axisLabelFontSize:((b=this.radar)==null?void 0:b.axisLabelFontSize)||12,curveOpacity:((C=this.radar)==null?void 0:C.curveOpacity)||.5,curveStrokeWidth:((k=this.radar)==null?void 0:k.curveStrokeWidth)||2,graticuleColor:((S=this.radar)==null?void 0:S.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((_=this.radar)==null?void 0:_.graticuleStrokeWidth)||1,graticuleOpacity:((E=this.radar)==null?void 0:E.graticuleOpacity)||.3,legendBoxSize:((M=this.radar)==null?void 0:M.legendBoxSize)||12,legendFontSize:((B=this.radar)==null?void 0:B.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?At(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=xt(this.secondaryColor,20),this.git1=xt(this.pie2||this.secondaryColor,20),this.git2=xt(this.pie3||this.tertiaryColor,20),this.git3=xt(this.pie4||N(this.primaryColor,{h:-30}),20),this.git4=xt(this.pie5||N(this.primaryColor,{h:-60}),20),this.git5=xt(this.pie6||N(this.primaryColor,{h:-90}),10),this.git6=xt(this.pie7||N(this.primaryColor,{h:60}),10),this.git7=xt(this.pie8||N(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||ct(this.git0),this.gitInv1=this.gitInv1||ct(this.git1),this.gitInv2=this.gitInv2||ct(this.git2),this.gitInv3=this.gitInv3||ct(this.git3),this.gitInv4=this.gitInv4||ct(this.git4),this.gitInv5=this.gitInv5||ct(this.git5),this.gitInv6=this.gitInv6||ct(this.git6),this.gitInv7=this.gitInv7||ct(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ct(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ct(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||xt(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||xt(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]})}},w(ts,"Theme"),ts),PS=w(e=>{const t=new DS;return t.calculate(e),t},"getThemeVariables"),es,OS=(es=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=N(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=N(this.primaryColor,{h:-160}),this.primaryBorderColor=Qe(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ct(this.primaryColor),this.secondaryTextColor=ct(this.secondaryColor),this.tertiaryTextColor=ct(this.tertiaryColor),this.lineColor=ct(this.background),this.textColor=ct(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Bo(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.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,r,i,s,o,c,l,h,f,d,g,m,y,b,C,k,S,_,E,M,B;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||N(this.primaryColor,{h:30}),this.cScale4=this.cScale4||N(this.primaryColor,{h:60}),this.cScale5=this.cScale5||N(this.primaryColor,{h:90}),this.cScale6=this.cScale6||N(this.primaryColor,{h:120}),this.cScale7=this.cScale7||N(this.primaryColor,{h:150}),this.cScale8=this.cScale8||N(this.primaryColor,{h:210}),this.cScale9=this.cScale9||N(this.primaryColor,{h:270}),this.cScale10=this.cScale10||N(this.primaryColor,{h:300}),this.cScale11=this.cScale11||N(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||At(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||At(this.tertiaryColor,40);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScale"+L]=At(this["cScale"+L],10),this["cScalePeer"+L]=this["cScalePeer"+L]||At(this["cScale"+L],25);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleInv"+L]=this["cScaleInv"+L]||N(this["cScale"+L],{h:180});for(let L=0;L<5;L++)this["surface"+L]=this["surface"+L]||N(this.mainBkg,{h:30,l:-(5+L*5)}),this["surfacePeer"+L]=this["surfacePeer"+L]||N(this.mainBkg,{h:30,l:-(7+L*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||ct(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||ct(this.labelTextColor);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleLabel"+L]=this["cScaleLabel"+L]||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=xt(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||xt(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||xt(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=N(this.primaryColor,{h:64}),this.fillType3=N(this.secondaryColor,{h:64}),this.fillType4=N(this.primaryColor,{h:-64}),this.fillType5=N(this.secondaryColor,{h:-64}),this.fillType6=N(this.primaryColor,{h:128}),this.fillType7=N(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||N(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||N(this.primaryColor,{l:-10}),this.pie5=this.pie5||N(this.secondaryColor,{l:-30}),this.pie6=this.pie6||N(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||N(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||N(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||N(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||N(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||N(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||N(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||N(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||N(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||N(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||N(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||N(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||N(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Xo(this.quadrant1Fill)?xt(this.quadrant1Fill):At(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:((s=this.radar)==null?void 0:s.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((c=this.radar)==null?void 0:c.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((h=this.radar)==null?void 0:h.graticuleOpacity)||.3,legendBoxSize:((f=this.radar)==null?void 0:f.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.xyChart={backgroundColor:((g=this.xyChart)==null?void 0:g.backgroundColor)||this.background,titleColor:((m=this.xyChart)==null?void 0:m.titleColor)||this.primaryTextColor,xAxisTitleColor:((y=this.xyChart)==null?void 0:y.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((b=this.xyChart)==null?void 0:b.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((C=this.xyChart)==null?void 0:C.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((k=this.xyChart)==null?void 0:k.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((S=this.xyChart)==null?void 0:S.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((_=this.xyChart)==null?void 0:_.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((E=this.xyChart)==null?void 0:E.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((M=this.xyChart)==null?void 0:M.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((B=this.xyChart)==null?void 0:B.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||N(this.primaryColor,{h:-30}),this.git4=this.git4||N(this.primaryColor,{h:-60}),this.git5=this.git5||N(this.primaryColor,{h:-90}),this.git6=this.git6||N(this.primaryColor,{h:60}),this.git7=this.git7||N(this.primaryColor,{h:120}),this.darkMode?(this.git0=xt(this.git0,25),this.git1=xt(this.git1,25),this.git2=xt(this.git2,25),this.git3=xt(this.git3,25),this.git4=xt(this.git4,25),this.git5=xt(this.git5,25),this.git6=xt(this.git6,25),this.git7=xt(this.git7,25)):(this.git0=At(this.git0,25),this.git1=At(this.git1,25),this.git2=At(this.git2,25),this.git3=At(this.git3,25),this.git4=At(this.git4,25),this.git5=At(this.git5,25),this.git6=At(this.git6,25),this.git7=At(this.git7,25)),this.gitInv0=this.gitInv0||At(ct(this.git0),25),this.gitInv1=this.gitInv1||ct(this.git1),this.gitInv2=this.gitInv2||ct(this.git2),this.gitInv3=this.gitInv3||ct(this.git3),this.gitInv4=this.gitInv4||ct(this.git4),this.gitInv5=this.gitInv5||ct(this.git5),this.gitInv6=this.gitInv6||ct(this.git6),this.gitInv7=this.gitInv7||ct(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ct(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ct(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||Mu,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Au}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]})}},w(es,"Theme"),es),IS=w(e=>{const t=new OS;return t.calculate(e),t},"getThemeVariables"),rs,NS=(rs=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=xt("#cde498",10),this.primaryBorderColor=Qe(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ct(this.primaryColor),this.secondaryTextColor=ct(this.secondaryColor),this.tertiaryTextColor=ct(this.primaryColor),this.lineColor=ct(this.background),this.textColor=ct(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.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.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,i,s,o,c,l,h,f,d,g,m,y,b,C,k,S,_,E,M,B;this.actorBorder=At(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||N(this.primaryColor,{h:30}),this.cScale4=this.cScale4||N(this.primaryColor,{h:60}),this.cScale5=this.cScale5||N(this.primaryColor,{h:90}),this.cScale6=this.cScale6||N(this.primaryColor,{h:120}),this.cScale7=this.cScale7||N(this.primaryColor,{h:150}),this.cScale8=this.cScale8||N(this.primaryColor,{h:210}),this.cScale9=this.cScale9||N(this.primaryColor,{h:270}),this.cScale10=this.cScale10||N(this.primaryColor,{h:300}),this.cScale11=this.cScale11||N(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||At(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||At(this.tertiaryColor,40);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScale"+L]=At(this["cScale"+L],10),this["cScalePeer"+L]=this["cScalePeer"+L]||At(this["cScale"+L],25);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleInv"+L]=this["cScaleInv"+L]||N(this["cScale"+L],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleLabel"+L]=this["cScaleLabel"+L]||this.scaleLabelColor;for(let L=0;L<5;L++)this["surface"+L]=this["surface"+L]||N(this.mainBkg,{h:30,s:-30,l:-(5+L*5)}),this["surfacePeer"+L]=this["surfacePeer"+L]||N(this.mainBkg,{h:30,s:-30,l:-(8+L*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||xt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||xt(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=N(this.primaryColor,{h:64}),this.fillType3=N(this.secondaryColor,{h:64}),this.fillType4=N(this.primaryColor,{h:-64}),this.fillType5=N(this.secondaryColor,{h:-64}),this.fillType6=N(this.primaryColor,{h:128}),this.fillType7=N(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||N(this.primaryColor,{l:-30}),this.pie5=this.pie5||N(this.secondaryColor,{l:-30}),this.pie6=this.pie6||N(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||N(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||N(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||N(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||N(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||N(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||N(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||N(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||N(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||N(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||N(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||N(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||N(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Xo(this.quadrant1Fill)?xt(this.quadrant1Fill):At(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:((s=this.radar)==null?void 0:s.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((c=this.radar)==null?void 0:c.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((h=this.radar)==null?void 0:h.graticuleOpacity)||.3,legendBoxSize:((f=this.radar)==null?void 0:f.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.xyChart={backgroundColor:((g=this.xyChart)==null?void 0:g.backgroundColor)||this.background,titleColor:((m=this.xyChart)==null?void 0:m.titleColor)||this.primaryTextColor,xAxisTitleColor:((y=this.xyChart)==null?void 0:y.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((b=this.xyChart)==null?void 0:b.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((C=this.xyChart)==null?void 0:C.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((k=this.xyChart)==null?void 0:k.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((S=this.xyChart)==null?void 0:S.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((_=this.xyChart)==null?void 0:_.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((E=this.xyChart)==null?void 0:E.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((M=this.xyChart)==null?void 0:M.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((B=this.xyChart)==null?void 0:B.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||N(this.primaryColor,{h:-30}),this.git4=this.git4||N(this.primaryColor,{h:-60}),this.git5=this.git5||N(this.primaryColor,{h:-90}),this.git6=this.git6||N(this.primaryColor,{h:60}),this.git7=this.git7||N(this.primaryColor,{h:120}),this.darkMode?(this.git0=xt(this.git0,25),this.git1=xt(this.git1,25),this.git2=xt(this.git2,25),this.git3=xt(this.git3,25),this.git4=xt(this.git4,25),this.git5=xt(this.git5,25),this.git6=xt(this.git6,25),this.git7=xt(this.git7,25)):(this.git0=At(this.git0,25),this.git1=At(this.git1,25),this.git2=At(this.git2,25),this.git3=At(this.git3,25),this.git4=At(this.git4,25),this.git5=At(this.git5,25),this.git6=At(this.git6,25),this.git7=At(this.git7,25)),this.gitInv0=this.gitInv0||ct(this.git0),this.gitInv1=this.gitInv1||ct(this.git1),this.gitInv2=this.gitInv2||ct(this.git2),this.gitInv3=this.gitInv3||ct(this.git3),this.gitInv4=this.gitInv4||ct(this.git4),this.gitInv5=this.gitInv5||ct(this.git5),this.gitInv6=this.gitInv6||ct(this.git6),this.gitInv7=this.gitInv7||ct(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||ct(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||ct(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||Mu,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Au}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]})}},w(rs,"Theme"),rs),zS=w(e=>{const t=new NS;return t.calculate(e),t},"getThemeVariables"),ns,jS=(ns=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=xt(this.contrast,55),this.background="#ffffff",this.tertiaryColor=N(this.primaryColor,{h:-160}),this.primaryBorderColor=Qe(this.primaryColor,this.darkMode),this.secondaryBorderColor=Qe(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Qe(this.tertiaryColor,this.darkMode),this.primaryTextColor=ct(this.primaryColor),this.secondaryTextColor=ct(this.secondaryColor),this.tertiaryTextColor=ct(this.tertiaryColor),this.lineColor=ct(this.background),this.textColor=ct(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.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.rowOdd=this.rowOdd||xt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,r,i,s,o,c,l,h,f,d,g,m,y,b,C,k,S,_,E,M,B;this.secondBkg=xt(this.contrast,55),this.border2=this.contrast,this.actorBorder=xt(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 L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleInv"+L]=this["cScaleInv"+L]||ct(this["cScale"+L]);for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this.darkMode?this["cScalePeer"+L]=this["cScalePeer"+L]||xt(this["cScale"+L],10):this["cScalePeer"+L]=this["cScalePeer"+L]||At(this["cScale"+L],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["cScaleLabel"+L]=this["cScaleLabel"+L]||this.scaleLabelColor;for(let L=0;L<5;L++)this["surface"+L]=this["surface"+L]||N(this.mainBkg,{l:-(5+L*5)}),this["surfacePeer"+L]=this["surfacePeer"+L]||N(this.mainBkg,{l:-(8+L*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=xt(this.contrast,30),this.sectionBkgColor2=xt(this.contrast,30),this.taskBorderColor=At(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=xt(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=At(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=N(this.primaryColor,{h:64}),this.fillType3=N(this.secondaryColor,{h:64}),this.fillType4=N(this.primaryColor,{h:-64}),this.fillType5=N(this.secondaryColor,{h:-64}),this.fillType6=N(this.primaryColor,{h:128}),this.fillType7=N(this.secondaryColor,{h:128});for(let L=0;L<this.THEME_COLOR_LIMIT;L++)this["pie"+L]=this["cScale"+L];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||N(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||N(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||N(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||N(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||N(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||N(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Xo(this.quadrant1Fill)?xt(this.quadrant1Fill):At(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,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.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:((c=this.xyChart)==null?void 0:c.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:((f=this.xyChart)==null?void 0:f.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((g=this.xyChart)==null?void 0:g.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((m=this.radar)==null?void 0:m.axisColor)||this.lineColor,axisStrokeWidth:((y=this.radar)==null?void 0:y.axisStrokeWidth)||2,axisLabelFontSize:((b=this.radar)==null?void 0:b.axisLabelFontSize)||12,curveOpacity:((C=this.radar)==null?void 0:C.curveOpacity)||.5,curveStrokeWidth:((k=this.radar)==null?void 0:k.curveStrokeWidth)||2,graticuleColor:((S=this.radar)==null?void 0:S.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((_=this.radar)==null?void 0:_.graticuleStrokeWidth)||1,graticuleOpacity:((E=this.radar)==null?void 0:E.graticuleOpacity)||.3,legendBoxSize:((M=this.radar)==null?void 0:M.legendBoxSize)||12,legendFontSize:((B=this.radar)==null?void 0:B.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=At(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||N(this.primaryColor,{h:-30}),this.git4=this.pie5||N(this.primaryColor,{h:-60}),this.git5=this.pie6||N(this.primaryColor,{h:-90}),this.git6=this.pie7||N(this.primaryColor,{h:60}),this.git7=this.pie8||N(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||ct(this.git0),this.gitInv1=this.gitInv1||ct(this.git1),this.gitInv2=this.gitInv2||ct(this.git2),this.gitInv3=this.gitInv3||ct(this.git3),this.gitInv4=this.gitInv4||ct(this.git4),this.gitInv5=this.gitInv5||ct(this.git5),this.gitInv6=this.gitInv6||ct(this.git6),this.gitInv7=this.gitInv7||ct(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||Mu,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Au}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]})}},w(ns,"Theme"),ns),WS=w(e=>{const t=new jS;return t.calculate(e),t},"getThemeVariables"),Nn={base:{getThemeVariables:RS},dark:{getThemeVariables:PS},default:{getThemeVariables:IS},forest:{getThemeVariables:zS},neutral:{getThemeVariables:WS}},un={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,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,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"},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Ix={...un,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Nn.default.getThemeVariables(),sequence:{...un.sequence,messageFont:w(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:w(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:w(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...un.gantt,tickInterval:void 0,useWidth:void 0},c4:{...un.c4,useWidth:void 0,personFont:w(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...un.flowchart,inheritDir:!1},external_personFont:w(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:w(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:w(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:w(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:w(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:w(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:w(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:w(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:w(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:w(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:w(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:w(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:w(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:w(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:w(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:w(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:w(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:w(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:w(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:w(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:w(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...un.pie,useWidth:984},xyChart:{...un.xyChart,useWidth:void 0},requirement:{...un.requirement,useWidth:void 0},packet:{...un.packet},radar:{...un.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},Nx=w((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...Nx(e[i],"")]:[...r,t+i],[]),"keyify"),HS=new Set(Nx(Ix,"")),zx=Ix,Uc=w(e=>{if(J.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Uc(t));return}for(const t of Object.keys(e)){if(J.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!HS.has(t)||e[t]==null){J.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){J.debug("sanitizing object",t),Uc(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(J.debug("sanitizing css option",t),e[t]=qS(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]="")}J.debug("After sanitization",e)}},"sanitizeDirective"),qS=w(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"),os=Object.freeze(zx),hr=_e({},os),Yc,sa=[],Fo=_e({},os),Bu=w((e,t)=>{let r=_e({},e),i={};for(const s of t)Hx(s),i=_e(i,s);if(r=_e(r,i),i.theme&&i.theme in Nn){const s=_e({},Yc),o=_e(s.themeVariables||{},i.themeVariables);r.theme&&r.theme in Nn&&(r.themeVariables=Nn[r.theme].getThemeVariables(o))}return Fo=r,qx(Fo),Fo},"updateCurrentConfig"),US=w(e=>(hr=_e({},os),hr=_e(hr,e),e.theme&&Nn[e.theme]&&(hr.themeVariables=Nn[e.theme].getThemeVariables(e.themeVariables)),Bu(hr,sa),hr),"setSiteConfig"),YS=w(e=>{Yc=_e({},e)},"saveConfigFromInitialize"),VS=w(e=>(hr=_e(hr,e),Bu(hr,sa),hr),"updateSiteConfig"),jx=w(()=>_e({},hr),"getSiteConfig"),Wx=w(e=>(qx(e),_e(Fo,e),He()),"setConfig"),He=w(()=>_e({},Fo),"getConfig"),Hx=w(e=>{e&&(["secure",...hr.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(J.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"&&Hx(e[t])}))},"sanitize"),GS=w(e=>{var t;Uc(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),sa.push(e),Bu(hr,sa)},"addDirective"),Vc=w((e=hr)=>{sa=[],Bu(e,sa)},"reset"),XS={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},ry={},QS=w(e=>{ry[e]||(J.warn(XS[e]),ry[e]=!0)},"issueWarning"),qx=w(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&QS("LAZY_LOAD_DEPRECATED")},"checkConfig"),aO=w(()=>{let e={};Yc&&(e=_e(e,Yc));for(const t of sa)e=_e(e,t);return e},"getUserDefinedConfig"),Qo=/<br\s*\/?>/gi,KS=w(e=>e?Vx(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),ZS=(()=>{let e=!1;return()=>{e||(Ux(),e=!0)}})();function Ux(){const e="data-temp-href-target";ss.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),ss.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"))})}w(Ux,"setupDompurifyHooks");var Yx=w(e=>(ZS(),ss.sanitize(e)),"removeScript"),ny=w((e,t)=>{var r;if(((r=t.flowchart)==null?void 0:r.htmlLabels)!==!1){const i=t.securityLevel;i==="antiscript"||i==="strict"?e=Yx(e):i!=="loose"&&(e=Vx(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=rT(e))}return e},"sanitizeMore"),Rr=w((e,t)=>e&&(t.dompurifyConfig?e=ss.sanitize(ny(e,t),t.dompurifyConfig).toString():e=ss.sanitize(ny(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),JS=w((e,t)=>typeof e=="string"?Rr(e,t):e.flat().map(r=>Rr(r,t)),"sanitizeTextOrArray"),tT=w(e=>Qo.test(e),"hasBreaks"),eT=w(e=>e.split(Qo),"splitBreaks"),rT=w(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Vx=w(e=>e.replace(Qo,"#br#"),"breakToPlaceholder"),nT=w(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),Te=w(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),iT=w(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),aT=w(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),iy=w(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let s=t[i];if(s===","&&i>0&&i+1<t.length){const o=t[i-1],c=t[i+1];sT(o,c)&&(s=o+","+c,i++,r.pop())}r.push(oT(s))}return r.join("")},"parseGenericTypes"),pd=w((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),sT=w((e,t)=>{const r=pd(e,"~"),i=pd(t,"~");return r===1&&i===1},"shouldCombineSets"),oT=w(e=>{const t=pd(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let s=i.indexOf("~"),o=i.lastIndexOf("~");for(;s!==-1&&o!==-1&&s!==o;)i[s]="<",i[o]=">",s=i.indexOf("~"),o=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),ay=w(()=>window.MathMLElement!==void 0,"isMathMLSupported"),gd=/\$\$(.*)\$\$/g,ls=w(e=>{var t;return(((t=e.match(gd))==null?void 0:t.length)??0)>0},"hasKatex"),sO=w(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await fp(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 s={width:r.clientWidth,height:r.clientHeight};return r.remove(),s},"calculateMathMLDimensions"),lT=w(async(e,t)=>{if(!ls(e))return e;if(!(ay()||t.legacyMathML||t.forceLegacyMathML))return e.replace(gd,"MathML is unsupported in this environment.");{const{default:r}=await Qt(async()=>{const{default:s}=await import("./katex-BlHpptmG.js");return{default:s}},[]),i=t.forceLegacyMathML||!ay()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Qo).map(s=>ls(s)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${s}</div>`:`<div>${s}</div>`).join("").replace(gd,(s,o)=>r.renderToString(o,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),fp=w(async(e,t)=>Rr(await lT(e,t),t),"renderKatexSanitized"),gs={getRows:KS,sanitizeText:Rr,sanitizeTextOrArray:JS,hasBreaks:tT,splitBreaks:eT,lineBreakRegex:Qo,removeScript:Yx,getUrl:nT,evaluate:Te,getMax:iT,getMin:aT},cT=w(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),uT=w(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"),Gx=w(function(e,t,r,i){const s=uT(t,r,i);cT(e,s)},"configureSvgSize"),hT=w(function(e,t,r,i){const s=t.node().getBBox(),o=s.width,c=s.height;J.info(`SVG bounds: ${o}x${c}`,s);let l=0,h=0;J.info(`Graph bounds: ${l}x${h}`,e),l=o+r*2,h=c+r*2,J.info(`Calculated bounds: ${l}x${h}`),Gx(t,h,l,i);const f=`${s.x-r} ${s.y-r} ${s.width+2*r} ${s.height+2*r}`;t.attr("viewBox",f)},"setupGraphViewbox"),Fc={},fT=w((e,t,r)=>{let i="";return e in Fc&&Fc[e]?i=Fc[e](r):J.warn(`No theme found for ${e}`),` & {
|
|
44
|
+
font-family: ${r.fontFamily};
|
|
45
|
+
font-size: ${r.fontSize};
|
|
46
|
+
fill: ${r.textColor}
|
|
47
|
+
}
|
|
48
|
+
@keyframes edge-animation-frame {
|
|
49
|
+
from {
|
|
50
|
+
stroke-dashoffset: 0;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
@keyframes dash {
|
|
54
|
+
to {
|
|
55
|
+
stroke-dashoffset: 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
& .edge-animation-slow {
|
|
59
|
+
stroke-dasharray: 9,5 !important;
|
|
60
|
+
stroke-dashoffset: 900;
|
|
61
|
+
animation: dash 50s linear infinite;
|
|
62
|
+
stroke-linecap: round;
|
|
63
|
+
}
|
|
64
|
+
& .edge-animation-fast {
|
|
65
|
+
stroke-dasharray: 9,5 !important;
|
|
66
|
+
stroke-dashoffset: 900;
|
|
67
|
+
animation: dash 20s linear infinite;
|
|
68
|
+
stroke-linecap: round;
|
|
69
|
+
}
|
|
70
|
+
/* Classes common for multiple diagrams */
|
|
71
|
+
|
|
72
|
+
& .error-icon {
|
|
73
|
+
fill: ${r.errorBkgColor};
|
|
74
|
+
}
|
|
75
|
+
& .error-text {
|
|
76
|
+
fill: ${r.errorTextColor};
|
|
77
|
+
stroke: ${r.errorTextColor};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
& .edge-thickness-normal {
|
|
81
|
+
stroke-width: 1px;
|
|
82
|
+
}
|
|
83
|
+
& .edge-thickness-thick {
|
|
84
|
+
stroke-width: 3.5px
|
|
85
|
+
}
|
|
86
|
+
& .edge-pattern-solid {
|
|
87
|
+
stroke-dasharray: 0;
|
|
88
|
+
}
|
|
89
|
+
& .edge-thickness-invisible {
|
|
90
|
+
stroke-width: 0;
|
|
91
|
+
fill: none;
|
|
92
|
+
}
|
|
93
|
+
& .edge-pattern-dashed{
|
|
94
|
+
stroke-dasharray: 3;
|
|
95
|
+
}
|
|
96
|
+
.edge-pattern-dotted {
|
|
97
|
+
stroke-dasharray: 2;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
& .marker {
|
|
101
|
+
fill: ${r.lineColor};
|
|
102
|
+
stroke: ${r.lineColor};
|
|
103
|
+
}
|
|
104
|
+
& .marker.cross {
|
|
105
|
+
stroke: ${r.lineColor};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
& svg {
|
|
109
|
+
font-family: ${r.fontFamily};
|
|
110
|
+
font-size: ${r.fontSize};
|
|
111
|
+
}
|
|
112
|
+
& p {
|
|
113
|
+
margin: 0
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
${i}
|
|
117
|
+
|
|
118
|
+
${t}
|
|
119
|
+
`},"getStyles"),dT=w((e,t)=>{t!==void 0&&(Fc[e]=t)},"addStylesForDiagram"),pT=fT,Xx={};rS(Xx,{clear:()=>gT,getAccDescription:()=>vT,getAccTitle:()=>yT,getDiagramTitle:()=>wT,setAccDescription:()=>xT,setAccTitle:()=>mT,setDiagramTitle:()=>bT});var dp="",pp="",gp="",mp=w(e=>Rr(e,He()),"sanitizeText"),gT=w(()=>{dp="",gp="",pp=""},"clear"),mT=w(e=>{dp=mp(e).replace(/^\s+/g,"")},"setAccTitle"),yT=w(()=>dp,"getAccTitle"),xT=w(e=>{gp=mp(e).replace(/\n\s+/g,`
|
|
120
|
+
`)},"setAccDescription"),vT=w(()=>gp,"getAccDescription"),bT=w(e=>{pp=mp(e)},"setDiagramTitle"),wT=w(()=>pp,"getDiagramTitle"),sy=J,CT=up,Kt=He,oO=Wx,lO=os,yp=w(e=>Rr(e,Kt()),"sanitizeText"),kT=hT,_T=w(()=>Xx,"getCommonDb"),Gc={},Xc=w((e,t,r)=>{var i;Gc[e]&&sy.warn(`Diagram with id ${e} already registered. Overwriting.`),Gc[e]=t,r&&Ox(e,r),dT(e,t.styles),(i=t.injectUtils)==null||i.call(t,sy,CT,Kt,yp,kT,_T(),()=>{})},"registerDiagram"),md=w(e=>{if(e in Gc)return Gc[e];throw new ST(e)},"getDiagram"),is,ST=(is=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},w(is,"DiagramNotFoundError"),is),TT={value:()=>{}};function Qx(){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 Rc(r)}function Rc(e){this._=e}function ET(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",s=r.indexOf(".");if(s>=0&&(i=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}Rc.prototype=Qx.prototype={constructor:Rc,on:function(e,t){var r=this._,i=ET(e+"",r),s,o=-1,c=i.length;if(arguments.length<2){for(;++o<c;)if((s=(e=i[o]).type)&&(s=LT(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<c;)if(s=(e=i[o]).type)r[s]=oy(r[s],e.name,t);else if(t==null)for(s in r)r[s]=oy(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Rc(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),i=0,s,o;i<s;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],i=0,s=o.length;i<s;++i)o[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],s=0,o=i.length;s<o;++s)i[s].value.apply(t,r)}};function LT(e,t){for(var r=0,i=e.length,s;r<i;++r)if((s=e[r]).name===t)return s.value}function oy(e,t,r){for(var i=0,s=e.length;i<s;++i)if(e[i].name===t){e[i]=TT,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var yd="http://www.w3.org/1999/xhtml";const ly={svg:"http://www.w3.org/2000/svg",xhtml:yd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $u(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),ly.hasOwnProperty(t)?{space:ly[t],local:e}:e}function MT(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===yd&&t.documentElement.namespaceURI===yd?t.createElement(e):t.createElementNS(r,e)}}function AT(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Kx(e){var t=$u(e);return(t.local?AT:MT)(t)}function BT(){}function xp(e){return e==null?BT:function(){return this.querySelector(e)}}function $T(e){typeof e!="function"&&(e=xp(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var o=t[s],c=o.length,l=i[s]=new Array(c),h,f,d=0;d<c;++d)(h=o[d])&&(f=e.call(h,h.__data__,d,o))&&("__data__"in h&&(f.__data__=h.__data__),l[d]=f);return new Cr(i,this._parents)}function FT(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function RT(){return[]}function Zx(e){return e==null?RT:function(){return this.querySelectorAll(e)}}function DT(e){return function(){return FT(e.apply(this,arguments))}}function PT(e){typeof e=="function"?e=DT(e):e=Zx(e);for(var t=this._groups,r=t.length,i=[],s=[],o=0;o<r;++o)for(var c=t[o],l=c.length,h,f=0;f<l;++f)(h=c[f])&&(i.push(e.call(h,h.__data__,f,c)),s.push(h));return new Cr(i,s)}function Jx(e){return function(){return this.matches(e)}}function t1(e){return function(t){return t.matches(e)}}var OT=Array.prototype.find;function IT(e){return function(){return OT.call(this.children,e)}}function NT(){return this.firstElementChild}function zT(e){return this.select(e==null?NT:IT(typeof e=="function"?e:t1(e)))}var jT=Array.prototype.filter;function WT(){return Array.from(this.children)}function HT(e){return function(){return jT.call(this.children,e)}}function qT(e){return this.selectAll(e==null?WT:HT(typeof e=="function"?e:t1(e)))}function UT(e){typeof e!="function"&&(e=Jx(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var o=t[s],c=o.length,l=i[s]=[],h,f=0;f<c;++f)(h=o[f])&&e.call(h,h.__data__,f,o)&&l.push(h);return new Cr(i,this._parents)}function e1(e){return new Array(e.length)}function YT(){return new Cr(this._enter||this._groups.map(e1),this._parents)}function Qc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Qc.prototype={constructor:Qc,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 VT(e){return function(){return e}}function GT(e,t,r,i,s,o){for(var c=0,l,h=t.length,f=o.length;c<f;++c)(l=t[c])?(l.__data__=o[c],i[c]=l):r[c]=new Qc(e,o[c]);for(;c<h;++c)(l=t[c])&&(s[c]=l)}function XT(e,t,r,i,s,o,c){var l,h,f=new Map,d=t.length,g=o.length,m=new Array(d),y;for(l=0;l<d;++l)(h=t[l])&&(m[l]=y=c.call(h,h.__data__,l,t)+"",f.has(y)?s[l]=h:f.set(y,h));for(l=0;l<g;++l)y=c.call(e,o[l],l,o)+"",(h=f.get(y))?(i[l]=h,h.__data__=o[l],f.delete(y)):r[l]=new Qc(e,o[l]);for(l=0;l<d;++l)(h=t[l])&&f.get(m[l])===h&&(s[l]=h)}function QT(e){return e.__data__}function KT(e,t){if(!arguments.length)return Array.from(this,QT);var r=t?XT:GT,i=this._parents,s=this._groups;typeof e!="function"&&(e=VT(e));for(var o=s.length,c=new Array(o),l=new Array(o),h=new Array(o),f=0;f<o;++f){var d=i[f],g=s[f],m=g.length,y=ZT(e.call(d,d&&d.__data__,f,i)),b=y.length,C=l[f]=new Array(b),k=c[f]=new Array(b),S=h[f]=new Array(m);r(d,g,C,k,S,y,t);for(var _=0,E=0,M,B;_<b;++_)if(M=C[_]){for(_>=E&&(E=_+1);!(B=k[E])&&++E<b;);M._next=B||null}}return c=new Cr(c,i),c._enter=l,c._exit=h,c}function ZT(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function JT(){return new Cr(this._exit||this._groups.map(e1),this._parents)}function tE(e,t,r){var i=this.enter(),s=this,o=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?o.remove():r(o),i&&s?i.merge(s).order():s}function eE(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,s=r.length,o=i.length,c=Math.min(s,o),l=new Array(s),h=0;h<c;++h)for(var f=r[h],d=i[h],g=f.length,m=l[h]=new Array(g),y,b=0;b<g;++b)(y=f[b]||d[b])&&(m[b]=y);for(;h<s;++h)l[h]=r[h];return new Cr(l,this._parents)}function rE(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],s=i.length-1,o=i[s],c;--s>=0;)(c=i[s])&&(o&&c.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(c,o),o=c);return this}function nE(e){e||(e=iE);function t(g,m){return g&&m?e(g.__data__,m.__data__):!g-!m}for(var r=this._groups,i=r.length,s=new Array(i),o=0;o<i;++o){for(var c=r[o],l=c.length,h=s[o]=new Array(l),f,d=0;d<l;++d)(f=c[d])&&(h[d]=f);h.sort(t)}return new Cr(s,this._parents).order()}function iE(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function aE(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function sE(){return Array.from(this)}function oE(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],s=0,o=i.length;s<o;++s){var c=i[s];if(c)return c}return null}function lE(){let e=0;for(const t of this)++e;return e}function cE(){return!this.node()}function uE(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var s=t[r],o=0,c=s.length,l;o<c;++o)(l=s[o])&&e.call(l,l.__data__,o,s);return this}function hE(e){return function(){this.removeAttribute(e)}}function fE(e){return function(){this.removeAttributeNS(e.space,e.local)}}function dE(e,t){return function(){this.setAttribute(e,t)}}function pE(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function gE(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function mE(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 yE(e,t){var r=$u(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?fE:hE:typeof t=="function"?r.local?mE:gE:r.local?pE:dE)(r,t))}function r1(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function xE(e){return function(){this.style.removeProperty(e)}}function vE(e,t,r){return function(){this.style.setProperty(e,t,r)}}function bE(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function wE(e,t,r){return arguments.length>1?this.each((t==null?xE:typeof t=="function"?bE:vE)(e,t,r??"")):cs(this.node(),e)}function cs(e,t){return e.style.getPropertyValue(t)||r1(e).getComputedStyle(e,null).getPropertyValue(t)}function CE(e){return function(){delete this[e]}}function kE(e,t){return function(){this[e]=t}}function _E(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function SE(e,t){return arguments.length>1?this.each((t==null?CE:typeof t=="function"?_E:kE)(e,t)):this.node()[e]}function n1(e){return e.trim().split(/^|\s+/)}function vp(e){return e.classList||new i1(e)}function i1(e){this._node=e,this._names=n1(e.getAttribute("class")||"")}i1.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 a1(e,t){for(var r=vp(e),i=-1,s=t.length;++i<s;)r.add(t[i])}function s1(e,t){for(var r=vp(e),i=-1,s=t.length;++i<s;)r.remove(t[i])}function TE(e){return function(){a1(this,e)}}function EE(e){return function(){s1(this,e)}}function LE(e,t){return function(){(t.apply(this,arguments)?a1:s1)(this,e)}}function ME(e,t){var r=n1(e+"");if(arguments.length<2){for(var i=vp(this.node()),s=-1,o=r.length;++s<o;)if(!i.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?LE:t?TE:EE)(r,t))}function AE(){this.textContent=""}function BE(e){return function(){this.textContent=e}}function $E(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function FE(e){return arguments.length?this.each(e==null?AE:(typeof e=="function"?$E:BE)(e)):this.node().textContent}function RE(){this.innerHTML=""}function DE(e){return function(){this.innerHTML=e}}function PE(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function OE(e){return arguments.length?this.each(e==null?RE:(typeof e=="function"?PE:DE)(e)):this.node().innerHTML}function IE(){this.nextSibling&&this.parentNode.appendChild(this)}function NE(){return this.each(IE)}function zE(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function jE(){return this.each(zE)}function WE(e){var t=typeof e=="function"?e:Kx(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function HE(){return null}function qE(e,t){var r=typeof e=="function"?e:Kx(e),i=t==null?HE:typeof t=="function"?t:xp(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function UE(){var e=this.parentNode;e&&e.removeChild(this)}function YE(){return this.each(UE)}function VE(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function GE(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function XE(e){return this.select(e?GE:VE)}function QE(e){return arguments.length?this.property("__data__",e):this.node().__data__}function KE(e){return function(t){e.call(this,t,this.__data__)}}function ZE(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 JE(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,s=t.length,o;r<s;++r)o=t[r],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++i]=o;++i?t.length=i:delete this.__on}}}function tL(e,t,r){return function(){var i=this.__on,s,o=KE(t);if(i){for(var c=0,l=i.length;c<l;++c)if((s=i[c]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=o,s.options=r),s.value=t;return}}this.addEventListener(e.type,o,r),s={type:e.type,name:e.name,value:t,listener:o,options:r},i?i.push(s):this.__on=[s]}}function eL(e,t,r){var i=ZE(e+""),s,o=i.length,c;if(arguments.length<2){var l=this.node().__on;if(l){for(var h=0,f=l.length,d;h<f;++h)for(s=0,d=l[h];s<o;++s)if((c=i[s]).type===d.type&&c.name===d.name)return d.value}return}for(l=t?tL:JE,s=0;s<o;++s)this.each(l(i[s],t,r));return this}function o1(e,t,r){var i=r1(e),s=i.CustomEvent;typeof s=="function"?s=new s(t,r):(s=i.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function rL(e,t){return function(){return o1(this,e,t)}}function nL(e,t){return function(){return o1(this,e,t.apply(this,arguments))}}function iL(e,t){return this.each((typeof t=="function"?nL:rL)(e,t))}function*aL(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],s=0,o=i.length,c;s<o;++s)(c=i[s])&&(yield c)}var l1=[null];function Cr(e,t){this._groups=e,this._parents=t}function Ko(){return new Cr([[document.documentElement]],l1)}function sL(){return this}Cr.prototype=Ko.prototype={constructor:Cr,select:$T,selectAll:PT,selectChild:zT,selectChildren:qT,filter:UT,data:KT,enter:YT,exit:JT,join:tE,merge:eE,selection:sL,order:rE,sort:nE,call:aE,nodes:sE,node:oE,size:lE,empty:cE,each:uE,attr:yE,style:wE,property:SE,classed:ME,text:FE,html:OE,raise:NE,lower:jE,append:WE,insert:qE,remove:YE,clone:XE,datum:QE,on:eL,dispatch:iL,[Symbol.iterator]:aL};function Yt(e){return typeof e=="string"?new Cr([[document.querySelector(e)]],[document.documentElement]):new Cr([[e]],l1)}function bp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function c1(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function Zo(){}var Po=.7,Kc=1/Po,Qa="\\s*([+-]?\\d+)\\s*",Oo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",mn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",oL=/^#([0-9a-f]{3,8})$/,lL=new RegExp(`^rgb\\(${Qa},${Qa},${Qa}\\)$`),cL=new RegExp(`^rgb\\(${mn},${mn},${mn}\\)$`),uL=new RegExp(`^rgba\\(${Qa},${Qa},${Qa},${Oo}\\)$`),hL=new RegExp(`^rgba\\(${mn},${mn},${mn},${Oo}\\)$`),fL=new RegExp(`^hsl\\(${Oo},${mn},${mn}\\)$`),dL=new RegExp(`^hsla\\(${Oo},${mn},${mn},${Oo}\\)$`),cy={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};bp(Zo,Io,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uy,formatHex:uy,formatHex8:pL,formatHsl:gL,formatRgb:hy,toString:hy});function uy(){return this.rgb().formatHex()}function pL(){return this.rgb().formatHex8()}function gL(){return u1(this).formatHsl()}function hy(){return this.rgb().formatRgb()}function Io(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=oL.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?fy(t):r===3?new dr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?xc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?xc(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=lL.exec(e))?new dr(t[1],t[2],t[3],1):(t=cL.exec(e))?new dr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=uL.exec(e))?xc(t[1],t[2],t[3],t[4]):(t=hL.exec(e))?xc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=fL.exec(e))?gy(t[1],t[2]/100,t[3]/100,1):(t=dL.exec(e))?gy(t[1],t[2]/100,t[3]/100,t[4]):cy.hasOwnProperty(e)?fy(cy[e]):e==="transparent"?new dr(NaN,NaN,NaN,0):null}function fy(e){return new dr(e>>16&255,e>>8&255,e&255,1)}function xc(e,t,r,i){return i<=0&&(e=t=r=NaN),new dr(e,t,r,i)}function mL(e){return e instanceof Zo||(e=Io(e)),e?(e=e.rgb(),new dr(e.r,e.g,e.b,e.opacity)):new dr}function xd(e,t,r,i){return arguments.length===1?mL(e):new dr(e,t,r,i??1)}function dr(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}bp(dr,xd,c1(Zo,{brighter(e){return e=e==null?Kc:Math.pow(Kc,e),new dr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Po:Math.pow(Po,e),new dr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new dr(na(this.r),na(this.g),na(this.b),Zc(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:dy,formatHex:dy,formatHex8:yL,formatRgb:py,toString:py}));function dy(){return`#${Ji(this.r)}${Ji(this.g)}${Ji(this.b)}`}function yL(){return`#${Ji(this.r)}${Ji(this.g)}${Ji(this.b)}${Ji((isNaN(this.opacity)?1:this.opacity)*255)}`}function py(){const e=Zc(this.opacity);return`${e===1?"rgb(":"rgba("}${na(this.r)}, ${na(this.g)}, ${na(this.b)}${e===1?")":`, ${e})`}`}function Zc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function na(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ji(e){return e=na(e),(e<16?"0":"")+e.toString(16)}function gy(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Qr(e,t,r,i)}function u1(e){if(e instanceof Qr)return new Qr(e.h,e.s,e.l,e.opacity);if(e instanceof Zo||(e=Io(e)),!e)return new Qr;if(e instanceof Qr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,s=Math.min(t,r,i),o=Math.max(t,r,i),c=NaN,l=o-s,h=(o+s)/2;return l?(t===o?c=(r-i)/l+(r<i)*6:r===o?c=(i-t)/l+2:c=(t-r)/l+4,l/=h<.5?o+s:2-o-s,c*=60):l=h>0&&h<1?0:c,new Qr(c,l,h,e.opacity)}function xL(e,t,r,i){return arguments.length===1?u1(e):new Qr(e,t,r,i??1)}function Qr(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}bp(Qr,xL,c1(Zo,{brighter(e){return e=e==null?Kc:Math.pow(Kc,e),new Qr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Po:Math.pow(Po,e),new Qr(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,s=2*r-i;return new dr(Vf(e>=240?e-240:e+120,s,i),Vf(e,s,i),Vf(e<120?e+240:e-120,s,i),this.opacity)},clamp(){return new Qr(my(this.h),vc(this.s),vc(this.l),Zc(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=Zc(this.opacity);return`${e===1?"hsl(":"hsla("}${my(this.h)}, ${vc(this.s)*100}%, ${vc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function my(e){return e=(e||0)%360,e<0?e+360:e}function vc(e){return Math.max(0,Math.min(1,e||0))}function Vf(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 wp=e=>()=>e;function h1(e,t){return function(r){return e+r*t}}function vL(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 cO(e,t){var r=t-e;return r?h1(e,r>180||r<-180?r-360*Math.round(r/360):r):wp(isNaN(e)?t:e)}function bL(e){return(e=+e)==1?f1:function(t,r){return r-t?vL(t,r,e):wp(isNaN(t)?r:t)}}function f1(e,t){var r=t-e;return r?h1(e,r):wp(isNaN(e)?t:e)}const yy=(function e(t){var r=bL(t);function i(s,o){var c=r((s=xd(s)).r,(o=xd(o)).r),l=r(s.g,o.g),h=r(s.b,o.b),f=f1(s.opacity,o.opacity);return function(d){return s.r=c(d),s.g=l(d),s.b=h(d),s.opacity=f(d),s+""}}return i.gamma=e,i})(1);function xi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var vd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gf=new RegExp(vd.source,"g");function wL(e){return function(){return e}}function CL(e){return function(t){return e(t)+""}}function kL(e,t){var r=vd.lastIndex=Gf.lastIndex=0,i,s,o,c=-1,l=[],h=[];for(e=e+"",t=t+"";(i=vd.exec(e))&&(s=Gf.exec(t));)(o=s.index)>r&&(o=t.slice(r,o),l[c]?l[c]+=o:l[++c]=o),(i=i[0])===(s=s[0])?l[c]?l[c]+=s:l[++c]=s:(l[++c]=null,h.push({i:c,x:xi(i,s)})),r=Gf.lastIndex;return r<t.length&&(o=t.slice(r),l[c]?l[c]+=o:l[++c]=o),l.length<2?h[0]?CL(h[0].x):wL(t):(t=h.length,function(f){for(var d=0,g;d<t;++d)l[(g=h[d]).i]=g.x(f);return l.join("")})}var xy=180/Math.PI,bd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function d1(e,t,r,i,s,o){var c,l,h;return(c=Math.sqrt(e*e+t*t))&&(e/=c,t/=c),(h=e*r+t*i)&&(r-=e*h,i-=t*h),(l=Math.sqrt(r*r+i*i))&&(r/=l,i/=l,h/=l),e*i<t*r&&(e=-e,t=-t,h=-h,c=-c),{translateX:s,translateY:o,rotate:Math.atan2(t,e)*xy,skewX:Math.atan(h)*xy,scaleX:c,scaleY:l}}var bc;function _L(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?bd:d1(t.a,t.b,t.c,t.d,t.e,t.f)}function SL(e){return e==null||(bc||(bc=document.createElementNS("http://www.w3.org/2000/svg","g")),bc.setAttribute("transform",e),!(e=bc.transform.baseVal.consolidate()))?bd:(e=e.matrix,d1(e.a,e.b,e.c,e.d,e.e,e.f))}function p1(e,t,r,i){function s(f){return f.length?f.pop()+" ":""}function o(f,d,g,m,y,b){if(f!==g||d!==m){var C=y.push("translate(",null,t,null,r);b.push({i:C-4,x:xi(f,g)},{i:C-2,x:xi(d,m)})}else(g||m)&&y.push("translate("+g+t+m+r)}function c(f,d,g,m){f!==d?(f-d>180?d+=360:d-f>180&&(f+=360),m.push({i:g.push(s(g)+"rotate(",null,i)-2,x:xi(f,d)})):d&&g.push(s(g)+"rotate("+d+i)}function l(f,d,g,m){f!==d?m.push({i:g.push(s(g)+"skewX(",null,i)-2,x:xi(f,d)}):d&&g.push(s(g)+"skewX("+d+i)}function h(f,d,g,m,y,b){if(f!==g||d!==m){var C=y.push(s(y)+"scale(",null,",",null,")");b.push({i:C-4,x:xi(f,g)},{i:C-2,x:xi(d,m)})}else(g!==1||m!==1)&&y.push(s(y)+"scale("+g+","+m+")")}return function(f,d){var g=[],m=[];return f=e(f),d=e(d),o(f.translateX,f.translateY,d.translateX,d.translateY,g,m),c(f.rotate,d.rotate,g,m),l(f.skewX,d.skewX,g,m),h(f.scaleX,f.scaleY,d.scaleX,d.scaleY,g,m),f=d=null,function(y){for(var b=-1,C=m.length,k;++b<C;)g[(k=m[b]).i]=k.x(y);return g.join("")}}}var TL=p1(_L,"px, ","px)","deg)"),EL=p1(SL,", ",")",")"),us=0,Co=0,go=0,g1=1e3,Jc,ko,tu=0,oa=0,Fu=0,No=typeof performance=="object"&&performance.now?performance:Date,m1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Cp(){return oa||(m1(LL),oa=No.now()+Fu)}function LL(){oa=0}function eu(){this._call=this._time=this._next=null}eu.prototype=y1.prototype={constructor:eu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Cp():+r)+(t==null?0:+t),!this._next&&ko!==this&&(ko?ko._next=this:Jc=this,ko=this),this._call=e,this._time=r,wd()},stop:function(){this._call&&(this._call=null,this._time=1/0,wd())}};function y1(e,t,r){var i=new eu;return i.restart(e,t,r),i}function ML(){Cp(),++us;for(var e=Jc,t;e;)(t=oa-e._time)>=0&&e._call.call(void 0,t),e=e._next;--us}function vy(){oa=(tu=No.now())+Fu,us=Co=0;try{ML()}finally{us=0,BL(),oa=0}}function AL(){var e=No.now(),t=e-tu;t>g1&&(Fu-=t,tu=e)}function BL(){for(var e,t=Jc,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:Jc=r);ko=e,wd(i)}function wd(e){if(!us){Co&&(Co=clearTimeout(Co));var t=e-oa;t>24?(e<1/0&&(Co=setTimeout(vy,e-No.now()-Fu)),go&&(go=clearInterval(go))):(go||(tu=No.now(),go=setInterval(AL,g1)),us=1,m1(vy))}}function by(e,t,r){var i=new eu;return t=t==null?0:+t,i.restart(s=>{i.stop(),e(s+t)},t,r),i}var $L=Qx("start","end","cancel","interrupt"),FL=[],x1=0,wy=1,Cd=2,Dc=3,Cy=4,kd=5,Pc=6;function Ru(e,t,r,i,s,o){var c=e.__transition;if(!c)e.__transition={};else if(r in c)return;RL(e,r,{name:t,index:i,group:s,on:$L,tween:FL,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:x1})}function kp(e,t){var r=tn(e,t);if(r.state>x1)throw new Error("too late; already scheduled");return r}function vn(e,t){var r=tn(e,t);if(r.state>Dc)throw new Error("too late; already running");return r}function tn(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function RL(e,t,r){var i=e.__transition,s;i[t]=r,r.timer=y1(o,0,r.time);function o(f){r.state=wy,r.timer.restart(c,r.delay,r.time),r.delay<=f&&c(f-r.delay)}function c(f){var d,g,m,y;if(r.state!==wy)return h();for(d in i)if(y=i[d],y.name===r.name){if(y.state===Dc)return by(c);y.state===Cy?(y.state=Pc,y.timer.stop(),y.on.call("interrupt",e,e.__data__,y.index,y.group),delete i[d]):+d<t&&(y.state=Pc,y.timer.stop(),y.on.call("cancel",e,e.__data__,y.index,y.group),delete i[d])}if(by(function(){r.state===Dc&&(r.state=Cy,r.timer.restart(l,r.delay,r.time),l(f))}),r.state=Cd,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Cd){for(r.state=Dc,s=new Array(m=r.tween.length),d=0,g=-1;d<m;++d)(y=r.tween[d].value.call(e,e.__data__,r.index,r.group))&&(s[++g]=y);s.length=g+1}}function l(f){for(var d=f<r.duration?r.ease.call(null,f/r.duration):(r.timer.restart(h),r.state=kd,1),g=-1,m=s.length;++g<m;)s[g].call(e,d);r.state===kd&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Pc,r.timer.stop(),delete i[t];for(var f in i)return;delete e.__transition}}function DL(e,t){var r=e.__transition,i,s,o=!0,c;if(r){t=t==null?null:t+"";for(c in r){if((i=r[c]).name!==t){o=!1;continue}s=i.state>Cd&&i.state<kd,i.state=Pc,i.timer.stop(),i.on.call(s?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[c]}o&&delete e.__transition}}function PL(e){return this.each(function(){DL(this,e)})}function OL(e,t){var r,i;return function(){var s=vn(this,e),o=s.tween;if(o!==r){i=r=o;for(var c=0,l=i.length;c<l;++c)if(i[c].name===t){i=i.slice(),i.splice(c,1);break}}s.tween=i}}function IL(e,t,r){var i,s;if(typeof r!="function")throw new Error;return function(){var o=vn(this,e),c=o.tween;if(c!==i){s=(i=c).slice();for(var l={name:t,value:r},h=0,f=s.length;h<f;++h)if(s[h].name===t){s[h]=l;break}h===f&&s.push(l)}o.tween=s}}function NL(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=tn(this.node(),r).tween,s=0,o=i.length,c;s<o;++s)if((c=i[s]).name===e)return c.value;return null}return this.each((t==null?OL:IL)(r,e,t))}function _p(e,t,r){var i=e._id;return e.each(function(){var s=vn(this,i);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return tn(s,i).value[t]}}function v1(e,t){var r;return(typeof t=="number"?xi:t instanceof Io?yy:(r=Io(t))?(t=r,yy):kL)(e,t)}function zL(e){return function(){this.removeAttribute(e)}}function jL(e){return function(){this.removeAttributeNS(e.space,e.local)}}function WL(e,t,r){var i,s=r+"",o;return function(){var c=this.getAttribute(e);return c===s?null:c===i?o:o=t(i=c,r)}}function HL(e,t,r){var i,s=r+"",o;return function(){var c=this.getAttributeNS(e.space,e.local);return c===s?null:c===i?o:o=t(i=c,r)}}function qL(e,t,r){var i,s,o;return function(){var c,l=r(this),h;return l==null?void this.removeAttribute(e):(c=this.getAttribute(e),h=l+"",c===h?null:c===i&&h===s?o:(s=h,o=t(i=c,l)))}}function UL(e,t,r){var i,s,o;return function(){var c,l=r(this),h;return l==null?void this.removeAttributeNS(e.space,e.local):(c=this.getAttributeNS(e.space,e.local),h=l+"",c===h?null:c===i&&h===s?o:(s=h,o=t(i=c,l)))}}function YL(e,t){var r=$u(e),i=r==="transform"?EL:v1;return this.attrTween(e,typeof t=="function"?(r.local?UL:qL)(r,i,_p(this,"attr."+e,t)):t==null?(r.local?jL:zL)(r):(r.local?HL:WL)(r,i,t))}function VL(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function GL(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function XL(e,t){var r,i;function s(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&GL(e,o)),r}return s._value=t,s}function QL(e,t){var r,i;function s(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&VL(e,o)),r}return s._value=t,s}function KL(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=$u(e);return this.tween(r,(i.local?XL:QL)(i,t))}function ZL(e,t){return function(){kp(this,e).delay=+t.apply(this,arguments)}}function JL(e,t){return t=+t,function(){kp(this,e).delay=t}}function t3(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ZL:JL)(t,e)):tn(this.node(),t).delay}function e3(e,t){return function(){vn(this,e).duration=+t.apply(this,arguments)}}function r3(e,t){return t=+t,function(){vn(this,e).duration=t}}function n3(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?e3:r3)(t,e)):tn(this.node(),t).duration}function i3(e,t){if(typeof t!="function")throw new Error;return function(){vn(this,e).ease=t}}function a3(e){var t=this._id;return arguments.length?this.each(i3(t,e)):tn(this.node(),t).ease}function s3(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;vn(this,e).ease=r}}function o3(e){if(typeof e!="function")throw new Error;return this.each(s3(this._id,e))}function l3(e){typeof e!="function"&&(e=Jx(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var o=t[s],c=o.length,l=i[s]=[],h,f=0;f<c;++f)(h=o[f])&&e.call(h,h.__data__,f,o)&&l.push(h);return new jn(i,this._parents,this._name,this._id)}function c3(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,s=r.length,o=Math.min(i,s),c=new Array(i),l=0;l<o;++l)for(var h=t[l],f=r[l],d=h.length,g=c[l]=new Array(d),m,y=0;y<d;++y)(m=h[y]||f[y])&&(g[y]=m);for(;l<i;++l)c[l]=t[l];return new jn(c,this._parents,this._name,this._id)}function u3(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 h3(e,t,r){var i,s,o=u3(t)?kp:vn;return function(){var c=o(this,e),l=c.on;l!==i&&(s=(i=l).copy()).on(t,r),c.on=s}}function f3(e,t){var r=this._id;return arguments.length<2?tn(this.node(),r).on.on(e):this.each(h3(r,e,t))}function d3(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function p3(){return this.on("end.remove",d3(this._id))}function g3(e){var t=this._name,r=this._id;typeof e!="function"&&(e=xp(e));for(var i=this._groups,s=i.length,o=new Array(s),c=0;c<s;++c)for(var l=i[c],h=l.length,f=o[c]=new Array(h),d,g,m=0;m<h;++m)(d=l[m])&&(g=e.call(d,d.__data__,m,l))&&("__data__"in d&&(g.__data__=d.__data__),f[m]=g,Ru(f[m],t,r,m,f,tn(d,r)));return new jn(o,this._parents,t,r)}function m3(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Zx(e));for(var i=this._groups,s=i.length,o=[],c=[],l=0;l<s;++l)for(var h=i[l],f=h.length,d,g=0;g<f;++g)if(d=h[g]){for(var m=e.call(d,d.__data__,g,h),y,b=tn(d,r),C=0,k=m.length;C<k;++C)(y=m[C])&&Ru(y,t,r,C,m,b);o.push(m),c.push(d)}return new jn(o,c,t,r)}var y3=Ko.prototype.constructor;function x3(){return new y3(this._groups,this._parents)}function v3(e,t){var r,i,s;return function(){var o=cs(this,e),c=(this.style.removeProperty(e),cs(this,e));return o===c?null:o===r&&c===i?s:s=t(r=o,i=c)}}function b1(e){return function(){this.style.removeProperty(e)}}function b3(e,t,r){var i,s=r+"",o;return function(){var c=cs(this,e);return c===s?null:c===i?o:o=t(i=c,r)}}function w3(e,t,r){var i,s,o;return function(){var c=cs(this,e),l=r(this),h=l+"";return l==null&&(h=l=(this.style.removeProperty(e),cs(this,e))),c===h?null:c===i&&h===s?o:(s=h,o=t(i=c,l))}}function C3(e,t){var r,i,s,o="style."+t,c="end."+o,l;return function(){var h=vn(this,e),f=h.on,d=h.value[o]==null?l||(l=b1(t)):void 0;(f!==r||s!==d)&&(i=(r=f).copy()).on(c,s=d),h.on=i}}function k3(e,t,r){var i=(e+="")=="transform"?TL:v1;return t==null?this.styleTween(e,v3(e,i)).on("end.style."+e,b1(e)):typeof t=="function"?this.styleTween(e,w3(e,i,_p(this,"style."+e,t))).each(C3(this._id,e)):this.styleTween(e,b3(e,i,t),r).on("end.style."+e,null)}function _3(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function S3(e,t,r){var i,s;function o(){var c=t.apply(this,arguments);return c!==s&&(i=(s=c)&&_3(e,c,r)),i}return o._value=t,o}function T3(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,S3(e,t,r??""))}function E3(e){return function(){this.textContent=e}}function L3(e){return function(){var t=e(this);this.textContent=t??""}}function M3(e){return this.tween("text",typeof e=="function"?L3(_p(this,"text",e)):E3(e==null?"":e+""))}function A3(e){return function(t){this.textContent=e.call(this,t)}}function B3(e){var t,r;function i(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&A3(s)),t}return i._value=e,i}function $3(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,B3(e))}function F3(){for(var e=this._name,t=this._id,r=w1(),i=this._groups,s=i.length,o=0;o<s;++o)for(var c=i[o],l=c.length,h,f=0;f<l;++f)if(h=c[f]){var d=tn(h,t);Ru(h,e,r,f,c,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new jn(i,this._parents,e,r)}function R3(){var e,t,r=this,i=r._id,s=r.size();return new Promise(function(o,c){var l={value:c},h={value:function(){--s===0&&o()}};r.each(function(){var f=vn(this,i),d=f.on;d!==e&&(t=(e=d).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(h)),f.on=t}),s===0&&o()})}var D3=0;function jn(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function w1(){return++D3}var Pn=Ko.prototype;jn.prototype={constructor:jn,select:g3,selectAll:m3,selectChild:Pn.selectChild,selectChildren:Pn.selectChildren,filter:l3,merge:c3,selection:x3,transition:F3,call:Pn.call,nodes:Pn.nodes,node:Pn.node,size:Pn.size,empty:Pn.empty,each:Pn.each,on:f3,attr:YL,attrTween:KL,style:k3,styleTween:T3,text:M3,textTween:$3,remove:p3,tween:NL,delay:t3,duration:n3,ease:a3,easeVarying:o3,end:R3,[Symbol.iterator]:Pn[Symbol.iterator]};function P3(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var O3={time:null,delay:0,duration:250,ease:P3};function I3(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 N3(e){var t,r;e instanceof jn?(t=e._id,e=e._name):(t=w1(),(r=O3).time=Cp(),e=e==null?null:e+"");for(var i=this._groups,s=i.length,o=0;o<s;++o)for(var c=i[o],l=c.length,h,f=0;f<l;++f)(h=c[f])&&Ru(h,e,t,f,c,r||I3(h,t));return new jn(i,this._parents,e,t)}Ko.prototype.interrupt=PL;Ko.prototype.transition=N3;const _d=Math.PI,Sd=2*_d,Xi=1e-6,z3=Sd-Xi;function C1(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function j3(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return C1;const r=10**t;return function(i){this._+=i[0];for(let s=1,o=i.length;s<o;++s)this._+=Math.round(arguments[s]*r)/r+i[s]}}class W3{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?C1:j3(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,s){this._append`Q${+t},${+r},${this._x1=+i},${this._y1=+s}`}bezierCurveTo(t,r,i,s,o,c){this._append`C${+t},${+r},${+i},${+s},${this._x1=+o},${this._y1=+c}`}arcTo(t,r,i,s,o){if(t=+t,r=+r,i=+i,s=+s,o=+o,o<0)throw new Error(`negative radius: ${o}`);let c=this._x1,l=this._y1,h=i-t,f=s-r,d=c-t,g=l-r,m=d*d+g*g;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(m>Xi)if(!(Math.abs(g*h-f*d)>Xi)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let y=i-c,b=s-l,C=h*h+f*f,k=y*y+b*b,S=Math.sqrt(C),_=Math.sqrt(m),E=o*Math.tan((_d-Math.acos((C+m-k)/(2*S*_)))/2),M=E/_,B=E/S;Math.abs(M-1)>Xi&&this._append`L${t+M*d},${r+M*g}`,this._append`A${o},${o},0,0,${+(g*y>d*b)},${this._x1=t+B*h},${this._y1=r+B*f}`}}arc(t,r,i,s,o,c){if(t=+t,r=+r,i=+i,c=!!c,i<0)throw new Error(`negative radius: ${i}`);let l=i*Math.cos(s),h=i*Math.sin(s),f=t+l,d=r+h,g=1^c,m=c?s-o:o-s;this._x1===null?this._append`M${f},${d}`:(Math.abs(this._x1-f)>Xi||Math.abs(this._y1-d)>Xi)&&this._append`L${f},${d}`,i&&(m<0&&(m=m%Sd+Sd),m>z3?this._append`A${i},${i},0,1,${g},${t-l},${r-h}A${i},${i},0,1,${g},${this._x1=f},${this._y1=d}`:m>Xi&&this._append`A${i},${i},0,${+(m>=_d)},${g},${this._x1=t+i*Math.cos(o)},${this._y1=r+i*Math.sin(o)}`)}rect(t,r,i,s){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}}function qa(e){return function(){return e}}const uO=Math.abs,hO=Math.atan2,fO=Math.cos,dO=Math.max,pO=Math.min,gO=Math.sin,mO=Math.sqrt,ky=1e-12,Sp=Math.PI,_y=Sp/2,yO=2*Sp;function xO(e){return e>1?0:e<-1?Sp:Math.acos(e)}function vO(e){return e>=1?_y:e<=-1?-_y:Math.asin(e)}function H3(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 W3(t)}function q3(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function k1(e){this._context=e}k1.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 ru(e){return new k1(e)}function U3(e){return e[0]}function Y3(e){return e[1]}function V3(e,t){var r=qa(!0),i=null,s=ru,o=null,c=H3(l);e=typeof e=="function"?e:e===void 0?U3:qa(e),t=typeof t=="function"?t:t===void 0?Y3:qa(t);function l(h){var f,d=(h=q3(h)).length,g,m=!1,y;for(i==null&&(o=s(y=c())),f=0;f<=d;++f)!(f<d&&r(g=h[f],f,h))===m&&((m=!m)?o.lineStart():o.lineEnd()),m&&o.point(+e(g,f,h),+t(g,f,h));if(y)return o=null,y+""||null}return l.x=function(h){return arguments.length?(e=typeof h=="function"?h:qa(+h),l):e},l.y=function(h){return arguments.length?(t=typeof h=="function"?h:qa(+h),l):t},l.defined=function(h){return arguments.length?(r=typeof h=="function"?h:qa(!!h),l):r},l.curve=function(h){return arguments.length?(s=h,i!=null&&(o=s(i)),l):s},l.context=function(h){return arguments.length?(h==null?i=o=null:o=s(i=h),l):i},l}class _1{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 S1(e){return new _1(e,!0)}function T1(e){return new _1(e,!1)}function wi(){}function nu(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 Du(e){this._context=e}Du.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:nu(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:nu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Oc(e){return new Du(e)}function E1(e){this._context=e}E1.prototype={areaStart:wi,areaEnd:wi,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:nu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function G3(e){return new E1(e)}function L1(e){this._context=e}L1.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:nu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function X3(e){return new L1(e)}function M1(e,t){this._basis=new Du(e),this._beta=t}M1.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],s=t[0],o=e[r]-i,c=t[r]-s,l=-1,h;++l<=r;)h=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+h*o),this._beta*t[l]+(1-this._beta)*(s+h*c));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Q3=(function e(t){function r(i){return t===1?new Du(i):new M1(i,t)}return r.beta=function(i){return e(+i)},r})(.85);function iu(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 Tp(e,t){this._context=e,this._k=(1-t)/6}Tp.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:iu(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:iu(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 A1=(function e(t){function r(i){return new Tp(i,t)}return r.tension=function(i){return e(+i)},r})(0);function Ep(e,t){this._context=e,this._k=(1-t)/6}Ep.prototype={areaStart:wi,areaEnd:wi,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:iu(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 K3=(function e(t){function r(i){return new Ep(i,t)}return r.tension=function(i){return e(+i)},r})(0);function Lp(e,t){this._context=e,this._k=(1-t)/6}Lp.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:iu(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 Z3=(function e(t){function r(i){return new Lp(i,t)}return r.tension=function(i){return e(+i)},r})(0);function Mp(e,t,r){var i=e._x1,s=e._y1,o=e._x2,c=e._y2;if(e._l01_a>ky){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,h=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/h,s=(s*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/h}if(e._l23_a>ky){var f=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*f+e._x1*e._l23_2a-t*e._l12_2a)/d,c=(c*f+e._y1*e._l23_2a-r*e._l12_2a)/d}e._context.bezierCurveTo(i,s,o,c,e._x2,e._y2)}function B1(e,t){this._context=e,this._alpha=t}B1.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:Mp(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 $1=(function e(t){function r(i){return t?new B1(i,t):new Tp(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function F1(e,t){this._context=e,this._alpha=t}F1.prototype={areaStart:wi,areaEnd:wi,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:Mp(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 J3=(function e(t){function r(i){return t?new F1(i,t):new Ep(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function R1(e,t){this._context=e,this._alpha=t}R1.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:Mp(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 tM=(function e(t){function r(i){return t?new R1(i,t):new Lp(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function D1(e){this._context=e}D1.prototype={areaStart:wi,areaEnd:wi,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 eM(e){return new D1(e)}function Sy(e){return e<0?-1:1}function Ty(e,t,r){var i=e._x1-e._x0,s=t-e._x1,o=(e._y1-e._y0)/(i||s<0&&-0),c=(r-e._y1)/(s||i<0&&-0),l=(o*s+c*i)/(i+s);return(Sy(o)+Sy(c))*Math.min(Math.abs(o),Math.abs(c),.5*Math.abs(l))||0}function Ey(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Xf(e,t,r){var i=e._x0,s=e._y0,o=e._x1,c=e._y1,l=(o-i)/3;e._context.bezierCurveTo(i+l,s+l*t,o-l,c-l*r,o,c)}function au(e){this._context=e}au.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:Xf(this,this._t0,Ey(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,Xf(this,Ey(this,r=Ty(this,e,t)),r);break;default:Xf(this,this._t0,r=Ty(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function P1(e){this._context=new O1(e)}(P1.prototype=Object.create(au.prototype)).point=function(e,t){au.prototype.point.call(this,t,e)};function O1(e){this._context=e}O1.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,s,o){this._context.bezierCurveTo(t,e,i,r,o,s)}};function I1(e){return new au(e)}function N1(e){return new P1(e)}function z1(e){this._context=e}z1.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=Ly(e),s=Ly(t),o=0,c=1;c<r;++o,++c)this._context.bezierCurveTo(i[0][o],s[0][o],i[1][o],s[1][o],e[c],t[c]);(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 Ly(e){var t,r=e.length-1,i,s=new Array(r),o=new Array(r),c=new Array(r);for(s[0]=0,o[0]=2,c[0]=e[0]+2*e[1],t=1;t<r-1;++t)s[t]=1,o[t]=4,c[t]=4*e[t]+2*e[t+1];for(s[r-1]=2,o[r-1]=7,c[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=s[t]/o[t-1],o[t]-=i,c[t]-=i*c[t-1];for(s[r-1]=c[r-1]/o[r-1],t=r-2;t>=0;--t)s[t]=(c[t]-s[t+1])/o[t];for(o[r-1]=(e[r]+s[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-s[t+1];return[s,o]}function j1(e){return new z1(e)}function Pu(e,t){this._context=e,this._t=t}Pu.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 W1(e){return new Pu(e,.5)}function H1(e){return new Pu(e,0)}function q1(e){return new Pu(e,1)}function _o(e,t,r){this.k=e,this.x=t,this.y=r}_o.prototype={constructor:_o,scale:function(e){return e===1?this:new _o(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new _o(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+")"}};_o.prototype;var rM=w(e=>{var s;const{securityLevel:t}=Kt();let r=Yt("body");if(t==="sandbox"){const c=((s=Yt(`#i${e}`).node())==null?void 0:s.contentDocument)??document;r=Yt(c.body)}return r.select(`#${e}`)},"selectSvgElement");function Ap(e){return typeof e>"u"||e===null}w(Ap,"isNothing");function U1(e){return typeof e=="object"&&e!==null}w(U1,"isObject");function Y1(e){return Array.isArray(e)?e:Ap(e)?[]:[e]}w(Y1,"toArray");function V1(e,t){var r,i,s,o;if(t)for(o=Object.keys(t),r=0,i=o.length;r<i;r+=1)s=o[r],e[s]=t[s];return e}w(V1,"extend");function G1(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}w(G1,"repeat");function X1(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}w(X1,"isNegativeZero");var nM=Ap,iM=U1,aM=Y1,sM=G1,oM=X1,lM=V1,Se={isNothing:nM,isObject:iM,toArray:aM,repeat:sM,isNegativeZero:oM,extend:lM};function Bp(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+=`
|
|
121
|
+
|
|
122
|
+
`+e.mark.snippet),i+" "+r):i}w(Bp,"formatError");function hs(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Bp(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}w(hs,"YAMLException$1");hs.prototype=Object.create(Error.prototype);hs.prototype.constructor=hs;hs.prototype.toString=w(function(t){return this.name+": "+Bp(this,t)},"toString");var fr=hs;function Ic(e,t,r,i,s){var o="",c="",l=Math.floor(s/2)-1;return i-t>l&&(o=" ... ",t=i-l+o.length),r-i>l&&(c=" ...",r=i+l-c.length),{str:o+e.slice(t,r).replace(/\t/g,"→")+c,pos:i-t+o.length}}w(Ic,"getLine");function Nc(e,t){return Se.repeat(" ",t-e.length)+e}w(Nc,"padStart");function Q1(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],s=[],o,c=-1;o=r.exec(e.buffer);)s.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&c<0&&(c=i.length-2);c<0&&(c=i.length-1);var l="",h,f,d=Math.min(e.line+t.linesAfter,s.length).toString().length,g=t.maxLength-(t.indent+d+3);for(h=1;h<=t.linesBefore&&!(c-h<0);h++)f=Ic(e.buffer,i[c-h],s[c-h],e.position-(i[c]-i[c-h]),g),l=Se.repeat(" ",t.indent)+Nc((e.line-h+1).toString(),d)+" | "+f.str+`
|
|
123
|
+
`+l;for(f=Ic(e.buffer,i[c],s[c],e.position,g),l+=Se.repeat(" ",t.indent)+Nc((e.line+1).toString(),d)+" | "+f.str+`
|
|
124
|
+
`,l+=Se.repeat("-",t.indent+d+3+f.pos)+`^
|
|
125
|
+
`,h=1;h<=t.linesAfter&&!(c+h>=s.length);h++)f=Ic(e.buffer,i[c+h],s[c+h],e.position-(i[c]-i[c+h]),g),l+=Se.repeat(" ",t.indent)+Nc((e.line+h+1).toString(),d)+" | "+f.str+`
|
|
126
|
+
`;return l.replace(/\n$/,"")}w(Q1,"makeSnippet");var cM=Q1,uM=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],hM=["scalar","sequence","mapping"];function K1(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}w(K1,"compileStyleAliases");function Z1(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(uM.indexOf(r)===-1)throw new fr('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=K1(t.styleAliases||null),hM.indexOf(this.kind)===-1)throw new fr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}w(Z1,"Type$1");var qe=Z1;function Td(e,t){var r=[];return e[t].forEach(function(i){var s=r.length;r.forEach(function(o,c){o.tag===i.tag&&o.kind===i.kind&&o.multi===i.multi&&(s=c)}),r[s]=i}),r}w(Td,"compileList");function J1(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(w(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}w(J1,"compileMap");function su(e){return this.extend(e)}w(su,"Schema$1");su.prototype.extend=w(function(t){var r=[],i=[];if(t instanceof qe)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 fr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(o){if(!(o instanceof qe))throw new fr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new fr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(o.multi)throw new fr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(o){if(!(o instanceof qe))throw new fr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(su.prototype);return s.implicit=(this.implicit||[]).concat(r),s.explicit=(this.explicit||[]).concat(i),s.compiledImplicit=Td(s,"implicit"),s.compiledExplicit=Td(s,"explicit"),s.compiledTypeMap=J1(s.compiledImplicit,s.compiledExplicit),s},"extend");var fM=su,dM=new qe("tag:yaml.org,2002:str",{kind:"scalar",construct:w(function(e){return e!==null?e:""},"construct")}),pM=new qe("tag:yaml.org,2002:seq",{kind:"sequence",construct:w(function(e){return e!==null?e:[]},"construct")}),gM=new qe("tag:yaml.org,2002:map",{kind:"mapping",construct:w(function(e){return e!==null?e:{}},"construct")}),mM=new fM({explicit:[dM,pM,gM]});function tv(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}w(tv,"resolveYamlNull");function ev(){return null}w(ev,"constructYamlNull");function rv(e){return e===null}w(rv,"isNull");var yM=new qe("tag:yaml.org,2002:null",{kind:"scalar",resolve:tv,construct:ev,predicate:rv,represent:{canonical:w(function(){return"~"},"canonical"),lowercase:w(function(){return"null"},"lowercase"),uppercase:w(function(){return"NULL"},"uppercase"),camelcase:w(function(){return"Null"},"camelcase"),empty:w(function(){return""},"empty")},defaultStyle:"lowercase"});function nv(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")}w(nv,"resolveYamlBoolean");function iv(e){return e==="true"||e==="True"||e==="TRUE"}w(iv,"constructYamlBoolean");function av(e){return Object.prototype.toString.call(e)==="[object Boolean]"}w(av,"isBoolean");var xM=new qe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:nv,construct:iv,predicate:av,represent:{lowercase:w(function(e){return e?"true":"false"},"lowercase"),uppercase:w(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:w(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function sv(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}w(sv,"isHexCode");function ov(e){return 48<=e&&e<=55}w(ov,"isOctCode");function lv(e){return 48<=e&&e<=57}w(lv,"isDecCode");function cv(e){if(e===null)return!1;var t=e.length,r=0,i=!1,s;if(!t)return!1;if(s=e[r],(s==="-"||s==="+")&&(s=e[++r]),s==="0"){if(r+1===t)return!0;if(s=e[++r],s==="b"){for(r++;r<t;r++)if(s=e[r],s!=="_"){if(s!=="0"&&s!=="1")return!1;i=!0}return i&&s!=="_"}if(s==="x"){for(r++;r<t;r++)if(s=e[r],s!=="_"){if(!sv(e.charCodeAt(r)))return!1;i=!0}return i&&s!=="_"}if(s==="o"){for(r++;r<t;r++)if(s=e[r],s!=="_"){if(!ov(e.charCodeAt(r)))return!1;i=!0}return i&&s!=="_"}}if(s==="_")return!1;for(;r<t;r++)if(s=e[r],s!=="_"){if(!lv(e.charCodeAt(r)))return!1;i=!0}return!(!i||s==="_")}w(cv,"resolveYamlInteger");function uv(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)}w(uv,"constructYamlInteger");function hv(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Se.isNegativeZero(e)}w(hv,"isInteger");var vM=new qe("tag:yaml.org,2002:int",{kind:"scalar",resolve:cv,construct:uv,predicate:hv,represent:{binary:w(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:w(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:w(function(e){return e.toString(10)},"decimal"),hexadecimal:w(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"]}}),bM=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function fv(e){return!(e===null||!bM.test(e)||e[e.length-1]==="_")}w(fv,"resolveYamlFloat");function dv(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)}w(dv,"constructYamlFloat");var wM=/^[-+]?[0-9]+e/;function pv(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(Se.isNegativeZero(e))return"-0.0";return r=e.toString(10),wM.test(r)?r.replace("e",".e"):r}w(pv,"representYamlFloat");function gv(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Se.isNegativeZero(e))}w(gv,"isFloat");var CM=new qe("tag:yaml.org,2002:float",{kind:"scalar",resolve:fv,construct:dv,predicate:gv,represent:pv,defaultStyle:"lowercase"}),mv=mM.extend({implicit:[yM,xM,vM,CM]}),kM=mv,yv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),xv=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 vv(e){return e===null?!1:yv.exec(e)!==null||xv.exec(e)!==null}w(vv,"resolveYamlTimestamp");function bv(e){var t,r,i,s,o,c,l,h=0,f=null,d,g,m;if(t=yv.exec(e),t===null&&(t=xv.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(r,i,s));if(o=+t[4],c=+t[5],l=+t[6],t[7]){for(h=t[7].slice(0,3);h.length<3;)h+="0";h=+h}return t[9]&&(d=+t[10],g=+(t[11]||0),f=(d*60+g)*6e4,t[9]==="-"&&(f=-f)),m=new Date(Date.UTC(r,i,s,o,c,l,h)),f&&m.setTime(m.getTime()-f),m}w(bv,"constructYamlTimestamp");function wv(e){return e.toISOString()}w(wv,"representYamlTimestamp");var _M=new qe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:vv,construct:bv,instanceOf:Date,represent:wv});function Cv(e){return e==="<<"||e===null}w(Cv,"resolveYamlMerge");var SM=new qe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Cv}),$p=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
127
|
+
\r`;function kv(e){if(e===null)return!1;var t,r,i=0,s=e.length,o=$p;for(r=0;r<s;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}w(kv,"resolveYamlBinary");function _v(e){var t,r,i=e.replace(/[\r\n=]/g,""),s=i.length,o=$p,c=0,l=[];for(t=0;t<s;t++)t%4===0&&t&&(l.push(c>>16&255),l.push(c>>8&255),l.push(c&255)),c=c<<6|o.indexOf(i.charAt(t));return r=s%4*6,r===0?(l.push(c>>16&255),l.push(c>>8&255),l.push(c&255)):r===18?(l.push(c>>10&255),l.push(c>>2&255)):r===12&&l.push(c>>4&255),new Uint8Array(l)}w(_v,"constructYamlBinary");function Sv(e){var t="",r=0,i,s,o=e.length,c=$p;for(i=0;i<o;i++)i%3===0&&i&&(t+=c[r>>18&63],t+=c[r>>12&63],t+=c[r>>6&63],t+=c[r&63]),r=(r<<8)+e[i];return s=o%3,s===0?(t+=c[r>>18&63],t+=c[r>>12&63],t+=c[r>>6&63],t+=c[r&63]):s===2?(t+=c[r>>10&63],t+=c[r>>4&63],t+=c[r<<2&63],t+=c[64]):s===1&&(t+=c[r>>2&63],t+=c[r<<4&63],t+=c[64],t+=c[64]),t}w(Sv,"representYamlBinary");function Tv(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}w(Tv,"isBinary");var TM=new qe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:kv,construct:_v,predicate:Tv,represent:Sv}),EM=Object.prototype.hasOwnProperty,LM=Object.prototype.toString;function Ev(e){if(e===null)return!0;var t=[],r,i,s,o,c,l=e;for(r=0,i=l.length;r<i;r+=1){if(s=l[r],c=!1,LM.call(s)!=="[object Object]")return!1;for(o in s)if(EM.call(s,o))if(!c)c=!0;else return!1;if(!c)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}w(Ev,"resolveYamlOmap");function Lv(e){return e!==null?e:[]}w(Lv,"constructYamlOmap");var MM=new qe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Ev,construct:Lv}),AM=Object.prototype.toString;function Mv(e){if(e===null)return!0;var t,r,i,s,o,c=e;for(o=new Array(c.length),t=0,r=c.length;t<r;t+=1){if(i=c[t],AM.call(i)!=="[object Object]"||(s=Object.keys(i),s.length!==1))return!1;o[t]=[s[0],i[s[0]]]}return!0}w(Mv,"resolveYamlPairs");function Av(e){if(e===null)return[];var t,r,i,s,o,c=e;for(o=new Array(c.length),t=0,r=c.length;t<r;t+=1)i=c[t],s=Object.keys(i),o[t]=[s[0],i[s[0]]];return o}w(Av,"constructYamlPairs");var BM=new qe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Mv,construct:Av}),$M=Object.prototype.hasOwnProperty;function Bv(e){if(e===null)return!0;var t,r=e;for(t in r)if($M.call(r,t)&&r[t]!==null)return!1;return!0}w(Bv,"resolveYamlSet");function $v(e){return e!==null?e:{}}w($v,"constructYamlSet");var FM=new qe("tag:yaml.org,2002:set",{kind:"mapping",resolve:Bv,construct:$v}),Fv=kM.extend({implicit:[_M,SM],explicit:[TM,MM,BM,FM]}),Ci=Object.prototype.hasOwnProperty,ou=1,Rv=2,Dv=3,lu=4,Qf=1,RM=2,My=3,DM=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,PM=/[\x85\u2028\u2029]/,OM=/[,\[\]\{\}]/,Pv=/^(?:!|!!|![a-z\-]+!)$/i,Ov=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ed(e){return Object.prototype.toString.call(e)}w(Ed,"_class");function Zr(e){return e===10||e===13}w(Zr,"is_EOL");function bi(e){return e===9||e===32}w(bi,"is_WHITE_SPACE");function Ke(e){return e===9||e===32||e===10||e===13}w(Ke,"is_WS_OR_EOL");function ta(e){return e===44||e===91||e===93||e===123||e===125}w(ta,"is_FLOW_INDICATOR");function Iv(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}w(Iv,"fromHexCode");function Nv(e){return e===120?2:e===117?4:e===85?8:0}w(Nv,"escapedHexLen");function zv(e){return 48<=e&&e<=57?e-48:-1}w(zv,"fromDecimalCode");function Ld(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
128
|
+
`: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":""}w(Ld,"simpleEscapeSequence");function jv(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}w(jv,"charFromCodepoint");var Wv=new Array(256),Hv=new Array(256);for(Gi=0;Gi<256;Gi++)Wv[Gi]=Ld(Gi)?1:0,Hv[Gi]=Ld(Gi);var Gi;function qv(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Fv,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=[]}w(qv,"State$1");function Fp(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=cM(r),new fr(t,r)}w(Fp,"generateError");function Mt(e,t){throw Fp(e,t)}w(Mt,"throwError");function zo(e,t){e.onWarning&&e.onWarning.call(null,Fp(e,t))}w(zo,"throwWarning");var Ay={YAML:w(function(t,r,i){var s,o,c;t.version!==null&&Mt(t,"duplication of %YAML directive"),i.length!==1&&Mt(t,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),s===null&&Mt(t,"ill-formed argument of the YAML directive"),o=parseInt(s[1],10),c=parseInt(s[2],10),o!==1&&Mt(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=c<2,c!==1&&c!==2&&zo(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:w(function(t,r,i){var s,o;i.length!==2&&Mt(t,"TAG directive accepts exactly two arguments"),s=i[0],o=i[1],Pv.test(s)||Mt(t,"ill-formed tag handle (first argument) of the TAG directive"),Ci.call(t.tagMap,s)&&Mt(t,'there is a previously declared suffix for "'+s+'" tag handle'),Ov.test(o)||Mt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{Mt(t,"tag prefix is malformed: "+o)}t.tagMap[s]=o},"handleTagDirective")};function zn(e,t,r,i){var s,o,c,l;if(t<r){if(l=e.input.slice(t,r),i)for(s=0,o=l.length;s<o;s+=1)c=l.charCodeAt(s),c===9||32<=c&&c<=1114111||Mt(e,"expected valid JSON character");else DM.test(l)&&Mt(e,"the stream contains non-printable characters");e.result+=l}}w(zn,"captureSegment");function Md(e,t,r,i){var s,o,c,l;for(Se.isObject(r)||Mt(e,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(r),c=0,l=s.length;c<l;c+=1)o=s[c],Ci.call(t,o)||(t[o]=r[o],i[o]=!0)}w(Md,"mergeMappings");function ea(e,t,r,i,s,o,c,l,h){var f,d;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),f=0,d=s.length;f<d;f+=1)Array.isArray(s[f])&&Mt(e,"nested arrays are not supported inside keys"),typeof s=="object"&&Ed(s[f])==="[object Object]"&&(s[f]="[object Object]");if(typeof s=="object"&&Ed(s)==="[object Object]"&&(s="[object Object]"),s=String(s),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(f=0,d=o.length;f<d;f+=1)Md(e,t,o[f],r);else Md(e,t,o,r);else!e.json&&!Ci.call(r,s)&&Ci.call(t,s)&&(e.line=c||e.line,e.lineStart=l||e.lineStart,e.position=h||e.position,Mt(e,"duplicated mapping key")),s==="__proto__"?Object.defineProperty(t,s,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[s]=o,delete r[s];return t}w(ea,"storeMappingPair");function Ou(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++):Mt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}w(Ou,"readLineBreak");function ye(e,t,r){for(var i=0,s=e.input.charCodeAt(e.position);s!==0;){for(;bi(s);)s===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(t&&s===35)do s=e.input.charCodeAt(++e.position);while(s!==10&&s!==13&&s!==0);if(Zr(s))for(Ou(e),s=e.input.charCodeAt(e.position),i++,e.lineIndent=0;s===32;)e.lineIndent++,s=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&zo(e,"deficient indentation"),i}w(ye,"skipSeparationSpace");function Jo(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||Ke(r)))}w(Jo,"testDocumentSeparator");function Iu(e,t){t===1?e.result+=" ":t>1&&(e.result+=Se.repeat(`
|
|
129
|
+
`,t-1))}w(Iu,"writeFoldedLines");function Uv(e,t,r){var i,s,o,c,l,h,f,d,g=e.kind,m=e.result,y;if(y=e.input.charCodeAt(e.position),Ke(y)||ta(y)||y===35||y===38||y===42||y===33||y===124||y===62||y===39||y===34||y===37||y===64||y===96||(y===63||y===45)&&(s=e.input.charCodeAt(e.position+1),Ke(s)||r&&ta(s)))return!1;for(e.kind="scalar",e.result="",o=c=e.position,l=!1;y!==0;){if(y===58){if(s=e.input.charCodeAt(e.position+1),Ke(s)||r&&ta(s))break}else if(y===35){if(i=e.input.charCodeAt(e.position-1),Ke(i))break}else{if(e.position===e.lineStart&&Jo(e)||r&&ta(y))break;if(Zr(y))if(h=e.line,f=e.lineStart,d=e.lineIndent,ye(e,!1,-1),e.lineIndent>=t){l=!0,y=e.input.charCodeAt(e.position);continue}else{e.position=c,e.line=h,e.lineStart=f,e.lineIndent=d;break}}l&&(zn(e,o,c,!1),Iu(e,e.line-h),o=c=e.position,l=!1),bi(y)||(c=e.position+1),y=e.input.charCodeAt(++e.position)}return zn(e,o,c,!1),e.result?!0:(e.kind=g,e.result=m,!1)}w(Uv,"readPlainScalar");function Yv(e,t){var r,i,s;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=s=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(zn(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,s=e.position;else return!0;else Zr(r)?(zn(e,i,s,!0),Iu(e,ye(e,!1,t)),i=s=e.position):e.position===e.lineStart&&Jo(e)?Mt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);Mt(e,"unexpected end of the stream within a single quoted scalar")}w(Yv,"readSingleQuotedScalar");function Vv(e,t){var r,i,s,o,c,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return zn(e,r,e.position,!0),e.position++,!0;if(l===92){if(zn(e,r,e.position,!0),l=e.input.charCodeAt(++e.position),Zr(l))ye(e,!1,t);else if(l<256&&Wv[l])e.result+=Hv[l],e.position++;else if((c=Nv(l))>0){for(s=c,o=0;s>0;s--)l=e.input.charCodeAt(++e.position),(c=Iv(l))>=0?o=(o<<4)+c:Mt(e,"expected hexadecimal character");e.result+=jv(o),e.position++}else Mt(e,"unknown escape sequence");r=i=e.position}else Zr(l)?(zn(e,r,i,!0),Iu(e,ye(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Jo(e)?Mt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}Mt(e,"unexpected end of the stream within a double quoted scalar")}w(Vv,"readDoubleQuotedScalar");function Gv(e,t){var r=!0,i,s,o,c=e.tag,l,h=e.anchor,f,d,g,m,y,b=Object.create(null),C,k,S,_;if(_=e.input.charCodeAt(e.position),_===91)d=93,y=!1,l=[];else if(_===123)d=125,y=!0,l={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),_=e.input.charCodeAt(++e.position);_!==0;){if(ye(e,!0,t),_=e.input.charCodeAt(e.position),_===d)return e.position++,e.tag=c,e.anchor=h,e.kind=y?"mapping":"sequence",e.result=l,!0;r?_===44&&Mt(e,"expected the node content, but found ','"):Mt(e,"missed comma between flow collection entries"),k=C=S=null,g=m=!1,_===63&&(f=e.input.charCodeAt(e.position+1),Ke(f)&&(g=m=!0,e.position++,ye(e,!0,t))),i=e.line,s=e.lineStart,o=e.position,la(e,t,ou,!1,!0),k=e.tag,C=e.result,ye(e,!0,t),_=e.input.charCodeAt(e.position),(m||e.line===i)&&_===58&&(g=!0,_=e.input.charCodeAt(++e.position),ye(e,!0,t),la(e,t,ou,!1,!0),S=e.result),y?ea(e,l,b,k,C,S,i,s,o):g?l.push(ea(e,null,b,k,C,S,i,s,o)):l.push(C),ye(e,!0,t),_=e.input.charCodeAt(e.position),_===44?(r=!0,_=e.input.charCodeAt(++e.position)):r=!1}Mt(e,"unexpected end of the stream within a flow collection")}w(Gv,"readFlowCollection");function Xv(e,t){var r,i,s=Qf,o=!1,c=!1,l=t,h=0,f=!1,d,g;if(g=e.input.charCodeAt(e.position),g===124)i=!1;else if(g===62)i=!0;else return!1;for(e.kind="scalar",e.result="";g!==0;)if(g=e.input.charCodeAt(++e.position),g===43||g===45)Qf===s?s=g===43?My:RM:Mt(e,"repeat of a chomping mode identifier");else if((d=zv(g))>=0)d===0?Mt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?Mt(e,"repeat of an indentation width identifier"):(l=t+d-1,c=!0);else break;if(bi(g)){do g=e.input.charCodeAt(++e.position);while(bi(g));if(g===35)do g=e.input.charCodeAt(++e.position);while(!Zr(g)&&g!==0)}for(;g!==0;){for(Ou(e),e.lineIndent=0,g=e.input.charCodeAt(e.position);(!c||e.lineIndent<l)&&g===32;)e.lineIndent++,g=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>l&&(l=e.lineIndent),Zr(g)){h++;continue}if(e.lineIndent<l){s===My?e.result+=Se.repeat(`
|
|
130
|
+
`,o?1+h:h):s===Qf&&o&&(e.result+=`
|
|
131
|
+
`);break}for(i?bi(g)?(f=!0,e.result+=Se.repeat(`
|
|
132
|
+
`,o?1+h:h)):f?(f=!1,e.result+=Se.repeat(`
|
|
133
|
+
`,h+1)):h===0?o&&(e.result+=" "):e.result+=Se.repeat(`
|
|
134
|
+
`,h):e.result+=Se.repeat(`
|
|
135
|
+
`,o?1+h:h),o=!0,c=!0,h=0,r=e.position;!Zr(g)&&g!==0;)g=e.input.charCodeAt(++e.position);zn(e,r,e.position,!1)}return!0}w(Xv,"readBlockScalar");function Ad(e,t){var r,i=e.tag,s=e.anchor,o=[],c,l=!1,h;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),h=e.input.charCodeAt(e.position);h!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Mt(e,"tab characters must not be used in indentation")),!(h!==45||(c=e.input.charCodeAt(e.position+1),!Ke(c))));){if(l=!0,e.position++,ye(e,!0,-1)&&e.lineIndent<=t){o.push(null),h=e.input.charCodeAt(e.position);continue}if(r=e.line,la(e,t,Dv,!1,!0),o.push(e.result),ye(e,!0,-1),h=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&h!==0)Mt(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return l?(e.tag=i,e.anchor=s,e.kind="sequence",e.result=o,!0):!1}w(Ad,"readBlockSequence");function Qv(e,t,r){var i,s,o,c,l,h,f=e.tag,d=e.anchor,g={},m=Object.create(null),y=null,b=null,C=null,k=!1,S=!1,_;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=g),_=e.input.charCodeAt(e.position);_!==0;){if(!k&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Mt(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),o=e.line,(_===63||_===58)&&Ke(i))_===63?(k&&(ea(e,g,m,y,b,null,c,l,h),y=b=C=null),S=!0,k=!0,s=!0):k?(k=!1,s=!0):Mt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,_=i;else{if(c=e.line,l=e.lineStart,h=e.position,!la(e,r,Rv,!1,!0))break;if(e.line===o){for(_=e.input.charCodeAt(e.position);bi(_);)_=e.input.charCodeAt(++e.position);if(_===58)_=e.input.charCodeAt(++e.position),Ke(_)||Mt(e,"a whitespace character is expected after the key-value separator within a block mapping"),k&&(ea(e,g,m,y,b,null,c,l,h),y=b=C=null),S=!0,k=!1,s=!1,y=e.tag,b=e.result;else if(S)Mt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=f,e.anchor=d,!0}else if(S)Mt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=f,e.anchor=d,!0}if((e.line===o||e.lineIndent>t)&&(k&&(c=e.line,l=e.lineStart,h=e.position),la(e,t,lu,!0,s)&&(k?b=e.result:C=e.result),k||(ea(e,g,m,y,b,C,c,l,h),y=b=C=null),ye(e,!0,-1),_=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&_!==0)Mt(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return k&&ea(e,g,m,y,b,null,c,l,h),S&&(e.tag=f,e.anchor=d,e.kind="mapping",e.result=g),S}w(Qv,"readBlockMapping");function Kv(e){var t,r=!1,i=!1,s,o,c;if(c=e.input.charCodeAt(e.position),c!==33)return!1;if(e.tag!==null&&Mt(e,"duplication of a tag property"),c=e.input.charCodeAt(++e.position),c===60?(r=!0,c=e.input.charCodeAt(++e.position)):c===33?(i=!0,s="!!",c=e.input.charCodeAt(++e.position)):s="!",t=e.position,r){do c=e.input.charCodeAt(++e.position);while(c!==0&&c!==62);e.position<e.length?(o=e.input.slice(t,e.position),c=e.input.charCodeAt(++e.position)):Mt(e,"unexpected end of the stream within a verbatim tag")}else{for(;c!==0&&!Ke(c);)c===33&&(i?Mt(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(t-1,e.position+1),Pv.test(s)||Mt(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),c=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),OM.test(o)&&Mt(e,"tag suffix cannot contain flow indicator characters")}o&&!Ov.test(o)&&Mt(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{Mt(e,"tag name is malformed: "+o)}return r?e.tag=o:Ci.call(e.tagMap,s)?e.tag=e.tagMap[s]+o:s==="!"?e.tag="!"+o:s==="!!"?e.tag="tag:yaml.org,2002:"+o:Mt(e,'undeclared tag handle "'+s+'"'),!0}w(Kv,"readTagProperty");function Zv(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Mt(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Ke(r)&&!ta(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Mt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}w(Zv,"readAnchorProperty");function Jv(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&&!Ke(i)&&!ta(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&Mt(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Ci.call(e.anchorMap,r)||Mt(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],ye(e,!0,-1),!0}w(Jv,"readAlias");function la(e,t,r,i,s){var o,c,l,h=1,f=!1,d=!1,g,m,y,b,C,k;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=c=l=lu===r||Dv===r,i&&ye(e,!0,-1)&&(f=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),h===1)for(;Kv(e)||Zv(e);)ye(e,!0,-1)?(f=!0,l=o,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)):l=!1;if(l&&(l=f||s),(h===1||lu===r)&&(ou===r||Rv===r?C=t:C=t+1,k=e.position-e.lineStart,h===1?l&&(Ad(e,k)||Qv(e,k,C))||Gv(e,C)?d=!0:(c&&Xv(e,C)||Yv(e,C)||Vv(e,C)?d=!0:Jv(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&Mt(e,"alias node should not have any properties")):Uv(e,C,ou===r)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):h===0&&(d=l&&Ad(e,k))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Mt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),g=0,m=e.implicitTypes.length;g<m;g+=1)if(b=e.implicitTypes[g],b.resolve(e.result)){e.result=b.construct(e.result),e.tag=b.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Ci.call(e.typeMap[e.kind||"fallback"],e.tag))b=e.typeMap[e.kind||"fallback"][e.tag];else for(b=null,y=e.typeMap.multi[e.kind||"fallback"],g=0,m=y.length;g<m;g+=1)if(e.tag.slice(0,y[g].tag.length)===y[g].tag){b=y[g];break}b||Mt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&b.kind!==e.kind&&Mt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+b.kind+'", not "'+e.kind+'"'),b.resolve(e.result,e.tag)?(e.result=b.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Mt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||d}w(la,"composeNode");function t2(e){var t=e.position,r,i,s,o=!1,c;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(c=e.input.charCodeAt(e.position))!==0&&(ye(e,!0,-1),c=e.input.charCodeAt(e.position),!(e.lineIndent>0||c!==37));){for(o=!0,c=e.input.charCodeAt(++e.position),r=e.position;c!==0&&!Ke(c);)c=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),s=[],i.length<1&&Mt(e,"directive name must not be less than one character in length");c!==0;){for(;bi(c);)c=e.input.charCodeAt(++e.position);if(c===35){do c=e.input.charCodeAt(++e.position);while(c!==0&&!Zr(c));break}if(Zr(c))break;for(r=e.position;c!==0&&!Ke(c);)c=e.input.charCodeAt(++e.position);s.push(e.input.slice(r,e.position))}c!==0&&Ou(e),Ci.call(Ay,i)?Ay[i](e,i,s):zo(e,'unknown document directive "'+i+'"')}if(ye(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,ye(e,!0,-1)):o&&Mt(e,"directives end mark is expected"),la(e,e.lineIndent-1,lu,!1,!0),ye(e,!0,-1),e.checkLineBreaks&&PM.test(e.input.slice(t,e.position))&&zo(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Jo(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ye(e,!0,-1));return}if(e.position<e.length-1)Mt(e,"end of the stream or a document separator is expected");else return}w(t2,"readDocument");function Rp(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
136
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new qv(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,Mt(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;)t2(r);return r.documents}w(Rp,"loadDocuments");function IM(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=Rp(e,r);if(typeof t!="function")return i;for(var s=0,o=i.length;s<o;s+=1)t(i[s])}w(IM,"loadAll$1");function e2(e,t){var r=Rp(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new fr("expected a single document in the stream, but found more")}}w(e2,"load$1");var NM=e2,zM={load:NM},r2=Object.prototype.toString,n2=Object.prototype.hasOwnProperty,Dp=65279,jM=9,jo=10,WM=13,HM=32,qM=33,UM=34,Bd=35,YM=37,VM=38,GM=39,XM=42,i2=44,QM=45,cu=58,KM=61,ZM=62,JM=63,tA=64,a2=91,s2=93,eA=96,o2=123,rA=124,l2=125,Ye={};Ye[0]="\\0";Ye[7]="\\a";Ye[8]="\\b";Ye[9]="\\t";Ye[10]="\\n";Ye[11]="\\v";Ye[12]="\\f";Ye[13]="\\r";Ye[27]="\\e";Ye[34]='\\"';Ye[92]="\\\\";Ye[133]="\\N";Ye[160]="\\_";Ye[8232]="\\L";Ye[8233]="\\P";var nA=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],iA=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function c2(e,t){var r,i,s,o,c,l,h;if(t===null)return{};for(r={},i=Object.keys(t),s=0,o=i.length;s<o;s+=1)c=i[s],l=String(t[c]),c.slice(0,2)==="!!"&&(c="tag:yaml.org,2002:"+c.slice(2)),h=e.compiledTypeMap.fallback[c],h&&n2.call(h.styleAliases,l)&&(l=h.styleAliases[l]),r[c]=l;return r}w(c2,"compileStyleMap");function u2(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 fr("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Se.repeat("0",i-t.length)+t}w(u2,"encodeHex");var aA=1,Wo=2;function h2(e){this.schema=e.schema||Fv,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Se.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=c2(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==='"'?Wo:aA,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}w(h2,"State");function $d(e,t){for(var r=Se.repeat(" ",t),i=0,s=-1,o="",c,l=e.length;i<l;)s=e.indexOf(`
|
|
137
|
+
`,i),s===-1?(c=e.slice(i),i=l):(c=e.slice(i,s+1),i=s+1),c.length&&c!==`
|
|
138
|
+
`&&(o+=r),o+=c;return o}w($d,"indentString");function uu(e,t){return`
|
|
139
|
+
`+Se.repeat(" ",e.indent*t)}w(uu,"generateNextLine");function f2(e,t){var r,i,s;for(r=0,i=e.implicitTypes.length;r<i;r+=1)if(s=e.implicitTypes[r],s.resolve(t))return!0;return!1}w(f2,"testImplicitResolving");function Ho(e){return e===HM||e===jM}w(Ho,"isWhitespace");function fs(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Dp||65536<=e&&e<=1114111}w(fs,"isPrintable");function Fd(e){return fs(e)&&e!==Dp&&e!==WM&&e!==jo}w(Fd,"isNsCharOrWhitespace");function Rd(e,t,r){var i=Fd(e),s=i&&!Ho(e);return(r?i:i&&e!==i2&&e!==a2&&e!==s2&&e!==o2&&e!==l2)&&e!==Bd&&!(t===cu&&!s)||Fd(t)&&!Ho(t)&&e===Bd||t===cu&&s}w(Rd,"isPlainSafe");function d2(e){return fs(e)&&e!==Dp&&!Ho(e)&&e!==QM&&e!==JM&&e!==cu&&e!==i2&&e!==a2&&e!==s2&&e!==o2&&e!==l2&&e!==Bd&&e!==VM&&e!==XM&&e!==qM&&e!==rA&&e!==KM&&e!==ZM&&e!==GM&&e!==UM&&e!==YM&&e!==tA&&e!==eA}w(d2,"isPlainSafeFirst");function p2(e){return!Ho(e)&&e!==cu}w(p2,"isPlainSafeLast");function Ga(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}w(Ga,"codePointAt");function Pp(e){var t=/^\n* /;return t.test(e)}w(Pp,"needIndentIndicator");var g2=1,Dd=2,m2=3,y2=4,Ya=5;function x2(e,t,r,i,s,o,c,l){var h,f=0,d=null,g=!1,m=!1,y=i!==-1,b=-1,C=d2(Ga(e,0))&&p2(Ga(e,e.length-1));if(t||c)for(h=0;h<e.length;f>=65536?h+=2:h++){if(f=Ga(e,h),!fs(f))return Ya;C=C&&Rd(f,d,l),d=f}else{for(h=0;h<e.length;f>=65536?h+=2:h++){if(f=Ga(e,h),f===jo)g=!0,y&&(m=m||h-b-1>i&&e[b+1]!==" ",b=h);else if(!fs(f))return Ya;C=C&&Rd(f,d,l),d=f}m=m||y&&h-b-1>i&&e[b+1]!==" "}return!g&&!m?C&&!c&&!s(e)?g2:o===Wo?Ya:Dd:r>9&&Pp(e)?Ya:c?o===Wo?Ya:Dd:m?y2:m2}w(x2,"chooseScalarStyle");function v2(e,t,r,i,s){e.dump=(function(){if(t.length===0)return e.quotingType===Wo?'""':"''";if(!e.noCompatMode&&(nA.indexOf(t)!==-1||iA.test(t)))return e.quotingType===Wo?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,r),c=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),l=i||e.flowLevel>-1&&r>=e.flowLevel;function h(f){return f2(e,f)}switch(w(h,"testAmbiguity"),x2(t,l,e.indent,c,h,e.quotingType,e.forceQuotes&&!i,s)){case g2:return t;case Dd:return"'"+t.replace(/'/g,"''")+"'";case m2:return"|"+Pd(t,e.indent)+Od($d(t,o));case y2:return">"+Pd(t,e.indent)+Od($d(b2(t,c),o));case Ya:return'"'+w2(t)+'"';default:throw new fr("impossible error: invalid scalar style")}})()}w(v2,"writeScalar");function Pd(e,t){var r=Pp(e)?String(t):"",i=e[e.length-1]===`
|
|
140
|
+
`,s=i&&(e[e.length-2]===`
|
|
141
|
+
`||e===`
|
|
142
|
+
`),o=s?"+":i?"":"-";return r+o+`
|
|
143
|
+
`}w(Pd,"blockHeader");function Od(e){return e[e.length-1]===`
|
|
144
|
+
`?e.slice(0,-1):e}w(Od,"dropEndingNewline");function b2(e,t){for(var r=/(\n+)([^\n]*)/g,i=(function(){var f=e.indexOf(`
|
|
145
|
+
`);return f=f!==-1?f:e.length,r.lastIndex=f,Id(e.slice(0,f),t)})(),s=e[0]===`
|
|
146
|
+
`||e[0]===" ",o,c;c=r.exec(e);){var l=c[1],h=c[2];o=h[0]===" ",i+=l+(!s&&!o&&h!==""?`
|
|
147
|
+
`:"")+Id(h,t),s=o}return i}w(b2,"foldString");function Id(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,s=0,o,c=0,l=0,h="";i=r.exec(e);)l=i.index,l-s>t&&(o=c>s?c:l,h+=`
|
|
148
|
+
`+e.slice(s,o),s=o+1),c=l;return h+=`
|
|
149
|
+
`,e.length-s>t&&c>s?h+=e.slice(s,c)+`
|
|
150
|
+
`+e.slice(c+1):h+=e.slice(s),h.slice(1)}w(Id,"foldLine");function w2(e){for(var t="",r=0,i,s=0;s<e.length;r>=65536?s+=2:s++)r=Ga(e,s),i=Ye[r],!i&&fs(r)?(t+=e[s],r>=65536&&(t+=e[s+1])):t+=i||u2(r);return t}w(w2,"escapeString");function C2(e,t,r){var i="",s=e.tag,o,c,l;for(o=0,c=r.length;o<c;o+=1)l=r[o],e.replacer&&(l=e.replacer.call(r,String(o),l)),(xn(e,t,l,!1,!1)||typeof l>"u"&&xn(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=s,e.dump="["+i+"]"}w(C2,"writeFlowSequence");function Nd(e,t,r,i){var s="",o=e.tag,c,l,h;for(c=0,l=r.length;c<l;c+=1)h=r[c],e.replacer&&(h=e.replacer.call(r,String(c),h)),(xn(e,t+1,h,!0,!0,!1,!0)||typeof h>"u"&&xn(e,t+1,null,!0,!0,!1,!0))&&((!i||s!=="")&&(s+=uu(e,t)),e.dump&&jo===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=o,e.dump=s||"[]"}w(Nd,"writeBlockSequence");function k2(e,t,r){var i="",s=e.tag,o=Object.keys(r),c,l,h,f,d;for(c=0,l=o.length;c<l;c+=1)d="",i!==""&&(d+=", "),e.condenseFlow&&(d+='"'),h=o[c],f=r[h],e.replacer&&(f=e.replacer.call(r,h,f)),xn(e,t,h,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),xn(e,t,f,!1,!1)&&(d+=e.dump,i+=d));e.tag=s,e.dump="{"+i+"}"}w(k2,"writeFlowMapping");function _2(e,t,r,i){var s="",o=e.tag,c=Object.keys(r),l,h,f,d,g,m;if(e.sortKeys===!0)c.sort();else if(typeof e.sortKeys=="function")c.sort(e.sortKeys);else if(e.sortKeys)throw new fr("sortKeys must be a boolean or a function");for(l=0,h=c.length;l<h;l+=1)m="",(!i||s!=="")&&(m+=uu(e,t)),f=c[l],d=r[f],e.replacer&&(d=e.replacer.call(r,f,d)),xn(e,t+1,f,!0,!0,!0)&&(g=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,g&&(e.dump&&jo===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,g&&(m+=uu(e,t)),xn(e,t+1,d,!0,g)&&(e.dump&&jo===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,s+=m));e.tag=o,e.dump=s||"{}"}w(_2,"writeBlockMapping");function zd(e,t,r){var i,s,o,c,l,h;for(s=r?e.explicitTypes:e.implicitTypes,o=0,c=s.length;o<c;o+=1)if(l=s[o],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof t=="object"&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(r?l.multi&&l.representName?e.tag=l.representName(t):e.tag=l.tag:e.tag="?",l.represent){if(h=e.styleMap[l.tag]||l.defaultStyle,r2.call(l.represent)==="[object Function]")i=l.represent(t,h);else if(n2.call(l.represent,h))i=l.represent[h](t,h);else throw new fr("!<"+l.tag+'> tag resolver accepts not "'+h+'" style');e.dump=i}return!0}return!1}w(zd,"detectType");function xn(e,t,r,i,s,o,c){e.tag=null,e.dump=r,zd(e,r,!1)||zd(e,r,!0);var l=r2.call(e.dump),h=i,f;i&&(i=e.flowLevel<0||e.flowLevel>t);var d=l==="[object Object]"||l==="[object Array]",g,m;if(d&&(g=e.duplicates.indexOf(r),m=g!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(s=!1),m&&e.usedDuplicates[g])e.dump="*ref_"+g;else{if(d&&m&&!e.usedDuplicates[g]&&(e.usedDuplicates[g]=!0),l==="[object Object]")i&&Object.keys(e.dump).length!==0?(_2(e,t,e.dump,s),m&&(e.dump="&ref_"+g+e.dump)):(k2(e,t,e.dump),m&&(e.dump="&ref_"+g+" "+e.dump));else if(l==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!c&&t>0?Nd(e,t-1,e.dump,s):Nd(e,t,e.dump,s),m&&(e.dump="&ref_"+g+e.dump)):(C2(e,t,e.dump),m&&(e.dump="&ref_"+g+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&v2(e,e.dump,t,o,h);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new fr("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}w(xn,"writeNode");function S2(e,t){var r=[],i=[],s,o;for(hu(e,r,i),s=0,o=i.length;s<o;s+=1)t.duplicates.push(r[i[s]]);t.usedDuplicates=new Array(o)}w(S2,"getDuplicateReferences");function hu(e,t,r){var i,s,o;if(e!==null&&typeof e=="object")if(s=t.indexOf(e),s!==-1)r.indexOf(s)===-1&&r.push(s);else if(t.push(e),Array.isArray(e))for(s=0,o=e.length;s<o;s+=1)hu(e[s],t,r);else for(i=Object.keys(e),s=0,o=i.length;s<o;s+=1)hu(e[i[s]],t,r)}w(hu,"inspectNode");function sA(e,t){t=t||{};var r=new h2(t);r.noRefs||S2(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),xn(r,0,i,!0,!0)?r.dump+`
|
|
151
|
+
`:""}w(sA,"dump$1");function oA(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.")}}w(oA,"renamed");var lA=mv,cA=zM.load;/*! Bundled license information:
|
|
152
|
+
|
|
153
|
+
js-yaml/dist/js-yaml.mjs:
|
|
154
|
+
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
|
|
155
|
+
*/var We={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},By={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function So(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=le(e),t=le(t);const[r,i]=[e.x,e.y],[s,o]=[t.x,t.y],c=s-r,l=o-i;return{angle:Math.atan(l/c),deltaX:c,deltaY:l}}w(So,"calculateDeltaAndAngle");var le=w(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),uA=w(e=>({x:w(function(t,r,i){let s=0;const o=le(i[0]).x<le(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(We,e.arrowTypeStart)){const{angle:y,deltaX:b}=So(i[0],i[1]);s=We[e.arrowTypeStart]*Math.cos(y)*(b>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(We,e.arrowTypeEnd)){const{angle:y,deltaX:b}=So(i[i.length-1],i[i.length-2]);s=We[e.arrowTypeEnd]*Math.cos(y)*(b>=0?1:-1)}const c=Math.abs(le(t).x-le(i[i.length-1]).x),l=Math.abs(le(t).y-le(i[i.length-1]).y),h=Math.abs(le(t).x-le(i[0]).x),f=Math.abs(le(t).y-le(i[0]).y),d=We[e.arrowTypeStart],g=We[e.arrowTypeEnd],m=1;if(c<g&&c>0&&l<g){let y=g+m-c;y*=o==="right"?-1:1,s-=y}if(h<d&&h>0&&f<d){let y=d+m-h;y*=o==="right"?-1:1,s+=y}return le(t).x+s},"x"),y:w(function(t,r,i){let s=0;const o=le(i[0]).y<le(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(We,e.arrowTypeStart)){const{angle:y,deltaY:b}=So(i[0],i[1]);s=We[e.arrowTypeStart]*Math.abs(Math.sin(y))*(b>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(We,e.arrowTypeEnd)){const{angle:y,deltaY:b}=So(i[i.length-1],i[i.length-2]);s=We[e.arrowTypeEnd]*Math.abs(Math.sin(y))*(b>=0?1:-1)}const c=Math.abs(le(t).y-le(i[i.length-1]).y),l=Math.abs(le(t).x-le(i[i.length-1]).x),h=Math.abs(le(t).y-le(i[0]).y),f=Math.abs(le(t).x-le(i[0]).x),d=We[e.arrowTypeStart],g=We[e.arrowTypeEnd],m=1;if(c<g&&c>0&&l<g){let y=g+m-c;y*=o==="up"?-1:1,s-=y}if(h<d&&h>0&&f<d){let y=d+m-h;y*=o==="up"?-1:1,s+=y}return le(t).y+s},"y")}),"getLineFunctionsWithOffset"),Op=w(({flowchart:e})=>{var s,o;const t=((s=e==null?void 0:e.subGraphTitleMargin)==null?void 0:s.top)??0,r=((o=e==null?void 0:e.subGraphTitleMargin)==null?void 0:o.bottom)??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins"),hA=w(e=>{const{handDrawnSeed:t}=Kt();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),ms=w(e=>{const t=fA([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),fA=w(e=>{const t=new Map;return e.forEach(r=>{const[i,s]=r.split(":");t.set(i.trim(),s==null?void 0:s.trim())}),t},"styles2Map"),T2=w(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"),Ct=w(e=>{const{stylesArray:t}=ms(e),r=[],i=[],s=[],o=[];return t.forEach(c=>{const l=c[0];T2(l)?r.push(c.join(":")+" !important"):(i.push(c.join(":")+" !important"),l.includes("stroke")&&s.push(c.join(":")+" !important"),l==="fill"&&o.push(c.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:s,backgroundStyles:o}},"styles2String"),wt=w((e,t)=>{var h;const{themeVariables:r,handDrawnSeed:i}=Kt(),{nodeBorder:s,mainBkg:o}=r,{stylesMap:c}=ms(e);return Object.assign({roughness:.7,fill:c.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:c.get("stroke")||s,seed:i,strokeWidth:((h=c.get("stroke-width"))==null?void 0:h.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:dA(c.get("stroke-dasharray"))},t)},"userNodeOverrides"),dA=w(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const s=isNaN(t[0])?0:t[0];return[s,s]}const r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray"),wc={},ke={},$y;function pA(){return $y||($y=1,Object.defineProperty(ke,"__esModule",{value:!0}),ke.BLANK_URL=ke.relativeFirstCharacters=ke.whitespaceEscapeCharsRegex=ke.urlSchemeRegex=ke.ctrlCharactersRegex=ke.htmlCtrlEntityRegex=ke.htmlEntitiesRegex=ke.invalidProtocolRegex=void 0,ke.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,ke.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,ke.htmlCtrlEntityRegex=/&(newline|tab);/gi,ke.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,ke.urlSchemeRegex=/^.+(:|:)/gim,ke.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,ke.relativeFirstCharacters=[".","/"],ke.BLANK_URL="about:blank"),ke}var Fy;function gA(){if(Fy)return wc;Fy=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.sanitizeUrl=o;var e=pA();function t(c){return e.relativeFirstCharacters.indexOf(c[0])>-1}function r(c){var l=c.replace(e.ctrlCharactersRegex,"");return l.replace(e.htmlEntitiesRegex,function(h,f){return String.fromCharCode(f)})}function i(c){return URL.canParse(c)}function s(c){try{return decodeURIComponent(c)}catch{return c}}function o(c){if(!c)return e.BLANK_URL;var l,h=s(c.trim());do h=r(h).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim(),h=s(h),l=h.match(e.ctrlCharactersRegex)||h.match(e.htmlEntitiesRegex)||h.match(e.htmlCtrlEntityRegex)||h.match(e.whitespaceEscapeCharsRegex);while(l&&l.length>0);var f=h;if(!f)return e.BLANK_URL;if(t(f))return f;var d=f.trimStart(),g=d.match(e.urlSchemeRegex);if(!g)return f;var m=g[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(m))return e.BLANK_URL;var y=d.replace(/\\/g,"/");if(m==="mailto:"||m.includes("://"))return y;if(m==="http:"||m==="https:"){if(!i(y))return e.BLANK_URL;var b=new URL(y);return b.protocol=b.protocol.toLowerCase(),b.hostname=b.hostname.toLowerCase(),b.toString()}return y}return wc}var mA=gA(),E2=typeof global=="object"&&global&&global.Object===Object&&global,yA=typeof self=="object"&&self&&self.Object===Object&&self,bn=E2||yA||Function("return this")(),fu=bn.Symbol,L2=Object.prototype,xA=L2.hasOwnProperty,vA=L2.toString,mo=fu?fu.toStringTag:void 0;function bA(e){var t=xA.call(e,mo),r=e[mo];try{e[mo]=void 0;var i=!0}catch{}var s=vA.call(e);return i&&(t?e[mo]=r:delete e[mo]),s}var wA=Object.prototype,CA=wA.toString;function kA(e){return CA.call(e)}var _A="[object Null]",SA="[object Undefined]",Ry=fu?fu.toStringTag:void 0;function ys(e){return e==null?e===void 0?SA:_A:Ry&&Ry in Object(e)?bA(e):kA(e)}function fa(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var TA="[object AsyncFunction]",EA="[object Function]",LA="[object GeneratorFunction]",MA="[object Proxy]";function Ip(e){if(!fa(e))return!1;var t=ys(e);return t==EA||t==LA||t==TA||t==MA}var Kf=bn["__core-js_shared__"],Dy=(function(){var e=/[^.]+$/.exec(Kf&&Kf.keys&&Kf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function AA(e){return!!Dy&&Dy in e}var BA=Function.prototype,$A=BA.toString;function da(e){if(e!=null){try{return $A.call(e)}catch{}try{return e+""}catch{}}return""}var FA=/[\\^$.*+?()[\]{}|]/g,RA=/^\[object .+?Constructor\]$/,DA=Function.prototype,PA=Object.prototype,OA=DA.toString,IA=PA.hasOwnProperty,NA=RegExp("^"+OA.call(IA).replace(FA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zA(e){if(!fa(e)||AA(e))return!1;var t=Ip(e)?NA:RA;return t.test(da(e))}function jA(e,t){return e==null?void 0:e[t]}function pa(e,t){var r=jA(e,t);return zA(r)?r:void 0}var qo=pa(Object,"create");function WA(){this.__data__=qo?qo(null):{},this.size=0}function HA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qA="__lodash_hash_undefined__",UA=Object.prototype,YA=UA.hasOwnProperty;function VA(e){var t=this.__data__;if(qo){var r=t[e];return r===qA?void 0:r}return YA.call(t,e)?t[e]:void 0}var GA=Object.prototype,XA=GA.hasOwnProperty;function QA(e){var t=this.__data__;return qo?t[e]!==void 0:XA.call(t,e)}var KA="__lodash_hash_undefined__";function ZA(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=qo&&t===void 0?KA:t,this}function ca(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])}}ca.prototype.clear=WA;ca.prototype.delete=HA;ca.prototype.get=VA;ca.prototype.has=QA;ca.prototype.set=ZA;function JA(){this.__data__=[],this.size=0}function Nu(e,t){return e===t||e!==e&&t!==t}function zu(e,t){for(var r=e.length;r--;)if(Nu(e[r][0],t))return r;return-1}var tB=Array.prototype,eB=tB.splice;function rB(e){var t=this.__data__,r=zu(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():eB.call(t,r,1),--this.size,!0}function nB(e){var t=this.__data__,r=zu(t,e);return r<0?void 0:t[r][1]}function iB(e){return zu(this.__data__,e)>-1}function aB(e,t){var r=this.__data__,i=zu(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}function Hn(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])}}Hn.prototype.clear=JA;Hn.prototype.delete=rB;Hn.prototype.get=nB;Hn.prototype.has=iB;Hn.prototype.set=aB;var Uo=pa(bn,"Map");function sB(){this.size=0,this.__data__={hash:new ca,map:new(Uo||Hn),string:new ca}}function oB(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ju(e,t){var r=e.__data__;return oB(t)?r[typeof t=="string"?"string":"hash"]:r.map}function lB(e){var t=ju(this,e).delete(e);return this.size-=t?1:0,t}function cB(e){return ju(this,e).get(e)}function uB(e){return ju(this,e).has(e)}function hB(e,t){var r=ju(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}function Si(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])}}Si.prototype.clear=sB;Si.prototype.delete=lB;Si.prototype.get=cB;Si.prototype.has=uB;Si.prototype.set=hB;var fB="Expected a function";function tl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(fB);var r=function(){var i=arguments,s=t?t.apply(this,i):i[0],o=r.cache;if(o.has(s))return o.get(s);var c=e.apply(this,i);return r.cache=o.set(s,c)||o,c};return r.cache=new(tl.Cache||Si),r}tl.Cache=Si;function dB(){this.__data__=new Hn,this.size=0}function pB(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function gB(e){return this.__data__.get(e)}function mB(e){return this.__data__.has(e)}var yB=200;function xB(e,t){var r=this.__data__;if(r instanceof Hn){var i=r.__data__;if(!Uo||i.length<yB-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new Si(i)}return r.set(e,t),this.size=r.size,this}function xs(e){var t=this.__data__=new Hn(e);this.size=t.size}xs.prototype.clear=dB;xs.prototype.delete=pB;xs.prototype.get=gB;xs.prototype.has=mB;xs.prototype.set=xB;var du=(function(){try{var e=pa(Object,"defineProperty");return e({},"",{}),e}catch{}})();function Np(e,t,r){t=="__proto__"&&du?du(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function jd(e,t,r){(r!==void 0&&!Nu(e[t],r)||r===void 0&&!(t in e))&&Np(e,t,r)}function vB(e){return function(t,r,i){for(var s=-1,o=Object(t),c=i(t),l=c.length;l--;){var h=c[++s];if(r(o[h],h,o)===!1)break}return t}}var bB=vB(),M2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Py=M2&&typeof module=="object"&&module&&!module.nodeType&&module,wB=Py&&Py.exports===M2,Oy=wB?bn.Buffer:void 0,Iy=Oy?Oy.allocUnsafe:void 0;function CB(e,t){if(t)return e.slice();var r=e.length,i=Iy?Iy(r):new e.constructor(r);return e.copy(i),i}var Ny=bn.Uint8Array;function kB(e){var t=new e.constructor(e.byteLength);return new Ny(t).set(new Ny(e)),t}function _B(e,t){var r=t?kB(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function SB(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var zy=Object.create,TB=(function(){function e(){}return function(t){if(!fa(t))return{};if(zy)return zy(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function A2(e,t){return function(r){return e(t(r))}}var B2=A2(Object.getPrototypeOf,Object),EB=Object.prototype;function Wu(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||EB;return e===r}function LB(e){return typeof e.constructor=="function"&&!Wu(e)?TB(B2(e)):{}}function el(e){return e!=null&&typeof e=="object"}var MB="[object Arguments]";function jy(e){return el(e)&&ys(e)==MB}var $2=Object.prototype,AB=$2.hasOwnProperty,BB=$2.propertyIsEnumerable,pu=jy((function(){return arguments})())?jy:function(e){return el(e)&&AB.call(e,"callee")&&!BB.call(e,"callee")},gu=Array.isArray,$B=9007199254740991;function F2(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=$B}function Hu(e){return e!=null&&F2(e.length)&&!Ip(e)}function FB(e){return el(e)&&Hu(e)}function RB(){return!1}var R2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Wy=R2&&typeof module=="object"&&module&&!module.nodeType&&module,DB=Wy&&Wy.exports===R2,Hy=DB?bn.Buffer:void 0,PB=Hy?Hy.isBuffer:void 0,zp=PB||RB,OB="[object Object]",IB=Function.prototype,NB=Object.prototype,D2=IB.toString,zB=NB.hasOwnProperty,jB=D2.call(Object);function WB(e){if(!el(e)||ys(e)!=OB)return!1;var t=B2(e);if(t===null)return!0;var r=zB.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&D2.call(r)==jB}var HB="[object Arguments]",qB="[object Array]",UB="[object Boolean]",YB="[object Date]",VB="[object Error]",GB="[object Function]",XB="[object Map]",QB="[object Number]",KB="[object Object]",ZB="[object RegExp]",JB="[object Set]",t5="[object String]",e5="[object WeakMap]",r5="[object ArrayBuffer]",n5="[object DataView]",i5="[object Float32Array]",a5="[object Float64Array]",s5="[object Int8Array]",o5="[object Int16Array]",l5="[object Int32Array]",c5="[object Uint8Array]",u5="[object Uint8ClampedArray]",h5="[object Uint16Array]",f5="[object Uint32Array]",se={};se[i5]=se[a5]=se[s5]=se[o5]=se[l5]=se[c5]=se[u5]=se[h5]=se[f5]=!0;se[HB]=se[qB]=se[r5]=se[UB]=se[n5]=se[YB]=se[VB]=se[GB]=se[XB]=se[QB]=se[KB]=se[ZB]=se[JB]=se[t5]=se[e5]=!1;function d5(e){return el(e)&&F2(e.length)&&!!se[ys(e)]}function p5(e){return function(t){return e(t)}}var P2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ro=P2&&typeof module=="object"&&module&&!module.nodeType&&module,g5=Ro&&Ro.exports===P2,Zf=g5&&E2.process,qy=(function(){try{var e=Ro&&Ro.require&&Ro.require("util").types;return e||Zf&&Zf.binding&&Zf.binding("util")}catch{}})(),Uy=qy&&qy.isTypedArray,jp=Uy?p5(Uy):d5;function Wd(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var m5=Object.prototype,y5=m5.hasOwnProperty;function x5(e,t,r){var i=e[t];(!(y5.call(e,t)&&Nu(i,r))||r===void 0&&!(t in e))&&Np(e,t,r)}function v5(e,t,r,i){var s=!r;r||(r={});for(var o=-1,c=t.length;++o<c;){var l=t[o],h=void 0;h===void 0&&(h=e[l]),s?Np(r,l,h):x5(r,l,h)}return r}function b5(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var w5=9007199254740991,C5=/^(?:0|[1-9]\d*)$/;function O2(e,t){var r=typeof e;return t=t??w5,!!t&&(r=="number"||r!="symbol"&&C5.test(e))&&e>-1&&e%1==0&&e<t}var k5=Object.prototype,_5=k5.hasOwnProperty;function S5(e,t){var r=gu(e),i=!r&&pu(e),s=!r&&!i&&zp(e),o=!r&&!i&&!s&&jp(e),c=r||i||s||o,l=c?b5(e.length,String):[],h=l.length;for(var f in e)(t||_5.call(e,f))&&!(c&&(f=="length"||s&&(f=="offset"||f=="parent")||o&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||O2(f,h)))&&l.push(f);return l}function T5(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var E5=Object.prototype,L5=E5.hasOwnProperty;function M5(e){if(!fa(e))return T5(e);var t=Wu(e),r=[];for(var i in e)i=="constructor"&&(t||!L5.call(e,i))||r.push(i);return r}function I2(e){return Hu(e)?S5(e,!0):M5(e)}function A5(e){return v5(e,I2(e))}function B5(e,t,r,i,s,o,c){var l=Wd(e,r),h=Wd(t,r),f=c.get(h);if(f){jd(e,r,f);return}var d=o?o(l,h,r+"",e,t,c):void 0,g=d===void 0;if(g){var m=gu(h),y=!m&&zp(h),b=!m&&!y&&jp(h);d=h,m||y||b?gu(l)?d=l:FB(l)?d=SB(l):y?(g=!1,d=CB(h,!0)):b?(g=!1,d=_B(h,!0)):d=[]:WB(h)||pu(h)?(d=l,pu(l)?d=A5(l):(!fa(l)||Ip(l))&&(d=LB(h))):g=!1}g&&(c.set(h,d),s(d,h,i,o,c),c.delete(h)),jd(e,r,d)}function N2(e,t,r,i,s){e!==t&&bB(t,function(o,c){if(s||(s=new xs),fa(o))B5(e,t,c,r,N2,i,s);else{var l=i?i(Wd(e,c),o,c+"",e,t,s):void 0;l===void 0&&(l=o),jd(e,c,l)}},I2)}function z2(e){return e}function $5(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 Yy=Math.max;function F5(e,t,r){return t=Yy(t===void 0?e.length-1:t,0),function(){for(var i=arguments,s=-1,o=Yy(i.length-t,0),c=Array(o);++s<o;)c[s]=i[t+s];s=-1;for(var l=Array(t+1);++s<t;)l[s]=i[s];return l[t]=r(c),$5(e,this,l)}}function R5(e){return function(){return e}}var D5=du?function(e,t){return du(e,"toString",{configurable:!0,enumerable:!1,value:R5(t),writable:!0})}:z2,P5=800,O5=16,I5=Date.now;function N5(e){var t=0,r=0;return function(){var i=I5(),s=O5-(i-r);if(r=i,s>0){if(++t>=P5)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var z5=N5(D5);function j5(e,t){return z5(F5(e,t,z2),e+"")}function W5(e,t,r){if(!fa(r))return!1;var i=typeof t;return(i=="number"?Hu(r)&&O2(t,r.length):i=="string"&&t in r)?Nu(r[t],e):!1}function H5(e){return j5(function(t,r){var i=-1,s=r.length,o=s>1?r[s-1]:void 0,c=s>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(s--,o):void 0,c&&W5(r[0],r[1],c)&&(o=s<3?void 0:o,s=1),t=Object(t);++i<s;){var l=r[i];l&&e(t,l,i,o)}return t})}var q5=H5(function(e,t,r){N2(e,t,r)}),U5="",Y5={curveBasis:Oc,curveBasisClosed:G3,curveBasisOpen:X3,curveBumpX:S1,curveBumpY:T1,curveBundle:Q3,curveCardinalClosed:K3,curveCardinalOpen:Z3,curveCardinal:A1,curveCatmullRomClosed:J3,curveCatmullRomOpen:tM,curveCatmullRom:$1,curveLinear:ru,curveLinearClosed:eM,curveMonotoneX:I1,curveMonotoneY:N1,curveNatural:j1,curveStep:W1,curveStepAfter:q1,curveStepBefore:H1},V5=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,G5=w(function(e,t){const r=j2(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const c=r.map(l=>l.args);Uc(c),i=_e(i,[...c])}else i=r.args;if(!i)return;let s=hp(e,t);const o="config";return i[o]!==void 0&&(s==="flowchart-v2"&&(s="flowchart"),i[s]=i[o],delete i[o]),i},"detectInit"),j2=w(function(e,t=null){var r,i;try{const s=new RegExp(`[%]{2}(?![{]${V5.source})(?=[}][%]{2}).*
|
|
156
|
+
`,"ig");e=e.trim().replace(s,"").replace(/'/gm,'"'),J.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let o;const c=[];for(;(o=$o.exec(e))!==null;)if(o.index===$o.lastIndex&&$o.lastIndex++,o&&!t||t&&((r=o[1])!=null&&r.match(t))||t&&((i=o[2])!=null&&i.match(t))){const l=o[1]?o[1]:o[2],h=o[3]?o[3].trim():o[4]?JSON.parse(o[4].trim()):null;c.push({type:l,args:h})}return c.length===0?{type:e,args:null}:c.length===1?c[0]:c}catch(s){return J.error(`ERROR: ${s.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),X5=w(function(e){return e.replace($o,"")},"removeDirectives"),Q5=w(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function Wp(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return Y5[r]??t}w(Wp,"interpolateToCurve");function W2(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?mA.sanitizeUrl(r):r}w(W2,"formatUrl");var K5=w((e,...t)=>{const r=e.split("."),i=r.length-1,s=r[i];let o=window;for(let c=0;c<i;c++)if(o=o[r[c]],!o){J.error(`Function name: ${e} not found in window`);return}o[s](...t)},"runFunc");function Hp(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}w(Hp,"distance");function H2(e){let t,r=0;e.forEach(s=>{r+=Hp(s,t),t=s});const i=r/2;return qp(e,i)}w(H2,"traverseEdge");function q2(e){return e.length===1?e[0]:H2(e)}w(q2,"calcLabelPosition");var Vy=w((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),qp=w((e,t)=>{let r,i=t;for(const s of e){if(r){const o=Hp(s,r);if(o===0)return r;if(o<i)i-=o;else{const c=i/o;if(c<=0)return r;if(c>=1)return{x:s.x,y:s.y};if(c>0&&c<1)return{x:Vy((1-c)*r.x+c*s.x,5),y:Vy((1-c)*r.y+c*s.y,5)}}}r=s}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Z5=w((e,t,r)=>{J.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const s=qp(t,25),o=e?10:5,c=Math.atan2(t[0].y-s.y,t[0].x-s.x),l={x:0,y:0};return l.x=Math.sin(c)*o+(t[0].x+s.x)/2,l.y=-Math.cos(c)*o+(t[0].y+s.y)/2,l},"calcCardinalityPosition");function U2(e,t,r){const i=structuredClone(r);J.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const s=25+e,o=qp(i,s),c=10+e*.5,l=Math.atan2(i[0].y-o.y,i[0].x-o.x),h={x:0,y:0};return t==="start_left"?(h.x=Math.sin(l+Math.PI)*c+(i[0].x+o.x)/2,h.y=-Math.cos(l+Math.PI)*c+(i[0].y+o.y)/2):t==="end_right"?(h.x=Math.sin(l-Math.PI)*c+(i[0].x+o.x)/2-5,h.y=-Math.cos(l-Math.PI)*c+(i[0].y+o.y)/2-5):t==="end_left"?(h.x=Math.sin(l)*c+(i[0].x+o.x)/2-5,h.y=-Math.cos(l)*c+(i[0].y+o.y)/2-5):(h.x=Math.sin(l)*c+(i[0].x+o.x)/2,h.y=-Math.cos(l)*c+(i[0].y+o.y)/2),h}w(U2,"calcTerminalLabelPosition");function Y2(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}}w(Y2,"getStylesFromArray");var Gy=0,J5=w(()=>(Gy++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Gy),"generateId");function V2(e){let t="";const r="0123456789abcdef",i=r.length;for(let s=0;s<e;s++)t+=r.charAt(Math.floor(Math.random()*i));return t}w(V2,"makeRandomHex");var t$=w(e=>V2(e.length),"random"),e$=w(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"),r$=w(function(e,t){const r=t.text.replace(gs.lineBreakRegex," "),[,i]=qu(t.fontSize),s=e.append("text");s.attr("x",t.x),s.attr("y",t.y),s.style("text-anchor",t.anchor),s.style("font-family",t.fontFamily),s.style("font-size",i),s.style("font-weight",t.fontWeight),s.attr("fill",t.fill),t.class!==void 0&&s.attr("class",t.class);const o=s.append("tspan");return o.attr("x",t.x+t.textMargin*2),o.attr("fill",t.fill),o.text(r),s},"drawSimpleText"),n$=tl((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),gs.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),s=[];let o="";return i.forEach((c,l)=>{const h=Wn(`${c} `,r),f=Wn(o,r);if(h>t){const{hyphenatedStrings:m,remainingWord:y}=i$(c,t,"-",r);s.push(o,...m),o=y}else f+h>=t?(s.push(o),o=c):o=[o,c].filter(Boolean).join(" ");l+1===i.length&&s.push(o)}),s.filter(c=>c!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),i$=tl((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const s=[...e],o=[];let c="";return s.forEach((l,h)=>{const f=`${c}${l}`;if(Wn(f,i)>=t){const g=h+1,m=s.length===g,y=`${f}${r}`;o.push(m?f:y),c=""}else c=f}),{hyphenatedStrings:o,remainingWord:c}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function G2(e,t){return Up(e,t).height}w(G2,"calculateTextHeight");function Wn(e,t){return Up(e,t).width}w(Wn,"calculateTextWidth");var Up=tl((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:s=400}=t;if(!e)return{width:0,height:0};const[,o]=qu(r),c=["sans-serif",i],l=e.split(gs.lineBreakRegex),h=[],f=Yt("body");if(!f.remove)return{width:0,height:0,lineHeight:0};const d=f.append("svg");for(const m of c){let y=0;const b={width:0,height:0,lineHeight:0};for(const C of l){const k=e$();k.text=C||U5;const S=r$(d,k).style("font-size",o).style("font-weight",s).style("font-family",m),_=(S._groups||S)[0][0].getBBox();if(_.width===0&&_.height===0)throw new Error("svg element not in render tree");b.width=Math.round(Math.max(b.width,_.width)),y=Math.round(_.height),b.height+=y,b.lineHeight=Math.round(Math.max(b.lineHeight,y))}h.push(b)}d.remove();const g=isNaN(h[1].height)||isNaN(h[1].width)||isNaN(h[1].lineHeight)||h[0].height>h[1].height&&h[0].width>h[1].width&&h[0].lineHeight>h[1].lineHeight?0:1;return h[g]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),as,a$=(as=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},w(as,"InitIDGenerator"),as),Cc,s$=w(function(e){return Cc=Cc||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Cc.innerHTML=e,unescape(Cc.textContent)},"entityDecode");function Yp(e){return"str"in e}w(Yp,"isDetailedError");var o$=w((e,t,r,i)=>{var o;if(!i)return;const s=(o=e.node())==null?void 0:o.getBBox();s&&e.append("text").text(i).attr("text-anchor","middle").attr("x",s.x+s.width/2).attr("y",-r).attr("class",t)},"insertTitle"),qu=w(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 Vp(e,t){return q5({},e,t)}w(Vp,"cleanAndMerge");var Kr={assignWithDepth:_e,wrapLabel:n$,calculateTextHeight:G2,calculateTextWidth:Wn,calculateTextDimensions:Up,cleanAndMerge:Vp,detectInit:G5,detectDirective:j2,isSubstringInArray:Q5,interpolateToCurve:Wp,calcLabelPosition:q2,calcCardinalityPosition:Z5,calcTerminalLabelPosition:U2,formatUrl:W2,getStylesFromArray:Y2,generateId:J5,random:t$,runFunc:K5,entityDecode:s$,insertTitle:o$,isLabelCoordinateInPath:X2,parseFontSize:qu,InitIDGenerator:a$},l$=w(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"),ga=w(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),bO=w((e,t,{counter:r=0,prefix:i,suffix:s},o)=>o||`${i?`${i}_`:""}${e}_${t}_${r}${s?`_${s}`:""}`,"getEdgeId");function Ue(e){return e??null}w(Ue,"handleUndefinedAttr");function X2(e,t){const r=Math.round(e.x),i=Math.round(e.y),s=t.replace(/(\d+\.\d+)/g,o=>Math.round(parseFloat(o)).toString());return s.includes(r.toString())||s.includes(i.toString())}w(X2,"isLabelCoordinateInPath");const c$=Object.freeze({left:0,top:0,width:16,height:16}),mu=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Q2=Object.freeze({...c$,...mu}),u$=Object.freeze({...Q2,body:"",hidden:!1}),h$=Object.freeze({width:null,height:null}),f$=Object.freeze({...h$,...mu}),d$=(e,t,r,i="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;i=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const l=s.pop(),h=s.pop(),f={provider:s.length>0?s[0]:i,prefix:h,name:l};return Jf(f)?f:null}const o=s[0],c=o.split("-");if(c.length>1){const l={provider:i,prefix:c.shift(),name:c.join("-")};return Jf(l)?l:null}if(r&&i===""){const l={provider:i,prefix:"",name:o};return Jf(l,r)?l:null}return null},Jf=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function p$(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 Xy(e,t){const r=p$(e,t);for(const i in u$)i in mu?i in e&&!(i in r)&&(r[i]=mu[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function g$(e,t){const r=e.icons,i=e.aliases||Object.create(null),s=Object.create(null);function o(c){if(r[c])return s[c]=[];if(!(c in s)){s[c]=null;const l=i[c]&&i[c].parent,h=l&&o(l);h&&(s[c]=[l].concat(h))}return s[c]}return(t||Object.keys(r).concat(Object.keys(i))).forEach(o),s}function Qy(e,t,r){const i=e.icons,s=e.aliases||Object.create(null);let o={};function c(l){o=Xy(i[l]||s[l],o)}return c(t),r.forEach(c),Xy(e,o)}function m$(e,t){if(e.icons[t])return Qy(e,t,[]);const r=g$(e,[t])[t];return r?Qy(e,t,r):null}const y$=/(-?[0-9.]*[0-9]+[0-9.]*)/g,x$=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Ky(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(y$);if(i===null||!i.length)return e;const s=[];let o=i.shift(),c=x$.test(o);for(;;){if(c){const l=parseFloat(o);isNaN(l)?s.push(o):s.push(Math.ceil(l*t*r)/r)}else s.push(o);if(o=i.shift(),o===void 0)return s.join("");c=!c}}function v$(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const s=e.indexOf(">",i),o=e.indexOf("</"+t);if(s===-1||o===-1)break;const c=e.indexOf(">",o);if(c===-1)break;r+=e.slice(s+1,o).trim(),e=e.slice(0,i).trim()+e.slice(c+1)}return{defs:r,content:e}}function b$(e,t){return e?"<defs>"+e+"</defs>"+t:t}function w$(e,t,r){const i=v$(e);return b$(i.defs,t+i.content+r)}const C$=e=>e==="unset"||e==="undefined"||e==="none";function k$(e,t){const r={...Q2,...e},i={...f$,...t},s={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,i].forEach(C=>{const k=[],S=C.hFlip,_=C.vFlip;let E=C.rotate;S?_?E+=2:(k.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),k.push("scale(-1 1)"),s.top=s.left=0):_&&(k.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),k.push("scale(1 -1)"),s.top=s.left=0);let M;switch(E<0&&(E-=Math.floor(E/4)*4),E=E%4,E){case 1:M=s.height/2+s.top,k.unshift("rotate(90 "+M.toString()+" "+M.toString()+")");break;case 2:k.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:M=s.width/2+s.left,k.unshift("rotate(-90 "+M.toString()+" "+M.toString()+")");break}E%2===1&&(s.left!==s.top&&(M=s.left,s.left=s.top,s.top=M),s.width!==s.height&&(M=s.width,s.width=s.height,s.height=M)),k.length&&(o=w$(o,'<g transform="'+k.join(" ")+'">',"</g>"))});const c=i.width,l=i.height,h=s.width,f=s.height;let d,g;c===null?(g=l===null?"1em":l==="auto"?f:l,d=Ky(g,h/f)):(d=c==="auto"?h:c,g=l===null?Ky(d,f/h):l==="auto"?f:l);const m={},y=(C,k)=>{C$(k)||(m[C]=k.toString())};y("width",d),y("height",g);const b=[s.left,s.top,h,f];return m.viewBox=b.join(" "),{attributes:m,viewBox:b,body:o}}const _$=/\sid="(\S+)"/g,Zy=new Map;function S$(e){e=e.replace(/[0-9]+$/,"")||"a";const t=Zy.get(e)||0;return Zy.set(e,t+1),t?`${e}${t}`:e}function T$(e){const t=[];let r;for(;r=_$.exec(e);)t.push(r[1]);if(!t.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(s=>{const o=S$(s),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function E$(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 Gp(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ma=Gp();function K2(e){ma=e}var Do={exec:()=>null};function Xt(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(s,o)=>{let c=typeof o=="string"?o:o.source;return c=c.replace(Ze.caret,"$1"),r=r.replace(s,c),i},getRegex:()=>new RegExp(r,t)};return i}var L$=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Ze={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")},M$=/^(?:[ \t]*(?:\n|$))+/,A$=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,B$=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,rl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,$$=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Xp=/(?:[*+-]|\d{1,9}[.)])/,Z2=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,J2=Xt(Z2).replace(/bull/g,Xp).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(),F$=Xt(Z2).replace(/bull/g,Xp).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(),Qp=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,R$=/^[^\n]+/,Kp=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,D$=Xt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Kp).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),P$=Xt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Xp).getRegex(),Uu="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",Zp=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,O$=Xt("^ {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",Zp).replace("tag",Uu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),tb=Xt(Qp).replace("hr",rl).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",Uu).getRegex(),I$=Xt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",tb).getRegex(),Jp={blockquote:I$,code:A$,def:D$,fences:B$,heading:$$,hr:rl,html:O$,lheading:J2,list:P$,newline:M$,paragraph:tb,table:Do,text:R$},Jy=Xt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",rl).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",Uu).getRegex(),N$={...Jp,lheading:F$,table:Jy,paragraph:Xt(Qp).replace("hr",rl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Jy).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",Uu).getRegex()},z$={...Jp,html:Xt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Zp).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:Do,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Xt(Qp).replace("hr",rl).replace("heading",` *#{1,6} *[^
|
|
157
|
+
]`).replace("lheading",J2).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},j$=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,W$=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,eb=/^( {2,}|\\)\n(?!\s*$)/,H$=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Yu=/[\p{P}\p{S}]/u,tg=/[\s\p{P}\p{S}]/u,rb=/[^\s\p{P}\p{S}]/u,q$=Xt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,tg).getRegex(),nb=/(?!~)[\p{P}\p{S}]/u,U$=/(?!~)[\s\p{P}\p{S}]/u,Y$=/(?:[^\s\p{P}\p{S}]|~)/u,V$=Xt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",L$?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ib=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,G$=Xt(ib,"u").replace(/punct/g,Yu).getRegex(),X$=Xt(ib,"u").replace(/punct/g,nb).getRegex(),ab="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Q$=Xt(ab,"gu").replace(/notPunctSpace/g,rb).replace(/punctSpace/g,tg).replace(/punct/g,Yu).getRegex(),K$=Xt(ab,"gu").replace(/notPunctSpace/g,Y$).replace(/punctSpace/g,U$).replace(/punct/g,nb).getRegex(),Z$=Xt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,rb).replace(/punctSpace/g,tg).replace(/punct/g,Yu).getRegex(),J$=Xt(/\\(punct)/,"gu").replace(/punct/g,Yu).getRegex(),tF=Xt(/^<(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(),eF=Xt(Zp).replace("(?:-->|$)","-->").getRegex(),rF=Xt("^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",eF).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),yu=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,nF=Xt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",yu).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),sb=Xt(/^!?\[(label)\]\[(ref)\]/).replace("label",yu).replace("ref",Kp).getRegex(),ob=Xt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Kp).getRegex(),iF=Xt("reflink|nolink(?!\\()","g").replace("reflink",sb).replace("nolink",ob).getRegex(),tx=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,eg={_backpedal:Do,anyPunctuation:J$,autolink:tF,blockSkip:V$,br:eb,code:W$,del:Do,emStrongLDelim:G$,emStrongRDelimAst:Q$,emStrongRDelimUnd:Z$,escape:j$,link:nF,nolink:ob,punctuation:q$,reflink:sb,reflinkSearch:iF,tag:rF,text:H$,url:Do},aF={...eg,link:Xt(/^!?\[(label)\]\((.*?)\)/).replace("label",yu).getRegex(),reflink:Xt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",yu).getRegex()},Hd={...eg,emStrongRDelimAst:K$,emStrongLDelim:X$,url:Xt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",tx).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:Xt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",tx).getRegex()},sF={...Hd,br:Xt(eb).replace("{2,}","*").getRegex(),text:Xt(Hd.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},kc={normal:Jp,gfm:N$,pedantic:z$},yo={normal:eg,gfm:Hd,breaks:sF,pedantic:aF},oF={"&":"&","<":"<",">":">",'"':""","'":"'"},ex=e=>oF[e];function dn(e,t){if(t){if(Ze.escapeTest.test(e))return e.replace(Ze.escapeReplace,ex)}else if(Ze.escapeTestNoEncode.test(e))return e.replace(Ze.escapeReplaceNoEncode,ex);return e}function rx(e){try{e=encodeURI(e).replace(Ze.percentDecode,"%")}catch{return null}return e}function nx(e,t){var o;let r=e.replace(Ze.findPipe,(c,l,h)=>{let f=!1,d=l;for(;--d>=0&&h[d]==="\\";)f=!f;return f?"|":" |"}),i=r.split(Ze.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((o=i.at(-1))!=null&&o.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(Ze.slashPipe,"|");return i}function xo(e,t,r){let i=e.length;if(i===0)return"";let s=0;for(;s<i&&e.charAt(i-s-1)===t;)s++;return e.slice(0,i-s)}function lF(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 ix(e,t,r,i,s){let o=t.href,c=t.title||null,l=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let h={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:o,title:c,text:l,tokens:i.inlineTokens(l)};return i.state.inLink=!1,h}function cF(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let s=i[1];return t.split(`
|
|
158
|
+
`).map(o=>{let c=o.match(r.other.beginningSpace);if(c===null)return o;let[l]=c;return l.length>=s.length?o.slice(s.length):o}).join(`
|
|
159
|
+
`)}var xu=class{constructor(t){te(this,"options");te(this,"rules");te(this,"lexer");this.options=t||ma}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:xo(i,`
|
|
160
|
+
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=cF(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:s}}}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 s=xo(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.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:xo(r[0],`
|
|
161
|
+
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=xo(r[0],`
|
|
162
|
+
`).split(`
|
|
163
|
+
`),s="",o="",c=[];for(;i.length>0;){let l=!1,h=[],f;for(f=0;f<i.length;f++)if(this.rules.other.blockquoteStart.test(i[f]))h.push(i[f]),l=!0;else if(!l)h.push(i[f]);else break;i=i.slice(f);let d=h.join(`
|
|
164
|
+
`),g=d.replace(this.rules.other.blockquoteSetextReplace,`
|
|
165
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
166
|
+
${d}`:d,o=o?`${o}
|
|
167
|
+
${g}`:g;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,c,!0),this.lexer.state.top=m,i.length===0)break;let y=c.at(-1);if((y==null?void 0:y.type)==="code")break;if((y==null?void 0:y.type)==="blockquote"){let b=y,C=b.raw+`
|
|
168
|
+
`+i.join(`
|
|
169
|
+
`),k=this.blockquote(C);c[c.length-1]=k,s=s.substring(0,s.length-b.raw.length)+k.raw,o=o.substring(0,o.length-b.text.length)+k.text;break}else if((y==null?void 0:y.type)==="list"){let b=y,C=b.raw+`
|
|
170
|
+
`+i.join(`
|
|
171
|
+
`),k=this.list(C);c[c.length-1]=k,s=s.substring(0,s.length-y.raw.length)+k.raw,o=o.substring(0,o.length-b.raw.length)+k.raw,i=C.substring(c.at(-1).raw.length).split(`
|
|
172
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:c,text:o}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),s=i.length>1,o={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let c=this.rules.other.listItemRegex(i),l=!1;for(;t;){let f=!1,d="",g="";if(!(r=c.exec(t))||this.rules.block.hr.test(t))break;d=r[0],t=t.substring(d.length);let m=r[2].split(`
|
|
173
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,_=>" ".repeat(3*_.length)),y=t.split(`
|
|
174
|
+
`,1)[0],b=!m.trim(),C=0;if(this.options.pedantic?(C=2,g=m.trimStart()):b?C=r[1].length+1:(C=r[2].search(this.rules.other.nonSpaceChar),C=C>4?1:C,g=m.slice(C),C+=r[1].length),b&&this.rules.other.blankLine.test(y)&&(d+=y+`
|
|
175
|
+
`,t=t.substring(y.length+1),f=!0),!f){let _=this.rules.other.nextBulletRegex(C),E=this.rules.other.hrRegex(C),M=this.rules.other.fencesBeginRegex(C),B=this.rules.other.headingBeginRegex(C),L=this.rules.other.htmlBeginRegex(C);for(;t;){let F=t.split(`
|
|
176
|
+
`,1)[0],V;if(y=F,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),V=y):V=y.replace(this.rules.other.tabCharGlobal," "),M.test(y)||B.test(y)||L.test(y)||_.test(y)||E.test(y))break;if(V.search(this.rules.other.nonSpaceChar)>=C||!y.trim())g+=`
|
|
177
|
+
`+V.slice(C);else{if(b||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||M.test(m)||B.test(m)||E.test(m))break;g+=`
|
|
178
|
+
`+y}!b&&!y.trim()&&(b=!0),d+=F+`
|
|
179
|
+
`,t=t.substring(F.length+1),m=V.slice(C)}}o.loose||(l?o.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(l=!0));let k=null,S;this.options.gfm&&(k=this.rules.other.listIsTask.exec(g),k&&(S=k[0]!=="[ ] ",g=g.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:d,task:!!k,checked:S,loose:!1,text:g,tokens:[]}),o.raw+=d}let h=o.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let f=0;f<o.items.length;f++)if(this.lexer.state.top=!1,o.items[f].tokens=this.lexer.blockTokens(o.items[f].text,[]),!o.loose){let d=o.items[f].tokens.filter(m=>m.type==="space"),g=d.length>0&&d.some(m=>this.rules.other.anyLine.test(m.raw));o.loose=g}if(o.loose)for(let f=0;f<o.items.length;f++)o.items[f].loose=!0;return o}}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," "),s=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:s,title:o}}}table(t){var l;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=nx(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(l=r[3])!=null&&l.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
180
|
+
`):[],c={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let h of s)this.rules.other.tableAlignRight.test(h)?c.align.push("right"):this.rules.other.tableAlignCenter.test(h)?c.align.push("center"):this.rules.other.tableAlignLeft.test(h)?c.align.push("left"):c.align.push(null);for(let h=0;h<i.length;h++)c.header.push({text:i[h],tokens:this.lexer.inline(i[h]),header:!0,align:c.align[h]});for(let h of o)c.rows.push(nx(h,c.header.length).map((f,d)=>({text:f,tokens:this.lexer.inline(f),header:!1,align:c.align[d]})));return c}}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)===`
|
|
181
|
+
`?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 c=xo(i.slice(0,-1),"\\");if((i.length-c.length)%2===0)return}else{let c=lF(r[2],"()");if(c===-2)return;if(c>-1){let l=(r[0].indexOf("!")===0?5:4)+r[1].length+c;r[2]=r[2].substring(0,c),r[0]=r[0].substring(0,l).trim(),r[3]=""}}let s=r[2],o="";if(this.options.pedantic){let c=this.rules.other.pedanticHrefTitle.exec(s);c&&(s=c[1],o=c[3])}else o=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),ix(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.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 s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=r[s.toLowerCase()];if(!o){let c=i[0].charAt(0);return{type:"text",raw:c,text:c}}return ix(i,o,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let o=[...s[0]].length-1,c,l,h=o,f=0,d=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*t.length+o);(s=d.exec(r))!=null;){if(c=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!c)continue;if(l=[...c].length,s[3]||s[4]){h+=l;continue}else if((s[5]||s[6])&&o%3&&!((o+l)%3)){f+=l;continue}if(h-=l,h>0)continue;l=Math.min(l,l+h+f);let g=[...s[0]][0].length,m=t.slice(0,o+s.index+g+l);if(Math.min(o,l)%2){let b=m.slice(1,-1);return{type:"em",raw:m,text:b,tokens:this.lexer.inlineTokens(b)}}let y=m.slice(2,-2);return{type:"strong",raw:m,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&o&&(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,s;return r[2]==="@"?(i=r[1],s="mailto:"+i):(i=r[1],s=i),{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let s,o;if(r[2]==="@")s=r[0],o="mailto:"+s;else{let c;do c=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(c!==r[0]);s=r[0],r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}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}}}},Gr=class qd{constructor(t){te(this,"tokens");te(this,"options");te(this,"state");te(this,"tokenizer");te(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||ma,this.options.tokenizer=this.options.tokenizer||new xu,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:Ze,block:kc.normal,inline:yo.normal};this.options.pedantic?(r.block=kc.pedantic,r.inline=yo.pedantic):this.options.gfm&&(r.block=kc.gfm,this.options.breaks?r.inline=yo.breaks:r.inline=yo.gfm),this.tokenizer.rules=r}static get rules(){return{block:kc,inline:yo}}static lex(t,r){return new qd(r).lex(t)}static lexInline(t,r){return new qd(r).inlineTokens(t)}lex(t){t=t.replace(Ze.carriageReturn,`
|
|
182
|
+
`),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 s,o,c;for(this.options.pedantic&&(t=t.replace(Ze.tabCharGlobal," ").replace(Ze.spaceLine,""));t;){let l;if((o=(s=this.options.extensions)==null?void 0:s.block)!=null&&o.some(f=>(l=f.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.space(t)){t=t.substring(l.raw.length);let f=r.at(-1);l.raw.length===1&&f!==void 0?f.raw+=`
|
|
183
|
+
`:r.push(l);continue}if(l=this.tokenizer.code(t)){t=t.substring(l.raw.length);let f=r.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
|
|
184
|
+
`)?"":`
|
|
185
|
+
`)+l.raw,f.text+=`
|
|
186
|
+
`+l.text,this.inlineQueue.at(-1).src=f.text):r.push(l);continue}if(l=this.tokenizer.fences(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.heading(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.hr(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.blockquote(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.list(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.html(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.def(t)){t=t.substring(l.raw.length);let f=r.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
|
|
187
|
+
`)?"":`
|
|
188
|
+
`)+l.raw,f.text+=`
|
|
189
|
+
`+l.raw,this.inlineQueue.at(-1).src=f.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},r.push(l));continue}if(l=this.tokenizer.table(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.lheading(t)){t=t.substring(l.raw.length),r.push(l);continue}let h=t;if((c=this.options.extensions)!=null&&c.startBlock){let f=1/0,d=t.slice(1),g;this.options.extensions.startBlock.forEach(m=>{g=m.call({lexer:this},d),typeof g=="number"&&g>=0&&(f=Math.min(f,g))}),f<1/0&&f>=0&&(h=t.substring(0,f+1))}if(this.state.top&&(l=this.tokenizer.paragraph(h))){let f=r.at(-1);i&&(f==null?void 0:f.type)==="paragraph"?(f.raw+=(f.raw.endsWith(`
|
|
190
|
+
`)?"":`
|
|
191
|
+
`)+l.raw,f.text+=`
|
|
192
|
+
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(l),i=h.length!==t.length,t=t.substring(l.raw.length);continue}if(l=this.tokenizer.text(t)){t=t.substring(l.raw.length);let f=r.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
|
|
193
|
+
`)?"":`
|
|
194
|
+
`)+l.raw,f.text+=`
|
|
195
|
+
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(l);continue}if(t){let f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var h,f,d,g,m;let i=t,s=null;if(this.tokens.links){let y=Object.keys(this.tokens.links);if(y.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)y.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)o=s[2]?s[2].length:0,i=i.slice(0,s.index+o)+"["+"a".repeat(s[0].length-o-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((f=(h=this.options.hooks)==null?void 0:h.emStrongMask)==null?void 0:f.call({lexer:this},i))??i;let c=!1,l="";for(;t;){c||(l=""),c=!1;let y;if((g=(d=this.options.extensions)==null?void 0:d.inline)!=null&&g.some(C=>(y=C.call({lexer:this},t,r))?(t=t.substring(y.raw.length),r.push(y),!0):!1))continue;if(y=this.tokenizer.escape(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.tag(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.link(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(y.raw.length);let C=r.at(-1);y.type==="text"&&(C==null?void 0:C.type)==="text"?(C.raw+=y.raw,C.text+=y.text):r.push(y);continue}if(y=this.tokenizer.emStrong(t,i,l)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.codespan(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.br(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.del(t)){t=t.substring(y.raw.length),r.push(y);continue}if(y=this.tokenizer.autolink(t)){t=t.substring(y.raw.length),r.push(y);continue}if(!this.state.inLink&&(y=this.tokenizer.url(t))){t=t.substring(y.raw.length),r.push(y);continue}let b=t;if((m=this.options.extensions)!=null&&m.startInline){let C=1/0,k=t.slice(1),S;this.options.extensions.startInline.forEach(_=>{S=_.call({lexer:this},k),typeof S=="number"&&S>=0&&(C=Math.min(C,S))}),C<1/0&&C>=0&&(b=t.substring(0,C+1))}if(y=this.tokenizer.inlineText(b)){t=t.substring(y.raw.length),y.raw.slice(-1)!=="_"&&(l=y.raw.slice(-1)),c=!0;let C=r.at(-1);(C==null?void 0:C.type)==="text"?(C.raw+=y.raw,C.text+=y.text):r.push(y);continue}if(t){let C="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(C);break}else throw new Error(C)}}return r}},vu=class{constructor(t){te(this,"options");te(this,"parser");this.options=t||ma}space(t){return""}code({text:t,lang:r,escaped:i}){var c;let s=(c=(r||"").match(Ze.notSpaceStart))==null?void 0:c[0],o=t.replace(Ze.endingNewline,"")+`
|
|
196
|
+
`;return s?'<pre><code class="language-'+dn(s)+'">'+(i?o:dn(o,!0))+`</code></pre>
|
|
197
|
+
`:"<pre><code>"+(i?o:dn(o,!0))+`</code></pre>
|
|
198
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
199
|
+
${this.parser.parse(t)}</blockquote>
|
|
200
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
201
|
+
`}hr(t){return`<hr>
|
|
202
|
+
`}list(t){let r=t.ordered,i=t.start,s="";for(let l=0;l<t.items.length;l++){let h=t.items[l];s+=this.listitem(h)}let o=r?"ol":"ul",c=r&&i!==1?' start="'+i+'"':"";return"<"+o+c+`>
|
|
203
|
+
`+s+"</"+o+`>
|
|
204
|
+
`}listitem(t){var i;let r="";if(t.task){let s=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=s+" "+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=s+" "+dn(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):r+=s+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
|
|
205
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
206
|
+
`}table(t){let r="",i="";for(let o=0;o<t.header.length;o++)i+=this.tablecell(t.header[o]);r+=this.tablerow({text:i});let s="";for(let o=0;o<t.rows.length;o++){let c=t.rows[o];i="";for(let l=0;l<c.length;l++)i+=this.tablecell(c[l]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
207
|
+
<thead>
|
|
208
|
+
`+r+`</thead>
|
|
209
|
+
`+s+`</table>
|
|
210
|
+
`}tablerow({text:t}){return`<tr>
|
|
211
|
+
${t}</tr>
|
|
212
|
+
`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
|
|
213
|
+
`}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>${dn(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 s=this.parser.parseInline(i),o=rx(t);if(o===null)return s;t=o;let c='<a href="'+t+'"';return r&&(c+=' title="'+dn(r)+'"'),c+=">"+s+"</a>",c}image({href:t,title:r,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let o=rx(t);if(o===null)return dn(i);t=o;let c=`<img src="${t}" alt="${i}"`;return r&&(c+=` title="${dn(r)}"`),c+=">",c}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:dn(t.text)}},rg=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""}},Xr=class Ud{constructor(t){te(this,"options");te(this,"renderer");te(this,"textRenderer");this.options=t||ma,this.options.renderer=this.options.renderer||new vu,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new rg}static parse(t,r){return new Ud(r).parse(t)}static parseInline(t,r){return new Ud(r).parseInline(t)}parse(t,r=!0){var s,o;let i="";for(let c=0;c<t.length;c++){let l=t[c];if((o=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&o[l.type]){let f=l,d=this.options.extensions.renderers[f.type].call({parser:this},f);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(f.type)){i+=d||"";continue}}let h=l;switch(h.type){case"space":{i+=this.renderer.space(h);continue}case"hr":{i+=this.renderer.hr(h);continue}case"heading":{i+=this.renderer.heading(h);continue}case"code":{i+=this.renderer.code(h);continue}case"table":{i+=this.renderer.table(h);continue}case"blockquote":{i+=this.renderer.blockquote(h);continue}case"list":{i+=this.renderer.list(h);continue}case"html":{i+=this.renderer.html(h);continue}case"def":{i+=this.renderer.def(h);continue}case"paragraph":{i+=this.renderer.paragraph(h);continue}case"text":{let f=h,d=this.renderer.text(f);for(;c+1<t.length&&t[c+1].type==="text";)f=t[++c],d+=`
|
|
214
|
+
`+this.renderer.text(f);r?i+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d,escaped:!0}]}):i+=d;continue}default:{let f='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return i}parseInline(t,r=this.renderer){var s,o;let i="";for(let c=0;c<t.length;c++){let l=t[c];if((o=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&o[l.type]){let f=this.options.extensions.renderers[l.type].call({parser:this},l);if(f!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){i+=f||"";continue}}let h=l;switch(h.type){case"escape":{i+=r.text(h);break}case"html":{i+=r.html(h);break}case"link":{i+=r.link(h);break}case"image":{i+=r.image(h);break}case"strong":{i+=r.strong(h);break}case"em":{i+=r.em(h);break}case"codespan":{i+=r.codespan(h);break}case"br":{i+=r.br(h);break}case"del":{i+=r.del(h);break}case"text":{i+=r.text(h);break}default:{let f='Token with "'+h.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return i}},Mc,To=(Mc=class{constructor(t){te(this,"options");te(this,"block");this.options=t||ma}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Gr.lex:Gr.lexInline}provideParser(){return this.block?Xr.parse:Xr.parseInline}},te(Mc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),te(Mc,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Mc),uF=class{constructor(...t){te(this,"defaults",Gp());te(this,"options",this.setOptions);te(this,"parse",this.parseMarkdown(!0));te(this,"parseInline",this.parseMarkdown(!1));te(this,"Parser",Xr);te(this,"Renderer",vu);te(this,"TextRenderer",rg);te(this,"Lexer",Gr);te(this,"Tokenizer",xu);te(this,"Hooks",To);this.use(...t)}walkTokens(t,r){var s,o;let i=[];for(let c of t)switch(i=i.concat(r.call(this,c)),c.type){case"table":{let l=c;for(let h of l.header)i=i.concat(this.walkTokens(h.tokens,r));for(let h of l.rows)for(let f of h)i=i.concat(this.walkTokens(f.tokens,r));break}case"list":{let l=c;i=i.concat(this.walkTokens(l.items,r));break}default:{let l=c;(o=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&o[l.type]?this.defaults.extensions.childTokens[l.type].forEach(h=>{let f=l[h].flat(1/0);i=i.concat(this.walkTokens(f,r))}):l.tokens&&(i=i.concat(this.walkTokens(l.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let c=r.renderers[o.name];c?r.renderers[o.name]=function(...l){let h=o.renderer.apply(this,l);return h===!1&&(h=c.apply(this,l)),h}:r.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let c=r[o.level];c?c.unshift(o.tokenizer):r[o.level]=[o.tokenizer],o.start&&(o.level==="block"?r.startBlock?r.startBlock.push(o.start):r.startBlock=[o.start]:o.level==="inline"&&(r.startInline?r.startInline.push(o.start):r.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(r.childTokens[o.name]=o.childTokens)}),s.extensions=r),i.renderer){let o=this.defaults.renderer||new vu(this.defaults);for(let c in i.renderer){if(!(c in o))throw new Error(`renderer '${c}' does not exist`);if(["options","parser"].includes(c))continue;let l=c,h=i.renderer[l],f=o[l];o[l]=(...d)=>{let g=h.apply(o,d);return g===!1&&(g=f.apply(o,d)),g||""}}s.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new xu(this.defaults);for(let c in i.tokenizer){if(!(c in o))throw new Error(`tokenizer '${c}' does not exist`);if(["options","rules","lexer"].includes(c))continue;let l=c,h=i.tokenizer[l],f=o[l];o[l]=(...d)=>{let g=h.apply(o,d);return g===!1&&(g=f.apply(o,d)),g}}s.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new To;for(let c in i.hooks){if(!(c in o))throw new Error(`hook '${c}' does not exist`);if(["options","block"].includes(c))continue;let l=c,h=i.hooks[l],f=o[l];To.passThroughHooks.has(c)?o[l]=d=>{if(this.defaults.async&&To.passThroughHooksRespectAsync.has(c))return(async()=>{let m=await h.call(o,d);return f.call(o,m)})();let g=h.call(o,d);return f.call(o,g)}:o[l]=(...d)=>{if(this.defaults.async)return(async()=>{let m=await h.apply(o,d);return m===!1&&(m=await f.apply(o,d)),m})();let g=h.apply(o,d);return g===!1&&(g=f.apply(o,d)),g}}s.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,c=i.walkTokens;s.walkTokens=function(l){let h=[];return h.push(c.call(this,l)),o&&(h=h.concat(o.call(this,l))),h}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Gr.lex(t,r??this.defaults)}parser(t,r){return Xr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let s={...i},o={...this.defaults,...s},c=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return c(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 c(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return c(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return(async()=>{let l=o.hooks?await o.hooks.preprocess(r):r,h=await(o.hooks?await o.hooks.provideLexer():t?Gr.lex:Gr.lexInline)(l,o),f=o.hooks?await o.hooks.processAllTokens(h):h;o.walkTokens&&await Promise.all(this.walkTokens(f,o.walkTokens));let d=await(o.hooks?await o.hooks.provideParser():t?Xr.parse:Xr.parseInline)(f,o);return o.hooks?await o.hooks.postprocess(d):d})().catch(c);try{o.hooks&&(r=o.hooks.preprocess(r));let l=(o.hooks?o.hooks.provideLexer():t?Gr.lex:Gr.lexInline)(r,o);o.hooks&&(l=o.hooks.processAllTokens(l)),o.walkTokens&&this.walkTokens(l,o.walkTokens);let h=(o.hooks?o.hooks.provideParser():t?Xr.parse:Xr.parseInline)(l,o);return o.hooks&&(h=o.hooks.postprocess(h)),h}catch(l){return c(l)}}}onError(t,r){return i=>{if(i.message+=`
|
|
215
|
+
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+dn(i.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(i);throw i}}},ua=new uF;function Zt(e,t){return ua.parse(e,t)}Zt.options=Zt.setOptions=function(e){return ua.setOptions(e),Zt.defaults=ua.defaults,K2(Zt.defaults),Zt};Zt.getDefaults=Gp;Zt.defaults=ma;Zt.use=function(...e){return ua.use(...e),Zt.defaults=ua.defaults,K2(Zt.defaults),Zt};Zt.walkTokens=function(e,t){return ua.walkTokens(e,t)};Zt.parseInline=ua.parseInline;Zt.Parser=Xr;Zt.parser=Xr.parse;Zt.Renderer=vu;Zt.TextRenderer=rg;Zt.Lexer=Gr;Zt.lexer=Gr.lex;Zt.Tokenizer=xu;Zt.Hooks=To;Zt.parse=Zt;Zt.options;Zt.setOptions;Zt.use;Zt.walkTokens;Zt.parseInline;Xr.parse;Gr.lex;function lb(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 s=i.reduce(function(l,h){var f=h.match(/\n([\t ]+|(?!\s).)/g);return f?l.concat(f.map(function(d){var g,m;return(m=(g=d.match(/[\t ]/g))===null||g===void 0?void 0:g.length)!==null&&m!==void 0?m:0})):l},[]);if(s.length){var o=new RegExp(`
|
|
216
|
+
[ ]{`+Math.min.apply(Math,s)+"}","g");i=i.map(function(l){return l.replace(o,`
|
|
217
|
+
`)})}i[0]=i[0].replace(/^\r?\n/,"");var c=i[0];return t.forEach(function(l,h){var f=c.match(/(?:^|\n)( *)$/),d=f?f[1]:"",g=l;typeof l=="string"&&l.includes(`
|
|
218
|
+
`)&&(g=String(l).split(`
|
|
219
|
+
`).map(function(m,y){return y===0?m:""+d+m}).join(`
|
|
220
|
+
`)),c+=g+i[h+1]}),c}var hF={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},Yd=new Map,cb=new Map,fF=w(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(J.debug("Registering icon pack:",t.name),"loader"in t)cb.set(t.name,t.loader);else if("icons"in t)Yd.set(t.name,t.icons);else throw J.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),ub=w(async(e,t)=>{const r=d$(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 s=Yd.get(i);if(!s){const c=cb.get(i);if(!c)throw new Error(`Icon set not found: ${r.prefix}`);try{s={...await c(),prefix:i},Yd.set(i,s)}catch(l){throw J.error(l),new Error(`Failed to load icon set: ${r.prefix}`)}}const o=m$(s,r.name);if(!o)throw new Error(`Icon not found: ${e}`);return o},"getRegisteredIconData"),dF=w(async e=>{try{return await ub(e),!0}catch{return!1}},"isIconAvailable"),nl=w(async(e,t,r)=>{let i;try{i=await ub(e,t==null?void 0:t.fallbackPrefix)}catch(c){J.error(c),i=hF}const s=k$(i,t),o=E$(T$(s.body),{...s.attributes,...r});return Rr(o,He())},"getIconSVG");function hb(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
|
|
221
|
+
`).replace(/\n{2,}/g,`
|
|
222
|
+
`),s=lb(i);return t===!1?s.replace(/ /g," "):s}w(hb,"preprocessMarkdown");function fb(e,t={}){const r=hb(e,t),i=Zt.lexer(r),s=[[]];let o=0;function c(l,h="normal"){l.type==="text"?l.text.split(`
|
|
223
|
+
`).forEach((d,g)=>{g!==0&&(o++,s.push([])),d.split(" ").forEach(m=>{m=m.replace(/'/g,"'"),m&&s[o].push({content:m,type:h})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(f=>{c(f,l.type)}):l.type==="html"&&s[o].push({content:l.text,type:"normal"})}return w(c,"processNode"),i.forEach(l=>{var h;l.type==="paragraph"?(h=l.tokens)==null||h.forEach(f=>{c(f)}):l.type==="html"?s[o].push({content:l.text,type:"normal"}):s[o].push({content:l.raw,type:"normal"})}),s}w(fb,"markdownToLines");function db(e,{markdownAutoWrap:t}={}){const r=Zt.lexer(e);function i(s){var o,c,l;return s.type==="text"?t===!1?s.text.replace(/\n */g,"<br/>").replace(/ /g," "):s.text.replace(/\n */g,"<br/>"):s.type==="strong"?`<strong>${(o=s.tokens)==null?void 0:o.map(i).join("")}</strong>`:s.type==="em"?`<em>${(c=s.tokens)==null?void 0:c.map(i).join("")}</em>`:s.type==="paragraph"?`<p>${(l=s.tokens)==null?void 0:l.map(i).join("")}</p>`:s.type==="space"?"":s.type==="html"?`${s.text}`:s.type==="escape"?s.text:(J.warn(`Unsupported markdown: ${s.type}`),s.raw)}return w(i,"output"),r.map(i).join("")}w(db,"markdownToHTML");function pb(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}w(pb,"splitTextToChars");function gb(e,t){const r=pb(t.content);return ng(e,[],r,t.type)}w(gb,"splitWordToFitWidth");function ng(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[s,...o]=r,c=[...t,s];return e([{content:c.join(""),type:i}])?ng(e,c,o,i):(t.length===0&&s&&(t.push(s),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}w(ng,"splitWordToFitWidthRecursion");function mb(e,t){if(e.some(({content:r})=>r.includes(`
|
|
224
|
+
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return bu(e,t)}w(mb,"splitLineToFitWidth");function bu(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let s="";e[0].content===" "&&(s=" ",e.shift());const o=e.shift()??{content:" ",type:"normal"},c=[...i];if(s!==""&&c.push({content:s,type:"normal"}),c.push(o),t(c))return bu(e,t,r,c);if(i.length>0)r.push(i),e.unshift(o);else if(o.content){const[l,h]=gb(t,o);r.push([l]),h.content&&e.unshift(h)}return bu(e,t,r)}w(bu,"splitLineToFitWidthRecursion");function Vd(e,t){t&&e.attr("style",t)}w(Vd,"applyStyle");async function yb(e,t,r,i,s=!1,o=He()){const c=e.append("foreignObject");c.attr("width",`${10*r}px`),c.attr("height",`${10*r}px`);const l=c.append("xhtml:div"),h=ls(t.label)?await fp(t.label.replace(gs.lineBreakRegex,`
|
|
225
|
+
`),o):Rr(t.label,o),f=t.isNode?"nodeLabel":"edgeLabel",d=l.append("span");d.html(h),Vd(d,t.labelStyle),d.attr("class",`${f} ${i}`),Vd(l,t.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),l.style("max-width",r+"px"),l.style("text-align","center"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),s&&l.attr("class","labelBkg");let g=l.node().getBoundingClientRect();return g.width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px"),g=l.node().getBoundingClientRect()),c.node()}w(yb,"addHtmlSpan");function Vu(e,t,r){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em")}w(Vu,"createTspan");function xb(e,t,r){const i=e.append("text"),s=Vu(i,1,t);Gu(s,r);const o=s.node().getComputedTextLength();return i.remove(),o}w(xb,"computeWidthOfText");function pF(e,t,r){var c;const i=e.append("text"),s=Vu(i,1,t);Gu(s,[{content:r,type:"normal"}]);const o=(c=s.node())==null?void 0:c.getBoundingClientRect();return o&&i.remove(),o}w(pF,"computeDimensionOfText");function vb(e,t,r,i=!1){const o=t.append("g"),c=o.insert("rect").attr("class","background").attr("style","stroke: none"),l=o.append("text").attr("y","-10.1");let h=0;for(const f of r){const d=w(m=>xb(o,1.1,m)<=e,"checkWidth"),g=d(f)?[f]:mb(f,d);for(const m of g){const y=Vu(l,h,1.1);Gu(y,m),h++}}if(i){const f=l.node().getBBox(),d=2;return c.attr("x",f.x-d).attr("y",f.y-d).attr("width",f.width+2*d).attr("height",f.height+2*d),o.node()}else return l.node()}w(vb,"createFormattedText");function Gu(e,t){e.text(""),t.forEach((r,i)=>{const s=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?s.text(r.content):s.text(" "+r.content)})}w(Gu,"updateTextContentAndStyles");async function bb(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(s,o,c)=>(r.push((async()=>{const l=`${o}:${c}`;return await dF(l)?await nl(l,void 0,{class:"label-icon"}):`<i class='${Rr(s,t).replace(":"," ")}'></i>`})()),s));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}w(bb,"replaceIconSubstring");var Ti=w(async(e,t="",{style:r="",isTitle:i=!1,classes:s="",useHtmlLabels:o=!0,isNode:c=!0,width:l=200,addSvgBackground:h=!1}={},f)=>{if(J.debug("XYZ createText",t,r,i,s,o,c,"addSvgBackground: ",h),o){const d=db(t,f),g=await bb(ga(d),f),m=t.replace(/\\\\/g,"\\"),y={isNode:c,label:ls(t)?m:g,labelStyle:r.replace("fill:","color:")};return await yb(e,y,l,s,h,f)}else{const d=t.replace(/<br\s*\/?>/g,"<br/>"),g=fb(d.replace("<br>","<br/>"),f),m=vb(l,e,g,t?h:!1);if(c){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Yt(m).attr("style",y)}else{const y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Yt(m).select("rect").attr("style",y.replace(/background:/g,"fill:"));const b=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Yt(m).select("text").attr("style",b)}return m}},"createText");function td(e,t,r){if(e&&e.length){const[i,s]=t,o=Math.PI/180*r,c=Math.cos(o),l=Math.sin(o);for(const h of e){const[f,d]=h;h[0]=(f-i)*c-(d-s)*l+i,h[1]=(f-i)*l+(d-s)*c+s}}}function gF(e,t){return e[0]===t[0]&&e[1]===t[1]}function mF(e,t,r,i=1){const s=r,o=Math.max(t,.1),c=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,l=[0,0];if(s)for(const f of c)td(f,l,s);const h=(function(f,d,g){const m=[];for(const _ of f){const E=[..._];gF(E[0],E[E.length-1])||E.push([E[0][0],E[0][1]]),E.length>2&&m.push(E)}const y=[];d=Math.max(d,.1);const b=[];for(const _ of m)for(let E=0;E<_.length-1;E++){const M=_[E],B=_[E+1];if(M[1]!==B[1]){const L=Math.min(M[1],B[1]);b.push({ymin:L,ymax:Math.max(M[1],B[1]),x:L===M[1]?M[0]:B[0],islope:(B[0]-M[0])/(B[1]-M[1])})}}if(b.sort(((_,E)=>_.ymin<E.ymin?-1:_.ymin>E.ymin?1:_.x<E.x?-1:_.x>E.x?1:_.ymax===E.ymax?0:(_.ymax-E.ymax)/Math.abs(_.ymax-E.ymax))),!b.length)return y;let C=[],k=b[0].ymin,S=0;for(;C.length||b.length;){if(b.length){let _=-1;for(let E=0;E<b.length&&!(b[E].ymin>k);E++)_=E;b.splice(0,_+1).forEach((E=>{C.push({s:k,edge:E})}))}if(C=C.filter((_=>!(_.edge.ymax<=k))),C.sort(((_,E)=>_.edge.x===E.edge.x?0:(_.edge.x-E.edge.x)/Math.abs(_.edge.x-E.edge.x))),(g!==1||S%d==0)&&C.length>1)for(let _=0;_<C.length;_+=2){const E=_+1;if(E>=C.length)break;const M=C[_].edge,B=C[E].edge;y.push([[Math.round(M.x),k],[Math.round(B.x),k]])}k+=g,C.forEach((_=>{_.edge.x=_.edge.x+g*_.edge.islope})),S++}return y})(c,o,i);if(s){for(const f of c)td(f,l,-s);(function(f,d,g){const m=[];f.forEach((y=>m.push(...y))),td(m,d,g)})(h,l,-s)}return h}function il(e,t){var r;const i=t.hachureAngle+90;let s=t.hachureGap;s<0&&(s=4*t.strokeWidth),s=Math.round(Math.max(s,.1));let o=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(o=s),mF(e,s,i,o||1)}class ig{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=il(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){const i=[];for(const s of t)i.push(...this.helper.doubleLineOps(s[0][0],s[0][1],s[1][0],s[1][1],r));return i}}function Xu(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 yF extends ig{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const s=il(t,Object.assign({},r,{hachureGap:i})),o=Math.PI/180*r.hachureAngle,c=[],l=.5*i*Math.cos(o),h=.5*i*Math.sin(o);for(const[f,d]of s)Xu([f,d])&&c.push([[f[0]-l,f[1]+h],[...d]],[[f[0]+l,f[1]-h],[...d]]);return{type:"fillSketch",ops:this.renderLines(c,r)}}}class xF extends ig{fillPolygons(t,r){const i=this._fillPolygons(t,r),s=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),o=this._fillPolygons(t,s);return i.ops=i.ops.concat(o.ops),i}}class vF{constructor(t){this.helper=t}fillPolygons(t,r){const i=il(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let s=r.hachureGap;s<0&&(s=4*r.strokeWidth),s=Math.max(s,.1);let o=r.fillWeight;o<0&&(o=r.strokeWidth/2);const c=s/4;for(const l of t){const h=Xu(l),f=h/s,d=Math.ceil(f)-1,g=h-d*s,m=(l[0][0]+l[1][0])/2-s/4,y=Math.min(l[0][1],l[1][1]);for(let b=0;b<d;b++){const C=y+g+b*s,k=m-c+2*Math.random()*c,S=C-c+2*Math.random()*c,_=this.helper.ellipse(k,S,o,o,r);i.push(..._.ops)}}return{type:"fillSketch",ops:i}}}class bF{constructor(t){this.helper=t}fillPolygons(t,r){const i=il(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,s=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,o=[];return t.forEach((c=>{const l=Xu(c),h=Math.floor(l/(i+s)),f=(l+s-h*(i+s))/2;let d=c[0],g=c[1];d[0]>g[0]&&(d=c[1],g=c[0]);const m=Math.atan((g[1]-d[1])/(g[0]-d[0]));for(let y=0;y<h;y++){const b=y*(i+s),C=b+i,k=[d[0]+b*Math.cos(m)+f*Math.cos(m),d[1]+b*Math.sin(m)+f*Math.sin(m)],S=[d[0]+C*Math.cos(m)+f*Math.cos(m),d[1]+C*Math.sin(m)+f*Math.sin(m)];o.push(...this.helper.doubleLineOps(k[0],k[1],S[0],S[1],r))}})),o}}class wF{constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,s=r.zigzagOffset<0?i:r.zigzagOffset,o=il(t,r=Object.assign({},r,{hachureGap:i+s}));return{type:"fillSketch",ops:this.zigzagLines(o,s,r)}}zigzagLines(t,r,i){const s=[];return t.forEach((o=>{const c=Xu(o),l=Math.round(c/(2*r));let h=o[0],f=o[1];h[0]>f[0]&&(h=o[1],f=o[0]);const d=Math.atan((f[1]-h[1])/(f[0]-h[0]));for(let g=0;g<l;g++){const m=2*g*r,y=2*(g+1)*r,b=Math.sqrt(2*Math.pow(r,2)),C=[h[0]+m*Math.cos(d),h[1]+m*Math.sin(d)],k=[h[0]+y*Math.cos(d),h[1]+y*Math.sin(d)],S=[C[0]+b*Math.cos(d+Math.PI/4),C[1]+b*Math.sin(d+Math.PI/4)];s.push(...this.helper.doubleLineOps(C[0],C[1],S[0],S[1],i),...this.helper.doubleLineOps(S[0],S[1],k[0],k[1],i))}})),s}}const cr={};class CF{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const kF=0,ed=1,ax=2,_c={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 rd(e,t){return e.type===t}function ag(e){const t=[],r=(function(c){const l=new Array;for(;c!=="";)if(c.match(/^([ \t\r\n,]+)/))c=c.substr(RegExp.$1.length);else if(c.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:kF,text:RegExp.$1},c=c.substr(RegExp.$1.length);else{if(!c.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:ed,text:`${parseFloat(RegExp.$1)}`},c=c.substr(RegExp.$1.length)}return l[l.length]={type:ax,text:""},l})(e);let i="BOD",s=0,o=r[s];for(;!rd(o,ax);){let c=0;const l=[];if(i==="BOD"){if(o.text!=="M"&&o.text!=="m")return ag("M0,0"+e);s++,c=_c[o.text],i=o.text}else rd(o,ed)?c=_c[i]:(s++,c=_c[o.text],i=o.text);if(!(s+c<r.length))throw new Error("Path data ended short");for(let h=s;h<s+c;h++){const f=r[h];if(!rd(f,ed))throw new Error("Param not a number: "+i+","+f.text);l[l.length]=+f.text}if(typeof _c[i]!="number")throw new Error("Bad segment: "+i);{const h={key:i,data:l};t.push(h),s+=c,o=r[s],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function wb(e){let t=0,r=0,i=0,s=0;const o=[];for(const{key:c,data:l}of e)switch(c){case"M":o.push({key:"M",data:[...l]}),[t,r]=l,[i,s]=l;break;case"m":t+=l[0],r+=l[1],o.push({key:"M",data:[t,r]}),i=t,s=r;break;case"L":o.push({key:"L",data:[...l]}),[t,r]=l;break;case"l":t+=l[0],r+=l[1],o.push({key:"L",data:[t,r]});break;case"C":o.push({key:"C",data:[...l]}),t=l[4],r=l[5];break;case"c":{const h=l.map(((f,d)=>d%2?f+r:f+t));o.push({key:"C",data:h}),t=h[4],r=h[5];break}case"Q":o.push({key:"Q",data:[...l]}),t=l[2],r=l[3];break;case"q":{const h=l.map(((f,d)=>d%2?f+r:f+t));o.push({key:"Q",data:h}),t=h[2],r=h[3];break}case"A":o.push({key:"A",data:[...l]}),t=l[5],r=l[6];break;case"a":t+=l[5],r+=l[6],o.push({key:"A",data:[l[0],l[1],l[2],l[3],l[4],t,r]});break;case"H":o.push({key:"H",data:[...l]}),t=l[0];break;case"h":t+=l[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...l]}),r=l[0];break;case"v":r+=l[0],o.push({key:"V",data:[r]});break;case"S":o.push({key:"S",data:[...l]}),t=l[2],r=l[3];break;case"s":{const h=l.map(((f,d)=>d%2?f+r:f+t));o.push({key:"S",data:h}),t=h[2],r=h[3];break}case"T":o.push({key:"T",data:[...l]}),t=l[0],r=l[1];break;case"t":t+=l[0],r+=l[1],o.push({key:"T",data:[t,r]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=i,r=s}return o}function Cb(e){const t=[];let r="",i=0,s=0,o=0,c=0,l=0,h=0;for(const{key:f,data:d}of e){switch(f){case"M":t.push({key:"M",data:[...d]}),[i,s]=d,[o,c]=d;break;case"C":t.push({key:"C",data:[...d]}),i=d[4],s=d[5],l=d[2],h=d[3];break;case"L":t.push({key:"L",data:[...d]}),[i,s]=d;break;case"H":i=d[0],t.push({key:"L",data:[i,s]});break;case"V":s=d[0],t.push({key:"L",data:[i,s]});break;case"S":{let g=0,m=0;r==="C"||r==="S"?(g=i+(i-l),m=s+(s-h)):(g=i,m=s),t.push({key:"C",data:[g,m,...d]}),l=d[0],h=d[1],i=d[2],s=d[3];break}case"T":{const[g,m]=d;let y=0,b=0;r==="Q"||r==="T"?(y=i+(i-l),b=s+(s-h)):(y=i,b=s);const C=i+2*(y-i)/3,k=s+2*(b-s)/3,S=g+2*(y-g)/3,_=m+2*(b-m)/3;t.push({key:"C",data:[C,k,S,_,g,m]}),l=y,h=b,i=g,s=m;break}case"Q":{const[g,m,y,b]=d,C=i+2*(g-i)/3,k=s+2*(m-s)/3,S=y+2*(g-y)/3,_=b+2*(m-b)/3;t.push({key:"C",data:[C,k,S,_,y,b]}),l=g,h=m,i=y,s=b;break}case"A":{const g=Math.abs(d[0]),m=Math.abs(d[1]),y=d[2],b=d[3],C=d[4],k=d[5],S=d[6];g===0||m===0?(t.push({key:"C",data:[i,s,k,S,k,S]}),i=k,s=S):(i!==k||s!==S)&&(kb(i,s,k,S,g,m,y,b,C).forEach((function(_){t.push({key:"C",data:_})})),i=k,s=S);break}case"Z":t.push({key:"Z",data:[]}),i=o,s=c}r=f}return t}function vo(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function kb(e,t,r,i,s,o,c,l,h,f){const d=(g=c,Math.PI*g/180);var g;let m=[],y=0,b=0,C=0,k=0;if(f)[y,b,C,k]=f;else{[e,t]=vo(e,t,-d),[r,i]=vo(r,i,-d);const Z=(e-r)/2,q=(t-i)/2;let W=Z*Z/(s*s)+q*q/(o*o);W>1&&(W=Math.sqrt(W),s*=W,o*=W);const z=s*s,U=o*o,R=z*U-z*q*q-U*Z*Z,K=z*q*q+U*Z*Z,Q=(l===h?-1:1)*Math.sqrt(Math.abs(R/K));C=Q*s*q/o+(e+r)/2,k=Q*-o*Z/s+(t+i)/2,y=Math.asin(parseFloat(((t-k)/o).toFixed(9))),b=Math.asin(parseFloat(((i-k)/o).toFixed(9))),e<C&&(y=Math.PI-y),r<C&&(b=Math.PI-b),y<0&&(y=2*Math.PI+y),b<0&&(b=2*Math.PI+b),h&&y>b&&(y-=2*Math.PI),!h&&b>y&&(b-=2*Math.PI)}let S=b-y;if(Math.abs(S)>120*Math.PI/180){const Z=b,q=r,W=i;b=h&&b>y?y+120*Math.PI/180*1:y+120*Math.PI/180*-1,m=kb(r=C+s*Math.cos(b),i=k+o*Math.sin(b),q,W,s,o,c,0,h,[b,Z,C,k])}S=b-y;const _=Math.cos(y),E=Math.sin(y),M=Math.cos(b),B=Math.sin(b),L=Math.tan(S/4),F=4/3*s*L,V=4/3*o*L,et=[e,t],tt=[e+F*E,t-V*_],G=[r+F*B,i-V*M],ot=[r,i];if(tt[0]=2*et[0]-tt[0],tt[1]=2*et[1]-tt[1],f)return[tt,G,ot].concat(m);{m=[tt,G,ot].concat(m);const Z=[];for(let q=0;q<m.length;q+=3){const W=vo(m[q][0],m[q][1],d),z=vo(m[q+1][0],m[q+1][1],d),U=vo(m[q+2][0],m[q+2][1],d);Z.push([W[0],W[1],z[0],z[1],U[0],U[1]])}return Z}}const _F={randOffset:function(e,t){return Ot(e,t)},randOffsetWithRange:function(e,t,r){return wu(e,t,r)},ellipse:function(e,t,r,i,s){const o=Sb(r,i,s);return Gd(e,t,s,o).opset},doubleLineOps:function(e,t,r,i,s){return ki(e,t,r,i,s,!0)}};function _b(e,t,r,i,s){return{type:"path",ops:ki(e,t,r,i,s)}}function zc(e,t,r){const i=(e||[]).length;if(i>2){const s=[];for(let o=0;o<i-1;o++)s.push(...ki(e[o][0],e[o][1],e[o+1][0],e[o+1][1],r));return t&&s.push(...ki(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:s}}return i===2?_b(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function SF(e,t,r,i,s){return(function(o,c){return zc(o,!0,c)})([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],s)}function sx(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=Sc(r[0],1*(1+.2*t.roughness),t),s=t.disableMultiStroke?[]:Sc(r[0],1.5*(1+.22*t.roughness),cx(t));for(let o=1;o<r.length;o++){const c=r[o];if(c.length){const l=Sc(c,1*(1+.2*t.roughness),t),h=t.disableMultiStroke?[]:Sc(c,1.5*(1+.22*t.roughness),cx(t));for(const f of l)f.op!=="move"&&i.push(f);for(const f of h)f.op!=="move"&&s.push(f)}}return{type:"path",ops:i.concat(s)}}return{type:"path",ops:[]}}function Sb(e,t,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),s=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),o=2*Math.PI/s;let c=Math.abs(e/2),l=Math.abs(t/2);const h=1-r.curveFitting;return c+=Ot(c*h,r),l+=Ot(l*h,r),{increment:o,rx:c,ry:l}}function Gd(e,t,r,i){const[s,o]=ux(i.increment,e,t,i.rx,i.ry,1,i.increment*wu(.1,wu(.4,1,r),r),r);let c=Cu(s,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[l]=ux(i.increment,e,t,i.rx,i.ry,1.5,0,r),h=Cu(l,null,r);c=c.concat(h)}return{estimatedPoints:o,opset:{type:"path",ops:c}}}function ox(e,t,r,i,s,o,c,l,h){const f=e,d=t;let g=Math.abs(r/2),m=Math.abs(i/2);g+=Ot(.01*g,h),m+=Ot(.01*m,h);let y=s,b=o;for(;y<0;)y+=2*Math.PI,b+=2*Math.PI;b-y>2*Math.PI&&(y=0,b=2*Math.PI);const C=2*Math.PI/h.curveStepCount,k=Math.min(C/2,(b-y)/2),S=hx(k,f,d,g,m,y,b,1,h);if(!h.disableMultiStroke){const _=hx(k,f,d,g,m,y,b,1.5,h);S.push(..._)}return c&&(l?S.push(...ki(f,d,f+g*Math.cos(y),d+m*Math.sin(y),h),...ki(f,d,f+g*Math.cos(b),d+m*Math.sin(b),h)):S.push({op:"lineTo",data:[f,d]},{op:"lineTo",data:[f+g*Math.cos(y),d+m*Math.sin(y)]})),{type:"path",ops:S}}function lx(e,t){const r=Cb(wb(ag(e))),i=[];let s=[0,0],o=[0,0];for(const{key:c,data:l}of r)switch(c){case"M":o=[l[0],l[1]],s=[l[0],l[1]];break;case"L":i.push(...ki(o[0],o[1],l[0],l[1],t)),o=[l[0],l[1]];break;case"C":{const[h,f,d,g,m,y]=l;i.push(...TF(h,f,d,g,m,y,o,t)),o=[m,y];break}case"Z":i.push(...ki(o[0],o[1],s[0],s[1],t)),o=[s[0],s[1]]}return{type:"path",ops:i}}function nd(e,t){const r=[];for(const i of e)if(i.length){const s=t.maxRandomnessOffset||0,o=i.length;if(o>2){r.push({op:"move",data:[i[0][0]+Ot(s,t),i[0][1]+Ot(s,t)]});for(let c=1;c<o;c++)r.push({op:"lineTo",data:[i[c][0]+Ot(s,t),i[c][1]+Ot(s,t)]})}}return{type:"fillPath",ops:r}}function Ua(e,t){return(function(r,i){let s=r.fillStyle||"hachure";if(!cr[s])switch(s){case"zigzag":cr[s]||(cr[s]=new yF(i));break;case"cross-hatch":cr[s]||(cr[s]=new xF(i));break;case"dots":cr[s]||(cr[s]=new vF(i));break;case"dashed":cr[s]||(cr[s]=new bF(i));break;case"zigzag-line":cr[s]||(cr[s]=new wF(i));break;default:s="hachure",cr[s]||(cr[s]=new ig(i))}return cr[s]})(t,_F).fillPolygons(e,t)}function cx(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function Tb(e){return e.randomizer||(e.randomizer=new CF(e.seed||0)),e.randomizer.next()}function wu(e,t,r,i=1){return r.roughness*i*(Tb(r)*(t-e)+e)}function Ot(e,t,r=1){return wu(-e,e,t,r)}function ki(e,t,r,i,s,o=!1){const c=o?s.disableMultiStrokeFill:s.disableMultiStroke,l=Xd(e,t,r,i,s,!0,!1);if(c)return l;const h=Xd(e,t,r,i,s,!0,!0);return l.concat(h)}function Xd(e,t,r,i,s,o,c){const l=Math.pow(e-r,2)+Math.pow(t-i,2),h=Math.sqrt(l);let f=1;f=h<200?1:h>500?.4:-.0016668*h+1.233334;let d=s.maxRandomnessOffset||0;d*d*100>l&&(d=h/10);const g=d/2,m=.2+.2*Tb(s);let y=s.bowing*s.maxRandomnessOffset*(i-t)/200,b=s.bowing*s.maxRandomnessOffset*(e-r)/200;y=Ot(y,s,f),b=Ot(b,s,f);const C=[],k=()=>Ot(g,s,f),S=()=>Ot(d,s,f),_=s.preserveVertices;return c?C.push({op:"move",data:[e+(_?0:k()),t+(_?0:k())]}):C.push({op:"move",data:[e+(_?0:Ot(d,s,f)),t+(_?0:Ot(d,s,f))]}),c?C.push({op:"bcurveTo",data:[y+e+(r-e)*m+k(),b+t+(i-t)*m+k(),y+e+2*(r-e)*m+k(),b+t+2*(i-t)*m+k(),r+(_?0:k()),i+(_?0:k())]}):C.push({op:"bcurveTo",data:[y+e+(r-e)*m+S(),b+t+(i-t)*m+S(),y+e+2*(r-e)*m+S(),b+t+2*(i-t)*m+S(),r+(_?0:S()),i+(_?0:S())]}),C}function Sc(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+Ot(t,r),e[0][1]+Ot(t,r)]),i.push([e[0][0]+Ot(t,r),e[0][1]+Ot(t,r)]);for(let s=1;s<e.length;s++)i.push([e[s][0]+Ot(t,r),e[s][1]+Ot(t,r)]),s===e.length-1&&i.push([e[s][0]+Ot(t,r),e[s][1]+Ot(t,r)]);return Cu(i,null,r)}function Cu(e,t,r){const i=e.length,s=[];if(i>3){const o=[],c=1-r.curveTightness;s.push({op:"move",data:[e[1][0],e[1][1]]});for(let l=1;l+2<i;l++){const h=e[l];o[0]=[h[0],h[1]],o[1]=[h[0]+(c*e[l+1][0]-c*e[l-1][0])/6,h[1]+(c*e[l+1][1]-c*e[l-1][1])/6],o[2]=[e[l+1][0]+(c*e[l][0]-c*e[l+2][0])/6,e[l+1][1]+(c*e[l][1]-c*e[l+2][1])/6],o[3]=[e[l+1][0],e[l+1][1]],s.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}}else i===3?(s.push({op:"move",data:[e[1][0],e[1][1]]}),s.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&s.push(...Xd(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return s}function ux(e,t,r,i,s,o,c,l){const h=[],f=[];if(l.roughness===0){e/=4,f.push([t+i*Math.cos(-e),r+s*Math.sin(-e)]);for(let d=0;d<=2*Math.PI;d+=e){const g=[t+i*Math.cos(d),r+s*Math.sin(d)];h.push(g),f.push(g)}f.push([t+i*Math.cos(0),r+s*Math.sin(0)]),f.push([t+i*Math.cos(e),r+s*Math.sin(e)])}else{const d=Ot(.5,l)-Math.PI/2;f.push([Ot(o,l)+t+.9*i*Math.cos(d-e),Ot(o,l)+r+.9*s*Math.sin(d-e)]);const g=2*Math.PI+d-.01;for(let m=d;m<g;m+=e){const y=[Ot(o,l)+t+i*Math.cos(m),Ot(o,l)+r+s*Math.sin(m)];h.push(y),f.push(y)}f.push([Ot(o,l)+t+i*Math.cos(d+2*Math.PI+.5*c),Ot(o,l)+r+s*Math.sin(d+2*Math.PI+.5*c)]),f.push([Ot(o,l)+t+.98*i*Math.cos(d+c),Ot(o,l)+r+.98*s*Math.sin(d+c)]),f.push([Ot(o,l)+t+.9*i*Math.cos(d+.5*c),Ot(o,l)+r+.9*s*Math.sin(d+.5*c)])}return[f,h]}function hx(e,t,r,i,s,o,c,l,h){const f=o+Ot(.1,h),d=[];d.push([Ot(l,h)+t+.9*i*Math.cos(f-e),Ot(l,h)+r+.9*s*Math.sin(f-e)]);for(let g=f;g<=c;g+=e)d.push([Ot(l,h)+t+i*Math.cos(g),Ot(l,h)+r+s*Math.sin(g)]);return d.push([t+i*Math.cos(c),r+s*Math.sin(c)]),d.push([t+i*Math.cos(c),r+s*Math.sin(c)]),Cu(d,null,h)}function TF(e,t,r,i,s,o,c,l){const h=[],f=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+.3];let d=[0,0];const g=l.disableMultiStroke?1:2,m=l.preserveVertices;for(let y=0;y<g;y++)y===0?h.push({op:"move",data:[c[0],c[1]]}):h.push({op:"move",data:[c[0]+(m?0:Ot(f[0],l)),c[1]+(m?0:Ot(f[0],l))]}),d=m?[s,o]:[s+Ot(f[y],l),o+Ot(f[y],l)],h.push({op:"bcurveTo",data:[e+Ot(f[y],l),t+Ot(f[y],l),r+Ot(f[y],l),i+Ot(f[y],l),d[0],d[1]]});return h}function bo(e){return[...e]}function fx(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(bo(e[0]),bo(e[1]),bo(e[2]),bo(e[2]));else{const s=[];s.push(e[0],e[0]);for(let l=1;l<e.length;l++)s.push(e[l]),l===e.length-1&&s.push(e[l]);const o=[],c=1-t;i.push(bo(s[0]));for(let l=1;l+2<s.length;l++){const h=s[l];o[0]=[h[0],h[1]],o[1]=[h[0]+(c*s[l+1][0]-c*s[l-1][0])/6,h[1]+(c*s[l+1][1]-c*s[l-1][1])/6],o[2]=[s[l+1][0]+(c*s[l][0]-c*s[l+2][0])/6,s[l+1][1]+(c*s[l][1]-c*s[l+2][1])/6],o[3]=[s[l+1][0],s[l+1][1]],i.push(o[1],o[2],o[3])}}return i}function jc(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function EF(e,t,r){const i=jc(t,r);if(i===0)return jc(e,t);let s=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return s=Math.max(0,Math.min(1,s)),jc(e,Qi(t,r,s))}function Qi(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function Qd(e,t,r,i){const s=i||[];if((function(l,h){const f=l[h+0],d=l[h+1],g=l[h+2],m=l[h+3];let y=3*d[0]-2*f[0]-m[0];y*=y;let b=3*d[1]-2*f[1]-m[1];b*=b;let C=3*g[0]-2*m[0]-f[0];C*=C;let k=3*g[1]-2*m[1]-f[1];return k*=k,y<C&&(y=C),b<k&&(b=k),y+b})(e,t)<r){const l=e[t+0];s.length?(o=s[s.length-1],c=l,Math.sqrt(jc(o,c))>1&&s.push(l)):s.push(l),s.push(e[t+3])}else{const h=e[t+0],f=e[t+1],d=e[t+2],g=e[t+3],m=Qi(h,f,.5),y=Qi(f,d,.5),b=Qi(d,g,.5),C=Qi(m,y,.5),k=Qi(y,b,.5),S=Qi(C,k,.5);Qd([h,m,C,S],0,r,s),Qd([S,k,b,g],0,r,s)}var o,c;return s}function LF(e,t){return ku(e,0,e.length,t)}function ku(e,t,r,i,s){const o=s||[],c=e[t],l=e[r-1];let h=0,f=1;for(let d=t+1;d<r-1;++d){const g=EF(e[d],c,l);g>h&&(h=g,f=d)}return Math.sqrt(h)>i?(ku(e,t,f+1,i,o),ku(e,f,r,i,o)):(o.length||o.push(c),o.push(l)),o}function id(e,t=.15,r){const i=[],s=(e.length-1)/3;for(let o=0;o<s;o++)Qd(e,3*o,t,i);return r&&r>0?ku(i,0,i.length,r):i}const vr="none";class _u{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,s,o){const c=this._o(o);return this._d("line",[_b(t,r,i,s,c)],c)}rectangle(t,r,i,s,o){const c=this._o(o),l=[],h=SF(t,r,i,s,c);if(c.fill){const f=[[t,r],[t+i,r],[t+i,r+s],[t,r+s]];c.fillStyle==="solid"?l.push(nd([f],c)):l.push(Ua([f],c))}return c.stroke!==vr&&l.push(h),this._d("rectangle",l,c)}ellipse(t,r,i,s,o){const c=this._o(o),l=[],h=Sb(i,s,c),f=Gd(t,r,c,h);if(c.fill)if(c.fillStyle==="solid"){const d=Gd(t,r,c,h).opset;d.type="fillPath",l.push(d)}else l.push(Ua([f.estimatedPoints],c));return c.stroke!==vr&&l.push(f.opset),this._d("ellipse",l,c)}circle(t,r,i,s){const o=this.ellipse(t,r,i,i,s);return o.shape="circle",o}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[zc(t,!1,i)],i)}arc(t,r,i,s,o,c,l=!1,h){const f=this._o(h),d=[],g=ox(t,r,i,s,o,c,l,!0,f);if(l&&f.fill)if(f.fillStyle==="solid"){const m=Object.assign({},f);m.disableMultiStroke=!0;const y=ox(t,r,i,s,o,c,!0,!1,m);y.type="fillPath",d.push(y)}else d.push((function(m,y,b,C,k,S,_){const E=m,M=y;let B=Math.abs(b/2),L=Math.abs(C/2);B+=Ot(.01*B,_),L+=Ot(.01*L,_);let F=k,V=S;for(;F<0;)F+=2*Math.PI,V+=2*Math.PI;V-F>2*Math.PI&&(F=0,V=2*Math.PI);const et=(V-F)/_.curveStepCount,tt=[];for(let G=F;G<=V;G+=et)tt.push([E+B*Math.cos(G),M+L*Math.sin(G)]);return tt.push([E+B*Math.cos(V),M+L*Math.sin(V)]),tt.push([E,M]),Ua([tt],_)})(t,r,i,s,o,c,f));return f.stroke!==vr&&d.push(g),this._d("arc",d,f)}curve(t,r){const i=this._o(r),s=[],o=sx(t,i);if(i.fill&&i.fill!==vr)if(i.fillStyle==="solid"){const c=sx(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(c.ops)})}else{const c=[],l=t;if(l.length){const h=typeof l[0][0]=="number"?[l]:l;for(const f of h)f.length<3?c.push(...f):f.length===3?c.push(...id(fx([f[0],f[0],f[1],f[2]]),10,(1+i.roughness)/2)):c.push(...id(fx(f),10,(1+i.roughness)/2))}c.length&&s.push(Ua([c],i))}return i.stroke!==vr&&s.push(o),this._d("curve",s,i)}polygon(t,r){const i=this._o(r),s=[],o=zc(t,!0,i);return i.fill&&(i.fillStyle==="solid"?s.push(nd([t],i)):s.push(Ua([t],i))),i.stroke!==vr&&s.push(o),this._d("polygon",s,i)}path(t,r){const i=this._o(r),s=[];if(!t)return this._d("path",s,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=i.fill&&i.fill!=="transparent"&&i.fill!==vr,c=i.stroke!==vr,l=!!(i.simplification&&i.simplification<1),h=(function(d,g,m){const y=Cb(wb(ag(d))),b=[];let C=[],k=[0,0],S=[];const _=()=>{S.length>=4&&C.push(...id(S,g)),S=[]},E=()=>{_(),C.length&&(b.push(C),C=[])};for(const{key:B,data:L}of y)switch(B){case"M":E(),k=[L[0],L[1]],C.push(k);break;case"L":_(),C.push([L[0],L[1]]);break;case"C":if(!S.length){const F=C.length?C[C.length-1]:k;S.push([F[0],F[1]])}S.push([L[0],L[1]]),S.push([L[2],L[3]]),S.push([L[4],L[5]]);break;case"Z":_(),C.push([k[0],k[1]])}if(E(),!m)return b;const M=[];for(const B of b){const L=LF(B,m);L.length&&M.push(L)}return M})(t,1,l?4-4*(i.simplification||1):(1+i.roughness)/2),f=lx(t,i);if(o)if(i.fillStyle==="solid")if(h.length===1){const d=lx(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else s.push(nd(h,i));else s.push(Ua(h,i));return c&&(l?h.forEach((d=>{s.push(zc(d,!1,i))})):s.push(f)),this._d("path",s,i)}opsToPath(t,r){let i="";for(const s of t.ops){const o=typeof r=="number"&&r>=0?s.data.map((c=>+c.toFixed(r))):s.data;switch(s.op){case"move":i+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":i+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":i+=`L${o[0]} ${o[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,s=[];for(const o of r){let c=null;switch(o.type){case"path":c={d:this.opsToPath(o),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:vr};break;case"fillPath":c={d:this.opsToPath(o),stroke:vr,strokeWidth:0,fill:i.fill||vr};break;case"fillSketch":c=this.fillSketch(o,i)}c&&s.push(c)}return s}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||vr,strokeWidth:i,fill:vr}}_mergedShape(t){return t.filter(((r,i)=>i===0||r.op!=="move"))}}class MF{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new _u(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),s=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(const c of r)switch(c.type){case"path":s.save(),s.strokeStyle=i.stroke==="none"?"transparent":i.stroke,s.lineWidth=i.strokeWidth,i.strokeLineDash&&s.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(s.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(s,c,o),s.restore();break;case"fillPath":{s.save(),s.fillStyle=i.fill||"";const l=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(s,c,o,l),s.restore();break}case"fillSketch":this.fillSketch(s,c,i)}}fillSketch(t,r,i){let s=i.fillWeight;s<0&&(s=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=s,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,s="nonzero"){t.beginPath();for(const o of r.ops){const c=typeof i=="number"&&i>=0?o.data.map((l=>+l.toFixed(i))):o.data;switch(o.op){case"move":t.moveTo(c[0],c[1]);break;case"bcurveTo":t.bezierCurveTo(c[0],c[1],c[2],c[3],c[4],c[5]);break;case"lineTo":t.lineTo(c[0],c[1])}}r.type==="fillPath"?t.fill(s):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,s,o){const c=this.gen.line(t,r,i,s,o);return this.draw(c),c}rectangle(t,r,i,s,o){const c=this.gen.rectangle(t,r,i,s,o);return this.draw(c),c}ellipse(t,r,i,s,o){const c=this.gen.ellipse(t,r,i,s,o);return this.draw(c),c}circle(t,r,i,s){const o=this.gen.circle(t,r,i,s);return this.draw(o),o}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,s,o,c,l=!1,h){const f=this.gen.arc(t,r,i,s,o,c,l,h);return this.draw(f),f}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 Tc="http://www.w3.org/2000/svg";class AF{constructor(t,r){this.svg=t,this.gen=new _u(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),s=this.svg.ownerDocument||window.document,o=s.createElementNS(Tc,"g"),c=t.options.fixedDecimalPlaceDigits;for(const l of r){let h=null;switch(l.type){case"path":h=s.createElementNS(Tc,"path"),h.setAttribute("d",this.opsToPath(l,c)),h.setAttribute("stroke",i.stroke),h.setAttribute("stroke-width",i.strokeWidth+""),h.setAttribute("fill","none"),i.strokeLineDash&&h.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&h.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":h=s.createElementNS(Tc,"path"),h.setAttribute("d",this.opsToPath(l,c)),h.setAttribute("stroke","none"),h.setAttribute("stroke-width","0"),h.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||h.setAttribute("fill-rule","evenodd");break;case"fillSketch":h=this.fillSketch(s,l,i)}h&&o.appendChild(h)}return o}fillSketch(t,r,i){let s=i.fillWeight;s<0&&(s=i.strokeWidth/2);const o=t.createElementNS(Tc,"path");return o.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),o.setAttribute("stroke",i.fill||""),o.setAttribute("stroke-width",s+""),o.setAttribute("fill","none"),i.fillLineDash&&o.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,s,o){const c=this.gen.line(t,r,i,s,o);return this.draw(c)}rectangle(t,r,i,s,o){const c=this.gen.rectangle(t,r,i,s,o);return this.draw(c)}ellipse(t,r,i,s,o){const c=this.gen.ellipse(t,r,i,s,o);return this.draw(c)}circle(t,r,i,s){const o=this.gen.circle(t,r,i,s);return this.draw(o)}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,s,o,c,l=!1,h){const f=this.gen.arc(t,r,i,s,o,c,l,h);return this.draw(f)}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 vt={canvas:(e,t)=>new MF(e,t),svg:(e,t)=>new AF(e,t),generator:e=>new _u(e),newSeed:()=>_u.newSeed()},Dt=w(async(e,t,r)=>{var g,m;let i;const s=t.useHtmlLabels||Te((g=Kt())==null?void 0:g.htmlLabels);r?i=r:i="node default";const o=e.insert("g").attr("class",i).attr("id",t.domId||t.id),c=o.insert("g").attr("class","label").attr("style",Ue(t.labelStyle));let l;t.label===void 0?l="":l=typeof t.label=="string"?t.label:t.label[0];const h=await Ti(c,Rr(ga(l),Kt()),{useHtmlLabels:s,width:t.width||((m=Kt().flowchart)==null?void 0:m.wrappingWidth),cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img});let f=h.getBBox();const d=((t==null?void 0:t.padding)??0)/2;if(s){const y=h.children[0],b=Yt(h),C=y.getElementsByTagName("img");if(C){const k=l.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...C].map(S=>new Promise(_=>{function E(){if(S.style.display="flex",S.style.flexDirection="column",k){const M=Kt().fontSize?Kt().fontSize:window.getComputedStyle(document.body).fontSize,B=5,[L=zx.fontSize]=qu(M),F=L*B+"px";S.style.minWidth=F,S.style.maxWidth=F}else S.style.width="100%";_(S)}w(E,"setupImage"),setTimeout(()=>{S.complete&&E()}),S.addEventListener("error",E),S.addEventListener("load",E)})))}f=y.getBoundingClientRect(),b.attr("width",f.width),b.attr("height",f.height)}return s?c.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):c.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&c.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),c.insert("rect",":first-child"),{shapeSvg:o,bbox:f,halfPadding:d,label:c}},"labelHelper"),ad=w(async(e,t,r)=>{var h,f,d,g,m,y;const i=r.useHtmlLabels||Te((f=(h=Kt())==null?void 0:h.flowchart)==null?void 0:f.htmlLabels),s=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),o=await Ti(s,Rr(ga(t),Kt()),{useHtmlLabels:i,width:r.width||((g=(d=Kt())==null?void 0:d.flowchart)==null?void 0:g.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let c=o.getBBox();const l=r.padding/2;if(Te((y=(m=Kt())==null?void 0:m.flowchart)==null?void 0:y.htmlLabels)){const b=o.children[0],C=Yt(o);c=b.getBoundingClientRect(),C.attr("width",c.width),C.attr("height",c.height)}return i?s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):s.attr("transform","translate(0, "+-c.height/2+")"),r.centerLabel&&s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:e,bbox:c,halfPadding:l,label:s}},"insertLabel"),St=w((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),$t=w((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function Ut(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}w(Ut,"createPathFromPoints");function _i(e,t,r,i,s,o){const c=[],h=r-e,f=i-t,d=h/o,g=2*Math.PI/d,m=t+f/2;for(let y=0;y<=50;y++){const b=y/50,C=e+b*h,k=m+s*Math.sin(g*(C-e));c.push({x:C,y:k})}return c}w(_i,"generateFullSineWavePoints");function Yo(e,t,r,i,s,o){const c=[],l=s*Math.PI/180,d=(o*Math.PI/180-l)/(i-1);for(let g=0;g<i;g++){const m=l+g*d,y=e+r*Math.cos(m),b=t+r*Math.sin(m);c.push({x:-y,y:-b})}return c}w(Yo,"generateCirclePoints");var BF=w((e,t)=>{var r=e.x,i=e.y,s=t.x-r,o=t.y-i,c=e.width/2,l=e.height/2,h,f;return Math.abs(o)*c>Math.abs(s)*l?(o<0&&(l=-l),h=o===0?0:l*s/o,f=l):(s<0&&(c=-c),h=c,f=s===0?0:c*o/s),{x:r+h,y:i+f}},"intersectRect"),vs=BF;function Eb(e,t){t&&e.attr("style",t)}w(Eb,"applyStyle");async function Lb(e){const t=Yt(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=t.append("xhtml:div"),i=Kt();let s=e.label;e.label&&ls(e.label)&&(s=await fp(e.label.replace(gs.lineBreakRegex,`
|
|
226
|
+
`),i));const c='<span class="'+(e.isNode?"nodeLabel":"edgeLabel")+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+s+"</span>";return r.html(Rr(c,i)),Eb(r,e.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}w(Lb,"addHtmlLabel");var $F=w(async(e,t,r,i)=>{let s=e||"";if(typeof s=="object"&&(s=s[0]),Te(Kt().flowchart.htmlLabels)){s=s.replace(/\\n|\n/g,"<br />"),J.info("vertexText"+s);const o={isNode:i,label:ga(s).replace(/fa[blrs]?:fa-[\w-]+/g,l=>`<i class='${l.replace(":"," ")}'></i>`),labelStyle:t&&t.replace("fill:","color:")};return await Lb(o)}else{const o=document.createElementNS("http://www.w3.org/2000/svg","text");o.setAttribute("style",t.replace("color:","fill:"));let c=[];typeof s=="string"?c=s.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(s)?c=s:c=[];for(const l of c){const h=document.createElementNS("http://www.w3.org/2000/svg","tspan");h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),h.setAttribute("dy","1em"),h.setAttribute("x","0"),r?h.setAttribute("class","title-row"):h.setAttribute("class","row"),h.textContent=l.trim(),o.appendChild(h)}return o}},"createLabel"),ra=$F,Ei=w((e,t,r,i,s)=>["M",e+s,t,"H",e+r-s,"A",s,s,0,0,1,e+r,t+s,"V",t+i-s,"A",s,s,0,0,1,e+r-s,t+i,"H",e+s,"A",s,s,0,0,1,e,t+i-s,"V",t+s,"A",s,s,0,0,1,e+s,t,"Z"].join(" "),"createRoundedRectPathD"),Mb=w(async(e,t)=>{J.info("Creating subgraph rect for ",t.id,t);const r=Kt(),{themeVariables:i,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:c}=i,{labelStyles:l,nodeStyles:h,borderStyles:f,backgroundStyles:d}=Ct(t),g=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),m=Te(r.flowchart.htmlLabels),y=g.insert("g").attr("class","cluster-label "),b=await Ti(y,t.label,{style:t.labelStyle,useHtmlLabels:m,isNode:!0});let C=b.getBBox();if(Te(r.flowchart.htmlLabels)){const F=b.children[0],V=Yt(b);C=F.getBoundingClientRect(),V.attr("width",C.width),V.attr("height",C.height)}const k=t.width<=C.width+t.padding?C.width+t.padding:t.width;t.width<=C.width+t.padding?t.diff=(k-t.width)/2-t.padding:t.diff=-t.padding;const S=t.height,_=t.x-k/2,E=t.y-S/2;J.trace("Data ",t,JSON.stringify(t));let M;if(t.look==="handDrawn"){const F=vt.svg(g),V=wt(t,{roughness:.7,fill:o,stroke:c,fillWeight:3,seed:s}),et=F.path(Ei(_,E,k,S,0),V);M=g.insert(()=>(J.debug("Rough node insert CXC",et),et),":first-child"),M.select("path:nth-child(2)").attr("style",f.join(";")),M.select("path").attr("style",d.join(";").replace("fill","stroke"))}else M=g.insert("rect",":first-child"),M.attr("style",h).attr("rx",t.rx).attr("ry",t.ry).attr("x",_).attr("y",E).attr("width",k).attr("height",S);const{subGraphTitleTopMargin:B}=Op(r);if(y.attr("transform",`translate(${t.x-C.width/2}, ${t.y-t.height/2+B})`),l){const F=y.select("span");F&&F.attr("style",l)}const L=M.node().getBBox();return t.offsetX=0,t.width=L.width,t.height=L.height,t.offsetY=C.height-t.padding/2,t.intersect=function(F){return vs(t,F)},{cluster:g,labelBBox:C}},"rect"),FF=w((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.id),i=r.insert("rect",":first-child"),s=0*t.padding,o=s/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const c=i.node().getBBox();return t.width=c.width,t.height=c.height,t.intersect=function(l){return vs(t,l)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),RF=w(async(e,t)=>{const r=Kt(),{themeVariables:i,handDrawnSeed:s}=r,{altBackground:o,compositeBackground:c,compositeTitleBackground:l,nodeBorder:h}=i,f=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),d=f.insert("g",":first-child"),g=f.insert("g").attr("class","cluster-label");let m=f.append("rect");const y=g.node().appendChild(await ra(t.label,t.labelStyle,void 0,!0));let b=y.getBBox();if(Te(r.flowchart.htmlLabels)){const et=y.children[0],tt=Yt(y);b=et.getBoundingClientRect(),tt.attr("width",b.width),tt.attr("height",b.height)}const C=0*t.padding,k=C/2,S=(t.width<=b.width+t.padding?b.width+t.padding:t.width)+C;t.width<=b.width+t.padding?t.diff=(S-t.width)/2-t.padding:t.diff=-t.padding;const _=t.height+C,E=t.height+C-b.height-6,M=t.x-S/2,B=t.y-_/2;t.width=S;const L=t.y-t.height/2-k+b.height+2;let F;if(t.look==="handDrawn"){const et=t.cssClasses.includes("statediagram-cluster-alt"),tt=vt.svg(f),G=t.rx||t.ry?tt.path(Ei(M,B,S,_,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:h,seed:s}):tt.rectangle(M,B,S,_,{seed:s});F=f.insert(()=>G,":first-child");const ot=tt.rectangle(M,L,S,E,{fill:et?o:c,fillStyle:et?"hachure":"solid",stroke:h,seed:s});F=f.insert(()=>G,":first-child"),m=f.insert(()=>ot)}else F=d.insert("rect",":first-child"),F.attr("class","outer").attr("x",M).attr("y",B).attr("width",S).attr("height",_).attr("data-look",t.look),m.attr("class","inner").attr("x",M).attr("y",L).attr("width",S).attr("height",E);g.attr("transform",`translate(${t.x-b.width/2}, ${B+1-(Te(r.flowchart.htmlLabels)?0:3)})`);const V=F.node().getBBox();return t.height=V.height,t.offsetX=0,t.offsetY=b.height-t.padding/2,t.labelBBox=b,t.intersect=function(et){return vs(t,et)},{cluster:f,labelBBox:b}},"roundedWithTitle"),DF=w(async(e,t)=>{J.info("Creating subgraph rect for ",t.id,t);const r=Kt(),{themeVariables:i,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:c}=i,{labelStyles:l,nodeStyles:h,borderStyles:f,backgroundStyles:d}=Ct(t),g=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),m=Te(r.flowchart.htmlLabels),y=g.insert("g").attr("class","cluster-label "),b=await Ti(y,t.label,{style:t.labelStyle,useHtmlLabels:m,isNode:!0,width:t.width});let C=b.getBBox();if(Te(r.flowchart.htmlLabels)){const F=b.children[0],V=Yt(b);C=F.getBoundingClientRect(),V.attr("width",C.width),V.attr("height",C.height)}const k=t.width<=C.width+t.padding?C.width+t.padding:t.width;t.width<=C.width+t.padding?t.diff=(k-t.width)/2-t.padding:t.diff=-t.padding;const S=t.height,_=t.x-k/2,E=t.y-S/2;J.trace("Data ",t,JSON.stringify(t));let M;if(t.look==="handDrawn"){const F=vt.svg(g),V=wt(t,{roughness:.7,fill:o,stroke:c,fillWeight:4,seed:s}),et=F.path(Ei(_,E,k,S,t.rx),V);M=g.insert(()=>(J.debug("Rough node insert CXC",et),et),":first-child"),M.select("path:nth-child(2)").attr("style",f.join(";")),M.select("path").attr("style",d.join(";").replace("fill","stroke"))}else M=g.insert("rect",":first-child"),M.attr("style",h).attr("rx",t.rx).attr("ry",t.ry).attr("x",_).attr("y",E).attr("width",k).attr("height",S);const{subGraphTitleTopMargin:B}=Op(r);if(y.attr("transform",`translate(${t.x-C.width/2}, ${t.y-t.height/2+B})`),l){const F=y.select("span");F&&F.attr("style",l)}const L=M.node().getBBox();return t.offsetX=0,t.width=L.width,t.height=L.height,t.offsetY=C.height-t.padding/2,t.intersect=function(F){return vs(t,F)},{cluster:g,labelBBox:C}},"kanbanSection"),PF=w((e,t)=>{const r=Kt(),{themeVariables:i,handDrawnSeed:s}=r,{nodeBorder:o}=i,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),l=c.insert("g",":first-child"),h=0*t.padding,f=t.width+h;t.diff=-t.padding;const d=t.height+h,g=t.x-f/2,m=t.y-d/2;t.width=f;let y;if(t.look==="handDrawn"){const k=vt.svg(c).rectangle(g,m,f,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:s});y=c.insert(()=>k,":first-child")}else y=l.insert("rect",":first-child"),y.attr("class","divider").attr("x",g).attr("y",m).attr("width",f).attr("height",d).attr("data-look",t.look);const b=y.node().getBBox();return t.height=b.height,t.offsetX=0,t.offsetY=0,t.intersect=function(C){return vs(t,C)},{cluster:c,labelBBox:{}}},"divider"),OF=Mb,IF={rect:Mb,squareRect:OF,roundedWithTitle:RF,noteGroup:FF,divider:PF,kanbanSection:DF},Ab=new Map,NF=w(async(e,t)=>{const r=t.shape||"rect",i=await IF[r](e,t);return Ab.set(t.id,i),i},"insertCluster"),TO=w(()=>{Ab=new Map},"clear");function Bb(e,t){return e.intersect(t)}w(Bb,"intersectNode");var zF=Bb;function $b(e,t,r,i){var s=e.x,o=e.y,c=s-i.x,l=o-i.y,h=Math.sqrt(t*t*l*l+r*r*c*c),f=Math.abs(t*r*c/h);i.x<s&&(f=-f);var d=Math.abs(t*r*l/h);return i.y<o&&(d=-d),{x:s+f,y:o+d}}w($b,"intersectEllipse");var Fb=$b;function Rb(e,t,r){return Fb(e,t,t,r)}w(Rb,"intersectCircle");var jF=Rb;function Db(e,t,r,i){{const s=t.y-e.y,o=e.x-t.x,c=t.x*e.y-e.x*t.y,l=s*r.x+o*r.y+c,h=s*i.x+o*i.y+c,f=1e-6;if(l!==0&&h!==0&&Kd(l,h))return;const d=i.y-r.y,g=r.x-i.x,m=i.x*r.y-r.x*i.y,y=d*e.x+g*e.y+m,b=d*t.x+g*t.y+m;if(Math.abs(y)<f&&Math.abs(b)<f&&Kd(y,b))return;const C=s*g-d*o;if(C===0)return;const k=Math.abs(C/2);let S=o*m-g*c;const _=S<0?(S-k)/C:(S+k)/C;S=d*c-s*m;const E=S<0?(S-k)/C:(S+k)/C;return{x:_,y:E}}}w(Db,"intersectLine");function Kd(e,t){return e*t>0}w(Kd,"sameSign");var WF=Db;function Pb(e,t,r){let i=e.x,s=e.y,o=[],c=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){c=Math.min(c,d.x),l=Math.min(l,d.y)}):(c=Math.min(c,t.x),l=Math.min(l,t.y));let h=i-e.width/2-c,f=s-e.height/2-l;for(let d=0;d<t.length;d++){let g=t[d],m=t[d<t.length-1?d+1:0],y=WF(e,r,{x:h+g.x,y:f+g.y},{x:h+m.x,y:f+m.y});y&&o.push(y)}return o.length?(o.length>1&&o.sort(function(d,g){let m=d.x-r.x,y=d.y-r.y,b=Math.sqrt(m*m+y*y),C=g.x-r.x,k=g.y-r.y,S=Math.sqrt(C*C+k*k);return b<S?-1:b===S?0:1}),o[0]):e}w(Pb,"intersectPolygon");var HF=Pb,ft={node:zF,circle:jF,ellipse:Fb,polygon:HF,rect:vs};function Ob(e,t){const{labelStyles:r}=Ct(t);t.labelStyle=r;const i=$t(t);let s=i;i||(s="anchor");const o=e.insert("g").attr("class",s).attr("id",t.domId||t.id),c=1,{cssStyles:l}=t,h=vt.svg(o),f=wt(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(f.roughness=0);const d=h.circle(0,0,c*2,f),g=o.insert(()=>d,":first-child");return g.attr("class","anchor").attr("style",Ue(l)),St(t,g),t.intersect=function(m){return J.info("Circle intersect",t,c,m),ft.circle(t,c,m)},o}w(Ob,"anchor");function Zd(e,t,r,i,s,o,c){const h=(e+r)/2,f=(t+i)/2,d=Math.atan2(i-t,r-e),g=(r-e)/2,m=(i-t)/2,y=g/s,b=m/o,C=Math.sqrt(y**2+b**2);if(C>1)throw new Error("The given radii are too small to create an arc between the points.");const k=Math.sqrt(1-C**2),S=h+k*o*Math.sin(d)*(c?-1:1),_=f-k*s*Math.cos(d)*(c?-1:1),E=Math.atan2((t-_)/o,(e-S)/s);let B=Math.atan2((i-_)/o,(r-S)/s)-E;c&&B<0&&(B+=2*Math.PI),!c&&B>0&&(B-=2*Math.PI);const L=[];for(let F=0;F<20;F++){const V=F/19,et=E+V*B,tt=S+s*Math.cos(et),G=_+o*Math.sin(et);L.push({x:tt,y:G})}return L}w(Zd,"generateArcPoints");async function Ib(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Dt(e,t,$t(t)),c=o.width+t.padding+20,l=o.height+t.padding,h=l/2,f=h/(2.5+l/50),{cssStyles:d}=t,g=[{x:c/2,y:-l/2},{x:-c/2,y:-l/2},...Zd(-c/2,-l/2,-c/2,l/2,f,h,!1),{x:c/2,y:l/2},...Zd(c/2,l/2,c/2,-l/2,f,h,!0)],m=vt.svg(s),y=wt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=Ut(g),C=m.path(b,y),k=s.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),k.attr("transform",`translate(${f/2}, 0)`),St(t,k),t.intersect=function(S){return ft.polygon(t,g,S)},s}w(Ib,"bowTieRect");function Li(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}w(Li,"insertPolygonShape");async function Nb(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Dt(e,t,$t(t)),c=o.height+t.padding,l=12,h=o.width+t.padding+l,f=0,d=h,g=-c,m=0,y=[{x:f+l,y:g},{x:d,y:g},{x:d,y:m},{x:f,y:m},{x:f,y:g+l},{x:f+l,y:g}];let b;const{cssStyles:C}=t;if(t.look==="handDrawn"){const k=vt.svg(s),S=wt(t,{}),_=Ut(y),E=k.path(_,S);b=s.insert(()=>E,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),C&&b.attr("style",C)}else b=Li(s,h,c,y);return i&&b.attr("style",i),St(t,b),t.intersect=function(k){return ft.polygon(t,y,k)},s}w(Nb,"card");function zb(e,t){const{nodeStyles:r}=Ct(t);t.label="";const i=e.insert("g").attr("class",$t(t)).attr("id",t.domId??t.id),{cssStyles:s}=t,o=Math.max(28,t.width??0),c=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}],l=vt.svg(i),h=wt(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const f=Ut(c),d=l.path(f,h),g=i.insert(()=>d,":first-child");return s&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",s),r&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(m){return ft.polygon(t,c,m)},i}w(zb,"choice");async function sg(e,t,r){const{labelStyles:i,nodeStyles:s}=Ct(t);t.labelStyle=i;const{shapeSvg:o,bbox:c,halfPadding:l}=await Dt(e,t,$t(t)),h=(r==null?void 0:r.padding)??l,f=c.width/2+h;let d;const{cssStyles:g}=t;if(t.look==="handDrawn"){const m=vt.svg(o),y=wt(t,{}),b=m.circle(0,0,f*2,y);d=o.insert(()=>b,":first-child"),d.attr("class","basic label-container").attr("style",Ue(g))}else d=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",f).attr("cx",0).attr("cy",0);return St(t,d),t.calcIntersect=function(m,y){const b=m.width/2;return ft.circle(m,b,y)},t.intersect=function(m){return J.info("Circle intersect",t,f,m),ft.circle(t,f,m)},o}w(sg,"circle");function jb(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,s={x:i/2*t,y:i/2*r},o={x:-(i/2)*t,y:i/2*r},c={x:-(i/2)*t,y:-(i/2)*r},l={x:i/2*t,y:-(i/2)*r};return`M ${o.x},${o.y} L ${l.x},${l.y}
|
|
227
|
+
M ${s.x},${s.y} L ${c.x},${c.y}`}w(jb,"createLine");function Wb(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r,t.label="";const s=e.insert("g").attr("class",$t(t)).attr("id",t.domId??t.id),o=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:c}=t,l=vt.svg(s),h=wt(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const f=l.circle(0,0,o*2,h),d=jb(o),g=l.path(d,h),m=s.insert(()=>f,":first-child");return m.insert(()=>g),c&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",c),i&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",i),St(t,m),t.intersect=function(y){return J.info("crossedCircle intersect",t,{radius:o,point:y}),ft.circle(t,o,y)},s}w(Wb,"crossedCircle");function On(e,t,r,i=100,s=0,o=180){const c=[],l=s*Math.PI/180,d=(o*Math.PI/180-l)/(i-1);for(let g=0;g<i;g++){const m=l+g*d,y=e+r*Math.cos(m),b=t+r*Math.sin(m);c.push({x:-y,y:-b})}return c}w(On,"generateCirclePoints");async function Hb(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=o.width+(t.padding??0),h=o.height+(t.padding??0),f=Math.max(5,h*.1),{cssStyles:d}=t,g=[...On(l/2,-h/2,f,30,-90,0),{x:-l/2-f,y:f},...On(l/2+f*2,-f,f,20,-180,-270),...On(l/2+f*2,f,f,20,-90,-180),{x:-l/2-f,y:-h/2},...On(l/2,h/2,f,20,0,90)],m=[{x:l/2,y:-h/2-f},{x:-l/2,y:-h/2-f},...On(l/2,-h/2,f,20,-90,0),{x:-l/2-f,y:-f},...On(l/2+l*.1,-f,f,20,-180,-270),...On(l/2+l*.1,f,f,20,-90,-180),{x:-l/2-f,y:h/2},...On(l/2,h/2,f,20,0,90),{x:-l/2,y:h/2+f},{x:l/2,y:h/2+f}],y=vt.svg(s),b=wt(t,{fill:"none"});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const k=Ut(g).replace("Z",""),S=y.path(k,b),_=Ut(m),E=y.path(_,{...b}),M=s.insert("g",":first-child");return M.insert(()=>E,":first-child").attr("stroke-opacity",0),M.insert(()=>S,":first-child"),M.attr("class","text"),d&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",i),M.attr("transform",`translate(${f}, 0)`),c.attr("transform",`translate(${-l/2+f-(o.x-(o.left??0))},${-h/2+(t.padding??0)/2-(o.y-(o.top??0))})`),St(t,M),t.intersect=function(B){return ft.polygon(t,m,B)},s}w(Hb,"curlyBraceLeft");function In(e,t,r,i=100,s=0,o=180){const c=[],l=s*Math.PI/180,d=(o*Math.PI/180-l)/(i-1);for(let g=0;g<i;g++){const m=l+g*d,y=e+r*Math.cos(m),b=t+r*Math.sin(m);c.push({x:y,y:b})}return c}w(In,"generateCirclePoints");async function qb(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=o.width+(t.padding??0),h=o.height+(t.padding??0),f=Math.max(5,h*.1),{cssStyles:d}=t,g=[...In(l/2,-h/2,f,20,-90,0),{x:l/2+f,y:-f},...In(l/2+f*2,-f,f,20,-180,-270),...In(l/2+f*2,f,f,20,-90,-180),{x:l/2+f,y:h/2},...In(l/2,h/2,f,20,0,90)],m=[{x:-l/2,y:-h/2-f},{x:l/2,y:-h/2-f},...In(l/2,-h/2,f,20,-90,0),{x:l/2+f,y:-f},...In(l/2+f*2,-f,f,20,-180,-270),...In(l/2+f*2,f,f,20,-90,-180),{x:l/2+f,y:h/2},...In(l/2,h/2,f,20,0,90),{x:l/2,y:h/2+f},{x:-l/2,y:h/2+f}],y=vt.svg(s),b=wt(t,{fill:"none"});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const k=Ut(g).replace("Z",""),S=y.path(k,b),_=Ut(m),E=y.path(_,{...b}),M=s.insert("g",":first-child");return M.insert(()=>E,":first-child").attr("stroke-opacity",0),M.insert(()=>S,":first-child"),M.attr("class","text"),d&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",i),M.attr("transform",`translate(${-f}, 0)`),c.attr("transform",`translate(${-l/2+(t.padding??0)/2-(o.x-(o.left??0))},${-h/2+(t.padding??0)/2-(o.y-(o.top??0))})`),St(t,M),t.intersect=function(B){return ft.polygon(t,m,B)},s}w(qb,"curlyBraceRight");function Re(e,t,r,i=100,s=0,o=180){const c=[],l=s*Math.PI/180,d=(o*Math.PI/180-l)/(i-1);for(let g=0;g<i;g++){const m=l+g*d,y=e+r*Math.cos(m),b=t+r*Math.sin(m);c.push({x:-y,y:-b})}return c}w(Re,"generateCirclePoints");async function Ub(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=o.width+(t.padding??0),h=o.height+(t.padding??0),f=Math.max(5,h*.1),{cssStyles:d}=t,g=[...Re(l/2,-h/2,f,30,-90,0),{x:-l/2-f,y:f},...Re(l/2+f*2,-f,f,20,-180,-270),...Re(l/2+f*2,f,f,20,-90,-180),{x:-l/2-f,y:-h/2},...Re(l/2,h/2,f,20,0,90)],m=[...Re(-l/2+f+f/2,-h/2,f,20,-90,-180),{x:l/2-f/2,y:f},...Re(-l/2-f/2,-f,f,20,0,90),...Re(-l/2-f/2,f,f,20,-90,0),{x:l/2-f/2,y:-f},...Re(-l/2+f+f/2,h/2,f,30,-180,-270)],y=[{x:l/2,y:-h/2-f},{x:-l/2,y:-h/2-f},...Re(l/2,-h/2,f,20,-90,0),{x:-l/2-f,y:-f},...Re(l/2+f*2,-f,f,20,-180,-270),...Re(l/2+f*2,f,f,20,-90,-180),{x:-l/2-f,y:h/2},...Re(l/2,h/2,f,20,0,90),{x:-l/2,y:h/2+f},{x:l/2-f-f/2,y:h/2+f},...Re(-l/2+f+f/2,-h/2,f,20,-90,-180),{x:l/2-f/2,y:f},...Re(-l/2-f/2,-f,f,20,0,90),...Re(-l/2-f/2,f,f,20,-90,0),{x:l/2-f/2,y:-f},...Re(-l/2+f+f/2,h/2,f,30,-180,-270)],b=vt.svg(s),C=wt(t,{fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const S=Ut(g).replace("Z",""),_=b.path(S,C),M=Ut(m).replace("Z",""),B=b.path(M,C),L=Ut(y),F=b.path(L,{...C}),V=s.insert("g",":first-child");return V.insert(()=>F,":first-child").attr("stroke-opacity",0),V.insert(()=>_,":first-child"),V.insert(()=>B,":first-child"),V.attr("class","text"),d&&t.look!=="handDrawn"&&V.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&V.selectAll("path").attr("style",i),V.attr("transform",`translate(${f-f/4}, 0)`),c.attr("transform",`translate(${-l/2+(t.padding??0)/2-(o.x-(o.left??0))},${-h/2+(t.padding??0)/2-(o.y-(o.top??0))})`),St(t,V),t.intersect=function(et){return ft.polygon(t,y,et)},s}w(Ub,"curlyBraces");async function Yb(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Dt(e,t,$t(t)),c=80,l=20,h=Math.max(c,(o.width+(t.padding??0)*2)*1.25,(t==null?void 0:t.width)??0),f=Math.max(l,o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=f/2,{cssStyles:g}=t,m=vt.svg(s),y=wt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=h,C=f,k=b-d,S=C/4,_=[{x:k,y:0},{x:S,y:0},{x:0,y:C/2},{x:S,y:C},{x:k,y:C},...Yo(-k,-C/2,d,50,270,90)],E=Ut(_),M=m.path(E,y),B=s.insert(()=>M,":first-child");return B.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&B.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&B.selectChildren("path").attr("style",i),B.attr("transform",`translate(${-h/2}, ${-f/2})`),St(t,B),t.intersect=function(L){return ft.polygon(t,_,L)},s}w(Yb,"curvedTrapezoid");var qF=w((e,t,r,i,s,o)=>[`M${e},${t+o}`,`a${s},${o} 0,0,0 ${r},0`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),UF=w((e,t,r,i,s,o)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),YF=w((e,t,r,i,s,o)=>[`M${e-r/2},${-i/2}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function Vb(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=Math.max(o.width+t.padding,t.width??0),h=l/2,f=h/(2.5+l/50),d=Math.max(o.height+f+t.padding,t.height??0);let g;const{cssStyles:m}=t;if(t.look==="handDrawn"){const y=vt.svg(s),b=UF(0,0,l,d,h,f),C=YF(0,f,l,d,h,f),k=y.path(b,wt(t,{})),S=y.path(C,wt(t,{fill:"none"}));g=s.insert(()=>S,":first-child"),g=s.insert(()=>k,":first-child"),g.attr("class","basic label-container"),m&&g.attr("style",m)}else{const y=qF(0,0,l,d,h,f);g=s.insert("path",":first-child").attr("d",y).attr("class","basic label-container").attr("style",Ue(m)).attr("style",i)}return g.attr("label-offset-y",f),g.attr("transform",`translate(${-l/2}, ${-(d/2+f)})`),St(t,g),c.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${-(o.height/2)+(t.padding??0)/1.5-(o.y-(o.top??0))})`),t.intersect=function(y){const b=ft.rect(t,y),C=b.x-(t.x??0);if(h!=0&&(Math.abs(C)<(t.width??0)/2||Math.abs(C)==(t.width??0)/2&&Math.abs(b.y-(t.y??0))>(t.height??0)/2-f)){let k=f*f*(1-C*C/(h*h));k>0&&(k=Math.sqrt(k)),k=f-k,y.y-(t.y??0)>0&&(k=-k),b.y+=k}return b},s}w(Vb,"cylinder");async function Gb(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=o.width+t.padding,h=o.height+t.padding,f=h*.2,d=-l/2,g=-h/2-f/2,{cssStyles:m}=t,y=vt.svg(s),b=wt(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const C=[{x:d,y:g+f},{x:-d,y:g+f},{x:-d,y:-g},{x:d,y:-g},{x:d,y:g},{x:-d,y:g},{x:-d,y:g+f}],k=y.polygon(C.map(_=>[_.x,_.y]),b),S=s.insert(()=>k,":first-child");return S.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),c.attr("transform",`translate(${d+(t.padding??0)/2-(o.x-(o.left??0))}, ${g+f+(t.padding??0)/2-(o.y-(o.top??0))})`),St(t,S),t.intersect=function(_){return ft.rect(t,_)},s}w(Gb,"dividedRectangle");async function Xb(e,t){var m,y;const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:c}=await Dt(e,t,$t(t)),h=o.width/2+c+5,f=o.width/2+c;let d;const{cssStyles:g}=t;if(t.look==="handDrawn"){const b=vt.svg(s),C=wt(t,{roughness:.2,strokeWidth:2.5}),k=wt(t,{roughness:.2,strokeWidth:1.5}),S=b.circle(0,0,h*2,C),_=b.circle(0,0,f*2,k);d=s.insert("g",":first-child"),d.attr("class",Ue(t.cssClasses)).attr("style",Ue(g)),(m=d.node())==null||m.appendChild(S),(y=d.node())==null||y.appendChild(_)}else{d=s.insert("g",":first-child");const b=d.insert("circle",":first-child"),C=d.insert("circle");d.attr("class","basic label-container").attr("style",i),b.attr("class","outer-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0),C.attr("class","inner-circle").attr("style",i).attr("r",f).attr("cx",0).attr("cy",0)}return St(t,d),t.intersect=function(b){return J.info("DoubleCircle intersect",t,h,b),ft.circle(t,h,b)},s}w(Xb,"doublecircle");function Qb(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=Ct(t);t.label="",t.labelStyle=i;const o=e.insert("g").attr("class",$t(t)).attr("id",t.domId??t.id),c=7,{cssStyles:l}=t,h=vt.svg(o),{nodeBorder:f}=r,d=wt(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(d.roughness=0);const g=h.circle(0,0,c*2,d),m=o.insert(()=>g,":first-child");return m.selectAll("path").attr("style",`fill: ${f} !important;`),l&&l.length>0&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",l),s&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",s),St(t,m),t.intersect=function(y){return J.info("filledCircle intersect",t,{radius:c,point:y}),ft.circle(t,c,y)},o}w(Qb,"filledCircle");async function Kb(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=o.width+(t.padding??0),h=l+o.height,f=l+o.height,d=[{x:0,y:-h},{x:f,y:-h},{x:f/2,y:0}],{cssStyles:g}=t,m=vt.svg(s),y=wt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=Ut(d),C=m.path(b,y),k=s.insert(()=>C,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`);return g&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),t.width=l,t.height=h,St(t,k),c.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-h/2+(t.padding??0)/2+(o.y-(o.top??0))})`),t.intersect=function(S){return J.info("Triangle intersect",t,d,S),ft.polygon(t,d,S)},s}w(Kb,"flippedTriangle");function Zb(e,t,{dir:r,config:{state:i,themeVariables:s}}){const{nodeStyles:o}=Ct(t);t.label="";const c=e.insert("g").attr("class",$t(t)).attr("id",t.domId??t.id),{cssStyles:l}=t;let h=Math.max(70,(t==null?void 0:t.width)??0),f=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(h=Math.max(10,(t==null?void 0:t.width)??0),f=Math.max(70,(t==null?void 0:t.height)??0));const d=-1*h/2,g=-1*f/2,m=vt.svg(c),y=wt(t,{stroke:s.lineColor,fill:s.lineColor});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=m.rectangle(d,g,h,f,y),C=c.insert(()=>b,":first-child");l&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",l),o&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",o),St(t,C);const k=(i==null?void 0:i.padding)??0;return t.width&&t.height&&(t.width+=k/2||0,t.height+=k/2||0),t.intersect=function(S){return ft.rect(t,S)},c}w(Zb,"forkJoin");async function Jb(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=80,o=50,{shapeSvg:c,bbox:l}=await Dt(e,t,$t(t)),h=Math.max(s,l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o,l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=f/2,{cssStyles:g}=t,m=vt.svg(c),y=wt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=[{x:-h/2,y:-f/2},{x:h/2-d,y:-f/2},...Yo(-h/2+d,0,d,50,90,270),{x:h/2-d,y:f/2},{x:-h/2,y:f/2}],C=Ut(b),k=m.path(C,y),S=c.insert(()=>k,":first-child");return S.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),St(t,S),t.intersect=function(_){return J.info("Pill intersect",t,{radius:d,point:_}),ft.polygon(t,b,_)},c}w(Jb,"halfRoundedRectangle");async function tw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Dt(e,t,$t(t)),c=o.height+(t.padding??0),l=o.width+(t.padding??0)*2.5,{cssStyles:h}=t,f=vt.svg(s),d=wt(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let g=l/2;const m=g/6;g=g+m;const y=c/2,b=y/2,C=g-b,k=[{x:-C,y:-y},{x:0,y:-y},{x:C,y:-y},{x:g,y:0},{x:C,y},{x:0,y},{x:-C,y},{x:-g,y:0}],S=Ut(k),_=f.path(S,d),E=s.insert(()=>_,":first-child");return E.attr("class","basic label-container"),h&&t.look!=="handDrawn"&&E.selectChildren("path").attr("style",h),i&&t.look!=="handDrawn"&&E.selectChildren("path").attr("style",i),t.width=l,t.height=c,St(t,E),t.intersect=function(M){return ft.polygon(t,k,M)},s}w(tw,"hexagon");async function ew(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.label="",t.labelStyle=r;const{shapeSvg:s}=await Dt(e,t,$t(t)),o=Math.max(30,(t==null?void 0:t.width)??0),c=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:l}=t,h=vt.svg(s),f=wt(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const d=[{x:0,y:0},{x:o,y:0},{x:0,y:c},{x:o,y:c}],g=Ut(d),m=h.path(g,f),y=s.insert(()=>m,":first-child");return y.attr("class","basic label-container"),l&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",l),i&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",i),y.attr("transform",`translate(${-o/2}, ${-c/2})`),St(t,y),t.intersect=function(b){return J.info("Pill intersect",t,{points:d}),ft.polygon(t,d,b)},s}w(ew,"hourglass");async function rw(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=Ct(t);t.labelStyle=s;const o=t.assetHeight??48,c=t.assetWidth??48,l=Math.max(o,c),h=i==null?void 0:i.wrappingWidth;t.width=Math.max(l,h??0);const{shapeSvg:f,bbox:d,label:g}=await Dt(e,t,"icon-shape default"),m=t.pos==="t",y=l,b=l,{nodeBorder:C}=r,{stylesMap:k}=ms(t),S=-b/2,_=-y/2,E=t.label?8:0,M=vt.svg(f),B=wt(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");const L=M.rectangle(S,_,b,y,B),F=Math.max(b,d.width),V=y+d.height+E,et=M.rectangle(-F/2,-V/2,F,V,{...B,fill:"transparent",stroke:"none"}),tt=f.insert(()=>L,":first-child"),G=f.insert(()=>et);if(t.icon){const ot=f.append("g");ot.html(`<g>${await nl(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const Z=ot.node().getBBox(),q=Z.width,W=Z.height,z=Z.x,U=Z.y;ot.attr("transform",`translate(${-q/2-z},${m?d.height/2+E/2-W/2-U:-d.height/2-E/2-W/2-U})`),ot.attr("style",`color: ${k.get("stroke")??C};`)}return g.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${m?-V/2:V/2-d.height})`),tt.attr("transform",`translate(0,${m?d.height/2+E/2:-d.height/2-E/2})`),St(t,G),t.intersect=function(ot){if(J.info("iconSquare intersect",t,ot),!t.label)return ft.rect(t,ot);const Z=t.x??0,q=t.y??0,W=t.height??0;let z=[];return m?z=[{x:Z-d.width/2,y:q-W/2},{x:Z+d.width/2,y:q-W/2},{x:Z+d.width/2,y:q-W/2+d.height+E},{x:Z+b/2,y:q-W/2+d.height+E},{x:Z+b/2,y:q+W/2},{x:Z-b/2,y:q+W/2},{x:Z-b/2,y:q-W/2+d.height+E},{x:Z-d.width/2,y:q-W/2+d.height+E}]:z=[{x:Z-b/2,y:q-W/2},{x:Z+b/2,y:q-W/2},{x:Z+b/2,y:q-W/2+y},{x:Z+d.width/2,y:q-W/2+y},{x:Z+d.width/2/2,y:q+W/2},{x:Z-d.width/2,y:q+W/2},{x:Z-d.width/2,y:q-W/2+y},{x:Z-b/2,y:q-W/2+y}],ft.polygon(t,z,ot)},f}w(rw,"icon");async function nw(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=Ct(t);t.labelStyle=s;const o=t.assetHeight??48,c=t.assetWidth??48,l=Math.max(o,c),h=i==null?void 0:i.wrappingWidth;t.width=Math.max(l,h??0);const{shapeSvg:f,bbox:d,label:g}=await Dt(e,t,"icon-shape default"),m=20,y=t.label?8:0,b=t.pos==="t",{nodeBorder:C,mainBkg:k}=r,{stylesMap:S}=ms(t),_=vt.svg(f),E=wt(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const M=S.get("fill");E.stroke=M??k;const B=f.append("g");t.icon&&B.html(`<g>${await nl(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const L=B.node().getBBox(),F=L.width,V=L.height,et=L.x,tt=L.y,G=Math.max(F,V)*Math.SQRT2+m*2,ot=_.circle(0,0,G,E),Z=Math.max(G,d.width),q=G+d.height+y,W=_.rectangle(-Z/2,-q/2,Z,q,{...E,fill:"transparent",stroke:"none"}),z=f.insert(()=>ot,":first-child"),U=f.insert(()=>W);return B.attr("transform",`translate(${-F/2-et},${b?d.height/2+y/2-V/2-tt:-d.height/2-y/2-V/2-tt})`),B.attr("style",`color: ${S.get("stroke")??C};`),g.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${b?-q/2:q/2-d.height})`),z.attr("transform",`translate(0,${b?d.height/2+y/2:-d.height/2-y/2})`),St(t,U),t.intersect=function(R){return J.info("iconSquare intersect",t,R),ft.rect(t,R)},f}w(nw,"iconCircle");async function iw(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=Ct(t);t.labelStyle=s;const o=t.assetHeight??48,c=t.assetWidth??48,l=Math.max(o,c),h=i==null?void 0:i.wrappingWidth;t.width=Math.max(l,h??0);const{shapeSvg:f,bbox:d,halfPadding:g,label:m}=await Dt(e,t,"icon-shape default"),y=t.pos==="t",b=l+g*2,C=l+g*2,{nodeBorder:k,mainBkg:S}=r,{stylesMap:_}=ms(t),E=-C/2,M=-b/2,B=t.label?8:0,L=vt.svg(f),F=wt(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const V=_.get("fill");F.stroke=V??S;const et=L.path(Ei(E,M,C,b,5),F),tt=Math.max(C,d.width),G=b+d.height+B,ot=L.rectangle(-tt/2,-G/2,tt,G,{...F,fill:"transparent",stroke:"none"}),Z=f.insert(()=>et,":first-child").attr("class","icon-shape2"),q=f.insert(()=>ot);if(t.icon){const W=f.append("g");W.html(`<g>${await nl(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const z=W.node().getBBox(),U=z.width,R=z.height,K=z.x,Q=z.y;W.attr("transform",`translate(${-U/2-K},${y?d.height/2+B/2-R/2-Q:-d.height/2-B/2-R/2-Q})`),W.attr("style",`color: ${_.get("stroke")??k};`)}return m.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${y?-G/2:G/2-d.height})`),Z.attr("transform",`translate(0,${y?d.height/2+B/2:-d.height/2-B/2})`),St(t,q),t.intersect=function(W){if(J.info("iconSquare intersect",t,W),!t.label)return ft.rect(t,W);const z=t.x??0,U=t.y??0,R=t.height??0;let K=[];return y?K=[{x:z-d.width/2,y:U-R/2},{x:z+d.width/2,y:U-R/2},{x:z+d.width/2,y:U-R/2+d.height+B},{x:z+C/2,y:U-R/2+d.height+B},{x:z+C/2,y:U+R/2},{x:z-C/2,y:U+R/2},{x:z-C/2,y:U-R/2+d.height+B},{x:z-d.width/2,y:U-R/2+d.height+B}]:K=[{x:z-C/2,y:U-R/2},{x:z+C/2,y:U-R/2},{x:z+C/2,y:U-R/2+b},{x:z+d.width/2,y:U-R/2+b},{x:z+d.width/2/2,y:U+R/2},{x:z-d.width/2,y:U+R/2},{x:z-d.width/2,y:U-R/2+b},{x:z-C/2,y:U-R/2+b}],ft.polygon(t,K,W)},f}w(iw,"iconRounded");async function aw(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=Ct(t);t.labelStyle=s;const o=t.assetHeight??48,c=t.assetWidth??48,l=Math.max(o,c),h=i==null?void 0:i.wrappingWidth;t.width=Math.max(l,h??0);const{shapeSvg:f,bbox:d,halfPadding:g,label:m}=await Dt(e,t,"icon-shape default"),y=t.pos==="t",b=l+g*2,C=l+g*2,{nodeBorder:k,mainBkg:S}=r,{stylesMap:_}=ms(t),E=-C/2,M=-b/2,B=t.label?8:0,L=vt.svg(f),F=wt(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const V=_.get("fill");F.stroke=V??S;const et=L.path(Ei(E,M,C,b,.1),F),tt=Math.max(C,d.width),G=b+d.height+B,ot=L.rectangle(-tt/2,-G/2,tt,G,{...F,fill:"transparent",stroke:"none"}),Z=f.insert(()=>et,":first-child"),q=f.insert(()=>ot);if(t.icon){const W=f.append("g");W.html(`<g>${await nl(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const z=W.node().getBBox(),U=z.width,R=z.height,K=z.x,Q=z.y;W.attr("transform",`translate(${-U/2-K},${y?d.height/2+B/2-R/2-Q:-d.height/2-B/2-R/2-Q})`),W.attr("style",`color: ${_.get("stroke")??k};`)}return m.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${y?-G/2:G/2-d.height})`),Z.attr("transform",`translate(0,${y?d.height/2+B/2:-d.height/2-B/2})`),St(t,q),t.intersect=function(W){if(J.info("iconSquare intersect",t,W),!t.label)return ft.rect(t,W);const z=t.x??0,U=t.y??0,R=t.height??0;let K=[];return y?K=[{x:z-d.width/2,y:U-R/2},{x:z+d.width/2,y:U-R/2},{x:z+d.width/2,y:U-R/2+d.height+B},{x:z+C/2,y:U-R/2+d.height+B},{x:z+C/2,y:U+R/2},{x:z-C/2,y:U+R/2},{x:z-C/2,y:U-R/2+d.height+B},{x:z-d.width/2,y:U-R/2+d.height+B}]:K=[{x:z-C/2,y:U-R/2},{x:z+C/2,y:U-R/2},{x:z+C/2,y:U-R/2+b},{x:z+d.width/2,y:U-R/2+b},{x:z+d.width/2/2,y:U+R/2},{x:z-d.width/2,y:U+R/2},{x:z-d.width/2,y:U-R/2+b},{x:z-C/2,y:U-R/2+b}],ft.polygon(t,K,W)},f}w(aw,"iconSquare");async function sw(e,t,{config:{flowchart:r}}){const i=new Image;i.src=(t==null?void 0:t.img)??"",await i.decode();const s=Number(i.naturalWidth.toString().replace("px","")),o=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=s/o;const{labelStyles:c}=Ct(t);t.labelStyle=c;const l=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const h=Math.max(t.label?l??0:0,(t==null?void 0:t.assetWidth)??s),f=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:h,d=t.constraint==="on"?f/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??o;t.width=Math.max(f,l??0);const{shapeSvg:g,bbox:m,label:y}=await Dt(e,t,"image-shape default"),b=t.pos==="t",C=-f/2,k=-d/2,S=t.label?8:0,_=vt.svg(g),E=wt(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const M=_.rectangle(C,k,f,d,E),B=Math.max(f,m.width),L=d+m.height+S,F=_.rectangle(-B/2,-L/2,B,L,{...E,fill:"none",stroke:"none"}),V=g.insert(()=>M,":first-child"),et=g.insert(()=>F);if(t.img){const tt=g.append("image");tt.attr("href",t.img),tt.attr("width",f),tt.attr("height",d),tt.attr("preserveAspectRatio","none"),tt.attr("transform",`translate(${-f/2},${b?L/2-d:-L/2})`)}return y.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${b?-d/2-m.height/2-S/2:d/2-m.height/2+S/2})`),V.attr("transform",`translate(0,${b?m.height/2+S/2:-m.height/2-S/2})`),St(t,et),t.intersect=function(tt){if(J.info("iconSquare intersect",t,tt),!t.label)return ft.rect(t,tt);const G=t.x??0,ot=t.y??0,Z=t.height??0;let q=[];return b?q=[{x:G-m.width/2,y:ot-Z/2},{x:G+m.width/2,y:ot-Z/2},{x:G+m.width/2,y:ot-Z/2+m.height+S},{x:G+f/2,y:ot-Z/2+m.height+S},{x:G+f/2,y:ot+Z/2},{x:G-f/2,y:ot+Z/2},{x:G-f/2,y:ot-Z/2+m.height+S},{x:G-m.width/2,y:ot-Z/2+m.height+S}]:q=[{x:G-f/2,y:ot-Z/2},{x:G+f/2,y:ot-Z/2},{x:G+f/2,y:ot-Z/2+d},{x:G+m.width/2,y:ot-Z/2+d},{x:G+m.width/2/2,y:ot+Z/2},{x:G-m.width/2,y:ot+Z/2},{x:G-m.width/2,y:ot-Z/2+d},{x:G-f/2,y:ot-Z/2+d}],ft.polygon(t,q,tt)},g}w(sw,"imageSquare");async function ow(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Dt(e,t,$t(t)),c=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=[{x:0,y:0},{x:c,y:0},{x:c+3*l/6,y:-l},{x:-3*l/6,y:-l}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const g=vt.svg(s),m=wt(t,{}),y=Ut(h),b=g.path(y,m);f=s.insert(()=>b,":first-child").attr("transform",`translate(${-c/2}, ${l/2})`),d&&f.attr("style",d)}else f=Li(s,c,l,h);return i&&f.attr("style",i),t.width=c,t.height=l,St(t,f),t.intersect=function(g){return ft.polygon(t,h,g)},s}w(ow,"inv_trapezoid");async function Qu(e,t,r){const{labelStyles:i,nodeStyles:s}=Ct(t);t.labelStyle=i;const{shapeSvg:o,bbox:c}=await Dt(e,t,$t(t)),l=Math.max(c.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),h=Math.max(c.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),f=-l/2,d=-h/2;let g,{rx:m,ry:y}=t;const{cssStyles:b}=t;if(r!=null&&r.rx&&r.ry&&(m=r.rx,y=r.ry),t.look==="handDrawn"){const C=vt.svg(o),k=wt(t,{}),S=m||y?C.path(Ei(f,d,l,h,m||0),k):C.rectangle(f,d,l,h,k);g=o.insert(()=>S,":first-child"),g.attr("class","basic label-container").attr("style",Ue(b))}else g=o.insert("rect",":first-child"),g.attr("class","basic label-container").attr("style",s).attr("rx",Ue(m)).attr("ry",Ue(y)).attr("x",f).attr("y",d).attr("width",l).attr("height",h);return St(t,g),t.calcIntersect=function(C,k){return ft.rect(C,k)},t.intersect=function(C){return ft.rect(t,C)},o}w(Qu,"drawRect");async function lw(e,t){const{shapeSvg:r,bbox:i,label:s}=await Dt(e,t,"label"),o=r.insert("rect",":first-child");return o.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),s.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),St(t,o),t.intersect=function(h){return ft.rect(t,h)},r}w(lw,"labelRect");async function cw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Dt(e,t,$t(t)),c=Math.max(o.width+(t.padding??0),(t==null?void 0:t.width)??0),l=Math.max(o.height+(t.padding??0),(t==null?void 0:t.height)??0),h=[{x:0,y:0},{x:c+3*l/6,y:0},{x:c,y:-l},{x:-(3*l)/6,y:-l}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const g=vt.svg(s),m=wt(t,{}),y=Ut(h),b=g.path(y,m);f=s.insert(()=>b,":first-child").attr("transform",`translate(${-c/2}, ${l/2})`),d&&f.attr("style",d)}else f=Li(s,c,l,h);return i&&f.attr("style",i),t.width=c,t.height=l,St(t,f),t.intersect=function(g){return ft.polygon(t,h,g)},s}w(cw,"lean_left");async function uw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Dt(e,t,$t(t)),c=Math.max(o.width+(t.padding??0),(t==null?void 0:t.width)??0),l=Math.max(o.height+(t.padding??0),(t==null?void 0:t.height)??0),h=[{x:-3*l/6,y:0},{x:c,y:0},{x:c+3*l/6,y:-l},{x:0,y:-l}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const g=vt.svg(s),m=wt(t,{}),y=Ut(h),b=g.path(y,m);f=s.insert(()=>b,":first-child").attr("transform",`translate(${-c/2}, ${l/2})`),d&&f.attr("style",d)}else f=Li(s,c,l,h);return i&&f.attr("style",i),t.width=c,t.height=l,St(t,f),t.intersect=function(g){return ft.polygon(t,h,g)},s}w(uw,"lean_right");function hw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.label="",t.labelStyle=r;const s=e.insert("g").attr("class",$t(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,c=Math.max(35,(t==null?void 0:t.width)??0),l=Math.max(35,(t==null?void 0:t.height)??0),h=7,f=[{x:c,y:0},{x:0,y:l+h/2},{x:c-2*h,y:l+h/2},{x:0,y:2*l},{x:c,y:l-h/2},{x:2*h,y:l-h/2}],d=vt.svg(s),g=wt(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=Ut(f),y=d.path(m,g),b=s.insert(()=>y,":first-child");return o&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",o),i&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",i),b.attr("transform",`translate(-${c/2},${-l})`),St(t,b),t.intersect=function(C){return J.info("lightningBolt intersect",t,C),ft.polygon(t,f,C)},s}w(hw,"lightningBolt");var VF=w((e,t,r,i,s,o,c)=>[`M${e},${t+o}`,`a${s},${o} 0,0,0 ${r},0`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+o+c}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),GF=w((e,t,r,i,s,o,c)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+o+c}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),XF=w((e,t,r,i,s,o)=>[`M${e-r/2},${-i/2}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function fw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=Math.max(o.width+(t.padding??0),t.width??0),h=l/2,f=h/(2.5+l/50),d=Math.max(o.height+f+(t.padding??0),t.height??0),g=d*.1;let m;const{cssStyles:y}=t;if(t.look==="handDrawn"){const b=vt.svg(s),C=GF(0,0,l,d,h,f,g),k=XF(0,f,l,d,h,f),S=wt(t,{}),_=b.path(C,S),E=b.path(k,S);s.insert(()=>E,":first-child").attr("class","line"),m=s.insert(()=>_,":first-child"),m.attr("class","basic label-container"),y&&m.attr("style",y)}else{const b=VF(0,0,l,d,h,f,g);m=s.insert("path",":first-child").attr("d",b).attr("class","basic label-container").attr("style",Ue(y)).attr("style",i)}return m.attr("label-offset-y",f),m.attr("transform",`translate(${-l/2}, ${-(d/2+f)})`),St(t,m),c.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${-(o.height/2)+f-(o.y-(o.top??0))})`),t.intersect=function(b){const C=ft.rect(t,b),k=C.x-(t.x??0);if(h!=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 S=f*f*(1-k*k/(h*h));S>0&&(S=Math.sqrt(S)),S=f-S,b.y-(t.y??0)>0&&(S=-S),C.y+=S}return C},s}w(fw,"linedCylinder");async function dw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),f=h/4,d=h+f,{cssStyles:g}=t,m=vt.svg(s),y=wt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=[{x:-l/2-l/2*.1,y:-d/2},{x:-l/2-l/2*.1,y:d/2},..._i(-l/2-l/2*.1,d/2,l/2+l/2*.1,d/2,f,.8),{x:l/2+l/2*.1,y:-d/2},{x:-l/2-l/2*.1,y:-d/2},{x:-l/2,y:-d/2},{x:-l/2,y:d/2*1.1},{x:-l/2,y:-d/2}],C=m.polygon(b.map(S=>[S.x,S.y]),y),k=s.insert(()=>C,":first-child");return k.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&k.selectAll("path").attr("style",i),k.attr("transform",`translate(0,${-f/2})`),c.attr("transform",`translate(${-l/2+(t.padding??0)+l/2*.1/2-(o.x-(o.left??0))},${-h/2+(t.padding??0)-f/2-(o.y-(o.top??0))})`),St(t,k),t.intersect=function(S){return ft.polygon(t,b,S)},s}w(dw,"linedWaveEdgedRect");async function pw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),f=5,d=-l/2,g=-h/2,{cssStyles:m}=t,y=vt.svg(s),b=wt(t,{}),C=[{x:d-f,y:g+f},{x:d-f,y:g+h+f},{x:d+l-f,y:g+h+f},{x:d+l-f,y:g+h},{x:d+l,y:g+h},{x:d+l,y:g+h-f},{x:d+l+f,y:g+h-f},{x:d+l+f,y:g-f},{x:d+f,y:g-f},{x:d+f,y:g},{x:d,y:g},{x:d,y:g+f}],k=[{x:d,y:g+f},{x:d+l-f,y:g+f},{x:d+l-f,y:g+h},{x:d+l,y:g+h},{x:d+l,y:g},{x:d,y:g}];t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const S=Ut(C),_=y.path(S,b),E=Ut(k),M=y.path(E,{...b,fill:"none"}),B=s.insert(()=>M,":first-child");return B.insert(()=>_,":first-child"),B.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",i),c.attr("transform",`translate(${-(o.width/2)-f-(o.x-(o.left??0))}, ${-(o.height/2)+f-(o.y-(o.top??0))})`),St(t,B),t.intersect=function(L){return ft.polygon(t,C,L)},s}w(pw,"multiRect");async function gw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),f=h/4,d=h+f,g=-l/2,m=-d/2,y=5,{cssStyles:b}=t,C=_i(g-y,m+d+y,g+l-y,m+d+y,f,.8),k=C==null?void 0:C[C.length-1],S=[{x:g-y,y:m+y},{x:g-y,y:m+d+y},...C,{x:g+l-y,y:k.y-y},{x:g+l,y:k.y-y},{x:g+l,y:k.y-2*y},{x:g+l+y,y:k.y-2*y},{x:g+l+y,y:m-y},{x:g+y,y:m-y},{x:g+y,y:m},{x:g,y:m},{x:g,y:m+y}],_=[{x:g,y:m+y},{x:g+l-y,y:m+y},{x:g+l-y,y:k.y-y},{x:g+l,y:k.y-y},{x:g+l,y:m},{x:g,y:m}],E=vt.svg(s),M=wt(t,{});t.look!=="handDrawn"&&(M.roughness=0,M.fillStyle="solid");const B=Ut(S),L=E.path(B,M),F=Ut(_),V=E.path(F,M),et=s.insert(()=>L,":first-child");return et.insert(()=>V),et.attr("class","basic label-container"),b&&t.look!=="handDrawn"&&et.selectAll("path").attr("style",b),i&&t.look!=="handDrawn"&&et.selectAll("path").attr("style",i),et.attr("transform",`translate(0,${-f/2})`),c.attr("transform",`translate(${-(o.width/2)-y-(o.x-(o.left??0))}, ${-(o.height/2)+y-f/2-(o.y-(o.top??0))})`),St(t,et),t.intersect=function(tt){return ft.polygon(t,S,tt)},s}w(gw,"multiWaveEdgedRectangle");async function mw(e,t,{config:{themeVariables:r}}){var _;const{labelStyles:i,nodeStyles:s}=Ct(t);t.labelStyle=i,t.useHtmlLabels||((_=He().flowchart)==null?void 0:_.htmlLabels)!==!1||(t.centerLabel=!0);const{shapeSvg:c,bbox:l,label:h}=await Dt(e,t,$t(t)),f=Math.max(l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),d=Math.max(l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),g=-f/2,m=-d/2,{cssStyles:y}=t,b=vt.svg(c),C=wt(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=b.rectangle(g,m,f,d,C),S=c.insert(()=>k,":first-child");return S.attr("class","basic label-container"),y&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",y),s&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",s),h.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),St(t,S),t.intersect=function(E){return ft.rect(t,E)},c}w(mw,"note");var QF=w((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 yw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Dt(e,t,$t(t)),c=o.width+t.padding,l=o.height+t.padding,h=c+l,f=.5,d=[{x:h/2,y:0},{x:h,y:-h/2},{x:h/2,y:-h},{x:0,y:-h/2}];let g;const{cssStyles:m}=t;if(t.look==="handDrawn"){const y=vt.svg(s),b=wt(t,{}),C=QF(0,0,h),k=y.path(C,b);g=s.insert(()=>k,":first-child").attr("transform",`translate(${-h/2+f}, ${h/2})`),m&&g.attr("style",m)}else g=Li(s,h,h,d),g.attr("transform",`translate(${-h/2+f}, ${h/2})`);return i&&g.attr("style",i),St(t,g),t.calcIntersect=function(y,b){const C=y.width,k=[{x:C/2,y:0},{x:C,y:-C/2},{x:C/2,y:-C},{x:0,y:-C/2}],S=ft.polygon(y,k,b);return{x:S.x-.5,y:S.y-.5}},t.intersect=function(y){return this.calcIntersect(t,y)},s}w(yw,"question");async function xw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=Math.max(o.width+(t.padding??0),(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0),(t==null?void 0:t.height)??0),f=-l/2,d=-h/2,g=d/2,m=[{x:f+g,y:d},{x:f,y:0},{x:f+g,y:-d},{x:-f,y:-d},{x:-f,y:d}],{cssStyles:y}=t,b=vt.svg(s),C=wt(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=Ut(m),S=b.path(k,C),_=s.insert(()=>S,":first-child");return _.attr("class","basic label-container"),y&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),_.attr("transform",`translate(${-g/2},0)`),c.attr("transform",`translate(${-g/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),St(t,_),t.intersect=function(E){return ft.polygon(t,m,E)},s}w(xw,"rect_left_inv_arrow");async function vw(e,t){var V,et;const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;let s;t.cssClasses?s="node "+t.cssClasses:s="node default";const o=e.insert("g").attr("class",s).attr("id",t.domId||t.id),c=o.insert("g"),l=o.insert("g").attr("class","label").attr("style",i),h=t.description,f=t.label,d=l.node().appendChild(await ra(f,t.labelStyle,!0,!0));let g={width:0,height:0};if(Te((et=(V=Kt())==null?void 0:V.flowchart)==null?void 0:et.htmlLabels)){const tt=d.children[0],G=Yt(d);g=tt.getBoundingClientRect(),G.attr("width",g.width),G.attr("height",g.height)}J.info("Text 2",h);const m=h||[],y=d.getBBox(),b=l.node().appendChild(await ra(m.join?m.join("<br/>"):m,t.labelStyle,!0,!0)),C=b.children[0],k=Yt(b);g=C.getBoundingClientRect(),k.attr("width",g.width),k.attr("height",g.height);const S=(t.padding||0)/2;Yt(b).attr("transform","translate( "+(g.width>y.width?0:(y.width-g.width)/2)+", "+(y.height+S+5)+")"),Yt(d).attr("transform","translate( "+(g.width<y.width?0:-(y.width-g.width)/2)+", 0)"),g=l.node().getBBox(),l.attr("transform","translate("+-g.width/2+", "+(-g.height/2-S+3)+")");const _=g.width+(t.padding||0),E=g.height+(t.padding||0),M=-g.width/2-S,B=-g.height/2-S;let L,F;if(t.look==="handDrawn"){const tt=vt.svg(o),G=wt(t,{}),ot=tt.path(Ei(M,B,_,E,t.rx||0),G),Z=tt.line(-g.width/2-S,-g.height/2-S+y.height+S,g.width/2+S,-g.height/2-S+y.height+S,G);F=o.insert(()=>(J.debug("Rough node insert CXC",ot),Z),":first-child"),L=o.insert(()=>(J.debug("Rough node insert CXC",ot),ot),":first-child")}else L=c.insert("rect",":first-child"),F=c.insert("line"),L.attr("class","outer title-state").attr("style",i).attr("x",-g.width/2-S).attr("y",-g.height/2-S).attr("width",g.width+(t.padding||0)).attr("height",g.height+(t.padding||0)),F.attr("class","divider").attr("x1",-g.width/2-S).attr("x2",g.width/2+S).attr("y1",-g.height/2-S+y.height+S).attr("y2",-g.height/2-S+y.height+S);return St(t,L),t.intersect=function(tt){return ft.rect(t,tt)},o}w(vw,"rectWithTitle");function Eo(e,t,r,i,s,o,c){const h=(e+r)/2,f=(t+i)/2,d=Math.atan2(i-t,r-e),g=(r-e)/2,m=(i-t)/2,y=g/s,b=m/o,C=Math.sqrt(y**2+b**2);if(C>1)throw new Error("The given radii are too small to create an arc between the points.");const k=Math.sqrt(1-C**2),S=h+k*o*Math.sin(d)*(c?-1:1),_=f-k*s*Math.cos(d)*(c?-1:1),E=Math.atan2((t-_)/o,(e-S)/s);let B=Math.atan2((i-_)/o,(r-S)/s)-E;c&&B<0&&(B+=2*Math.PI),!c&&B>0&&(B-=2*Math.PI);const L=[];for(let F=0;F<20;F++){const V=F/19,et=E+V*B,tt=S+s*Math.cos(et),G=_+o*Math.sin(et);L.push({x:tt,y:G})}return L}w(Eo,"generateArcPoints");async function bw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Dt(e,t,$t(t)),c=(t==null?void 0:t.padding)??0,l=(t==null?void 0:t.padding)??0,h=(t!=null&&t.width?t==null?void 0:t.width:o.width)+c*2,f=(t!=null&&t.height?t==null?void 0:t.height:o.height)+l*2,d=t.radius||5,g=t.taper||5,{cssStyles:m}=t,y=vt.svg(s),b=wt(t,{});t.stroke&&(b.stroke=t.stroke),t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const C=[{x:-h/2+g,y:-f/2},{x:h/2-g,y:-f/2},...Eo(h/2-g,-f/2,h/2,-f/2+g,d,d,!0),{x:h/2,y:-f/2+g},{x:h/2,y:f/2-g},...Eo(h/2,f/2-g,h/2-g,f/2,d,d,!0),{x:h/2-g,y:f/2},{x:-h/2+g,y:f/2},...Eo(-h/2+g,f/2,-h/2,f/2-g,d,d,!0),{x:-h/2,y:f/2-g},{x:-h/2,y:-f/2+g},...Eo(-h/2,-f/2+g,-h/2+g,-f/2,d,d,!0)],k=Ut(C),S=y.path(k,b),_=s.insert(()=>S,":first-child");return _.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",m),i&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),St(t,_),t.intersect=function(E){return ft.polygon(t,C,E)},s}w(bw,"roundedRect");async function ww(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=(t==null?void 0:t.padding)??0,h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=-o.width/2-l,g=-o.height/2-l,{cssStyles:m}=t,y=vt.svg(s),b=wt(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const C=[{x:d,y:g},{x:d+h+8,y:g},{x:d+h+8,y:g+f},{x:d-8,y:g+f},{x:d-8,y:g},{x:d,y:g},{x:d,y:g+f}],k=y.polygon(C.map(_=>[_.x,_.y]),b),S=s.insert(()=>k,":first-child");return S.attr("class","basic label-container").attr("style",Ue(m)),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),m&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),c.attr("transform",`translate(${-h/2+4+(t.padding??0)-(o.x-(o.left??0))},${-f/2+(t.padding??0)-(o.y-(o.top??0))})`),St(t,S),t.intersect=function(_){return ft.rect(t,_)},s}w(ww,"shadedProcess");async function Cw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),f=-l/2,d=-h/2,{cssStyles:g}=t,m=vt.svg(s),y=wt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const b=[{x:f,y:d},{x:f,y:d+h},{x:f+l,y:d+h},{x:f+l,y:d-h/2}],C=Ut(b),k=m.path(C,y),S=s.insert(()=>k,":first-child");return S.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),S.attr("transform",`translate(0, ${h/4})`),c.attr("transform",`translate(${-l/2+(t.padding??0)-(o.x-(o.left??0))}, ${-h/4+(t.padding??0)-(o.y-(o.top??0))})`),St(t,S),t.intersect=function(_){return ft.polygon(t,b,_)},s}w(Cw,"slopedRect");async function kw(e,t){const r={rx:0,ry:0,labelPaddingX:t.labelPaddingX??((t==null?void 0:t.padding)||0)*2,labelPaddingY:((t==null?void 0:t.padding)||0)*1};return Qu(e,t,r)}w(kw,"squareRect");async function _w(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Dt(e,t,$t(t)),c=o.height+t.padding,l=o.width+c/4+t.padding,h=c/2,{cssStyles:f}=t,d=vt.svg(s),g=wt(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=[{x:-l/2+h,y:-c/2},{x:l/2-h,y:-c/2},...Yo(-l/2+h,0,h,50,90,270),{x:l/2-h,y:c/2},...Yo(l/2-h,0,h,50,270,450)],y=Ut(m),b=d.path(y,g),C=s.insert(()=>b,":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),St(t,C),t.intersect=function(k){return ft.polygon(t,m,k)},s}w(_w,"stadium");async function Sw(e,t){return Qu(e,t,{rx:5,ry:5})}w(Sw,"state");function Tw(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=Ct(t);t.labelStyle=i;const{cssStyles:o}=t,{lineColor:c,stateBorder:l,nodeBorder:h}=r,f=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),d=vt.svg(f),g=wt(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=d.circle(0,0,14,{...g,stroke:c,strokeWidth:2}),y=l??h,b=d.circle(0,0,5,{...g,fill:y,stroke:y,strokeWidth:2,fillStyle:"solid"}),C=f.insert(()=>m,":first-child");return C.insert(()=>b),o&&C.selectAll("path").attr("style",o),s&&C.selectAll("path").attr("style",s),St(t,C),t.intersect=function(k){return ft.circle(t,7,k)},f}w(Tw,"stateEnd");function Ew(e,t,{config:{themeVariables:r}}){const{lineColor:i}=r,s=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let o;if(t.look==="handDrawn"){const l=vt.svg(s).circle(0,0,14,hA(i));o=s.insert(()=>l),o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else o=s.insert("circle",":first-child"),o.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return St(t,o),t.intersect=function(c){return ft.circle(t,7,c)},s}w(Ew,"stateStart");async function Lw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Dt(e,t,$t(t)),c=((t==null?void 0:t.padding)||0)/2,l=o.width+t.padding,h=o.height+t.padding,f=-o.width/2-c,d=-o.height/2-c,g=[{x:0,y:0},{x:l,y:0},{x:l,y:-h},{x:0,y:-h},{x:0,y:0},{x:-8,y:0},{x:l+8,y:0},{x:l+8,y:-h},{x:-8,y:-h},{x:-8,y:0}];if(t.look==="handDrawn"){const m=vt.svg(s),y=wt(t,{}),b=m.rectangle(f-8,d,l+16,h,y),C=m.line(f,d,f,d+h,y),k=m.line(f+l,d,f+l,d+h,y);s.insert(()=>C,":first-child"),s.insert(()=>k,":first-child");const S=s.insert(()=>b,":first-child"),{cssStyles:_}=t;S.attr("class","basic label-container").attr("style",Ue(_)),St(t,S)}else{const m=Li(s,l,h,g);i&&m.attr("style",i),St(t,m)}return t.intersect=function(m){return ft.polygon(t,g,m)},s}w(Lw,"subroutine");async function Mw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Dt(e,t,$t(t)),c=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=-c/2,f=-l/2,d=.2*l,g=.2*l,{cssStyles:m}=t,y=vt.svg(s),b=wt(t,{}),C=[{x:h-d/2,y:f},{x:h+c+d/2,y:f},{x:h+c+d/2,y:f+l},{x:h-d/2,y:f+l}],k=[{x:h+c-d/2,y:f+l},{x:h+c+d/2,y:f+l},{x:h+c+d/2,y:f+l-g}];t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const S=Ut(C),_=y.path(S,b),E=Ut(k),M=y.path(E,{...b,fillStyle:"solid"}),B=s.insert(()=>M,":first-child");return B.insert(()=>_,":first-child"),B.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",i),St(t,B),t.intersect=function(L){return ft.polygon(t,C,L)},s}w(Mw,"taggedRect");async function Aw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),f=h/4,d=.2*l,g=.2*h,m=h+f,{cssStyles:y}=t,b=vt.svg(s),C=wt(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:-l/2-l/2*.1,y:m/2},..._i(-l/2-l/2*.1,m/2,l/2+l/2*.1,m/2,f,.8),{x:l/2+l/2*.1,y:-m/2},{x:-l/2-l/2*.1,y:-m/2}],S=-l/2+l/2*.1,_=-m/2-g*.4,E=[{x:S+l-d,y:(_+h)*1.4},{x:S+l,y:_+h-g},{x:S+l,y:(_+h)*.9},..._i(S+l,(_+h)*1.3,S+l-d,(_+h)*1.5,-h*.03,.5)],M=Ut(k),B=b.path(M,C),L=Ut(E),F=b.path(L,{...C,fillStyle:"solid"}),V=s.insert(()=>F,":first-child");return V.insert(()=>B,":first-child"),V.attr("class","basic label-container"),y&&t.look!=="handDrawn"&&V.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&V.selectAll("path").attr("style",i),V.attr("transform",`translate(0,${-f/2})`),c.attr("transform",`translate(${-l/2+(t.padding??0)-(o.x-(o.left??0))},${-h/2+(t.padding??0)-f/2-(o.y-(o.top??0))})`),St(t,V),t.intersect=function(et){return ft.polygon(t,k,et)},s}w(Aw,"taggedWaveEdgedRectangle");async function Bw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Dt(e,t,$t(t)),c=Math.max(o.width+t.padding,(t==null?void 0:t.width)||0),l=Math.max(o.height+t.padding,(t==null?void 0:t.height)||0),h=-c/2,f=-l/2,d=s.insert("rect",":first-child");return d.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",h).attr("y",f).attr("width",c).attr("height",l),St(t,d),t.intersect=function(g){return ft.rect(t,g)},s}w(Bw,"text");var KF=w((e,t,r,i,s,o)=>`M${e},${t}
|
|
228
|
+
a${s},${o} 0,0,1 0,${-i}
|
|
229
|
+
l${r},0
|
|
230
|
+
a${s},${o} 0,0,1 0,${i}
|
|
231
|
+
M${r},${-i}
|
|
232
|
+
a${s},${o} 0,0,0 0,${i}
|
|
233
|
+
l${-r},0`,"createCylinderPathD"),ZF=w((e,t,r,i,s,o)=>[`M${e},${t}`,`M${e+r},${t}`,`a${s},${o} 0,0,0 0,${-i}`,`l${-r},0`,`a${s},${o} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),JF=w((e,t,r,i,s,o)=>[`M${e+r/2},${-i/2}`,`a${s},${o} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD");async function $w(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c,halfPadding:l}=await Dt(e,t,$t(t)),h=t.look==="neo"?l*2:l,f=o.height+h,d=f/2,g=d/(2.5+f/50),m=o.width+g+h,{cssStyles:y}=t;let b;if(t.look==="handDrawn"){const C=vt.svg(s),k=ZF(0,0,m,f,g,d),S=JF(0,0,m,f,g,d),_=C.path(k,wt(t,{})),E=C.path(S,wt(t,{fill:"none"}));b=s.insert(()=>E,":first-child"),b=s.insert(()=>_,":first-child"),b.attr("class","basic label-container"),y&&b.attr("style",y)}else{const C=KF(0,0,m,f,g,d);b=s.insert("path",":first-child").attr("d",C).attr("class","basic label-container").attr("style",Ue(y)).attr("style",i),b.attr("class","basic label-container"),y&&b.selectAll("path").attr("style",y),i&&b.selectAll("path").attr("style",i)}return b.attr("label-offset-x",g),b.attr("transform",`translate(${-m/2}, ${f/2} )`),c.attr("transform",`translate(${-(o.width/2)-g-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),St(t,b),t.intersect=function(C){const k=ft.rect(t,C),S=k.y-(t.y??0);if(d!=0&&(Math.abs(S)<(t.height??0)/2||Math.abs(S)==(t.height??0)/2&&Math.abs(k.x-(t.x??0))>(t.width??0)/2-g)){let _=g*g*(1-S*S/(d*d));_!=0&&(_=Math.sqrt(Math.abs(_))),_=g-_,C.x-(t.x??0)>0&&(_=-_),k.x+=_}return k},s}w($w,"tiltedCylinder");async function Fw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Dt(e,t,$t(t)),c=o.width+t.padding,l=o.height+t.padding,h=[{x:-3*l/6,y:0},{x:c+3*l/6,y:0},{x:c,y:-l},{x:0,y:-l}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const g=vt.svg(s),m=wt(t,{}),y=Ut(h),b=g.path(y,m);f=s.insert(()=>b,":first-child").attr("transform",`translate(${-c/2}, ${l/2})`),d&&f.attr("style",d)}else f=Li(s,c,l,h);return i&&f.attr("style",i),t.width=c,t.height=l,St(t,f),t.intersect=function(g){return ft.polygon(t,h,g)},s}w(Fw,"trapezoid");async function Rw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Dt(e,t,$t(t)),c=60,l=20,h=Math.max(c,o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(l,o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),{cssStyles:d}=t,g=vt.svg(s),m=wt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=[{x:-h/2*.8,y:-f/2},{x:h/2*.8,y:-f/2},{x:h/2,y:-f/2*.6},{x:h/2,y:f/2},{x:-h/2,y:f/2},{x:-h/2,y:-f/2*.6}],b=Ut(y),C=g.path(b,m),k=s.insert(()=>C,":first-child");return k.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),St(t,k),t.intersect=function(S){return ft.polygon(t,y,S)},s}w(Rw,"trapezoidalPentagon");async function Dw(e,t){var _;const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=Te((_=Kt().flowchart)==null?void 0:_.htmlLabels),h=o.width+(t.padding??0),f=h+o.height,d=h+o.height,g=[{x:0,y:0},{x:d,y:0},{x:d/2,y:-f}],{cssStyles:m}=t,y=vt.svg(s),b=wt(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const C=Ut(g),k=y.path(C,b),S=s.insert(()=>k,":first-child").attr("transform",`translate(${-f/2}, ${f/2})`);return m&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",m),i&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),t.width=h,t.height=f,St(t,S),c.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${f/2-(o.height+(t.padding??0)/(l?2:1)-(o.y-(o.top??0)))})`),t.intersect=function(E){return J.info("Triangle intersect",t,g,E),ft.polygon(t,g,E)},s}w(Dw,"triangle");async function Pw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),f=h/8,d=h+f,{cssStyles:g}=t,y=70-l,b=y>0?y/2:0,C=vt.svg(s),k=wt(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const S=[{x:-l/2-b,y:d/2},..._i(-l/2-b,d/2,l/2+b,d/2,f,.8),{x:l/2+b,y:-d/2},{x:-l/2-b,y:-d/2}],_=Ut(S),E=C.path(_,k),M=s.insert(()=>E,":first-child");return M.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",i),M.attr("transform",`translate(0,${-f/2})`),c.attr("transform",`translate(${-l/2+(t.padding??0)-(o.x-(o.left??0))},${-h/2+(t.padding??0)-f-(o.y-(o.top??0))})`),St(t,M),t.intersect=function(B){return ft.polygon(t,S,B)},s}w(Pw,"waveEdgedRectangle");async function Ow(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Dt(e,t,$t(t)),c=100,l=50,h=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),f=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=h/f;let g=h,m=f;g>m*d?m=g/d:g=m*d,g=Math.max(g,c),m=Math.max(m,l);const y=Math.min(m*.2,m/4),b=m+y*2,{cssStyles:C}=t,k=vt.svg(s),S=wt(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const _=[{x:-g/2,y:b/2},..._i(-g/2,b/2,g/2,b/2,y,1),{x:g/2,y:-b/2},..._i(g/2,-b/2,-g/2,-b/2,y,-1)],E=Ut(_),M=k.path(E,S),B=s.insert(()=>M,":first-child");return B.attr("class","basic label-container"),C&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",C),i&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",i),St(t,B),t.intersect=function(L){return ft.polygon(t,_,L)},s}w(Ow,"waveRectangle");async function Iw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:c}=await Dt(e,t,$t(t)),l=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),f=5,d=-l/2,g=-h/2,{cssStyles:m}=t,y=vt.svg(s),b=wt(t,{}),C=[{x:d-f,y:g-f},{x:d-f,y:g+h},{x:d+l,y:g+h},{x:d+l,y:g-f}],k=`M${d-f},${g-f} L${d+l},${g-f} L${d+l},${g+h} L${d-f},${g+h} L${d-f},${g-f}
|
|
234
|
+
M${d-f},${g} L${d+l},${g}
|
|
235
|
+
M${d},${g-f} L${d},${g+h}`;t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const S=y.path(k,b),_=s.insert(()=>S,":first-child");return _.attr("transform",`translate(${f/2}, ${f/2})`),_.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),c.attr("transform",`translate(${-(o.width/2)+f/2-(o.x-(o.left??0))}, ${-(o.height/2)+f/2-(o.y-(o.top??0))})`),St(t,_),t.intersect=function(E){return ft.polygon(t,C,E)},s}w(Iw,"windowPane");async function og(e,t){var X,lt,gt,dt;const r=t;if(r.alias&&(t.label=r.alias),t.look==="handDrawn"){const{themeVariables:ut}=He(),{background:kt}=ut,Lt={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${kt}`]};await og(e,Lt)}const i=He();t.useHtmlLabels=i.htmlLabels;let s=((X=i.er)==null?void 0:X.diagramPadding)??10,o=((lt=i.er)==null?void 0:lt.entityPadding)??6;const{cssStyles:c}=t,{labelStyles:l,nodeStyles:h}=Ct(t);if(r.attributes.length===0&&t.label){const ut={rx:0,ry:0,labelPaddingX:s,labelPaddingY:s*1.5};Wn(t.label,i)+ut.labelPaddingX*2<i.er.minEntityWidth&&(t.width=i.er.minEntityWidth);const kt=await Qu(e,t,ut);if(!Te(i.htmlLabels)){const Lt=kt.select("text"),Pt=(gt=Lt.node())==null?void 0:gt.getBBox();Lt.attr("transform",`translate(${-Pt.width/2}, 0)`)}return kt}i.htmlLabels||(s*=1.25,o*=1.25);let f=$t(t);f||(f="node default");const d=e.insert("g").attr("class",f).attr("id",t.domId||t.id),g=await Va(d,t.label??"",i,0,0,["name"],l);g.height+=o;let m=0;const y=[],b=[];let C=0,k=0,S=0,_=0,E=!0,M=!0;for(const ut of r.attributes){const kt=await Va(d,ut.type,i,0,m,["attribute-type"],l);C=Math.max(C,kt.width+s);const Lt=await Va(d,ut.name,i,0,m,["attribute-name"],l);k=Math.max(k,Lt.width+s);const Pt=await Va(d,ut.keys.join(),i,0,m,["attribute-keys"],l);S=Math.max(S,Pt.width+s);const jt=await Va(d,ut.comment,i,0,m,["attribute-comment"],l);_=Math.max(_,jt.width+s);const ne=Math.max(kt.height,Lt.height,Pt.height,jt.height)+o;b.push({yOffset:m,rowHeight:ne}),m+=ne}let B=4;S<=s&&(E=!1,S=0,B--),_<=s&&(M=!1,_=0,B--);const L=d.node().getBBox();if(g.width+s*2-(C+k+S+_)>0){const ut=g.width+s*2-(C+k+S+_);C+=ut/B,k+=ut/B,S>0&&(S+=ut/B),_>0&&(_+=ut/B)}const F=C+k+S+_,V=vt.svg(d),et=wt(t,{});t.look!=="handDrawn"&&(et.roughness=0,et.fillStyle="solid");let tt=0;b.length>0&&(tt=b.reduce((ut,kt)=>ut+((kt==null?void 0:kt.rowHeight)??0),0));const G=Math.max(L.width+s*2,(t==null?void 0:t.width)||0,F),ot=Math.max((tt??0)+g.height,(t==null?void 0:t.height)||0),Z=-G/2,q=-ot/2;d.selectAll("g:not(:first-child)").each((ut,kt,Lt)=>{const Pt=Yt(Lt[kt]),jt=Pt.attr("transform");let ne=0,er=0;if(jt){const kr=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(jt);kr&&(ne=parseFloat(kr[1]),er=parseFloat(kr[2]),Pt.attr("class").includes("attribute-name")?ne+=C:Pt.attr("class").includes("attribute-keys")?ne+=C+k:Pt.attr("class").includes("attribute-comment")&&(ne+=C+k+S))}Pt.attr("transform",`translate(${Z+s/2+ne}, ${er+q+g.height+o/2})`)}),d.select(".name").attr("transform","translate("+-g.width/2+", "+(q+o/2)+")");const W=V.rectangle(Z,q,G,ot,et),z=d.insert(()=>W,":first-child").attr("style",c.join("")),{themeVariables:U}=He(),{rowEven:R,rowOdd:K,nodeBorder:Q}=U;y.push(0);for(const[ut,kt]of b.entries()){const Pt=(ut+1)%2===0&&kt.yOffset!==0,jt=V.rectangle(Z,g.height+q+(kt==null?void 0:kt.yOffset),G,kt==null?void 0:kt.rowHeight,{...et,fill:Pt?R:K,stroke:Q});d.insert(()=>jt,"g.label").attr("style",c.join("")).attr("class",`row-rect-${Pt?"even":"odd"}`)}let $=V.line(Z,g.height+q,G+Z,g.height+q,et);d.insert(()=>$).attr("class","divider"),$=V.line(C+Z,g.height+q,C+Z,ot+q,et),d.insert(()=>$).attr("class","divider"),E&&($=V.line(C+k+Z,g.height+q,C+k+Z,ot+q,et),d.insert(()=>$).attr("class","divider")),M&&($=V.line(C+k+S+Z,g.height+q,C+k+S+Z,ot+q,et),d.insert(()=>$).attr("class","divider"));for(const ut of y)$=V.line(Z,g.height+q+ut,G+Z,g.height+q+ut,et),d.insert(()=>$).attr("class","divider");if(St(t,z),h&&t.look!=="handDrawn"){const ut=h.split(";"),kt=(dt=ut==null?void 0:ut.filter(Lt=>Lt.includes("stroke")))==null?void 0:dt.map(Lt=>`${Lt}`).join("; ");d.selectAll("path").attr("style",kt??""),d.selectAll(".row-rect-even path").attr("style",h)}return t.intersect=function(ut){return ft.rect(t,ut)},d}w(og,"erBox");async function Va(e,t,r,i=0,s=0,o=[],c=""){const l=e.insert("g").attr("class",`label ${o.join(" ")}`).attr("transform",`translate(${i}, ${s})`).attr("style",c);t!==iy(t)&&(t=iy(t),t=t.replaceAll("<","<").replaceAll(">",">"));const h=l.node().appendChild(await Ti(l,t,{width:Wn(t,r)+100,style:c,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let d=h.children[0];for(d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">");d.childNodes[0];)d=d.childNodes[0],d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">")}let f=h.getBBox();if(Te(r.htmlLabels)){const d=h.children[0];d.style.textAlign="start";const g=Yt(h);f=d.getBoundingClientRect(),g.attr("width",f.width),g.attr("height",f.height)}return f}w(Va,"addText");async function Nw(e,t,r,i,s=r.class.padding??12){const o=i?0:3,c=e.insert("g").attr("class",$t(t)).attr("id",t.domId||t.id);let l=null,h=null,f=null,d=null,g=0,m=0,y=0;if(l=c.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const _=t.annotations[0];await Lo(l,{text:`«${_}»`},0),g=l.node().getBBox().height}h=c.insert("g").attr("class","label-group text"),await Lo(h,t,0,["font-weight: bolder"]);const b=h.node().getBBox();m=b.height,f=c.insert("g").attr("class","members-group text");let C=0;for(const _ of t.members){const E=await Lo(f,_,C,[_.parseClassifier()]);C+=E+o}y=f.node().getBBox().height,y<=0&&(y=s/2),d=c.insert("g").attr("class","methods-group text");let k=0;for(const _ of t.methods){const E=await Lo(d,_,k,[_.parseClassifier()]);k+=E+o}let S=c.node().getBBox();if(l!==null){const _=l.node().getBBox();l.attr("transform",`translate(${-_.width/2})`)}return h.attr("transform",`translate(${-b.width/2}, ${g})`),S=c.node().getBBox(),f.attr("transform",`translate(0, ${g+m+s*2})`),S=c.node().getBBox(),d.attr("transform",`translate(0, ${g+m+(y?y+s*4:s*2)})`),S=c.node().getBBox(),{shapeSvg:c,bbox:S}}w(Nw,"textHelper");async function Lo(e,t,r,i=[]){const s=e.insert("g").attr("class","label").attr("style",i.join("; ")),o=He();let c="useHtmlLabels"in t?t.useHtmlLabels:Te(o.htmlLabels)??!0,l="";"text"in t?l=t.text:l=t.label,!c&&l.startsWith("\\")&&(l=l.substring(1)),ls(l)&&(c=!0);const h=await Ti(s,yp(ga(l)),{width:Wn(l,o)+50,classes:"markdown-node-label",useHtmlLabels:c},o);let f,d=1;if(c){const g=h.children[0],m=Yt(h);d=g.innerHTML.split("<br>").length,g.innerHTML.includes("</math>")&&(d+=g.innerHTML.split("<mrow>").length-1);const y=g.getElementsByTagName("img");if(y){const b=l.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...y].map(C=>new Promise(k=>{function S(){var _;if(C.style.display="flex",C.style.flexDirection="column",b){const E=((_=o.fontSize)==null?void 0:_.toString())??window.getComputedStyle(document.body).fontSize,B=parseInt(E,10)*5+"px";C.style.minWidth=B,C.style.maxWidth=B}else C.style.width="100%";k(C)}w(S,"setupImage"),setTimeout(()=>{C.complete&&S()}),C.addEventListener("error",S),C.addEventListener("load",S)})))}f=g.getBoundingClientRect(),m.attr("width",f.width),m.attr("height",f.height)}else{i.includes("font-weight: bolder")&&Yt(h).selectAll("tspan").attr("font-weight",""),d=h.children.length;const g=h.children[0];(h.textContent===""||h.textContent.includes(">"))&&(g.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" "&&(g.textContent=g.textContent[0]+" "+g.textContent.substring(1))),g.textContent==="undefined"&&(g.textContent=""),f=h.getBBox()}return s.attr("transform","translate(0,"+(-f.height/(2*d)+r)+")"),f.height}w(Lo,"addText");async function zw(e,t){var et,tt;const r=Kt(),i=r.class.padding??12,s=i,o=t.useHtmlLabels??Te(r.htmlLabels)??!0,c=t;c.annotations=c.annotations??[],c.members=c.members??[],c.methods=c.methods??[];const{shapeSvg:l,bbox:h}=await Nw(e,t,r,o,s),{labelStyles:f,nodeStyles:d}=Ct(t);t.labelStyle=f,t.cssStyles=c.styles||"";const g=((et=c.styles)==null?void 0:et.join(";"))||d||"";t.cssStyles||(t.cssStyles=g.replaceAll("!important","").split(";"));const m=c.members.length===0&&c.methods.length===0&&!((tt=r.class)!=null&&tt.hideEmptyMembersBox),y=vt.svg(l),b=wt(t,{});t.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const C=h.width;let k=h.height;c.members.length===0&&c.methods.length===0?k+=s:c.members.length>0&&c.methods.length===0&&(k+=s*2);const S=-C/2,_=-k/2,E=y.rectangle(S-i,_-i-(m?i:c.members.length===0&&c.methods.length===0?-i/2:0),C+2*i,k+2*i+(m?i*2:c.members.length===0&&c.methods.length===0?-i:0),b),M=l.insert(()=>E,":first-child");M.attr("class","basic label-container");const B=M.node().getBBox();l.selectAll(".text").each((G,ot,Z)=>{var K;const q=Yt(Z[ot]),W=q.attr("transform");let z=0;if(W){const $=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(W);$&&(z=parseFloat($[2]))}let U=z+_+i-(m?i:c.members.length===0&&c.methods.length===0?-i/2:0);o||(U-=4);let R=S;(q.attr("class").includes("label-group")||q.attr("class").includes("annotation-group"))&&(R=-((K=q.node())==null?void 0:K.getBBox().width)/2||0,l.selectAll("text").each(function(Q,$,X){window.getComputedStyle(X[$]).textAnchor==="middle"&&(R=0)})),q.attr("transform",`translate(${R}, ${U})`)});const L=l.select(".annotation-group").node().getBBox().height-(m?i/2:0)||0,F=l.select(".label-group").node().getBBox().height-(m?i/2:0)||0,V=l.select(".members-group").node().getBBox().height-(m?i/2:0)||0;if(c.members.length>0||c.methods.length>0||m){const G=y.line(B.x,L+F+_+i,B.x+B.width,L+F+_+i,b);l.insert(()=>G).attr("class","divider").attr("style",g)}if(m||c.members.length>0||c.methods.length>0){const G=y.line(B.x,L+F+V+_+s*2+i,B.x+B.width,L+F+V+_+i+s*2,b);l.insert(()=>G).attr("class","divider").attr("style",g)}if(c.look!=="handDrawn"&&l.selectAll("path").attr("style",g),M.select(":nth-child(2)").attr("style",g),l.selectAll(".divider").select("path").attr("style",g),t.labelStyle?l.selectAll("span").attr("style",t.labelStyle):l.selectAll("span").attr("style",g),!o){const G=RegExp(/color\s*:\s*([^;]*)/),ot=G.exec(g);if(ot){const Z=ot[0].replace("color","fill");l.selectAll("tspan").attr("style",Z)}else if(f){const Z=G.exec(f);if(Z){const q=Z[0].replace("color","fill");l.selectAll("tspan").attr("style",q)}}}return St(t,M),t.intersect=function(G){return ft.rect(t,G)},l}w(zw,"classBox");async function jw(e,t){var L,F;const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const s=t,o=t,c=20,l=20,h="verifyMethod"in t,f=$t(t),d=e.insert("g").attr("class",f).attr("id",t.domId??t.id);let g;h?g=await pn(d,`<<${s.type}>>`,0,t.labelStyle):g=await pn(d,"<<Element>>",0,t.labelStyle);let m=g;const y=await pn(d,s.name,m,t.labelStyle+"; font-weight: bold;");if(m+=y+l,h){const V=await pn(d,`${s.requirementId?`ID: ${s.requirementId}`:""}`,m,t.labelStyle);m+=V;const et=await pn(d,`${s.text?`Text: ${s.text}`:""}`,m,t.labelStyle);m+=et;const tt=await pn(d,`${s.risk?`Risk: ${s.risk}`:""}`,m,t.labelStyle);m+=tt,await pn(d,`${s.verifyMethod?`Verification: ${s.verifyMethod}`:""}`,m,t.labelStyle)}else{const V=await pn(d,`${o.type?`Type: ${o.type}`:""}`,m,t.labelStyle);m+=V,await pn(d,`${o.docRef?`Doc Ref: ${o.docRef}`:""}`,m,t.labelStyle)}const b=(((L=d.node())==null?void 0:L.getBBox().width)??200)+c,C=(((F=d.node())==null?void 0:F.getBBox().height)??200)+c,k=-b/2,S=-C/2,_=vt.svg(d),E=wt(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const M=_.rectangle(k,S,b,C,E),B=d.insert(()=>M,":first-child");if(B.attr("class","basic label-container").attr("style",i),d.selectAll(".label").each((V,et,tt)=>{const G=Yt(tt[et]),ot=G.attr("transform");let Z=0,q=0;if(ot){const R=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(ot);R&&(Z=parseFloat(R[1]),q=parseFloat(R[2]))}const W=q-C/2;let z=k+c/2;(et===0||et===1)&&(z=Z),G.attr("transform",`translate(${z}, ${W+c})`)}),m>g+y+l){const V=_.line(k,S+g+y+l,k+b,S+g+y+l,E);d.insert(()=>V).attr("style",i)}return St(t,B),t.intersect=function(V){return ft.rect(t,V)},d}w(jw,"requirementBox");async function pn(e,t,r,i=""){if(t==="")return 0;const s=e.insert("g").attr("class","label").attr("style",i),o=Kt(),c=o.htmlLabels??!0,l=await Ti(s,yp(ga(t)),{width:Wn(t,o)+50,classes:"markdown-node-label",useHtmlLabels:c,style:i},o);let h;if(c){const f=l.children[0],d=Yt(l);h=f.getBoundingClientRect(),d.attr("width",h.width),d.attr("height",h.height)}else{const f=l.children[0];for(const d of f.children)d.textContent=d.textContent.replaceAll(">",">").replaceAll("<","<"),i&&d.setAttribute("style",i);h=l.getBBox(),h.height+=6}return s.attr("transform",`translate(${-h.width/2},${-h.height/2+r})`),h.height}w(pn,"addText");var t4=w(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 Ww(e,t,{config:r}){var ot,Z;const{labelStyles:i,nodeStyles:s}=Ct(t);t.labelStyle=i||"";const o=10,c=t.width;t.width=(t.width??200)-10;const{shapeSvg:l,bbox:h,label:f}=await Dt(e,t,$t(t)),d=t.padding||10;let g="",m;"ticket"in t&&t.ticket&&((ot=r==null?void 0:r.kanban)!=null&&ot.ticketBaseUrl)&&(g=(Z=r==null?void 0:r.kanban)==null?void 0:Z.ticketBaseUrl.replace("#TICKET#",t.ticket),m=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",g).attr("target","_blank"));const y={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let b,C;m?{label:b,bbox:C}=await ad(m,"ticket"in t&&t.ticket||"",y):{label:b,bbox:C}=await ad(l,"ticket"in t&&t.ticket||"",y);const{label:k,bbox:S}=await ad(l,"assigned"in t&&t.assigned||"",y);t.width=c;const _=10,E=(t==null?void 0:t.width)||0,M=Math.max(C.height,S.height)/2,B=Math.max(h.height+_*2,(t==null?void 0:t.height)||0)+M,L=-E/2,F=-B/2;f.attr("transform","translate("+(d-E/2)+", "+(-M-h.height/2)+")"),b.attr("transform","translate("+(d-E/2)+", "+(-M+h.height/2)+")"),k.attr("transform","translate("+(d+E/2-S.width-2*o)+", "+(-M+h.height/2)+")");let V;const{rx:et,ry:tt}=t,{cssStyles:G}=t;if(t.look==="handDrawn"){const q=vt.svg(l),W=wt(t,{}),z=et||tt?q.path(Ei(L,F,E,B,et||0),W):q.rectangle(L,F,E,B,W);V=l.insert(()=>z,":first-child"),V.attr("class","basic label-container").attr("style",G||null)}else{V=l.insert("rect",":first-child"),V.attr("class","basic label-container __APA__").attr("style",s).attr("rx",et??5).attr("ry",tt??5).attr("x",L).attr("y",F).attr("width",E).attr("height",B);const q="priority"in t&&t.priority;if(q){const W=l.append("line"),z=L+2,U=F+Math.floor((et??0)/2),R=F+B-Math.floor((et??0)/2);W.attr("x1",z).attr("y1",U).attr("x2",z).attr("y2",R).attr("stroke-width","4").attr("stroke",t4(q))}}return St(t,V),t.height=B,t.intersect=function(q){return ft.rect(t,q)},l}w(Ww,"kanbanItem");async function Hw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:c,label:l}=await Dt(e,t,$t(t)),h=o.width+10*c,f=o.height+8*c,d=.15*h,{cssStyles:g}=t,m=o.width+20,y=o.height+20,b=Math.max(h,m),C=Math.max(f,y);l.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);let k;const S=`M0 0
|
|
236
|
+
a${d},${d} 1 0,0 ${b*.25},${-1*C*.1}
|
|
237
|
+
a${d},${d} 1 0,0 ${b*.25},0
|
|
238
|
+
a${d},${d} 1 0,0 ${b*.25},0
|
|
239
|
+
a${d},${d} 1 0,0 ${b*.25},${C*.1}
|
|
240
|
+
|
|
241
|
+
a${d},${d} 1 0,0 ${b*.15},${C*.33}
|
|
242
|
+
a${d*.8},${d*.8} 1 0,0 0,${C*.34}
|
|
243
|
+
a${d},${d} 1 0,0 ${-1*b*.15},${C*.33}
|
|
244
|
+
|
|
245
|
+
a${d},${d} 1 0,0 ${-1*b*.25},${C*.15}
|
|
246
|
+
a${d},${d} 1 0,0 ${-1*b*.25},0
|
|
247
|
+
a${d},${d} 1 0,0 ${-1*b*.25},0
|
|
248
|
+
a${d},${d} 1 0,0 ${-1*b*.25},${-1*C*.15}
|
|
249
|
+
|
|
250
|
+
a${d},${d} 1 0,0 ${-1*b*.1},${-1*C*.33}
|
|
251
|
+
a${d*.8},${d*.8} 1 0,0 0,${-1*C*.34}
|
|
252
|
+
a${d},${d} 1 0,0 ${b*.1},${-1*C*.33}
|
|
253
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const _=vt.svg(s),E=wt(t,{}),M=_.path(S,E);k=s.insert(()=>M,":first-child"),k.attr("class","basic label-container").attr("style",Ue(g))}else k=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",S);return k.attr("transform",`translate(${-b/2}, ${-C/2})`),St(t,k),t.calcIntersect=function(_,E){return ft.rect(_,E)},t.intersect=function(_){return J.info("Bang intersect",t,_),ft.rect(t,_)},s}w(Hw,"bang");async function qw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:c,label:l}=await Dt(e,t,$t(t)),h=o.width+2*c,f=o.height+2*c,d=.15*h,g=.25*h,m=.35*h,y=.2*h,{cssStyles:b}=t;let C;const k=`M0 0
|
|
254
|
+
a${d},${d} 0 0,1 ${h*.25},${-1*h*.1}
|
|
255
|
+
a${m},${m} 1 0,1 ${h*.4},${-1*h*.1}
|
|
256
|
+
a${g},${g} 1 0,1 ${h*.35},${h*.2}
|
|
257
|
+
|
|
258
|
+
a${d},${d} 1 0,1 ${h*.15},${f*.35}
|
|
259
|
+
a${y},${y} 1 0,1 ${-1*h*.15},${f*.65}
|
|
260
|
+
|
|
261
|
+
a${g},${d} 1 0,1 ${-1*h*.25},${h*.15}
|
|
262
|
+
a${m},${m} 1 0,1 ${-1*h*.5},0
|
|
263
|
+
a${d},${d} 1 0,1 ${-1*h*.25},${-1*h*.15}
|
|
264
|
+
|
|
265
|
+
a${d},${d} 1 0,1 ${-1*h*.1},${-1*f*.35}
|
|
266
|
+
a${y},${y} 1 0,1 ${h*.1},${-1*f*.65}
|
|
267
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const S=vt.svg(s),_=wt(t,{}),E=S.path(k,_);C=s.insert(()=>E,":first-child"),C.attr("class","basic label-container").attr("style",Ue(b))}else C=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",k);return l.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),C.attr("transform",`translate(${-h/2}, ${-f/2})`),St(t,C),t.calcIntersect=function(S,_){return ft.rect(S,_)},t.intersect=function(S){return J.info("Cloud intersect",t,S),ft.rect(t,S)},s}w(qw,"cloud");async function Uw(e,t){const{labelStyles:r,nodeStyles:i}=Ct(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:c,label:l}=await Dt(e,t,$t(t)),h=o.width+8*c,f=o.height+2*c,d=5,g=`
|
|
268
|
+
M${-h/2} ${f/2-d}
|
|
269
|
+
v${-f+2*d}
|
|
270
|
+
q0,-${d} ${d},-${d}
|
|
271
|
+
h${h-2*d}
|
|
272
|
+
q${d},0 ${d},${d}
|
|
273
|
+
v${f-2*d}
|
|
274
|
+
q0,${d} -${d},${d}
|
|
275
|
+
h${-h+2*d}
|
|
276
|
+
q-${d},0 -${d},-${d}
|
|
277
|
+
Z
|
|
278
|
+
`,m=s.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",g);return s.append("line").attr("class","node-line-").attr("x1",-h/2).attr("y1",f/2).attr("x2",h/2).attr("y2",f/2),l.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),s.append(()=>l.node()),St(t,m),t.calcIntersect=function(y,b){return ft.rect(y,b)},t.intersect=function(y){return ft.rect(t,y)},s}w(Uw,"defaultMindmapNode");async function Yw(e,t){const r={padding:t.padding??0};return sg(e,t,r)}w(Yw,"mindmapCircle");var e4=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:kw},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:bw},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:_w},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Lw},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Vb},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:sg},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Hw},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:qw},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:yw},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:tw},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:uw},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:cw},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Fw},{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:ow},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:Xb},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Bw},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:Nb},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:ww},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Ew},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Tw},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Zb},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:ew},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Hb},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:qb},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:Ub},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:hw},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Pw},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Jb},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:$w},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:fw},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Yb},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Gb},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Dw},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Iw},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Qb},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:Rw},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:Kb},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Cw},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:gw},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:pw},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:Ib},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Wb},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:Aw},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Mw},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Ow},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:xw},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:dw}],r4=w(()=>{const t=[...Object.entries({state:Sw,choice:zb,note:mw,rectWithTitle:vw,labelRect:lw,iconSquare:aw,iconCircle:nw,icon:rw,iconRounded:iw,imageSquare:sw,anchor:Ob,kanbanItem:Ww,mindmapCircle:Yw,defaultMindmapNode:Uw,classBox:zw,erBox:og,requirementBox:jw}),...e4.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(s=>[s,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),Vw=r4();function n4(e){return e in Vw}w(n4,"isValidShape");var Ku=new Map;async function Gw(e,t,r){let i,s;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const o=t.shape?Vw[t.shape]:void 0;if(!o)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let c;r.config.securityLevel==="sandbox"?c="_top":t.linkTarget&&(c=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",c??null),s=await o(i,t,r)}else s=await o(e,t,r),i=s;return t.tooltip&&s.attr("title",t.tooltip),Ku.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}w(Gw,"insertNode");var EO=w((e,t)=>{Ku.set(t.id,e)},"setNodeElem"),LO=w(()=>{Ku.clear()},"clear"),MO=w(e=>{const t=Ku.get(e.id);J.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"),i4=w((e,t,r,i,s,o)=>{t.arrowTypeStart&&dx(e,"start",t.arrowTypeStart,r,i,s,o),t.arrowTypeEnd&&dx(e,"end",t.arrowTypeEnd,r,i,s,o)},"addEdgeMarkers"),a4={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},dx=w((e,t,r,i,s,o,c)=>{var g;const l=a4[r];if(!l){J.warn(`Unknown arrow type: ${r}`);return}const h=l.type,d=`${s}_${o}-${h}${t==="start"?"Start":"End"}`;if(c&&c.trim()!==""){const m=c.replace(/[^\dA-Za-z]/g,"_"),y=`${d}_${m}`;if(!document.getElementById(y)){const b=document.getElementById(d);if(b){const C=b.cloneNode(!0);C.id=y,C.querySelectorAll("path, circle, line").forEach(S=>{S.setAttribute("stroke",c),l.fill&&S.setAttribute("fill",c)}),(g=b.parentNode)==null||g.appendChild(C)}}e.attr(`marker-${t}`,`url(${i}#${y})`)}else e.attr(`marker-${t}`,`url(${i}#${d})`)},"addEdgeMarker"),Su=new Map,De=new Map,AO=w(()=>{Su.clear(),De.clear()},"clear"),Ec=w(e=>e?e.reduce((r,i)=>r+";"+i,""):"","getLabelStyles"),s4=w(async(e,t)=>{let r=Te(Kt().flowchart.htmlLabels);const{labelStyles:i}=Ct(t);t.labelStyle=i;const s=await Ti(e,t.label,{style:t.labelStyle,useHtmlLabels:r,addSvgBackground:!0,isNode:!1});J.info("abc82",t,t.labelType);const o=e.insert("g").attr("class","edgeLabel"),c=o.insert("g").attr("class","label").attr("data-id",t.id);c.node().appendChild(s);let l=s.getBBox();if(r){const f=s.children[0],d=Yt(s);l=f.getBoundingClientRect(),d.attr("width",l.width),d.attr("height",l.height)}c.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),Su.set(t.id,o),t.width=l.width,t.height=l.height;let h;if(t.startLabelLeft){const f=await ra(t.startLabelLeft,Ec(t.labelStyle)),d=e.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner");h=g.node().appendChild(f);const m=f.getBBox();g.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"),De.get(t.id)||De.set(t.id,{}),De.get(t.id).startLeft=d,Mo(h,t.startLabelLeft)}if(t.startLabelRight){const f=await ra(t.startLabelRight,Ec(t.labelStyle)),d=e.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner");h=d.node().appendChild(f),g.node().appendChild(f);const m=f.getBBox();g.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"),De.get(t.id)||De.set(t.id,{}),De.get(t.id).startRight=d,Mo(h,t.startLabelRight)}if(t.endLabelLeft){const f=await ra(t.endLabelLeft,Ec(t.labelStyle)),d=e.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner");h=g.node().appendChild(f);const m=f.getBBox();g.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"),d.node().appendChild(f),De.get(t.id)||De.set(t.id,{}),De.get(t.id).endLeft=d,Mo(h,t.endLabelLeft)}if(t.endLabelRight){const f=await ra(t.endLabelRight,Ec(t.labelStyle)),d=e.insert("g").attr("class","edgeTerminals"),g=d.insert("g").attr("class","inner");h=g.node().appendChild(f);const m=f.getBBox();g.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"),d.node().appendChild(f),De.get(t.id)||De.set(t.id,{}),De.get(t.id).endRight=d,Mo(h,t.endLabelRight)}return s},"insertEdgeLabel");function Mo(e,t){Kt().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}w(Mo,"setTerminalWidth");var o4=w((e,t)=>{J.debug("Moving label abc88 ",e.id,e.label,Su.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=Kt(),{subGraphTitleTotalMargin:s}=Op(i);if(e.label){const o=Su.get(e.id);let c=e.x,l=e.y;if(r){const h=Kr.calcLabelPosition(r);J.debug("Moving label "+e.label+" from (",c,",",l,") to (",h.x,",",h.y,") abc88"),t.updatedPath&&(c=h.x,l=h.y)}o.attr("transform",`translate(${c}, ${l+s/2})`)}if(e.startLabelLeft){const o=De.get(e.id).startLeft;let c=e.x,l=e.y;if(r){const h=Kr.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);c=h.x,l=h.y}o.attr("transform",`translate(${c}, ${l})`)}if(e.startLabelRight){const o=De.get(e.id).startRight;let c=e.x,l=e.y;if(r){const h=Kr.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);c=h.x,l=h.y}o.attr("transform",`translate(${c}, ${l})`)}if(e.endLabelLeft){const o=De.get(e.id).endLeft;let c=e.x,l=e.y;if(r){const h=Kr.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);c=h.x,l=h.y}o.attr("transform",`translate(${c}, ${l})`)}if(e.endLabelRight){const o=De.get(e.id).endRight;let c=e.x,l=e.y;if(r){const h=Kr.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);c=h.x,l=h.y}o.attr("transform",`translate(${c}, ${l})`)}},"positionEdgeLabel"),l4=w((e,t)=>{const r=e.x,i=e.y,s=Math.abs(t.x-r),o=Math.abs(t.y-i),c=e.width/2,l=e.height/2;return s>=c||o>=l},"outsideNode"),c4=w((e,t,r)=>{J.debug(`intersection calc abc89:
|
|
279
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
280
|
+
insidePoint : ${JSON.stringify(r)}
|
|
281
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,s=e.y,o=Math.abs(i-r.x),c=e.width/2;let l=r.x<t.x?c-o:c+o;const h=e.height/2,f=Math.abs(t.y-r.y),d=Math.abs(t.x-r.x);if(Math.abs(s-t.y)*c>Math.abs(i-t.x)*h){let g=r.y<t.y?t.y-h-s:s-h-t.y;l=d*g/f;const m={x:r.x<t.x?r.x+l:r.x-d+l,y:r.y<t.y?r.y+f-g:r.y-f+g};return l===0&&(m.x=t.x,m.y=t.y),d===0&&(m.x=t.x),f===0&&(m.y=t.y),J.debug(`abc89 top/bottom calc, Q ${f}, q ${g}, R ${d}, r ${l}`,m),m}else{r.x<t.x?l=t.x-c-i:l=i-c-t.x;let g=f*l/d,m=r.x<t.x?r.x+d-l:r.x-d+l,y=r.y<t.y?r.y+g:r.y-g;return J.debug(`sides calc abc89, Q ${f}, q ${g}, R ${d}, r ${l}`,{_x:m,_y:y}),l===0&&(m=t.x,y=t.y),d===0&&(m=t.x),f===0&&(y=t.y),{x:m,y}}},"intersection"),px=w((e,t)=>{J.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],s=!1;return e.forEach(o=>{if(J.info("abc88 checking point",o,t),!l4(t,o)&&!s){const c=c4(t,i,o);J.debug("abc88 inside",o,i,c),J.debug("abc88 intersection",c,t);let l=!1;r.forEach(h=>{l=l||h.x===c.x&&h.y===c.y}),r.some(h=>h.x===c.x&&h.y===c.y)?J.warn("abc88 no intersect",c,r):r.push(c),s=!0}else J.warn("abc88 outside",o,i),i=o,s||r.push(o)}),J.debug("returning points",r),r},"cutPathAtIntersect");function Xw(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const s=e[i-1],o=e[i],c=e[i+1];(s.x===o.x&&o.y===c.y&&Math.abs(o.x-c.x)>5&&Math.abs(o.y-s.y)>5||s.y===o.y&&o.x===c.x&&Math.abs(o.x-s.x)>5&&Math.abs(o.y-c.y)>5)&&(t.push(o),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}w(Xw,"extractCornerPoints");var gx=w(function(e,t,r){const i=t.x-e.x,s=t.y-e.y,o=Math.sqrt(i*i+s*s),c=r/o;return{x:t.x-c*i,y:t.y-c*s}},"findAdjacentPoint"),u4=w(function(e){const{cornerPointPositions:t}=Xw(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const s=e[i-1],o=e[i+1],c=e[i],l=gx(s,c,5),h=gx(o,c,5),f=h.x-l.x,d=h.y-l.y;r.push(l);const g=Math.sqrt(2)*2;let m={x:c.x,y:c.y};if(Math.abs(o.x-s.x)>10&&Math.abs(o.y-s.y)>=10){J.debug("Corner point fixing",Math.abs(o.x-s.x),Math.abs(o.y-s.y));const y=5;c.x===l.x?m={x:f<0?l.x-y+g:l.x+y-g,y:d<0?l.y-g:l.y+g}:m={x:f<0?l.x-g:l.x+g,y:d<0?l.y-y+g:l.y+y-g}}else J.debug("Corner point skipping fixing",Math.abs(o.x-s.x),Math.abs(o.y-s.y));r.push(m,h)}else r.push(e[i]);return r},"fixCorners"),h4=w((e,t,r)=>{const i=e-t-r,s=2,o=2,c=s+o,l=Math.floor(i/c),h=Array(l).fill(`${s} ${o}`).join(" ");return`0 ${t} ${h} ${r}`},"generateDashArray"),f4=w(function(e,t,r,i,s,o,c,l=!1){var q;const{handDrawnSeed:h}=Kt();let f=t.points,d=!1;const g=s;var m=o;const y=[];for(const W in t.cssCompiledStyles)T2(W)||y.push(t.cssCompiledStyles[W]);J.debug("UIO intersect check",t.points,m.x,g.x),m.intersect&&g.intersect&&!l&&(f=f.slice(1,t.points.length-1),f.unshift(g.intersect(f[0])),J.debug("Last point UIO",t.start,"-->",t.end,f[f.length-1],m,m.intersect(f[f.length-1])),f.push(m.intersect(f[f.length-1])));const b=btoa(JSON.stringify(f));t.toCluster&&(J.info("to cluster abc88",r.get(t.toCluster)),f=px(t.points,r.get(t.toCluster).node),d=!0),t.fromCluster&&(J.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(f,null,2)),f=px(f.reverse(),r.get(t.fromCluster).node).reverse(),d=!0);let C=f.filter(W=>!Number.isNaN(W.y));C=u4(C);let k=Oc;switch(k=ru,t.curve){case"linear":k=ru;break;case"basis":k=Oc;break;case"cardinal":k=A1;break;case"bumpX":k=S1;break;case"bumpY":k=T1;break;case"catmullRom":k=$1;break;case"monotoneX":k=I1;break;case"monotoneY":k=N1;break;case"natural":k=j1;break;case"step":k=W1;break;case"stepAfter":k=q1;break;case"stepBefore":k=H1;break;default:k=Oc}const{x:S,y:_}=uA(t),E=V3().x(S).y(_).curve(k);let M;switch(t.thickness){case"normal":M="edge-thickness-normal";break;case"thick":M="edge-thickness-thick";break;case"invisible":M="edge-thickness-invisible";break;default:M="edge-thickness-normal"}switch(t.pattern){case"solid":M+=" edge-pattern-solid";break;case"dotted":M+=" edge-pattern-dotted";break;case"dashed":M+=" edge-pattern-dashed";break;default:M+=" edge-pattern-solid"}let B,L=t.curve==="rounded"?Qw(Kw(C,t),5):E(C);const F=Array.isArray(t.style)?t.style:[t.style];let V=F.find(W=>W==null?void 0:W.startsWith("stroke:")),et=!1;if(t.look==="handDrawn"){const W=vt.svg(e);Object.assign([],C);const z=W.path(L,{roughness:.3,seed:h});M+=" transition",B=Yt(z).select("path").attr("id",t.id).attr("class"," "+M+(t.classes?" "+t.classes:"")).attr("style",F?F.reduce((R,K)=>R+";"+K,""):"");let U=B.attr("d");B.attr("d",U),e.node().appendChild(B.node())}else{const W=y.join(";"),z=F?F.reduce((lt,gt)=>lt+gt+";",""):"";let U="";t.animate&&(U=" edge-animation-fast"),t.animation&&(U=" edge-animation-"+t.animation);const R=(W?W+";"+z+";":z)+";"+(F?F.reduce((lt,gt)=>lt+";"+gt,""):"");B=e.append("path").attr("d",L).attr("id",t.id).attr("class"," "+M+(t.classes?" "+t.classes:"")+(U??"")).attr("style",R),V=(q=R.match(/stroke:([^;]+)/))==null?void 0:q[1],et=t.animate===!0||!!t.animation||W.includes("animation");const K=B.node(),Q=typeof K.getTotalLength=="function"?K.getTotalLength():0,$=By[t.arrowTypeStart]||0,X=By[t.arrowTypeEnd]||0;if(t.look==="neo"&&!et){const gt=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?h4(Q,$,X):`0 ${$} ${Q-$-X} ${X}`}; stroke-dashoffset: 0;`;B.attr("style",gt+B.attr("style"))}}B.attr("data-edge",!0),B.attr("data-et","edge"),B.attr("data-id",t.id),B.attr("data-points",b),t.showPoints&&C.forEach(W=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",W.x).attr("cy",W.y)});let tt="";(Kt().flowchart.arrowMarkerAbsolute||Kt().state.arrowMarkerAbsolute)&&(tt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,tt=tt.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),J.info("arrowTypeStart",t.arrowTypeStart),J.info("arrowTypeEnd",t.arrowTypeEnd),i4(B,t,tt,c,i,V);const G=Math.floor(f.length/2),ot=f[G];Kr.isLabelCoordinateInPath(ot,B.attr("d"))||(d=!0);let Z={};return d&&(Z.updatedPath=f),Z.originalPath=t.points,Z},"insertEdge");function Qw(e,t){if(e.length<2)return"";let r="";const i=e.length,s=1e-5;for(let o=0;o<i;o++){const c=e[o],l=e[o-1],h=e[o+1];if(o===0)r+=`M${c.x},${c.y}`;else if(o===i-1)r+=`L${c.x},${c.y}`;else{const f=c.x-l.x,d=c.y-l.y,g=h.x-c.x,m=h.y-c.y,y=Math.hypot(f,d),b=Math.hypot(g,m);if(y<s||b<s){r+=`L${c.x},${c.y}`;continue}const C=f/y,k=d/y,S=g/b,_=m/b,E=C*S+k*_,M=Math.max(-1,Math.min(1,E)),B=Math.acos(M);if(B<s||Math.abs(Math.PI-B)<s){r+=`L${c.x},${c.y}`;continue}const L=Math.min(t/Math.sin(B/2),y/2,b/2),F=c.x-C*L,V=c.y-k*L,et=c.x+S*L,tt=c.y+_*L;r+=`L${F},${V}`,r+=`Q${c.x},${c.y} ${et},${tt}`}}return r}w(Qw,"generateRoundedPath");function Jd(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}}w(Jd,"calculateDeltaAndAngle");function Kw(e,t){const r=e.map(s=>({...s}));if(e.length>=2&&We[t.arrowTypeStart]){const s=We[t.arrowTypeStart],o=e[0],c=e[1],{angle:l}=Jd(o,c),h=s*Math.cos(l),f=s*Math.sin(l);r[0].x=o.x+h,r[0].y=o.y+f}const i=e.length;if(i>=2&&We[t.arrowTypeEnd]){const s=We[t.arrowTypeEnd],o=e[i-1],c=e[i-2],{angle:l}=Jd(c,o),h=s*Math.cos(l),f=s*Math.sin(l);r[i-1].x=o.x-h,r[i-1].y=o.y-f}return r}w(Kw,"applyMarkerOffsetsToPoints");var d4=w((e,t,r,i)=>{t.forEach(s=>{M4[s](e,r,i)})},"insertMarkers"),p4=w((e,t,r)=>{J.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),g4=w((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),m4=w((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),y4=w((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),x4=w((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),v4=w((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),b4=w((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),w4=w((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),C4=w((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"),k4=w((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"),_4=w((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 s=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");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),S4=w((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"),T4=w((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 s=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");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),E4=w((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
|
|
282
|
+
L20,10
|
|
283
|
+
M20,10
|
|
284
|
+
L0,20`)},"requirement_arrow"),L4=w((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"),M4={extension:p4,composition:g4,aggregation:m4,dependency:y4,lollipop:x4,point:v4,circle:b4,cross:w4,barb:C4,only_one:k4,zero_or_one:_4,one_or_more:S4,zero_or_more:T4,requirement_arrow:E4,requirement_contains:L4},A4=d4,B4={common:gs,getConfig:He,insertCluster:NF,insertEdge:f4,insertEdgeLabel:s4,insertMarkers:A4,insertNode:Gw,interpolateToCurve:Wp,labelHelper:Dt,log:J,positionEdgeLabel:o4},Vo={},Zw=w(e=>{for(const t of e)Vo[t.name]=t},"registerLayoutLoaders"),$4=w(()=>{Zw([{name:"dagre",loader:w(async()=>await Qt(()=>import("./dagre-6UL2VRFP-Cg3bcXLB.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")},{name:"cose-bilkent",loader:w(async()=>await Qt(()=>import("./cose-bilkent-S5V4N54A-DlQMwqZd.js"),__vite__mapDeps([6,7])),"loader")}])},"registerDefaultLayoutLoaders");$4();var BO=w(async(e,t)=>{if(!(e.layoutAlgorithm in Vo))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const r=Vo[e.layoutAlgorithm];return(await r.loader()).render(e,t,B4,{algorithm:r.algorithm})},"render"),$O=w((e="",{fallback:t="dagre"}={})=>{if(e in Vo)return e;if(t in Vo)return J.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"),Jw="comm",tC="rule",eC="decl",F4="@import",R4="@namespace",D4="@keyframes",P4="@layer",rC=Math.abs,lg=String.fromCharCode;function nC(e){return e.trim()}function Wc(e,t,r){return e.replace(t,r)}function O4(e,t,r){return e.indexOf(t,r)}function Ka(e,t){return e.charCodeAt(t)|0}function ds(e,t,r){return e.slice(t,r)}function gn(e){return e.length}function I4(e){return e.length}function Lc(e,t){return t.push(e),e}var Zu=1,ps=1,iC=0,Dr=0,be=0,bs="";function cg(e,t,r,i,s,o,c,l){return{value:e,root:t,parent:r,type:i,props:s,children:o,line:Zu,column:ps,length:c,return:"",siblings:l}}function N4(){return be}function z4(){return be=Dr>0?Ka(bs,--Dr):0,ps--,be===10&&(ps=1,Zu--),be}function Jr(){return be=Dr<iC?Ka(bs,Dr++):0,ps++,be===10&&(ps=1,Zu++),be}function vi(){return Ka(bs,Dr)}function Hc(){return Dr}function Ju(e,t){return ds(bs,e,t)}function Go(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 j4(e){return Zu=ps=1,iC=gn(bs=e),Dr=0,[]}function W4(e){return bs="",e}function sd(e){return nC(Ju(Dr-1,tp(e===91?e+2:e===40?e+1:e)))}function H4(e){for(;(be=vi())&&be<33;)Jr();return Go(e)>2||Go(be)>3?"":" "}function q4(e,t){for(;--t&&Jr()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Ju(e,Hc()+(t<6&&vi()==32&&Jr()==32))}function tp(e){for(;Jr();)switch(be){case e:return Dr;case 34:case 39:e!==34&&e!==39&&tp(be);break;case 40:e===41&&tp(e);break;case 92:Jr();break}return Dr}function U4(e,t){for(;Jr()&&e+be!==57;)if(e+be===84&&vi()===47)break;return"/*"+Ju(t,Dr-1)+"*"+lg(e===47?e:Jr())}function Y4(e){for(;!Go(vi());)Jr();return Ju(e,Dr)}function V4(e){return W4(qc("",null,null,null,[""],e=j4(e),0,[0],e))}function qc(e,t,r,i,s,o,c,l,h){for(var f=0,d=0,g=c,m=0,y=0,b=0,C=1,k=1,S=1,_=0,E="",M=s,B=o,L=i,F=E;k;)switch(b=_,_=Jr()){case 40:if(b!=108&&Ka(F,g-1)==58){O4(F+=Wc(sd(_),"&","&\f"),"&\f",rC(f?l[f-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:F+=sd(_);break;case 9:case 10:case 13:case 32:F+=H4(b);break;case 92:F+=q4(Hc()-1,7);continue;case 47:switch(vi()){case 42:case 47:Lc(G4(U4(Jr(),Hc()),t,r,h),h),(Go(b||1)==5||Go(vi()||1)==5)&&gn(F)&&ds(F,-1,void 0)!==" "&&(F+=" ");break;default:F+="/"}break;case 123*C:l[f++]=gn(F)*S;case 125*C:case 59:case 0:switch(_){case 0:case 125:k=0;case 59+d:S==-1&&(F=Wc(F,/\f/g,"")),y>0&&(gn(F)-g||C===0&&b===47)&&Lc(y>32?yx(F+";",i,r,g-1,h):yx(Wc(F," ","")+";",i,r,g-2,h),h);break;case 59:F+=";";default:if(Lc(L=mx(F,t,r,f,d,s,l,E,M=[],B=[],g,o),o),_===123)if(d===0)qc(F,t,L,L,M,o,g,l,B);else{switch(m){case 99:if(Ka(F,3)===110)break;case 108:if(Ka(F,2)===97)break;default:d=0;case 100:case 109:case 115:}d?qc(e,L,L,i&&Lc(mx(e,L,L,0,0,s,l,E,s,M=[],g,B),B),s,B,g,l,i?M:B):qc(F,L,L,L,[""],B,0,l,B)}}f=d=y=0,C=S=1,E=F="",g=c;break;case 58:g=1+gn(F),y=b;default:if(C<1){if(_==123)--C;else if(_==125&&C++==0&&z4()==125)continue}switch(F+=lg(_),_*C){case 38:S=d>0?1:(F+="\f",-1);break;case 44:l[f++]=(gn(F)-1)*S,S=1;break;case 64:vi()===45&&(F+=sd(Jr())),m=vi(),d=g=gn(E=F+=Y4(Hc())),_++;break;case 45:b===45&&gn(F)==2&&(C=0)}}return o}function mx(e,t,r,i,s,o,c,l,h,f,d,g){for(var m=s-1,y=s===0?o:[""],b=I4(y),C=0,k=0,S=0;C<i;++C)for(var _=0,E=ds(e,m+1,m=rC(k=c[C])),M=e;_<b;++_)(M=nC(k>0?y[_]+" "+E:Wc(E,/&\f/g,y[_])))&&(h[S++]=M);return cg(e,t,r,s===0?tC:l,h,f,d,g)}function G4(e,t,r,i){return cg(e,t,r,Jw,lg(N4()),ds(e,2,-2),0,i)}function yx(e,t,r,i,s){return cg(e,t,r,eC,ds(e,0,i),ds(e,i+1,-1),i,s)}function ep(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function X4(e,t,r,i){switch(e.type){case P4:if(e.children.length)break;case F4:case R4:case eC:return e.return=e.return||e.value;case Jw:return"";case D4:return e.return=e.value+"{"+ep(e.children,i)+"}";case tC:if(!gn(e.value=e.props.join(",")))return""}return gn(r=ep(e.children,i))?e.return=e.value+"{"+r+"}":""}var Q4=A2(Object.keys,Object),K4=Object.prototype,Z4=K4.hasOwnProperty;function J4(e){if(!Wu(e))return Q4(e);var t=[];for(var r in Object(e))Z4.call(e,r)&&r!="constructor"&&t.push(r);return t}var rp=pa(bn,"DataView"),np=pa(bn,"Promise"),ip=pa(bn,"Set"),ap=pa(bn,"WeakMap"),xx="[object Map]",tR="[object Object]",vx="[object Promise]",bx="[object Set]",wx="[object WeakMap]",Cx="[object DataView]",eR=da(rp),rR=da(Uo),nR=da(np),iR=da(ip),aR=da(ap),Ki=ys;(rp&&Ki(new rp(new ArrayBuffer(1)))!=Cx||Uo&&Ki(new Uo)!=xx||np&&Ki(np.resolve())!=vx||ip&&Ki(new ip)!=bx||ap&&Ki(new ap)!=wx)&&(Ki=function(e){var t=ys(e),r=t==tR?e.constructor:void 0,i=r?da(r):"";if(i)switch(i){case eR:return Cx;case rR:return xx;case nR:return vx;case iR:return bx;case aR:return wx}return t});var sR="[object Map]",oR="[object Set]",lR=Object.prototype,cR=lR.hasOwnProperty;function kx(e){if(e==null)return!0;if(Hu(e)&&(gu(e)||typeof e=="string"||typeof e.splice=="function"||zp(e)||jp(e)||pu(e)))return!e.length;var t=Ki(e);if(t==sR||t==oR)return!e.size;if(Wu(e))return!J4(e).length;for(var r in e)if(cR.call(e,r))return!1;return!0}var aC="c4",uR=w(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),hR=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./c4Diagram-YG6GDRKO-BnOHaShT.js");return{diagram:t}},__vite__mapDeps([8,9]));return{id:aC,diagram:e}},"loader"),fR={id:aC,detector:uR,loader:hR},dR=fR,sC="flowchart",pR=w((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"),gR=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-sQ3kW-fI.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]));return{id:sC,diagram:e}},"loader"),mR={id:sC,detector:pR,loader:gR},yR=mR,oC="flowchart-v2",xR=w((e,t)=>{var r,i,s;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)&&((s=t==null?void 0:t.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),vR=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-sQ3kW-fI.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]));return{id:oC,diagram:e}},"loader"),bR={id:oC,detector:xR,loader:vR},wR=bR,lC="er",CR=w(e=>/^\s*erDiagram/.test(e),"detector"),kR=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./erDiagram-Q2GNP2WA-DYwUWlCT.js");return{diagram:t}},__vite__mapDeps([15,12,13,14]));return{id:lC,diagram:e}},"loader"),_R={id:lC,detector:CR,loader:kR},SR=_R,cC="gitGraph",TR=w(e=>/^\s*gitGraph/.test(e),"detector"),ER=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./gitGraphDiagram-V2S2FVAM-DFEvKer1.js");return{diagram:t}},__vite__mapDeps([16,17,18,19,2,4,5]));return{id:cC,diagram:e}},"loader"),LR={id:cC,detector:TR,loader:ER},MR=LR,uC="gantt",AR=w(e=>/^\s*gantt/.test(e),"detector"),BR=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./ganttDiagram-JELNMOA3-CIuv7p9q.js");return{diagram:t}},__vite__mapDeps([20,21,22,23]));return{id:uC,diagram:e}},"loader"),$R={id:uC,detector:AR,loader:BR},FR=$R,hC="info",RR=w(e=>/^\s*info/.test(e),"detector"),DR=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./infoDiagram-HS3SLOUP-C0TxWZ2S.js");return{diagram:t}},__vite__mapDeps([24,19,2,4,5]));return{id:hC,diagram:e}},"loader"),PR={id:hC,detector:RR,loader:DR},fC="pie",OR=w(e=>/^\s*pie/.test(e),"detector"),IR=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./pieDiagram-ADFJNKIX-Cgsew47Y.js");return{diagram:t}},__vite__mapDeps([25,17,19,2,4,5,26,27,22]));return{id:fC,diagram:e}},"loader"),NR={id:fC,detector:OR,loader:IR},dC="quadrantChart",zR=w(e=>/^\s*quadrantChart/.test(e),"detector"),jR=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./quadrantDiagram-AYHSOK5B-BE2Bdgtn.js");return{diagram:t}},__vite__mapDeps([28,21,22,23]));return{id:dC,diagram:e}},"loader"),WR={id:dC,detector:zR,loader:jR},HR=WR,pC="xychart",qR=w(e=>/^\s*xychart(-beta)?/.test(e),"detector"),UR=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./xychartDiagram-PRI3JC2R-DzTsHhGI.js");return{diagram:t}},__vite__mapDeps([29,22,27,21,23]));return{id:pC,diagram:e}},"loader"),YR={id:pC,detector:qR,loader:UR},VR=YR,gC="requirement",GR=w(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),XR=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./requirementDiagram-UZGBJVZJ-BTaZACZy.js");return{diagram:t}},__vite__mapDeps([30,12,13]));return{id:gC,diagram:e}},"loader"),QR={id:gC,detector:GR,loader:XR},KR=QR,mC="sequence",ZR=w(e=>/^\s*sequenceDiagram/.test(e),"detector"),JR=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./sequenceDiagram-WL72ISMW-C3iJAHn9.js");return{diagram:t}},__vite__mapDeps([31,9,18]));return{id:mC,diagram:e}},"loader"),tD={id:mC,detector:ZR,loader:JR},eD=tD,yC="class",rD=w((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"),nD=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./classDiagram-2ON5EDUG-D_eYi68R.js");return{diagram:t}},__vite__mapDeps([32,33,11,12,13]));return{id:yC,diagram:e}},"loader"),iD={id:yC,detector:rD,loader:nD},aD=iD,xC="classDiagram",sD=w((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"),oD=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./classDiagram-v2-WZHVMYZB-D_eYi68R.js");return{diagram:t}},__vite__mapDeps([34,33,11,12,13]));return{id:xC,diagram:e}},"loader"),lD={id:xC,detector:sD,loader:oD},cD=lD,vC="state",uD=w((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"),hD=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./stateDiagram-FKZM4ZOC-BcsiwuIg.js");return{diagram:t}},__vite__mapDeps([35,36,12,13,1,2,3,4]));return{id:vC,diagram:e}},"loader"),fD={id:vC,detector:uD,loader:hD},dD=fD,bC="stateDiagram",pD=w((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"),gD=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./stateDiagram-v2-4FDKWEC3-C_To8yt7.js");return{diagram:t}},__vite__mapDeps([37,36,12,13]));return{id:bC,diagram:e}},"loader"),mD={id:bC,detector:pD,loader:gD},yD=mD,wC="journey",xD=w(e=>/^\s*journey/.test(e),"detector"),vD=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./journeyDiagram-XKPGCS4Q-96urCN97.js");return{diagram:t}},__vite__mapDeps([38,9,11,26]));return{id:wC,diagram:e}},"loader"),bD={id:wC,detector:xD,loader:vD},wD=bD,CD=w((e,t,r)=>{J.debug(`rendering svg for syntax error
|
|
285
|
+
`);const i=rM(t),s=i.append("g");i.attr("viewBox","0 0 2412 512"),Gx(i,100,512,!0),s.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"),s.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"),s.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"),s.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"),s.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"),s.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"),s.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"),s.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"),CC={draw:CD},kD=CC,_D={db:{},renderer:CC,parser:{parse:w(()=>{},"parse")}},SD=_D,kC="flowchart-elk",TD=w((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"),ED=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-sQ3kW-fI.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]));return{id:kC,diagram:e}},"loader"),LD={id:kC,detector:TD,loader:ED},MD=LD,_C="timeline",AD=w(e=>/^\s*timeline/.test(e),"detector"),BD=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./timeline-definition-IT6M3QCI-DE_h5BkE.js");return{diagram:t}},__vite__mapDeps([39,26]));return{id:_C,diagram:e}},"loader"),$D={id:_C,detector:AD,loader:BD},FD=$D,SC="mindmap",RD=w(e=>/^\s*mindmap/.test(e),"detector"),DD=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./mindmap-definition-VGOIOE7T-CkBjm9Lt.js");return{diagram:t}},__vite__mapDeps([40,12,13]));return{id:SC,diagram:e}},"loader"),PD={id:SC,detector:RD,loader:DD},OD=PD,TC="kanban",ID=w(e=>/^\s*kanban/.test(e),"detector"),ND=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./kanban-definition-3W4ZIXB7-CSa3oBXn.js");return{diagram:t}},__vite__mapDeps([41,11]));return{id:TC,diagram:e}},"loader"),zD={id:TC,detector:ID,loader:ND},jD=zD,EC="sankey",WD=w(e=>/^\s*sankey(-beta)?/.test(e),"detector"),HD=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./sankeyDiagram-TZEHDZUN-CjDSXCPY.js");return{diagram:t}},__vite__mapDeps([42,27,22]));return{id:EC,diagram:e}},"loader"),qD={id:EC,detector:WD,loader:HD},UD=qD,LC="packet",YD=w(e=>/^\s*packet(-beta)?/.test(e),"detector"),VD=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./diagram-S2PKOQOG-Dy8e1fcf.js");return{diagram:t}},__vite__mapDeps([43,17,19,2,4,5]));return{id:LC,diagram:e}},"loader"),GD={id:LC,detector:YD,loader:VD},MC="radar",XD=w(e=>/^\s*radar-beta/.test(e),"detector"),QD=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./diagram-QEK2KX5R-CD0NQ76t.js");return{diagram:t}},__vite__mapDeps([44,17,19,2,4,5]));return{id:MC,diagram:e}},"loader"),KD={id:MC,detector:XD,loader:QD},AC="block",ZD=w(e=>/^\s*block(-beta)?/.test(e),"detector"),JD=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./blockDiagram-VD42YOAC-TcpTe9UV.js");return{diagram:t}},__vite__mapDeps([45,11,5,2,1,14]));return{id:AC,diagram:e}},"loader"),tP={id:AC,detector:ZD,loader:JD},eP=tP,BC="architecture",rP=w(e=>/^\s*architecture/.test(e),"detector"),nP=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./architectureDiagram-VXUJARFQ-DOq-Y3RV.js");return{diagram:t}},__vite__mapDeps([46,17,19,2,4,5,7]));return{id:BC,diagram:e}},"loader"),iP={id:BC,detector:rP,loader:nP},aP=iP,$C="treemap",sP=w(e=>/^\s*treemap/.test(e),"detector"),oP=w(async()=>{const{diagram:e}=await Qt(async()=>{const{diagram:t}=await import("./diagram-PSM6KHXK-DE96Mux2.js");return{diagram:t}},__vite__mapDeps([47,13,17,19,2,4,5,23,27,22]));return{id:$C,diagram:e}},"loader"),lP={id:$C,detector:sP,loader:oP},_x=!1,th=w(()=>{_x||(_x=!0,Xc("error",SD,e=>e.toLowerCase().trim()==="error"),Xc("---",{db:{clear:w(()=>{},"clear")},styles:{},renderer:{draw:w(()=>{},"draw")},parser:{parse:w(()=>{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:w(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),fd(MD,OD,aP),fd(dR,jD,cD,aD,SR,FR,PR,NR,KR,eD,wR,yR,FD,MR,yD,dD,wD,HR,UD,GD,VR,eP,KD,lP))},"addDiagrams"),cP=w(async()=>{J.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(aa).map(async([r,{detector:i,loader:s}])=>{if(s)try{md(r)}catch{try{const{diagram:o,id:c}=await s();Xc(c,o,i)}catch(o){throw J.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete aa[r],o}}}))).filter(r=>r.status==="rejected");if(t.length>0){J.error(`Failed to load ${t.length} external diagrams`);for(const r of t)J.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),uP="graphics-document document";function FC(e,t){e.attr("role",uP),t!==""&&e.attr("aria-roledescription",t)}w(FC,"setA11yDiagramInfo");function RC(e,t,r,i){if(e.insert!==void 0){if(r){const s=`chart-desc-${i}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(r)}if(t){const s=`chart-title-${i}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(t)}}}w(RC,"addSVGa11yTitleDescription");var ia,sp=(ia=class{constructor(t,r,i,s,o){this.type=t,this.text=r,this.db=i,this.parser=s,this.renderer=o}static async fromText(t,r={}){var f,d;const i=He(),s=hp(t,i);t=l$(t)+`
|
|
286
|
+
`;try{md(s)}catch{const g=$S(s);if(!g)throw new Px(`Diagram ${s} not found.`);const{id:m,diagram:y}=await g();Xc(m,y)}const{db:o,parser:c,renderer:l,init:h}=md(s);return c.parser&&(c.parser.yy=o),(f=o.clear)==null||f.call(o),h==null||h(i),r.title&&((d=o.setDiagramTitle)==null||d.call(o,r.title)),await c.parse(t),new ia(s,t,o,c,l)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},w(ia,"Diagram"),ia),Sx=[],hP=w(()=>{Sx.forEach(e=>{e()}),Sx=[]},"attachFunctions"),fP=w(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function DC(e){const t=e.match(Dx);if(!t)return{text:e,metadata:{}};let r=cA(t[1],{schema:lA})??{};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}}w(DC,"extractFrontMatter");var dP=w(e=>e.replace(/\r\n?/g,`
|
|
287
|
+
`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),pP=w(e=>{const{text:t,metadata:r}=DC(e),{displayMode:i,title:s,config:o={}}=r;return i&&(o.gantt||(o.gantt={}),o.gantt.displayMode=i),{title:s,config:o,text:t}},"processFrontmatter"),gP=w(e=>{const t=Kr.detectInit(e)??{},r=Kr.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:X5(e),directive:t}},"processDirectives");function ug(e){const t=dP(e),r=pP(t),i=gP(r.text),s=Vp(r.config,i.directive);return e=fP(i.text),{code:e,title:r.title,config:s}}w(ug,"preprocessDiagram");function PC(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}w(PC,"toBase64");var mP=5e4,yP="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",xP="sandbox",vP="loose",bP="http://www.w3.org/2000/svg",wP="http://www.w3.org/1999/xlink",CP="http://www.w3.org/1999/xhtml",kP="100%",_P="100%",SP="border:0;margin:0;",TP="margin:0",EP="allow-top-navigation-by-user-activation allow-popups",LP='The "iframe" tag is not supported by your browser.',MP=["foreignobject"],AP=["dominant-baseline"];function hg(e){const t=ug(e);return Vc(),GS(t.config??{}),t}w(hg,"processAndSetConfigs");async function OC(e,t){th();try{const{code:r,config:i}=hg(e);return{diagramType:(await NC(r)).type,config:i}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}w(OC,"parse");var Tx=w((e,t,r=[])=>`
|
|
288
|
+
.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),BP=w((e,t=new Map)=>{var i;let r="";if(e.themeCSS!==void 0&&(r+=`
|
|
289
|
+
${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
|
|
290
|
+
:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
|
|
291
|
+
:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const l=e.htmlLabels??((i=e.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(h=>{kx(h.styles)||l.forEach(f=>{r+=Tx(h.id,f,h.styles)}),kx(h.textStyles)||(r+=Tx(h.id,"tspan",((h==null?void 0:h.textStyles)||[]).map(f=>f.replace("color","fill"))))})}return r},"createCssStyles"),$P=w((e,t,r,i)=>{const s=BP(e,r),o=pT(t,s,e.themeVariables);return ep(V4(`${i}{${o}}`),X4)},"createUserStyles"),FP=w((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=ga(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),RP=w((e="",t)=>{var s,o;const r=(o=(s=t==null?void 0:t.viewBox)==null?void 0:s.baseVal)!=null&&o.height?t.viewBox.baseVal.height+"px":_P,i=PC(`<body style="${TP}">${e}</body>`);return`<iframe style="width:${kP};height:${r};${SP}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${EP}">
|
|
292
|
+
${LP}
|
|
293
|
+
</iframe>`},"putIntoIFrame"),Ex=w((e,t,r,i,s)=>{const o=e.append("div");o.attr("id",r),i&&o.attr("style",i);const c=o.append("svg").attr("id",t).attr("width","100%").attr("xmlns",bP);return s&&c.attr("xmlns:xlink",s),c.append("g"),e},"appendDivSvgG");function op(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}w(op,"sandboxedIframe");var DP=w((e,t,r,i)=>{var s,o,c;(s=e.getElementById(t))==null||s.remove(),(o=e.getElementById(r))==null||o.remove(),(c=e.getElementById(i))==null||c.remove()},"removeExistingElements"),PP=w(async function(e,t,r){var ot,Z,q,W,z,U;th();const i=hg(t);t=i.code;const s=He();J.debug(s),t.length>((s==null?void 0:s.maxTextSize)??mP)&&(t=yP);const o="#"+e,c="i"+e,l="#"+c,h="d"+e,f="#"+h,d=w(()=>{const K=Yt(m?l:f).node();K&&"remove"in K&&K.remove()},"removeTempElements");let g=Yt("body");const m=s.securityLevel===xP,y=s.securityLevel===vP,b=s.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),m){const R=op(Yt(r),c);g=Yt(R.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=Yt(r);Ex(g,e,h,`font-family: ${b}`,wP)}else{if(DP(document,e,h,c),m){const R=op(Yt("body"),c);g=Yt(R.nodes()[0].contentDocument.body),g.node().style.margin=0}else g=Yt("body");Ex(g,e,h)}let C,k;try{C=await sp.fromText(t,{title:i.title})}catch(R){if(s.suppressErrorRendering)throw d(),R;C=await sp.fromText("error"),k=R}const S=g.select(f).node(),_=C.type,E=S.firstChild,M=E.firstChild,B=(Z=(ot=C.renderer).getClasses)==null?void 0:Z.call(ot,t,C),L=$P(s,_,B,o),F=document.createElement("style");F.innerHTML=L,E.insertBefore(F,M);try{await C.renderer.draw(t,e,Y0.version,C)}catch(R){throw s.suppressErrorRendering?d():kD.draw(t,e,Y0.version),R}const V=g.select(`${f} svg`),et=(W=(q=C.db).getAccTitle)==null?void 0:W.call(q),tt=(U=(z=C.db).getAccDescription)==null?void 0:U.call(z);zC(_,V,et,tt),g.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",CP);let G=g.select(f).node().innerHTML;if(J.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),G=FP(G,m,Te(s.arrowMarkerAbsolute)),m){const R=g.select(f+" svg").node();G=RP(G,R)}else y||(G=ss.sanitize(G,{ADD_TAGS:MP,ADD_ATTR:AP,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(hP(),k)throw k;return d(),{diagramType:_,svg:G,bindFunctions:C.db.bindFunctions}},"render");function IC(e={}){var i;const t=_e({},e);t!=null&&t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),YS(t),t!=null&&t.theme&&t.theme in Nn?t.themeVariables=Nn[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Nn.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?US(t):jx();up(r.logLevel),th()}w(IC,"initialize");var NC=w((e,t={})=>{const{code:r}=ug(e);return sp.fromText(r,t)},"getDiagramFromText");function zC(e,t,r,i){FC(t,e),RC(t,r,i,t.attr("id"))}w(zC,"addA11yInfo");var ha=Object.freeze({render:PP,parse:OC,getDiagramFromText:NC,initialize:IC,getConfig:He,setConfig:Wx,getSiteConfig:jx,updateSiteConfig:VS,reset:w(()=>{Vc()},"reset"),globalReset:w(()=>{Vc(os)},"globalReset"),defaultConfig:os});up(He().logLevel);Vc(He());var OP=w((e,t,r)=>{J.warn(e),Yp(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"),jC=w(async function(e={querySelector:".mermaid"}){try{await IP(e)}catch(t){if(Yp(t)&&J.error(t.str),wr.parseError&&wr.parseError(t),!e.suppressErrors)throw J.error("Use the suppressErrors option to suppress these errors"),t}},"run"),IP=w(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=ha.getConfig();J.debug(`${e?"":"No "}Callback function found`);let s;if(r)s=r;else if(t)s=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");J.debug(`Found ${s.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(J.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),ha.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const o=new Kr.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let c;const l=[];for(const h of Array.from(s)){if(J.info("Rendering diagram: "+h.id),h.getAttribute("data-processed"))continue;h.setAttribute("data-processed","true");const f=`mermaid-${o.next()}`;c=h.innerHTML,c=lb(Kr.entityDecode(c)).trim().replace(/<br\s*\/?>/gi,"<br/>");const d=Kr.detectInit(c);d&&J.debug("Detected early reinit: ",d);try{const{svg:g,bindFunctions:m}=await UC(f,c,h);h.innerHTML=g,e&&await e(f),m&&m(h)}catch(g){OP(g,l,wr.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),WC=w(function(e){ha.initialize(e)},"initialize"),NP=w(async function(e,t,r){J.warn("mermaid.init is deprecated. Please use run instead."),e&&WC(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await jC(i)},"init"),zP=w(async(e,{lazyLoad:t=!0}={})=>{th(),fd(...e),t===!1&&await cP()},"registerExternalDiagrams"),HC=w(function(){if(wr.startOnLoad){const{startOnLoad:e}=ha.getConfig();e&&wr.run().catch(t=>J.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",HC,!1);var jP=w(function(e){wr.parseError=e},"setParseErrorHandler"),Tu=[],od=!1,qC=w(async()=>{if(!od){for(od=!0;Tu.length>0;){const e=Tu.shift();if(e)try{await e()}catch(t){J.error("Error executing queue",t)}}od=!1}},"executeQueue"),WP=w(async(e,t)=>new Promise((r,i)=>{const s=w(()=>new Promise((o,c)=>{ha.parse(e,t).then(l=>{o(l),r(l)},l=>{var h;J.error("Error parsing",l),(h=wr.parseError)==null||h.call(wr,l),c(l),i(l)})}),"performCall");Tu.push(s),qC().catch(i)}),"parse"),UC=w((e,t,r)=>new Promise((i,s)=>{const o=w(()=>new Promise((c,l)=>{ha.render(e,t,r).then(h=>{c(h),i(h)},h=>{var f;J.error("Error parsing",h),(f=wr.parseError)==null||f.call(wr,h),l(h),s(h)})}),"performCall");Tu.push(o),qC().catch(s)}),"render"),HP=w(()=>Object.keys(aa).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),wr={startOnLoad:!0,mermaidAPI:ha,parse:WP,render:UC,init:NP,run:jC,registerExternalDiagrams:zP,registerLayoutLoaders:Zw,initialize:WC,parseError:void 0,contentLoaded:HC,setParseErrorHandler:jP,detectType:hp,registerIconPacks:fF,getRegisteredDiagramsMetadata:HP},YC=wr;/*! Check if previously processed *//*!
|
|
294
|
+
* Wait for document loaded before starting the execution
|
|
295
|
+
*/YC.initialize({startOnLoad:!1,theme:"dark",themeVariables:{darkMode:!0,background:"#161b22",primaryColor:"#21262d",primaryTextColor:"#c9d1d9",primaryBorderColor:"#30363d",lineColor:"#58a6ff",secondaryColor:"#21262d",tertiaryColor:"#161b22",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif',fontSize:"14px",nodeBorder:"#58a6ff",mainBkg:"#21262d",nodeTextColor:"#c9d1d9",edgeLabelBackground:"#161b22"},flowchart:{htmlLabels:!0,curve:"basis"}});let qP=0;function UP({data:e}){const t=ht.useRef(null),[r,i]=ht.useState(0),[s,o]=ht.useState(!1),[c,l]=ht.useState(null),h=(e==null?void 0:e.format)||"mermaid",f=(e==null?void 0:e.content)||"",d=(e==null?void 0:e.steps)||[],g=(e==null?void 0:e.animate)&&d.length>0,m=(e==null?void 0:e.module)||null,y=(e==null?void 0:e.step)||null;ht.useEffect(()=>{!f&&d.length===0||(l(null),i(0),g?S():b(f,h))},[f,h,d.length]);async function b(E,M){const B=t.current;if(B)try{M==="mermaid"?await C(B,E):M==="svg"?k(B,E):M==="d3"?B.innerHTML=`
|
|
296
|
+
<div style="text-align:center; padding:40px; color:#8b949e;">
|
|
297
|
+
<p>D3 visualization support coming soon</p>
|
|
298
|
+
</div>
|
|
299
|
+
`:l(`Unsupported diagram format: ${M}`)}catch(L){console.error("[Canvas] Render error:",L),l(L.message||"Failed to render diagram")}}async function C(E,M){E.innerHTML="";const B=`mermaid-${++qP}`;try{const{svg:L}=await YC.render(B,M);E.innerHTML=`<div class="mermaid-output" style="display:flex;justify-content:center;align-items:center;min-height:200px;">${L}</div>`}catch(L){const F=document.getElementById(B);throw F&&F.remove(),L}}function k(E,M){E.innerHTML=`<div style="display:flex;justify-content:center;align-items:center;min-height:200px;">${M}</div>`}async function S(){o(!0);for(let E=0;E<d.length;E++){i(E);const M=d[E],B=M.content||M,L=M.format||h;if(await b(B,L),E<d.length-1){const F=M.delay||1500;await new Promise(V=>setTimeout(V,F))}}o(!1)}function _(E){if(s||E<0||E>=d.length)return;i(E);const M=d[E],B=M.content||M,L=M.format||h;b(B,L)}return e?O.jsxs("div",{style:he.container,children:[(m||y)&&O.jsxs("div",{style:he.breadcrumb,children:[m&&O.jsx("span",{style:he.breadcrumbModule,children:m}),m&&y&&O.jsx("span",{style:he.breadcrumbSep,children:"/"}),y&&O.jsx("span",{style:he.breadcrumbStep,children:y})]}),O.jsx("div",{style:he.diagramWrapper,children:c?O.jsxs("div",{style:he.errorBox,children:[O.jsx("p",{style:he.errorTitle,children:"Render Error"}),O.jsx("pre",{style:he.errorMessage,children:c}),O.jsx("p",{style:he.errorHint,children:"The diagram syntax may be invalid."})]}):O.jsx("div",{ref:t,style:he.diagram})}),d.length>0&&O.jsxs("div",{style:he.stepControls,children:[O.jsxs("button",{onClick:()=>_(r-1),disabled:r===0||s,style:{...he.stepButton,opacity:r===0||s?.4:1},children:["◀"," Prev"]}),O.jsx("div",{style:he.stepIndicators,children:d.map((E,M)=>O.jsx("button",{onClick:()=>_(M),disabled:s,style:{...he.stepDot,backgroundColor:M===r?"#58a6ff":"#30363d"}},M))}),O.jsx("span",{style:he.stepLabel,children:s?"Animating...":`Step ${r+1} of ${d.length}`}),O.jsxs("button",{onClick:()=>_(r+1),disabled:r>=d.length-1||s,style:{...he.stepButton,opacity:r>=d.length-1||s?.4:1},children:["Next ","▶"]})]}),(e==null?void 0:e.awaitingAnswer)&&O.jsxs("div",{style:he.answerPrompt,children:[O.jsx("span",{style:he.promptIcon,children:"💬"}),O.jsx("span",{children:"Answer in the terminal"})]})]}):O.jsxs("div",{style:he.empty,children:[O.jsx("div",{style:he.emptyIcon,children:"🎨"}),O.jsx("p",{style:he.emptyTitle,children:"Canvas Ready"}),O.jsx("p",{style:he.emptySubtext,children:"Diagrams and visualizations will appear here during lessons."})]})}const he={container:{display:"flex",flexDirection:"column",gap:16,maxWidth:1e3,margin:"0 auto"},breadcrumb:{display:"flex",alignItems:"center",gap:8,fontSize:13,color:"#8b949e"},breadcrumbModule:{color:"#58a6ff",fontWeight:500},breadcrumbSep:{color:"#484f58"},breadcrumbStep:{color:"#c9d1d9"},diagramWrapper:{backgroundColor:"#161b22",border:"1px solid #30363d",borderRadius:12,padding:24,minHeight:300,display:"flex",alignItems:"center",justifyContent:"center",overflow:"auto"},diagram:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center"},stepControls:{display:"flex",alignItems:"center",justifyContent:"center",gap:16,padding:"12px 0"},stepButton:{padding:"6px 14px",fontSize:13,fontWeight:500,color:"#c9d1d9",backgroundColor:"#21262d",border:"1px solid #30363d",borderRadius:6,cursor:"pointer",transition:"opacity 0.15s ease"},stepIndicators:{display:"flex",gap:6},stepDot:{width:10,height:10,borderRadius:"50%",border:"none",cursor:"pointer",transition:"background-color 0.2s ease"},stepLabel:{fontSize:12,color:"#8b949e",minWidth:100,textAlign:"center"},answerPrompt:{display:"flex",alignItems:"center",justifyContent:"center",gap:8,padding:"14px 20px",backgroundColor:"#21262d",border:"1px solid #30363d",borderRadius:10,fontSize:14,color:"#c9d1d9",animation:"pulse 2s infinite"},promptIcon:{fontSize:18},errorBox:{textAlign:"center",padding:24,color:"#f85149"},errorTitle:{fontSize:16,fontWeight:600,margin:"0 0 8px"},errorMessage:{fontSize:13,fontFamily:"monospace",backgroundColor:"#21262d",padding:"8px 12px",borderRadius:6,margin:"0 0 8px",whiteSpace:"pre-wrap",textAlign:"left",color:"#f85149"},errorHint:{fontSize:13,color:"#8b949e",margin:0},empty:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:400,gap:12},emptyIcon:{fontSize:48,opacity:.5},emptyTitle:{fontSize:18,fontWeight:600,color:"#e6edf3",margin:0},emptySubtext:{fontSize:14,color:"#8b949e",margin:0}};function YP({data:e,sendEvent:t}){if(!e)return O.jsxs("div",{style:zt.empty,children:[O.jsx("div",{style:zt.emptyIcon,children:"🧠"}),O.jsx("p",{style:zt.emptyTitle,children:"Quiz Mode"}),O.jsx("p",{style:zt.emptySubtext,children:"Interactive quizzes will appear here during lessons."})]});const{quizType:r,question:i,items:s,timeLimit:o,options:c,pairs:l,code:h,blanks:f}=e;switch(r){case"drag-order":return O.jsx(VP,{question:i,items:s||[],sendEvent:t});case"timed-choice":return O.jsx(GP,{question:i,options:c||s||[],timeLimit:o||30,sendEvent:t});case"matching":return O.jsx(XP,{question:i,pairs:l||s||[],sendEvent:t});case"fill-blank":return O.jsx(QP,{question:i,code:h||"",blanks:f||[],sendEvent:t});default:return O.jsx("div",{style:zt.errorBox,children:O.jsxs("p",{children:["Unknown quiz type: ",r]})})}}function VP({question:e,items:t,sendEvent:r}){const[i,s]=ht.useState(t),[o,c]=ht.useState(null),[l,h]=ht.useState(null),[f,d]=ht.useState(!1),[g,m]=ht.useState(null);ht.useEffect(()=>{s(t),d(!1),m(null)},[t]);function y(_,E){c(E),_.dataTransfer.effectAllowed="move",_.dataTransfer.setData("text/plain",E.toString()),_.target&&(_.target.style.opacity="0.5")}function b(_){_.target&&(_.target.style.opacity="1"),c(null),h(null)}function C(_,E){_.preventDefault(),_.dataTransfer.dropEffect="move",E!==l&&h(E)}function k(_,E){_.preventDefault();const M=o;if(M===null||M===E)return;const B=[...i],[L]=B.splice(M,1);B.splice(E,0,L),s(B),c(null),h(null)}function S(){d(!0);const _=i.map(E=>typeof E=="string"?E:E.id||E.label);r("event:quiz-answer",{quizType:"drag-order",answer:_}),m("pending")}return O.jsxs("div",{style:zt.quizContainer,children:[O.jsx("h2",{style:zt.question,children:e}),O.jsx("p",{style:zt.hint,children:"Drag items to reorder them"}),O.jsx("div",{style:zt.dragList,children:i.map((_,E)=>{const M=typeof _=="string"?_:_.label||_.text||_.id,B=l===E,L=o===E;return O.jsxs("div",{draggable:!f,onDragStart:F=>y(F,E),onDragEnd:b,onDragOver:F=>C(F,E),onDrop:F=>k(F,E),style:{...zt.dragItem,borderColor:B?"#58a6ff":"#30363d",backgroundColor:L?"#21262d":"#161b22",transform:B?"scale(1.01)":"scale(1)",opacity:f?.7:1,cursor:f?"default":"grab"},children:[O.jsx("span",{style:zt.dragHandle,children:"☰"}),O.jsx("span",{style:zt.dragIndex,children:E+1}),O.jsx("span",{style:zt.dragLabel,children:M})]},`${M}-${E}`)})}),!f&&O.jsx("button",{onClick:S,style:zt.submitButton,children:"Submit Order"}),f&&g==="pending"&&O.jsx("div",{style:zt.pendingResult,children:"Checking your answer..."})]})}function GP({question:e,options:t,timeLimit:r,sendEvent:i}){const[s,o]=ht.useState(null),[c,l]=ht.useState(!1),[h,f]=ht.useState(r),[d,g]=ht.useState(null),m=ht.useRef(null);ht.useEffect(()=>(o(null),l(!1),f(r),g(null),m.current=setInterval(()=>{f(k=>k<=1?(clearInterval(m.current),0):k-1)},1e3),()=>{m.current&&clearInterval(m.current)}),[e,r]),ht.useEffect(()=>{h===0&&!c&&y(null)},[h,c]);function y(k){if(c)return;l(!0),o(k),m.current&&clearInterval(m.current);const S=k!==null?typeof k=="string"?k:k.id||k.label||k:null;i("event:quiz-answer",{quizType:"timed-choice",answer:S,timeMs:(r-h)*1e3})}const b=h/r*100,C=h>r*.5?"#3fb950":h>r*.2?"#d29922":"#f85149";return O.jsxs("div",{style:zt.quizContainer,children:[O.jsx("div",{style:zt.timerBar,children:O.jsx("div",{style:{...zt.timerFill,width:`${b}%`,backgroundColor:C}})}),O.jsx("div",{style:zt.timerLabel,children:O.jsxs("span",{children:["⏱"," ",h,"s"]})}),O.jsx("h2",{style:zt.question,children:e}),O.jsx("div",{style:zt.choiceGrid,children:t.map((k,S)=>{const _=typeof k=="string"?k:k.label||k.text,E=typeof k=="string"?k:k.id||k.label,M=s!==null&&(typeof s=="string"?s:s.id||s.label)===E;return O.jsxs("button",{onClick:()=>!c&&y(k),disabled:c,style:{...zt.choiceButton,borderColor:M?"#58a6ff":"#30363d",backgroundColor:M?"#58a6ff18":"#161b22",cursor:c?"default":"pointer",opacity:c&&!M?.5:1},children:[O.jsx("span",{style:zt.choiceLetter,children:String.fromCharCode(65+S)}),O.jsx("span",{style:zt.choiceText,children:_})]},`${E}-${S}`)})}),c&&O.jsx("div",{style:zt.pendingResult,children:h===0&&s===null?"Time's up! No answer submitted.":"Checking your answer..."})]})}function XP({question:e,pairs:t,sendEvent:r}){const[i]=ht.useState(()=>t.map(k=>k.left||k.a||k.term)),[s]=ht.useState(()=>[...t.map(S=>S.right||S.b||S.definition)].sort(()=>Math.random()-.5)),[o,c]=ht.useState({}),[l,h]=ht.useState(null),[f,d]=ht.useState(!1);ht.useEffect(()=>{c({}),h(null),d(!1)},[e]);function g(k){f||h(l===k?null:k)}function m(k){if(f||!l)return;const S={...o};delete S[l];for(const[_,E]of Object.entries(S))E===k&&delete S[_];S[l]=k,c(S),h(null)}function y(){d(!0),r("event:quiz-answer",{quizType:"matching",answer:o})}const b=Object.keys(o).length===i.length,C=new Set(Object.values(o));return O.jsxs("div",{style:zt.quizContainer,children:[O.jsx("h2",{style:zt.question,children:e}),O.jsx("p",{style:zt.hint,children:"Click a left item, then click its match on the right"}),O.jsxs("div",{style:zt.matchingContainer,children:[O.jsx("div",{style:zt.matchingColumn,children:i.map((k,S)=>{const _=l===k,E=k in o;return O.jsxs("button",{onClick:()=>g(k),disabled:f,style:{...zt.matchItem,borderColor:_?"#58a6ff":E?"#3fb950":"#30363d",backgroundColor:_?"#58a6ff18":E?"#3fb95010":"#161b22",cursor:f?"default":"pointer"},children:[k,E&&O.jsx("span",{style:zt.matchCheck,children:"✔"})]},`left-${S}`)})}),O.jsx("div",{style:zt.matchingArrows,children:i.map((k,S)=>O.jsx("div",{style:zt.arrowRow,children:o[k]?O.jsx("span",{style:zt.arrowConnected,children:"──▶"}):O.jsx("span",{style:zt.arrowEmpty,children:"···"})},S))}),O.jsx("div",{style:zt.matchingColumn,children:s.map((k,S)=>{const _=C.has(k);return O.jsx("button",{onClick:()=>m(k),disabled:f||!l,style:{...zt.matchItem,borderColor:_?"#3fb950":"#30363d",backgroundColor:_?"#3fb95010":"#161b22",cursor:f||!l?"default":"pointer",opacity:f&&!_?.5:1},children:k},`right-${S}`)})})]}),!f&&O.jsx("button",{onClick:y,disabled:!b,style:{...zt.submitButton,opacity:b?1:.5,cursor:b?"pointer":"not-allowed"},children:"Submit Matches"}),f&&O.jsx("div",{style:zt.pendingResult,children:"Checking your matches..."})]})}function QP({question:e,code:t,blanks:r,sendEvent:i}){const[s,o]=ht.useState(()=>r.map(()=>"")),[c,l]=ht.useState(!1);ht.useEffect(()=>{o(r.map(()=>"")),l(!1)},[e,t]);function h(m,y){if(c)return;const b=[...s];b[m]=y,o(b)}function f(){l(!0),i("event:quiz-answer",{quizType:"fill-blank",answer:s})}function d(){return t.split(/(___\d+___)/g).map((y,b)=>{var k,S;const C=y.match(/___(\d+)___/);if(C){const _=parseInt(C[1],10),E=r[_]||{};return O.jsx("input",{type:"text",value:s[_]||"",onChange:M=>h(_,M.target.value),disabled:c,placeholder:E.placeholder||"...",style:{...zt.blankInput,width:Math.max(80,(((k=s[_])==null?void 0:k.length)||((S=E.placeholder)==null?void 0:S.length)||3)*9+20)}},`blank-${b}`)}return O.jsx("span",{children:y},`code-${b}`)})}const g=s.every(m=>m.trim().length>0);return O.jsxs("div",{style:zt.quizContainer,children:[O.jsx("h2",{style:zt.question,children:e}),O.jsx("pre",{style:zt.codeBlock,children:O.jsx("code",{children:d()})}),!c&&O.jsx("button",{onClick:f,disabled:!g,style:{...zt.submitButton,opacity:g?1:.5,cursor:g?"pointer":"not-allowed"},children:"Submit Answer"}),c&&O.jsx("div",{style:zt.pendingResult,children:"Checking your answer..."})]})}const zt={quizContainer:{maxWidth:700,margin:"0 auto",display:"flex",flexDirection:"column",gap:20},question:{fontSize:22,fontWeight:700,color:"#e6edf3",margin:0,lineHeight:1.4},hint:{fontSize:13,color:"#8b949e",margin:0},submitButton:{alignSelf:"center",padding:"10px 28px",fontSize:14,fontWeight:600,color:"#ffffff",backgroundColor:"#238636",border:"1px solid #2ea043",borderRadius:8,cursor:"pointer",transition:"background-color 0.15s ease"},pendingResult:{textAlign:"center",padding:"12px 20px",backgroundColor:"#21262d",borderRadius:8,fontSize:14,color:"#8b949e"},errorBox:{textAlign:"center",padding:40,color:"#f85149",fontSize:16},empty:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:400,gap:12},emptyIcon:{fontSize:48,opacity:.5},emptyTitle:{fontSize:18,fontWeight:600,color:"#e6edf3",margin:0},emptySubtext:{fontSize:14,color:"#8b949e",margin:0},dragList:{display:"flex",flexDirection:"column",gap:8},dragItem:{display:"flex",alignItems:"center",gap:12,padding:"12px 16px",border:"1px solid",borderRadius:8,transition:"border-color 0.15s ease, transform 0.1s ease, background-color 0.15s ease",userSelect:"none"},dragHandle:{fontSize:16,color:"#484f58",cursor:"grab"},dragIndex:{width:24,height:24,borderRadius:"50%",backgroundColor:"#21262d",display:"flex",alignItems:"center",justifyContent:"center",fontSize:12,fontWeight:700,color:"#8b949e",flexShrink:0},dragLabel:{fontSize:14,color:"#c9d1d9"},timerBar:{height:4,backgroundColor:"#21262d",borderRadius:2,overflow:"hidden"},timerFill:{height:"100%",borderRadius:2,transition:"width 1s linear, background-color 0.3s ease"},timerLabel:{textAlign:"right",fontSize:13,color:"#8b949e"},choiceGrid:{display:"flex",flexDirection:"column",gap:10},choiceButton:{display:"flex",alignItems:"center",gap:14,padding:"14px 18px",border:"1px solid",borderRadius:10,textAlign:"left",transition:"border-color 0.15s ease, background-color 0.15s ease",width:"100%",fontSize:14,color:"#c9d1d9",fontFamily:"inherit"},choiceLetter:{width:28,height:28,borderRadius:"50%",backgroundColor:"#21262d",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,fontWeight:700,color:"#8b949e",flexShrink:0},choiceText:{flex:1},matchingContainer:{display:"flex",gap:16,alignItems:"flex-start"},matchingColumn:{flex:1,display:"flex",flexDirection:"column",gap:8},matchingArrows:{display:"flex",flexDirection:"column",gap:8,justifyContent:"flex-start",paddingTop:0},arrowRow:{height:46,display:"flex",alignItems:"center",justifyContent:"center"},arrowConnected:{color:"#3fb950",fontFamily:"monospace",fontSize:14},arrowEmpty:{color:"#30363d",fontFamily:"monospace",fontSize:14},matchItem:{padding:"10px 16px",border:"1px solid",borderRadius:8,fontSize:14,color:"#c9d1d9",backgroundColor:"#161b22",fontFamily:"inherit",width:"100%",textAlign:"left",transition:"border-color 0.15s ease, background-color 0.15s ease",display:"flex",alignItems:"center",justifyContent:"space-between"},matchCheck:{color:"#3fb950",marginLeft:8},codeBlock:{backgroundColor:"#161b22",border:"1px solid #30363d",borderRadius:10,padding:"20px 24px",fontFamily:'"SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace',fontSize:14,lineHeight:1.7,color:"#c9d1d9",overflow:"auto",whiteSpace:"pre-wrap"},blankInput:{display:"inline-block",padding:"2px 8px",fontSize:14,fontFamily:'"SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace',color:"#58a6ff",backgroundColor:"#0d1117",border:"1px solid #58a6ff",borderRadius:4,outline:"none",verticalAlign:"baseline"}},KP=ht.lazy(()=>Qt(()=>import("./index-B3pZcTqz.js"),[]));function ZP({data:e,sendEvent:t}){const[r,i]=ht.useState(""),[s,o]=ht.useState(""),[c,l]=ht.useState(""),[h,f]=ht.useState(!1),[d,g]=ht.useState("javascript");ht.useEffect(()=>{if(!e)return;const k=e.starter||"";o(k),i(k),l(""),g(e.language||"javascript"),f(!1)},[e]);const m=ht.useCallback(()=>{h||(f(!0),l("Running..."),t("event:code-run",{code:r,language:d}),setTimeout(()=>{f(!1),l(k=>k==="Running..."?"Waiting for execution result from server...":k)},5e3))},[r,d,h,t]),y=ht.useCallback(()=>{i(s),l("")},[s]),b=ht.useCallback(()=>{t("event:click",{element:"hint",data:{language:d,code:r}})},[d,r,t]),C={bash:"shell",sh:"shell",javascript:"javascript",js:"javascript",python:"python",py:"python",typescript:"typescript",ts:"typescript"}[d]||d;return e?O.jsxs("div",{style:ge.container,children:[O.jsxs("div",{style:ge.header,children:[O.jsxs("div",{style:ge.headerLeft,children:[O.jsx("span",{style:ge.langBadge,children:d}),e.instructions&&O.jsx("span",{style:ge.instructions,children:e.instructions})]}),O.jsxs("div",{style:ge.headerRight,children:[O.jsxs("button",{onClick:b,style:ge.hintButton,children:["💡"," Hint"]}),O.jsxs("button",{onClick:y,style:ge.resetButton,children:["↺"," Reset"]}),O.jsx("button",{onClick:m,disabled:h,style:{...ge.runButton,opacity:h?.7:1},children:h?"⏳ Running...":"▶ Run"})]})]}),O.jsx("div",{style:ge.editorContainer,children:O.jsx(ht.Suspense,{fallback:O.jsx(JP,{code:r,onChange:i}),children:O.jsx(KP,{height:"350px",language:C,value:r,onChange:k=>i(k||""),theme:"vs-dark",options:{minimap:{enabled:!1},fontSize:14,lineNumbers:"on",scrollBeyondLastLine:!1,automaticLayout:!0,tabSize:2,wordWrap:"on",padding:{top:12},renderLineHighlight:"none",overviewRulerBorder:!1,hideCursorInOverviewRuler:!0,scrollbar:{verticalScrollbarSize:8,horizontalScrollbarSize:8}}})})}),O.jsxs("div",{style:ge.outputContainer,children:[O.jsxs("div",{style:ge.outputHeader,children:[O.jsx("span",{style:ge.outputTitle,children:"Output"}),c&&O.jsx("button",{onClick:()=>l(""),style:ge.clearButton,children:"Clear"})]}),O.jsx("pre",{style:ge.outputContent,children:c||"Run your code to see output here."})]})]}):O.jsxs("div",{style:ge.empty,children:[O.jsx("div",{style:ge.emptyIcon,children:"💻"}),O.jsx("p",{style:ge.emptyTitle,children:"Code Playground"}),O.jsx("p",{style:ge.emptySubtext,children:"Interactive code exercises will appear here during lessons."})]})}function JP({code:e,onChange:t}){return O.jsxs("div",{style:ge.fallbackContainer,children:[O.jsx("div",{style:ge.fallbackLoading,children:"Loading editor..."}),O.jsx("textarea",{value:e,onChange:r=>t(r.target.value),style:ge.fallbackTextarea,spellCheck:!1})]})}const ge={container:{display:"flex",flexDirection:"column",gap:0,maxWidth:900,margin:"0 auto",border:"1px solid #30363d",borderRadius:12,overflow:"hidden"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 16px",backgroundColor:"#161b22",borderBottom:"1px solid #30363d",flexWrap:"wrap",gap:8},headerLeft:{display:"flex",alignItems:"center",gap:12},langBadge:{fontSize:12,fontWeight:600,color:"#c9d1d9",backgroundColor:"#21262d",padding:"3px 10px",borderRadius:12,textTransform:"uppercase",letterSpacing:"0.05em"},instructions:{fontSize:13,color:"#8b949e"},headerRight:{display:"flex",alignItems:"center",gap:8},hintButton:{padding:"5px 12px",fontSize:13,color:"#d29922",backgroundColor:"transparent",border:"1px solid #d2992240",borderRadius:6,cursor:"pointer",transition:"background-color 0.15s ease"},resetButton:{padding:"5px 12px",fontSize:13,color:"#8b949e",backgroundColor:"transparent",border:"1px solid #30363d",borderRadius:6,cursor:"pointer",transition:"background-color 0.15s ease"},runButton:{padding:"5px 16px",fontSize:13,fontWeight:600,color:"#ffffff",backgroundColor:"#238636",border:"1px solid #2ea043",borderRadius:6,cursor:"pointer",transition:"opacity 0.15s ease"},editorContainer:{backgroundColor:"#1e1e1e",minHeight:350},outputContainer:{backgroundColor:"#0d1117",borderTop:"1px solid #30363d"},outputHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",borderBottom:"1px solid #21262d"},outputTitle:{fontSize:12,fontWeight:600,color:"#8b949e",textTransform:"uppercase",letterSpacing:"0.05em"},clearButton:{fontSize:11,color:"#484f58",backgroundColor:"transparent",border:"none",cursor:"pointer"},outputContent:{padding:"12px 16px",margin:0,fontFamily:'"SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace',fontSize:13,lineHeight:1.6,color:"#8b949e",minHeight:80,maxHeight:200,overflow:"auto",whiteSpace:"pre-wrap"},empty:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",minHeight:400,gap:12},emptyIcon:{fontSize:48,opacity:.5},emptyTitle:{fontSize:18,fontWeight:600,color:"#e6edf3",margin:0},emptySubtext:{fontSize:14,color:"#8b949e",margin:0},fallbackContainer:{position:"relative",height:350},fallbackLoading:{position:"absolute",top:12,right:16,fontSize:12,color:"#484f58",zIndex:1},fallbackTextarea:{width:"100%",height:"100%",padding:"12px 16px",fontFamily:'"SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace',fontSize:14,lineHeight:1.6,color:"#c9d1d9",backgroundColor:"#1e1e1e",border:"none",outline:"none",resize:"none"}};function tO({data:e,getBelt:t}){const[r,i]=ht.useState(!1),[s,o]=ht.useState([]),c=(e==null?void 0:e.type)||"xp",l=(e==null?void 0:e.xpAwarded)||0,h=(e==null?void 0:e.newBelt)||null;ht.useMemo(()=>h&&t?t(h==="string"?0:99999):null,[h,t]);const d=h&&{white:{badge:"⬜",color:"#e6e6e6"},yellow:{badge:"🟨",color:"#f0c040"},green:{badge:"🟩",color:"#3fb950"},blue:{badge:"🟦",color:"#58a6ff"},purple:{badge:"🟪",color:"#bc8cff"},brown:{badge:"🟫",color:"#a0522d"},black:{badge:"⬛",color:"#484f58"}}[h.toLowerCase()]||null;return ht.useEffect(()=>{i(!0);const g=["#58a6ff","#3fb950","#f0c040","#bc8cff","#f85149","#d29922","#e6edf3"],y=Array.from({length:c==="perfect-score"?80:c==="level-up"?60:40},(b,C)=>({id:C,x:Math.random()*100,delay:Math.random()*.8,duration:1.5+Math.random()*2,color:g[Math.floor(Math.random()*g.length)],size:4+Math.random()*8,shape:Math.random()>.5?"square":"circle",rotation:Math.random()*360,drift:(Math.random()-.5)*40}));o(y)},[c]),O.jsxs("div",{style:{...br.overlay,opacity:r?1:0},children:[O.jsx("div",{style:br.confettiContainer,children:s.map(g=>O.jsx("div",{style:{position:"absolute",left:`${g.x}%`,top:"-10px",width:g.size,height:g.shape==="circle"?g.size:g.size*1.5,backgroundColor:g.color,borderRadius:g.shape==="circle"?"50%":"2px",transform:`rotate(${g.rotation}deg)`,animation:`confettiFall ${g.duration}s ${g.delay}s ease-in forwards`,opacity:0}},g.id))}),O.jsxs("div",{style:br.content,children:[l>0&&O.jsxs("div",{style:br.xpAward,children:["+",l," XP"]},`xp-${l}`),c==="level-up"&&d&&O.jsxs("div",{style:br.levelUp,children:[O.jsx("div",{style:{...br.beltGlow,boxShadow:`0 0 40px ${d.color}60, 0 0 80px ${d.color}30`,borderColor:d.color},children:O.jsx("span",{style:br.beltEmoji,children:d.badge})}),O.jsxs("h2",{style:br.levelUpTitle,children:["You earned ",h.charAt(0).toUpperCase()+h.slice(1)," Belt!"]})]}),c==="perfect-score"&&O.jsxs("div",{style:br.perfectScore,children:[O.jsx("span",{style:br.perfectIcon,children:"⭐"}),O.jsx("h2",{style:br.perfectTitle,children:"Perfect Score!"})]}),c==="xp"&&!h&&O.jsx("div",{style:br.simpleXP,children:O.jsx("span",{style:br.checkIcon,children:"✅"})})]}),O.jsx("style",{children:`
|
|
300
|
+
@keyframes confettiFall {
|
|
301
|
+
0% {
|
|
302
|
+
opacity: 1;
|
|
303
|
+
transform: translateY(0) rotate(0deg);
|
|
304
|
+
}
|
|
305
|
+
100% {
|
|
306
|
+
opacity: 0;
|
|
307
|
+
transform: translateY(100vh) rotate(720deg);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
@keyframes floatUp {
|
|
311
|
+
0% {
|
|
312
|
+
opacity: 0;
|
|
313
|
+
transform: translateY(20px) scale(0.8);
|
|
314
|
+
}
|
|
315
|
+
20% {
|
|
316
|
+
opacity: 1;
|
|
317
|
+
transform: translateY(0) scale(1.1);
|
|
318
|
+
}
|
|
319
|
+
40% {
|
|
320
|
+
transform: translateY(-10px) scale(1);
|
|
321
|
+
}
|
|
322
|
+
100% {
|
|
323
|
+
opacity: 0;
|
|
324
|
+
transform: translateY(-60px) scale(0.9);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
@keyframes pulseGlow {
|
|
328
|
+
0%, 100% {
|
|
329
|
+
transform: scale(1);
|
|
330
|
+
}
|
|
331
|
+
50% {
|
|
332
|
+
transform: scale(1.1);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
@keyframes bounceIn {
|
|
336
|
+
0% {
|
|
337
|
+
opacity: 0;
|
|
338
|
+
transform: scale(0.3);
|
|
339
|
+
}
|
|
340
|
+
50% {
|
|
341
|
+
opacity: 1;
|
|
342
|
+
transform: scale(1.05);
|
|
343
|
+
}
|
|
344
|
+
70% {
|
|
345
|
+
transform: scale(0.95);
|
|
346
|
+
}
|
|
347
|
+
100% {
|
|
348
|
+
transform: scale(1);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
`})]})}const br={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(13, 17, 23, 0.75)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3,transition:"opacity 0.3s ease",pointerEvents:"none"},confettiContainer:{position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"hidden",pointerEvents:"none"},content:{display:"flex",flexDirection:"column",alignItems:"center",gap:20,zIndex:1},xpAward:{fontSize:48,fontWeight:800,color:"#3fb950",textShadow:"0 0 20px #3fb95060",animation:"floatUp 2.5s ease-out forwards"},levelUp:{display:"flex",flexDirection:"column",alignItems:"center",gap:16,animation:"bounceIn 0.6s ease-out"},beltGlow:{width:100,height:100,borderRadius:"50%",border:"3px solid",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#21262d",animation:"pulseGlow 1.5s ease-in-out infinite"},beltEmoji:{fontSize:48},levelUpTitle:{fontSize:28,fontWeight:800,color:"#e6edf3",margin:0,textAlign:"center"},perfectScore:{display:"flex",flexDirection:"column",alignItems:"center",gap:12,animation:"bounceIn 0.6s ease-out"},perfectIcon:{fontSize:64,animation:"pulseGlow 1s ease-in-out infinite"},perfectTitle:{fontSize:28,fontWeight:800,color:"#f0c040",margin:0,textShadow:"0 0 20px #f0c04060"},simpleXP:{animation:"bounceIn 0.5s ease-out"},checkIcon:{fontSize:64}},hn={dashboard:"dashboard",canvas:"canvas",quiz:"quiz",playground:"playground"},Eu=[{name:"White",minXP:0,badge:"⬜",color:"#e6e6e6"},{name:"Yellow",minXP:50,badge:"🟨",color:"#f0c040"},{name:"Green",minXP:150,badge:"🟩",color:"#3fb950"},{name:"Blue",minXP:400,badge:"🟦",color:"#58a6ff"},{name:"Purple",minXP:800,badge:"🟪",color:"#bc8cff"},{name:"Brown",minXP:1500,badge:"🟫",color:"#a0522d"},{name:"Black",minXP:3e3,badge:"⬛",color:"#484f58"}];function ld(e){let t=Eu[0];for(const r of Eu)e>=r.minXP&&(t=r);return t}function eO(e){for(const r of Eu)if(e<r.minXP)return r;const t=[6e3,12e3,24e3,48e3];for(const r of t)if(e<r)return{name:"Black (next Dan)",minXP:r,badge:"⬛",color:"#484f58"};return null}function rO(){var F;const[e,t]=ht.useState(hn.dashboard),[r,i]=ht.useState(null),[s,o]=ht.useState(null),[c,l]=ht.useState(null),[h,f]=ht.useState(null),[d,g]=ht.useState(null),[m,y]=ht.useState(null),[b,C]=ht.useState(!1),k=ht.useCallback(V=>{V!==e&&(C(!0),setTimeout(()=>{t(V),C(!1)},200))},[e]),S=ht.useCallback(V=>{var et;if(!(!V||!V.type)){switch(V.type){case"canvas:dashboard":i(V.payload),k(hn.dashboard);break;case"canvas:diagram":o(V.payload),k(hn.canvas);break;case"canvas:quiz":l(V.payload),k(hn.quiz);break;case"canvas:code":f(V.payload),k(hn.playground);break;case"canvas:celebrate":g(V.payload),setTimeout(()=>g(null),3e3);break;case"sys:heartbeat":break;default:console.log("[App] Unknown message type:",V.type)}(et=V.payload)!=null&&et.module&&y(V.payload.module)}},[k]),{status:_,transport:E,sendEvent:M}=V_(S),B=((F=r==null?void 0:r.progress)==null?void 0:F.xp)??0,L=ld(B);return O.jsxs("div",{style:ur.container,children:[O.jsxs("header",{style:ur.header,children:[O.jsxs("div",{style:ur.headerLeft,children:[O.jsx("span",{style:ur.logo,children:"ClaudeTeach"}),m&&O.jsx("span",{style:ur.moduleName,children:m})]}),O.jsx("div",{style:ur.headerCenter,children:O.jsx("nav",{style:ur.nav,children:Object.entries(hn).map(([V,et])=>O.jsx("button",{onClick:()=>k(et),style:{...ur.navButton,...e===et?ur.navButtonActive:{}},children:V.charAt(0).toUpperCase()+V.slice(1)},V))})}),O.jsxs("div",{style:ur.headerRight,children:[O.jsxs("span",{style:ur.beltDisplay,children:[L.badge," ",L.name]}),O.jsx("span",{style:{...ur.connectionDot,backgroundColor:_==="connected"?"#3fb950":_==="connecting"?"#d29922":"#f85149"}}),O.jsx("span",{style:ur.connectionLabel,children:_==="connected"?E==="ws"?"Live":"SSE":_==="connecting"?"Connecting...":"Offline"})]})]}),O.jsxs("main",{style:{...ur.main,opacity:b?0:1,transform:b?"translateY(8px)":"translateY(0)"},children:[e===hn.dashboard&&O.jsx(G_,{data:r,getBelt:ld,getNextBelt:eO,BELTS:Eu}),e===hn.canvas&&O.jsx(UP,{data:s}),e===hn.quiz&&O.jsx(YP,{data:c,sendEvent:M}),e===hn.playground&&O.jsx(ZP,{data:h,sendEvent:M})]}),d&&O.jsx(tO,{data:d,getBelt:ld})]})}const ur={container:{display:"flex",flexDirection:"column",height:"100vh",backgroundColor:"#0d1117",color:"#c9d1d9"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 20px",height:52,backgroundColor:"#161b22",borderBottom:"1px solid #30363d",flexShrink:0},headerLeft:{display:"flex",alignItems:"center",gap:12},logo:{fontSize:16,fontWeight:700,color:"#58a6ff",letterSpacing:"-0.02em"},moduleName:{fontSize:13,color:"#8b949e",padding:"2px 8px",backgroundColor:"#21262d",borderRadius:6},headerCenter:{display:"flex",alignItems:"center"},nav:{display:"flex",gap:2,backgroundColor:"#21262d",borderRadius:8,padding:2},navButton:{padding:"5px 14px",fontSize:13,fontWeight:500,color:"#8b949e",backgroundColor:"transparent",border:"none",borderRadius:6,cursor:"pointer",transition:"all 0.15s ease"},navButtonActive:{color:"#c9d1d9",backgroundColor:"#30363d"},headerRight:{display:"flex",alignItems:"center",gap:8},beltDisplay:{fontSize:13,fontWeight:500},connectionDot:{width:8,height:8,borderRadius:"50%",marginLeft:8},connectionLabel:{fontSize:12,color:"#8b949e"},main:{flex:1,overflow:"auto",padding:24,transition:"opacity 0.2s ease, transform 0.2s ease"}};q_.createRoot(document.getElementById("root")).render(O.jsx(O_.StrictMode,{children:O.jsx(rO,{})}));export{Xx as $,Bo as A,rS as B,kT as C,Vp as D,zx as E,He as F,t$ as G,rM as H,Y0 as I,lA as J,IS as K,ls as L,sO as M,qu as N,nT as O,fp as P,iy as Q,V3 as R,Oc as S,J5 as T,Qo as U,hT as V,Xo as W,xt as X,At as Y,U5 as Z,w as _,yT as a,x5 as a$,H3 as a0,_y as a1,ky as a2,yO as a3,fO as a4,gO as a5,pO as a6,uO as a7,Sp as a8,mO as a9,j5 as aA,FB as aB,R5 as aC,Ip as aD,kx as aE,pF as aF,q3 as aG,aO as aH,lp as aI,nl as aJ,fF as aK,hF as aL,ht as aM,O_ as aN,wp as aO,xi as aP,Io as aQ,yy as aR,kL as aS,fa as aT,W5 as aU,I2 as aV,Nu as aW,Hu as aX,gu as aY,z2 as aZ,O2 as a_,hO as aa,qa as ab,vO as ac,xO as ad,dO as ae,NF as af,Gw as ag,MO as ah,uA as ai,Te as aj,Ti as ak,Op as al,bb as am,ga as an,Y2 as ao,Nt as ap,yn as aq,A4 as ar,LO as as,AO as at,TO as au,St as av,EO as aw,f4 as ax,o4 as ay,s4 as az,mT as b,Ct as b0,T2 as b1,dr as b2,mL as b3,bp as b4,c1 as b5,Zo as b6,f1 as b7,cO as b8,eS as b9,jp as bA,F2 as bB,ip as bC,H5 as bD,Wu as bE,iO as bF,Qt as bG,z5 as ba,F5 as bb,bB as bc,Np as bd,p5 as be,q5 as bf,el as bg,ys as bh,fu as bi,S5 as bj,J4 as bk,tl as bl,pu as bm,v5 as bn,B2 as bo,kB as bp,_B as bq,Ki as br,qy as bs,SB as bt,zp as bu,CB as bv,LB as bw,xs as bx,Si as by,Ny as bz,Kt as c,Yt as d,Gx as e,_e as f,vT as g,Wn as h,Rr as i,mA as j,gs as k,J as l,G2 as m,oO as n,$O as o,bT as p,wT as q,BO as r,xT as s,cA as t,Kr as u,n4 as v,n$ as w,bO as x,gT as y,lO as z};
|