@dayinxisheng/zreadbrow 1.6.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/public/assets/{_baseUniq-BSygoPPp.js → _baseUniq-ZcsM4iMm.js} +1 -1
- package/dist/public/assets/{arc-DSbLf-MF.js → arc-D8J39-9C.js} +1 -1
- package/dist/public/assets/{architectureDiagram-Q4EWVU46-Xdgygn1j.js → architectureDiagram-Q4EWVU46-C5MrjkS7.js} +1 -1
- package/dist/public/assets/{blockDiagram-DXYQGD6D-BpOdNUpR.js → blockDiagram-DXYQGD6D-U4fM5gAX.js} +1 -1
- package/dist/public/assets/{c4Diagram-AHTNJAMY-te7PX8G1.js → c4Diagram-AHTNJAMY-E--r_ULO.js} +1 -1
- package/dist/public/assets/channel-BXxOm-kP.js +1 -0
- package/dist/public/assets/{chunk-4BX2VUAB-CJWQKhNO.js → chunk-4BX2VUAB-C_zh-eww.js} +1 -1
- package/dist/public/assets/{chunk-4TB4RGXK-DWqFMjsa.js → chunk-4TB4RGXK-B4_AYita.js} +1 -1
- package/dist/public/assets/{chunk-55IACEB6-FLSKWCBQ.js → chunk-55IACEB6-C2q1oNnd.js} +1 -1
- package/dist/public/assets/{chunk-EDXVE4YY-D9HQ7_6c.js → chunk-EDXVE4YY-DgxA5CzZ.js} +1 -1
- package/dist/public/assets/{chunk-FMBD7UC4-D4FOoCBG.js → chunk-FMBD7UC4-Dg6WZ0Q4.js} +1 -1
- package/dist/public/assets/{chunk-OYMX7WX6-BtPGfqvx.js → chunk-OYMX7WX6-CdM-URKB.js} +1 -1
- package/dist/public/assets/{chunk-QZHKN3VN-l3UAK8vZ.js → chunk-QZHKN3VN-Q1eVh-bY.js} +1 -1
- package/dist/public/assets/{chunk-YZCP3GAM-Dq6R2Vpr.js → chunk-YZCP3GAM-DBfbAjlZ.js} +1 -1
- package/dist/public/assets/classDiagram-6PBFFD2Q-Cxwtyyun.js +1 -0
- package/dist/public/assets/classDiagram-v2-HSJHXN6E-Cxwtyyun.js +1 -0
- package/dist/public/assets/clone-B74q553g.js +1 -0
- package/dist/public/assets/{cose-bilkent-S5V4N54A-j1prcFhe.js → cose-bilkent-S5V4N54A-x2mi929v.js} +1 -1
- package/dist/public/assets/{dagre-KV5264BT-KR45iOc0.js → dagre-KV5264BT-DW4sXVyq.js} +1 -1
- package/dist/public/assets/{diagram-5BDNPKRD-Bv356OME.js → diagram-5BDNPKRD-DLo4oBM2.js} +1 -1
- package/dist/public/assets/{diagram-G4DWMVQ6-DDhjkjR1.js → diagram-G4DWMVQ6-BNRv_j23.js} +1 -1
- package/dist/public/assets/{diagram-MMDJMWI5-B-yDhvXr.js → diagram-MMDJMWI5-CBr4DHvV.js} +1 -1
- package/dist/public/assets/{diagram-TYMM5635-DdRZytTE.js → diagram-TYMM5635-DSg8dR3C.js} +1 -1
- package/dist/public/assets/{erDiagram-SMLLAGMA-irBKVJZW.js → erDiagram-SMLLAGMA-BDUL-kJe.js} +1 -1
- package/dist/public/assets/{flowDiagram-DWJPFMVM-Ce0iZaeX.js → flowDiagram-DWJPFMVM-fW85OwTQ.js} +1 -1
- package/dist/public/assets/{ganttDiagram-T4ZO3ILL-AaUyWOY5.js → ganttDiagram-T4ZO3ILL-83CRb1AY.js} +1 -1
- package/dist/public/assets/{gitGraphDiagram-UUTBAWPF-Dz8rVP_u.js → gitGraphDiagram-UUTBAWPF-K-paV9xZ.js} +1 -1
- package/dist/public/assets/{graph-CJTRN9GK.js → graph-CltKlErg.js} +1 -1
- package/dist/public/assets/index-2BorqNpU.js +583 -0
- package/dist/public/assets/index-CVfrDKNY.css +1 -0
- package/dist/public/assets/{infoDiagram-42DDH7IO-Df8AAWvh.js → infoDiagram-42DDH7IO-Cc_oSQnw.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-UXIWVN3A-_BC1ng7R.js → ishikawaDiagram-UXIWVN3A-Cxv3ZU_a.js} +1 -1
- package/dist/public/assets/{journeyDiagram-VCZTEJTY-Cud94Frj.js → journeyDiagram-VCZTEJTY-CCc0_QKG.js} +1 -1
- package/dist/public/assets/{kanban-definition-6JOO6SKY-CcYYa04s.js → kanban-definition-6JOO6SKY-1-l-PeYn.js} +1 -1
- package/dist/public/assets/{layout-C8yT_zx1.js → layout-7btopNQB.js} +1 -1
- package/dist/public/assets/{linear-KCqYLA_9.js → linear-BcGWzjnY.js} +1 -1
- package/dist/public/assets/{min-Bfb_9BU1.js → min-DU4_1sWT.js} +1 -1
- package/dist/public/assets/{mindmap-definition-QFDTVHPH-BHHAgS0V.js → mindmap-definition-QFDTVHPH-CP-B1JEE.js} +1 -1
- package/dist/public/assets/{pieDiagram-DEJITSTG-CZt92iob.js → pieDiagram-DEJITSTG-CCncK7Ae.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-34T5L4WZ-C0PesXqP.js → quadrantDiagram-34T5L4WZ-CU7mok4R.js} +1 -1
- package/dist/public/assets/{requirementDiagram-MS252O5E-B4k6MaYL.js → requirementDiagram-MS252O5E-SMauWCw5.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-XADWPNL6-D7geWNjL.js → sankeyDiagram-XADWPNL6-DW_mPG89.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-FGHM5R23-BXl1XKPG.js → sequenceDiagram-FGHM5R23-MHYTBnOl.js} +1 -1
- package/dist/public/assets/{stateDiagram-FHFEXIEX-KnIQfhn8.js → stateDiagram-FHFEXIEX-CsMKsb6o.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-DbLe4kPp.js +1 -0
- package/dist/public/assets/{timeline-definition-GMOUNBTQ-BOK6flVx.js → timeline-definition-GMOUNBTQ-DlIXJ2pA.js} +1 -1
- package/dist/public/assets/{vennDiagram-DHZGUBPP-XXpbtCEd.js → vennDiagram-DHZGUBPP-C_foI3w6.js} +1 -1
- package/dist/public/assets/{wardley-RL74JXVD-BUwan0XU.js → wardley-RL74JXVD-CYviKTFC.js} +1 -1
- package/dist/public/assets/{wardleyDiagram-NUSXRM2D-B69HiMCJ.js → wardleyDiagram-NUSXRM2D--Uc3JizG.js} +1 -1
- package/dist/public/assets/{xychartDiagram-5P7HB3ND-4XII2_U6.js → xychartDiagram-5P7HB3ND-C1yPAyO7.js} +1 -1
- package/dist/public/index.html +2 -2
- package/dist/server/index.js +1 -1
- package/dist/server/middleware/errorHandler.js +1 -1
- package/dist/server/routes/ai.js +1 -1
- package/dist/server/routes/config.js +1 -1
- package/dist/server/routes/files.js +1 -1
- package/dist/server/routes/projects.js +1 -1
- package/dist/server/routes/scan.js +1 -1
- package/dist/server/routes/search.js +1 -1
- package/dist/server/routes/wiki.js +1 -1
- package/dist/server/services/ai.js +1 -1
- package/dist/server/services/config.js +1 -1
- package/dist/server/services/logger.js +1 -1
- package/dist/server/services/scanner.js +1 -1
- package/dist/server/services/search.js +1 -1
- package/dist/server/services/wiki-loader.js +1 -1
- package/dist/server/services/wire-reader.js +1 -1
- package/package.json +3 -2
- package/dist/public/assets/channel-py5umiQr.js +0 -1
- package/dist/public/assets/classDiagram-6PBFFD2Q-BoMlT4ye.js +0 -1
- package/dist/public/assets/classDiagram-v2-HSJHXN6E-BoMlT4ye.js +0 -1
- package/dist/public/assets/clone-Dl0DSU6U.js +0 -1
- package/dist/public/assets/index-BP3TStZP.css +0 -1
- package/dist/public/assets/index-liv0OBD-.js +0 -386
- package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-CCukhfjU.js +0 -1
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-KV5264BT-DW4sXVyq.js","assets/graph-CltKlErg.js","assets/_baseUniq-ZcsM4iMm.js","assets/layout-7btopNQB.js","assets/min-DU4_1sWT.js","assets/clone-B74q553g.js","assets/cose-bilkent-S5V4N54A-x2mi929v.js","assets/cytoscape.esm-DxGcaOPV.js","assets/c4Diagram-AHTNJAMY-E--r_ULO.js","assets/chunk-YZCP3GAM-DBfbAjlZ.js","assets/flowDiagram-DWJPFMVM-fW85OwTQ.js","assets/chunk-FMBD7UC4-Dg6WZ0Q4.js","assets/chunk-55IACEB6-C2q1oNnd.js","assets/chunk-EDXVE4YY-DgxA5CzZ.js","assets/channel-BXxOm-kP.js","assets/erDiagram-SMLLAGMA-BDUL-kJe.js","assets/gitGraphDiagram-UUTBAWPF-K-paV9xZ.js","assets/chunk-4BX2VUAB-C_zh-eww.js","assets/chunk-QZHKN3VN-Q1eVh-bY.js","assets/wardley-RL74JXVD-CYviKTFC.js","assets/ganttDiagram-T4ZO3ILL-83CRb1AY.js","assets/linear-BcGWzjnY.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-DX6XiGOO.js","assets/infoDiagram-42DDH7IO-Cc_oSQnw.js","assets/pieDiagram-DEJITSTG-CCncK7Ae.js","assets/arc-D8J39-9C.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-34T5L4WZ-CU7mok4R.js","assets/xychartDiagram-5P7HB3ND-C1yPAyO7.js","assets/requirementDiagram-MS252O5E-SMauWCw5.js","assets/sequenceDiagram-FGHM5R23-MHYTBnOl.js","assets/classDiagram-6PBFFD2Q-Cxwtyyun.js","assets/chunk-4TB4RGXK-B4_AYita.js","assets/classDiagram-v2-HSJHXN6E-Cxwtyyun.js","assets/stateDiagram-FHFEXIEX-CsMKsb6o.js","assets/chunk-OYMX7WX6-CdM-URKB.js","assets/stateDiagram-v2-QKLJ7IA2-DbLe4kPp.js","assets/journeyDiagram-VCZTEJTY-CCc0_QKG.js","assets/timeline-definition-GMOUNBTQ-DlIXJ2pA.js","assets/mindmap-definition-QFDTVHPH-CP-B1JEE.js","assets/kanban-definition-6JOO6SKY-1-l-PeYn.js","assets/sankeyDiagram-XADWPNL6-DW_mPG89.js","assets/diagram-TYMM5635-DSg8dR3C.js","assets/diagram-MMDJMWI5-CBr4DHvV.js","assets/blockDiagram-DXYQGD6D-U4fM5gAX.js","assets/diagram-5BDNPKRD-DLo4oBM2.js","assets/architectureDiagram-Q4EWVU46-C5MrjkS7.js","assets/diagram-G4DWMVQ6-BNRv_j23.js","assets/wardleyDiagram-NUSXRM2D--Uc3JizG.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var t5=Object.defineProperty;var e5=(e,t,r)=>t in e?t5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var pe=(e,t,r)=>e5(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();var gh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function BZ(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?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(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var hp={exports:{}},ul={},dp={exports:{}},te={};/**
|
|
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 dC;function r5(){if(dC)return te;dC=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator;function m(j){return j===null||typeof j!="object"?null:(j=f&&j[f]||j["@@iterator"],typeof j=="function"?j:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function k(j,J,P){this.props=j,this.context=J,this.refs=C,this.updater=P||g}k.prototype.isReactComponent={},k.prototype.setState=function(j,J){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,J,"setState")},k.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function v(){}v.prototype=k.prototype;function w(j,J,P){this.props=j,this.context=J,this.refs=C,this.updater=P||g}var _=w.prototype=new v;_.constructor=w,x(_,k.prototype),_.isPureReactComponent=!0;var A=Array.isArray,F=Object.prototype.hasOwnProperty,E={current:null},B={key:!0,ref:!0,__self:!0,__source:!0};function N(j,J,P){var ct,lt={},mt=null,wt=null;if(J!=null)for(ct in J.ref!==void 0&&(wt=J.ref),J.key!==void 0&&(mt=""+J.key),J)F.call(J,ct)&&!B.hasOwnProperty(ct)&&(lt[ct]=J[ct]);var St=arguments.length-2;if(St===1)lt.children=P;else if(1<St){for(var Dt=Array(St),xt=0;xt<St;xt++)Dt[xt]=arguments[xt+2];lt.children=Dt}if(j&&j.defaultProps)for(ct in St=j.defaultProps,St)lt[ct]===void 0&&(lt[ct]=St[ct]);return{$$typeof:e,type:j,key:mt,ref:wt,props:lt,_owner:E.current}}function q(j,J){return{$$typeof:e,type:j.type,key:J,ref:j.ref,props:j.props,_owner:j._owner}}function O(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function D(j){var J={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(P){return J[P]})}var K=/\/+/g;function tt(j,J){return typeof j=="object"&&j!==null&&j.key!=null?D(""+j.key):J.toString(36)}function U(j,J,P,ct,lt){var mt=typeof j;(mt==="undefined"||mt==="boolean")&&(j=null);var wt=!1;if(j===null)wt=!0;else switch(mt){case"string":case"number":wt=!0;break;case"object":switch(j.$$typeof){case e:case t:wt=!0}}if(wt)return wt=j,lt=lt(wt),j=ct===""?"."+tt(wt,0):ct,A(lt)?(P="",j!=null&&(P=j.replace(K,"$&/")+"/"),U(lt,J,P,"",function(xt){return xt})):lt!=null&&(O(lt)&&(lt=q(lt,P+(!lt.key||wt&&wt.key===lt.key?"":(""+lt.key).replace(K,"$&/")+"/")+j)),J.push(lt)),1;if(wt=0,ct=ct===""?".":ct+":",A(j))for(var St=0;St<j.length;St++){mt=j[St];var Dt=ct+tt(mt,St);wt+=U(mt,J,P,Dt,lt)}else if(Dt=m(j),typeof Dt=="function")for(j=Dt.call(j),St=0;!(mt=j.next()).done;)mt=mt.value,Dt=ct+tt(mt,St++),wt+=U(mt,J,P,Dt,lt);else if(mt==="object")throw J=String(j),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.");return wt}function W(j,J,P){if(j==null)return j;var ct=[],lt=0;return U(j,ct,"","",function(mt){return J.call(P,mt,lt++)}),ct}function H(j){if(j._status===-1){var J=j._result;J=J(),J.then(function(P){(j._status===0||j._status===-1)&&(j._status=1,j._result=P)},function(P){(j._status===0||j._status===-1)&&(j._status=2,j._result=P)}),j._status===-1&&(j._status=0,j._result=J)}if(j._status===1)return j._result.default;throw j._result}var G={current:null},$={transition:null},Z={ReactCurrentDispatcher:G,ReactCurrentBatchConfig:$,ReactCurrentOwner:E};function R(){throw Error("act(...) is not supported in production builds of React.")}return te.Children={map:W,forEach:function(j,J,P){W(j,function(){J.apply(this,arguments)},P)},count:function(j){var J=0;return W(j,function(){J++}),J},toArray:function(j){return W(j,function(J){return J})||[]},only:function(j){if(!O(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},te.Component=k,te.Fragment=r,te.Profiler=i,te.PureComponent=w,te.StrictMode=n,te.Suspense=u,te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,te.act=R,te.cloneElement=function(j,J,P){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var ct=x({},j.props),lt=j.key,mt=j.ref,wt=j._owner;if(J!=null){if(J.ref!==void 0&&(mt=J.ref,wt=E.current),J.key!==void 0&&(lt=""+J.key),j.type&&j.type.defaultProps)var St=j.type.defaultProps;for(Dt in J)F.call(J,Dt)&&!B.hasOwnProperty(Dt)&&(ct[Dt]=J[Dt]===void 0&&St!==void 0?St[Dt]:J[Dt])}var Dt=arguments.length-2;if(Dt===1)ct.children=P;else if(1<Dt){St=Array(Dt);for(var xt=0;xt<Dt;xt++)St[xt]=arguments[xt+2];ct.children=St}return{$$typeof:e,type:j.type,key:lt,ref:mt,props:ct,_owner:wt}},te.createContext=function(j){return j={$$typeof:s,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},j.Provider={$$typeof:o,_context:j},j.Consumer=j},te.createElement=N,te.createFactory=function(j){var J=N.bind(null,j);return J.type=j,J},te.createRef=function(){return{current:null}},te.forwardRef=function(j){return{$$typeof:l,render:j}},te.isValidElement=O,te.lazy=function(j){return{$$typeof:d,_payload:{_status:-1,_result:j},_init:H}},te.memo=function(j,J){return{$$typeof:h,type:j,compare:J===void 0?null:J}},te.startTransition=function(j){var J=$.transition;$.transition={};try{j()}finally{$.transition=J}},te.unstable_act=R,te.useCallback=function(j,J){return G.current.useCallback(j,J)},te.useContext=function(j){return G.current.useContext(j)},te.useDebugValue=function(){},te.useDeferredValue=function(j){return G.current.useDeferredValue(j)},te.useEffect=function(j,J){return G.current.useEffect(j,J)},te.useId=function(){return G.current.useId()},te.useImperativeHandle=function(j,J,P){return G.current.useImperativeHandle(j,J,P)},te.useInsertionEffect=function(j,J){return G.current.useInsertionEffect(j,J)},te.useLayoutEffect=function(j,J){return G.current.useLayoutEffect(j,J)},te.useMemo=function(j,J){return G.current.useMemo(j,J)},te.useReducer=function(j,J,P){return G.current.useReducer(j,J,P)},te.useRef=function(j){return G.current.useRef(j)},te.useState=function(j){return G.current.useState(j)},te.useSyncExternalStore=function(j,J,P){return G.current.useSyncExternalStore(j,J,P)},te.useTransition=function(){return G.current.useTransition()},te.version="18.3.1",te}var fC;function my(){return fC||(fC=1,dp.exports=r5()),dp.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 pC;function n5(){if(pC)return ul;pC=1;var e=my(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(l,u,h){var d,f={},m=null,g=null;h!==void 0&&(m=""+h),u.key!==void 0&&(m=""+u.key),u.ref!==void 0&&(g=u.ref);for(d in u)n.call(u,d)&&!o.hasOwnProperty(d)&&(f[d]=u[d]);if(l&&l.defaultProps)for(d in u=l.defaultProps,u)f[d]===void 0&&(f[d]=u[d]);return{$$typeof:t,type:l,key:m,ref:g,props:f,_owner:i.current}}return ul.Fragment=r,ul.jsx=s,ul.jsxs=s,ul}var gC;function i5(){return gC||(gC=1,hp.exports=n5()),hp.exports}var L=i5(),st=my();const lr=Ze(st);var Au={},fp={exports:{}},Yr={},pp={exports:{}},gp={};/**
|
|
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 mC;function o5(){return mC||(mC=1,(function(e){function t($,Z){var R=$.length;$.push(Z);t:for(;0<R;){var j=R-1>>>1,J=$[j];if(0<i(J,Z))$[j]=Z,$[R]=J,R=j;else break t}}function r($){return $.length===0?null:$[0]}function n($){if($.length===0)return null;var Z=$[0],R=$.pop();if(R!==Z){$[0]=R;t:for(var j=0,J=$.length,P=J>>>1;j<P;){var ct=2*(j+1)-1,lt=$[ct],mt=ct+1,wt=$[mt];if(0>i(lt,R))mt<J&&0>i(wt,lt)?($[j]=wt,$[mt]=R,j=mt):($[j]=lt,$[ct]=R,j=ct);else if(mt<J&&0>i(wt,R))$[j]=wt,$[mt]=R,j=mt;else break t}}return Z}function i($,Z){var R=$.sortIndex-Z.sortIndex;return R!==0?R:$.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var u=[],h=[],d=1,f=null,m=3,g=!1,x=!1,C=!1,k=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _($){for(var Z=r(h);Z!==null;){if(Z.callback===null)n(h);else if(Z.startTime<=$)n(h),Z.sortIndex=Z.expirationTime,t(u,Z);else break;Z=r(h)}}function A($){if(C=!1,_($),!x)if(r(u)!==null)x=!0,H(F);else{var Z=r(h);Z!==null&&G(A,Z.startTime-$)}}function F($,Z){x=!1,C&&(C=!1,v(N),N=-1),g=!0;var R=m;try{for(_(Z),f=r(u);f!==null&&(!(f.expirationTime>Z)||$&&!D());){var j=f.callback;if(typeof j=="function"){f.callback=null,m=f.priorityLevel;var J=j(f.expirationTime<=Z);Z=e.unstable_now(),typeof J=="function"?f.callback=J:f===r(u)&&n(u),_(Z)}else n(u);f=r(u)}if(f!==null)var P=!0;else{var ct=r(h);ct!==null&&G(A,ct.startTime-Z),P=!1}return P}finally{f=null,m=R,g=!1}}var E=!1,B=null,N=-1,q=5,O=-1;function D(){return!(e.unstable_now()-O<q)}function K(){if(B!==null){var $=e.unstable_now();O=$;var Z=!0;try{Z=B(!0,$)}finally{Z?tt():(E=!1,B=null)}}else E=!1}var tt;if(typeof w=="function")tt=function(){w(K)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,W=U.port2;U.port1.onmessage=K,tt=function(){W.postMessage(null)}}else tt=function(){k(K,0)};function H($){B=$,E||(E=!0,tt())}function G($,Z){N=k(function(){$(e.unstable_now())},Z)}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($){$.callback=null},e.unstable_continueExecution=function(){x||g||(x=!0,H(F))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return r(u)},e.unstable_next=function($){switch(m){case 1:case 2:case 3:var Z=3;break;default:Z=m}var R=m;m=Z;try{return $()}finally{m=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,Z){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var R=m;m=$;try{return Z()}finally{m=R}},e.unstable_scheduleCallback=function($,Z,R){var j=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?j+R:j):R=j,$){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=R+J,$={id:d++,callback:Z,priorityLevel:$,startTime:R,expirationTime:J,sortIndex:-1},R>j?($.sortIndex=R,t(h,$),r(u)===null&&$===r(h)&&(C?(v(N),N=-1):C=!0,G(A,R-j))):($.sortIndex=J,t(u,$),x||g||(x=!0,H(F))),$},e.unstable_shouldYield=D,e.unstable_wrapCallback=function($){var Z=m;return function(){var R=m;m=Z;try{return $.apply(this,arguments)}finally{m=R}}}})(gp)),gp}var yC;function a5(){return yC||(yC=1,pp.exports=o5()),pp.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 xC;function s5(){if(xC)return Yr;xC=1;var e=my(),t=a5();function r(a){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+a,p=1;p<arguments.length;p++)c+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+a+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function o(a,c){s(a,c),s(a+"Capture",c)}function s(a,c){for(i[a]=c,a=0;a<c.length;a++)n.add(c[a])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,h=/^[: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={},f={};function m(a){return u.call(f,a)?!0:u.call(d,a)?!1:h.test(a)?f[a]=!0:(d[a]=!0,!1)}function g(a,c,p,y){if(p!==null&&p.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return y?!1:p!==null?!p.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function x(a,c,p,y){if(c===null||typeof c>"u"||g(a,c,p,y))return!0;if(y)return!1;if(p!==null)switch(p.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function C(a,c,p,y,b,T,M){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=y,this.attributeNamespace=b,this.mustUseProperty=p,this.propertyName=a,this.type=c,this.sanitizeURL=T,this.removeEmptyString=M}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){k[a]=new C(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var c=a[0];k[c]=new C(c,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){k[a]=new C(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){k[a]=new C(a,2,!1,a,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(a){k[a]=new C(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){k[a]=new C(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){k[a]=new C(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){k[a]=new C(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){k[a]=new C(a,5,!1,a.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function w(a){return a[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(a){var c=a.replace(v,w);k[c]=new C(c,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var c=a.replace(v,w);k[c]=new C(c,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var c=a.replace(v,w);k[c]=new C(c,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){k[a]=new C(a,1,!1,a.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(a){k[a]=new C(a,1,!1,a.toLowerCase(),null,!0,!0)});function _(a,c,p,y){var b=k.hasOwnProperty(c)?k[c]:null;(b!==null?b.type!==0:y||!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(x(c,p,b,y)&&(p=null),y||b===null?m(c)&&(p===null?a.removeAttribute(c):a.setAttribute(c,""+p)):b.mustUseProperty?a[b.propertyName]=p===null?b.type===3?!1:"":p:(c=b.attributeName,y=b.attributeNamespace,p===null?a.removeAttribute(c):(b=b.type,p=b===3||b===4&&p===!0?"":""+p,y?a.setAttributeNS(y,c,p):a.setAttribute(c,p))))}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,F=Symbol.for("react.element"),E=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),D=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),tt=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),G=Symbol.for("react.offscreen"),$=Symbol.iterator;function Z(a){return a===null||typeof a!="object"?null:(a=$&&a[$]||a["@@iterator"],typeof a=="function"?a:null)}var R=Object.assign,j;function J(a){if(j===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);j=c&&c[1]||""}return`
|
|
35
|
+
`+j+a}var P=!1;function ct(a,c){if(!a||P)return"";P=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(nt){var y=nt}Reflect.construct(a,[],c)}else{try{c.call()}catch(nt){y=nt}a.call(c.prototype)}else{try{throw Error()}catch(nt){y=nt}a()}}catch(nt){if(nt&&y&&typeof nt.stack=="string"){for(var b=nt.stack.split(`
|
|
36
|
+
`),T=y.stack.split(`
|
|
37
|
+
`),M=b.length-1,z=T.length-1;1<=M&&0<=z&&b[M]!==T[z];)z--;for(;1<=M&&0<=z;M--,z--)if(b[M]!==T[z]){if(M!==1||z!==1)do if(M--,z--,0>z||b[M]!==T[z]){var V=`
|
|
38
|
+
`+b[M].replace(" at new "," at ");return a.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",a.displayName)),V}while(1<=M&&0<=z);break}}}finally{P=!1,Error.prepareStackTrace=p}return(a=a?a.displayName||a.name:"")?J(a):""}function lt(a){switch(a.tag){case 5:return J(a.type);case 16:return J("Lazy");case 13:return J("Suspense");case 19:return J("SuspenseList");case 0:case 2:case 15:return a=ct(a.type,!1),a;case 11:return a=ct(a.type.render,!1),a;case 1:return a=ct(a.type,!0),a;default:return""}}function mt(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case B:return"Fragment";case E:return"Portal";case q:return"Profiler";case N:return"StrictMode";case tt:return"Suspense";case U:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case D:return(a.displayName||"Context")+".Consumer";case O:return(a._context.displayName||"Context")+".Provider";case K:var c=a.render;return a=a.displayName,a||(a=c.displayName||c.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case W:return c=a.displayName||null,c!==null?c:mt(a.type)||"Memo";case H:c=a._payload,a=a._init;try{return mt(a(c))}catch{}}return null}function wt(a){var c=a.type;switch(a.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=c.render,a=a.displayName||a.name||"",c.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return mt(c);case 8:return c===N?"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 c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function St(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Dt(a){var c=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function xt(a){var c=Dt(a)?"checked":"value",p=Object.getOwnPropertyDescriptor(a.constructor.prototype,c),y=""+a[c];if(!a.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var b=p.get,T=p.set;return Object.defineProperty(a,c,{configurable:!0,get:function(){return b.call(this)},set:function(M){y=""+M,T.call(this,M)}}),Object.defineProperty(a,c,{enumerable:p.enumerable}),{getValue:function(){return y},setValue:function(M){y=""+M},stopTracking:function(){a._valueTracker=null,delete a[c]}}}}function _t(a){a._valueTracker||(a._valueTracker=xt(a))}function re(a){if(!a)return!1;var c=a._valueTracker;if(!c)return!0;var p=c.getValue(),y="";return a&&(y=Dt(a)?a.checked?"true":"false":a.value),a=y,a!==p?(c.setValue(a),!0):!1}function Qt(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Ue(a,c){var p=c.checked;return R({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??a._wrapperState.initialChecked})}function Ce(a,c){var p=c.defaultValue==null?"":c.defaultValue,y=c.checked!=null?c.checked:c.defaultChecked;p=St(c.value!=null?c.value:p),a._wrapperState={initialChecked:y,initialValue:p,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function je(a,c){c=c.checked,c!=null&&_(a,"checked",c,!1)}function jr(a,c){je(a,c);var p=St(c.value),y=c.type;if(p!=null)y==="number"?(p===0&&a.value===""||a.value!=p)&&(a.value=""+p):a.value!==""+p&&(a.value=""+p);else if(y==="submit"||y==="reset"){a.removeAttribute("value");return}c.hasOwnProperty("value")?zr(a,c.type,p):c.hasOwnProperty("defaultValue")&&zr(a,c.type,St(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(a.defaultChecked=!!c.defaultChecked)}function Fe(a,c,p){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var y=c.type;if(!(y!=="submit"&&y!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+a._wrapperState.initialValue,p||c===a.value||(a.value=c),a.defaultValue=c}p=a.name,p!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,p!==""&&(a.name=p)}function zr(a,c,p){(c!=="number"||Qt(a.ownerDocument)!==a)&&(p==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+p&&(a.defaultValue=""+p))}var ze=Array.isArray;function Br(a,c,p,y){if(a=a.options,c){c={};for(var b=0;b<p.length;b++)c["$"+p[b]]=!0;for(p=0;p<a.length;p++)b=c.hasOwnProperty("$"+a[p].value),a[p].selected!==b&&(a[p].selected=b),b&&y&&(a[p].defaultSelected=!0)}else{for(p=""+St(p),c=null,b=0;b<a.length;b++){if(a[b].value===p){a[b].selected=!0,y&&(a[b].defaultSelected=!0);return}c!==null||a[b].disabled||(c=a[b])}c!==null&&(c.selected=!0)}}function Ar(a,c){if(c.dangerouslySetInnerHTML!=null)throw Error(r(91));return R({},c,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function Yn(a,c){var p=c.value;if(p==null){if(p=c.children,c=c.defaultValue,p!=null){if(c!=null)throw Error(r(92));if(ze(p)){if(1<p.length)throw Error(r(93));p=p[0]}c=p}c==null&&(c=""),p=c}a._wrapperState={initialValue:St(p)}}function mr(a,c){var p=St(c.value),y=St(c.defaultValue);p!=null&&(p=""+p,p!==a.value&&(a.value=p),c.defaultValue==null&&a.defaultValue!==p&&(a.defaultValue=p)),y!=null&&(a.defaultValue=""+y)}function Le(a){var c=a.textContent;c===a._wrapperState.initialValue&&c!==""&&c!==null&&(a.value=c)}function ot(a){switch(a){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 ut(a,c){return a==null||a==="http://www.w3.org/1999/xhtml"?ot(c):a==="http://www.w3.org/2000/svg"&&c==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var kt,$t=(function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(c,p,y,b){MSApp.execUnsafeLocalFunction(function(){return a(c,p,y,b)})}:a})(function(a,c){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=c;else{for(kt=kt||document.createElement("div"),kt.innerHTML="<svg>"+c.valueOf().toString()+"</svg>",c=kt.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;c.firstChild;)a.appendChild(c.firstChild)}});function Xt(a,c){if(c){var p=a.firstChild;if(p&&p===a.lastChild&&p.nodeType===3){p.nodeValue=c;return}}a.textContent=c}var Se={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},Ve=["Webkit","ms","Moz","O"];Object.keys(Se).forEach(function(a){Ve.forEach(function(c){c=c+a.charAt(0).toUpperCase()+a.substring(1),Se[c]=Se[a]})});function Ie(a,c,p){return c==null||typeof c=="boolean"||c===""?"":p||typeof c!="number"||c===0||Se.hasOwnProperty(a)&&Se[a]?(""+c).trim():c+"px"}function qe(a,c){a=a.style;for(var p in c)if(c.hasOwnProperty(p)){var y=p.indexOf("--")===0,b=Ie(p,c[p],y);p==="float"&&(p="cssFloat"),y?a.setProperty(p,b):a[p]=b}}var ge=R({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 me(a,c){if(c){if(ge[a]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(r(137,a));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(r(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(r(61))}if(c.style!=null&&typeof c.style!="object")throw Error(r(62))}}function Ye(a,c){if(a.indexOf("-")===-1)return typeof c.is=="string";switch(a){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 Pe=null;function yr(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var ye=null,ur=null,Gn=null;function _n(a){if(a=Xs(a)){if(typeof ye!="function")throw Error(r(280));var c=a.stateNode;c&&(c=Uc(c),ye(a.stateNode,a.type,c))}}function ko(a){ur?Gn?Gn.push(a):Gn=[a]:ur=a}function bo(){if(ur){var a=ur,c=Gn;if(Gn=ur=null,_n(a),c)for(a=0;a<c.length;a++)_n(c[a])}}function ke(a,c){return a(c)}function fi(){}var Ts=!1;function _s(a,c,p){if(Ts)return a(c,p);Ts=!0;try{return ke(a,c,p)}finally{Ts=!1,(ur!==null||Gn!==null)&&(fi(),bo())}}function pi(a,c){var p=a.stateNode;if(p===null)return null;var y=Uc(p);if(y===null)return null;p=y[c];t:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(y=!y.disabled)||(a=a.type,y=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!y;break t;default:a=!1}if(a)return null;if(p&&typeof p!="function")throw Error(r(231,c,typeof p));return p}var la=!1;if(l)try{var Ni={};Object.defineProperty(Ni,"passive",{get:function(){la=!0}}),window.addEventListener("test",Ni,Ni),window.removeEventListener("test",Ni,Ni)}catch{la=!1}function Ad(a,c,p,y,b,T,M,z,V){var nt=Array.prototype.slice.call(arguments,3);try{c.apply(p,nt)}catch(ft){this.onError(ft)}}var xr=!1,pn=null,vo=!1,ca=null,Es={onError:function(a){xr=!0,pn=a}};function Sc(a,c,p,y,b,T,M,z,V){xr=!1,pn=null,Ad.apply(Es,arguments)}function En(a,c,p,y,b,T,M,z,V){if(Sc.apply(this,arguments),xr){if(xr){var nt=pn;xr=!1,pn=null}else throw Error(r(198));vo||(vo=!0,ca=nt)}}function Xn(a){var c=a,p=a;if(a.alternate)for(;c.return;)c=c.return;else{a=c;do c=a,(c.flags&4098)!==0&&(p=c.return),a=c.return;while(a)}return c.tag===3?p:null}function Ls(a){if(a.tag===13){var c=a.memoizedState;if(c===null&&(a=a.alternate,a!==null&&(c=a.memoizedState)),c!==null)return c.dehydrated}return null}function Bs(a){if(Xn(a)!==a)throw Error(r(188))}function Tc(a){var c=a.alternate;if(!c){if(c=Xn(a),c===null)throw Error(r(188));return c!==a?null:a}for(var p=a,y=c;;){var b=p.return;if(b===null)break;var T=b.alternate;if(T===null){if(y=b.return,y!==null){p=y;continue}break}if(b.child===T.child){for(T=b.child;T;){if(T===p)return Bs(b),a;if(T===y)return Bs(b),c;T=T.sibling}throw Error(r(188))}if(p.return!==y.return)p=b,y=T;else{for(var M=!1,z=b.child;z;){if(z===p){M=!0,p=b,y=T;break}if(z===y){M=!0,y=b,p=T;break}z=z.sibling}if(!M){for(z=T.child;z;){if(z===p){M=!0,p=T,y=b;break}if(z===y){M=!0,y=T,p=b;break}z=z.sibling}if(!M)throw Error(r(189))}}if(p.alternate!==y)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?a:c}function _c(a){return a=Tc(a),a!==null?Pt(a):null}function Pt(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var c=Pt(a);if(c!==null)return c;a=a.sibling}return null}var Y=t.unstable_scheduleCallback,gt=t.unstable_cancelCallback,Lt=t.unstable_shouldYield,be=t.unstable_requestPaint,Jt=t.unstable_now,Ne=t.unstable_getCurrentPriorityLevel,ir=t.unstable_ImmediatePriority,gn=t.unstable_UserBlockingPriority,Ln=t.unstable_NormalPriority,As=t.unstable_LowPriority,Ge=t.unstable_IdlePriority,wo=null,en=null;function gA(a){if(en&&typeof en.onCommitFiberRoot=="function")try{en.onCommitFiberRoot(wo,a,void 0,(a.current.flags&128)===128)}catch{}}var Bn=Math.clz32?Math.clz32:xA,mA=Math.log,yA=Math.LN2;function xA(a){return a>>>=0,a===0?32:31-(mA(a)/yA|0)|0}var Ec=64,Lc=4194304;function Fs(a){switch(a&-a){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 a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function Bc(a,c){var p=a.pendingLanes;if(p===0)return 0;var y=0,b=a.suspendedLanes,T=a.pingedLanes,M=p&268435455;if(M!==0){var z=M&~b;z!==0?y=Fs(z):(T&=M,T!==0&&(y=Fs(T)))}else M=p&~b,M!==0?y=Fs(M):T!==0&&(y=Fs(T));if(y===0)return 0;if(c!==0&&c!==y&&(c&b)===0&&(b=y&-y,T=c&-c,b>=T||b===16&&(T&4194240)!==0))return c;if((y&4)!==0&&(y|=p&16),c=a.entangledLanes,c!==0)for(a=a.entanglements,c&=y;0<c;)p=31-Bn(c),b=1<<p,y|=a[p],c&=~b;return y}function CA(a,c){switch(a){case 1:case 2:case 4:return c+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 c+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 kA(a,c){for(var p=a.suspendedLanes,y=a.pingedLanes,b=a.expirationTimes,T=a.pendingLanes;0<T;){var M=31-Bn(T),z=1<<M,V=b[M];V===-1?((z&p)===0||(z&y)!==0)&&(b[M]=CA(z,c)):V<=c&&(a.expiredLanes|=z),T&=~z}}function Fd(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function Wx(){var a=Ec;return Ec<<=1,(Ec&4194240)===0&&(Ec=64),a}function Id(a){for(var c=[],p=0;31>p;p++)c.push(a);return c}function Is(a,c,p){a.pendingLanes|=c,c!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,c=31-Bn(c),a[c]=p}function bA(a,c){var p=a.pendingLanes&~c;a.pendingLanes=c,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=c,a.mutableReadLanes&=c,a.entangledLanes&=c,c=a.entanglements;var y=a.eventTimes;for(a=a.expirationTimes;0<p;){var b=31-Bn(p),T=1<<b;c[b]=0,y[b]=-1,a[b]=-1,p&=~T}}function Md(a,c){var p=a.entangledLanes|=c;for(a=a.entanglements;p;){var y=31-Bn(p),b=1<<y;b&c|a[y]&c&&(a[y]|=c),p&=~b}}var fe=0;function Hx(a){return a&=-a,1<a?4<a?(a&268435455)!==0?16:536870912:4:1}var Ux,Od,Vx,Yx,Gx,Rd=!1,Ac=[],Di=null,$i=null,ji=null,Ms=new Map,Os=new Map,zi=[],vA="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 Xx(a,c){switch(a){case"focusin":case"focusout":Di=null;break;case"dragenter":case"dragleave":$i=null;break;case"mouseover":case"mouseout":ji=null;break;case"pointerover":case"pointerout":Ms.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":Os.delete(c.pointerId)}}function Rs(a,c,p,y,b,T){return a===null||a.nativeEvent!==T?(a={blockedOn:c,domEventName:p,eventSystemFlags:y,nativeEvent:T,targetContainers:[b]},c!==null&&(c=Xs(c),c!==null&&Od(c)),a):(a.eventSystemFlags|=y,c=a.targetContainers,b!==null&&c.indexOf(b)===-1&&c.push(b),a)}function wA(a,c,p,y,b){switch(c){case"focusin":return Di=Rs(Di,a,c,p,y,b),!0;case"dragenter":return $i=Rs($i,a,c,p,y,b),!0;case"mouseover":return ji=Rs(ji,a,c,p,y,b),!0;case"pointerover":var T=b.pointerId;return Ms.set(T,Rs(Ms.get(T)||null,a,c,p,y,b)),!0;case"gotpointercapture":return T=b.pointerId,Os.set(T,Rs(Os.get(T)||null,a,c,p,y,b)),!0}return!1}function Kx(a){var c=So(a.target);if(c!==null){var p=Xn(c);if(p!==null){if(c=p.tag,c===13){if(c=Ls(p),c!==null){a.blockedOn=c,Gx(a.priority,function(){Vx(p)});return}}else if(c===3&&p.stateNode.current.memoizedState.isDehydrated){a.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Fc(a){if(a.blockedOn!==null)return!1;for(var c=a.targetContainers;0<c.length;){var p=Nd(a.domEventName,a.eventSystemFlags,c[0],a.nativeEvent);if(p===null){p=a.nativeEvent;var y=new p.constructor(p.type,p);Pe=y,p.target.dispatchEvent(y),Pe=null}else return c=Xs(p),c!==null&&Od(c),a.blockedOn=p,!1;c.shift()}return!0}function Qx(a,c,p){Fc(a)&&p.delete(c)}function SA(){Rd=!1,Di!==null&&Fc(Di)&&(Di=null),$i!==null&&Fc($i)&&($i=null),ji!==null&&Fc(ji)&&(ji=null),Ms.forEach(Qx),Os.forEach(Qx)}function Ps(a,c){a.blockedOn===c&&(a.blockedOn=null,Rd||(Rd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,SA)))}function Ns(a){function c(b){return Ps(b,a)}if(0<Ac.length){Ps(Ac[0],a);for(var p=1;p<Ac.length;p++){var y=Ac[p];y.blockedOn===a&&(y.blockedOn=null)}}for(Di!==null&&Ps(Di,a),$i!==null&&Ps($i,a),ji!==null&&Ps(ji,a),Ms.forEach(c),Os.forEach(c),p=0;p<zi.length;p++)y=zi[p],y.blockedOn===a&&(y.blockedOn=null);for(;0<zi.length&&(p=zi[0],p.blockedOn===null);)Kx(p),p.blockedOn===null&&zi.shift()}var ua=A.ReactCurrentBatchConfig,Ic=!0;function TA(a,c,p,y){var b=fe,T=ua.transition;ua.transition=null;try{fe=1,Pd(a,c,p,y)}finally{fe=b,ua.transition=T}}function _A(a,c,p,y){var b=fe,T=ua.transition;ua.transition=null;try{fe=4,Pd(a,c,p,y)}finally{fe=b,ua.transition=T}}function Pd(a,c,p,y){if(Ic){var b=Nd(a,c,p,y);if(b===null)tf(a,c,y,Mc,p),Xx(a,y);else if(wA(b,a,c,p,y))y.stopPropagation();else if(Xx(a,y),c&4&&-1<vA.indexOf(a)){for(;b!==null;){var T=Xs(b);if(T!==null&&Ux(T),T=Nd(a,c,p,y),T===null&&tf(a,c,y,Mc,p),T===b)break;b=T}b!==null&&y.stopPropagation()}else tf(a,c,y,null,p)}}var Mc=null;function Nd(a,c,p,y){if(Mc=null,a=yr(y),a=So(a),a!==null)if(c=Xn(a),c===null)a=null;else if(p=c.tag,p===13){if(a=Ls(c),a!==null)return a;a=null}else if(p===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;a=null}else c!==a&&(a=null);return Mc=a,null}function Zx(a){switch(a){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(Ne()){case ir:return 1;case gn:return 4;case Ln:case As:return 16;case Ge:return 536870912;default:return 16}default:return 16}}var qi=null,Dd=null,Oc=null;function Jx(){if(Oc)return Oc;var a,c=Dd,p=c.length,y,b="value"in qi?qi.value:qi.textContent,T=b.length;for(a=0;a<p&&c[a]===b[a];a++);var M=p-a;for(y=1;y<=M&&c[p-y]===b[T-y];y++);return Oc=b.slice(a,1<y?1-y:void 0)}function Rc(a){var c=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&c===13&&(a=13)):a=c,a===10&&(a=13),32<=a||a===13?a:0}function Pc(){return!0}function t0(){return!1}function rn(a){function c(p,y,b,T,M){this._reactName=p,this._targetInst=b,this.type=y,this.nativeEvent=T,this.target=M,this.currentTarget=null;for(var z in a)a.hasOwnProperty(z)&&(p=a[z],this[z]=p?p(T):T[z]);return this.isDefaultPrevented=(T.defaultPrevented!=null?T.defaultPrevented:T.returnValue===!1)?Pc:t0,this.isPropagationStopped=t0,this}return R(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=Pc)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=Pc)},persist:function(){},isPersistent:Pc}),c}var ha={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$d=rn(ha),Ds=R({},ha,{view:0,detail:0}),EA=rn(Ds),jd,zd,$s,Nc=R({},Ds,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wd,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==$s&&($s&&a.type==="mousemove"?(jd=a.screenX-$s.screenX,zd=a.screenY-$s.screenY):zd=jd=0,$s=a),jd)},movementY:function(a){return"movementY"in a?a.movementY:zd}}),e0=rn(Nc),LA=R({},Nc,{dataTransfer:0}),BA=rn(LA),AA=R({},Ds,{relatedTarget:0}),qd=rn(AA),FA=R({},ha,{animationName:0,elapsedTime:0,pseudoElement:0}),IA=rn(FA),MA=R({},ha,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),OA=rn(MA),RA=R({},ha,{data:0}),r0=rn(RA),PA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},NA={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"},DA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $A(a){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(a):(a=DA[a])?!!c[a]:!1}function Wd(){return $A}var jA=R({},Ds,{key:function(a){if(a.key){var c=PA[a.key]||a.key;if(c!=="Unidentified")return c}return a.type==="keypress"?(a=Rc(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?NA[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wd,charCode:function(a){return a.type==="keypress"?Rc(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Rc(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),zA=rn(jA),qA=R({},Nc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),n0=rn(qA),WA=R({},Ds,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wd}),HA=rn(WA),UA=R({},ha,{propertyName:0,elapsedTime:0,pseudoElement:0}),VA=rn(UA),YA=R({},Nc,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),GA=rn(YA),XA=[9,13,27,32],Hd=l&&"CompositionEvent"in window,js=null;l&&"documentMode"in document&&(js=document.documentMode);var KA=l&&"TextEvent"in window&&!js,i0=l&&(!Hd||js&&8<js&&11>=js),o0=" ",a0=!1;function s0(a,c){switch(a){case"keyup":return XA.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function l0(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var da=!1;function QA(a,c){switch(a){case"compositionend":return l0(c);case"keypress":return c.which!==32?null:(a0=!0,o0);case"textInput":return a=c.data,a===o0&&a0?null:a;default:return null}}function ZA(a,c){if(da)return a==="compositionend"||!Hd&&s0(a,c)?(a=Jx(),Oc=Dd=qi=null,da=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return i0&&c.locale!=="ko"?null:c.data;default:return null}}var JA={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 c0(a){var c=a&&a.nodeName&&a.nodeName.toLowerCase();return c==="input"?!!JA[a.type]:c==="textarea"}function u0(a,c,p,y){ko(y),c=qc(c,"onChange"),0<c.length&&(p=new $d("onChange","change",null,p,y),a.push({event:p,listeners:c}))}var zs=null,qs=null;function tF(a){L0(a,0)}function Dc(a){var c=ya(a);if(re(c))return a}function eF(a,c){if(a==="change")return c}var h0=!1;if(l){var Ud;if(l){var Vd="oninput"in document;if(!Vd){var d0=document.createElement("div");d0.setAttribute("oninput","return;"),Vd=typeof d0.oninput=="function"}Ud=Vd}else Ud=!1;h0=Ud&&(!document.documentMode||9<document.documentMode)}function f0(){zs&&(zs.detachEvent("onpropertychange",p0),qs=zs=null)}function p0(a){if(a.propertyName==="value"&&Dc(qs)){var c=[];u0(c,qs,a,yr(a)),_s(tF,c)}}function rF(a,c,p){a==="focusin"?(f0(),zs=c,qs=p,zs.attachEvent("onpropertychange",p0)):a==="focusout"&&f0()}function nF(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Dc(qs)}function iF(a,c){if(a==="click")return Dc(c)}function oF(a,c){if(a==="input"||a==="change")return Dc(c)}function aF(a,c){return a===c&&(a!==0||1/a===1/c)||a!==a&&c!==c}var An=typeof Object.is=="function"?Object.is:aF;function Ws(a,c){if(An(a,c))return!0;if(typeof a!="object"||a===null||typeof c!="object"||c===null)return!1;var p=Object.keys(a),y=Object.keys(c);if(p.length!==y.length)return!1;for(y=0;y<p.length;y++){var b=p[y];if(!u.call(c,b)||!An(a[b],c[b]))return!1}return!0}function g0(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function m0(a,c){var p=g0(a);a=0;for(var y;p;){if(p.nodeType===3){if(y=a+p.textContent.length,a<=c&&y>=c)return{node:p,offset:c-a};a=y}t:{for(;p;){if(p.nextSibling){p=p.nextSibling;break t}p=p.parentNode}p=void 0}p=g0(p)}}function y0(a,c){return a&&c?a===c?!0:a&&a.nodeType===3?!1:c&&c.nodeType===3?y0(a,c.parentNode):"contains"in a?a.contains(c):a.compareDocumentPosition?!!(a.compareDocumentPosition(c)&16):!1:!1}function x0(){for(var a=window,c=Qt();c instanceof a.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)a=c.contentWindow;else break;c=Qt(a.document)}return c}function Yd(a){var c=a&&a.nodeName&&a.nodeName.toLowerCase();return c&&(c==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||c==="textarea"||a.contentEditable==="true")}function sF(a){var c=x0(),p=a.focusedElem,y=a.selectionRange;if(c!==p&&p&&p.ownerDocument&&y0(p.ownerDocument.documentElement,p)){if(y!==null&&Yd(p)){if(c=y.start,a=y.end,a===void 0&&(a=c),"selectionStart"in p)p.selectionStart=c,p.selectionEnd=Math.min(a,p.value.length);else if(a=(c=p.ownerDocument||document)&&c.defaultView||window,a.getSelection){a=a.getSelection();var b=p.textContent.length,T=Math.min(y.start,b);y=y.end===void 0?T:Math.min(y.end,b),!a.extend&&T>y&&(b=y,y=T,T=b),b=m0(p,T);var M=m0(p,y);b&&M&&(a.rangeCount!==1||a.anchorNode!==b.node||a.anchorOffset!==b.offset||a.focusNode!==M.node||a.focusOffset!==M.offset)&&(c=c.createRange(),c.setStart(b.node,b.offset),a.removeAllRanges(),T>y?(a.addRange(c),a.extend(M.node,M.offset)):(c.setEnd(M.node,M.offset),a.addRange(c)))}}for(c=[],a=p;a=a.parentNode;)a.nodeType===1&&c.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<c.length;p++)a=c[p],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var lF=l&&"documentMode"in document&&11>=document.documentMode,fa=null,Gd=null,Hs=null,Xd=!1;function C0(a,c,p){var y=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Xd||fa==null||fa!==Qt(y)||(y=fa,"selectionStart"in y&&Yd(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),Hs&&Ws(Hs,y)||(Hs=y,y=qc(Gd,"onSelect"),0<y.length&&(c=new $d("onSelect","select",null,c,p),a.push({event:c,listeners:y}),c.target=fa)))}function $c(a,c){var p={};return p[a.toLowerCase()]=c.toLowerCase(),p["Webkit"+a]="webkit"+c,p["Moz"+a]="moz"+c,p}var pa={animationend:$c("Animation","AnimationEnd"),animationiteration:$c("Animation","AnimationIteration"),animationstart:$c("Animation","AnimationStart"),transitionend:$c("Transition","TransitionEnd")},Kd={},k0={};l&&(k0=document.createElement("div").style,"AnimationEvent"in window||(delete pa.animationend.animation,delete pa.animationiteration.animation,delete pa.animationstart.animation),"TransitionEvent"in window||delete pa.transitionend.transition);function jc(a){if(Kd[a])return Kd[a];if(!pa[a])return a;var c=pa[a],p;for(p in c)if(c.hasOwnProperty(p)&&p in k0)return Kd[a]=c[p];return a}var b0=jc("animationend"),v0=jc("animationiteration"),w0=jc("animationstart"),S0=jc("transitionend"),T0=new Map,_0="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 Wi(a,c){T0.set(a,c),o(c,[a])}for(var Qd=0;Qd<_0.length;Qd++){var Zd=_0[Qd],cF=Zd.toLowerCase(),uF=Zd[0].toUpperCase()+Zd.slice(1);Wi(cF,"on"+uF)}Wi(b0,"onAnimationEnd"),Wi(v0,"onAnimationIteration"),Wi(w0,"onAnimationStart"),Wi("dblclick","onDoubleClick"),Wi("focusin","onFocus"),Wi("focusout","onBlur"),Wi(S0,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("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 Us="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(" "),hF=new Set("cancel close invalid load scroll toggle".split(" ").concat(Us));function E0(a,c,p){var y=a.type||"unknown-event";a.currentTarget=p,En(y,c,void 0,a),a.currentTarget=null}function L0(a,c){c=(c&4)!==0;for(var p=0;p<a.length;p++){var y=a[p],b=y.event;y=y.listeners;t:{var T=void 0;if(c)for(var M=y.length-1;0<=M;M--){var z=y[M],V=z.instance,nt=z.currentTarget;if(z=z.listener,V!==T&&b.isPropagationStopped())break t;E0(b,z,nt),T=V}else for(M=0;M<y.length;M++){if(z=y[M],V=z.instance,nt=z.currentTarget,z=z.listener,V!==T&&b.isPropagationStopped())break t;E0(b,z,nt),T=V}}}if(vo)throw a=ca,vo=!1,ca=null,a}function Te(a,c){var p=c[sf];p===void 0&&(p=c[sf]=new Set);var y=a+"__bubble";p.has(y)||(B0(c,a,2,!1),p.add(y))}function Jd(a,c,p){var y=0;c&&(y|=4),B0(p,a,y,c)}var zc="_reactListening"+Math.random().toString(36).slice(2);function Vs(a){if(!a[zc]){a[zc]=!0,n.forEach(function(p){p!=="selectionchange"&&(hF.has(p)||Jd(p,!1,a),Jd(p,!0,a))});var c=a.nodeType===9?a:a.ownerDocument;c===null||c[zc]||(c[zc]=!0,Jd("selectionchange",!1,c))}}function B0(a,c,p,y){switch(Zx(c)){case 1:var b=TA;break;case 4:b=_A;break;default:b=Pd}p=b.bind(null,c,p,a),b=void 0,!la||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(b=!0),y?b!==void 0?a.addEventListener(c,p,{capture:!0,passive:b}):a.addEventListener(c,p,!0):b!==void 0?a.addEventListener(c,p,{passive:b}):a.addEventListener(c,p,!1)}function tf(a,c,p,y,b){var T=y;if((c&1)===0&&(c&2)===0&&y!==null)t:for(;;){if(y===null)return;var M=y.tag;if(M===3||M===4){var z=y.stateNode.containerInfo;if(z===b||z.nodeType===8&&z.parentNode===b)break;if(M===4)for(M=y.return;M!==null;){var V=M.tag;if((V===3||V===4)&&(V=M.stateNode.containerInfo,V===b||V.nodeType===8&&V.parentNode===b))return;M=M.return}for(;z!==null;){if(M=So(z),M===null)return;if(V=M.tag,V===5||V===6){y=T=M;continue t}z=z.parentNode}}y=y.return}_s(function(){var nt=T,ft=yr(p),pt=[];t:{var dt=T0.get(a);if(dt!==void 0){var bt=$d,Et=a;switch(a){case"keypress":if(Rc(p)===0)break t;case"keydown":case"keyup":bt=zA;break;case"focusin":Et="focus",bt=qd;break;case"focusout":Et="blur",bt=qd;break;case"beforeblur":case"afterblur":bt=qd;break;case"click":if(p.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":bt=e0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":bt=BA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":bt=HA;break;case b0:case v0:case w0:bt=IA;break;case S0:bt=VA;break;case"scroll":bt=EA;break;case"wheel":bt=GA;break;case"copy":case"cut":case"paste":bt=OA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":bt=n0}var At=(c&4)!==0,We=!At&&a==="scroll",et=At?dt!==null?dt+"Capture":null:dt;At=[];for(var X=nt,rt;X!==null;){rt=X;var Ct=rt.stateNode;if(rt.tag===5&&Ct!==null&&(rt=Ct,et!==null&&(Ct=pi(X,et),Ct!=null&&At.push(Ys(X,Ct,rt)))),We)break;X=X.return}0<At.length&&(dt=new bt(dt,Et,null,p,ft),pt.push({event:dt,listeners:At}))}}if((c&7)===0){t:{if(dt=a==="mouseover"||a==="pointerover",bt=a==="mouseout"||a==="pointerout",dt&&p!==Pe&&(Et=p.relatedTarget||p.fromElement)&&(So(Et)||Et[gi]))break t;if((bt||dt)&&(dt=ft.window===ft?ft:(dt=ft.ownerDocument)?dt.defaultView||dt.parentWindow:window,bt?(Et=p.relatedTarget||p.toElement,bt=nt,Et=Et?So(Et):null,Et!==null&&(We=Xn(Et),Et!==We||Et.tag!==5&&Et.tag!==6)&&(Et=null)):(bt=null,Et=nt),bt!==Et)){if(At=e0,Ct="onMouseLeave",et="onMouseEnter",X="mouse",(a==="pointerout"||a==="pointerover")&&(At=n0,Ct="onPointerLeave",et="onPointerEnter",X="pointer"),We=bt==null?dt:ya(bt),rt=Et==null?dt:ya(Et),dt=new At(Ct,X+"leave",bt,p,ft),dt.target=We,dt.relatedTarget=rt,Ct=null,So(ft)===nt&&(At=new At(et,X+"enter",Et,p,ft),At.target=rt,At.relatedTarget=We,Ct=At),We=Ct,bt&&Et)e:{for(At=bt,et=Et,X=0,rt=At;rt;rt=ga(rt))X++;for(rt=0,Ct=et;Ct;Ct=ga(Ct))rt++;for(;0<X-rt;)At=ga(At),X--;for(;0<rt-X;)et=ga(et),rt--;for(;X--;){if(At===et||et!==null&&At===et.alternate)break e;At=ga(At),et=ga(et)}At=null}else At=null;bt!==null&&A0(pt,dt,bt,At,!1),Et!==null&&We!==null&&A0(pt,We,Et,At,!0)}}t:{if(dt=nt?ya(nt):window,bt=dt.nodeName&&dt.nodeName.toLowerCase(),bt==="select"||bt==="input"&&dt.type==="file")var Ot=eF;else if(c0(dt))if(h0)Ot=oF;else{Ot=nF;var jt=rF}else(bt=dt.nodeName)&&bt.toLowerCase()==="input"&&(dt.type==="checkbox"||dt.type==="radio")&&(Ot=iF);if(Ot&&(Ot=Ot(a,nt))){u0(pt,Ot,p,ft);break t}jt&&jt(a,dt,nt),a==="focusout"&&(jt=dt._wrapperState)&&jt.controlled&&dt.type==="number"&&zr(dt,"number",dt.value)}switch(jt=nt?ya(nt):window,a){case"focusin":(c0(jt)||jt.contentEditable==="true")&&(fa=jt,Gd=nt,Hs=null);break;case"focusout":Hs=Gd=fa=null;break;case"mousedown":Xd=!0;break;case"contextmenu":case"mouseup":case"dragend":Xd=!1,C0(pt,p,ft);break;case"selectionchange":if(lF)break;case"keydown":case"keyup":C0(pt,p,ft)}var zt;if(Hd)t:{switch(a){case"compositionstart":var Yt="onCompositionStart";break t;case"compositionend":Yt="onCompositionEnd";break t;case"compositionupdate":Yt="onCompositionUpdate";break t}Yt=void 0}else da?s0(a,p)&&(Yt="onCompositionEnd"):a==="keydown"&&p.keyCode===229&&(Yt="onCompositionStart");Yt&&(i0&&p.locale!=="ko"&&(da||Yt!=="onCompositionStart"?Yt==="onCompositionEnd"&&da&&(zt=Jx()):(qi=ft,Dd="value"in qi?qi.value:qi.textContent,da=!0)),jt=qc(nt,Yt),0<jt.length&&(Yt=new r0(Yt,a,null,p,ft),pt.push({event:Yt,listeners:jt}),zt?Yt.data=zt:(zt=l0(p),zt!==null&&(Yt.data=zt)))),(zt=KA?QA(a,p):ZA(a,p))&&(nt=qc(nt,"onBeforeInput"),0<nt.length&&(ft=new r0("onBeforeInput","beforeinput",null,p,ft),pt.push({event:ft,listeners:nt}),ft.data=zt))}L0(pt,c)})}function Ys(a,c,p){return{instance:a,listener:c,currentTarget:p}}function qc(a,c){for(var p=c+"Capture",y=[];a!==null;){var b=a,T=b.stateNode;b.tag===5&&T!==null&&(b=T,T=pi(a,p),T!=null&&y.unshift(Ys(a,T,b)),T=pi(a,c),T!=null&&y.push(Ys(a,T,b))),a=a.return}return y}function ga(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function A0(a,c,p,y,b){for(var T=c._reactName,M=[];p!==null&&p!==y;){var z=p,V=z.alternate,nt=z.stateNode;if(V!==null&&V===y)break;z.tag===5&&nt!==null&&(z=nt,b?(V=pi(p,T),V!=null&&M.unshift(Ys(p,V,z))):b||(V=pi(p,T),V!=null&&M.push(Ys(p,V,z)))),p=p.return}M.length!==0&&a.push({event:c,listeners:M})}var dF=/\r\n?/g,fF=/\u0000|\uFFFD/g;function F0(a){return(typeof a=="string"?a:""+a).replace(dF,`
|
|
39
|
+
`).replace(fF,"")}function Wc(a,c,p){if(c=F0(c),F0(a)!==c&&p)throw Error(r(425))}function Hc(){}var ef=null,rf=null;function nf(a,c){return a==="textarea"||a==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var of=typeof setTimeout=="function"?setTimeout:void 0,pF=typeof clearTimeout=="function"?clearTimeout:void 0,I0=typeof Promise=="function"?Promise:void 0,gF=typeof queueMicrotask=="function"?queueMicrotask:typeof I0<"u"?function(a){return I0.resolve(null).then(a).catch(mF)}:of;function mF(a){setTimeout(function(){throw a})}function af(a,c){var p=c,y=0;do{var b=p.nextSibling;if(a.removeChild(p),b&&b.nodeType===8)if(p=b.data,p==="/$"){if(y===0){a.removeChild(b),Ns(c);return}y--}else p!=="$"&&p!=="$?"&&p!=="$!"||y++;p=b}while(p);Ns(c)}function Hi(a){for(;a!=null;a=a.nextSibling){var c=a.nodeType;if(c===1||c===3)break;if(c===8){if(c=a.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return a}function M0(a){a=a.previousSibling;for(var c=0;a;){if(a.nodeType===8){var p=a.data;if(p==="$"||p==="$!"||p==="$?"){if(c===0)return a;c--}else p==="/$"&&c++}a=a.previousSibling}return null}var ma=Math.random().toString(36).slice(2),Kn="__reactFiber$"+ma,Gs="__reactProps$"+ma,gi="__reactContainer$"+ma,sf="__reactEvents$"+ma,yF="__reactListeners$"+ma,xF="__reactHandles$"+ma;function So(a){var c=a[Kn];if(c)return c;for(var p=a.parentNode;p;){if(c=p[gi]||p[Kn]){if(p=c.alternate,c.child!==null||p!==null&&p.child!==null)for(a=M0(a);a!==null;){if(p=a[Kn])return p;a=M0(a)}return c}a=p,p=a.parentNode}return null}function Xs(a){return a=a[Kn]||a[gi],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function ya(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(r(33))}function Uc(a){return a[Gs]||null}var lf=[],xa=-1;function Ui(a){return{current:a}}function _e(a){0>xa||(a.current=lf[xa],lf[xa]=null,xa--)}function ve(a,c){xa++,lf[xa]=a.current,a.current=c}var Vi={},Cr=Ui(Vi),qr=Ui(!1),To=Vi;function Ca(a,c){var p=a.type.contextTypes;if(!p)return Vi;var y=a.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===c)return y.__reactInternalMemoizedMaskedChildContext;var b={},T;for(T in p)b[T]=c[T];return y&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=c,a.__reactInternalMemoizedMaskedChildContext=b),b}function Wr(a){return a=a.childContextTypes,a!=null}function Vc(){_e(qr),_e(Cr)}function O0(a,c,p){if(Cr.current!==Vi)throw Error(r(168));ve(Cr,c),ve(qr,p)}function R0(a,c,p){var y=a.stateNode;if(c=c.childContextTypes,typeof y.getChildContext!="function")return p;y=y.getChildContext();for(var b in y)if(!(b in c))throw Error(r(108,wt(a)||"Unknown",b));return R({},p,y)}function Yc(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vi,To=Cr.current,ve(Cr,a),ve(qr,qr.current),!0}function P0(a,c,p){var y=a.stateNode;if(!y)throw Error(r(169));p?(a=R0(a,c,To),y.__reactInternalMemoizedMergedChildContext=a,_e(qr),_e(Cr),ve(Cr,a)):_e(qr),ve(qr,p)}var mi=null,Gc=!1,cf=!1;function N0(a){mi===null?mi=[a]:mi.push(a)}function CF(a){Gc=!0,N0(a)}function Yi(){if(!cf&&mi!==null){cf=!0;var a=0,c=fe;try{var p=mi;for(fe=1;a<p.length;a++){var y=p[a];do y=y(!0);while(y!==null)}mi=null,Gc=!1}catch(b){throw mi!==null&&(mi=mi.slice(a+1)),Y(ir,Yi),b}finally{fe=c,cf=!1}}return null}var ka=[],ba=0,Xc=null,Kc=0,mn=[],yn=0,_o=null,yi=1,xi="";function Eo(a,c){ka[ba++]=Kc,ka[ba++]=Xc,Xc=a,Kc=c}function D0(a,c,p){mn[yn++]=yi,mn[yn++]=xi,mn[yn++]=_o,_o=a;var y=yi;a=xi;var b=32-Bn(y)-1;y&=~(1<<b),p+=1;var T=32-Bn(c)+b;if(30<T){var M=b-b%5;T=(y&(1<<M)-1).toString(32),y>>=M,b-=M,yi=1<<32-Bn(c)+b|p<<b|y,xi=T+a}else yi=1<<T|p<<b|y,xi=a}function uf(a){a.return!==null&&(Eo(a,1),D0(a,1,0))}function hf(a){for(;a===Xc;)Xc=ka[--ba],ka[ba]=null,Kc=ka[--ba],ka[ba]=null;for(;a===_o;)_o=mn[--yn],mn[yn]=null,xi=mn[--yn],mn[yn]=null,yi=mn[--yn],mn[yn]=null}var nn=null,on=null,Be=!1,Fn=null;function $0(a,c){var p=bn(5,null,null,0);p.elementType="DELETED",p.stateNode=c,p.return=a,c=a.deletions,c===null?(a.deletions=[p],a.flags|=16):c.push(p)}function j0(a,c){switch(a.tag){case 5:var p=a.type;return c=c.nodeType!==1||p.toLowerCase()!==c.nodeName.toLowerCase()?null:c,c!==null?(a.stateNode=c,nn=a,on=Hi(c.firstChild),!0):!1;case 6:return c=a.pendingProps===""||c.nodeType!==3?null:c,c!==null?(a.stateNode=c,nn=a,on=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(p=_o!==null?{id:yi,overflow:xi}:null,a.memoizedState={dehydrated:c,treeContext:p,retryLane:1073741824},p=bn(18,null,null,0),p.stateNode=c,p.return=a,a.child=p,nn=a,on=null,!0):!1;default:return!1}}function df(a){return(a.mode&1)!==0&&(a.flags&128)===0}function ff(a){if(Be){var c=on;if(c){var p=c;if(!j0(a,c)){if(df(a))throw Error(r(418));c=Hi(p.nextSibling);var y=nn;c&&j0(a,c)?$0(y,p):(a.flags=a.flags&-4097|2,Be=!1,nn=a)}}else{if(df(a))throw Error(r(418));a.flags=a.flags&-4097|2,Be=!1,nn=a}}}function z0(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;nn=a}function Qc(a){if(a!==nn)return!1;if(!Be)return z0(a),Be=!0,!1;var c;if((c=a.tag!==3)&&!(c=a.tag!==5)&&(c=a.type,c=c!=="head"&&c!=="body"&&!nf(a.type,a.memoizedProps)),c&&(c=on)){if(df(a))throw q0(),Error(r(418));for(;c;)$0(a,c),c=Hi(c.nextSibling)}if(z0(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));t:{for(a=a.nextSibling,c=0;a;){if(a.nodeType===8){var p=a.data;if(p==="/$"){if(c===0){on=Hi(a.nextSibling);break t}c--}else p!=="$"&&p!=="$!"&&p!=="$?"||c++}a=a.nextSibling}on=null}}else on=nn?Hi(a.stateNode.nextSibling):null;return!0}function q0(){for(var a=on;a;)a=Hi(a.nextSibling)}function va(){on=nn=null,Be=!1}function pf(a){Fn===null?Fn=[a]:Fn.push(a)}var kF=A.ReactCurrentBatchConfig;function Ks(a,c,p){if(a=p.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(r(309));var y=p.stateNode}if(!y)throw Error(r(147,a));var b=y,T=""+a;return c!==null&&c.ref!==null&&typeof c.ref=="function"&&c.ref._stringRef===T?c.ref:(c=function(M){var z=b.refs;M===null?delete z[T]:z[T]=M},c._stringRef=T,c)}if(typeof a!="string")throw Error(r(284));if(!p._owner)throw Error(r(290,a))}return a}function Zc(a,c){throw a=Object.prototype.toString.call(c),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":a))}function W0(a){var c=a._init;return c(a._payload)}function H0(a){function c(et,X){if(a){var rt=et.deletions;rt===null?(et.deletions=[X],et.flags|=16):rt.push(X)}}function p(et,X){if(!a)return null;for(;X!==null;)c(et,X),X=X.sibling;return null}function y(et,X){for(et=new Map;X!==null;)X.key!==null?et.set(X.key,X):et.set(X.index,X),X=X.sibling;return et}function b(et,X){return et=eo(et,X),et.index=0,et.sibling=null,et}function T(et,X,rt){return et.index=rt,a?(rt=et.alternate,rt!==null?(rt=rt.index,rt<X?(et.flags|=2,X):rt):(et.flags|=2,X)):(et.flags|=1048576,X)}function M(et){return a&&et.alternate===null&&(et.flags|=2),et}function z(et,X,rt,Ct){return X===null||X.tag!==6?(X=op(rt,et.mode,Ct),X.return=et,X):(X=b(X,rt),X.return=et,X)}function V(et,X,rt,Ct){var Ot=rt.type;return Ot===B?ft(et,X,rt.props.children,Ct,rt.key):X!==null&&(X.elementType===Ot||typeof Ot=="object"&&Ot!==null&&Ot.$$typeof===H&&W0(Ot)===X.type)?(Ct=b(X,rt.props),Ct.ref=Ks(et,X,rt),Ct.return=et,Ct):(Ct=vu(rt.type,rt.key,rt.props,null,et.mode,Ct),Ct.ref=Ks(et,X,rt),Ct.return=et,Ct)}function nt(et,X,rt,Ct){return X===null||X.tag!==4||X.stateNode.containerInfo!==rt.containerInfo||X.stateNode.implementation!==rt.implementation?(X=ap(rt,et.mode,Ct),X.return=et,X):(X=b(X,rt.children||[]),X.return=et,X)}function ft(et,X,rt,Ct,Ot){return X===null||X.tag!==7?(X=Ro(rt,et.mode,Ct,Ot),X.return=et,X):(X=b(X,rt),X.return=et,X)}function pt(et,X,rt){if(typeof X=="string"&&X!==""||typeof X=="number")return X=op(""+X,et.mode,rt),X.return=et,X;if(typeof X=="object"&&X!==null){switch(X.$$typeof){case F:return rt=vu(X.type,X.key,X.props,null,et.mode,rt),rt.ref=Ks(et,null,X),rt.return=et,rt;case E:return X=ap(X,et.mode,rt),X.return=et,X;case H:var Ct=X._init;return pt(et,Ct(X._payload),rt)}if(ze(X)||Z(X))return X=Ro(X,et.mode,rt,null),X.return=et,X;Zc(et,X)}return null}function dt(et,X,rt,Ct){var Ot=X!==null?X.key:null;if(typeof rt=="string"&&rt!==""||typeof rt=="number")return Ot!==null?null:z(et,X,""+rt,Ct);if(typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case F:return rt.key===Ot?V(et,X,rt,Ct):null;case E:return rt.key===Ot?nt(et,X,rt,Ct):null;case H:return Ot=rt._init,dt(et,X,Ot(rt._payload),Ct)}if(ze(rt)||Z(rt))return Ot!==null?null:ft(et,X,rt,Ct,null);Zc(et,rt)}return null}function bt(et,X,rt,Ct,Ot){if(typeof Ct=="string"&&Ct!==""||typeof Ct=="number")return et=et.get(rt)||null,z(X,et,""+Ct,Ot);if(typeof Ct=="object"&&Ct!==null){switch(Ct.$$typeof){case F:return et=et.get(Ct.key===null?rt:Ct.key)||null,V(X,et,Ct,Ot);case E:return et=et.get(Ct.key===null?rt:Ct.key)||null,nt(X,et,Ct,Ot);case H:var jt=Ct._init;return bt(et,X,rt,jt(Ct._payload),Ot)}if(ze(Ct)||Z(Ct))return et=et.get(rt)||null,ft(X,et,Ct,Ot,null);Zc(X,Ct)}return null}function Et(et,X,rt,Ct){for(var Ot=null,jt=null,zt=X,Yt=X=0,sr=null;zt!==null&&Yt<rt.length;Yt++){zt.index>Yt?(sr=zt,zt=null):sr=zt.sibling;var ce=dt(et,zt,rt[Yt],Ct);if(ce===null){zt===null&&(zt=sr);break}a&&zt&&ce.alternate===null&&c(et,zt),X=T(ce,X,Yt),jt===null?Ot=ce:jt.sibling=ce,jt=ce,zt=sr}if(Yt===rt.length)return p(et,zt),Be&&Eo(et,Yt),Ot;if(zt===null){for(;Yt<rt.length;Yt++)zt=pt(et,rt[Yt],Ct),zt!==null&&(X=T(zt,X,Yt),jt===null?Ot=zt:jt.sibling=zt,jt=zt);return Be&&Eo(et,Yt),Ot}for(zt=y(et,zt);Yt<rt.length;Yt++)sr=bt(zt,et,Yt,rt[Yt],Ct),sr!==null&&(a&&sr.alternate!==null&&zt.delete(sr.key===null?Yt:sr.key),X=T(sr,X,Yt),jt===null?Ot=sr:jt.sibling=sr,jt=sr);return a&&zt.forEach(function(ro){return c(et,ro)}),Be&&Eo(et,Yt),Ot}function At(et,X,rt,Ct){var Ot=Z(rt);if(typeof Ot!="function")throw Error(r(150));if(rt=Ot.call(rt),rt==null)throw Error(r(151));for(var jt=Ot=null,zt=X,Yt=X=0,sr=null,ce=rt.next();zt!==null&&!ce.done;Yt++,ce=rt.next()){zt.index>Yt?(sr=zt,zt=null):sr=zt.sibling;var ro=dt(et,zt,ce.value,Ct);if(ro===null){zt===null&&(zt=sr);break}a&&zt&&ro.alternate===null&&c(et,zt),X=T(ro,X,Yt),jt===null?Ot=ro:jt.sibling=ro,jt=ro,zt=sr}if(ce.done)return p(et,zt),Be&&Eo(et,Yt),Ot;if(zt===null){for(;!ce.done;Yt++,ce=rt.next())ce=pt(et,ce.value,Ct),ce!==null&&(X=T(ce,X,Yt),jt===null?Ot=ce:jt.sibling=ce,jt=ce);return Be&&Eo(et,Yt),Ot}for(zt=y(et,zt);!ce.done;Yt++,ce=rt.next())ce=bt(zt,et,Yt,ce.value,Ct),ce!==null&&(a&&ce.alternate!==null&&zt.delete(ce.key===null?Yt:ce.key),X=T(ce,X,Yt),jt===null?Ot=ce:jt.sibling=ce,jt=ce);return a&&zt.forEach(function(JF){return c(et,JF)}),Be&&Eo(et,Yt),Ot}function We(et,X,rt,Ct){if(typeof rt=="object"&&rt!==null&&rt.type===B&&rt.key===null&&(rt=rt.props.children),typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case F:t:{for(var Ot=rt.key,jt=X;jt!==null;){if(jt.key===Ot){if(Ot=rt.type,Ot===B){if(jt.tag===7){p(et,jt.sibling),X=b(jt,rt.props.children),X.return=et,et=X;break t}}else if(jt.elementType===Ot||typeof Ot=="object"&&Ot!==null&&Ot.$$typeof===H&&W0(Ot)===jt.type){p(et,jt.sibling),X=b(jt,rt.props),X.ref=Ks(et,jt,rt),X.return=et,et=X;break t}p(et,jt);break}else c(et,jt);jt=jt.sibling}rt.type===B?(X=Ro(rt.props.children,et.mode,Ct,rt.key),X.return=et,et=X):(Ct=vu(rt.type,rt.key,rt.props,null,et.mode,Ct),Ct.ref=Ks(et,X,rt),Ct.return=et,et=Ct)}return M(et);case E:t:{for(jt=rt.key;X!==null;){if(X.key===jt)if(X.tag===4&&X.stateNode.containerInfo===rt.containerInfo&&X.stateNode.implementation===rt.implementation){p(et,X.sibling),X=b(X,rt.children||[]),X.return=et,et=X;break t}else{p(et,X);break}else c(et,X);X=X.sibling}X=ap(rt,et.mode,Ct),X.return=et,et=X}return M(et);case H:return jt=rt._init,We(et,X,jt(rt._payload),Ct)}if(ze(rt))return Et(et,X,rt,Ct);if(Z(rt))return At(et,X,rt,Ct);Zc(et,rt)}return typeof rt=="string"&&rt!==""||typeof rt=="number"?(rt=""+rt,X!==null&&X.tag===6?(p(et,X.sibling),X=b(X,rt),X.return=et,et=X):(p(et,X),X=op(rt,et.mode,Ct),X.return=et,et=X),M(et)):p(et,X)}return We}var wa=H0(!0),U0=H0(!1),Jc=Ui(null),tu=null,Sa=null,gf=null;function mf(){gf=Sa=tu=null}function yf(a){var c=Jc.current;_e(Jc),a._currentValue=c}function xf(a,c,p){for(;a!==null;){var y=a.alternate;if((a.childLanes&c)!==c?(a.childLanes|=c,y!==null&&(y.childLanes|=c)):y!==null&&(y.childLanes&c)!==c&&(y.childLanes|=c),a===p)break;a=a.return}}function Ta(a,c){tu=a,gf=Sa=null,a=a.dependencies,a!==null&&a.firstContext!==null&&((a.lanes&c)!==0&&(Hr=!0),a.firstContext=null)}function xn(a){var c=a._currentValue;if(gf!==a)if(a={context:a,memoizedValue:c,next:null},Sa===null){if(tu===null)throw Error(r(308));Sa=a,tu.dependencies={lanes:0,firstContext:a}}else Sa=Sa.next=a;return c}var Lo=null;function Cf(a){Lo===null?Lo=[a]:Lo.push(a)}function V0(a,c,p,y){var b=c.interleaved;return b===null?(p.next=p,Cf(c)):(p.next=b.next,b.next=p),c.interleaved=p,Ci(a,y)}function Ci(a,c){a.lanes|=c;var p=a.alternate;for(p!==null&&(p.lanes|=c),p=a,a=a.return;a!==null;)a.childLanes|=c,p=a.alternate,p!==null&&(p.childLanes|=c),p=a,a=a.return;return p.tag===3?p.stateNode:null}var Gi=!1;function kf(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Y0(a,c){a=a.updateQueue,c.updateQueue===a&&(c.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function ki(a,c){return{eventTime:a,lane:c,tag:0,payload:null,callback:null,next:null}}function Xi(a,c,p){var y=a.updateQueue;if(y===null)return null;if(y=y.shared,(le&2)!==0){var b=y.pending;return b===null?c.next=c:(c.next=b.next,b.next=c),y.pending=c,Ci(a,p)}return b=y.interleaved,b===null?(c.next=c,Cf(y)):(c.next=b.next,b.next=c),y.interleaved=c,Ci(a,p)}function eu(a,c,p){if(c=c.updateQueue,c!==null&&(c=c.shared,(p&4194240)!==0)){var y=c.lanes;y&=a.pendingLanes,p|=y,c.lanes=p,Md(a,p)}}function G0(a,c){var p=a.updateQueue,y=a.alternate;if(y!==null&&(y=y.updateQueue,p===y)){var b=null,T=null;if(p=p.firstBaseUpdate,p!==null){do{var M={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};T===null?b=T=M:T=T.next=M,p=p.next}while(p!==null);T===null?b=T=c:T=T.next=c}else b=T=c;p={baseState:y.baseState,firstBaseUpdate:b,lastBaseUpdate:T,shared:y.shared,effects:y.effects},a.updateQueue=p;return}a=p.lastBaseUpdate,a===null?p.firstBaseUpdate=c:a.next=c,p.lastBaseUpdate=c}function ru(a,c,p,y){var b=a.updateQueue;Gi=!1;var T=b.firstBaseUpdate,M=b.lastBaseUpdate,z=b.shared.pending;if(z!==null){b.shared.pending=null;var V=z,nt=V.next;V.next=null,M===null?T=nt:M.next=nt,M=V;var ft=a.alternate;ft!==null&&(ft=ft.updateQueue,z=ft.lastBaseUpdate,z!==M&&(z===null?ft.firstBaseUpdate=nt:z.next=nt,ft.lastBaseUpdate=V))}if(T!==null){var pt=b.baseState;M=0,ft=nt=V=null,z=T;do{var dt=z.lane,bt=z.eventTime;if((y&dt)===dt){ft!==null&&(ft=ft.next={eventTime:bt,lane:0,tag:z.tag,payload:z.payload,callback:z.callback,next:null});t:{var Et=a,At=z;switch(dt=c,bt=p,At.tag){case 1:if(Et=At.payload,typeof Et=="function"){pt=Et.call(bt,pt,dt);break t}pt=Et;break t;case 3:Et.flags=Et.flags&-65537|128;case 0:if(Et=At.payload,dt=typeof Et=="function"?Et.call(bt,pt,dt):Et,dt==null)break t;pt=R({},pt,dt);break t;case 2:Gi=!0}}z.callback!==null&&z.lane!==0&&(a.flags|=64,dt=b.effects,dt===null?b.effects=[z]:dt.push(z))}else bt={eventTime:bt,lane:dt,tag:z.tag,payload:z.payload,callback:z.callback,next:null},ft===null?(nt=ft=bt,V=pt):ft=ft.next=bt,M|=dt;if(z=z.next,z===null){if(z=b.shared.pending,z===null)break;dt=z,z=dt.next,dt.next=null,b.lastBaseUpdate=dt,b.shared.pending=null}}while(!0);if(ft===null&&(V=pt),b.baseState=V,b.firstBaseUpdate=nt,b.lastBaseUpdate=ft,c=b.shared.interleaved,c!==null){b=c;do M|=b.lane,b=b.next;while(b!==c)}else T===null&&(b.shared.lanes=0);Fo|=M,a.lanes=M,a.memoizedState=pt}}function X0(a,c,p){if(a=c.effects,c.effects=null,a!==null)for(c=0;c<a.length;c++){var y=a[c],b=y.callback;if(b!==null){if(y.callback=null,y=p,typeof b!="function")throw Error(r(191,b));b.call(y)}}}var Qs={},Qn=Ui(Qs),Zs=Ui(Qs),Js=Ui(Qs);function Bo(a){if(a===Qs)throw Error(r(174));return a}function bf(a,c){switch(ve(Js,c),ve(Zs,a),ve(Qn,Qs),a=c.nodeType,a){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:ut(null,"");break;default:a=a===8?c.parentNode:c,c=a.namespaceURI||null,a=a.tagName,c=ut(c,a)}_e(Qn),ve(Qn,c)}function _a(){_e(Qn),_e(Zs),_e(Js)}function K0(a){Bo(Js.current);var c=Bo(Qn.current),p=ut(c,a.type);c!==p&&(ve(Zs,a),ve(Qn,p))}function vf(a){Zs.current===a&&(_e(Qn),_e(Zs))}var Me=Ui(0);function nu(a){for(var c=a;c!==null;){if(c.tag===13){var p=c.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===a)break;for(;c.sibling===null;){if(c.return===null||c.return===a)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var wf=[];function Sf(){for(var a=0;a<wf.length;a++)wf[a]._workInProgressVersionPrimary=null;wf.length=0}var iu=A.ReactCurrentDispatcher,Tf=A.ReactCurrentBatchConfig,Ao=0,Oe=null,Je=null,or=null,ou=!1,tl=!1,el=0,bF=0;function kr(){throw Error(r(321))}function _f(a,c){if(c===null)return!1;for(var p=0;p<c.length&&p<a.length;p++)if(!An(a[p],c[p]))return!1;return!0}function Ef(a,c,p,y,b,T){if(Ao=T,Oe=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,iu.current=a===null||a.memoizedState===null?TF:_F,a=p(y,b),tl){T=0;do{if(tl=!1,el=0,25<=T)throw Error(r(301));T+=1,or=Je=null,c.updateQueue=null,iu.current=EF,a=p(y,b)}while(tl)}if(iu.current=lu,c=Je!==null&&Je.next!==null,Ao=0,or=Je=Oe=null,ou=!1,c)throw Error(r(300));return a}function Lf(){var a=el!==0;return el=0,a}function Zn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return or===null?Oe.memoizedState=or=a:or=or.next=a,or}function Cn(){if(Je===null){var a=Oe.alternate;a=a!==null?a.memoizedState:null}else a=Je.next;var c=or===null?Oe.memoizedState:or.next;if(c!==null)or=c,Je=a;else{if(a===null)throw Error(r(310));Je=a,a={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},or===null?Oe.memoizedState=or=a:or=or.next=a}return or}function rl(a,c){return typeof c=="function"?c(a):c}function Bf(a){var c=Cn(),p=c.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=a;var y=Je,b=y.baseQueue,T=p.pending;if(T!==null){if(b!==null){var M=b.next;b.next=T.next,T.next=M}y.baseQueue=b=T,p.pending=null}if(b!==null){T=b.next,y=y.baseState;var z=M=null,V=null,nt=T;do{var ft=nt.lane;if((Ao&ft)===ft)V!==null&&(V=V.next={lane:0,action:nt.action,hasEagerState:nt.hasEagerState,eagerState:nt.eagerState,next:null}),y=nt.hasEagerState?nt.eagerState:a(y,nt.action);else{var pt={lane:ft,action:nt.action,hasEagerState:nt.hasEagerState,eagerState:nt.eagerState,next:null};V===null?(z=V=pt,M=y):V=V.next=pt,Oe.lanes|=ft,Fo|=ft}nt=nt.next}while(nt!==null&&nt!==T);V===null?M=y:V.next=z,An(y,c.memoizedState)||(Hr=!0),c.memoizedState=y,c.baseState=M,c.baseQueue=V,p.lastRenderedState=y}if(a=p.interleaved,a!==null){b=a;do T=b.lane,Oe.lanes|=T,Fo|=T,b=b.next;while(b!==a)}else b===null&&(p.lanes=0);return[c.memoizedState,p.dispatch]}function Af(a){var c=Cn(),p=c.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=a;var y=p.dispatch,b=p.pending,T=c.memoizedState;if(b!==null){p.pending=null;var M=b=b.next;do T=a(T,M.action),M=M.next;while(M!==b);An(T,c.memoizedState)||(Hr=!0),c.memoizedState=T,c.baseQueue===null&&(c.baseState=T),p.lastRenderedState=T}return[T,y]}function Q0(){}function Z0(a,c){var p=Oe,y=Cn(),b=c(),T=!An(y.memoizedState,b);if(T&&(y.memoizedState=b,Hr=!0),y=y.queue,Ff(e1.bind(null,p,y,a),[a]),y.getSnapshot!==c||T||or!==null&&or.memoizedState.tag&1){if(p.flags|=2048,nl(9,t1.bind(null,p,y,b,c),void 0,null),ar===null)throw Error(r(349));(Ao&30)!==0||J0(p,c,b)}return b}function J0(a,c,p){a.flags|=16384,a={getSnapshot:c,value:p},c=Oe.updateQueue,c===null?(c={lastEffect:null,stores:null},Oe.updateQueue=c,c.stores=[a]):(p=c.stores,p===null?c.stores=[a]:p.push(a))}function t1(a,c,p,y){c.value=p,c.getSnapshot=y,r1(c)&&n1(a)}function e1(a,c,p){return p(function(){r1(c)&&n1(a)})}function r1(a){var c=a.getSnapshot;a=a.value;try{var p=c();return!An(a,p)}catch{return!0}}function n1(a){var c=Ci(a,1);c!==null&&Rn(c,a,1,-1)}function i1(a){var c=Zn();return typeof a=="function"&&(a=a()),c.memoizedState=c.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:rl,lastRenderedState:a},c.queue=a,a=a.dispatch=SF.bind(null,Oe,a),[c.memoizedState,a]}function nl(a,c,p,y){return a={tag:a,create:c,destroy:p,deps:y,next:null},c=Oe.updateQueue,c===null?(c={lastEffect:null,stores:null},Oe.updateQueue=c,c.lastEffect=a.next=a):(p=c.lastEffect,p===null?c.lastEffect=a.next=a:(y=p.next,p.next=a,a.next=y,c.lastEffect=a)),a}function o1(){return Cn().memoizedState}function au(a,c,p,y){var b=Zn();Oe.flags|=a,b.memoizedState=nl(1|c,p,void 0,y===void 0?null:y)}function su(a,c,p,y){var b=Cn();y=y===void 0?null:y;var T=void 0;if(Je!==null){var M=Je.memoizedState;if(T=M.destroy,y!==null&&_f(y,M.deps)){b.memoizedState=nl(c,p,T,y);return}}Oe.flags|=a,b.memoizedState=nl(1|c,p,T,y)}function a1(a,c){return au(8390656,8,a,c)}function Ff(a,c){return su(2048,8,a,c)}function s1(a,c){return su(4,2,a,c)}function l1(a,c){return su(4,4,a,c)}function c1(a,c){if(typeof c=="function")return a=a(),c(a),function(){c(null)};if(c!=null)return a=a(),c.current=a,function(){c.current=null}}function u1(a,c,p){return p=p!=null?p.concat([a]):null,su(4,4,c1.bind(null,c,a),p)}function If(){}function h1(a,c){var p=Cn();c=c===void 0?null:c;var y=p.memoizedState;return y!==null&&c!==null&&_f(c,y[1])?y[0]:(p.memoizedState=[a,c],a)}function d1(a,c){var p=Cn();c=c===void 0?null:c;var y=p.memoizedState;return y!==null&&c!==null&&_f(c,y[1])?y[0]:(a=a(),p.memoizedState=[a,c],a)}function f1(a,c,p){return(Ao&21)===0?(a.baseState&&(a.baseState=!1,Hr=!0),a.memoizedState=p):(An(p,c)||(p=Wx(),Oe.lanes|=p,Fo|=p,a.baseState=!0),c)}function vF(a,c){var p=fe;fe=p!==0&&4>p?p:4,a(!0);var y=Tf.transition;Tf.transition={};try{a(!1),c()}finally{fe=p,Tf.transition=y}}function p1(){return Cn().memoizedState}function wF(a,c,p){var y=Ji(a);if(p={lane:y,action:p,hasEagerState:!1,eagerState:null,next:null},g1(a))m1(c,p);else if(p=V0(a,c,p,y),p!==null){var b=Ir();Rn(p,a,y,b),y1(p,c,y)}}function SF(a,c,p){var y=Ji(a),b={lane:y,action:p,hasEagerState:!1,eagerState:null,next:null};if(g1(a))m1(c,b);else{var T=a.alternate;if(a.lanes===0&&(T===null||T.lanes===0)&&(T=c.lastRenderedReducer,T!==null))try{var M=c.lastRenderedState,z=T(M,p);if(b.hasEagerState=!0,b.eagerState=z,An(z,M)){var V=c.interleaved;V===null?(b.next=b,Cf(c)):(b.next=V.next,V.next=b),c.interleaved=b;return}}catch{}finally{}p=V0(a,c,b,y),p!==null&&(b=Ir(),Rn(p,a,y,b),y1(p,c,y))}}function g1(a){var c=a.alternate;return a===Oe||c!==null&&c===Oe}function m1(a,c){tl=ou=!0;var p=a.pending;p===null?c.next=c:(c.next=p.next,p.next=c),a.pending=c}function y1(a,c,p){if((p&4194240)!==0){var y=c.lanes;y&=a.pendingLanes,p|=y,c.lanes=p,Md(a,p)}}var lu={readContext:xn,useCallback:kr,useContext:kr,useEffect:kr,useImperativeHandle:kr,useInsertionEffect:kr,useLayoutEffect:kr,useMemo:kr,useReducer:kr,useRef:kr,useState:kr,useDebugValue:kr,useDeferredValue:kr,useTransition:kr,useMutableSource:kr,useSyncExternalStore:kr,useId:kr,unstable_isNewReconciler:!1},TF={readContext:xn,useCallback:function(a,c){return Zn().memoizedState=[a,c===void 0?null:c],a},useContext:xn,useEffect:a1,useImperativeHandle:function(a,c,p){return p=p!=null?p.concat([a]):null,au(4194308,4,c1.bind(null,c,a),p)},useLayoutEffect:function(a,c){return au(4194308,4,a,c)},useInsertionEffect:function(a,c){return au(4,2,a,c)},useMemo:function(a,c){var p=Zn();return c=c===void 0?null:c,a=a(),p.memoizedState=[a,c],a},useReducer:function(a,c,p){var y=Zn();return c=p!==void 0?p(c):c,y.memoizedState=y.baseState=c,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:c},y.queue=a,a=a.dispatch=wF.bind(null,Oe,a),[y.memoizedState,a]},useRef:function(a){var c=Zn();return a={current:a},c.memoizedState=a},useState:i1,useDebugValue:If,useDeferredValue:function(a){return Zn().memoizedState=a},useTransition:function(){var a=i1(!1),c=a[0];return a=vF.bind(null,a[1]),Zn().memoizedState=a,[c,a]},useMutableSource:function(){},useSyncExternalStore:function(a,c,p){var y=Oe,b=Zn();if(Be){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),ar===null)throw Error(r(349));(Ao&30)!==0||J0(y,c,p)}b.memoizedState=p;var T={value:p,getSnapshot:c};return b.queue=T,a1(e1.bind(null,y,T,a),[a]),y.flags|=2048,nl(9,t1.bind(null,y,T,p,c),void 0,null),p},useId:function(){var a=Zn(),c=ar.identifierPrefix;if(Be){var p=xi,y=yi;p=(y&~(1<<32-Bn(y)-1)).toString(32)+p,c=":"+c+"R"+p,p=el++,0<p&&(c+="H"+p.toString(32)),c+=":"}else p=bF++,c=":"+c+"r"+p.toString(32)+":";return a.memoizedState=c},unstable_isNewReconciler:!1},_F={readContext:xn,useCallback:h1,useContext:xn,useEffect:Ff,useImperativeHandle:u1,useInsertionEffect:s1,useLayoutEffect:l1,useMemo:d1,useReducer:Bf,useRef:o1,useState:function(){return Bf(rl)},useDebugValue:If,useDeferredValue:function(a){var c=Cn();return f1(c,Je.memoizedState,a)},useTransition:function(){var a=Bf(rl)[0],c=Cn().memoizedState;return[a,c]},useMutableSource:Q0,useSyncExternalStore:Z0,useId:p1,unstable_isNewReconciler:!1},EF={readContext:xn,useCallback:h1,useContext:xn,useEffect:Ff,useImperativeHandle:u1,useInsertionEffect:s1,useLayoutEffect:l1,useMemo:d1,useReducer:Af,useRef:o1,useState:function(){return Af(rl)},useDebugValue:If,useDeferredValue:function(a){var c=Cn();return Je===null?c.memoizedState=a:f1(c,Je.memoizedState,a)},useTransition:function(){var a=Af(rl)[0],c=Cn().memoizedState;return[a,c]},useMutableSource:Q0,useSyncExternalStore:Z0,useId:p1,unstable_isNewReconciler:!1};function In(a,c){if(a&&a.defaultProps){c=R({},c),a=a.defaultProps;for(var p in a)c[p]===void 0&&(c[p]=a[p]);return c}return c}function Mf(a,c,p,y){c=a.memoizedState,p=p(y,c),p=p==null?c:R({},c,p),a.memoizedState=p,a.lanes===0&&(a.updateQueue.baseState=p)}var cu={isMounted:function(a){return(a=a._reactInternals)?Xn(a)===a:!1},enqueueSetState:function(a,c,p){a=a._reactInternals;var y=Ir(),b=Ji(a),T=ki(y,b);T.payload=c,p!=null&&(T.callback=p),c=Xi(a,T,b),c!==null&&(Rn(c,a,b,y),eu(c,a,b))},enqueueReplaceState:function(a,c,p){a=a._reactInternals;var y=Ir(),b=Ji(a),T=ki(y,b);T.tag=1,T.payload=c,p!=null&&(T.callback=p),c=Xi(a,T,b),c!==null&&(Rn(c,a,b,y),eu(c,a,b))},enqueueForceUpdate:function(a,c){a=a._reactInternals;var p=Ir(),y=Ji(a),b=ki(p,y);b.tag=2,c!=null&&(b.callback=c),c=Xi(a,b,y),c!==null&&(Rn(c,a,y,p),eu(c,a,y))}};function x1(a,c,p,y,b,T,M){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(y,T,M):c.prototype&&c.prototype.isPureReactComponent?!Ws(p,y)||!Ws(b,T):!0}function C1(a,c,p){var y=!1,b=Vi,T=c.contextType;return typeof T=="object"&&T!==null?T=xn(T):(b=Wr(c)?To:Cr.current,y=c.contextTypes,T=(y=y!=null)?Ca(a,b):Vi),c=new c(p,T),a.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=cu,a.stateNode=c,c._reactInternals=a,y&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=T),c}function k1(a,c,p,y){a=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(p,y),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(p,y),c.state!==a&&cu.enqueueReplaceState(c,c.state,null)}function Of(a,c,p,y){var b=a.stateNode;b.props=p,b.state=a.memoizedState,b.refs={},kf(a);var T=c.contextType;typeof T=="object"&&T!==null?b.context=xn(T):(T=Wr(c)?To:Cr.current,b.context=Ca(a,T)),b.state=a.memoizedState,T=c.getDerivedStateFromProps,typeof T=="function"&&(Mf(a,c,T,p),b.state=a.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(c=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),c!==b.state&&cu.enqueueReplaceState(b,b.state,null),ru(a,p,b,y),b.state=a.memoizedState),typeof b.componentDidMount=="function"&&(a.flags|=4194308)}function Ea(a,c){try{var p="",y=c;do p+=lt(y),y=y.return;while(y);var b=p}catch(T){b=`
|
|
40
|
+
Error generating stack: `+T.message+`
|
|
41
|
+
`+T.stack}return{value:a,source:c,stack:b,digest:null}}function Rf(a,c,p){return{value:a,source:null,stack:p??null,digest:c??null}}function Pf(a,c){try{console.error(c.value)}catch(p){setTimeout(function(){throw p})}}var LF=typeof WeakMap=="function"?WeakMap:Map;function b1(a,c,p){p=ki(-1,p),p.tag=3,p.payload={element:null};var y=c.value;return p.callback=function(){mu||(mu=!0,Qf=y),Pf(a,c)},p}function v1(a,c,p){p=ki(-1,p),p.tag=3;var y=a.type.getDerivedStateFromError;if(typeof y=="function"){var b=c.value;p.payload=function(){return y(b)},p.callback=function(){Pf(a,c)}}var T=a.stateNode;return T!==null&&typeof T.componentDidCatch=="function"&&(p.callback=function(){Pf(a,c),typeof y!="function"&&(Qi===null?Qi=new Set([this]):Qi.add(this));var M=c.stack;this.componentDidCatch(c.value,{componentStack:M!==null?M:""})}),p}function w1(a,c,p){var y=a.pingCache;if(y===null){y=a.pingCache=new LF;var b=new Set;y.set(c,b)}else b=y.get(c),b===void 0&&(b=new Set,y.set(c,b));b.has(p)||(b.add(p),a=qF.bind(null,a,c,p),c.then(a,a))}function S1(a){do{var c;if((c=a.tag===13)&&(c=a.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return a;a=a.return}while(a!==null);return null}function T1(a,c,p,y,b){return(a.mode&1)===0?(a===c?a.flags|=65536:(a.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(c=ki(-1,1),c.tag=2,Xi(p,c,1))),p.lanes|=1),a):(a.flags|=65536,a.lanes=b,a)}var BF=A.ReactCurrentOwner,Hr=!1;function Fr(a,c,p,y){c.child=a===null?U0(c,null,p,y):wa(c,a.child,p,y)}function _1(a,c,p,y,b){p=p.render;var T=c.ref;return Ta(c,b),y=Ef(a,c,p,y,T,b),p=Lf(),a!==null&&!Hr?(c.updateQueue=a.updateQueue,c.flags&=-2053,a.lanes&=~b,bi(a,c,b)):(Be&&p&&uf(c),c.flags|=1,Fr(a,c,y,b),c.child)}function E1(a,c,p,y,b){if(a===null){var T=p.type;return typeof T=="function"&&!ip(T)&&T.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(c.tag=15,c.type=T,L1(a,c,T,y,b)):(a=vu(p.type,null,y,c,c.mode,b),a.ref=c.ref,a.return=c,c.child=a)}if(T=a.child,(a.lanes&b)===0){var M=T.memoizedProps;if(p=p.compare,p=p!==null?p:Ws,p(M,y)&&a.ref===c.ref)return bi(a,c,b)}return c.flags|=1,a=eo(T,y),a.ref=c.ref,a.return=c,c.child=a}function L1(a,c,p,y,b){if(a!==null){var T=a.memoizedProps;if(Ws(T,y)&&a.ref===c.ref)if(Hr=!1,c.pendingProps=y=T,(a.lanes&b)!==0)(a.flags&131072)!==0&&(Hr=!0);else return c.lanes=a.lanes,bi(a,c,b)}return Nf(a,c,p,y,b)}function B1(a,c,p){var y=c.pendingProps,b=y.children,T=a!==null?a.memoizedState:null;if(y.mode==="hidden")if((c.mode&1)===0)c.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve(Ba,an),an|=p;else{if((p&1073741824)===0)return a=T!==null?T.baseLanes|p:p,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:a,cachePool:null,transitions:null},c.updateQueue=null,ve(Ba,an),an|=a,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},y=T!==null?T.baseLanes:p,ve(Ba,an),an|=y}else T!==null?(y=T.baseLanes|p,c.memoizedState=null):y=p,ve(Ba,an),an|=y;return Fr(a,c,b,p),c.child}function A1(a,c){var p=c.ref;(a===null&&p!==null||a!==null&&a.ref!==p)&&(c.flags|=512,c.flags|=2097152)}function Nf(a,c,p,y,b){var T=Wr(p)?To:Cr.current;return T=Ca(c,T),Ta(c,b),p=Ef(a,c,p,y,T,b),y=Lf(),a!==null&&!Hr?(c.updateQueue=a.updateQueue,c.flags&=-2053,a.lanes&=~b,bi(a,c,b)):(Be&&y&&uf(c),c.flags|=1,Fr(a,c,p,b),c.child)}function F1(a,c,p,y,b){if(Wr(p)){var T=!0;Yc(c)}else T=!1;if(Ta(c,b),c.stateNode===null)hu(a,c),C1(c,p,y),Of(c,p,y,b),y=!0;else if(a===null){var M=c.stateNode,z=c.memoizedProps;M.props=z;var V=M.context,nt=p.contextType;typeof nt=="object"&&nt!==null?nt=xn(nt):(nt=Wr(p)?To:Cr.current,nt=Ca(c,nt));var ft=p.getDerivedStateFromProps,pt=typeof ft=="function"||typeof M.getSnapshotBeforeUpdate=="function";pt||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(z!==y||V!==nt)&&k1(c,M,y,nt),Gi=!1;var dt=c.memoizedState;M.state=dt,ru(c,y,M,b),V=c.memoizedState,z!==y||dt!==V||qr.current||Gi?(typeof ft=="function"&&(Mf(c,p,ft,y),V=c.memoizedState),(z=Gi||x1(c,p,z,y,dt,V,nt))?(pt||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(c.flags|=4194308)):(typeof M.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=y,c.memoizedState=V),M.props=y,M.state=V,M.context=nt,y=z):(typeof M.componentDidMount=="function"&&(c.flags|=4194308),y=!1)}else{M=c.stateNode,Y0(a,c),z=c.memoizedProps,nt=c.type===c.elementType?z:In(c.type,z),M.props=nt,pt=c.pendingProps,dt=M.context,V=p.contextType,typeof V=="object"&&V!==null?V=xn(V):(V=Wr(p)?To:Cr.current,V=Ca(c,V));var bt=p.getDerivedStateFromProps;(ft=typeof bt=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(z!==pt||dt!==V)&&k1(c,M,y,V),Gi=!1,dt=c.memoizedState,M.state=dt,ru(c,y,M,b);var Et=c.memoizedState;z!==pt||dt!==Et||qr.current||Gi?(typeof bt=="function"&&(Mf(c,p,bt,y),Et=c.memoizedState),(nt=Gi||x1(c,p,nt,y,dt,Et,V)||!1)?(ft||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(y,Et,V),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(y,Et,V)),typeof M.componentDidUpdate=="function"&&(c.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof M.componentDidUpdate!="function"||z===a.memoizedProps&&dt===a.memoizedState||(c.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||z===a.memoizedProps&&dt===a.memoizedState||(c.flags|=1024),c.memoizedProps=y,c.memoizedState=Et),M.props=y,M.state=Et,M.context=V,y=nt):(typeof M.componentDidUpdate!="function"||z===a.memoizedProps&&dt===a.memoizedState||(c.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||z===a.memoizedProps&&dt===a.memoizedState||(c.flags|=1024),y=!1)}return Df(a,c,p,y,T,b)}function Df(a,c,p,y,b,T){A1(a,c);var M=(c.flags&128)!==0;if(!y&&!M)return b&&P0(c,p,!1),bi(a,c,T);y=c.stateNode,BF.current=c;var z=M&&typeof p.getDerivedStateFromError!="function"?null:y.render();return c.flags|=1,a!==null&&M?(c.child=wa(c,a.child,null,T),c.child=wa(c,null,z,T)):Fr(a,c,z,T),c.memoizedState=y.state,b&&P0(c,p,!0),c.child}function I1(a){var c=a.stateNode;c.pendingContext?O0(a,c.pendingContext,c.pendingContext!==c.context):c.context&&O0(a,c.context,!1),bf(a,c.containerInfo)}function M1(a,c,p,y,b){return va(),pf(b),c.flags|=256,Fr(a,c,p,y),c.child}var $f={dehydrated:null,treeContext:null,retryLane:0};function jf(a){return{baseLanes:a,cachePool:null,transitions:null}}function O1(a,c,p){var y=c.pendingProps,b=Me.current,T=!1,M=(c.flags&128)!==0,z;if((z=M)||(z=a!==null&&a.memoizedState===null?!1:(b&2)!==0),z?(T=!0,c.flags&=-129):(a===null||a.memoizedState!==null)&&(b|=1),ve(Me,b&1),a===null)return ff(c),a=c.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?((c.mode&1)===0?c.lanes=1:a.data==="$!"?c.lanes=8:c.lanes=1073741824,null):(M=y.children,a=y.fallback,T?(y=c.mode,T=c.child,M={mode:"hidden",children:M},(y&1)===0&&T!==null?(T.childLanes=0,T.pendingProps=M):T=wu(M,y,0,null),a=Ro(a,y,p,null),T.return=c,a.return=c,T.sibling=a,c.child=T,c.child.memoizedState=jf(p),c.memoizedState=$f,a):zf(c,M));if(b=a.memoizedState,b!==null&&(z=b.dehydrated,z!==null))return AF(a,c,M,y,z,b,p);if(T){T=y.fallback,M=c.mode,b=a.child,z=b.sibling;var V={mode:"hidden",children:y.children};return(M&1)===0&&c.child!==b?(y=c.child,y.childLanes=0,y.pendingProps=V,c.deletions=null):(y=eo(b,V),y.subtreeFlags=b.subtreeFlags&14680064),z!==null?T=eo(z,T):(T=Ro(T,M,p,null),T.flags|=2),T.return=c,y.return=c,y.sibling=T,c.child=y,y=T,T=c.child,M=a.child.memoizedState,M=M===null?jf(p):{baseLanes:M.baseLanes|p,cachePool:null,transitions:M.transitions},T.memoizedState=M,T.childLanes=a.childLanes&~p,c.memoizedState=$f,y}return T=a.child,a=T.sibling,y=eo(T,{mode:"visible",children:y.children}),(c.mode&1)===0&&(y.lanes=p),y.return=c,y.sibling=null,a!==null&&(p=c.deletions,p===null?(c.deletions=[a],c.flags|=16):p.push(a)),c.child=y,c.memoizedState=null,y}function zf(a,c){return c=wu({mode:"visible",children:c},a.mode,0,null),c.return=a,a.child=c}function uu(a,c,p,y){return y!==null&&pf(y),wa(c,a.child,null,p),a=zf(c,c.pendingProps.children),a.flags|=2,c.memoizedState=null,a}function AF(a,c,p,y,b,T,M){if(p)return c.flags&256?(c.flags&=-257,y=Rf(Error(r(422))),uu(a,c,M,y)):c.memoizedState!==null?(c.child=a.child,c.flags|=128,null):(T=y.fallback,b=c.mode,y=wu({mode:"visible",children:y.children},b,0,null),T=Ro(T,b,M,null),T.flags|=2,y.return=c,T.return=c,y.sibling=T,c.child=y,(c.mode&1)!==0&&wa(c,a.child,null,M),c.child.memoizedState=jf(M),c.memoizedState=$f,T);if((c.mode&1)===0)return uu(a,c,M,null);if(b.data==="$!"){if(y=b.nextSibling&&b.nextSibling.dataset,y)var z=y.dgst;return y=z,T=Error(r(419)),y=Rf(T,y,void 0),uu(a,c,M,y)}if(z=(M&a.childLanes)!==0,Hr||z){if(y=ar,y!==null){switch(M&-M){case 4:b=2;break;case 16:b=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:b=32;break;case 536870912:b=268435456;break;default:b=0}b=(b&(y.suspendedLanes|M))!==0?0:b,b!==0&&b!==T.retryLane&&(T.retryLane=b,Ci(a,b),Rn(y,a,b,-1))}return np(),y=Rf(Error(r(421))),uu(a,c,M,y)}return b.data==="$?"?(c.flags|=128,c.child=a.child,c=WF.bind(null,a),b._reactRetry=c,null):(a=T.treeContext,on=Hi(b.nextSibling),nn=c,Be=!0,Fn=null,a!==null&&(mn[yn++]=yi,mn[yn++]=xi,mn[yn++]=_o,yi=a.id,xi=a.overflow,_o=c),c=zf(c,y.children),c.flags|=4096,c)}function R1(a,c,p){a.lanes|=c;var y=a.alternate;y!==null&&(y.lanes|=c),xf(a.return,c,p)}function qf(a,c,p,y,b){var T=a.memoizedState;T===null?a.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:y,tail:p,tailMode:b}:(T.isBackwards=c,T.rendering=null,T.renderingStartTime=0,T.last=y,T.tail=p,T.tailMode=b)}function P1(a,c,p){var y=c.pendingProps,b=y.revealOrder,T=y.tail;if(Fr(a,c,y.children,p),y=Me.current,(y&2)!==0)y=y&1|2,c.flags|=128;else{if(a!==null&&(a.flags&128)!==0)t:for(a=c.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&R1(a,p,c);else if(a.tag===19)R1(a,p,c);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===c)break t;for(;a.sibling===null;){if(a.return===null||a.return===c)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}y&=1}if(ve(Me,y),(c.mode&1)===0)c.memoizedState=null;else switch(b){case"forwards":for(p=c.child,b=null;p!==null;)a=p.alternate,a!==null&&nu(a)===null&&(b=p),p=p.sibling;p=b,p===null?(b=c.child,c.child=null):(b=p.sibling,p.sibling=null),qf(c,!1,b,p,T);break;case"backwards":for(p=null,b=c.child,c.child=null;b!==null;){if(a=b.alternate,a!==null&&nu(a)===null){c.child=b;break}a=b.sibling,b.sibling=p,p=b,b=a}qf(c,!0,p,null,T);break;case"together":qf(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function hu(a,c){(c.mode&1)===0&&a!==null&&(a.alternate=null,c.alternate=null,c.flags|=2)}function bi(a,c,p){if(a!==null&&(c.dependencies=a.dependencies),Fo|=c.lanes,(p&c.childLanes)===0)return null;if(a!==null&&c.child!==a.child)throw Error(r(153));if(c.child!==null){for(a=c.child,p=eo(a,a.pendingProps),c.child=p,p.return=c;a.sibling!==null;)a=a.sibling,p=p.sibling=eo(a,a.pendingProps),p.return=c;p.sibling=null}return c.child}function FF(a,c,p){switch(c.tag){case 3:I1(c),va();break;case 5:K0(c);break;case 1:Wr(c.type)&&Yc(c);break;case 4:bf(c,c.stateNode.containerInfo);break;case 10:var y=c.type._context,b=c.memoizedProps.value;ve(Jc,y._currentValue),y._currentValue=b;break;case 13:if(y=c.memoizedState,y!==null)return y.dehydrated!==null?(ve(Me,Me.current&1),c.flags|=128,null):(p&c.child.childLanes)!==0?O1(a,c,p):(ve(Me,Me.current&1),a=bi(a,c,p),a!==null?a.sibling:null);ve(Me,Me.current&1);break;case 19:if(y=(p&c.childLanes)!==0,(a.flags&128)!==0){if(y)return P1(a,c,p);c.flags|=128}if(b=c.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),ve(Me,Me.current),y)break;return null;case 22:case 23:return c.lanes=0,B1(a,c,p)}return bi(a,c,p)}var N1,Wf,D1,$1;N1=function(a,c){for(var p=c.child;p!==null;){if(p.tag===5||p.tag===6)a.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===c)break;for(;p.sibling===null;){if(p.return===null||p.return===c)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},Wf=function(){},D1=function(a,c,p,y){var b=a.memoizedProps;if(b!==y){a=c.stateNode,Bo(Qn.current);var T=null;switch(p){case"input":b=Ue(a,b),y=Ue(a,y),T=[];break;case"select":b=R({},b,{value:void 0}),y=R({},y,{value:void 0}),T=[];break;case"textarea":b=Ar(a,b),y=Ar(a,y),T=[];break;default:typeof b.onClick!="function"&&typeof y.onClick=="function"&&(a.onclick=Hc)}me(p,y);var M;p=null;for(nt in b)if(!y.hasOwnProperty(nt)&&b.hasOwnProperty(nt)&&b[nt]!=null)if(nt==="style"){var z=b[nt];for(M in z)z.hasOwnProperty(M)&&(p||(p={}),p[M]="")}else nt!=="dangerouslySetInnerHTML"&&nt!=="children"&&nt!=="suppressContentEditableWarning"&&nt!=="suppressHydrationWarning"&&nt!=="autoFocus"&&(i.hasOwnProperty(nt)?T||(T=[]):(T=T||[]).push(nt,null));for(nt in y){var V=y[nt];if(z=b!=null?b[nt]:void 0,y.hasOwnProperty(nt)&&V!==z&&(V!=null||z!=null))if(nt==="style")if(z){for(M in z)!z.hasOwnProperty(M)||V&&V.hasOwnProperty(M)||(p||(p={}),p[M]="");for(M in V)V.hasOwnProperty(M)&&z[M]!==V[M]&&(p||(p={}),p[M]=V[M])}else p||(T||(T=[]),T.push(nt,p)),p=V;else nt==="dangerouslySetInnerHTML"?(V=V?V.__html:void 0,z=z?z.__html:void 0,V!=null&&z!==V&&(T=T||[]).push(nt,V)):nt==="children"?typeof V!="string"&&typeof V!="number"||(T=T||[]).push(nt,""+V):nt!=="suppressContentEditableWarning"&&nt!=="suppressHydrationWarning"&&(i.hasOwnProperty(nt)?(V!=null&&nt==="onScroll"&&Te("scroll",a),T||z===V||(T=[])):(T=T||[]).push(nt,V))}p&&(T=T||[]).push("style",p);var nt=T;(c.updateQueue=nt)&&(c.flags|=4)}},$1=function(a,c,p,y){p!==y&&(c.flags|=4)};function il(a,c){if(!Be)switch(a.tailMode){case"hidden":c=a.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?a.tail=null:p.sibling=null;break;case"collapsed":p=a.tail;for(var y=null;p!==null;)p.alternate!==null&&(y=p),p=p.sibling;y===null?c||a.tail===null?a.tail=null:a.tail.sibling=null:y.sibling=null}}function br(a){var c=a.alternate!==null&&a.alternate.child===a.child,p=0,y=0;if(c)for(var b=a.child;b!==null;)p|=b.lanes|b.childLanes,y|=b.subtreeFlags&14680064,y|=b.flags&14680064,b.return=a,b=b.sibling;else for(b=a.child;b!==null;)p|=b.lanes|b.childLanes,y|=b.subtreeFlags,y|=b.flags,b.return=a,b=b.sibling;return a.subtreeFlags|=y,a.childLanes=p,c}function IF(a,c,p){var y=c.pendingProps;switch(hf(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return br(c),null;case 1:return Wr(c.type)&&Vc(),br(c),null;case 3:return y=c.stateNode,_a(),_e(qr),_e(Cr),Sf(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),(a===null||a.child===null)&&(Qc(c)?c.flags|=4:a===null||a.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,Fn!==null&&(tp(Fn),Fn=null))),Wf(a,c),br(c),null;case 5:vf(c);var b=Bo(Js.current);if(p=c.type,a!==null&&c.stateNode!=null)D1(a,c,p,y,b),a.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!y){if(c.stateNode===null)throw Error(r(166));return br(c),null}if(a=Bo(Qn.current),Qc(c)){y=c.stateNode,p=c.type;var T=c.memoizedProps;switch(y[Kn]=c,y[Gs]=T,a=(c.mode&1)!==0,p){case"dialog":Te("cancel",y),Te("close",y);break;case"iframe":case"object":case"embed":Te("load",y);break;case"video":case"audio":for(b=0;b<Us.length;b++)Te(Us[b],y);break;case"source":Te("error",y);break;case"img":case"image":case"link":Te("error",y),Te("load",y);break;case"details":Te("toggle",y);break;case"input":Ce(y,T),Te("invalid",y);break;case"select":y._wrapperState={wasMultiple:!!T.multiple},Te("invalid",y);break;case"textarea":Yn(y,T),Te("invalid",y)}me(p,T),b=null;for(var M in T)if(T.hasOwnProperty(M)){var z=T[M];M==="children"?typeof z=="string"?y.textContent!==z&&(T.suppressHydrationWarning!==!0&&Wc(y.textContent,z,a),b=["children",z]):typeof z=="number"&&y.textContent!==""+z&&(T.suppressHydrationWarning!==!0&&Wc(y.textContent,z,a),b=["children",""+z]):i.hasOwnProperty(M)&&z!=null&&M==="onScroll"&&Te("scroll",y)}switch(p){case"input":_t(y),Fe(y,T,!0);break;case"textarea":_t(y),Le(y);break;case"select":case"option":break;default:typeof T.onClick=="function"&&(y.onclick=Hc)}y=b,c.updateQueue=y,y!==null&&(c.flags|=4)}else{M=b.nodeType===9?b:b.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=ot(p)),a==="http://www.w3.org/1999/xhtml"?p==="script"?(a=M.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof y.is=="string"?a=M.createElement(p,{is:y.is}):(a=M.createElement(p),p==="select"&&(M=a,y.multiple?M.multiple=!0:y.size&&(M.size=y.size))):a=M.createElementNS(a,p),a[Kn]=c,a[Gs]=y,N1(a,c,!1,!1),c.stateNode=a;t:{switch(M=Ye(p,y),p){case"dialog":Te("cancel",a),Te("close",a),b=y;break;case"iframe":case"object":case"embed":Te("load",a),b=y;break;case"video":case"audio":for(b=0;b<Us.length;b++)Te(Us[b],a);b=y;break;case"source":Te("error",a),b=y;break;case"img":case"image":case"link":Te("error",a),Te("load",a),b=y;break;case"details":Te("toggle",a),b=y;break;case"input":Ce(a,y),b=Ue(a,y),Te("invalid",a);break;case"option":b=y;break;case"select":a._wrapperState={wasMultiple:!!y.multiple},b=R({},y,{value:void 0}),Te("invalid",a);break;case"textarea":Yn(a,y),b=Ar(a,y),Te("invalid",a);break;default:b=y}me(p,b),z=b;for(T in z)if(z.hasOwnProperty(T)){var V=z[T];T==="style"?qe(a,V):T==="dangerouslySetInnerHTML"?(V=V?V.__html:void 0,V!=null&&$t(a,V)):T==="children"?typeof V=="string"?(p!=="textarea"||V!=="")&&Xt(a,V):typeof V=="number"&&Xt(a,""+V):T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&T!=="autoFocus"&&(i.hasOwnProperty(T)?V!=null&&T==="onScroll"&&Te("scroll",a):V!=null&&_(a,T,V,M))}switch(p){case"input":_t(a),Fe(a,y,!1);break;case"textarea":_t(a),Le(a);break;case"option":y.value!=null&&a.setAttribute("value",""+St(y.value));break;case"select":a.multiple=!!y.multiple,T=y.value,T!=null?Br(a,!!y.multiple,T,!1):y.defaultValue!=null&&Br(a,!!y.multiple,y.defaultValue,!0);break;default:typeof b.onClick=="function"&&(a.onclick=Hc)}switch(p){case"button":case"input":case"select":case"textarea":y=!!y.autoFocus;break t;case"img":y=!0;break t;default:y=!1}}y&&(c.flags|=4)}c.ref!==null&&(c.flags|=512,c.flags|=2097152)}return br(c),null;case 6:if(a&&c.stateNode!=null)$1(a,c,a.memoizedProps,y);else{if(typeof y!="string"&&c.stateNode===null)throw Error(r(166));if(p=Bo(Js.current),Bo(Qn.current),Qc(c)){if(y=c.stateNode,p=c.memoizedProps,y[Kn]=c,(T=y.nodeValue!==p)&&(a=nn,a!==null))switch(a.tag){case 3:Wc(y.nodeValue,p,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&Wc(y.nodeValue,p,(a.mode&1)!==0)}T&&(c.flags|=4)}else y=(p.nodeType===9?p:p.ownerDocument).createTextNode(y),y[Kn]=c,c.stateNode=y}return br(c),null;case 13:if(_e(Me),y=c.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(Be&&on!==null&&(c.mode&1)!==0&&(c.flags&128)===0)q0(),va(),c.flags|=98560,T=!1;else if(T=Qc(c),y!==null&&y.dehydrated!==null){if(a===null){if(!T)throw Error(r(318));if(T=c.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(r(317));T[Kn]=c}else va(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;br(c),T=!1}else Fn!==null&&(tp(Fn),Fn=null),T=!0;if(!T)return c.flags&65536?c:null}return(c.flags&128)!==0?(c.lanes=p,c):(y=y!==null,y!==(a!==null&&a.memoizedState!==null)&&y&&(c.child.flags|=8192,(c.mode&1)!==0&&(a===null||(Me.current&1)!==0?tr===0&&(tr=3):np())),c.updateQueue!==null&&(c.flags|=4),br(c),null);case 4:return _a(),Wf(a,c),a===null&&Vs(c.stateNode.containerInfo),br(c),null;case 10:return yf(c.type._context),br(c),null;case 17:return Wr(c.type)&&Vc(),br(c),null;case 19:if(_e(Me),T=c.memoizedState,T===null)return br(c),null;if(y=(c.flags&128)!==0,M=T.rendering,M===null)if(y)il(T,!1);else{if(tr!==0||a!==null&&(a.flags&128)!==0)for(a=c.child;a!==null;){if(M=nu(a),M!==null){for(c.flags|=128,il(T,!1),y=M.updateQueue,y!==null&&(c.updateQueue=y,c.flags|=4),c.subtreeFlags=0,y=p,p=c.child;p!==null;)T=p,a=y,T.flags&=14680066,M=T.alternate,M===null?(T.childLanes=0,T.lanes=a,T.child=null,T.subtreeFlags=0,T.memoizedProps=null,T.memoizedState=null,T.updateQueue=null,T.dependencies=null,T.stateNode=null):(T.childLanes=M.childLanes,T.lanes=M.lanes,T.child=M.child,T.subtreeFlags=0,T.deletions=null,T.memoizedProps=M.memoizedProps,T.memoizedState=M.memoizedState,T.updateQueue=M.updateQueue,T.type=M.type,a=M.dependencies,T.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),p=p.sibling;return ve(Me,Me.current&1|2),c.child}a=a.sibling}T.tail!==null&&Jt()>Aa&&(c.flags|=128,y=!0,il(T,!1),c.lanes=4194304)}else{if(!y)if(a=nu(M),a!==null){if(c.flags|=128,y=!0,p=a.updateQueue,p!==null&&(c.updateQueue=p,c.flags|=4),il(T,!0),T.tail===null&&T.tailMode==="hidden"&&!M.alternate&&!Be)return br(c),null}else 2*Jt()-T.renderingStartTime>Aa&&p!==1073741824&&(c.flags|=128,y=!0,il(T,!1),c.lanes=4194304);T.isBackwards?(M.sibling=c.child,c.child=M):(p=T.last,p!==null?p.sibling=M:c.child=M,T.last=M)}return T.tail!==null?(c=T.tail,T.rendering=c,T.tail=c.sibling,T.renderingStartTime=Jt(),c.sibling=null,p=Me.current,ve(Me,y?p&1|2:p&1),c):(br(c),null);case 22:case 23:return rp(),y=c.memoizedState!==null,a!==null&&a.memoizedState!==null!==y&&(c.flags|=8192),y&&(c.mode&1)!==0?(an&1073741824)!==0&&(br(c),c.subtreeFlags&6&&(c.flags|=8192)):br(c),null;case 24:return null;case 25:return null}throw Error(r(156,c.tag))}function MF(a,c){switch(hf(c),c.tag){case 1:return Wr(c.type)&&Vc(),a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 3:return _a(),_e(qr),_e(Cr),Sf(),a=c.flags,(a&65536)!==0&&(a&128)===0?(c.flags=a&-65537|128,c):null;case 5:return vf(c),null;case 13:if(_e(Me),a=c.memoizedState,a!==null&&a.dehydrated!==null){if(c.alternate===null)throw Error(r(340));va()}return a=c.flags,a&65536?(c.flags=a&-65537|128,c):null;case 19:return _e(Me),null;case 4:return _a(),null;case 10:return yf(c.type._context),null;case 22:case 23:return rp(),null;case 24:return null;default:return null}}var du=!1,vr=!1,OF=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function La(a,c){var p=a.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(y){De(a,c,y)}else p.current=null}function Hf(a,c,p){try{p()}catch(y){De(a,c,y)}}var j1=!1;function RF(a,c){if(ef=Ic,a=x0(),Yd(a)){if("selectionStart"in a)var p={start:a.selectionStart,end:a.selectionEnd};else t:{p=(p=a.ownerDocument)&&p.defaultView||window;var y=p.getSelection&&p.getSelection();if(y&&y.rangeCount!==0){p=y.anchorNode;var b=y.anchorOffset,T=y.focusNode;y=y.focusOffset;try{p.nodeType,T.nodeType}catch{p=null;break t}var M=0,z=-1,V=-1,nt=0,ft=0,pt=a,dt=null;e:for(;;){for(var bt;pt!==p||b!==0&&pt.nodeType!==3||(z=M+b),pt!==T||y!==0&&pt.nodeType!==3||(V=M+y),pt.nodeType===3&&(M+=pt.nodeValue.length),(bt=pt.firstChild)!==null;)dt=pt,pt=bt;for(;;){if(pt===a)break e;if(dt===p&&++nt===b&&(z=M),dt===T&&++ft===y&&(V=M),(bt=pt.nextSibling)!==null)break;pt=dt,dt=pt.parentNode}pt=bt}p=z===-1||V===-1?null:{start:z,end:V}}else p=null}p=p||{start:0,end:0}}else p=null;for(rf={focusedElem:a,selectionRange:p},Ic=!1,Tt=c;Tt!==null;)if(c=Tt,a=c.child,(c.subtreeFlags&1028)!==0&&a!==null)a.return=c,Tt=a;else for(;Tt!==null;){c=Tt;try{var Et=c.alternate;if((c.flags&1024)!==0)switch(c.tag){case 0:case 11:case 15:break;case 1:if(Et!==null){var At=Et.memoizedProps,We=Et.memoizedState,et=c.stateNode,X=et.getSnapshotBeforeUpdate(c.elementType===c.type?At:In(c.type,At),We);et.__reactInternalSnapshotBeforeUpdate=X}break;case 3:var rt=c.stateNode.containerInfo;rt.nodeType===1?rt.textContent="":rt.nodeType===9&&rt.documentElement&&rt.removeChild(rt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Ct){De(c,c.return,Ct)}if(a=c.sibling,a!==null){a.return=c.return,Tt=a;break}Tt=c.return}return Et=j1,j1=!1,Et}function ol(a,c,p){var y=c.updateQueue;if(y=y!==null?y.lastEffect:null,y!==null){var b=y=y.next;do{if((b.tag&a)===a){var T=b.destroy;b.destroy=void 0,T!==void 0&&Hf(c,p,T)}b=b.next}while(b!==y)}}function fu(a,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&a)===a){var y=p.create;p.destroy=y()}p=p.next}while(p!==c)}}function Uf(a){var c=a.ref;if(c!==null){var p=a.stateNode;switch(a.tag){case 5:a=p;break;default:a=p}typeof c=="function"?c(a):c.current=a}}function z1(a){var c=a.alternate;c!==null&&(a.alternate=null,z1(c)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(c=a.stateNode,c!==null&&(delete c[Kn],delete c[Gs],delete c[sf],delete c[yF],delete c[xF])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function q1(a){return a.tag===5||a.tag===3||a.tag===4}function W1(a){t:for(;;){for(;a.sibling===null;){if(a.return===null||q1(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue t;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Vf(a,c,p){var y=a.tag;if(y===5||y===6)a=a.stateNode,c?p.nodeType===8?p.parentNode.insertBefore(a,c):p.insertBefore(a,c):(p.nodeType===8?(c=p.parentNode,c.insertBefore(a,p)):(c=p,c.appendChild(a)),p=p._reactRootContainer,p!=null||c.onclick!==null||(c.onclick=Hc));else if(y!==4&&(a=a.child,a!==null))for(Vf(a,c,p),a=a.sibling;a!==null;)Vf(a,c,p),a=a.sibling}function Yf(a,c,p){var y=a.tag;if(y===5||y===6)a=a.stateNode,c?p.insertBefore(a,c):p.appendChild(a);else if(y!==4&&(a=a.child,a!==null))for(Yf(a,c,p),a=a.sibling;a!==null;)Yf(a,c,p),a=a.sibling}var hr=null,Mn=!1;function Ki(a,c,p){for(p=p.child;p!==null;)H1(a,c,p),p=p.sibling}function H1(a,c,p){if(en&&typeof en.onCommitFiberUnmount=="function")try{en.onCommitFiberUnmount(wo,p)}catch{}switch(p.tag){case 5:vr||La(p,c);case 6:var y=hr,b=Mn;hr=null,Ki(a,c,p),hr=y,Mn=b,hr!==null&&(Mn?(a=hr,p=p.stateNode,a.nodeType===8?a.parentNode.removeChild(p):a.removeChild(p)):hr.removeChild(p.stateNode));break;case 18:hr!==null&&(Mn?(a=hr,p=p.stateNode,a.nodeType===8?af(a.parentNode,p):a.nodeType===1&&af(a,p),Ns(a)):af(hr,p.stateNode));break;case 4:y=hr,b=Mn,hr=p.stateNode.containerInfo,Mn=!0,Ki(a,c,p),hr=y,Mn=b;break;case 0:case 11:case 14:case 15:if(!vr&&(y=p.updateQueue,y!==null&&(y=y.lastEffect,y!==null))){b=y=y.next;do{var T=b,M=T.destroy;T=T.tag,M!==void 0&&((T&2)!==0||(T&4)!==0)&&Hf(p,c,M),b=b.next}while(b!==y)}Ki(a,c,p);break;case 1:if(!vr&&(La(p,c),y=p.stateNode,typeof y.componentWillUnmount=="function"))try{y.props=p.memoizedProps,y.state=p.memoizedState,y.componentWillUnmount()}catch(z){De(p,c,z)}Ki(a,c,p);break;case 21:Ki(a,c,p);break;case 22:p.mode&1?(vr=(y=vr)||p.memoizedState!==null,Ki(a,c,p),vr=y):Ki(a,c,p);break;default:Ki(a,c,p)}}function U1(a){var c=a.updateQueue;if(c!==null){a.updateQueue=null;var p=a.stateNode;p===null&&(p=a.stateNode=new OF),c.forEach(function(y){var b=HF.bind(null,a,y);p.has(y)||(p.add(y),y.then(b,b))})}}function On(a,c){var p=c.deletions;if(p!==null)for(var y=0;y<p.length;y++){var b=p[y];try{var T=a,M=c,z=M;t:for(;z!==null;){switch(z.tag){case 5:hr=z.stateNode,Mn=!1;break t;case 3:hr=z.stateNode.containerInfo,Mn=!0;break t;case 4:hr=z.stateNode.containerInfo,Mn=!0;break t}z=z.return}if(hr===null)throw Error(r(160));H1(T,M,b),hr=null,Mn=!1;var V=b.alternate;V!==null&&(V.return=null),b.return=null}catch(nt){De(b,c,nt)}}if(c.subtreeFlags&12854)for(c=c.child;c!==null;)V1(c,a),c=c.sibling}function V1(a,c){var p=a.alternate,y=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(On(c,a),Jn(a),y&4){try{ol(3,a,a.return),fu(3,a)}catch(At){De(a,a.return,At)}try{ol(5,a,a.return)}catch(At){De(a,a.return,At)}}break;case 1:On(c,a),Jn(a),y&512&&p!==null&&La(p,p.return);break;case 5:if(On(c,a),Jn(a),y&512&&p!==null&&La(p,p.return),a.flags&32){var b=a.stateNode;try{Xt(b,"")}catch(At){De(a,a.return,At)}}if(y&4&&(b=a.stateNode,b!=null)){var T=a.memoizedProps,M=p!==null?p.memoizedProps:T,z=a.type,V=a.updateQueue;if(a.updateQueue=null,V!==null)try{z==="input"&&T.type==="radio"&&T.name!=null&&je(b,T),Ye(z,M);var nt=Ye(z,T);for(M=0;M<V.length;M+=2){var ft=V[M],pt=V[M+1];ft==="style"?qe(b,pt):ft==="dangerouslySetInnerHTML"?$t(b,pt):ft==="children"?Xt(b,pt):_(b,ft,pt,nt)}switch(z){case"input":jr(b,T);break;case"textarea":mr(b,T);break;case"select":var dt=b._wrapperState.wasMultiple;b._wrapperState.wasMultiple=!!T.multiple;var bt=T.value;bt!=null?Br(b,!!T.multiple,bt,!1):dt!==!!T.multiple&&(T.defaultValue!=null?Br(b,!!T.multiple,T.defaultValue,!0):Br(b,!!T.multiple,T.multiple?[]:"",!1))}b[Gs]=T}catch(At){De(a,a.return,At)}}break;case 6:if(On(c,a),Jn(a),y&4){if(a.stateNode===null)throw Error(r(162));b=a.stateNode,T=a.memoizedProps;try{b.nodeValue=T}catch(At){De(a,a.return,At)}}break;case 3:if(On(c,a),Jn(a),y&4&&p!==null&&p.memoizedState.isDehydrated)try{Ns(c.containerInfo)}catch(At){De(a,a.return,At)}break;case 4:On(c,a),Jn(a);break;case 13:On(c,a),Jn(a),b=a.child,b.flags&8192&&(T=b.memoizedState!==null,b.stateNode.isHidden=T,!T||b.alternate!==null&&b.alternate.memoizedState!==null||(Kf=Jt())),y&4&&U1(a);break;case 22:if(ft=p!==null&&p.memoizedState!==null,a.mode&1?(vr=(nt=vr)||ft,On(c,a),vr=nt):On(c,a),Jn(a),y&8192){if(nt=a.memoizedState!==null,(a.stateNode.isHidden=nt)&&!ft&&(a.mode&1)!==0)for(Tt=a,ft=a.child;ft!==null;){for(pt=Tt=ft;Tt!==null;){switch(dt=Tt,bt=dt.child,dt.tag){case 0:case 11:case 14:case 15:ol(4,dt,dt.return);break;case 1:La(dt,dt.return);var Et=dt.stateNode;if(typeof Et.componentWillUnmount=="function"){y=dt,p=dt.return;try{c=y,Et.props=c.memoizedProps,Et.state=c.memoizedState,Et.componentWillUnmount()}catch(At){De(y,p,At)}}break;case 5:La(dt,dt.return);break;case 22:if(dt.memoizedState!==null){X1(pt);continue}}bt!==null?(bt.return=dt,Tt=bt):X1(pt)}ft=ft.sibling}t:for(ft=null,pt=a;;){if(pt.tag===5){if(ft===null){ft=pt;try{b=pt.stateNode,nt?(T=b.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none"):(z=pt.stateNode,V=pt.memoizedProps.style,M=V!=null&&V.hasOwnProperty("display")?V.display:null,z.style.display=Ie("display",M))}catch(At){De(a,a.return,At)}}}else if(pt.tag===6){if(ft===null)try{pt.stateNode.nodeValue=nt?"":pt.memoizedProps}catch(At){De(a,a.return,At)}}else if((pt.tag!==22&&pt.tag!==23||pt.memoizedState===null||pt===a)&&pt.child!==null){pt.child.return=pt,pt=pt.child;continue}if(pt===a)break t;for(;pt.sibling===null;){if(pt.return===null||pt.return===a)break t;ft===pt&&(ft=null),pt=pt.return}ft===pt&&(ft=null),pt.sibling.return=pt.return,pt=pt.sibling}}break;case 19:On(c,a),Jn(a),y&4&&U1(a);break;case 21:break;default:On(c,a),Jn(a)}}function Jn(a){var c=a.flags;if(c&2){try{t:{for(var p=a.return;p!==null;){if(q1(p)){var y=p;break t}p=p.return}throw Error(r(160))}switch(y.tag){case 5:var b=y.stateNode;y.flags&32&&(Xt(b,""),y.flags&=-33);var T=W1(a);Yf(a,T,b);break;case 3:case 4:var M=y.stateNode.containerInfo,z=W1(a);Vf(a,z,M);break;default:throw Error(r(161))}}catch(V){De(a,a.return,V)}a.flags&=-3}c&4096&&(a.flags&=-4097)}function PF(a,c,p){Tt=a,Y1(a)}function Y1(a,c,p){for(var y=(a.mode&1)!==0;Tt!==null;){var b=Tt,T=b.child;if(b.tag===22&&y){var M=b.memoizedState!==null||du;if(!M){var z=b.alternate,V=z!==null&&z.memoizedState!==null||vr;z=du;var nt=vr;if(du=M,(vr=V)&&!nt)for(Tt=b;Tt!==null;)M=Tt,V=M.child,M.tag===22&&M.memoizedState!==null?K1(b):V!==null?(V.return=M,Tt=V):K1(b);for(;T!==null;)Tt=T,Y1(T),T=T.sibling;Tt=b,du=z,vr=nt}G1(a)}else(b.subtreeFlags&8772)!==0&&T!==null?(T.return=b,Tt=T):G1(a)}}function G1(a){for(;Tt!==null;){var c=Tt;if((c.flags&8772)!==0){var p=c.alternate;try{if((c.flags&8772)!==0)switch(c.tag){case 0:case 11:case 15:vr||fu(5,c);break;case 1:var y=c.stateNode;if(c.flags&4&&!vr)if(p===null)y.componentDidMount();else{var b=c.elementType===c.type?p.memoizedProps:In(c.type,p.memoizedProps);y.componentDidUpdate(b,p.memoizedState,y.__reactInternalSnapshotBeforeUpdate)}var T=c.updateQueue;T!==null&&X0(c,T,y);break;case 3:var M=c.updateQueue;if(M!==null){if(p=null,c.child!==null)switch(c.child.tag){case 5:p=c.child.stateNode;break;case 1:p=c.child.stateNode}X0(c,M,p)}break;case 5:var z=c.stateNode;if(p===null&&c.flags&4){p=z;var V=c.memoizedProps;switch(c.type){case"button":case"input":case"select":case"textarea":V.autoFocus&&p.focus();break;case"img":V.src&&(p.src=V.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(c.memoizedState===null){var nt=c.alternate;if(nt!==null){var ft=nt.memoizedState;if(ft!==null){var pt=ft.dehydrated;pt!==null&&Ns(pt)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}vr||c.flags&512&&Uf(c)}catch(dt){De(c,c.return,dt)}}if(c===a){Tt=null;break}if(p=c.sibling,p!==null){p.return=c.return,Tt=p;break}Tt=c.return}}function X1(a){for(;Tt!==null;){var c=Tt;if(c===a){Tt=null;break}var p=c.sibling;if(p!==null){p.return=c.return,Tt=p;break}Tt=c.return}}function K1(a){for(;Tt!==null;){var c=Tt;try{switch(c.tag){case 0:case 11:case 15:var p=c.return;try{fu(4,c)}catch(V){De(c,p,V)}break;case 1:var y=c.stateNode;if(typeof y.componentDidMount=="function"){var b=c.return;try{y.componentDidMount()}catch(V){De(c,b,V)}}var T=c.return;try{Uf(c)}catch(V){De(c,T,V)}break;case 5:var M=c.return;try{Uf(c)}catch(V){De(c,M,V)}}}catch(V){De(c,c.return,V)}if(c===a){Tt=null;break}var z=c.sibling;if(z!==null){z.return=c.return,Tt=z;break}Tt=c.return}}var NF=Math.ceil,pu=A.ReactCurrentDispatcher,Gf=A.ReactCurrentOwner,kn=A.ReactCurrentBatchConfig,le=0,ar=null,Xe=null,dr=0,an=0,Ba=Ui(0),tr=0,al=null,Fo=0,gu=0,Xf=0,sl=null,Ur=null,Kf=0,Aa=1/0,vi=null,mu=!1,Qf=null,Qi=null,yu=!1,Zi=null,xu=0,ll=0,Zf=null,Cu=-1,ku=0;function Ir(){return(le&6)!==0?Jt():Cu!==-1?Cu:Cu=Jt()}function Ji(a){return(a.mode&1)===0?1:(le&2)!==0&&dr!==0?dr&-dr:kF.transition!==null?(ku===0&&(ku=Wx()),ku):(a=fe,a!==0||(a=window.event,a=a===void 0?16:Zx(a.type)),a)}function Rn(a,c,p,y){if(50<ll)throw ll=0,Zf=null,Error(r(185));Is(a,p,y),((le&2)===0||a!==ar)&&(a===ar&&((le&2)===0&&(gu|=p),tr===4&&to(a,dr)),Vr(a,y),p===1&&le===0&&(c.mode&1)===0&&(Aa=Jt()+500,Gc&&Yi()))}function Vr(a,c){var p=a.callbackNode;kA(a,c);var y=Bc(a,a===ar?dr:0);if(y===0)p!==null&>(p),a.callbackNode=null,a.callbackPriority=0;else if(c=y&-y,a.callbackPriority!==c){if(p!=null&>(p),c===1)a.tag===0?CF(Z1.bind(null,a)):N0(Z1.bind(null,a)),gF(function(){(le&6)===0&&Yi()}),p=null;else{switch(Hx(y)){case 1:p=ir;break;case 4:p=gn;break;case 16:p=Ln;break;case 536870912:p=Ge;break;default:p=Ln}p=aC(p,Q1.bind(null,a))}a.callbackPriority=c,a.callbackNode=p}}function Q1(a,c){if(Cu=-1,ku=0,(le&6)!==0)throw Error(r(327));var p=a.callbackNode;if(Fa()&&a.callbackNode!==p)return null;var y=Bc(a,a===ar?dr:0);if(y===0)return null;if((y&30)!==0||(y&a.expiredLanes)!==0||c)c=bu(a,y);else{c=y;var b=le;le|=2;var T=tC();(ar!==a||dr!==c)&&(vi=null,Aa=Jt()+500,Mo(a,c));do try{jF();break}catch(z){J1(a,z)}while(!0);mf(),pu.current=T,le=b,Xe!==null?c=0:(ar=null,dr=0,c=tr)}if(c!==0){if(c===2&&(b=Fd(a),b!==0&&(y=b,c=Jf(a,b))),c===1)throw p=al,Mo(a,0),to(a,y),Vr(a,Jt()),p;if(c===6)to(a,y);else{if(b=a.current.alternate,(y&30)===0&&!DF(b)&&(c=bu(a,y),c===2&&(T=Fd(a),T!==0&&(y=T,c=Jf(a,T))),c===1))throw p=al,Mo(a,0),to(a,y),Vr(a,Jt()),p;switch(a.finishedWork=b,a.finishedLanes=y,c){case 0:case 1:throw Error(r(345));case 2:Oo(a,Ur,vi);break;case 3:if(to(a,y),(y&130023424)===y&&(c=Kf+500-Jt(),10<c)){if(Bc(a,0)!==0)break;if(b=a.suspendedLanes,(b&y)!==y){Ir(),a.pingedLanes|=a.suspendedLanes&b;break}a.timeoutHandle=of(Oo.bind(null,a,Ur,vi),c);break}Oo(a,Ur,vi);break;case 4:if(to(a,y),(y&4194240)===y)break;for(c=a.eventTimes,b=-1;0<y;){var M=31-Bn(y);T=1<<M,M=c[M],M>b&&(b=M),y&=~T}if(y=b,y=Jt()-y,y=(120>y?120:480>y?480:1080>y?1080:1920>y?1920:3e3>y?3e3:4320>y?4320:1960*NF(y/1960))-y,10<y){a.timeoutHandle=of(Oo.bind(null,a,Ur,vi),y);break}Oo(a,Ur,vi);break;case 5:Oo(a,Ur,vi);break;default:throw Error(r(329))}}}return Vr(a,Jt()),a.callbackNode===p?Q1.bind(null,a):null}function Jf(a,c){var p=sl;return a.current.memoizedState.isDehydrated&&(Mo(a,c).flags|=256),a=bu(a,c),a!==2&&(c=Ur,Ur=p,c!==null&&tp(c)),a}function tp(a){Ur===null?Ur=a:Ur.push.apply(Ur,a)}function DF(a){for(var c=a;;){if(c.flags&16384){var p=c.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var y=0;y<p.length;y++){var b=p[y],T=b.getSnapshot;b=b.value;try{if(!An(T(),b))return!1}catch{return!1}}}if(p=c.child,c.subtreeFlags&16384&&p!==null)p.return=c,c=p;else{if(c===a)break;for(;c.sibling===null;){if(c.return===null||c.return===a)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function to(a,c){for(c&=~Xf,c&=~gu,a.suspendedLanes|=c,a.pingedLanes&=~c,a=a.expirationTimes;0<c;){var p=31-Bn(c),y=1<<p;a[p]=-1,c&=~y}}function Z1(a){if((le&6)!==0)throw Error(r(327));Fa();var c=Bc(a,0);if((c&1)===0)return Vr(a,Jt()),null;var p=bu(a,c);if(a.tag!==0&&p===2){var y=Fd(a);y!==0&&(c=y,p=Jf(a,y))}if(p===1)throw p=al,Mo(a,0),to(a,c),Vr(a,Jt()),p;if(p===6)throw Error(r(345));return a.finishedWork=a.current.alternate,a.finishedLanes=c,Oo(a,Ur,vi),Vr(a,Jt()),null}function ep(a,c){var p=le;le|=1;try{return a(c)}finally{le=p,le===0&&(Aa=Jt()+500,Gc&&Yi())}}function Io(a){Zi!==null&&Zi.tag===0&&(le&6)===0&&Fa();var c=le;le|=1;var p=kn.transition,y=fe;try{if(kn.transition=null,fe=1,a)return a()}finally{fe=y,kn.transition=p,le=c,(le&6)===0&&Yi()}}function rp(){an=Ba.current,_e(Ba)}function Mo(a,c){a.finishedWork=null,a.finishedLanes=0;var p=a.timeoutHandle;if(p!==-1&&(a.timeoutHandle=-1,pF(p)),Xe!==null)for(p=Xe.return;p!==null;){var y=p;switch(hf(y),y.tag){case 1:y=y.type.childContextTypes,y!=null&&Vc();break;case 3:_a(),_e(qr),_e(Cr),Sf();break;case 5:vf(y);break;case 4:_a();break;case 13:_e(Me);break;case 19:_e(Me);break;case 10:yf(y.type._context);break;case 22:case 23:rp()}p=p.return}if(ar=a,Xe=a=eo(a.current,null),dr=an=c,tr=0,al=null,Xf=gu=Fo=0,Ur=sl=null,Lo!==null){for(c=0;c<Lo.length;c++)if(p=Lo[c],y=p.interleaved,y!==null){p.interleaved=null;var b=y.next,T=p.pending;if(T!==null){var M=T.next;T.next=b,y.next=M}p.pending=y}Lo=null}return a}function J1(a,c){do{var p=Xe;try{if(mf(),iu.current=lu,ou){for(var y=Oe.memoizedState;y!==null;){var b=y.queue;b!==null&&(b.pending=null),y=y.next}ou=!1}if(Ao=0,or=Je=Oe=null,tl=!1,el=0,Gf.current=null,p===null||p.return===null){tr=1,al=c,Xe=null;break}t:{var T=a,M=p.return,z=p,V=c;if(c=dr,z.flags|=32768,V!==null&&typeof V=="object"&&typeof V.then=="function"){var nt=V,ft=z,pt=ft.tag;if((ft.mode&1)===0&&(pt===0||pt===11||pt===15)){var dt=ft.alternate;dt?(ft.updateQueue=dt.updateQueue,ft.memoizedState=dt.memoizedState,ft.lanes=dt.lanes):(ft.updateQueue=null,ft.memoizedState=null)}var bt=S1(M);if(bt!==null){bt.flags&=-257,T1(bt,M,z,T,c),bt.mode&1&&w1(T,nt,c),c=bt,V=nt;var Et=c.updateQueue;if(Et===null){var At=new Set;At.add(V),c.updateQueue=At}else Et.add(V);break t}else{if((c&1)===0){w1(T,nt,c),np();break t}V=Error(r(426))}}else if(Be&&z.mode&1){var We=S1(M);if(We!==null){(We.flags&65536)===0&&(We.flags|=256),T1(We,M,z,T,c),pf(Ea(V,z));break t}}T=V=Ea(V,z),tr!==4&&(tr=2),sl===null?sl=[T]:sl.push(T),T=M;do{switch(T.tag){case 3:T.flags|=65536,c&=-c,T.lanes|=c;var et=b1(T,V,c);G0(T,et);break t;case 1:z=V;var X=T.type,rt=T.stateNode;if((T.flags&128)===0&&(typeof X.getDerivedStateFromError=="function"||rt!==null&&typeof rt.componentDidCatch=="function"&&(Qi===null||!Qi.has(rt)))){T.flags|=65536,c&=-c,T.lanes|=c;var Ct=v1(T,z,c);G0(T,Ct);break t}}T=T.return}while(T!==null)}rC(p)}catch(Ot){c=Ot,Xe===p&&p!==null&&(Xe=p=p.return);continue}break}while(!0)}function tC(){var a=pu.current;return pu.current=lu,a===null?lu:a}function np(){(tr===0||tr===3||tr===2)&&(tr=4),ar===null||(Fo&268435455)===0&&(gu&268435455)===0||to(ar,dr)}function bu(a,c){var p=le;le|=2;var y=tC();(ar!==a||dr!==c)&&(vi=null,Mo(a,c));do try{$F();break}catch(b){J1(a,b)}while(!0);if(mf(),le=p,pu.current=y,Xe!==null)throw Error(r(261));return ar=null,dr=0,tr}function $F(){for(;Xe!==null;)eC(Xe)}function jF(){for(;Xe!==null&&!Lt();)eC(Xe)}function eC(a){var c=oC(a.alternate,a,an);a.memoizedProps=a.pendingProps,c===null?rC(a):Xe=c,Gf.current=null}function rC(a){var c=a;do{var p=c.alternate;if(a=c.return,(c.flags&32768)===0){if(p=IF(p,c,an),p!==null){Xe=p;return}}else{if(p=MF(p,c),p!==null){p.flags&=32767,Xe=p;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{tr=6,Xe=null;return}}if(c=c.sibling,c!==null){Xe=c;return}Xe=c=a}while(c!==null);tr===0&&(tr=5)}function Oo(a,c,p){var y=fe,b=kn.transition;try{kn.transition=null,fe=1,zF(a,c,p,y)}finally{kn.transition=b,fe=y}return null}function zF(a,c,p,y){do Fa();while(Zi!==null);if((le&6)!==0)throw Error(r(327));p=a.finishedWork;var b=a.finishedLanes;if(p===null)return null;if(a.finishedWork=null,a.finishedLanes=0,p===a.current)throw Error(r(177));a.callbackNode=null,a.callbackPriority=0;var T=p.lanes|p.childLanes;if(bA(a,T),a===ar&&(Xe=ar=null,dr=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||yu||(yu=!0,aC(Ln,function(){return Fa(),null})),T=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||T){T=kn.transition,kn.transition=null;var M=fe;fe=1;var z=le;le|=4,Gf.current=null,RF(a,p),V1(p,a),sF(rf),Ic=!!ef,rf=ef=null,a.current=p,PF(p),be(),le=z,fe=M,kn.transition=T}else a.current=p;if(yu&&(yu=!1,Zi=a,xu=b),T=a.pendingLanes,T===0&&(Qi=null),gA(p.stateNode),Vr(a,Jt()),c!==null)for(y=a.onRecoverableError,p=0;p<c.length;p++)b=c[p],y(b.value,{componentStack:b.stack,digest:b.digest});if(mu)throw mu=!1,a=Qf,Qf=null,a;return(xu&1)!==0&&a.tag!==0&&Fa(),T=a.pendingLanes,(T&1)!==0?a===Zf?ll++:(ll=0,Zf=a):ll=0,Yi(),null}function Fa(){if(Zi!==null){var a=Hx(xu),c=kn.transition,p=fe;try{if(kn.transition=null,fe=16>a?16:a,Zi===null)var y=!1;else{if(a=Zi,Zi=null,xu=0,(le&6)!==0)throw Error(r(331));var b=le;for(le|=4,Tt=a.current;Tt!==null;){var T=Tt,M=T.child;if((Tt.flags&16)!==0){var z=T.deletions;if(z!==null){for(var V=0;V<z.length;V++){var nt=z[V];for(Tt=nt;Tt!==null;){var ft=Tt;switch(ft.tag){case 0:case 11:case 15:ol(8,ft,T)}var pt=ft.child;if(pt!==null)pt.return=ft,Tt=pt;else for(;Tt!==null;){ft=Tt;var dt=ft.sibling,bt=ft.return;if(z1(ft),ft===nt){Tt=null;break}if(dt!==null){dt.return=bt,Tt=dt;break}Tt=bt}}}var Et=T.alternate;if(Et!==null){var At=Et.child;if(At!==null){Et.child=null;do{var We=At.sibling;At.sibling=null,At=We}while(At!==null)}}Tt=T}}if((T.subtreeFlags&2064)!==0&&M!==null)M.return=T,Tt=M;else t:for(;Tt!==null;){if(T=Tt,(T.flags&2048)!==0)switch(T.tag){case 0:case 11:case 15:ol(9,T,T.return)}var et=T.sibling;if(et!==null){et.return=T.return,Tt=et;break t}Tt=T.return}}var X=a.current;for(Tt=X;Tt!==null;){M=Tt;var rt=M.child;if((M.subtreeFlags&2064)!==0&&rt!==null)rt.return=M,Tt=rt;else t:for(M=X;Tt!==null;){if(z=Tt,(z.flags&2048)!==0)try{switch(z.tag){case 0:case 11:case 15:fu(9,z)}}catch(Ot){De(z,z.return,Ot)}if(z===M){Tt=null;break t}var Ct=z.sibling;if(Ct!==null){Ct.return=z.return,Tt=Ct;break t}Tt=z.return}}if(le=b,Yi(),en&&typeof en.onPostCommitFiberRoot=="function")try{en.onPostCommitFiberRoot(wo,a)}catch{}y=!0}return y}finally{fe=p,kn.transition=c}}return!1}function nC(a,c,p){c=Ea(p,c),c=b1(a,c,1),a=Xi(a,c,1),c=Ir(),a!==null&&(Is(a,1,c),Vr(a,c))}function De(a,c,p){if(a.tag===3)nC(a,a,p);else for(;c!==null;){if(c.tag===3){nC(c,a,p);break}else if(c.tag===1){var y=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(Qi===null||!Qi.has(y))){a=Ea(p,a),a=v1(c,a,1),c=Xi(c,a,1),a=Ir(),c!==null&&(Is(c,1,a),Vr(c,a));break}}c=c.return}}function qF(a,c,p){var y=a.pingCache;y!==null&&y.delete(c),c=Ir(),a.pingedLanes|=a.suspendedLanes&p,ar===a&&(dr&p)===p&&(tr===4||tr===3&&(dr&130023424)===dr&&500>Jt()-Kf?Mo(a,0):Xf|=p),Vr(a,c)}function iC(a,c){c===0&&((a.mode&1)===0?c=1:(c=Lc,Lc<<=1,(Lc&130023424)===0&&(Lc=4194304)));var p=Ir();a=Ci(a,c),a!==null&&(Is(a,c,p),Vr(a,p))}function WF(a){var c=a.memoizedState,p=0;c!==null&&(p=c.retryLane),iC(a,p)}function HF(a,c){var p=0;switch(a.tag){case 13:var y=a.stateNode,b=a.memoizedState;b!==null&&(p=b.retryLane);break;case 19:y=a.stateNode;break;default:throw Error(r(314))}y!==null&&y.delete(c),iC(a,p)}var oC;oC=function(a,c,p){if(a!==null)if(a.memoizedProps!==c.pendingProps||qr.current)Hr=!0;else{if((a.lanes&p)===0&&(c.flags&128)===0)return Hr=!1,FF(a,c,p);Hr=(a.flags&131072)!==0}else Hr=!1,Be&&(c.flags&1048576)!==0&&D0(c,Kc,c.index);switch(c.lanes=0,c.tag){case 2:var y=c.type;hu(a,c),a=c.pendingProps;var b=Ca(c,Cr.current);Ta(c,p),b=Ef(null,c,y,a,b,p);var T=Lf();return c.flags|=1,typeof b=="object"&&b!==null&&typeof b.render=="function"&&b.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,Wr(y)?(T=!0,Yc(c)):T=!1,c.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,kf(c),b.updater=cu,c.stateNode=b,b._reactInternals=c,Of(c,y,a,p),c=Df(null,c,y,!0,T,p)):(c.tag=0,Be&&T&&uf(c),Fr(null,c,b,p),c=c.child),c;case 16:y=c.elementType;t:{switch(hu(a,c),a=c.pendingProps,b=y._init,y=b(y._payload),c.type=y,b=c.tag=VF(y),a=In(y,a),b){case 0:c=Nf(null,c,y,a,p);break t;case 1:c=F1(null,c,y,a,p);break t;case 11:c=_1(null,c,y,a,p);break t;case 14:c=E1(null,c,y,In(y.type,a),p);break t}throw Error(r(306,y,""))}return c;case 0:return y=c.type,b=c.pendingProps,b=c.elementType===y?b:In(y,b),Nf(a,c,y,b,p);case 1:return y=c.type,b=c.pendingProps,b=c.elementType===y?b:In(y,b),F1(a,c,y,b,p);case 3:t:{if(I1(c),a===null)throw Error(r(387));y=c.pendingProps,T=c.memoizedState,b=T.element,Y0(a,c),ru(c,y,null,p);var M=c.memoizedState;if(y=M.element,T.isDehydrated)if(T={element:y,isDehydrated:!1,cache:M.cache,pendingSuspenseBoundaries:M.pendingSuspenseBoundaries,transitions:M.transitions},c.updateQueue.baseState=T,c.memoizedState=T,c.flags&256){b=Ea(Error(r(423)),c),c=M1(a,c,y,p,b);break t}else if(y!==b){b=Ea(Error(r(424)),c),c=M1(a,c,y,p,b);break t}else for(on=Hi(c.stateNode.containerInfo.firstChild),nn=c,Be=!0,Fn=null,p=U0(c,null,y,p),c.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(va(),y===b){c=bi(a,c,p);break t}Fr(a,c,y,p)}c=c.child}return c;case 5:return K0(c),a===null&&ff(c),y=c.type,b=c.pendingProps,T=a!==null?a.memoizedProps:null,M=b.children,nf(y,b)?M=null:T!==null&&nf(y,T)&&(c.flags|=32),A1(a,c),Fr(a,c,M,p),c.child;case 6:return a===null&&ff(c),null;case 13:return O1(a,c,p);case 4:return bf(c,c.stateNode.containerInfo),y=c.pendingProps,a===null?c.child=wa(c,null,y,p):Fr(a,c,y,p),c.child;case 11:return y=c.type,b=c.pendingProps,b=c.elementType===y?b:In(y,b),_1(a,c,y,b,p);case 7:return Fr(a,c,c.pendingProps,p),c.child;case 8:return Fr(a,c,c.pendingProps.children,p),c.child;case 12:return Fr(a,c,c.pendingProps.children,p),c.child;case 10:t:{if(y=c.type._context,b=c.pendingProps,T=c.memoizedProps,M=b.value,ve(Jc,y._currentValue),y._currentValue=M,T!==null)if(An(T.value,M)){if(T.children===b.children&&!qr.current){c=bi(a,c,p);break t}}else for(T=c.child,T!==null&&(T.return=c);T!==null;){var z=T.dependencies;if(z!==null){M=T.child;for(var V=z.firstContext;V!==null;){if(V.context===y){if(T.tag===1){V=ki(-1,p&-p),V.tag=2;var nt=T.updateQueue;if(nt!==null){nt=nt.shared;var ft=nt.pending;ft===null?V.next=V:(V.next=ft.next,ft.next=V),nt.pending=V}}T.lanes|=p,V=T.alternate,V!==null&&(V.lanes|=p),xf(T.return,p,c),z.lanes|=p;break}V=V.next}}else if(T.tag===10)M=T.type===c.type?null:T.child;else if(T.tag===18){if(M=T.return,M===null)throw Error(r(341));M.lanes|=p,z=M.alternate,z!==null&&(z.lanes|=p),xf(M,p,c),M=T.sibling}else M=T.child;if(M!==null)M.return=T;else for(M=T;M!==null;){if(M===c){M=null;break}if(T=M.sibling,T!==null){T.return=M.return,M=T;break}M=M.return}T=M}Fr(a,c,b.children,p),c=c.child}return c;case 9:return b=c.type,y=c.pendingProps.children,Ta(c,p),b=xn(b),y=y(b),c.flags|=1,Fr(a,c,y,p),c.child;case 14:return y=c.type,b=In(y,c.pendingProps),b=In(y.type,b),E1(a,c,y,b,p);case 15:return L1(a,c,c.type,c.pendingProps,p);case 17:return y=c.type,b=c.pendingProps,b=c.elementType===y?b:In(y,b),hu(a,c),c.tag=1,Wr(y)?(a=!0,Yc(c)):a=!1,Ta(c,p),C1(c,y,b),Of(c,y,b,p),Df(null,c,y,!0,a,p);case 19:return P1(a,c,p);case 22:return B1(a,c,p)}throw Error(r(156,c.tag))};function aC(a,c){return Y(a,c)}function UF(a,c,p,y){this.tag=a,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bn(a,c,p,y){return new UF(a,c,p,y)}function ip(a){return a=a.prototype,!(!a||!a.isReactComponent)}function VF(a){if(typeof a=="function")return ip(a)?1:0;if(a!=null){if(a=a.$$typeof,a===K)return 11;if(a===W)return 14}return 2}function eo(a,c){var p=a.alternate;return p===null?(p=bn(a.tag,c,a.key,a.mode),p.elementType=a.elementType,p.type=a.type,p.stateNode=a.stateNode,p.alternate=a,a.alternate=p):(p.pendingProps=c,p.type=a.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=a.flags&14680064,p.childLanes=a.childLanes,p.lanes=a.lanes,p.child=a.child,p.memoizedProps=a.memoizedProps,p.memoizedState=a.memoizedState,p.updateQueue=a.updateQueue,c=a.dependencies,p.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},p.sibling=a.sibling,p.index=a.index,p.ref=a.ref,p}function vu(a,c,p,y,b,T){var M=2;if(y=a,typeof a=="function")ip(a)&&(M=1);else if(typeof a=="string")M=5;else t:switch(a){case B:return Ro(p.children,b,T,c);case N:M=8,b|=8;break;case q:return a=bn(12,p,c,b|2),a.elementType=q,a.lanes=T,a;case tt:return a=bn(13,p,c,b),a.elementType=tt,a.lanes=T,a;case U:return a=bn(19,p,c,b),a.elementType=U,a.lanes=T,a;case G:return wu(p,b,T,c);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case O:M=10;break t;case D:M=9;break t;case K:M=11;break t;case W:M=14;break t;case H:M=16,y=null;break t}throw Error(r(130,a==null?a:typeof a,""))}return c=bn(M,p,c,b),c.elementType=a,c.type=y,c.lanes=T,c}function Ro(a,c,p,y){return a=bn(7,a,y,c),a.lanes=p,a}function wu(a,c,p,y){return a=bn(22,a,y,c),a.elementType=G,a.lanes=p,a.stateNode={isHidden:!1},a}function op(a,c,p){return a=bn(6,a,null,c),a.lanes=p,a}function ap(a,c,p){return c=bn(4,a.children!==null?a.children:[],a.key,c),c.lanes=p,c.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},c}function YF(a,c,p,y,b){this.tag=c,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Id(0),this.expirationTimes=Id(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Id(0),this.identifierPrefix=y,this.onRecoverableError=b,this.mutableSourceEagerHydrationData=null}function sp(a,c,p,y,b,T,M,z,V){return a=new YF(a,c,p,z,V),c===1?(c=1,T===!0&&(c|=8)):c=0,T=bn(3,null,null,c),a.current=T,T.stateNode=a,T.memoizedState={element:y,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},kf(T),a}function GF(a,c,p){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:y==null?null:""+y,children:a,containerInfo:c,implementation:p}}function sC(a){if(!a)return Vi;a=a._reactInternals;t:{if(Xn(a)!==a||a.tag!==1)throw Error(r(170));var c=a;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(Wr(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(c!==null);throw Error(r(171))}if(a.tag===1){var p=a.type;if(Wr(p))return R0(a,p,c)}return c}function lC(a,c,p,y,b,T,M,z,V){return a=sp(p,y,!0,a,b,T,M,z,V),a.context=sC(null),p=a.current,y=Ir(),b=Ji(p),T=ki(y,b),T.callback=c??null,Xi(p,T,b),a.current.lanes=b,Is(a,b,y),Vr(a,y),a}function Su(a,c,p,y){var b=c.current,T=Ir(),M=Ji(b);return p=sC(p),c.context===null?c.context=p:c.pendingContext=p,c=ki(T,M),c.payload={element:a},y=y===void 0?null:y,y!==null&&(c.callback=y),a=Xi(b,c,M),a!==null&&(Rn(a,b,M,T),eu(a,b,M)),M}function Tu(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function cC(a,c){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var p=a.retryLane;a.retryLane=p!==0&&p<c?p:c}}function lp(a,c){cC(a,c),(a=a.alternate)&&cC(a,c)}function XF(){return null}var uC=typeof reportError=="function"?reportError:function(a){console.error(a)};function cp(a){this._internalRoot=a}_u.prototype.render=cp.prototype.render=function(a){var c=this._internalRoot;if(c===null)throw Error(r(409));Su(a,c,null,null)},_u.prototype.unmount=cp.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var c=a.containerInfo;Io(function(){Su(null,a,null,null)}),c[gi]=null}};function _u(a){this._internalRoot=a}_u.prototype.unstable_scheduleHydration=function(a){if(a){var c=Yx();a={blockedOn:null,target:a,priority:c};for(var p=0;p<zi.length&&c!==0&&c<zi[p].priority;p++);zi.splice(p,0,a),p===0&&Kx(a)}};function up(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function Eu(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function hC(){}function KF(a,c,p,y,b){if(b){if(typeof y=="function"){var T=y;y=function(){var nt=Tu(M);T.call(nt)}}var M=lC(c,y,a,0,null,!1,!1,"",hC);return a._reactRootContainer=M,a[gi]=M.current,Vs(a.nodeType===8?a.parentNode:a),Io(),M}for(;b=a.lastChild;)a.removeChild(b);if(typeof y=="function"){var z=y;y=function(){var nt=Tu(V);z.call(nt)}}var V=sp(a,0,!1,null,null,!1,!1,"",hC);return a._reactRootContainer=V,a[gi]=V.current,Vs(a.nodeType===8?a.parentNode:a),Io(function(){Su(c,V,p,y)}),V}function Lu(a,c,p,y,b){var T=p._reactRootContainer;if(T){var M=T;if(typeof b=="function"){var z=b;b=function(){var V=Tu(M);z.call(V)}}Su(c,M,a,b)}else M=KF(p,c,a,b,y);return Tu(M)}Ux=function(a){switch(a.tag){case 3:var c=a.stateNode;if(c.current.memoizedState.isDehydrated){var p=Fs(c.pendingLanes);p!==0&&(Md(c,p|1),Vr(c,Jt()),(le&6)===0&&(Aa=Jt()+500,Yi()))}break;case 13:Io(function(){var y=Ci(a,1);if(y!==null){var b=Ir();Rn(y,a,1,b)}}),lp(a,1)}},Od=function(a){if(a.tag===13){var c=Ci(a,134217728);if(c!==null){var p=Ir();Rn(c,a,134217728,p)}lp(a,134217728)}},Vx=function(a){if(a.tag===13){var c=Ji(a),p=Ci(a,c);if(p!==null){var y=Ir();Rn(p,a,c,y)}lp(a,c)}},Yx=function(){return fe},Gx=function(a,c){var p=fe;try{return fe=a,c()}finally{fe=p}},ye=function(a,c,p){switch(c){case"input":if(jr(a,p),c=p.name,p.type==="radio"&&c!=null){for(p=a;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+c)+'][type="radio"]'),c=0;c<p.length;c++){var y=p[c];if(y!==a&&y.form===a.form){var b=Uc(y);if(!b)throw Error(r(90));re(y),jr(y,b)}}}break;case"textarea":mr(a,p);break;case"select":c=p.value,c!=null&&Br(a,!!p.multiple,c,!1)}},ke=ep,fi=Io;var QF={usingClientEntryPoint:!1,Events:[Xs,ya,Uc,ko,bo,ep]},cl={findFiberByHostInstance:So,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ZF={bundleType:cl.bundleType,version:cl.version,rendererPackageName:cl.rendererPackageName,rendererConfig:cl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:A.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=_c(a),a===null?null:a.stateNode},findFiberByHostInstance:cl.findFiberByHostInstance||XF,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 Bu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bu.isDisabled&&Bu.supportsFiber)try{wo=Bu.inject(ZF),en=Bu}catch{}}return Yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=QF,Yr.createPortal=function(a,c){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!up(c))throw Error(r(200));return GF(a,c,null,p)},Yr.createRoot=function(a,c){if(!up(a))throw Error(r(299));var p=!1,y="",b=uC;return c!=null&&(c.unstable_strictMode===!0&&(p=!0),c.identifierPrefix!==void 0&&(y=c.identifierPrefix),c.onRecoverableError!==void 0&&(b=c.onRecoverableError)),c=sp(a,1,!1,null,null,p,!1,y,b),a[gi]=c.current,Vs(a.nodeType===8?a.parentNode:a),new cp(c)},Yr.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var c=a._reactInternals;if(c===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=_c(c),a=a===null?null:a.stateNode,a},Yr.flushSync=function(a){return Io(a)},Yr.hydrate=function(a,c,p){if(!Eu(c))throw Error(r(200));return Lu(null,a,c,!0,p)},Yr.hydrateRoot=function(a,c,p){if(!up(a))throw Error(r(405));var y=p!=null&&p.hydratedSources||null,b=!1,T="",M=uC;if(p!=null&&(p.unstable_strictMode===!0&&(b=!0),p.identifierPrefix!==void 0&&(T=p.identifierPrefix),p.onRecoverableError!==void 0&&(M=p.onRecoverableError)),c=lC(c,null,a,1,p??null,b,!1,T,M),a[gi]=c.current,Vs(a),y)for(a=0;a<y.length;a++)p=y[a],b=p._getVersion,b=b(p._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[p,b]:c.mutableSourceEagerHydrationData.push(p,b);return new _u(c)},Yr.render=function(a,c,p){if(!Eu(c))throw Error(r(200));return Lu(null,a,c,!1,p)},Yr.unmountComponentAtNode=function(a){if(!Eu(a))throw Error(r(40));return a._reactRootContainer?(Io(function(){Lu(null,null,a,!1,function(){a._reactRootContainer=null,a[gi]=null})}),!0):!1},Yr.unstable_batchedUpdates=ep,Yr.unstable_renderSubtreeIntoContainer=function(a,c,p,y){if(!Eu(p))throw Error(r(200));if(a==null||a._reactInternals===void 0)throw Error(r(38));return Lu(a,c,p,!1,y)},Yr.version="18.3.1-next-f1338f8080-20240426",Yr}var CC;function l5(){if(CC)return fp.exports;CC=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(),fp.exports=s5(),fp.exports}var kC;function c5(){if(kC)return Au;kC=1;var e=l5();return Au.createRoot=e.createRoot,Au.hydrateRoot=e.hydrateRoot,Au}var u5=c5();const h5=Ze(u5);class d5 extends lr.Component{constructor(t){super(t),this.handleRetry=()=>{this.setState({hasError:!1,error:null})},this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("ErrorBoundary caught an error:",t,r)}render(){var t,r;return this.state.hasError?L.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",padding:"40px",color:"var(--text-primary)"},children:[L.jsx("div",{style:{fontSize:"48px",marginBottom:"16px"},children:":("}),L.jsx("h2",{style:{fontSize:"18px",fontWeight:600,marginBottom:"8px"},children:"出现了一些问题"}),L.jsx("p",{style:{fontSize:"14px",color:"var(--text-secondary)",marginBottom:"8px",maxWidth:"400px",textAlign:"center"},children:((t=this.state.error)==null?void 0:t.message)||"发生了未知错误"}),L.jsx("pre",{style:{fontSize:"12px",color:"var(--text-tertiary)",marginBottom:"20px",maxWidth:"600px",overflow:"auto",padding:"12px",background:"var(--bg-secondary)",borderRadius:"8px",border:"1px solid var(--border)",maxHeight:"150px",width:"100%"},children:(r=this.state.error)==null?void 0:r.stack}),L.jsx("button",{onClick:this.handleRetry,style:{padding:"8px 24px",border:"1px solid var(--border)",borderRadius:"8px",background:"var(--accent)",color:"var(--text-inverse)",fontSize:"14px",cursor:"pointer",fontWeight:500},children:"重试"})]}):this.props.children}}const f5="modulepreload",p5=function(e){return"/"+e},bC={},oe=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){let s=function(h){return Promise.all(h.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),u=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));i=s(r.map(h=>{if(h=p5(h),h in bC)return;bC[h]=!0;const d=h.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${f}`))return;const m=document.createElement("link");if(m.rel=d?"stylesheet":f5,d||(m.as="script"),m.crossOrigin="",m.href=h,u&&m.setAttribute("nonce",u),document.head.appendChild(m),d)return new Promise((g,x)=>{m.addEventListener("load",g),m.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${h}`)))})}))}function o(s){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s}return i.then(s=>{for(const l of s||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},vC=e=>{let t;const r=new Set,n=(h,d)=>{const f=typeof h=="function"?h(t):h;if(!Object.is(f,t)){const m=t;t=d??(typeof f!="object"||f===null)?f:Object.assign({},t,f),r.forEach(g=>g(t,m))}},i=()=>t,l={setState:n,getState:i,getInitialState:()=>u,subscribe:h=>(r.add(h),()=>r.delete(h))},u=t=e(n,i,l);return l},g5=(e=>e?vC(e):vC),m5=e=>e;function y5(e,t=m5){const r=lr.useSyncExternalStore(e.subscribe,lr.useCallback(()=>t(e.getState()),[e,t]),lr.useCallback(()=>t(e.getInitialState()),[e,t]));return lr.useDebugValue(r),r}const wC=e=>{const t=g5(e),r=n=>y5(t,n);return Object.assign(r,t),r},f2=(e=>e?wC(e):wC),SC={projects:[],config:null,currentWiki:null,currentView:null,sidebarOpen:!0,settingsOpen:!1,searchOpen:!1,searchQuery:"",searchResults:[],expandedSections:[],expandedGroups:[],referenceOpen:!1,referenceData:null,mermaidViewerOpen:!1,mermaidViewerData:null,loadingWiki:!1,loadingPage:!1,loadingProjects:!1},Rt=f2(e=>({...SC,setProjects:t=>e({projects:t}),setConfig:t=>e({config:t}),setCurrentWiki:t=>e({currentWiki:t}),setCurrentView:t=>e({currentView:t}),setCurrentProject:t=>e(r=>({config:r.config?{...r.config,lastOpenedProject:t}:r.config})),toggleSidebar:()=>e(t=>({sidebarOpen:!t.sidebarOpen})),setSidebarOpen:t=>e({sidebarOpen:t}),toggleSettings:()=>e(t=>({settingsOpen:!t.settingsOpen})),setSettingsOpen:t=>e({settingsOpen:t}),toggleSearch:()=>e(t=>({searchOpen:!t.searchOpen})),setSearchOpen:t=>e(r=>({searchOpen:t,searchQuery:t?r.searchQuery:"",searchResults:t?r.searchResults:[]})),setSearchQuery:t=>e({searchQuery:t}),setSearchResults:t=>e({searchResults:t}),openReference:(t,r,n)=>e({referenceOpen:!0,referenceData:{filePath:t,startLine:r,endLine:n}}),closeReference:()=>e({referenceOpen:!1,referenceData:null}),openMermaidViewer:(t,r)=>e({mermaidViewerOpen:!0,mermaidViewerData:{svg:t,code:r}}),closeMermaidViewer:()=>e({mermaidViewerOpen:!1,mermaidViewerData:null}),toggleSection:t=>e(r=>({expandedSections:r.expandedSections.includes(t)?r.expandedSections.filter(n=>n!==t):[...r.expandedSections,t]})),toggleGroup:t=>e(r=>({expandedGroups:r.expandedGroups.includes(t)?r.expandedGroups.filter(n=>n!==t):[...r.expandedGroups,t]})),setExpandedSections:t=>e({expandedSections:t}),setExpandedGroups:t=>e({expandedGroups:t}),setLoadingWiki:t=>e({loadingWiki:t}),setLoadingPage:t=>e({loadingPage:t}),setLoadingProjects:t=>e({loadingProjects:t}),reset:()=>e(SC)})),TC={aiPanelOpen:!1,aiPanelWidth:400,aiStatus:null,showInstallPrompt:!1,aiSessions:[],activeSessionId:null,aiMessages:[],aiStreaming:!1,aiConnected:!1,aiError:null},ie=f2(e=>({...TC,toggleAIPanel:()=>e(t=>({aiPanelOpen:!t.aiPanelOpen})),setAIPanelOpen:t=>e({aiPanelOpen:t}),setAIPanelWidth:t=>e({aiPanelWidth:t}),setAIStatus:t=>e({aiStatus:t}),setShowInstallPrompt:t=>e({showInstallPrompt:t}),setAISessions:t=>e({aiSessions:t}),setActiveSession:t=>e({activeSessionId:t}),setAIMessages:t=>e({aiMessages:t}),addMessage:t=>e(r=>({aiMessages:[...r.aiMessages,t]})),updateMessage:(t,r)=>e(n=>({aiMessages:n.aiMessages.map(i=>i.id===t?{...i,...r}:i)})),appendToMessage:(t,r,n)=>e(i=>({aiMessages:i.aiMessages.map(o=>{if(o.id!==t)return o;const s=o.content,l=s[r]||"";return{...o,content:{...s,[r]:l+n}}})})),setStreaming:t=>e({aiStreaming:t}),setConnected:t=>e({aiConnected:t}),setAIError:t=>e({aiError:t}),clearMessages:()=>e({aiMessages:[],aiStreaming:!1}),resetAI:()=>e(TC)})),x5=({size:e=16})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"M6 9l6 6 6-6"})}),C5=({size:e=16})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("circle",{cx:"11",cy:"11",r:"8"}),L.jsx("path",{d:"M21 21l-4.35-4.35"})]}),k5=({size:e=18})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("circle",{cx:"12",cy:"12",r:"3"}),L.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]}),Qg=({size:e=20})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),L.jsx("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})]}),b5=({size:e=14})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",children:L.jsx("path",{d:"M12 2L14.09 8.26L20 9.27L15.55 13.97L16.91 20L12 16.9L7.09 20L8.45 13.97L4 9.27L9.91 8.26L12 2Z"})}),v5=()=>{const e=Rt(h=>h.projects),t=Rt(h=>h.config),r=Rt(h=>h.setCurrentProject),[n,i]=st.useState(!1),o=st.useRef(null),s=t==null?void 0:t.lastOpenedProject,l=e.find(h=>h.id===s);st.useEffect(()=>{function h(d){o.current&&!o.current.contains(d.target)&&i(!1)}return document.addEventListener("mousedown",h),()=>document.removeEventListener("mousedown",h)},[]);const u=async h=>{r(h.id),i(!1);try{const{updateConfig:d}=await oe(async()=>{const{updateConfig:f}=await Promise.resolve().then(()=>C2);return{updateConfig:f}},void 0);await d({lastOpenedProject:h.id})}catch(d){console.error("Failed to persist project selection:",d)}};return e.length===0?L.jsx("span",{className:"text-[13px] text-content-tertiary",children:"暂无项目"}):L.jsxs("div",{ref:o,className:"relative",children:[L.jsxs("button",{onClick:()=>i(!n),className:`
|
|
42
|
+
flex items-center gap-2
|
|
43
|
+
px-3 py-1.5 min-w-[140px]
|
|
44
|
+
border border-edge rounded-lg
|
|
45
|
+
bg-surface-secondary text-content
|
|
46
|
+
text-[13px] font-medium
|
|
47
|
+
transition-colors duration-150
|
|
48
|
+
hover:border-content-tertiary
|
|
49
|
+
`,children:[L.jsx(Qg,{size:14}),L.jsx("span",{className:"flex-1 text-left truncate",children:(l==null?void 0:l.name)||"选择项目"}),L.jsx(x5,{size:14})]}),n&&L.jsx("div",{className:`
|
|
50
|
+
absolute top-full left-0 mt-1
|
|
51
|
+
min-w-[220px]
|
|
52
|
+
bg-surface border border-edge
|
|
53
|
+
rounded-lg shadow-lg
|
|
54
|
+
z-50 overflow-hidden
|
|
55
|
+
animate-fade-in
|
|
56
|
+
`,children:e.map(h=>L.jsxs("button",{onClick:()=>u(h),className:`
|
|
57
|
+
flex items-center gap-2 w-full
|
|
58
|
+
px-3 py-2
|
|
59
|
+
text-[13px] text-left
|
|
60
|
+
transition-colors duration-150
|
|
61
|
+
hover:bg-surface-hover
|
|
62
|
+
${h.id===s?"bg-accent-light text-accent-text":"text-content"}
|
|
63
|
+
`,children:[L.jsx(Qg,{size:14}),L.jsx("span",{className:"truncate",children:h.name})]},h.id))})]})},w5=()=>{const e=Rt(i=>i.toggleSearch),t=Rt(i=>i.toggleSettings),r=ie(i=>i.toggleAIPanel),n=ie(i=>i.aiPanelOpen);return L.jsxs("header",{className:`
|
|
64
|
+
h-14 flex items-center justify-between
|
|
65
|
+
px-5 border-b border-edge
|
|
66
|
+
bg-surface-secondary/80 backdrop-blur-md
|
|
67
|
+
shrink-0 z-10
|
|
68
|
+
`,children:[L.jsxs("div",{className:"flex items-center gap-3",children:[L.jsxs("div",{className:"flex items-center gap-2.5 select-none",children:[L.jsx(Qg,{size:20}),L.jsx("span",{className:"font-semibold text-[15px] text-content",children:"Zread Browser"})]}),L.jsx("div",{className:"w-px h-6 bg-edge"}),L.jsx(v5,{})]}),L.jsxs("button",{onClick:e,className:`
|
|
69
|
+
flex items-center gap-2
|
|
70
|
+
px-3.5 py-2 min-w-[200px]
|
|
71
|
+
border border-edge rounded-lg
|
|
72
|
+
bg-surface-secondary text-content-tertiary
|
|
73
|
+
text-[13px]
|
|
74
|
+
transition-colors duration-150
|
|
75
|
+
hover:border-content-tertiary hover:text-content
|
|
76
|
+
`,children:[L.jsx(C5,{size:14}),L.jsx("span",{className:"flex-1 text-left",children:"搜索..."}),L.jsx("kbd",{className:"text-[11px] px-1.5 py-0.5 rounded bg-surface-tertiary border border-edge-light font-mono",children:"⌘K"})]}),L.jsxs("div",{className:"flex items-center gap-2",children:[L.jsxs("button",{onClick:r,"aria-pressed":n,className:`
|
|
77
|
+
flex items-center gap-1.5 px-3 py-1.5
|
|
78
|
+
rounded-lg border
|
|
79
|
+
transition-all duration-150
|
|
80
|
+
border-edge bg-surface-secondary text-content-tertiary
|
|
81
|
+
hover:bg-surface-hover hover:text-content
|
|
82
|
+
aria-pressed:border-accent
|
|
83
|
+
aria-pressed:bg-accent-light
|
|
84
|
+
aria-pressed:text-accent-text
|
|
85
|
+
aria-pressed:hover:bg-accent-light
|
|
86
|
+
`,title:"问问 AI",children:[L.jsx(b5,{size:14}),L.jsx("span",{className:"text-[13px] font-medium",children:"问问 AI"})]}),L.jsx("button",{onClick:t,className:`
|
|
87
|
+
w-9 h-9
|
|
88
|
+
flex items-center justify-center
|
|
89
|
+
rounded-lg border border-edge
|
|
90
|
+
bg-surface-secondary text-content-tertiary
|
|
91
|
+
hover:bg-surface-hover hover:text-content
|
|
92
|
+
transition-colors duration-150
|
|
93
|
+
`,title:"设置",children:L.jsx(k5,{size:18})})]})]})},S5="/api";async function Hn(e,t){const n=await(await fetch(`${S5}${e}`,{headers:{"Content-Type":"application/json",...t==null?void 0:t.headers},...t})).json();if(!n.success)throw new Error(n.error.message);return n.data}async function T5(){return Hn("/projects")}async function yy(e){return Hn(`/wiki/${encodeURIComponent(e)}`)}async function xy(e,t,r){return Hn(`/wiki/${encodeURIComponent(e)}/${encodeURIComponent(t)}/${encodeURIComponent(r)}`)}async function p2(e,t){return Hn(`/search/${encodeURIComponent(e)}?q=${encodeURIComponent(t)}`)}async function Pl(){return Hn("/config")}async function Qu(e){return Hn("/config",{method:"PUT",body:JSON.stringify(e)})}async function g2(e){return Hn("/projects",{method:"POST",body:JSON.stringify({path:e})})}async function m2(e){return Hn(`/projects/${encodeURIComponent(e)}`,{method:"DELETE"})}async function y2(){return Hn("/scan",{method:"POST"})}async function Zg(){return Hn("/scan/status")}async function x2(e,t,r){const n=new URLSearchParams({path:e});return t&&n.append("startLine",t.toString()),r&&n.append("endLine",r.toString()),Hn(`/files/content?${n.toString()}`)}const C2=Object.freeze(Object.defineProperty({__proto__:null,addProject:g2,deleteProject:m2,getConfig:Pl,getFileContent:x2,getPage:xy,getProjects:T5,getScanStatus:Zg,getWiki:yy,searchProject:p2,triggerScan:y2,updateConfig:Qu},Symbol.toStringTag,{value:"Module"})),k2=({size:e=14,rotated:t})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`shrink-0 transition-transform duration-150 ${t?"rotate-90":""}`,children:L.jsx("path",{d:"M9 18l6-6-6-6"})});function _5(e){const t=new Map;for(const n of e.pages){t.has(n.section)||t.set(n.section,{grouped:new Map,ungrouped:[]});const i=t.get(n.section);n.group?(i.grouped.has(n.group)||i.grouped.set(n.group,[]),i.grouped.get(n.group).push(n)):i.ungrouped.push(n)}const r=[];for(const[n,i]of t){const o=[];for(const[s,l]of i.grouped)o.push({name:s,pages:l});r.push({name:n,groups:o,ungroupedPages:i.ungrouped})}return{sections:r}}const b2=({page:e,isActive:t,onClick:r})=>{var m,g,x;const[n,i]=st.useState(!1),[o,s]=st.useState("bottom"),l=st.useRef(null),u=st.useRef(null),h=e.level==="Beginner"?"bg-accent-light text-accent-text border-accent/15":e.level==="Intermediate"?"bg-warning-light text-[#92400e] border-warning/15":"bg-danger-light text-[#991b1b] border-danger/15",d=st.useCallback(()=>{l.current=setTimeout(()=>{var k;const C=(k=u.current)==null?void 0:k.getBoundingClientRect();if(C){const v=C.top;s(v>80?"top":"bottom")}i(!0)},300)},[]),f=st.useCallback(()=>{l.current&&(clearTimeout(l.current),l.current=null),i(!1)},[]);return L.jsxs("div",{className:"relative",children:[L.jsxs("button",{ref:u,onClick:r,"aria-selected":t,className:`
|
|
94
|
+
relative flex items-center w-full
|
|
95
|
+
pl-9 pr-2.5 py-[7px]
|
|
96
|
+
text-[13px] text-content
|
|
97
|
+
rounded-lg
|
|
98
|
+
transition-colors duration-150
|
|
99
|
+
hover:bg-surface-hover
|
|
100
|
+
aria-selected:bg-accent-light
|
|
101
|
+
aria-selected:text-accent-text
|
|
102
|
+
aria-selected:hover:bg-accent-light
|
|
103
|
+
`,onMouseEnter:d,onMouseLeave:f,children:[t&&L.jsx("div",{className:"absolute left-1 top-1/2 -translate-y-1/2 w-[3px] h-3/5 rounded-r-full bg-accent"}),L.jsx("span",{className:"truncate",children:e.title})]}),n&&L.jsxs("div",{className:`
|
|
104
|
+
fixed z-[1000]
|
|
105
|
+
bg-surface border border-edge
|
|
106
|
+
rounded-lg shadow-lg
|
|
107
|
+
p-2.5 min-w-[120px]
|
|
108
|
+
pointer-events-none
|
|
109
|
+
animate-fade-in
|
|
110
|
+
`,style:{left:((m=u.current)==null?void 0:m.getBoundingClientRect().left)??0,top:o==="top"?(((g=u.current)==null?void 0:g.getBoundingClientRect().top)??0)-60:(((x=u.current)==null?void 0:x.getBoundingClientRect().bottom)??0)+8},children:[L.jsx("div",{className:"text-[13px] font-semibold text-content mb-1.5 leading-snug",children:e.title}),L.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-[11px] font-medium leading-snug border ${h}`,children:e.level})]})]})},E5=({name:e,pages:t,expanded:r,currentSlug:n,onToggle:i,onPageClick:o})=>L.jsxs("div",{children:[L.jsxs("button",{onClick:i,className:`
|
|
111
|
+
flex items-center gap-1.5 w-full
|
|
112
|
+
pl-7 pr-2.5 py-1.5
|
|
113
|
+
text-[13px] font-medium text-content-secondary
|
|
114
|
+
rounded-lg
|
|
115
|
+
transition-colors duration-150
|
|
116
|
+
hover:bg-surface-hover
|
|
117
|
+
`,children:[L.jsx(k2,{size:11,rotated:r}),L.jsx("span",{className:"flex-1 truncate",children:e}),L.jsx("span",{className:"text-[11px] text-content-muted",children:t.length})]}),r&&L.jsx("div",{children:t.map(s=>L.jsx(b2,{page:s,isActive:s.slug===n,onClick:()=>o(s)},s.slug))})]}),L5=({section:e,expanded:t,currentSlug:r,expandedGroups:n,onToggleSection:i,onToggleGroup:o,onPageClick:s})=>L.jsxs("div",{className:"mb-0.5",children:[L.jsxs("button",{onClick:i,className:`
|
|
118
|
+
flex items-center gap-2 w-full
|
|
119
|
+
px-2.5 py-2
|
|
120
|
+
text-[13px] font-semibold text-content
|
|
121
|
+
rounded-lg
|
|
122
|
+
transition-colors duration-150
|
|
123
|
+
hover:bg-surface-hover
|
|
124
|
+
`,children:[L.jsx(k2,{size:12,rotated:t}),L.jsx("span",{className:"flex-1 truncate",children:e.name})]}),t&&L.jsxs("div",{children:[e.groups.map(l=>L.jsx(E5,{name:l.name,pages:l.pages,expanded:n.includes(`${e.name}::${l.name}`),currentSlug:r,onToggle:()=>o(`${e.name}::${l.name}`),onPageClick:s},l.name)),e.ungroupedPages.map(l=>L.jsx(b2,{page:l,isActive:l.slug===r,onClick:()=>s(l)},l.slug))]})]}),B5=()=>{const e=Rt(x=>x.currentWiki),t=Rt(x=>x.currentView),r=Rt(x=>x.config),n=Rt(x=>x.expandedSections),i=Rt(x=>x.expandedGroups),o=Rt(x=>x.toggleSection),s=Rt(x=>x.toggleGroup),l=Rt(x=>x.setCurrentView),u=Rt(x=>x.setCurrentWiki),h=Rt(x=>x.setLoadingWiki);Rt(x=>x.setLoadingPage);const d=r==null?void 0:r.lastOpenedProject;st.useEffect(()=>{if(!d){u(null),l(null);return}let x=!1;return h(!0),l(null),yy(d).then(C=>{x||u(C)}).catch(C=>{console.error("Failed to load wiki:",C),x||u(null)}).finally(()=>{x||h(!1)}),()=>{x=!0}},[d,u,l,h]);const f=st.useMemo(()=>e?_5(e):null,[e]);st.useEffect(()=>{var x;if(f&&f.sections.length>0){const C=f.sections.map(_=>_.name),k=f.sections.flatMap(_=>_.groups.map(A=>`${_.name}::${A.name}`));Rt.getState().setExpandedSections(C),Rt.getState().setExpandedGroups(k);const v=f.sections[0],w=((x=v.groups[0])==null?void 0:x.pages[0])||v.ungroupedPages[0];w&&!g&&m(w)}},[f]);const m=async x=>{if(!d)return;const C=Rt.getState().projects.find(v=>v.id===d),k=(C==null?void 0:C.currentVersion)||"latest";l({projectId:d,version:k,slug:x.slug,content:"",loading:!0});try{const v=await xy(d,k,x.slug);l({projectId:d,version:k,slug:x.slug,content:v.content,loading:!1})}catch(v){l({projectId:d,version:k,slug:x.slug,content:"",loading:!1,error:v instanceof Error?v.message:"Failed to load page"})}},g=t==null?void 0:t.slug;return L.jsxs("aside",{className:"w-[260px] h-full border-r border-edge bg-surface flex flex-col shrink-0 overflow-hidden",children:[L.jsx("div",{className:`
|
|
125
|
+
px-4 py-3.5
|
|
126
|
+
border-b border-edge
|
|
127
|
+
text-[11px] font-semibold uppercase tracking-wider
|
|
128
|
+
text-content-muted select-none
|
|
129
|
+
`,children:"导航"}),L.jsx("nav",{className:"flex-1 overflow-y-auto py-2 px-2",children:f?f.sections.length===0?L.jsx("div",{className:"px-4 py-6 text-center text-[13px] text-content-tertiary",children:"暂无内容"}):f.sections.map(x=>L.jsx(L5,{section:x,expanded:n.includes(x.name),currentSlug:g,expandedGroups:i,onToggleSection:()=>o(x.name),onToggleGroup:C=>s(C),onPageClick:m},x.name)):L.jsx("div",{className:"px-4 py-6 text-center text-[13px] text-content-tertiary",children:d?"加载中...":"请先选择一个项目"})})]})};function A5(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const F5=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,I5=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,M5={};function _C(e,t){return(M5.jsx?I5:F5).test(e)}const O5=/[ \t\n\f\r]/g;function R5(e){return typeof e=="object"?e.type==="text"?EC(e.value):!1:EC(e)}function EC(e){return e.replace(O5,"")===""}class cc{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}cc.prototype.normal={};cc.prototype.property={};cc.prototype.space=void 0;function v2(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new cc(r,n,t)}function Jg(e){return e.toLowerCase()}class tn{constructor(t,r){this.attribute=r,this.property=t}}tn.prototype.attribute="";tn.prototype.booleanish=!1;tn.prototype.boolean=!1;tn.prototype.commaOrSpaceSeparated=!1;tn.prototype.commaSeparated=!1;tn.prototype.defined=!1;tn.prototype.mustUseProperty=!1;tn.prototype.number=!1;tn.prototype.overloadedBoolean=!1;tn.prototype.property="";tn.prototype.spaceSeparated=!1;tn.prototype.space=void 0;let P5=0;const Kt=na(),Ke=na(),tm=na(),yt=na(),we=na(),Ua=na(),cn=na();function na(){return 2**++P5}const em=Object.freeze(Object.defineProperty({__proto__:null,boolean:Kt,booleanish:Ke,commaOrSpaceSeparated:cn,commaSeparated:Ua,number:yt,overloadedBoolean:tm,spaceSeparated:we},Symbol.toStringTag,{value:"Module"})),mp=Object.keys(em);class Cy extends tn{constructor(t,r,n,i){let o=-1;if(super(t,r),LC(this,"space",i),typeof n=="number")for(;++o<mp.length;){const s=mp[o];LC(this,mp[o],(n&em[s])===em[s])}}}Cy.prototype.defined=!0;function LC(e,t,r){r&&(e[t]=r)}function xs(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const o=new Cy(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[Jg(n)]=n,r[Jg(o.attribute)]=n}return new cc(t,r,e.space)}const w2=xs({properties:{ariaActiveDescendant:null,ariaAtomic:Ke,ariaAutoComplete:null,ariaBusy:Ke,ariaChecked:Ke,ariaColCount:yt,ariaColIndex:yt,ariaColSpan:yt,ariaControls:we,ariaCurrent:null,ariaDescribedBy:we,ariaDetails:null,ariaDisabled:Ke,ariaDropEffect:we,ariaErrorMessage:null,ariaExpanded:Ke,ariaFlowTo:we,ariaGrabbed:Ke,ariaHasPopup:null,ariaHidden:Ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:we,ariaLevel:yt,ariaLive:null,ariaModal:Ke,ariaMultiLine:Ke,ariaMultiSelectable:Ke,ariaOrientation:null,ariaOwns:we,ariaPlaceholder:null,ariaPosInSet:yt,ariaPressed:Ke,ariaReadOnly:Ke,ariaRelevant:null,ariaRequired:Ke,ariaRoleDescription:we,ariaRowCount:yt,ariaRowIndex:yt,ariaRowSpan:yt,ariaSelected:Ke,ariaSetSize:yt,ariaSort:null,ariaValueMax:yt,ariaValueMin:yt,ariaValueNow:yt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function S2(e,t){return t in e?e[t]:t}function T2(e,t){return S2(e,t.toLowerCase())}const N5=xs({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ua,acceptCharset:we,accessKey:we,action:null,allow:null,allowFullScreen:Kt,allowPaymentRequest:Kt,allowUserMedia:Kt,alt:null,as:null,async:Kt,autoCapitalize:null,autoComplete:we,autoFocus:Kt,autoPlay:Kt,blocking:we,capture:null,charSet:null,checked:Kt,cite:null,className:we,cols:yt,colSpan:null,content:null,contentEditable:Ke,controls:Kt,controlsList:we,coords:yt|Ua,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Kt,defer:Kt,dir:null,dirName:null,disabled:Kt,download:tm,draggable:Ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Kt,formTarget:null,headers:we,height:yt,hidden:tm,high:yt,href:null,hrefLang:null,htmlFor:we,httpEquiv:we,id:null,imageSizes:null,imageSrcSet:null,inert:Kt,inputMode:null,integrity:null,is:null,isMap:Kt,itemId:null,itemProp:we,itemRef:we,itemScope:Kt,itemType:we,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Kt,low:yt,manifest:null,max:null,maxLength:yt,media:null,method:null,min:null,minLength:yt,multiple:Kt,muted:Kt,name:null,nonce:null,noModule:Kt,noValidate:Kt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Kt,optimum:yt,pattern:null,ping:we,placeholder:null,playsInline:Kt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Kt,referrerPolicy:null,rel:we,required:Kt,reversed:Kt,rows:yt,rowSpan:yt,sandbox:we,scope:null,scoped:Kt,seamless:Kt,selected:Kt,shadowRootClonable:Kt,shadowRootDelegatesFocus:Kt,shadowRootMode:null,shape:null,size:yt,sizes:null,slot:null,span:yt,spellCheck:Ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:yt,step:null,style:null,tabIndex:yt,target:null,title:null,translate:null,type:null,typeMustMatch:Kt,useMap:null,value:Ke,width:yt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:we,axis:null,background:null,bgColor:null,border:yt,borderColor:null,bottomMargin:yt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Kt,declare:Kt,event:null,face:null,frame:null,frameBorder:null,hSpace:yt,leftMargin:yt,link:null,longDesc:null,lowSrc:null,marginHeight:yt,marginWidth:yt,noResize:Kt,noHref:Kt,noShade:Kt,noWrap:Kt,object:null,profile:null,prompt:null,rev:null,rightMargin:yt,rules:null,scheme:null,scrolling:Ke,standby:null,summary:null,text:null,topMargin:yt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:yt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Kt,disableRemotePlayback:Kt,prefix:null,property:null,results:yt,security:null,unselectable:null},space:"html",transform:T2}),D5=xs({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:cn,accentHeight:yt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:yt,amplitude:yt,arabicForm:null,ascent:yt,attributeName:null,attributeType:null,azimuth:yt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:yt,by:null,calcMode:null,capHeight:yt,className:we,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:yt,diffuseConstant:yt,direction:null,display:null,dur:null,divisor:yt,dominantBaseline:null,download:Kt,dx:null,dy:null,edgeMode:null,editable:null,elevation:yt,enableBackground:null,end:null,event:null,exponent:yt,externalResourcesRequired:null,fill:null,fillOpacity:yt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ua,g2:Ua,glyphName:Ua,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:yt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:yt,horizOriginX:yt,horizOriginY:yt,id:null,ideographic:yt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:yt,k:yt,k1:yt,k2:yt,k3:yt,k4:yt,kernelMatrix:cn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:yt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:yt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:yt,overlineThickness:yt,paintOrder:null,panose1:null,path:null,pathLength:yt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:we,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:yt,pointsAtY:yt,pointsAtZ:yt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:cn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:cn,rev:cn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:cn,requiredFeatures:cn,requiredFonts:cn,requiredFormats:cn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:yt,specularExponent:yt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:yt,strikethroughThickness:yt,string:null,stroke:null,strokeDashArray:cn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:yt,strokeOpacity:yt,strokeWidth:null,style:null,surfaceScale:yt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:cn,tabIndex:yt,tableValues:null,target:null,targetX:yt,targetY:yt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:cn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:yt,underlineThickness:yt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:yt,values:null,vAlphabetic:yt,vMathematical:yt,vectorEffect:null,vHanging:yt,vIdeographic:yt,version:null,vertAdvY:yt,vertOriginX:yt,vertOriginY:yt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:yt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:S2}),_2=xs({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),E2=xs({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:T2}),L2=xs({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),$5={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},j5=/[A-Z]/g,BC=/-[a-z]/g,z5=/^data[-\w.:]+$/i;function q5(e,t){const r=Jg(t);let n=t,i=tn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&z5.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(BC,H5);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!BC.test(o)){let s=o.replace(j5,W5);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Cy}return new i(n,t)}function W5(e){return"-"+e.toLowerCase()}function H5(e){return e.charAt(1).toUpperCase()}const U5=v2([w2,N5,_2,E2,L2],"html"),ky=v2([w2,D5,_2,E2,L2],"svg");function V5(e){return e.join(" ").trim()}var Ia={},yp,AC;function Y5(){if(AC)return yp;AC=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
130
|
+
`,h="/",d="*",f="",m="comment",g="declaration";function x(k,v){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];v=v||{};var w=1,_=1;function A(U){var W=U.match(t);W&&(w+=W.length);var H=U.lastIndexOf(u);_=~H?U.length-H:_+U.length}function F(){var U={line:w,column:_};return function(W){return W.position=new E(U),q(),W}}function E(U){this.start=U,this.end={line:w,column:_},this.source=v.source}E.prototype.content=k;function B(U){var W=new Error(v.source+":"+w+":"+_+": "+U);if(W.reason=U,W.filename=v.source,W.line=w,W.column=_,W.source=k,!v.silent)throw W}function N(U){var W=U.exec(k);if(W){var H=W[0];return A(H),k=k.slice(H.length),W}}function q(){N(r)}function O(U){var W;for(U=U||[];W=D();)W!==!1&&U.push(W);return U}function D(){var U=F();if(!(h!=k.charAt(0)||d!=k.charAt(1))){for(var W=2;f!=k.charAt(W)&&(d!=k.charAt(W)||h!=k.charAt(W+1));)++W;if(W+=2,f===k.charAt(W-1))return B("End of comment missing");var H=k.slice(2,W-2);return _+=2,A(H),k=k.slice(W),_+=2,U({type:m,comment:H})}}function K(){var U=F(),W=N(n);if(W){if(D(),!N(i))return B("property missing ':'");var H=N(o),G=U({type:g,property:C(W[0].replace(e,f)),value:H?C(H[0].replace(e,f)):f});return N(s),G}}function tt(){var U=[];O(U);for(var W;W=K();)W!==!1&&(U.push(W),O(U));return U}return q(),tt()}function C(k){return k?k.replace(l,f):f}return yp=x,yp}var FC;function G5(){if(FC)return Ia;FC=1;var e=Ia&&Ia.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.default=r;const t=e(Y5());function r(n,i){let o=null;if(!n||typeof n!="string")return o;const s=(0,t.default)(n),l=typeof i=="function";return s.forEach(u=>{if(u.type!=="declaration")return;const{property:h,value:d}=u;l?i(h,d,u):d&&(o=o||{},o[h]=d)}),o}return Ia}var hl={},IC;function X5(){if(IC)return hl;IC=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(h){return!h||r.test(h)||e.test(h)},s=function(h,d){return d.toUpperCase()},l=function(h,d){return"".concat(d,"-")},u=function(h,d){return d===void 0&&(d={}),o(h)?h:(h=h.toLowerCase(),d.reactCompat?h=h.replace(i,l):h=h.replace(n,l),h.replace(t,s))};return hl.camelCase=u,hl}var dl,MC;function K5(){if(MC)return dl;MC=1;var e=dl&&dl.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(G5()),r=X5();function n(i,o){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(l,u){l&&u&&(s[(0,r.camelCase)(l,o)]=u)}),s}return n.default=n,dl=n,dl}var Q5=K5();const Z5=Ze(Q5),B2=A2("end"),by=A2("start");function A2(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function J5(e){const t=by(e),r=B2(e);if(t&&r)return{start:t,end:r}}function Nl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?OC(e.position):"start"in e||"end"in e?OC(e):"line"in e||"column"in e?rm(e):""}function rm(e){return RC(e&&e.line)+":"+RC(e&&e.column)}function OC(e){return rm(e&&e.start)+"-"+rm(e&&e.end)}function RC(e){return e&&typeof e=="number"?e:1}class Er extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",o={},s=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof n=="string"){const u=n.indexOf(":");u===-1?o.ruleId=n:(o.source=n.slice(0,u),o.ruleId=n.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=l?l.line:void 0,this.name=Nl(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Er.prototype.file="";Er.prototype.name="";Er.prototype.reason="";Er.prototype.message="";Er.prototype.stack="";Er.prototype.column=void 0;Er.prototype.line=void 0;Er.prototype.ancestors=void 0;Er.prototype.cause=void 0;Er.prototype.fatal=void 0;Er.prototype.place=void 0;Er.prototype.ruleId=void 0;Er.prototype.source=void 0;const vy={}.hasOwnProperty,t3=new Map,e3=/[A-Z]/g,r3=new Set(["table","tbody","thead","tfoot","tr"]),n3=new Set(["td","th"]),F2="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function i3(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=d3(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=h3(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ky:U5,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=I2(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function I2(e,t,r){if(t.type==="element")return o3(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return a3(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return l3(e,t,r);if(t.type==="mdxjsEsm")return s3(e,t);if(t.type==="root")return c3(e,t,r);if(t.type==="text")return u3(e,t)}function o3(e,t,r){const n=e.schema;let i=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=ky,e.schema=i),e.ancestors.push(t);const o=O2(e,t.tagName,!1),s=f3(e,t);let l=Sy(e,t);return r3.has(t.tagName)&&(l=l.filter(function(u){return typeof u=="string"?!R5(u):!0})),M2(e,s,o,t),wy(s,l),e.ancestors.pop(),e.schema=n,e.create(t,o,s,r)}function a3(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Vl(e,t.position)}function s3(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Vl(e,t.position)}function l3(e,t,r){const n=e.schema;let i=n;t.name==="svg"&&n.space==="html"&&(i=ky,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:O2(e,t.name,!0),s=p3(e,t),l=Sy(e,t);return M2(e,s,o,t),wy(s,l),e.ancestors.pop(),e.schema=n,e.create(t,o,s,r)}function c3(e,t,r){const n={};return wy(n,Sy(e,t)),e.create(t,e.Fragment,n,r)}function u3(e,t){return t.value}function M2(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function wy(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function h3(e,t,r){return n;function n(i,o,s,l){const h=Array.isArray(s.children)?r:t;return l?h(o,s,l):h(o,s)}}function d3(e,t){return r;function r(n,i,o,s){const l=Array.isArray(o.children),u=by(n);return t(i,o,s,l,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function f3(e,t){const r={};let n,i;for(i in t.properties)if(i!=="children"&&vy.call(t.properties,i)){const o=g3(e,i,t.properties[i]);if(o){const[s,l]=o;e.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&n3.has(t.tagName)?n=l:r[s]=l}}if(n){const o=r.style||(r.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function p3(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const o=n.data.estree.body[0];o.type;const s=o.expression;s.type;const l=s.properties[0];l.type,Object.assign(r,e.evaluater.evaluateExpression(l.argument))}else Vl(e,t.position);else{const i=n.name;let o;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const l=n.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else Vl(e,t.position);else o=n.value===null?!0:n.value;r[i]=o}return r}function Sy(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:t3;for(;++n<t.children.length;){const o=t.children[n];let s;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const h=i.get(u)||0;s=u+"-"+h,i.set(u,h+1)}}const l=I2(e,o,s);l!==void 0&&r.push(l)}return r}function g3(e,t,r){const n=q5(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?A5(r):V5(r)),n.property==="style"){let i=typeof r=="object"?r:m3(e,String(r));return e.stylePropertyNameCase==="css"&&(i=y3(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&n.space?$5[n.property]||n.property:n.attribute,r]}}function m3(e,t){try{return Z5(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,i=new Er("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=F2+"#cannot-parse-style-attribute",i}}function O2(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const l=_C(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}n=s}else n=_C(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const i=n.value;return vy.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(n);Vl(e)}function Vl(e,t){const r=new Er("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=F2+"#cannot-handle-mdx-estrees-without-createevaluater",r}function y3(e){const t={};let r;for(r in e)vy.call(e,r)&&(t[x3(r)]=e[r]);return t}function x3(e){let t=e.replace(e3,C3);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function C3(e){return"-"+e.toLowerCase()}const xp={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},k3={};function Ty(e,t){const r=k3,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return R2(e,n,i)}function R2(e,t,r){if(b3(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return PC(e.children,t,r)}return Array.isArray(e)?PC(e,t,r):""}function PC(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=R2(e[i],t,r);return n.join("")}function b3(e){return!!(e&&typeof e=="object")}const NC=document.createElement("i");function _y(e){const t="&"+e+";";NC.innerHTML=t;const r=NC.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function hn(e,t,r,n){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);o<n.length;)s=n.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function wn(e,t){return e.length>0?(hn(e,e.length,0,t),e):t}const DC={}.hasOwnProperty;function P2(e){const t={};let r=-1;for(;++r<e.length;)v3(t,e[r]);return t}function v3(e,t){let r;for(r in t){const i=(DC.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let s;if(o)for(s in o){DC.call(i,s)||(i[s]=[]);const l=o[s];w3(i[s],Array.isArray(l)?l:l?[l]:[])}}}function w3(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);hn(e,0,0,n)}function N2(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function jn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Or=yo(/[A-Za-z]/),Tr=yo(/[\dA-Za-z]/),S3=yo(/[#-'*+\--9=?A-Z^-~]/);function mh(e){return e!==null&&(e<32||e===127)}const nm=yo(/\d/),T3=yo(/[\dA-Fa-f]/),_3=yo(/[!-/:-@[-`{-~]/);function qt(e){return e!==null&&e<-2}function xe(e){return e!==null&&(e<0||e===32)}function ne(e){return e===-2||e===-1||e===32}const ed=yo(new RegExp("\\p{P}|\\p{S}","u")),Go=yo(/\s/);function yo(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Cs(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const o=e.charCodeAt(r);let s="";if(o===37&&Tr(e.charCodeAt(r+1))&&Tr(e.charCodeAt(r+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const l=e.charCodeAt(r+1);o<56320&&l>56319&&l<57344?(s=String.fromCharCode(o,l),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(n,r),encodeURIComponent(s)),n=r+i+1,s=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function se(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(u){return ne(u)?(e.enter(r),l(u)):t(u)}function l(u){return ne(u)&&o++<i?(e.consume(u),l):(e.exit(r),t(u))}}const E3={tokenize:L3};function L3(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),se(e,t,"linePrefix")}function i(l){return e.enter("paragraph"),o(l)}function o(l){const u=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=u),r=u,s(l)}function s(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return qt(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),s)}}const B3={tokenize:A3},$C={tokenize:F3};function A3(e){const t=this,r=[];let n=0,i,o,s;return l;function l(_){if(n<r.length){const A=r[n];return t.containerState=A[1],e.attempt(A[0].continuation,u,h)(_)}return h(_)}function u(_){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&w();const A=t.events.length;let F=A,E;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){E=t.events[F][1].end;break}v(n);let B=A;for(;B<t.events.length;)t.events[B][1].end={...E},B++;return hn(t.events,F+1,0,t.events.slice(A)),t.events.length=B,h(_)}return l(_)}function h(_){if(n===r.length){if(!i)return m(_);if(i.currentConstruct&&i.currentConstruct.concrete)return x(_);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check($C,d,f)(_)}function d(_){return i&&w(),v(n),m(_)}function f(_){return t.parser.lazy[t.now().line]=n!==r.length,s=t.now().offset,x(_)}function m(_){return t.containerState={},e.attempt($C,g,x)(_)}function g(_){return n++,r.push([t.currentConstruct,t.containerState]),m(_)}function x(_){if(_===null){i&&w(),v(0),e.consume(_);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),C(_)}function C(_){if(_===null){k(e.exit("chunkFlow"),!0),v(0),e.consume(_);return}return qt(_)?(e.consume(_),k(e.exit("chunkFlow")),n=0,t.interrupt=void 0,l):(e.consume(_),C)}function k(_,A){const F=t.sliceStream(_);if(A&&F.push(null),_.previous=o,o&&(o.next=_),o=_,i.defineSkip(_.start),i.write(F),t.parser.lazy[_.start.line]){let E=i.events.length;for(;E--;)if(i.events[E][1].start.offset<s&&(!i.events[E][1].end||i.events[E][1].end.offset>s))return;const B=t.events.length;let N=B,q,O;for(;N--;)if(t.events[N][0]==="exit"&&t.events[N][1].type==="chunkFlow"){if(q){O=t.events[N][1].end;break}q=!0}for(v(n),E=B;E<t.events.length;)t.events[E][1].end={...O},E++;hn(t.events,N+1,0,t.events.slice(B)),t.events.length=E}}function v(_){let A=r.length;for(;A-- >_;){const F=r[A];t.containerState=F[1],F[0].exit.call(t,e)}r.length=_}function w(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function F3(e,t,r){return se(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function cs(e){if(e===null||xe(e)||Go(e))return 1;if(ed(e))return 2}function rd(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}const im={name:"attention",resolveAll:I3,tokenize:M3};function I3(e,t){let r=-1,n,i,o,s,l,u,h,d;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;u=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const f={...e[n][1].end},m={...e[r][1].start};jC(f,-u),jC(m,u),s={type:u>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:m},o={type:u>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...l.end}},e[n][1].end={...s.start},e[r][1].start={...l.end},h=[],e[n][1].end.offset-e[n][1].start.offset&&(h=wn(h,[["enter",e[n][1],t],["exit",e[n][1],t]])),h=wn(h,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),h=wn(h,rd(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),h=wn(h,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(d=2,h=wn(h,[["enter",e[r][1],t],["exit",e[r][1],t]])):d=0,hn(e,n-1,r-n+3,h),r=n+h.length-d-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function M3(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=cs(n);let o;return s;function s(u){return o=u,e.enter("attentionSequence"),l(u)}function l(u){if(u===o)return e.consume(u),l;const h=e.exit("attentionSequence"),d=cs(u),f=!d||d===2&&i||r.includes(u),m=!i||i===2&&d||r.includes(n);return h._open=!!(o===42?f:f&&(i||!m)),h._close=!!(o===42?m:m&&(d||!f)),t(u)}}function jC(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const O3={name:"autolink",tokenize:R3};function R3(e,t,r){let n=0;return i;function i(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(g){return Or(g)?(e.consume(g),s):g===64?r(g):h(g)}function s(g){return g===43||g===45||g===46||Tr(g)?(n=1,l(g)):h(g)}function l(g){return g===58?(e.consume(g),n=0,u):(g===43||g===45||g===46||Tr(g))&&n++<32?(e.consume(g),l):(n=0,h(g))}function u(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||mh(g)?r(g):(e.consume(g),u)}function h(g){return g===64?(e.consume(g),d):S3(g)?(e.consume(g),h):r(g)}function d(g){return Tr(g)?f(g):r(g)}function f(g){return g===46?(e.consume(g),n=0,d):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):m(g)}function m(g){if((g===45||Tr(g))&&n++<63){const x=g===45?m:f;return e.consume(g),x}return r(g)}}const uc={partial:!0,tokenize:P3};function P3(e,t,r){return n;function n(o){return ne(o)?se(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||qt(o)?t(o):r(o)}}const D2={continuation:{tokenize:D3},exit:$3,name:"blockQuote",tokenize:N3};function N3(e,t,r){const n=this;return i;function i(s){if(s===62){const l=n.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return r(s)}function o(s){return ne(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function D3(e,t,r){const n=this;return i;function i(s){return ne(s)?se(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(D2,t,r)(s)}}function $3(e){e.exit("blockQuote")}const $2={name:"characterEscape",tokenize:j3};function j3(e,t,r){return n;function n(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return _3(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}const j2={name:"characterReference",tokenize:z3};function z3(e,t,r){const n=this;let i=0,o,s;return l;function l(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),u}function u(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),o=31,s=Tr,d(f))}function h(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=T3,d):(e.enter("characterReferenceValue"),o=7,s=nm,d(f))}function d(f){if(f===59&&i){const m=e.exit("characterReferenceValue");return s===Tr&&!_y(n.sliceSerialize(m))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&i++<o?(e.consume(f),d):r(f)}}const zC={partial:!0,tokenize:W3},qC={concrete:!0,name:"codeFenced",tokenize:q3};function q3(e,t,r){const n=this,i={partial:!0,tokenize:F};let o=0,s=0,l;return u;function u(E){return h(E)}function h(E){const B=n.events[n.events.length-1];return o=B&&B[1].type==="linePrefix"?B[2].sliceSerialize(B[1],!0).length:0,l=E,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(E)}function d(E){return E===l?(s++,e.consume(E),d):s<3?r(E):(e.exit("codeFencedFenceSequence"),ne(E)?se(e,f,"whitespace")(E):f(E))}function f(E){return E===null||qt(E)?(e.exit("codeFencedFence"),n.interrupt?t(E):e.check(zC,C,A)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(E))}function m(E){return E===null||qt(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(E)):ne(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),se(e,g,"whitespace")(E)):E===96&&E===l?r(E):(e.consume(E),m)}function g(E){return E===null||qt(E)?f(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(E))}function x(E){return E===null||qt(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(E)):E===96&&E===l?r(E):(e.consume(E),x)}function C(E){return e.attempt(i,A,k)(E)}function k(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),v}function v(E){return o>0&&ne(E)?se(e,w,"linePrefix",o+1)(E):w(E)}function w(E){return E===null||qt(E)?e.check(zC,C,A)(E):(e.enter("codeFlowValue"),_(E))}function _(E){return E===null||qt(E)?(e.exit("codeFlowValue"),w(E)):(e.consume(E),_)}function A(E){return e.exit("codeFenced"),t(E)}function F(E,B,N){let q=0;return O;function O(W){return E.enter("lineEnding"),E.consume(W),E.exit("lineEnding"),D}function D(W){return E.enter("codeFencedFence"),ne(W)?se(E,K,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):K(W)}function K(W){return W===l?(E.enter("codeFencedFenceSequence"),tt(W)):N(W)}function tt(W){return W===l?(q++,E.consume(W),tt):q>=s?(E.exit("codeFencedFenceSequence"),ne(W)?se(E,U,"whitespace")(W):U(W)):N(W)}function U(W){return W===null||qt(W)?(E.exit("codeFencedFence"),B(W)):N(W)}}}function W3(e,t,r){const n=this;return i;function i(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}const Cp={name:"codeIndented",tokenize:U3},H3={partial:!0,tokenize:V3};function U3(e,t,r){const n=this;return i;function i(h){return e.enter("codeIndented"),se(e,o,"linePrefix",5)(h)}function o(h){const d=n.events[n.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(h):r(h)}function s(h){return h===null?u(h):qt(h)?e.attempt(H3,s,u)(h):(e.enter("codeFlowValue"),l(h))}function l(h){return h===null||qt(h)?(e.exit("codeFlowValue"),s(h)):(e.consume(h),l)}function u(h){return e.exit("codeIndented"),t(h)}}function V3(e,t,r){const n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):qt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):se(e,o,"linePrefix",5)(s)}function o(s){const l=n.events[n.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):qt(s)?i(s):r(s)}}const Y3={name:"codeText",previous:X3,resolve:G3,tokenize:K3};function G3(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function X3(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function K3(e,t,r){let n=0,i,o;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),l(f)}function l(f){return f===96?(e.consume(f),n++,l):(e.exit("codeTextSequence"),u(f))}function u(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),u):f===96?(o=e.enter("codeTextSequence"),i=0,d(f)):qt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("codeTextData"),h(f))}function h(f){return f===null||f===32||f===96||qt(f)?(e.exit("codeTextData"),u(f)):(e.consume(f),h)}function d(f){return f===96?(e.consume(f),i++,d):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(o.type="codeTextData",h(f))}}class Q3{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const i=r||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&fl(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),fl(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),fl(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);fl(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);fl(this.left,r.reverse())}}}function fl(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function z2(e){const t={};let r=-1,n,i,o,s,l,u,h;const d=new Q3(e);for(;++r<d.length;){for(;r in t;)r=t[r];if(n=d.get(r),r&&n[1].type==="chunkFlow"&&d.get(r-1)[1].type==="listItemPrefix"&&(u=n[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Z3(d,r)),r=t[r],h=!0);else if(n[1]._container){for(o=r,i=void 0;o--;)if(s=d.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(n[1].end={...d.get(i)[1].start},l=d.slice(i,r),l.unshift(n),d.splice(i,r-i+1,l))}}return hn(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!h}function Z3(e,t){const r=e.get(t)[1],n=e.get(t)[2];let i=t-1;const o=[];let s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const l=s.events,u=[],h={};let d,f,m=-1,g=r,x=0,C=0;const k=[C];for(;g;){for(;e.get(++i)[1]!==g;);o.push(i),g._tokenizer||(d=n.sliceStream(g),g.next||d.push(null),f&&s.defineSkip(g.start),g._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),g._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=g,g=g.next}for(g=r;++m<l.length;)l[m][0]==="exit"&&l[m-1][0]==="enter"&&l[m][1].type===l[m-1][1].type&&l[m][1].start.line!==l[m][1].end.line&&(C=m+1,k.push(C),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(s.events=[],g?(g._tokenizer=void 0,g.previous=void 0):k.pop(),m=k.length;m--;){const v=l.slice(k[m],k[m+1]),w=o.pop();u.push([w,w+v.length-1]),e.splice(w,2,v)}for(u.reverse(),m=-1;++m<u.length;)h[x+u[m][0]]=x+u[m][1],x+=u[m][1]-u[m][0]-1;return h}const J3={resolve:eI,tokenize:rI},tI={partial:!0,tokenize:nI};function eI(e){return z2(e),e}function rI(e,t){let r;return n;function n(l){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(l)}function i(l){return l===null?o(l):qt(l)?e.check(tI,s,o)(l):(e.consume(l),i)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function s(l){return e.consume(l),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function nI(e,t,r){const n=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),se(e,o,"linePrefix")}function o(s){if(s===null||qt(s))return r(s);const l=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(s):e.interrupt(n.parser.constructs.flow,r,t)(s)}}function q2(e,t,r,n,i,o,s,l,u){const h=u||Number.POSITIVE_INFINITY;let d=0;return f;function f(v){return v===60?(e.enter(n),e.enter(i),e.enter(o),e.consume(v),e.exit(o),m):v===null||v===32||v===41||mh(v)?r(v):(e.enter(n),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),C(v))}function m(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(i),e.exit(n),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===62?(e.exit("chunkString"),e.exit(l),m(v)):v===null||v===60||qt(v)?r(v):(e.consume(v),v===92?x:g)}function x(v){return v===60||v===62||v===92?(e.consume(v),g):g(v)}function C(v){return!d&&(v===null||v===41||xe(v))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(n),t(v)):d<h&&v===40?(e.consume(v),d++,C):v===41?(e.consume(v),d--,C):v===null||v===32||v===40||mh(v)?r(v):(e.consume(v),v===92?k:C)}function k(v){return v===40||v===41||v===92?(e.consume(v),C):C(v)}}function W2(e,t,r,n,i,o){const s=this;let l=0,u;return h;function h(g){return e.enter(n),e.enter(i),e.consume(g),e.exit(i),e.enter(o),d}function d(g){return l>999||g===null||g===91||g===93&&!u||g===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?r(g):g===93?(e.exit(o),e.enter(i),e.consume(g),e.exit(i),e.exit(n),t):qt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||qt(g)||l++>999?(e.exit("chunkString"),d(g)):(e.consume(g),u||(u=!ne(g)),g===92?m:f)}function m(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}}function H2(e,t,r,n,i,o){let s;return l;function l(m){return m===34||m===39||m===40?(e.enter(n),e.enter(i),e.consume(m),e.exit(i),s=m===40?41:m,u):r(m)}function u(m){return m===s?(e.enter(i),e.consume(m),e.exit(i),e.exit(n),t):(e.enter(o),h(m))}function h(m){return m===s?(e.exit(o),u(s)):m===null?r(m):qt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),se(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===s||m===null||qt(m)?(e.exit("chunkString"),h(m)):(e.consume(m),m===92?f:d)}function f(m){return m===s||m===92?(e.consume(m),d):d(m)}}function Dl(e,t){let r;return n;function n(i){return qt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):ne(i)?se(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const iI={name:"definition",tokenize:aI},oI={partial:!0,tokenize:sI};function aI(e,t,r){const n=this;let i;return o;function o(g){return e.enter("definition"),s(g)}function s(g){return W2.call(n,e,l,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function l(g){return i=jn(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),u):r(g)}function u(g){return xe(g)?Dl(e,h)(g):h(g)}function h(g){return q2(e,d,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(oI,f,f)(g)}function f(g){return ne(g)?se(e,m,"whitespace")(g):m(g)}function m(g){return g===null||qt(g)?(e.exit("definition"),n.parser.defined.push(i),t(g)):r(g)}}function sI(e,t,r){return n;function n(l){return xe(l)?Dl(e,i)(l):r(l)}function i(l){return H2(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return ne(l)?se(e,s,"whitespace")(l):s(l)}function s(l){return l===null||qt(l)?t(l):r(l)}}const lI={name:"hardBreakEscape",tokenize:cI};function cI(e,t,r){return n;function n(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return qt(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}const uI={name:"headingAtx",resolve:hI,tokenize:dI};function hI(e,t){let r=e.length-2,n=3,i,o;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},o={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},hn(e,n,r-n+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function dI(e,t,r){let n=0;return i;function i(d){return e.enter("atxHeading"),o(d)}function o(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&n++<6?(e.consume(d),s):d===null||xe(d)?(e.exit("atxHeadingSequence"),l(d)):r(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),u(d)):d===null||qt(d)?(e.exit("atxHeading"),t(d)):ne(d)?se(e,l,"whitespace")(d):(e.enter("atxHeadingText"),h(d))}function u(d){return d===35?(e.consume(d),u):(e.exit("atxHeadingSequence"),l(d))}function h(d){return d===null||d===35||xe(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),h)}}const fI=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],WC=["pre","script","style","textarea"],pI={concrete:!0,name:"htmlFlow",resolveTo:yI,tokenize:xI},gI={partial:!0,tokenize:kI},mI={partial:!0,tokenize:CI};function yI(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function xI(e,t,r){const n=this;let i,o,s,l,u;return h;function h(P){return d(P)}function d(P){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(P),f}function f(P){return P===33?(e.consume(P),m):P===47?(e.consume(P),o=!0,C):P===63?(e.consume(P),i=3,n.interrupt?t:R):Or(P)?(e.consume(P),s=String.fromCharCode(P),k):r(P)}function m(P){return P===45?(e.consume(P),i=2,g):P===91?(e.consume(P),i=5,l=0,x):Or(P)?(e.consume(P),i=4,n.interrupt?t:R):r(P)}function g(P){return P===45?(e.consume(P),n.interrupt?t:R):r(P)}function x(P){const ct="CDATA[";return P===ct.charCodeAt(l++)?(e.consume(P),l===ct.length?n.interrupt?t:K:x):r(P)}function C(P){return Or(P)?(e.consume(P),s=String.fromCharCode(P),k):r(P)}function k(P){if(P===null||P===47||P===62||xe(P)){const ct=P===47,lt=s.toLowerCase();return!ct&&!o&&WC.includes(lt)?(i=1,n.interrupt?t(P):K(P)):fI.includes(s.toLowerCase())?(i=6,ct?(e.consume(P),v):n.interrupt?t(P):K(P)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(P):o?w(P):_(P))}return P===45||Tr(P)?(e.consume(P),s+=String.fromCharCode(P),k):r(P)}function v(P){return P===62?(e.consume(P),n.interrupt?t:K):r(P)}function w(P){return ne(P)?(e.consume(P),w):O(P)}function _(P){return P===47?(e.consume(P),O):P===58||P===95||Or(P)?(e.consume(P),A):ne(P)?(e.consume(P),_):O(P)}function A(P){return P===45||P===46||P===58||P===95||Tr(P)?(e.consume(P),A):F(P)}function F(P){return P===61?(e.consume(P),E):ne(P)?(e.consume(P),F):_(P)}function E(P){return P===null||P===60||P===61||P===62||P===96?r(P):P===34||P===39?(e.consume(P),u=P,B):ne(P)?(e.consume(P),E):N(P)}function B(P){return P===u?(e.consume(P),u=null,q):P===null||qt(P)?r(P):(e.consume(P),B)}function N(P){return P===null||P===34||P===39||P===47||P===60||P===61||P===62||P===96||xe(P)?F(P):(e.consume(P),N)}function q(P){return P===47||P===62||ne(P)?_(P):r(P)}function O(P){return P===62?(e.consume(P),D):r(P)}function D(P){return P===null||qt(P)?K(P):ne(P)?(e.consume(P),D):r(P)}function K(P){return P===45&&i===2?(e.consume(P),H):P===60&&i===1?(e.consume(P),G):P===62&&i===4?(e.consume(P),j):P===63&&i===3?(e.consume(P),R):P===93&&i===5?(e.consume(P),Z):qt(P)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(gI,J,tt)(P)):P===null||qt(P)?(e.exit("htmlFlowData"),tt(P)):(e.consume(P),K)}function tt(P){return e.check(mI,U,J)(P)}function U(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),W}function W(P){return P===null||qt(P)?tt(P):(e.enter("htmlFlowData"),K(P))}function H(P){return P===45?(e.consume(P),R):K(P)}function G(P){return P===47?(e.consume(P),s="",$):K(P)}function $(P){if(P===62){const ct=s.toLowerCase();return WC.includes(ct)?(e.consume(P),j):K(P)}return Or(P)&&s.length<8?(e.consume(P),s+=String.fromCharCode(P),$):K(P)}function Z(P){return P===93?(e.consume(P),R):K(P)}function R(P){return P===62?(e.consume(P),j):P===45&&i===2?(e.consume(P),R):K(P)}function j(P){return P===null||qt(P)?(e.exit("htmlFlowData"),J(P)):(e.consume(P),j)}function J(P){return e.exit("htmlFlow"),t(P)}}function CI(e,t,r){const n=this;return i;function i(s){return qt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):r(s)}function o(s){return n.parser.lazy[n.now().line]?r(s):t(s)}}function kI(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(uc,t,r)}}const bI={name:"htmlText",tokenize:vI};function vI(e,t,r){const n=this;let i,o,s;return l;function l(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),u}function u(R){return R===33?(e.consume(R),h):R===47?(e.consume(R),F):R===63?(e.consume(R),_):Or(R)?(e.consume(R),N):r(R)}function h(R){return R===45?(e.consume(R),d):R===91?(e.consume(R),o=0,x):Or(R)?(e.consume(R),w):r(R)}function d(R){return R===45?(e.consume(R),g):r(R)}function f(R){return R===null?r(R):R===45?(e.consume(R),m):qt(R)?(s=f,G(R)):(e.consume(R),f)}function m(R){return R===45?(e.consume(R),g):f(R)}function g(R){return R===62?H(R):R===45?m(R):f(R)}function x(R){const j="CDATA[";return R===j.charCodeAt(o++)?(e.consume(R),o===j.length?C:x):r(R)}function C(R){return R===null?r(R):R===93?(e.consume(R),k):qt(R)?(s=C,G(R)):(e.consume(R),C)}function k(R){return R===93?(e.consume(R),v):C(R)}function v(R){return R===62?H(R):R===93?(e.consume(R),v):C(R)}function w(R){return R===null||R===62?H(R):qt(R)?(s=w,G(R)):(e.consume(R),w)}function _(R){return R===null?r(R):R===63?(e.consume(R),A):qt(R)?(s=_,G(R)):(e.consume(R),_)}function A(R){return R===62?H(R):_(R)}function F(R){return Or(R)?(e.consume(R),E):r(R)}function E(R){return R===45||Tr(R)?(e.consume(R),E):B(R)}function B(R){return qt(R)?(s=B,G(R)):ne(R)?(e.consume(R),B):H(R)}function N(R){return R===45||Tr(R)?(e.consume(R),N):R===47||R===62||xe(R)?q(R):r(R)}function q(R){return R===47?(e.consume(R),H):R===58||R===95||Or(R)?(e.consume(R),O):qt(R)?(s=q,G(R)):ne(R)?(e.consume(R),q):H(R)}function O(R){return R===45||R===46||R===58||R===95||Tr(R)?(e.consume(R),O):D(R)}function D(R){return R===61?(e.consume(R),K):qt(R)?(s=D,G(R)):ne(R)?(e.consume(R),D):q(R)}function K(R){return R===null||R===60||R===61||R===62||R===96?r(R):R===34||R===39?(e.consume(R),i=R,tt):qt(R)?(s=K,G(R)):ne(R)?(e.consume(R),K):(e.consume(R),U)}function tt(R){return R===i?(e.consume(R),i=void 0,W):R===null?r(R):qt(R)?(s=tt,G(R)):(e.consume(R),tt)}function U(R){return R===null||R===34||R===39||R===60||R===61||R===96?r(R):R===47||R===62||xe(R)?q(R):(e.consume(R),U)}function W(R){return R===47||R===62||xe(R)?q(R):r(R)}function H(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):r(R)}function G(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),$}function $(R){return ne(R)?se(e,Z,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):Z(R)}function Z(R){return e.enter("htmlTextData"),s(R)}}const Ey={name:"labelEnd",resolveAll:_I,resolveTo:EI,tokenize:LI},wI={tokenize:BI},SI={tokenize:AI},TI={tokenize:FI};function _I(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&hn(e,0,e.length,r),e}function EI(e,t){let r=e.length,n=0,i,o,s,l;for(;r--;)if(i=e[r][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},d={type:"labelText",start:{...e[o+n+2][1].end},end:{...e[s-2][1].start}};return l=[["enter",u,t],["enter",h,t]],l=wn(l,e.slice(o+1,o+n+3)),l=wn(l,[["enter",d,t]]),l=wn(l,rd(t.parser.constructs.insideSpan.null,e.slice(o+n+4,s-3),t)),l=wn(l,[["exit",d,t],e[s-2],e[s-1],["exit",h,t]]),l=wn(l,e.slice(s+1)),l=wn(l,[["exit",u,t]]),hn(e,o,e.length,l),e}function LI(e,t,r){const n=this;let i=n.events.length,o,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){o=n.events[i][1];break}return l;function l(m){return o?o._inactive?f(m):(s=n.parser.defined.includes(jn(n.sliceSerialize({start:o.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),u):r(m)}function u(m){return m===40?e.attempt(wI,d,s?d:f)(m):m===91?e.attempt(SI,d,s?h:f)(m):s?d(m):f(m)}function h(m){return e.attempt(TI,d,f)(m)}function d(m){return t(m)}function f(m){return o._balanced=!0,r(m)}}function BI(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return xe(f)?Dl(e,o)(f):o(f)}function o(f){return f===41?d(f):q2(e,s,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return xe(f)?Dl(e,u)(f):d(f)}function l(f){return r(f)}function u(f){return f===34||f===39||f===40?H2(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):d(f)}function h(f){return xe(f)?Dl(e,d)(f):d(f)}function d(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function AI(e,t,r){const n=this;return i;function i(l){return W2.call(n,e,o,s,"reference","referenceMarker","referenceString")(l)}function o(l){return n.parser.defined.includes(jn(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(l):r(l)}function s(l){return r(l)}}function FI(e,t,r){return n;function n(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):r(o)}}const II={name:"labelStartImage",resolveAll:Ey.resolveAll,tokenize:MI};function MI(e,t,r){const n=this;return i;function i(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),s):r(l)}function s(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(l):t(l)}}const OI={name:"labelStartLink",resolveAll:Ey.resolveAll,tokenize:RI};function RI(e,t,r){const n=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const kp={name:"lineEnding",tokenize:PI};function PI(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),se(e,t,"linePrefix")}}const Zu={name:"thematicBreak",tokenize:NI};function NI(e,t,r){let n=0,i;return o;function o(h){return e.enter("thematicBreak"),s(h)}function s(h){return i=h,l(h)}function l(h){return h===i?(e.enter("thematicBreakSequence"),u(h)):n>=3&&(h===null||qt(h))?(e.exit("thematicBreak"),t(h)):r(h)}function u(h){return h===i?(e.consume(h),n++,u):(e.exit("thematicBreakSequence"),ne(h)?se(e,l,"whitespace")(h):l(h))}}const Xr={continuation:{tokenize:zI},exit:WI,name:"list",tokenize:jI},DI={partial:!0,tokenize:HI},$I={partial:!0,tokenize:qI};function jI(e,t,r){const n=this,i=n.events[n.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return l;function l(g){const x=n.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!n.containerState.marker||g===n.containerState.marker:nm(g)){if(n.containerState.type||(n.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Zu,r,h)(g):h(g);if(!n.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(g)}return r(g)}function u(g){return nm(g)&&++s<10?(e.consume(g),u):(!n.interrupt||s<2)&&(n.containerState.marker?g===n.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),h(g)):r(g)}function h(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||g,e.check(uc,n.interrupt?r:d,e.attempt(DI,m,f))}function d(g){return n.containerState.initialBlankLine=!0,o++,m(g)}function f(g){return ne(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),m):r(g)}function m(g){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function zI(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(uc,i,o);function i(l){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,se(e,t,"listItemIndent",n.containerState.size+1)(l)}function o(l){return n.containerState.furtherBlankLines||!ne(l)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(l)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt($I,t,s)(l))}function s(l){return n.containerState._closeFlow=!0,n.interrupt=void 0,se(e,e.attempt(Xr,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function qI(e,t,r){const n=this;return se(e,i,"listItemIndent",n.containerState.size+1);function i(o){const s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?t(o):r(o)}}function WI(e){e.exit(this.containerState.type)}function HI(e,t,r){const n=this;return se(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=n.events[n.events.length-1];return!ne(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}const HC={name:"setextUnderline",resolveTo:UI,tokenize:VI};function UI(e,t){let r=e.length,n,i,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=s,e.push(["exit",s,t]),e}function VI(e,t,r){const n=this;let i;return o;function o(h){let d=n.events.length,f;for(;d--;)if(n.events[d][1].type!=="lineEnding"&&n.events[d][1].type!=="linePrefix"&&n.events[d][1].type!=="content"){f=n.events[d][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=h,s(h)):r(h)}function s(h){return e.enter("setextHeadingLineSequence"),l(h)}function l(h){return h===i?(e.consume(h),l):(e.exit("setextHeadingLineSequence"),ne(h)?se(e,u,"lineSuffix")(h):u(h))}function u(h){return h===null||qt(h)?(e.exit("setextHeadingLine"),t(h)):r(h)}}const YI={tokenize:GI};function GI(e){const t=this,r=e.attempt(uc,n,e.attempt(this.parser.constructs.flowInitial,i,se(e,e.attempt(this.parser.constructs.flow,i,e.attempt(J3,i)),"linePrefix")));return r;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const XI={resolveAll:V2()},KI=U2("string"),QI=U2("text");function U2(e){return{resolveAll:V2(e==="text"?ZI:void 0),tokenize:t};function t(r){const n=this,i=this.parser.constructs[e],o=r.attempt(i,s,l);return s;function s(d){return h(d)?o(d):l(d)}function l(d){if(d===null){r.consume(d);return}return r.enter("data"),r.consume(d),u}function u(d){return h(d)?(r.exit("data"),o(d)):(r.consume(d),u)}function h(d){if(d===null)return!0;const f=i[d];let m=-1;if(f)for(;++m<f.length;){const g=f[m];if(!g.previous||g.previous.call(n,n.previous))return!0}return!1}}}function V2(e){return t;function t(r,n){let i=-1,o;for(;++i<=r.length;)o===void 0?r[i]&&r[i][1].type==="data"&&(o=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==o+2&&(r[o][1].end=r[i-1][1].end,r.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(r,n):r}}function ZI(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let o=i.length,s=-1,l=0,u;for(;o--;){const h=i[o];if(typeof h=="string"){for(s=h.length;h.charCodeAt(s-1)===32;)l++,s--;if(s)break;s=-1}else if(h===-2)u=!0,l++;else if(h!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(l=0),l){const h={type:r===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:n.start._bufferIndex+s,_index:n.start._index+o,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...h.start},n.start.offset===n.end.offset?Object.assign(n,h):(e.splice(r,0,["enter",h,t],["exit",h,t]),r+=2)}r++}return e}const JI={42:Xr,43:Xr,45:Xr,48:Xr,49:Xr,50:Xr,51:Xr,52:Xr,53:Xr,54:Xr,55:Xr,56:Xr,57:Xr,62:D2},tM={91:iI},eM={[-2]:Cp,[-1]:Cp,32:Cp},rM={35:uI,42:Zu,45:[HC,Zu],60:pI,61:HC,95:Zu,96:qC,126:qC},nM={38:j2,92:$2},iM={[-5]:kp,[-4]:kp,[-3]:kp,33:II,38:j2,42:im,60:[O3,bI],91:OI,92:[lI,$2],93:Ey,95:im,96:Y3},oM={null:[im,XI]},aM={null:[42,95]},sM={null:[]},lM=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:aM,contentInitial:tM,disable:sM,document:JI,flow:rM,flowInitial:eM,insideSpan:oM,string:nM,text:iM},Symbol.toStringTag,{value:"Module"}));function cM(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},o=[];let s=[],l=[];const u={attempt:B(F),check:B(E),consume:w,enter:_,exit:A,interrupt:B(E,{interrupt:!0})},h={code:null,containerState:{},defineSkip:C,events:[],now:x,parser:e,previous:null,sliceSerialize:m,sliceStream:g,write:f};let d=t.tokenize.call(h,u);return t.resolveAll&&o.push(t),h;function f(D){return s=wn(s,D),k(),s[s.length-1]!==null?[]:(N(t,0),h.events=rd(o,h.events,h),h.events)}function m(D,K){return hM(g(D),K)}function g(D){return uM(s,D)}function x(){const{_bufferIndex:D,_index:K,line:tt,column:U,offset:W}=n;return{_bufferIndex:D,_index:K,line:tt,column:U,offset:W}}function C(D){i[D.line]=D.column,O()}function k(){let D;for(;n._index<s.length;){const K=s[n._index];if(typeof K=="string")for(D=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===D&&n._bufferIndex<K.length;)v(K.charCodeAt(n._bufferIndex));else v(K)}}function v(D){d=d(D)}function w(D){qt(D)?(n.line++,n.column=1,n.offset+=D===-3?2:1,O()):D!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),h.previous=D}function _(D,K){const tt=K||{};return tt.type=D,tt.start=x(),h.events.push(["enter",tt,h]),l.push(tt),tt}function A(D){const K=l.pop();return K.end=x(),h.events.push(["exit",K,h]),K}function F(D,K){N(D,K.from)}function E(D,K){K.restore()}function B(D,K){return tt;function tt(U,W,H){let G,$,Z,R;return Array.isArray(U)?J(U):"tokenize"in U?J([U]):j(U);function j(mt){return wt;function wt(St){const Dt=St!==null&&mt[St],xt=St!==null&&mt.null,_t=[...Array.isArray(Dt)?Dt:Dt?[Dt]:[],...Array.isArray(xt)?xt:xt?[xt]:[]];return J(_t)(St)}}function J(mt){return G=mt,$=0,mt.length===0?H:P(mt[$])}function P(mt){return wt;function wt(St){return R=q(),Z=mt,mt.partial||(h.currentConstruct=mt),mt.name&&h.parser.constructs.disable.null.includes(mt.name)?lt():mt.tokenize.call(K?Object.assign(Object.create(h),K):h,u,ct,lt)(St)}}function ct(mt){return D(Z,R),W}function lt(mt){return R.restore(),++$<G.length?P(G[$]):H}}}function N(D,K){D.resolveAll&&!o.includes(D)&&o.push(D),D.resolve&&hn(h.events,K,h.events.length-K,D.resolve(h.events.slice(K),h)),D.resolveTo&&(h.events=D.resolveTo(h.events,h))}function q(){const D=x(),K=h.previous,tt=h.currentConstruct,U=h.events.length,W=Array.from(l);return{from:U,restore:H};function H(){n=D,h.previous=K,h.currentConstruct=tt,h.events.length=U,l=W,O()}}function O(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function uM(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(r===i)s=[e[r].slice(n,o)];else{if(s=e.slice(r,i),n>-1){const l=s[0];typeof l=="string"?s[0]=l.slice(n):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function hM(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const o=e[r];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
|
|
131
|
+
`;break}case-3:{s=`\r
|
|
132
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,n.push(s)}return n.join("")}function dM(e){const n={constructs:P2([lM,...(e||{}).extensions||[]]),content:i(E3),defined:[],document:i(B3),flow:i(YI),lazy:{},string:i(KI),text:i(QI)};return n;function i(o){return s;function s(l){return cM(n,o,l)}}}function fM(e){for(;!z2(e););return e}const UC=/[\0\t\n\r]/g;function pM(){let e=1,t="",r=!0,n;return i;function i(o,s,l){const u=[];let h,d,f,m,g;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),f=0,t="",r&&(o.charCodeAt(0)===65279&&f++,r=void 0);f<o.length;){if(UC.lastIndex=f,h=UC.exec(o),m=h&&h.index!==void 0?h.index:o.length,g=o.charCodeAt(m),!h){t=o.slice(f);break}if(g===10&&f===m&&n)u.push(-3),n=void 0;else switch(n&&(u.push(-5),n=void 0),f<m&&(u.push(o.slice(f,m)),e+=m-f),g){case 0:{u.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,u.push(-2);e++<d;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:n=!0,e=1}f=m+1}return l&&(n&&u.push(-5),t&&u.push(t),u.push(null)),u}}const gM=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function mM(e){return e.replace(gM,yM)}function yM(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),o=i===120||i===88;return N2(r.slice(o?2:1),o?16:10)}return _y(r)||e}const Y2={}.hasOwnProperty;function xM(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),CM(r)(fM(dM(r).document().write(pM()(e,t,!0))))}function CM(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(zr),autolinkProtocol:q,autolinkEmail:q,atxHeading:o(Ce),blockQuote:o(xt),characterEscape:q,characterReference:q,codeFenced:o(_t),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(_t,s),codeText:o(re,s),codeTextData:q,data:q,codeFlowValue:q,definition:o(Qt),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Ue),hardBreakEscape:o(je),hardBreakTrailing:o(je),htmlFlow:o(jr,s),htmlFlowData:q,htmlText:o(jr,s),htmlTextData:q,image:o(Fe),label:s,link:o(zr),listItem:o(Br),listItemValue:m,listOrdered:o(ze,f),listUnordered:o(ze),paragraph:o(Ar),reference:P,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Ce),strong:o(Yn),thematicBreak:o(Le)},exit:{atxHeading:u(),atxHeadingSequence:F,autolink:u(),autolinkEmail:Dt,autolinkProtocol:St,blockQuote:u(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:lt,characterReferenceMarkerNumeric:lt,characterReferenceValue:mt,characterReference:wt,codeFenced:u(k),codeFencedFence:C,codeFencedFenceInfo:g,codeFencedFenceMeta:x,codeFlowValue:O,codeIndented:u(v),codeText:u(W),codeTextData:O,data:O,definition:u(),definitionDestinationString:A,definitionLabelString:w,definitionTitleString:_,emphasis:u(),hardBreakEscape:u(K),hardBreakTrailing:u(K),htmlFlow:u(tt),htmlFlowData:O,htmlText:u(U),htmlTextData:O,image:u(G),label:Z,labelText:$,lineEnding:D,link:u(H),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ct,resourceDestinationString:R,resourceTitleString:j,resource:J,setextHeading:u(N),setextHeadingLineSequence:B,setextHeadingText:E,strong:u(),thematicBreak:u()}};G2(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(ot){let ut={type:"root",children:[]};const kt={stack:[ut],tokenStack:[],config:t,enter:l,exit:h,buffer:s,resume:d,data:r},$t=[];let Xt=-1;for(;++Xt<ot.length;)if(ot[Xt][1].type==="listOrdered"||ot[Xt][1].type==="listUnordered")if(ot[Xt][0]==="enter")$t.push(Xt);else{const Se=$t.pop();Xt=i(ot,Se,Xt)}for(Xt=-1;++Xt<ot.length;){const Se=t[ot[Xt][0]];Y2.call(Se,ot[Xt][1].type)&&Se[ot[Xt][1].type].call(Object.assign({sliceSerialize:ot[Xt][2].sliceSerialize},kt),ot[Xt][1])}if(kt.tokenStack.length>0){const Se=kt.tokenStack[kt.tokenStack.length-1];(Se[1]||VC).call(kt,void 0,Se[0])}for(ut.position={start:no(ot.length>0?ot[0][1].start:{line:1,column:1,offset:0}),end:no(ot.length>0?ot[ot.length-2][1].end:{line:1,column:1,offset:0})},Xt=-1;++Xt<t.transforms.length;)ut=t.transforms[Xt](ut)||ut;return ut}function i(ot,ut,kt){let $t=ut-1,Xt=-1,Se=!1,Ve,Ie,qe,ge;for(;++$t<=kt;){const me=ot[$t];switch(me[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{me[0]==="enter"?Xt++:Xt--,ge=void 0;break}case"lineEndingBlank":{me[0]==="enter"&&(Ve&&!ge&&!Xt&&!qe&&(qe=$t),ge=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ge=void 0}if(!Xt&&me[0]==="enter"&&me[1].type==="listItemPrefix"||Xt===-1&&me[0]==="exit"&&(me[1].type==="listUnordered"||me[1].type==="listOrdered")){if(Ve){let Ye=$t;for(Ie=void 0;Ye--;){const Pe=ot[Ye];if(Pe[1].type==="lineEnding"||Pe[1].type==="lineEndingBlank"){if(Pe[0]==="exit")continue;Ie&&(ot[Ie][1].type="lineEndingBlank",Se=!0),Pe[1].type="lineEnding",Ie=Ye}else if(!(Pe[1].type==="linePrefix"||Pe[1].type==="blockQuotePrefix"||Pe[1].type==="blockQuotePrefixWhitespace"||Pe[1].type==="blockQuoteMarker"||Pe[1].type==="listItemIndent"))break}qe&&(!Ie||qe<Ie)&&(Ve._spread=!0),Ve.end=Object.assign({},Ie?ot[Ie][1].start:me[1].end),ot.splice(Ie||$t,0,["exit",Ve,me[2]]),$t++,kt++}if(me[1].type==="listItemPrefix"){const Ye={type:"listItem",_spread:!1,start:Object.assign({},me[1].start),end:void 0};Ve=Ye,ot.splice($t,0,["enter",Ye,me[2]]),$t++,kt++,qe=void 0,ge=!0}}}return ot[ut][1]._spread=Se,kt}function o(ot,ut){return kt;function kt($t){l.call(this,ot($t),$t),ut&&ut.call(this,$t)}}function s(){this.stack.push({type:"fragment",children:[]})}function l(ot,ut,kt){this.stack[this.stack.length-1].children.push(ot),this.stack.push(ot),this.tokenStack.push([ut,kt||void 0]),ot.position={start:no(ut.start),end:void 0}}function u(ot){return ut;function ut(kt){ot&&ot.call(this,kt),h.call(this,kt)}}function h(ot,ut){const kt=this.stack.pop(),$t=this.tokenStack.pop();if($t)$t[0].type!==ot.type&&(ut?ut.call(this,ot,$t[0]):($t[1]||VC).call(this,ot,$t[0]));else throw new Error("Cannot close `"+ot.type+"` ("+Nl({start:ot.start,end:ot.end})+"): it’s not open");kt.position.end=no(ot.end)}function d(){return Ty(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function m(ot){if(this.data.expectingFirstListItemValue){const ut=this.stack[this.stack.length-2];ut.start=Number.parseInt(this.sliceSerialize(ot),10),this.data.expectingFirstListItemValue=void 0}}function g(){const ot=this.resume(),ut=this.stack[this.stack.length-1];ut.lang=ot}function x(){const ot=this.resume(),ut=this.stack[this.stack.length-1];ut.meta=ot}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const ot=this.resume(),ut=this.stack[this.stack.length-1];ut.value=ot.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const ot=this.resume(),ut=this.stack[this.stack.length-1];ut.value=ot.replace(/(\r?\n|\r)$/g,"")}function w(ot){const ut=this.resume(),kt=this.stack[this.stack.length-1];kt.label=ut,kt.identifier=jn(this.sliceSerialize(ot)).toLowerCase()}function _(){const ot=this.resume(),ut=this.stack[this.stack.length-1];ut.title=ot}function A(){const ot=this.resume(),ut=this.stack[this.stack.length-1];ut.url=ot}function F(ot){const ut=this.stack[this.stack.length-1];if(!ut.depth){const kt=this.sliceSerialize(ot).length;ut.depth=kt}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function B(ot){const ut=this.stack[this.stack.length-1];ut.depth=this.sliceSerialize(ot).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function q(ot){const kt=this.stack[this.stack.length-1].children;let $t=kt[kt.length-1];(!$t||$t.type!=="text")&&($t=mr(),$t.position={start:no(ot.start),end:void 0},kt.push($t)),this.stack.push($t)}function O(ot){const ut=this.stack.pop();ut.value+=this.sliceSerialize(ot),ut.position.end=no(ot.end)}function D(ot){const ut=this.stack[this.stack.length-1];if(this.data.atHardBreak){const kt=ut.children[ut.children.length-1];kt.position.end=no(ot.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ut.type)&&(q.call(this,ot),O.call(this,ot))}function K(){this.data.atHardBreak=!0}function tt(){const ot=this.resume(),ut=this.stack[this.stack.length-1];ut.value=ot}function U(){const ot=this.resume(),ut=this.stack[this.stack.length-1];ut.value=ot}function W(){const ot=this.resume(),ut=this.stack[this.stack.length-1];ut.value=ot}function H(){const ot=this.stack[this.stack.length-1];if(this.data.inReference){const ut=this.data.referenceType||"shortcut";ot.type+="Reference",ot.referenceType=ut,delete ot.url,delete ot.title}else delete ot.identifier,delete ot.label;this.data.referenceType=void 0}function G(){const ot=this.stack[this.stack.length-1];if(this.data.inReference){const ut=this.data.referenceType||"shortcut";ot.type+="Reference",ot.referenceType=ut,delete ot.url,delete ot.title}else delete ot.identifier,delete ot.label;this.data.referenceType=void 0}function $(ot){const ut=this.sliceSerialize(ot),kt=this.stack[this.stack.length-2];kt.label=mM(ut),kt.identifier=jn(ut).toLowerCase()}function Z(){const ot=this.stack[this.stack.length-1],ut=this.resume(),kt=this.stack[this.stack.length-1];if(this.data.inReference=!0,kt.type==="link"){const $t=ot.children;kt.children=$t}else kt.alt=ut}function R(){const ot=this.resume(),ut=this.stack[this.stack.length-1];ut.url=ot}function j(){const ot=this.resume(),ut=this.stack[this.stack.length-1];ut.title=ot}function J(){this.data.inReference=void 0}function P(){this.data.referenceType="collapsed"}function ct(ot){const ut=this.resume(),kt=this.stack[this.stack.length-1];kt.label=ut,kt.identifier=jn(this.sliceSerialize(ot)).toLowerCase(),this.data.referenceType="full"}function lt(ot){this.data.characterReferenceType=ot.type}function mt(ot){const ut=this.sliceSerialize(ot),kt=this.data.characterReferenceType;let $t;kt?($t=N2(ut,kt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):$t=_y(ut);const Xt=this.stack[this.stack.length-1];Xt.value+=$t}function wt(ot){const ut=this.stack.pop();ut.position.end=no(ot.end)}function St(ot){O.call(this,ot);const ut=this.stack[this.stack.length-1];ut.url=this.sliceSerialize(ot)}function Dt(ot){O.call(this,ot);const ut=this.stack[this.stack.length-1];ut.url="mailto:"+this.sliceSerialize(ot)}function xt(){return{type:"blockquote",children:[]}}function _t(){return{type:"code",lang:null,meta:null,value:""}}function re(){return{type:"inlineCode",value:""}}function Qt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ue(){return{type:"emphasis",children:[]}}function Ce(){return{type:"heading",depth:0,children:[]}}function je(){return{type:"break"}}function jr(){return{type:"html",value:""}}function Fe(){return{type:"image",title:null,url:"",alt:null}}function zr(){return{type:"link",title:null,url:"",children:[]}}function ze(ot){return{type:"list",ordered:ot.type==="listOrdered",start:null,spread:ot._spread,children:[]}}function Br(ot){return{type:"listItem",spread:ot._spread,checked:null,children:[]}}function Ar(){return{type:"paragraph",children:[]}}function Yn(){return{type:"strong",children:[]}}function mr(){return{type:"text",value:""}}function Le(){return{type:"thematicBreak"}}}function no(e){return{line:e.line,column:e.column,offset:e.offset}}function G2(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?G2(e,n):kM(e,n)}}function kM(e,t){let r;for(r in t)if(Y2.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function VC(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Nl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Nl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Nl({start:t.start,end:t.end})+") is still open")}function bM(e){const t=this;t.parser=r;function r(n){return xM(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function vM(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function wM(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
133
|
+
`}]}function SM(e,t){const r=t.value?t.value+`
|
|
134
|
+
`:"",n={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(n.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function TM(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _M(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function EM(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=Cs(n.toLowerCase()),o=e.footnoteOrder.indexOf(n);let s,l=e.footnoteCounts.get(n);l===void 0?(l=0,e.footnoteOrder.push(n),s=e.footnoteOrder.length):s=o+1,l+=1,e.footnoteCounts.set(n,l);const u={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const h={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,h),e.applyData(t,h)}function LM(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function BM(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function X2(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=n:i.push({type:"text",value:n}),i}function AM(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return X2(e,t);const i={src:Cs(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function FM(e,t){const r={src:Cs(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function IM(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function MM(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return X2(e,t);const i={href:Cs(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function OM(e,t){const r={href:Cs(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function RM(e,t,r){const n=e.all(t),i=r?PM(r):K2(t),o={},s=[];if(typeof t.checked=="boolean"){const d=n[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<n.length;){const d=n[l];(i||l!==0||d.type!=="element"||d.tagName!=="p")&&s.push({type:"text",value:`
|
|
135
|
+
`}),d.type==="element"&&d.tagName==="p"&&!i?s.push(...d.children):s.push(d)}const u=n[n.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
|
|
136
|
+
`});const h={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,h),e.applyData(t,h)}function PM(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=K2(r[n])}return t}function K2(e){const t=e.spread;return t??e.children.length>1}function NM(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){const s=n[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,o),e.applyData(t,o)}function DM(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $M(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function jM(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function zM(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],s),i.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},l=by(t.children[1]),u=B2(t.children[t.children.length-1]);l&&u&&(s.position={start:l,end:u}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function qM(e,t,r){const n=r?r.children:void 0,o=(n?n.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,l=s?s.length:t.children.length;let u=-1;const h=[];for(;++u<l;){const f=t.children[u],m={},g=s?s[u]:void 0;g&&(m.align=g);let x={type:"element",tagName:o,properties:m,children:[]};f&&(x.children=e.all(f),e.patch(f,x),x=e.applyData(f,x)),h.push(x)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,d),e.applyData(t,d)}function WM(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const YC=9,GC=32;function HM(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const o=[];for(;n;)o.push(XC(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return o.push(XC(t.slice(i),i>0,!1)),o.join("")}function XC(e,t,r){let n=0,i=e.length;if(t){let o=e.codePointAt(n);for(;o===YC||o===GC;)n++,o=e.codePointAt(n)}if(r){let o=e.codePointAt(i-1);for(;o===YC||o===GC;)i--,o=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function UM(e,t){const r={type:"text",value:HM(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function VM(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const YM={blockquote:vM,break:wM,code:SM,delete:TM,emphasis:_M,footnoteReference:EM,heading:LM,html:BM,imageReference:AM,image:FM,inlineCode:IM,linkReference:MM,link:OM,listItem:RM,list:NM,paragraph:DM,root:$M,strong:jM,table:zM,tableCell:WM,tableRow:qM,text:UM,thematicBreak:VM,toml:Fu,yaml:Fu,definition:Fu,footnoteDefinition:Fu};function Fu(){}const Q2=-1,nd=0,$l=1,yh=2,Ly=3,By=4,Ay=5,Fy=6,Z2=7,J2=8,KC=typeof self=="object"?self:globalThis,GM=(e,t)=>{const r=(i,o)=>(e.set(o,i),i),n=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case nd:case Q2:return r(s,i);case $l:{const l=r([],i);for(const u of s)l.push(n(u));return l}case yh:{const l=r({},i);for(const[u,h]of s)l[n(u)]=n(h);return l}case Ly:return r(new Date(s),i);case By:{const{source:l,flags:u}=s;return r(new RegExp(l,u),i)}case Ay:{const l=r(new Map,i);for(const[u,h]of s)l.set(n(u),n(h));return l}case Fy:{const l=r(new Set,i);for(const u of s)l.add(n(u));return l}case Z2:{const{name:l,message:u}=s;return r(new KC[l](u),i)}case J2:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:l}=new Uint8Array(s);return r(new DataView(l),s)}}return r(new KC[o](s),i)};return n},QC=e=>GM(new Map,e)(0),Ma="",{toString:XM}={},{keys:KM}=Object,pl=e=>{const t=typeof e;if(t!=="object"||!e)return[nd,t];const r=XM.call(e).slice(8,-1);switch(r){case"Array":return[$l,Ma];case"Object":return[yh,Ma];case"Date":return[Ly,Ma];case"RegExp":return[By,Ma];case"Map":return[Ay,Ma];case"Set":return[Fy,Ma];case"DataView":return[$l,r]}return r.includes("Array")?[$l,r]:r.includes("Error")?[Z2,r]:[yh,r]},Iu=([e,t])=>e===nd&&(t==="function"||t==="symbol"),QM=(e,t,r,n)=>{const i=(s,l)=>{const u=n.push(s)-1;return r.set(l,u),u},o=s=>{if(r.has(s))return r.get(s);let[l,u]=pl(s);switch(l){case nd:{let d=s;switch(u){case"bigint":l=J2,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);d=null;break;case"undefined":return i([Q2],s)}return i([l,d],s)}case $l:{if(u){let m=s;return u==="DataView"?m=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(m=new Uint8Array(s)),i([u,[...m]],s)}const d=[],f=i([l,d],s);for(const m of s)d.push(o(m));return f}case yh:{if(u)switch(u){case"BigInt":return i([u,s.toString()],s);case"Boolean":case"Number":case"String":return i([u,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const d=[],f=i([l,d],s);for(const m of KM(s))(e||!Iu(pl(s[m])))&&d.push([o(m),o(s[m])]);return f}case Ly:return i([l,s.toISOString()],s);case By:{const{source:d,flags:f}=s;return i([l,{source:d,flags:f}],s)}case Ay:{const d=[],f=i([l,d],s);for(const[m,g]of s)(e||!(Iu(pl(m))||Iu(pl(g))))&&d.push([o(m),o(g)]);return f}case Fy:{const d=[],f=i([l,d],s);for(const m of s)(e||!Iu(pl(m)))&&d.push(o(m));return f}}const{message:h}=s;return i([l,{name:u,message:h}],s)};return o},ZC=(e,{json:t,lossy:r}={})=>{const n=[];return QM(!(t||r),!!t,new Map,n)(e),n},xh=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?QC(ZC(e,t)):structuredClone(e):(e,t)=>QC(ZC(e,t));function ZM(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function JM(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function tO(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||ZM,n=e.options.footnoteBackLabel||JM,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let u=-1;for(;++u<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[u]);if(!h)continue;const d=e.all(h),f=String(h.identifier).toUpperCase(),m=Cs(f.toLowerCase());let g=0;const x=[],C=e.footnoteCounts.get(f);for(;C!==void 0&&++g<=C;){x.length>0&&x.push({type:"text",value:" "});let w=typeof r=="string"?r:r(u,g);typeof w=="string"&&(w={type:"text",value:w}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(u,g),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const k=d[d.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const w=k.children[k.children.length-1];w&&w.type==="text"?w.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...x)}else d.push(...x);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(d,!0)};e.patch(h,v),l.push(v)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...xh(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
137
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
|
|
138
|
+
`}]}}const id=(function(e){if(e==null)return iO;if(typeof e=="function")return od(e);if(typeof e=="object")return Array.isArray(e)?eO(e):rO(e);if(typeof e=="string")return nO(e);throw new Error("Expected function, string, or object as test")});function eO(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=id(e[r]);return od(n);function n(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function rO(e){const t=e;return od(r);function r(n){const i=n;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function nO(e){return od(t);function t(r){return r&&r.type===e}}function od(e){return t;function t(r,n,i){return!!(oO(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function iO(){return!0}function oO(e){return e!==null&&typeof e=="object"&&"type"in e}const tw=[],aO=!0,om=!1,sO="skip";function ew(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;const o=id(i),s=n?-1:1;l(e,void 0,[])();function l(u,h,d){const f=u&&typeof u=="object"?u:{};if(typeof f.type=="string"){const g=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(u.type+(g?"<"+g+">":""))+")"})}return m;function m(){let g=tw,x,C,k;if((!t||o(u,h,d[d.length-1]||void 0))&&(g=lO(r(u,d)),g[0]===om))return g;if("children"in u&&u.children){const v=u;if(v.children&&g[0]!==sO)for(C=(n?v.children.length:-1)+s,k=d.concat(v);C>-1&&C<v.children.length;){const w=v.children[C];if(x=l(w,C,k)(),x[0]===om)return x;C=typeof x[1]=="number"?x[1]:C+s}}return g}}}function lO(e){return Array.isArray(e)?e:typeof e=="number"?[aO,e]:e==null?tw:[e]}function Iy(e,t,r,n){let i,o,s;typeof t=="function"&&typeof r!="function"?(o=void 0,s=t,i=r):(o=t,s=r,i=n),ew(e,o,l,i);function l(u,h){const d=h[h.length-1],f=d?d.children.indexOf(u):void 0;return s(u,f,d)}}const am={}.hasOwnProperty,cO={};function uO(e,t){const r=t||cO,n=new Map,i=new Map,o=new Map,s={...YM,...r.handlers},l={all:h,applyData:dO,definitionById:n,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:u,options:r,patch:hO,wrap:pO};return Iy(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const f=d.type==="definition"?n:i,m=String(d.identifier).toUpperCase();f.has(m)||f.set(m,d)}}),l;function u(d,f){const m=d.type,g=l.handlers[m];if(am.call(l.handlers,m)&&g)return g(l,d,f);if(l.options.passThrough&&l.options.passThrough.includes(m)){if("children"in d){const{children:C,...k}=d,v=xh(k);return v.children=l.all(d),v}return xh(d)}return(l.options.unknownHandler||fO)(l,d,f)}function h(d){const f=[];if("children"in d){const m=d.children;let g=-1;for(;++g<m.length;){const x=l.one(m[g],d);if(x){if(g&&m[g-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=JC(x.value)),!Array.isArray(x)&&x.type==="element")){const C=x.children[0];C&&C.type==="text"&&(C.value=JC(C.value))}Array.isArray(x)?f.push(...x):f.push(x)}}}return f}}function hO(e,t){e.position&&(t.position=J5(e))}function dO(e,t){let r=t;if(e&&e.data){const n=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&o&&Object.assign(r.properties,xh(o)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function fO(e,t){const r=t.data||{},n="value"in t&&!(am.call(r,"hProperties")||am.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pO(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
|
|
139
|
+
`});++n<e.length;)n&&r.push({type:"text",value:`
|
|
140
|
+
`}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
141
|
+
`}),r}function JC(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function tk(e,t){const r=uO(e,t),n=r.one(e,void 0),i=tO(r),o=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
|
142
|
+
`},i),o}function gO(e,t){return e&&"run"in e?async function(r,n){const i=tk(r,{file:n,...t});await e.run(i,n)}:function(r,n){return tk(r,{file:n,...e||t})}}function ek(e){if(e)throw e}var bp,rk;function mO(){if(rk)return bp;rk=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},o=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var d=e.call(h,"constructor"),f=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!d&&!f)return!1;var m;for(m in h);return typeof m>"u"||e.call(h,m)},s=function(h,d){r&&d.name==="__proto__"?r(h,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):h[d.name]=d.newValue},l=function(h,d){if(d==="__proto__")if(e.call(h,d)){if(n)return n(h,d).value}else return;return h[d]};return bp=function u(){var h,d,f,m,g,x,C=arguments[0],k=1,v=arguments.length,w=!1;for(typeof C=="boolean"&&(w=C,C=arguments[1]||{},k=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});k<v;++k)if(h=arguments[k],h!=null)for(d in h)f=l(C,d),m=l(h,d),C!==m&&(w&&m&&(o(m)||(g=i(m)))?(g?(g=!1,x=f&&i(f)?f:[]):x=f&&o(f)?f:{},s(C,{name:d,newValue:u(w,x,m)})):typeof m<"u"&&s(C,{name:d,newValue:m}));return C},bp}var yO=mO();const vp=Ze(yO);function sm(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function xO(){const e=[],t={run:r,use:n};return t;function r(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);l(null,...i);function l(u,...h){const d=e[++o];let f=-1;if(u){s(u);return}for(;++f<i.length;)(h[f]===null||h[f]===void 0)&&(h[f]=i[f]);i=h,d?CO(d,l)(...h):s(null,...h)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function CO(e,t){let r;return n;function n(...s){const l=e.length>s.length;let u;l&&s.push(i);try{u=e.apply(this,s)}catch(h){const d=h;if(l&&r)throw d;return i(d)}l||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(s,...l){r||(r=!0,t(s,...l))}function o(s){i(null,s)}}const ni={basename:kO,dirname:bO,extname:vO,join:wO,sep:"/"};function kO(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');hc(e);let r=0,n=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){r=i+1;break}}else n<0&&(o=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let s=-1,l=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){r=i+1;break}}else s<0&&(o=!0,s=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(n=i):(l=-1,n=s));return r===n?n=s:n<0&&(n=e.length),e.slice(r,n)}function bO(e){if(hc(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function vO(e){hc(e);let t=e.length,r=-1,n=0,i=-1,o=0,s;for(;t--;){const l=e.codePointAt(t);if(l===47){if(s){n=t+1;break}continue}r<0&&(s=!0,r=t+1),l===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||r<0||o===0||o===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function wO(...e){let t=-1,r;for(;++t<e.length;)hc(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":SO(r)}function SO(e){hc(e);const t=e.codePointAt(0)===47;let r=TO(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function TO(e,t){let r="",n=0,i=-1,o=0,s=-1,l,u;for(;++s<=e.length;){if(s<e.length)l=e.codePointAt(s);else{if(l===47)break;l=47}if(l===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(u=r.lastIndexOf("/"),u!==r.length-1){u<0?(r="",n=0):(r=r.slice(0,u),n=r.length-1-r.lastIndexOf("/")),i=s,o=0;continue}}else if(r.length>0){r="",n=0,i=s,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,s):r=e.slice(i+1,s),n=s-i-1;i=s,o=0}else l===46&&o>-1?o++:o=-1}return r}function hc(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const _O={cwd:EO};function EO(){return"/"}function lm(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function LO(e){if(typeof e=="string")e=new URL(e);else if(!lm(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return BO(e)}function BO(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const wp=["history","path","basename","stem","extname","dirname"];class rw{constructor(t){let r;t?lm(t)?r={path:t}:typeof t=="string"||AO(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":_O.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<wp.length;){const o=wp[n];o in r&&r[o]!==void 0&&r[o]!==null&&(this[o]=o==="history"?[...r[o]]:r[o])}let i;for(i in r)wp.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?ni.basename(this.path):void 0}set basename(t){Tp(t,"basename"),Sp(t,"basename"),this.path=ni.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ni.dirname(this.path):void 0}set dirname(t){nk(this.basename,"dirname"),this.path=ni.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ni.extname(this.path):void 0}set extname(t){if(Sp(t,"extname"),nk(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ni.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){lm(t)&&(t=LO(t)),Tp(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ni.basename(this.path,this.extname):void 0}set stem(t){Tp(t,"stem"),Sp(t,"stem"),this.path=ni.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new Er(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Sp(e,t){if(e&&e.includes(ni.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ni.sep+"`")}function Tp(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function nk(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function AO(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const FO=(function(e){const n=this.constructor.prototype,i=n[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,n),o}),IO={}.hasOwnProperty;class My extends FO{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=xO()}copy(){const t=new My;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(vp(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Lp("data",this.frozen),this.namespace[t]=r,this):IO.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Lp("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Mu(t),n=this.parser||this.Parser;return _p("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),_p("process",this.parser||this.Parser),Ep("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(o,s){const l=Mu(t),u=n.parse(l);n.run(u,l,function(d,f,m){if(d||!f||!m)return h(d);const g=f,x=n.stringify(g,m);RO(x)?m.value=x:m.result=x,h(d,m)});function h(d,f){d||!f?s(d):o?o(f):r(void 0,f)}}}processSync(t){let r=!1,n;return this.freeze(),_p("processSync",this.parser||this.Parser),Ep("processSync",this.compiler||this.Compiler),this.process(t,i),ok("processSync","process",r),n;function i(o,s){r=!0,ek(o),n=s}}run(t,r,n){ik(t),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?o(void 0,n):new Promise(o);function o(s,l){const u=Mu(r);i.run(t,u,h);function h(d,f,m){const g=f||t;d?l(d):s?s(g):n(void 0,g,m)}}}runSync(t,r){let n=!1,i;return this.run(t,r,o),ok("runSync","run",n),i;function o(s,l){ek(s),i=l,n=!0}}stringify(t,r){this.freeze();const n=Mu(r),i=this.compiler||this.Compiler;return Ep("stringify",i),ik(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(Lp("use",this.frozen),t!=null)if(typeof t=="function")u(t,r);else if(typeof t=="object")Array.isArray(t)?l(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(h){if(typeof h=="function")u(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[d,...f]=h;u(d,f)}else s(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function s(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(h.plugins),h.settings&&(i.settings=vp(!0,i.settings,h.settings))}function l(h){let d=-1;if(h!=null)if(Array.isArray(h))for(;++d<h.length;){const f=h[d];o(f)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function u(h,d){let f=-1,m=-1;for(;++f<n.length;)if(n[f][0]===h){m=f;break}if(m===-1)n.push([h,...d]);else if(d.length>0){let[g,...x]=d;const C=n[m][1];sm(C)&&sm(g)&&(g=vp(!0,C,g)),n[m]=[h,g,...x]}}}}const MO=new My().freeze();function _p(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ep(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Lp(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ik(e){if(!sm(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ok(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Mu(e){return OO(e)?e:new rw(e)}function OO(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function RO(e){return typeof e=="string"||PO(e)}function PO(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const NO="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ak=[],sk={allowDangerousHtml:!0},DO=/^(https?|ircs?|mailto|xmpp)$/i,$O=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function jO(e){const t=zO(e),r=qO(e);return WO(t.runSync(t.parse(r),r),e)}function zO(e){const t=e.rehypePlugins||ak,r=e.remarkPlugins||ak,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...sk}:sk;return MO().use(bM).use(r).use(gO,n).use(t)}function qO(e){const t=e.children||"",r=new rw;return typeof t=="string"&&(r.value=t),r}function WO(e,t){const r=t.allowedElements,n=t.allowElement,i=t.components,o=t.disallowedElements,s=t.skipHtml,l=t.unwrapDisallowed,u=t.urlTransform||HO;for(const d of $O)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+NO+d.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),Iy(e,h),i3(e,{Fragment:L.Fragment,components:i,ignoreInvalidStyle:!0,jsx:L.jsx,jsxs:L.jsxs,passKeys:!0,passNode:!0});function h(d,f,m){if(d.type==="raw"&&m&&typeof f=="number")return s?m.children.splice(f,1):m.children[f]={type:"text",value:d.value},f;if(d.type==="element"){let g;for(g in xp)if(Object.hasOwn(xp,g)&&Object.hasOwn(d.properties,g)){const x=d.properties[g],C=xp[g];(C===null||C.includes(d.tagName))&&(d.properties[g]=u(String(x||""),g,d))}}if(d.type==="element"){let g=r?!r.includes(d.tagName):o?o.includes(d.tagName):!1;if(!g&&n&&typeof f=="number"&&(g=!n(d,f,m)),g&&m&&typeof f=="number")return l&&d.children?m.children.splice(f,1,...d.children):m.children.splice(f,1),f}}}function HO(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||r!==-1&&t>r||n!==-1&&t>n||DO.test(e.slice(0,t))?e:""}function lk(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}function UO(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function VO(e,t,r){const i=id((r||{}).ignore||[]),o=YO(t);let s=-1;for(;++s<o.length;)ew(e,"text",l);function l(h,d){let f=-1,m;for(;++f<d.length;){const g=d[f],x=m?m.children:void 0;if(i(g,x?x.indexOf(g):void 0,m))return;m=g}if(m)return u(h,d)}function u(h,d){const f=d[d.length-1],m=o[s][0],g=o[s][1];let x=0;const k=f.children.indexOf(h);let v=!1,w=[];m.lastIndex=0;let _=m.exec(h.value);for(;_;){const A=_.index,F={index:_.index,input:_.input,stack:[...d,h]};let E=g(..._,F);if(typeof E=="string"&&(E=E.length>0?{type:"text",value:E}:void 0),E===!1?m.lastIndex=A+1:(x!==A&&w.push({type:"text",value:h.value.slice(x,A)}),Array.isArray(E)?w.push(...E):E&&w.push(E),x=A+_[0].length,v=!0),!m.global)break;_=m.exec(h.value)}return v?(x<h.value.length&&w.push({type:"text",value:h.value.slice(x)}),f.children.splice(k,1,...w)):w=[h],k+w.length}}function YO(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let n=-1;for(;++n<r.length;){const i=r[n];t.push([GO(i[0]),XO(i[1])])}return t}function GO(e){return typeof e=="string"?new RegExp(UO(e),"g"):e}function XO(e){return typeof e=="function"?e:function(){return e}}const Bp="phrasing",Ap=["autolink","link","image","label"];function KO(){return{transforms:[n4],enter:{literalAutolink:ZO,literalAutolinkEmail:Fp,literalAutolinkHttp:Fp,literalAutolinkWww:Fp},exit:{literalAutolink:r4,literalAutolinkEmail:e4,literalAutolinkHttp:JO,literalAutolinkWww:t4}}}function QO(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Bp,notInConstruct:Ap},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Bp,notInConstruct:Ap},{character:":",before:"[ps]",after:"\\/",inConstruct:Bp,notInConstruct:Ap}]}}function ZO(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Fp(e){this.config.enter.autolinkProtocol.call(this,e)}function JO(e){this.config.exit.autolinkProtocol.call(this,e)}function t4(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function e4(e){this.config.exit.autolinkEmail.call(this,e)}function r4(e){this.exit(e)}function n4(e){VO(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,i4],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),o4]],{ignore:["link","linkReference"]})}function i4(e,t,r,n,i){let o="";if(!nw(i)||(/^w/i.test(t)&&(r=t+r,t="",o="http://"),!a4(r)))return!1;const s=s4(r+n);if(!s[0])return!1;const l={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function o4(e,t,r,n){return!nw(n,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function a4(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function s4(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],n=r.indexOf(")");const i=lk(e,"(");let o=lk(e,")");for(;n!==-1&&i>o;)e+=r.slice(0,n+1),r=r.slice(n+1),n=r.indexOf(")"),o++;return[e,r]}function nw(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Go(r)||ed(r))&&(!t||r!==47)}iw.peek=m4;function l4(){this.buffer()}function c4(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function u4(){this.buffer()}function h4(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function d4(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=jn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function f4(e){this.exit(e)}function p4(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=jn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function g4(e){this.exit(e)}function m4(){return"["}function iw(e,t,r,n){const i=r.createTracker(n);let o=i.move("[^");const s=r.enter("footnoteReference"),l=r.enter("reference");return o+=i.move(r.safe(r.associationId(e),{after:"]",before:o})),l(),s(),o+=i.move("]"),o}function y4(){return{enter:{gfmFootnoteCallString:l4,gfmFootnoteCall:c4,gfmFootnoteDefinitionLabelString:u4,gfmFootnoteDefinition:h4},exit:{gfmFootnoteCallString:d4,gfmFootnoteCall:f4,gfmFootnoteDefinitionLabelString:p4,gfmFootnoteDefinition:g4}}}function x4(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:iw},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(n,i,o,s){const l=o.createTracker(s);let u=l.move("[^");const h=o.enter("footnoteDefinition"),d=o.enter("label");return u+=l.move(o.safe(o.associationId(n),{before:u,after:"]"})),d(),u+=l.move("]:"),n.children&&n.children.length>0&&(l.shift(4),u+=l.move((t?`
|
|
143
|
+
`:" ")+o.indentLines(o.containerFlow(n,l.current()),t?ow:C4))),h(),u}}function C4(e,t,r){return t===0?e:ow(e,t,r)}function ow(e,t,r){return(r?"":" ")+e}const k4=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];aw.peek=T4;function b4(){return{canContainEols:["delete"],enter:{strikethrough:w4},exit:{strikethrough:S4}}}function v4(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:k4}],handlers:{delete:aw}}}function w4(e){this.enter({type:"delete",children:[]},e)}function S4(e){this.exit(e)}function aw(e,t,r,n){const i=r.createTracker(n),o=r.enter("strikethrough");let s=i.move("~~");return s+=r.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function T4(){return"~"}function _4(e){return e.length}function E4(e,t){const r=t||{},n=(r.align||[]).concat(),i=r.stringLength||_4,o=[],s=[],l=[],u=[];let h=0,d=-1;for(;++d<e.length;){const C=[],k=[];let v=-1;for(e[d].length>h&&(h=e[d].length);++v<e[d].length;){const w=L4(e[d][v]);if(r.alignDelimiters!==!1){const _=i(w);k[v]=_,(u[v]===void 0||_>u[v])&&(u[v]=_)}C.push(w)}s[d]=C,l[d]=k}let f=-1;if(typeof n=="object"&&"length"in n)for(;++f<h;)o[f]=ck(n[f]);else{const C=ck(n);for(;++f<h;)o[f]=C}f=-1;const m=[],g=[];for(;++f<h;){const C=o[f];let k="",v="";C===99?(k=":",v=":"):C===108?k=":":C===114&&(v=":");let w=r.alignDelimiters===!1?1:Math.max(1,u[f]-k.length-v.length);const _=k+"-".repeat(w)+v;r.alignDelimiters!==!1&&(w=k.length+w+v.length,w>u[f]&&(u[f]=w),g[f]=w),m[f]=_}s.splice(1,0,m),l.splice(1,0,g),d=-1;const x=[];for(;++d<s.length;){const C=s[d],k=l[d];f=-1;const v=[];for(;++f<h;){const w=C[f]||"";let _="",A="";if(r.alignDelimiters!==!1){const F=u[f]-(k[f]||0),E=o[f];E===114?_=" ".repeat(F):E===99?F%2?(_=" ".repeat(F/2+.5),A=" ".repeat(F/2-.5)):(_=" ".repeat(F/2),A=_):A=" ".repeat(F)}r.delimiterStart!==!1&&!f&&v.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&w==="")&&(r.delimiterStart!==!1||f)&&v.push(" "),r.alignDelimiters!==!1&&v.push(_),v.push(w),r.alignDelimiters!==!1&&v.push(A),r.padding!==!1&&v.push(" "),(r.delimiterEnd!==!1||f!==h-1)&&v.push("|")}x.push(r.delimiterEnd===!1?v.join("").replace(/ +$/,""):v.join(""))}return x.join(`
|
|
144
|
+
`)}function L4(e){return e==null?"":String(e)}function ck(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function B4(e,t,r,n){const i=r.enter("blockquote"),o=r.createTracker(n);o.move("> "),o.shift(2);const s=r.indentLines(r.containerFlow(e,o.current()),A4);return i(),s}function A4(e,t,r){return">"+(r?"":" ")+e}function F4(e,t){return uk(e,t.inConstruct,!0)&&!uk(e,t.notInConstruct,!1)}function uk(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function hk(e,t,r,n){let i=-1;for(;++i<r.unsafe.length;)if(r.unsafe[i].character===`
|
|
145
|
+
`&&F4(r.stack,r.unsafe[i]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
146
|
+
`}function I4(e,t){const r=String(e);let n=r.indexOf(t),i=n,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===i?++o>s&&(s=o):o=1,i=n+t.length,n=r.indexOf(t,i);return s}function M4(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function O4(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function R4(e,t,r,n){const i=O4(r),o=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(M4(e,r)){const f=r.enter("codeIndented"),m=r.indentLines(o,P4);return f(),m}const l=r.createTracker(n),u=i.repeat(Math.max(I4(o,i)+1,3)),h=r.enter("codeFenced");let d=l.move(u);if(e.lang){const f=r.enter(`codeFencedLang${s}`);d+=l.move(r.safe(e.lang,{before:d,after:" ",encode:["`"],...l.current()})),f()}if(e.lang&&e.meta){const f=r.enter(`codeFencedMeta${s}`);d+=l.move(" "),d+=l.move(r.safe(e.meta,{before:d,after:`
|
|
147
|
+
`,encode:["`"],...l.current()})),f()}return d+=l.move(`
|
|
148
|
+
`),o&&(d+=l.move(o+`
|
|
149
|
+
`)),d+=l.move(u),h(),d}function P4(e,t,r){return(r?"":" ")+e}function Oy(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function N4(e,t,r,n){const i=Oy(r),o=i==='"'?"Quote":"Apostrophe",s=r.enter("definition");let l=r.enter("label");const u=r.createTracker(n);let h=u.move("[");return h+=u.move(r.safe(r.associationId(e),{before:h,after:"]",...u.current()})),h+=u.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(r.safe(e.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(l=r.enter("destinationRaw"),h+=u.move(r.safe(e.url,{before:h,after:e.title?" ":`
|
|
150
|
+
`,...u.current()}))),l(),e.title&&(l=r.enter(`title${o}`),h+=u.move(" "+i),h+=u.move(r.safe(e.title,{before:h,after:i,...u.current()})),h+=u.move(i),l()),s(),h}function D4(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Yl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ch(e,t,r){const n=cs(e),i=cs(t);return n===void 0?i===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}sw.peek=$4;function sw(e,t,r,n){const i=D4(r),o=r.enter("emphasis"),s=r.createTracker(n),l=s.move(i);let u=s.move(r.containerPhrasing(e,{after:i,before:l,...s.current()}));const h=u.charCodeAt(0),d=Ch(n.before.charCodeAt(n.before.length-1),h,i);d.inside&&(u=Yl(h)+u.slice(1));const f=u.charCodeAt(u.length-1),m=Ch(n.after.charCodeAt(0),f,i);m.inside&&(u=u.slice(0,-1)+Yl(f));const g=s.move(i);return o(),r.attentionEncodeSurroundingInfo={after:m.outside,before:d.outside},l+u+g}function $4(e,t,r){return r.options.emphasis||"*"}function j4(e,t){let r=!1;return Iy(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return r=!0,om}),!!((!e.depth||e.depth<3)&&Ty(e)&&(t.options.setext||r))}function z4(e,t,r,n){const i=Math.max(Math.min(6,e.depth||1),1),o=r.createTracker(n);if(j4(e,r)){const d=r.enter("headingSetext"),f=r.enter("phrasing"),m=r.containerPhrasing(e,{...o.current(),before:`
|
|
151
|
+
`,after:`
|
|
152
|
+
`});return f(),d(),m+`
|
|
153
|
+
`+(i===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
|
|
154
|
+
`))+1))}const s="#".repeat(i),l=r.enter("headingAtx"),u=r.enter("phrasing");o.move(s+" ");let h=r.containerPhrasing(e,{before:"# ",after:`
|
|
155
|
+
`,...o.current()});return/^[\t ]/.test(h)&&(h=Yl(h.charCodeAt(0))+h.slice(1)),h=h?s+" "+h:s,r.options.closeAtx&&(h+=" "+s),u(),l(),h}lw.peek=q4;function lw(e){return e.value||""}function q4(){return"<"}cw.peek=W4;function cw(e,t,r,n){const i=Oy(r),o=i==='"'?"Quote":"Apostrophe",s=r.enter("image");let l=r.enter("label");const u=r.createTracker(n);let h=u.move("![");return h+=u.move(r.safe(e.alt,{before:h,after:"]",...u.current()})),h+=u.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(r.safe(e.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(l=r.enter("destinationRaw"),h+=u.move(r.safe(e.url,{before:h,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=r.enter(`title${o}`),h+=u.move(" "+i),h+=u.move(r.safe(e.title,{before:h,after:i,...u.current()})),h+=u.move(i),l()),h+=u.move(")"),s(),h}function W4(){return"!"}uw.peek=H4;function uw(e,t,r,n){const i=e.referenceType,o=r.enter("imageReference");let s=r.enter("label");const l=r.createTracker(n);let u=l.move("![");const h=r.safe(e.alt,{before:u,after:"]",...l.current()});u+=l.move(h+"]["),s();const d=r.stack;r.stack=[],s=r.enter("reference");const f=r.safe(r.associationId(e),{before:u,after:"]",...l.current()});return s(),r.stack=d,o(),i==="full"||!h||h!==f?u+=l.move(f+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function H4(){return"!"}hw.peek=U4;function hw(e,t,r){let n=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(n);)i+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<r.unsafe.length;){const s=r.unsafe[o],l=r.compilePattern(s);let u;if(s.atBreak)for(;u=l.exec(n);){let h=u.index;n.charCodeAt(h)===10&&n.charCodeAt(h-1)===13&&h--,n=n.slice(0,h)+" "+n.slice(u.index+1)}}return i+n+i}function U4(){return"`"}function dw(e,t){const r=Ty(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}fw.peek=V4;function fw(e,t,r,n){const i=Oy(r),o=i==='"'?"Quote":"Apostrophe",s=r.createTracker(n);let l,u;if(dw(e,r)){const d=r.stack;r.stack=[],l=r.enter("autolink");let f=s.move("<");return f+=s.move(r.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),l(),r.stack=d,f}l=r.enter("link"),u=r.enter("label");let h=s.move("[");return h+=s.move(r.containerPhrasing(e,{before:h,after:"](",...s.current()})),h+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=r.enter("destinationLiteral"),h+=s.move("<"),h+=s.move(r.safe(e.url,{before:h,after:">",...s.current()})),h+=s.move(">")):(u=r.enter("destinationRaw"),h+=s.move(r.safe(e.url,{before:h,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=r.enter(`title${o}`),h+=s.move(" "+i),h+=s.move(r.safe(e.title,{before:h,after:i,...s.current()})),h+=s.move(i),u()),h+=s.move(")"),l(),h}function V4(e,t,r){return dw(e,r)?"<":"["}pw.peek=Y4;function pw(e,t,r,n){const i=e.referenceType,o=r.enter("linkReference");let s=r.enter("label");const l=r.createTracker(n);let u=l.move("[");const h=r.containerPhrasing(e,{before:u,after:"]",...l.current()});u+=l.move(h+"]["),s();const d=r.stack;r.stack=[],s=r.enter("reference");const f=r.safe(r.associationId(e),{before:u,after:"]",...l.current()});return s(),r.stack=d,o(),i==="full"||!h||h!==f?u+=l.move(f+"]"):i==="shortcut"?u=u.slice(0,-1):u+=l.move("]"),u}function Y4(){return"["}function Ry(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function G4(e){const t=Ry(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function X4(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function gw(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function K4(e,t,r,n){const i=r.enter("list"),o=r.bulletCurrent;let s=e.ordered?X4(r):Ry(r);const l=e.ordered?s==="."?")":".":G4(r);let u=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(u=!0),gw(r)===s&&d){let f=-1;for(;++f<e.children.length;){const m=e.children[f];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=l),r.bulletCurrent=s;const h=r.containerFlow(e,n);return r.bulletLastUsed=s,r.bulletCurrent=o,i(),h}function Q4(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Z4(e,t,r,n){const i=Q4(r);let o=r.bulletCurrent||Ry(r);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const l=r.createTracker(n);l.move(o+" ".repeat(s-o.length)),l.shift(s);const u=r.enter("listItem"),h=r.indentLines(r.containerFlow(e,l.current()),d);return u(),h;function d(f,m,g){return m?(g?"":" ".repeat(s))+f:(g?o:o+" ".repeat(s-o.length))+f}}function J4(e,t,r,n){const i=r.enter("paragraph"),o=r.enter("phrasing"),s=r.containerPhrasing(e,n);return o(),i(),s}const tR=id(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function eR(e,t,r,n){return(e.children.some(function(s){return tR(s)})?r.containerPhrasing:r.containerFlow).call(r,e,n)}function rR(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}mw.peek=nR;function mw(e,t,r,n){const i=rR(r),o=r.enter("strong"),s=r.createTracker(n),l=s.move(i+i);let u=s.move(r.containerPhrasing(e,{after:i,before:l,...s.current()}));const h=u.charCodeAt(0),d=Ch(n.before.charCodeAt(n.before.length-1),h,i);d.inside&&(u=Yl(h)+u.slice(1));const f=u.charCodeAt(u.length-1),m=Ch(n.after.charCodeAt(0),f,i);m.inside&&(u=u.slice(0,-1)+Yl(f));const g=s.move(i+i);return o(),r.attentionEncodeSurroundingInfo={after:m.outside,before:d.outside},l+u+g}function nR(e,t,r){return r.options.strong||"*"}function iR(e,t,r,n){return r.safe(e.value,n)}function oR(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function aR(e,t,r){const n=(gw(r)+(r.options.ruleSpaces?" ":"")).repeat(oR(r));return r.options.ruleSpaces?n.slice(0,-1):n}const yw={blockquote:B4,break:hk,code:R4,definition:N4,emphasis:sw,hardBreak:hk,heading:z4,html:lw,image:cw,imageReference:uw,inlineCode:hw,link:fw,linkReference:pw,list:K4,listItem:Z4,paragraph:J4,root:eR,strong:mw,text:iR,thematicBreak:aR};function sR(){return{enter:{table:lR,tableData:dk,tableHeader:dk,tableRow:uR},exit:{codeText:hR,table:cR,tableData:Ip,tableHeader:Ip,tableRow:Ip}}}function lR(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function cR(e){this.exit(e),this.data.inTable=void 0}function uR(e){this.enter({type:"tableRow",children:[]},e)}function Ip(e){this.exit(e)}function dk(e){this.enter({type:"tableCell",children:[]},e)}function hR(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,dR));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function dR(e,t){return t==="|"?t:e}function fR(e){const t=e||{},r=t.tableCellPadding,n=t.tablePipeAlign,i=t.stringLength,o=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
156
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:s,tableCell:u,tableRow:l}};function s(g,x,C,k){return h(d(g,C,k),g.align)}function l(g,x,C,k){const v=f(g,C,k),w=h([v]);return w.slice(0,w.indexOf(`
|
|
157
|
+
`))}function u(g,x,C,k){const v=C.enter("tableCell"),w=C.enter("phrasing"),_=C.containerPhrasing(g,{...k,before:o,after:o});return w(),v(),_}function h(g,x){return E4(g,{align:x,alignDelimiters:n,padding:r,stringLength:i})}function d(g,x,C){const k=g.children;let v=-1;const w=[],_=x.enter("table");for(;++v<k.length;)w[v]=f(k[v],x,C);return _(),w}function f(g,x,C){const k=g.children;let v=-1;const w=[],_=x.enter("tableRow");for(;++v<k.length;)w[v]=u(k[v],g,x,C);return _(),w}function m(g,x,C){let k=yw.inlineCode(g,x,C);return C.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function pR(){return{exit:{taskListCheckValueChecked:fk,taskListCheckValueUnchecked:fk,paragraph:mR}}}function gR(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:yR}}}function fk(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function mR(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const n=r.children[0];if(n&&n.type==="text"){const i=t.children;let o=-1,s;for(;++o<i.length;){const l=i[o];if(l.type==="paragraph"){s=l;break}}s===r&&(n.value=n.value.slice(1),n.value.length===0?r.children.shift():r.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,r.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function yR(e,t,r,n){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",l=r.createTracker(n);o&&l.move(s);let u=yw.listItem(e,t,r,{...n,...l.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),u;function h(d){return d+s}}function xR(){return[KO(),y4(),b4(),sR(),pR()]}function CR(e){return{extensions:[QO(),x4(e),v4(),fR(e),gR()]}}const kR={tokenize:_R,partial:!0},xw={tokenize:ER,partial:!0},Cw={tokenize:LR,partial:!0},kw={tokenize:BR,partial:!0},bR={tokenize:AR,partial:!0},bw={name:"wwwAutolink",tokenize:SR,previous:ww},vw={name:"protocolAutolink",tokenize:TR,previous:Sw},Ii={name:"emailAutolink",tokenize:wR,previous:Tw},li={};function vR(){return{text:li}}let Po=48;for(;Po<123;)li[Po]=Ii,Po++,Po===58?Po=65:Po===91&&(Po=97);li[43]=Ii;li[45]=Ii;li[46]=Ii;li[95]=Ii;li[72]=[Ii,vw];li[104]=[Ii,vw];li[87]=[Ii,bw];li[119]=[Ii,bw];function wR(e,t,r){const n=this;let i,o;return s;function s(f){return!cm(f)||!Tw.call(n,n.previous)||Py(n.events)?r(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(f))}function l(f){return cm(f)?(e.consume(f),l):f===64?(e.consume(f),u):r(f)}function u(f){return f===46?e.check(bR,d,h)(f):f===45||f===95||Tr(f)?(o=!0,e.consume(f),u):d(f)}function h(f){return e.consume(f),i=!0,u}function d(f){return o&&i&&Or(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):r(f)}}function SR(e,t,r){const n=this;return i;function i(s){return s!==87&&s!==119||!ww.call(n,n.previous)||Py(n.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(kR,e.attempt(xw,e.attempt(Cw,o),r),r)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function TR(e,t,r){const n=this;let i="",o=!1;return s;function s(f){return(f===72||f===104)&&Sw.call(n,n.previous)&&!Py(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),l):r(f)}function l(f){if(Or(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),l;if(f===58){const m=i.toLowerCase();if(m==="http"||m==="https")return e.consume(f),u}return r(f)}function u(f){return f===47?(e.consume(f),o?h:(o=!0,u)):r(f)}function h(f){return f===null||mh(f)||xe(f)||Go(f)||ed(f)?r(f):e.attempt(xw,e.attempt(Cw,d),r)(f)}function d(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function _R(e,t,r){let n=0;return i;function i(s){return(s===87||s===119)&&n<3?(n++,e.consume(s),i):s===46&&n===3?(e.consume(s),o):r(s)}function o(s){return s===null?r(s):t(s)}}function ER(e,t,r){let n,i,o;return s;function s(h){return h===46||h===95?e.check(kw,u,l)(h):h===null||xe(h)||Go(h)||h!==45&&ed(h)?u(h):(o=!0,e.consume(h),s)}function l(h){return h===95?n=!0:(i=n,n=void 0),e.consume(h),s}function u(h){return i||n||!o?r(h):t(h)}}function LR(e,t){let r=0,n=0;return i;function i(s){return s===40?(r++,e.consume(s),i):s===41&&n<r?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(kw,t,o)(s):s===null||xe(s)||Go(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&n++,e.consume(s),i}}function BR(e,t,r){return n;function n(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),n):l===38?(e.consume(l),o):l===93?(e.consume(l),i):l===60||l===null||xe(l)||Go(l)?t(l):r(l)}function i(l){return l===null||l===40||l===91||xe(l)||Go(l)?t(l):n(l)}function o(l){return Or(l)?s(l):r(l)}function s(l){return l===59?(e.consume(l),n):Or(l)?(e.consume(l),s):r(l)}}function AR(e,t,r){return n;function n(o){return e.consume(o),i}function i(o){return Tr(o)?r(o):t(o)}}function ww(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||xe(e)}function Sw(e){return!Or(e)}function Tw(e){return!(e===47||cm(e))}function cm(e){return e===43||e===45||e===46||e===95||Tr(e)}function Py(e){let t=e.length,r=!1;for(;t--;){const n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){r=!0;break}if(n._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const FR={tokenize:$R,partial:!0};function IR(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:PR,continuation:{tokenize:NR},exit:DR}},text:{91:{name:"gfmFootnoteCall",tokenize:RR},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:MR,resolveTo:OR}}}}function MR(e,t,r){const n=this;let i=n.events.length;const o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let s;for(;i--;){const u=n.events[i][1];if(u.type==="labelImage"){s=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return l;function l(u){if(!s||!s._balanced)return r(u);const h=jn(n.sliceSerialize({start:s.end,end:n.now()}));return h.codePointAt(0)!==94||!o.includes(h.slice(1))?r(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function OR(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const n={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[r+1],e[r+2],["enter",n,t],e[r+3],e[r+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",n,t]];return e.splice(r,e.length-r+1,...l),e}function RR(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o=0,s;return l;function l(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?r(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(f){if(o>999||f===93&&!s||f===null||f===91||xe(f))return r(f);if(f===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return i.includes(jn(n.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(f)}return xe(f)||(s=!0),o++,e.consume(f),f===92?d:h}function d(f){return f===91||f===92||f===93?(e.consume(f),o++,h):h(f)}}function PR(e,t,r){const n=this,i=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]);let o,s=0,l;return u;function u(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):r(x)}function d(x){if(s>999||x===93&&!l||x===null||x===91||xe(x))return r(x);if(x===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return o=jn(n.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return xe(x)||(l=!0),s++,e.consume(x),x===92?f:d}function f(x){return x===91||x===92||x===93?(e.consume(x),s++,d):d(x)}function m(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),i.includes(o)||i.push(o),se(e,g,"gfmFootnoteDefinitionWhitespace")):r(x)}function g(x){return t(x)}}function NR(e,t,r){return e.check(uc,t,e.attempt(FR,t,r))}function DR(e){e.exit("gfmFootnoteDefinition")}function $R(e,t,r){const n=this;return se(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const s=n.events[n.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):r(o)}}function jR(e){let r=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:o,resolveAll:i};return r==null&&(r=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function i(s,l){let u=-1;for(;++u<s.length;)if(s[u][0]==="enter"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._close){let h=u;for(;h--;)if(s[h][0]==="exit"&&s[h][1].type==="strikethroughSequenceTemporary"&&s[h][1]._open&&s[u][1].end.offset-s[u][1].start.offset===s[h][1].end.offset-s[h][1].start.offset){s[u][1].type="strikethroughSequence",s[h][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},s[h][1].start),end:Object.assign({},s[u][1].end)},f={type:"strikethroughText",start:Object.assign({},s[h][1].end),end:Object.assign({},s[u][1].start)},m=[["enter",d,l],["enter",s[h][1],l],["exit",s[h][1],l],["enter",f,l]],g=l.parser.constructs.insideSpan.null;g&&hn(m,m.length,0,rd(g,s.slice(h+1,u),l)),hn(m,m.length,0,[["exit",f,l],["enter",s[u][1],l],["exit",s[u][1],l],["exit",d,l]]),hn(s,h-1,u-h+3,m),u=h+m.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type="data");return s}function o(s,l,u){const h=this.previous,d=this.events;let f=0;return m;function m(x){return h===126&&d[d.length-1][1].type!=="characterEscape"?u(x):(s.enter("strikethroughSequenceTemporary"),g(x))}function g(x){const C=cs(h);if(x===126)return f>1?u(x):(s.consume(x),f++,g);if(f<2&&!r)return u(x);const k=s.exit("strikethroughSequenceTemporary"),v=cs(x);return k._open=!v||v===2&&!!C,k._close=!C||C===2&&!!v,l(x)}}}class zR{constructor(){this.map=[]}add(t,r,n){qR(this,t,r,n)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const n=[];for(;r>0;)r-=1,n.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];n.push(t.slice()),t.length=0;let i=n.pop();for(;i;){for(const o of i)t.push(o);i=n.pop()}this.map.length=0}}function qR(e,t,r,n){let i=0;if(!(r===0&&n.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=r,e.map[i][2].push(...n);return}i+=1}e.map.push([t,r,n])}}function WR(e,t){let r=!1;const n=[];for(;t<e.length;){const i=e[t];if(r){if(i[0]==="enter")i[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=n.length-1;n[o]=n[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return n}function HR(){return{flow:{null:{name:"table",tokenize:UR,resolveAll:VR}}}}function UR(e,t,r){const n=this;let i=0,o=0,s;return l;function l(O){let D=n.events.length-1;for(;D>-1;){const U=n.events[D][1].type;if(U==="lineEnding"||U==="linePrefix")D--;else break}const K=D>-1?n.events[D][1].type:null,tt=K==="tableHead"||K==="tableRow"?E:u;return tt===E&&n.parser.lazy[n.now().line]?r(O):tt(O)}function u(O){return e.enter("tableHead"),e.enter("tableRow"),h(O)}function h(O){return O===124||(s=!0,o+=1),d(O)}function d(O){return O===null?r(O):qt(O)?o>1?(o=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),g):r(O):ne(O)?se(e,d,"whitespace")(O):(o+=1,s&&(s=!1,i+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),f(O)))}function f(O){return O===null||O===124||xe(O)?(e.exit("data"),d(O)):(e.consume(O),O===92?m:f)}function m(O){return O===92||O===124?(e.consume(O),f):f(O)}function g(O){return n.interrupt=!1,n.parser.lazy[n.now().line]?r(O):(e.enter("tableDelimiterRow"),s=!1,ne(O)?se(e,x,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):x(O))}function x(O){return O===45||O===58?k(O):O===124?(s=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),C):F(O)}function C(O){return ne(O)?se(e,k,"whitespace")(O):k(O)}function k(O){return O===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),v):O===45?(o+=1,v(O)):O===null||qt(O)?A(O):F(O)}function v(O){return O===45?(e.enter("tableDelimiterFiller"),w(O)):F(O)}function w(O){return O===45?(e.consume(O),w):O===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(O))}function _(O){return ne(O)?se(e,A,"whitespace")(O):A(O)}function A(O){return O===124?x(O):O===null||qt(O)?!s||i!==o?F(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(O)):F(O)}function F(O){return r(O)}function E(O){return e.enter("tableRow"),B(O)}function B(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),B):O===null||qt(O)?(e.exit("tableRow"),t(O)):ne(O)?se(e,B,"whitespace")(O):(e.enter("data"),N(O))}function N(O){return O===null||O===124||xe(O)?(e.exit("data"),B(O)):(e.consume(O),O===92?q:N)}function q(O){return O===92||O===124?(e.consume(O),N):N(O)}}function VR(e,t){let r=-1,n=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],l=!1,u=0,h,d,f;const m=new zR;for(;++r<e.length;){const g=e[r],x=g[1];g[0]==="enter"?x.type==="tableHead"?(l=!1,u!==0&&(pk(m,t,u,h,d),d=void 0,u=0),h={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},m.add(r,0,[["enter",h,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(n=!0,f=void 0,o=[0,0,0,0],s=[0,r+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},m.add(r,0,[["enter",d,t]])),i=x.type==="tableDelimiterRow"?2:d?3:1):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(n=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],f=Ou(m,t,o,i,void 0,f),o=[0,0,0,0]),s[2]=r)):x.type==="tableCellDivider"&&(n?n=!1:(o[1]!==0&&(s[0]=s[1],f=Ou(m,t,o,i,void 0,f)),o=s,s=[o[1],r,0,0])):x.type==="tableHead"?(l=!0,u=r):x.type==="tableRow"||x.type==="tableDelimiterRow"?(u=r,o[1]!==0?(s[0]=s[1],f=Ou(m,t,o,i,r,f)):s[1]!==0&&(f=Ou(m,t,s,i,r,f)),i=0):i&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(s[3]=r)}for(u!==0&&pk(m,t,u,h,d),m.consume(t.events),r=-1;++r<t.events.length;){const g=t.events[r];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=WR(t.events,r))}return e}function Ou(e,t,r,n,i,o){const s=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",l="tableContent";r[0]!==0&&(o.end=Object.assign({},$a(t.events,r[0])),e.add(r[0],0,[["exit",o,t]]));const u=$a(t.events,r[1]);if(o={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(r[1],0,[["enter",o,t]]),r[2]!==0){const h=$a(t.events,r[2]),d=$a(t.events,r[3]),f={type:l,start:Object.assign({},h),end:Object.assign({},d)};if(e.add(r[2],0,[["enter",f,t]]),n!==2){const m=t.events[r[2]],g=t.events[r[3]];if(m[1].end=Object.assign({},g[1].end),m[1].type="chunkText",m[1].contentType="text",r[3]>r[2]+1){const x=r[2]+1,C=r[3]-r[2]-1;e.add(x,C,[])}}e.add(r[3]+1,0,[["exit",f,t]])}return i!==void 0&&(o.end=Object.assign({},$a(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function pk(e,t,r,n,i){const o=[],s=$a(t.events,r);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),n.end=Object.assign({},s),o.push(["exit",n,t]),e.add(r+1,0,o)}function $a(e,t){const r=e[t],n=r[0]==="enter"?"start":"end";return r[1][n]}const YR={name:"tasklistCheck",tokenize:XR};function GR(){return{text:{91:YR}}}function XR(e,t,r){const n=this;return i;function i(u){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?r(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),o)}function o(u){return xe(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):r(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):r(u)}function l(u){return qt(u)?t(u):ne(u)?e.check({tokenize:KR},t,r)(u):r(u)}}function KR(e,t,r){return se(e,n,"whitespace");function n(i){return i===null?r(i):t(i)}}function QR(e){return P2([vR(),IR(),jR(e),HR(),GR()])}const ZR={};function JR(e){const t=this,r=e||ZR,n=t.data(),i=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),s=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);i.push(QR(r)),o.push(xR()),s.push(CR(r))}var Ju={exports:{}},tP=Ju.exports,gk;function eP(){return gk||(gk=1,(function(e,t){(function(r,n){e.exports=n()})(tP,(function(){var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",l="minute",u="hour",h="day",d="week",f="month",m="quarter",g="year",x="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+)?$/,v=/\[([^\]]+)]|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,w={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(U){var W=["th","st","nd","rd"],H=U%100;return"["+U+(W[(H-20)%10]||W[H]||W[0])+"]"}},_=function(U,W,H){var G=String(U);return!G||G.length>=W?U:""+Array(W+1-G.length).join(H)+U},A={s:_,z:function(U){var W=-U.utcOffset(),H=Math.abs(W),G=Math.floor(H/60),$=H%60;return(W<=0?"+":"-")+_(G,2,"0")+":"+_($,2,"0")},m:function U(W,H){if(W.date()<H.date())return-U(H,W);var G=12*(H.year()-W.year())+(H.month()-W.month()),$=W.clone().add(G,f),Z=H-$<0,R=W.clone().add(G+(Z?-1:1),f);return+(-(G+(H-$)/(Z?$-R:R-$))||0)},a:function(U){return U<0?Math.ceil(U)||0:Math.floor(U)},p:function(U){return{M:f,y:g,w:d,d:h,D:x,h:u,m:l,s,ms:o,Q:m}[U]||String(U||"").toLowerCase().replace(/s$/,"")},u:function(U){return U===void 0}},F="en",E={};E[F]=w;var B="$isDayjsObject",N=function(U){return U instanceof K||!(!U||!U[B])},q=function U(W,H,G){var $;if(!W)return F;if(typeof W=="string"){var Z=W.toLowerCase();E[Z]&&($=Z),H&&(E[Z]=H,$=Z);var R=W.split("-");if(!$&&R.length>1)return U(R[0])}else{var j=W.name;E[j]=W,$=j}return!G&&$&&(F=$),$||!G&&F},O=function(U,W){if(N(U))return U.clone();var H=typeof W=="object"?W:{};return H.date=U,H.args=arguments,new K(H)},D=A;D.l=q,D.i=N,D.w=function(U,W){return O(U,{locale:W.$L,utc:W.$u,x:W.$x,$offset:W.$offset})};var K=(function(){function U(H){this.$L=q(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[B]=!0}var W=U.prototype;return W.parse=function(H){this.$d=(function(G){var $=G.date,Z=G.utc;if($===null)return new Date(NaN);if(D.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var R=$.match(k);if(R){var j=R[2]-1||0,J=(R[7]||"0").substring(0,3);return Z?new Date(Date.UTC(R[1],j,R[3]||1,R[4]||0,R[5]||0,R[6]||0,J)):new Date(R[1],j,R[3]||1,R[4]||0,R[5]||0,R[6]||0,J)}}return new Date($)})(H),this.init()},W.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},W.$utils=function(){return D},W.isValid=function(){return this.$d.toString()!==C},W.isSame=function(H,G){var $=O(H);return this.startOf(G)<=$&&$<=this.endOf(G)},W.isAfter=function(H,G){return O(H)<this.startOf(G)},W.isBefore=function(H,G){return this.endOf(G)<O(H)},W.$g=function(H,G,$){return D.u(H)?this[G]:this.set($,H)},W.unix=function(){return Math.floor(this.valueOf()/1e3)},W.valueOf=function(){return this.$d.getTime()},W.startOf=function(H,G){var $=this,Z=!!D.u(G)||G,R=D.p(H),j=function(Dt,xt){var _t=D.w($.$u?Date.UTC($.$y,xt,Dt):new Date($.$y,xt,Dt),$);return Z?_t:_t.endOf(h)},J=function(Dt,xt){return D.w($.toDate()[Dt].apply($.toDate("s"),(Z?[0,0,0,0]:[23,59,59,999]).slice(xt)),$)},P=this.$W,ct=this.$M,lt=this.$D,mt="set"+(this.$u?"UTC":"");switch(R){case g:return Z?j(1,0):j(31,11);case f:return Z?j(1,ct):j(0,ct+1);case d:var wt=this.$locale().weekStart||0,St=(P<wt?P+7:P)-wt;return j(Z?lt-St:lt+(6-St),ct);case h:case x:return J(mt+"Hours",0);case u:return J(mt+"Minutes",1);case l:return J(mt+"Seconds",2);case s:return J(mt+"Milliseconds",3);default:return this.clone()}},W.endOf=function(H){return this.startOf(H,!1)},W.$set=function(H,G){var $,Z=D.p(H),R="set"+(this.$u?"UTC":""),j=($={},$[h]=R+"Date",$[x]=R+"Date",$[f]=R+"Month",$[g]=R+"FullYear",$[u]=R+"Hours",$[l]=R+"Minutes",$[s]=R+"Seconds",$[o]=R+"Milliseconds",$)[Z],J=Z===h?this.$D+(G-this.$W):G;if(Z===f||Z===g){var P=this.clone().set(x,1);P.$d[j](J),P.init(),this.$d=P.set(x,Math.min(this.$D,P.daysInMonth())).$d}else j&&this.$d[j](J);return this.init(),this},W.set=function(H,G){return this.clone().$set(H,G)},W.get=function(H){return this[D.p(H)]()},W.add=function(H,G){var $,Z=this;H=Number(H);var R=D.p(G),j=function(ct){var lt=O(Z);return D.w(lt.date(lt.date()+Math.round(ct*H)),Z)};if(R===f)return this.set(f,this.$M+H);if(R===g)return this.set(g,this.$y+H);if(R===h)return j(1);if(R===d)return j(7);var J=($={},$[l]=n,$[u]=i,$[s]=r,$)[R]||1,P=this.$d.getTime()+H*J;return D.w(P,this)},W.subtract=function(H,G){return this.add(-1*H,G)},W.format=function(H){var G=this,$=this.$locale();if(!this.isValid())return $.invalidDate||C;var Z=H||"YYYY-MM-DDTHH:mm:ssZ",R=D.z(this),j=this.$H,J=this.$m,P=this.$M,ct=$.weekdays,lt=$.months,mt=$.meridiem,wt=function(xt,_t,re,Qt){return xt&&(xt[_t]||xt(G,Z))||re[_t].slice(0,Qt)},St=function(xt){return D.s(j%12||12,xt,"0")},Dt=mt||function(xt,_t,re){var Qt=xt<12?"AM":"PM";return re?Qt.toLowerCase():Qt};return Z.replace(v,(function(xt,_t){return _t||(function(re){switch(re){case"YY":return String(G.$y).slice(-2);case"YYYY":return D.s(G.$y,4,"0");case"M":return P+1;case"MM":return D.s(P+1,2,"0");case"MMM":return wt($.monthsShort,P,lt,3);case"MMMM":return wt(lt,P);case"D":return G.$D;case"DD":return D.s(G.$D,2,"0");case"d":return String(G.$W);case"dd":return wt($.weekdaysMin,G.$W,ct,2);case"ddd":return wt($.weekdaysShort,G.$W,ct,3);case"dddd":return ct[G.$W];case"H":return String(j);case"HH":return D.s(j,2,"0");case"h":return St(1);case"hh":return St(2);case"a":return Dt(j,J,!0);case"A":return Dt(j,J,!1);case"m":return String(J);case"mm":return D.s(J,2,"0");case"s":return String(G.$s);case"ss":return D.s(G.$s,2,"0");case"SSS":return D.s(G.$ms,3,"0");case"Z":return R}return null})(xt)||R.replace(":","")}))},W.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},W.diff=function(H,G,$){var Z,R=this,j=D.p(G),J=O(H),P=(J.utcOffset()-this.utcOffset())*n,ct=this-J,lt=function(){return D.m(R,J)};switch(j){case g:Z=lt()/12;break;case f:Z=lt();break;case m:Z=lt()/3;break;case d:Z=(ct-P)/6048e5;break;case h:Z=(ct-P)/864e5;break;case u:Z=ct/i;break;case l:Z=ct/n;break;case s:Z=ct/r;break;default:Z=ct}return $?Z:D.a(Z)},W.daysInMonth=function(){return this.endOf(f).$D},W.$locale=function(){return E[this.$L]},W.locale=function(H,G){if(!H)return this.$L;var $=this.clone(),Z=q(H,G,!0);return Z&&($.$L=Z),$},W.clone=function(){return D.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()},U})(),tt=K.prototype;return O.prototype=tt,[["$ms",o],["$s",s],["$m",l],["$H",u],["$W",h],["$M",f],["$y",g],["$D",x]].forEach((function(U){tt[U[1]]=function(W){return this.$g(W,U[0],U[1])}})),O.extend=function(U,W){return U.$i||(U(W,K,O),U.$i=!0),O},O.locale=q,O.isDayjs=N,O.unix=function(U){return O(1e3*U)},O.en=E[F],O.Ls=E,O.p={},O}))})(Ju)),Ju.exports}var rP=eP();const nP=Ze(rP);var _w=Object.defineProperty,S=(e,t)=>_w(e,"name",{value:t,configurable:!0}),iP=(e,t)=>{for(var r in t)_w(e,r,{get:t[r],enumerable:!0})},wi={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ht={trace:S((...e)=>{},"trace"),debug:S((...e)=>{},"debug"),info:S((...e)=>{},"info"),warn:S((...e)=>{},"warn"),error:S((...e)=>{},"error"),fatal:S((...e)=>{},"fatal")},Ny=S(function(e="fatal"){let t=wi.fatal;typeof e=="string"?e.toLowerCase()in wi&&(t=wi[e]):typeof e=="number"&&(t=e),ht.trace=()=>{},ht.debug=()=>{},ht.info=()=>{},ht.warn=()=>{},ht.error=()=>{},ht.fatal=()=>{},t<=wi.fatal&&(ht.fatal=console.error?console.error.bind(console,vn("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",vn("FATAL"))),t<=wi.error&&(ht.error=console.error?console.error.bind(console,vn("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",vn("ERROR"))),t<=wi.warn&&(ht.warn=console.warn?console.warn.bind(console,vn("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",vn("WARN"))),t<=wi.info&&(ht.info=console.info?console.info.bind(console,vn("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",vn("INFO"))),t<=wi.debug&&(ht.debug=console.debug?console.debug.bind(console,vn("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",vn("DEBUG"))),t<=wi.trace&&(ht.trace=console.debug?console.debug.bind(console,vn("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",vn("TRACE")))},"setLogLevel"),vn=S(e=>`%c${nP().format("ss.SSS")} : ${e} : `,"format");const th={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},n)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const i=r<.5?r*(1+t):r+t-r*t,o=2*r-i;switch(n){case"r":return th.hue2rgb(o,i,e+1/3)*255;case"g":return th.hue2rgb(o,i,e)*255;case"b":return th.hue2rgb(o,i,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},n)=>{e/=255,t/=255,r/=255;const i=Math.max(e,t,r),o=Math.min(e,t,r),s=(i+o)/2;if(n==="l")return s*100;if(i===o)return 0;const l=i-o,u=s>.5?l/(2-i-o):l/(i+o);if(n==="s")return u*100;switch(i){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}}},oP={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},aP={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},Gt={channel:th,lang:oP,unit:aP},oo={};for(let e=0;e<=255;e++)oo[e]=Gt.unit.dec2hex(e);const wr={ALL:0,RGB:1,HSL:2};class sP{constructor(){this.type=wr.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=wr.ALL}is(t){return this.type===t}}class lP{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new sP}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=wr.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:n,l:i}=t;r===void 0&&(t.h=Gt.channel.rgb2hsl(t,"h")),n===void 0&&(t.s=Gt.channel.rgb2hsl(t,"s")),i===void 0&&(t.l=Gt.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:n,b:i}=t;r===void 0&&(t.r=Gt.channel.hsl2rgb(t,"r")),n===void 0&&(t.g=Gt.channel.hsl2rgb(t,"g")),i===void 0&&(t.b=Gt.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(wr.HSL)&&r!==void 0?r:(this._ensureHSL(),Gt.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(wr.HSL)&&r!==void 0?r:(this._ensureHSL(),Gt.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(wr.HSL)&&r!==void 0?r:(this._ensureHSL(),Gt.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(wr.RGB)&&r!==void 0?r:(this._ensureRGB(),Gt.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(wr.RGB)&&r!==void 0?r:(this._ensureRGB(),Gt.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(wr.RGB)&&r!==void 0?r:(this._ensureRGB(),Gt.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(wr.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(wr.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(wr.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(wr.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(wr.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(wr.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const ad=new lP({r:0,g:0,b:0,a:0},"transparent"),Va={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(Va.re);if(!t)return;const r=t[1],n=parseInt(r,16),i=r.length,o=i%4===0,s=i>4,l=s?1:17,u=s?8:4,h=o?0:-1,d=s?255:15;return ad.set({r:(n>>u*(h+3)&d)*l,g:(n>>u*(h+2)&d)*l,b:(n>>u*(h+1)&d)*l,a:o?(n&d)*l/255:1},e)},stringify:e=>{const{r:t,g:r,b:n,a:i}=e;return i<1?`#${oo[Math.round(t)]}${oo[Math.round(r)]}${oo[Math.round(n)]}${oo[Math.round(i*255)]}`:`#${oo[Math.round(t)]}${oo[Math.round(r)]}${oo[Math.round(n)]}`}},qo={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(qo.hueRe);if(t){const[,r,n]=t;switch(n){case"grad":return Gt.channel.clamp.h(parseFloat(r)*.9);case"rad":return Gt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Gt.channel.clamp.h(parseFloat(r)*360)}}return Gt.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(qo.re);if(!r)return;const[,n,i,o,s,l]=r;return ad.set({h:qo._hue2deg(n),s:Gt.channel.clamp.s(parseFloat(i)),l:Gt.channel.clamp.l(parseFloat(o)),a:s?Gt.channel.clamp.a(l?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{const{h:t,s:r,l:n,a:i}=e;return i<1?`hsla(${Gt.lang.round(t)}, ${Gt.lang.round(r)}%, ${Gt.lang.round(n)}%, ${i})`:`hsl(${Gt.lang.round(t)}, ${Gt.lang.round(r)}%, ${Gt.lang.round(n)}%)`}},jl={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=jl.colors[e];if(t)return Va.parse(t)},stringify:e=>{const t=Va.stringify(e);for(const r in jl.colors)if(jl.colors[r]===t)return r}},Ll={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(Ll.re);if(!r)return;const[,n,i,o,s,l,u,h,d]=r;return ad.set({r:Gt.channel.clamp.r(i?parseFloat(n)*2.55:parseFloat(n)),g:Gt.channel.clamp.g(s?parseFloat(o)*2.55:parseFloat(o)),b:Gt.channel.clamp.b(u?parseFloat(l)*2.55:parseFloat(l)),a:h?Gt.channel.clamp.a(d?parseFloat(h)/100:parseFloat(h)):1},e)},stringify:e=>{const{r:t,g:r,b:n,a:i}=e;return i<1?`rgba(${Gt.lang.round(t)}, ${Gt.lang.round(r)}, ${Gt.lang.round(n)}, ${Gt.lang.round(i)})`:`rgb(${Gt.lang.round(t)}, ${Gt.lang.round(r)}, ${Gt.lang.round(n)})`}},ai={format:{keyword:jl,hex:Va,rgb:Ll,rgba:Ll,hsl:qo,hsla:qo},parse:e=>{if(typeof e!="string")return e;const t=Va.parse(e)||Ll.parse(e)||qo.parse(e)||jl.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(wr.HSL)||e.data.r===void 0?qo.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Ll.stringify(e):Va.stringify(e)},Ew=(e,t)=>{const r=ai.parse(e);for(const n in t)r[n]=Gt.channel.clamp[n](t[n]);return ai.stringify(r)},uo=(e,t,r=0,n=1)=>{if(typeof e!="number")return Ew(e,{a:t});const i=ad.set({r:Gt.channel.clamp.r(e),g:Gt.channel.clamp.g(t),b:Gt.channel.clamp.b(r),a:Gt.channel.clamp.a(n)});return ai.stringify(i)},cP=e=>{const{r:t,g:r,b:n}=ai.parse(e),i=.2126*Gt.channel.toLinear(t)+.7152*Gt.channel.toLinear(r)+.0722*Gt.channel.toLinear(n);return Gt.lang.round(i)},uP=e=>cP(e)>=.5,Un=e=>!uP(e),Lw=(e,t,r)=>{const n=ai.parse(e),i=n[t],o=Gt.channel.clamp[t](i+r);return i!==o&&(n[t]=o),ai.stringify(n)},at=(e,t)=>Lw(e,"l",t),it=(e,t)=>Lw(e,"l",-t),I=(e,t)=>{const r=ai.parse(e),n={};for(const i in t)t[i]&&(n[i]=r[i]+t[i]);return Ew(e,n)},hP=(e,t,r=50)=>{const{r:n,g:i,b:o,a:s}=ai.parse(e),{r:l,g:u,b:h,a:d}=ai.parse(t),f=r/100,m=f*2-1,g=s-d,C=((m*g===-1?m:(m+g)/(1+m*g))+1)/2,k=1-C,v=n*C+l*k,w=i*C+u*k,_=o*C+h*k,A=s*f+d*(1-f);return uo(v,w,_,A)},Q=(e,t=100)=>{const r=ai.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,hP(r,e,t)};/*! @license DOMPurify 3.3.3 | (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.3/LICENSE */const{entries:Bw,setPrototypeOf:mk,isFrozen:dP,getPrototypeOf:fP,getOwnPropertyDescriptor:pP}=Object;let{freeze:Nr,seal:Sn,create:eh}=Object,{apply:um,construct:hm}=typeof Reflect<"u"&&Reflect;Nr||(Nr=function(t){return t});Sn||(Sn=function(t){return t});um||(um=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];return t.apply(r,i)});hm||(hm=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return new t(...n)});const Ru=Dr(Array.prototype.forEach),gP=Dr(Array.prototype.lastIndexOf),yk=Dr(Array.prototype.pop),gl=Dr(Array.prototype.push),mP=Dr(Array.prototype.splice),rh=Dr(String.prototype.toLowerCase),Mp=Dr(String.prototype.toString),Op=Dr(String.prototype.match),ml=Dr(String.prototype.replace),yP=Dr(String.prototype.indexOf),xP=Dr(String.prototype.trim),un=Dr(Object.prototype.hasOwnProperty),Mr=Dr(RegExp.prototype.test),yl=CP(TypeError);function Dr(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return um(e,t,n)}}function CP(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return hm(e,r)}}function ee(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rh;mk&&mk(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const o=r(i);o!==i&&(dP(t)||(t[n]=o),i=o)}e[i]=!0}return e}function kP(e){for(let t=0;t<e.length;t++)un(e,t)||(e[t]=null);return e}function ti(e){const t=eh(null);for(const[r,n]of Bw(e))un(e,r)&&(Array.isArray(n)?t[r]=kP(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=ti(n):t[r]=n);return t}function xl(e,t){for(;e!==null;){const n=pP(e,t);if(n){if(n.get)return Dr(n.get);if(typeof n.value=="function")return Dr(n.value)}e=fP(e)}function r(){return null}return r}const xk=Nr(["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"]),Rp=Nr(["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"]),Pp=Nr(["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"]),bP=Nr(["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"]),Np=Nr(["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"]),vP=Nr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ck=Nr(["#text"]),kk=Nr(["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"]),Dp=Nr(["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"]),bk=Nr(["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"]),Pu=Nr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),wP=Sn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),SP=Sn(/<%[\w\W]*|[\w\W]*%>/gm),TP=Sn(/\$\{[\w\W]*/gm),_P=Sn(/^data-[\-\w.\u00B7-\uFFFF]+$/),EP=Sn(/^aria-[\-\w]+$/),Aw=Sn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),LP=Sn(/^(?:\w+script|data):/i),BP=Sn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fw=Sn(/^html$/i),AP=Sn(/^[a-z][.\w]*(-[.\w]+)+$/i);var vk=Object.freeze({__proto__:null,ARIA_ATTR:EP,ATTR_WHITESPACE:BP,CUSTOM_ELEMENT:AP,DATA_ATTR:_P,DOCTYPE_NAME:Fw,ERB_EXPR:SP,IS_ALLOWED_URI:Aw,IS_SCRIPT_OR_DATA:LP,MUSTACHE_EXPR:wP,TMPLIT_EXPR:TP});const Cl={element:1,text:3,progressingInstruction:7,comment:8,document:9},FP=function(){return typeof window>"u"?null:window},IP=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},wk=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Iw(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:FP();const t=Pt=>Iw(Pt);if(t.version="3.3.3",t.removed=[],!e||!e.document||e.document.nodeType!==Cl.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,i=n.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:l,Element:u,NodeFilter:h,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:g}=e,x=u.prototype,C=xl(x,"cloneNode"),k=xl(x,"remove"),v=xl(x,"nextSibling"),w=xl(x,"childNodes"),_=xl(x,"parentNode");if(typeof s=="function"){const Pt=r.createElement("template");Pt.content&&Pt.content.ownerDocument&&(r=Pt.content.ownerDocument)}let A,F="";const{implementation:E,createNodeIterator:B,createDocumentFragment:N,getElementsByTagName:q}=r,{importNode:O}=n;let D=wk();t.isSupported=typeof Bw=="function"&&typeof _=="function"&&E&&E.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:K,ERB_EXPR:tt,TMPLIT_EXPR:U,DATA_ATTR:W,ARIA_ATTR:H,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:$,CUSTOM_ELEMENT:Z}=vk;let{IS_ALLOWED_URI:R}=vk,j=null;const J=ee({},[...xk,...Rp,...Pp,...Np,...Ck]);let P=null;const ct=ee({},[...kk,...Dp,...bk,...Pu]);let lt=Object.seal(eh(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}})),mt=null,wt=null;const St=Object.seal(eh(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Dt=!0,xt=!0,_t=!1,re=!0,Qt=!1,Ue=!0,Ce=!1,je=!1,jr=!1,Fe=!1,zr=!1,ze=!1,Br=!0,Ar=!1;const Yn="user-content-";let mr=!0,Le=!1,ot={},ut=null;const kt=ee({},["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 $t=null;const Xt=ee({},["audio","video","img","source","image","track"]);let Se=null;const Ve=ee({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ie="http://www.w3.org/1998/Math/MathML",qe="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let me=ge,Ye=!1,Pe=null;const yr=ee({},[Ie,qe,ge],Mp);let ye=ee({},["mi","mo","mn","ms","mtext"]),ur=ee({},["annotation-xml"]);const Gn=ee({},["title","style","font","a","script"]);let _n=null;const ko=["application/xhtml+xml","text/html"],bo="text/html";let ke=null,fi=null;const Ts=r.createElement("form"),_s=function(Y){return Y instanceof RegExp||Y instanceof Function},pi=function(){let Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(fi&&fi===Y)){if((!Y||typeof Y!="object")&&(Y={}),Y=ti(Y),_n=ko.indexOf(Y.PARSER_MEDIA_TYPE)===-1?bo:Y.PARSER_MEDIA_TYPE,ke=_n==="application/xhtml+xml"?Mp:rh,j=un(Y,"ALLOWED_TAGS")?ee({},Y.ALLOWED_TAGS,ke):J,P=un(Y,"ALLOWED_ATTR")?ee({},Y.ALLOWED_ATTR,ke):ct,Pe=un(Y,"ALLOWED_NAMESPACES")?ee({},Y.ALLOWED_NAMESPACES,Mp):yr,Se=un(Y,"ADD_URI_SAFE_ATTR")?ee(ti(Ve),Y.ADD_URI_SAFE_ATTR,ke):Ve,$t=un(Y,"ADD_DATA_URI_TAGS")?ee(ti(Xt),Y.ADD_DATA_URI_TAGS,ke):Xt,ut=un(Y,"FORBID_CONTENTS")?ee({},Y.FORBID_CONTENTS,ke):kt,mt=un(Y,"FORBID_TAGS")?ee({},Y.FORBID_TAGS,ke):ti({}),wt=un(Y,"FORBID_ATTR")?ee({},Y.FORBID_ATTR,ke):ti({}),ot=un(Y,"USE_PROFILES")?Y.USE_PROFILES:!1,Dt=Y.ALLOW_ARIA_ATTR!==!1,xt=Y.ALLOW_DATA_ATTR!==!1,_t=Y.ALLOW_UNKNOWN_PROTOCOLS||!1,re=Y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Qt=Y.SAFE_FOR_TEMPLATES||!1,Ue=Y.SAFE_FOR_XML!==!1,Ce=Y.WHOLE_DOCUMENT||!1,Fe=Y.RETURN_DOM||!1,zr=Y.RETURN_DOM_FRAGMENT||!1,ze=Y.RETURN_TRUSTED_TYPE||!1,jr=Y.FORCE_BODY||!1,Br=Y.SANITIZE_DOM!==!1,Ar=Y.SANITIZE_NAMED_PROPS||!1,mr=Y.KEEP_CONTENT!==!1,Le=Y.IN_PLACE||!1,R=Y.ALLOWED_URI_REGEXP||Aw,me=Y.NAMESPACE||ge,ye=Y.MATHML_TEXT_INTEGRATION_POINTS||ye,ur=Y.HTML_INTEGRATION_POINTS||ur,lt=Y.CUSTOM_ELEMENT_HANDLING||{},Y.CUSTOM_ELEMENT_HANDLING&&_s(Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(lt.tagNameCheck=Y.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Y.CUSTOM_ELEMENT_HANDLING&&_s(Y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(lt.attributeNameCheck=Y.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Y.CUSTOM_ELEMENT_HANDLING&&typeof Y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(lt.allowCustomizedBuiltInElements=Y.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Qt&&(xt=!1),zr&&(Fe=!0),ot&&(j=ee({},Ck),P=eh(null),ot.html===!0&&(ee(j,xk),ee(P,kk)),ot.svg===!0&&(ee(j,Rp),ee(P,Dp),ee(P,Pu)),ot.svgFilters===!0&&(ee(j,Pp),ee(P,Dp),ee(P,Pu)),ot.mathMl===!0&&(ee(j,Np),ee(P,bk),ee(P,Pu))),un(Y,"ADD_TAGS")||(St.tagCheck=null),un(Y,"ADD_ATTR")||(St.attributeCheck=null),Y.ADD_TAGS&&(typeof Y.ADD_TAGS=="function"?St.tagCheck=Y.ADD_TAGS:(j===J&&(j=ti(j)),ee(j,Y.ADD_TAGS,ke))),Y.ADD_ATTR&&(typeof Y.ADD_ATTR=="function"?St.attributeCheck=Y.ADD_ATTR:(P===ct&&(P=ti(P)),ee(P,Y.ADD_ATTR,ke))),Y.ADD_URI_SAFE_ATTR&&ee(Se,Y.ADD_URI_SAFE_ATTR,ke),Y.FORBID_CONTENTS&&(ut===kt&&(ut=ti(ut)),ee(ut,Y.FORBID_CONTENTS,ke)),Y.ADD_FORBID_CONTENTS&&(ut===kt&&(ut=ti(ut)),ee(ut,Y.ADD_FORBID_CONTENTS,ke)),mr&&(j["#text"]=!0),Ce&&ee(j,["html","head","body"]),j.table&&(ee(j,["tbody"]),delete mt.tbody),Y.TRUSTED_TYPES_POLICY){if(typeof Y.TRUSTED_TYPES_POLICY.createHTML!="function")throw yl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw yl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=Y.TRUSTED_TYPES_POLICY,F=A.createHTML("")}else A===void 0&&(A=IP(g,i)),A!==null&&typeof F=="string"&&(F=A.createHTML(""));Nr&&Nr(Y),fi=Y}},la=ee({},[...Rp,...Pp,...bP]),Ni=ee({},[...Np,...vP]),Ad=function(Y){let gt=_(Y);(!gt||!gt.tagName)&&(gt={namespaceURI:me,tagName:"template"});const Lt=rh(Y.tagName),be=rh(gt.tagName);return Pe[Y.namespaceURI]?Y.namespaceURI===qe?gt.namespaceURI===ge?Lt==="svg":gt.namespaceURI===Ie?Lt==="svg"&&(be==="annotation-xml"||ye[be]):!!la[Lt]:Y.namespaceURI===Ie?gt.namespaceURI===ge?Lt==="math":gt.namespaceURI===qe?Lt==="math"&&ur[be]:!!Ni[Lt]:Y.namespaceURI===ge?gt.namespaceURI===qe&&!ur[be]||gt.namespaceURI===Ie&&!ye[be]?!1:!Ni[Lt]&&(Gn[Lt]||!la[Lt]):!!(_n==="application/xhtml+xml"&&Pe[Y.namespaceURI]):!1},xr=function(Y){gl(t.removed,{element:Y});try{_(Y).removeChild(Y)}catch{k(Y)}},pn=function(Y,gt){try{gl(t.removed,{attribute:gt.getAttributeNode(Y),from:gt})}catch{gl(t.removed,{attribute:null,from:gt})}if(gt.removeAttribute(Y),Y==="is")if(Fe||zr)try{xr(gt)}catch{}else try{gt.setAttribute(Y,"")}catch{}},vo=function(Y){let gt=null,Lt=null;if(jr)Y="<remove></remove>"+Y;else{const Ne=Op(Y,/^[\r\n\t ]+/);Lt=Ne&&Ne[0]}_n==="application/xhtml+xml"&&me===ge&&(Y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Y+"</body></html>");const be=A?A.createHTML(Y):Y;if(me===ge)try{gt=new m().parseFromString(be,_n)}catch{}if(!gt||!gt.documentElement){gt=E.createDocument(me,"template",null);try{gt.documentElement.innerHTML=Ye?F:be}catch{}}const Jt=gt.body||gt.documentElement;return Y&&Lt&&Jt.insertBefore(r.createTextNode(Lt),Jt.childNodes[0]||null),me===ge?q.call(gt,Ce?"html":"body")[0]:Ce?gt.documentElement:Jt},ca=function(Y){return B.call(Y.ownerDocument||Y,Y,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Es=function(Y){return Y instanceof f&&(typeof Y.nodeName!="string"||typeof Y.textContent!="string"||typeof Y.removeChild!="function"||!(Y.attributes instanceof d)||typeof Y.removeAttribute!="function"||typeof Y.setAttribute!="function"||typeof Y.namespaceURI!="string"||typeof Y.insertBefore!="function"||typeof Y.hasChildNodes!="function")},Sc=function(Y){return typeof l=="function"&&Y instanceof l};function En(Pt,Y,gt){Ru(Pt,Lt=>{Lt.call(t,Y,gt,fi)})}const Xn=function(Y){let gt=null;if(En(D.beforeSanitizeElements,Y,null),Es(Y))return xr(Y),!0;const Lt=ke(Y.nodeName);if(En(D.uponSanitizeElement,Y,{tagName:Lt,allowedTags:j}),Ue&&Y.hasChildNodes()&&!Sc(Y.firstElementChild)&&Mr(/<[/\w!]/g,Y.innerHTML)&&Mr(/<[/\w!]/g,Y.textContent)||Y.nodeType===Cl.progressingInstruction||Ue&&Y.nodeType===Cl.comment&&Mr(/<[/\w]/g,Y.data))return xr(Y),!0;if(!(St.tagCheck instanceof Function&&St.tagCheck(Lt))&&(!j[Lt]||mt[Lt])){if(!mt[Lt]&&Bs(Lt)&&(lt.tagNameCheck instanceof RegExp&&Mr(lt.tagNameCheck,Lt)||lt.tagNameCheck instanceof Function&<.tagNameCheck(Lt)))return!1;if(mr&&!ut[Lt]){const be=_(Y)||Y.parentNode,Jt=w(Y)||Y.childNodes;if(Jt&&be){const Ne=Jt.length;for(let ir=Ne-1;ir>=0;--ir){const gn=C(Jt[ir],!0);gn.__removalCount=(Y.__removalCount||0)+1,be.insertBefore(gn,v(Y))}}}return xr(Y),!0}return Y instanceof u&&!Ad(Y)||(Lt==="noscript"||Lt==="noembed"||Lt==="noframes")&&Mr(/<\/no(script|embed|frames)/i,Y.innerHTML)?(xr(Y),!0):(Qt&&Y.nodeType===Cl.text&&(gt=Y.textContent,Ru([K,tt,U],be=>{gt=ml(gt,be," ")}),Y.textContent!==gt&&(gl(t.removed,{element:Y.cloneNode()}),Y.textContent=gt)),En(D.afterSanitizeElements,Y,null),!1)},Ls=function(Y,gt,Lt){if(wt[gt]||Br&&(gt==="id"||gt==="name")&&(Lt in r||Lt in Ts))return!1;if(!(xt&&!wt[gt]&&Mr(W,gt))){if(!(Dt&&Mr(H,gt))){if(!(St.attributeCheck instanceof Function&&St.attributeCheck(gt,Y))){if(!P[gt]||wt[gt]){if(!(Bs(Y)&&(lt.tagNameCheck instanceof RegExp&&Mr(lt.tagNameCheck,Y)||lt.tagNameCheck instanceof Function&<.tagNameCheck(Y))&&(lt.attributeNameCheck instanceof RegExp&&Mr(lt.attributeNameCheck,gt)||lt.attributeNameCheck instanceof Function&<.attributeNameCheck(gt,Y))||gt==="is"&<.allowCustomizedBuiltInElements&&(lt.tagNameCheck instanceof RegExp&&Mr(lt.tagNameCheck,Lt)||lt.tagNameCheck instanceof Function&<.tagNameCheck(Lt))))return!1}else if(!Se[gt]){if(!Mr(R,ml(Lt,$,""))){if(!((gt==="src"||gt==="xlink:href"||gt==="href")&&Y!=="script"&&yP(Lt,"data:")===0&&$t[Y])){if(!(_t&&!Mr(G,ml(Lt,$,"")))){if(Lt)return!1}}}}}}}return!0},Bs=function(Y){return Y!=="annotation-xml"&&Op(Y,Z)},Tc=function(Y){En(D.beforeSanitizeAttributes,Y,null);const{attributes:gt}=Y;if(!gt||Es(Y))return;const Lt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:P,forceKeepAttr:void 0};let be=gt.length;for(;be--;){const Jt=gt[be],{name:Ne,namespaceURI:ir,value:gn}=Jt,Ln=ke(Ne),As=gn;let Ge=Ne==="value"?As:xP(As);if(Lt.attrName=Ln,Lt.attrValue=Ge,Lt.keepAttr=!0,Lt.forceKeepAttr=void 0,En(D.uponSanitizeAttribute,Y,Lt),Ge=Lt.attrValue,Ar&&(Ln==="id"||Ln==="name")&&(pn(Ne,Y),Ge=Yn+Ge),Ue&&Mr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ge)){pn(Ne,Y);continue}if(Ln==="attributename"&&Op(Ge,"href")){pn(Ne,Y);continue}if(Lt.forceKeepAttr)continue;if(!Lt.keepAttr){pn(Ne,Y);continue}if(!re&&Mr(/\/>/i,Ge)){pn(Ne,Y);continue}Qt&&Ru([K,tt,U],en=>{Ge=ml(Ge,en," ")});const wo=ke(Y.nodeName);if(!Ls(wo,Ln,Ge)){pn(Ne,Y);continue}if(A&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!ir)switch(g.getAttributeType(wo,Ln)){case"TrustedHTML":{Ge=A.createHTML(Ge);break}case"TrustedScriptURL":{Ge=A.createScriptURL(Ge);break}}if(Ge!==As)try{ir?Y.setAttributeNS(ir,Ne,Ge):Y.setAttribute(Ne,Ge),Es(Y)?xr(Y):yk(t.removed)}catch{pn(Ne,Y)}}En(D.afterSanitizeAttributes,Y,null)},_c=function Pt(Y){let gt=null;const Lt=ca(Y);for(En(D.beforeSanitizeShadowDOM,Y,null);gt=Lt.nextNode();)En(D.uponSanitizeShadowNode,gt,null),Xn(gt),Tc(gt),gt.content instanceof o&&Pt(gt.content);En(D.afterSanitizeShadowDOM,Y,null)};return t.sanitize=function(Pt){let Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},gt=null,Lt=null,be=null,Jt=null;if(Ye=!Pt,Ye&&(Pt="<!-->"),typeof Pt!="string"&&!Sc(Pt))if(typeof Pt.toString=="function"){if(Pt=Pt.toString(),typeof Pt!="string")throw yl("dirty is not a string, aborting")}else throw yl("toString is not a function");if(!t.isSupported)return Pt;if(je||pi(Y),t.removed=[],typeof Pt=="string"&&(Le=!1),Le){if(Pt.nodeName){const gn=ke(Pt.nodeName);if(!j[gn]||mt[gn])throw yl("root node is forbidden and cannot be sanitized in-place")}}else if(Pt instanceof l)gt=vo("<!---->"),Lt=gt.ownerDocument.importNode(Pt,!0),Lt.nodeType===Cl.element&&Lt.nodeName==="BODY"||Lt.nodeName==="HTML"?gt=Lt:gt.appendChild(Lt);else{if(!Fe&&!Qt&&!Ce&&Pt.indexOf("<")===-1)return A&&ze?A.createHTML(Pt):Pt;if(gt=vo(Pt),!gt)return Fe?null:ze?F:""}gt&&jr&&xr(gt.firstChild);const Ne=ca(Le?Pt:gt);for(;be=Ne.nextNode();)Xn(be),Tc(be),be.content instanceof o&&_c(be.content);if(Le)return Pt;if(Fe){if(zr)for(Jt=N.call(gt.ownerDocument);gt.firstChild;)Jt.appendChild(gt.firstChild);else Jt=gt;return(P.shadowroot||P.shadowrootmode)&&(Jt=O.call(n,Jt,!0)),Jt}let ir=Ce?gt.outerHTML:gt.innerHTML;return Ce&&j["!doctype"]&>.ownerDocument&>.ownerDocument.doctype&>.ownerDocument.doctype.name&&Mr(Fw,gt.ownerDocument.doctype.name)&&(ir="<!DOCTYPE "+gt.ownerDocument.doctype.name+`>
|
|
158
|
+
`+ir),Qt&&Ru([K,tt,U],gn=>{ir=ml(ir,gn," ")}),A&&ze?A.createHTML(ir):ir},t.setConfig=function(){let Pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};pi(Pt),je=!0},t.clearConfig=function(){fi=null,je=!1},t.isValidAttribute=function(Pt,Y,gt){fi||pi({});const Lt=ke(Pt),be=ke(Y);return Ls(Lt,be,gt)},t.addHook=function(Pt,Y){typeof Y=="function"&&gl(D[Pt],Y)},t.removeHook=function(Pt,Y){if(Y!==void 0){const gt=gP(D[Pt],Y);return gt===-1?void 0:mP(D[Pt],gt,1)[0]}return yk(D[Pt])},t.removeHooks=function(Pt){D[Pt]=[]},t.removeAllHooks=function(){D=wk()},t}var us=Iw(),Mw=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,zl=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,MP=/\s*%%.*\n/gm,Xa,Ow=(Xa=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},S(Xa,"UnknownDiagramError"),Xa),Xo={},Dy=S(function(e,t){e=e.replace(Mw,"").replace(zl,"").replace(MP,`
|
|
159
|
+
`);for(const[r,{detector:n}]of Object.entries(Xo))if(n(e,t))return r;throw new Ow(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),dm=S((...e)=>{for(const{id:t,detector:r,loader:n}of e)Rw(t,r,n)},"registerLazyLoadedDiagrams"),Rw=S((e,t,r)=>{Xo[e]&&ht.warn(`Detector with key ${e} already exists. Overwriting.`),Xo[e]={detector:t,loader:r},ht.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),OP=S(e=>Xo[e].loader,"getDiagramLoader"),fm=S((e,t,{depth:r=2,clobber:n=!1}={})=>{const i={depth:r,clobber:n};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(o=>fm(e,o,i)),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"&&t[o]!==null&&(e[o]===void 0||typeof e[o]=="object")?(e[o]===void 0&&(e[o]=Array.isArray(t[o])?[]:{}),e[o]=fm(e[o],t[o],{depth:r-1,clobber:n})):(n||typeof e[o]!="object"&&typeof t[o]!="object")&&(e[o]=t[o])}),e)},"assignWithDepth"),rr=fm,ci="#ffffff",ui="#f2f2f2",Vt=S((e,t)=>t?I(e,{s:-40,l:10}):I(e,{s:-40,l:-10}),"mkBorder"),Ka,RP=(Ka=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var r,n,i,o,s,l,u,h,d,f,m,g,x,C,k,v,w,_,A,F,E,B;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||I(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||I(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Q(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Q(this.tertiaryColor),this.lineColor=this.lineColor||Q(this.background),this.arrowheadColor=this.arrowheadColor||Q(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?it(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||it(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Q(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||at(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||it(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||it(this.mainBkg,10)):(this.rowOdd=this.rowOdd||at(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||at(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||I(this.primaryColor,{h:30}),this.cScale4=this.cScale4||I(this.primaryColor,{h:60}),this.cScale5=this.cScale5||I(this.primaryColor,{h:90}),this.cScale6=this.cScale6||I(this.primaryColor,{h:120}),this.cScale7=this.cScale7||I(this.primaryColor,{h:150}),this.cScale8=this.cScale8||I(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||I(this.primaryColor,{h:270}),this.cScale10=this.cScale10||I(this.primaryColor,{h:300}),this.cScale11=this.cScale11||I(this.primaryColor,{h:330}),this.darkMode)for(let N=0;N<this.THEME_COLOR_LIMIT;N++)this["cScale"+N]=it(this["cScale"+N],75);else for(let N=0;N<this.THEME_COLOR_LIMIT;N++)this["cScale"+N]=it(this["cScale"+N],25);for(let N=0;N<this.THEME_COLOR_LIMIT;N++)this["cScaleInv"+N]=this["cScaleInv"+N]||Q(this["cScale"+N]);for(let N=0;N<this.THEME_COLOR_LIMIT;N++)this.darkMode?this["cScalePeer"+N]=this["cScalePeer"+N]||at(this["cScale"+N],10):this["cScalePeer"+N]=this["cScalePeer"+N]||it(this["cScale"+N],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let N=0;N<this.THEME_COLOR_LIMIT;N++)this["cScaleLabel"+N]=this["cScaleLabel"+N]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let N=0;N<5;N++)this["surface"+N]=this["surface"+N]||I(this.mainBkg,{h:180,s:-15,l:t*(5+N*3)}),this["surfacePeer"+N]=this["surfacePeer"+N]||I(this.mainBkg,{h:180,s:-15,l:t*(8+N*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||I(this.primaryColor,{h:64}),this.fillType3=this.fillType3||I(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||I(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||I(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||I(this.primaryColor,{h:128}),this.fillType7=this.fillType7||I(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||I(this.primaryColor,{l:-10}),this.pie5=this.pie5||I(this.secondaryColor,{l:-10}),this.pie6=this.pie6||I(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||I(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||I(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||I(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||I(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||I(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||I(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??I(this.primaryColor,{l:-30}),this.venn2=this.venn2??I(this.secondaryColor,{l:-30}),this.venn3=this.venn3??I(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??I(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??I(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??I(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??I(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??I(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((n=this.radar)==null?void 0:n.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((o=this.radar)==null?void 0:o.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((l=this.radar)==null?void 0:l.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((u=this.radar)==null?void 0:u.graticuleStrokeWidth)||1,graticuleOpacity:((h=this.radar)==null?void 0:h.graticuleOpacity)||.3,legendBoxSize:((d=this.radar)==null?void 0:d.legendBoxSize)||12,legendFontSize:((f=this.radar)==null?void 0:f.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||I(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?at(this.quadrant1Fill):it(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:((g=this.xyChart)==null?void 0:g.titleColor)||this.primaryTextColor,dataLabelColor:((x=this.xyChart)==null?void 0:x.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((C=this.xyChart)==null?void 0:C.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((k=this.xyChart)==null?void 0:k.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((v=this.xyChart)==null?void 0:v.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((w=this.xyChart)==null?void 0:w.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((_=this.xyChart)==null?void 0:_.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((A=this.xyChart)==null?void 0:A.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((F=this.xyChart)==null?void 0:F.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((E=this.xyChart)==null?void 0:E.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((B=this.xyChart)==null?void 0:B.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?it(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||I(this.primaryColor,{h:-30}),this.git4=this.git4||I(this.primaryColor,{h:-60}),this.git5=this.git5||I(this.primaryColor,{h:-90}),this.git6=this.git6||I(this.primaryColor,{h:60}),this.git7=this.git7||I(this.primaryColor,{h:120}),this.darkMode?(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.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(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||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},S(Ka,"Theme"),Ka),PP=S(e=>{const t=new RP;return t.calculate(e),t},"getThemeVariables"),Qa,NP=(Qa=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=at(this.primaryColor,16),this.tertiaryColor=I(this.primaryColor,{h:-160}),this.primaryBorderColor=Q(this.background),this.secondaryBorderColor=Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Q(this.primaryColor),this.secondaryTextColor=Q(this.secondaryColor),this.tertiaryTextColor=Q(this.tertiaryColor),this.lineColor=Q(this.background),this.textColor=Q(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=at(Q("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=uo(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=it("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=it(this.sectionBkgColor,10),this.taskBorderColor=uo(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=uo(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||at(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||it(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){var t,r,n,i,o,s,l,u,h,d,f,m,g,x,C,k,v,w,_,A,F,E;this.secondBkg=at(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=at(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=at(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=Q(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=I(this.primaryColor,{h:64}),this.fillType3=I(this.secondaryColor,{h:64}),this.fillType4=I(this.primaryColor,{h:-64}),this.fillType5=I(this.secondaryColor,{h:-64}),this.fillType6=I(this.primaryColor,{h:128}),this.fillType7=I(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||I(this.primaryColor,{h:30}),this.cScale4=this.cScale4||I(this.primaryColor,{h:60}),this.cScale5=this.cScale5||I(this.primaryColor,{h:90}),this.cScale6=this.cScale6||I(this.primaryColor,{h:120}),this.cScale7=this.cScale7||I(this.primaryColor,{h:150}),this.cScale8=this.cScale8||I(this.primaryColor,{h:210}),this.cScale9=this.cScale9||I(this.primaryColor,{h:270}),this.cScale10=this.cScale10||I(this.primaryColor,{h:300}),this.cScale11=this.cScale11||I(this.primaryColor,{h:330});for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScaleInv"+B]=this["cScaleInv"+B]||Q(this["cScale"+B]);for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScalePeer"+B]=this["cScalePeer"+B]||at(this["cScale"+B],10);for(let B=0;B<5;B++)this["surface"+B]=this["surface"+B]||I(this.mainBkg,{h:30,s:-30,l:-(-10+B*4)}),this["surfacePeer"+B]=this["surfacePeer"+B]||I(this.mainBkg,{h:30,s:-30,l:-(-7+B*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScaleLabel"+B]=this["cScaleLabel"+B]||this.scaleLabelColor;for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["pie"+B]=this["cScale"+B];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let B=0;B<8;B++)this["venn"+(B+1)]=this["venn"+(B+1)]??at(this["cScale"+B],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||I(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?at(this.quadrant1Fill):it(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((n=this.xyChart)==null?void 0:n.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((f=this.xyChart)==null?void 0:f.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.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:((g=this.radar)==null?void 0:g.axisColor)||this.lineColor,axisStrokeWidth:((x=this.radar)==null?void 0:x.axisStrokeWidth)||2,axisLabelFontSize:((C=this.radar)==null?void 0:C.axisLabelFontSize)||12,curveOpacity:((k=this.radar)==null?void 0:k.curveOpacity)||.5,curveStrokeWidth:((v=this.radar)==null?void 0:v.curveStrokeWidth)||2,graticuleColor:((w=this.radar)==null?void 0:w.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((_=this.radar)==null?void 0:_.graticuleStrokeWidth)||1,graticuleOpacity:((A=this.radar)==null?void 0:A.graticuleOpacity)||.3,legendBoxSize:((F=this.radar)==null?void 0:F.legendBoxSize)||12,legendFontSize:((E=this.radar)==null?void 0:E.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?it(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=at(this.secondaryColor,20),this.git1=at(this.pie2||this.secondaryColor,20),this.git2=at(this.pie3||this.tertiaryColor,20),this.git3=at(this.pie4||I(this.primaryColor,{h:-30}),20),this.git4=at(this.pie5||I(this.primaryColor,{h:-60}),20),this.git5=at(this.pie6||I(this.primaryColor,{h:-90}),10),this.git6=at(this.pie7||I(this.primaryColor,{h:60}),10),this.git7=at(this.pie8||I(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Q(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Q(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||at(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||at(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},S(Qa,"Theme"),Qa),DP=S(e=>{const t=new NP;return t.calculate(e),t},"getThemeVariables"),Za,$P=(Za=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=I(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=I(this.primaryColor,{h:-160}),this.primaryBorderColor=Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Q(this.primaryColor),this.secondaryTextColor=Q(this.secondaryColor),this.tertiaryTextColor=Q(this.tertiaryColor),this.lineColor=Q(this.background),this.textColor=Q(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=Vt(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=uo(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){var t,r,n,i,o,s,l,u,h,d,f,m,g,x,C,k,v,w,_,A,F,E;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||I(this.primaryColor,{h:30}),this.cScale4=this.cScale4||I(this.primaryColor,{h:60}),this.cScale5=this.cScale5||I(this.primaryColor,{h:90}),this.cScale6=this.cScale6||I(this.primaryColor,{h:120}),this.cScale7=this.cScale7||I(this.primaryColor,{h:150}),this.cScale8=this.cScale8||I(this.primaryColor,{h:210}),this.cScale9=this.cScale9||I(this.primaryColor,{h:270}),this.cScale10=this.cScale10||I(this.primaryColor,{h:300}),this.cScale11=this.cScale11||I(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||it(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||it(this.tertiaryColor,40);for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScale"+B]=it(this["cScale"+B],10),this["cScalePeer"+B]=this["cScalePeer"+B]||it(this["cScale"+B],25);for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScaleInv"+B]=this["cScaleInv"+B]||I(this["cScale"+B],{h:180});for(let B=0;B<5;B++)this["surface"+B]=this["surface"+B]||I(this.mainBkg,{h:30,l:-(5+B*5)}),this["surfacePeer"+B]=this["surfacePeer"+B]||I(this.mainBkg,{h:30,l:-(7+B*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||Q(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Q(this.labelTextColor);for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScaleLabel"+B]=this["cScaleLabel"+B]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||at(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||at(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=I(this.primaryColor,{h:64}),this.fillType3=I(this.secondaryColor,{h:64}),this.fillType4=I(this.primaryColor,{h:-64}),this.fillType5=I(this.secondaryColor,{h:-64}),this.fillType6=I(this.primaryColor,{h:128}),this.fillType7=I(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||I(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||I(this.primaryColor,{l:-10}),this.pie5=this.pie5||I(this.secondaryColor,{l:-30}),this.pie6=this.pie6||I(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||I(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||I(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||I(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||I(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||I(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||I(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??I(this.primaryColor,{l:-30}),this.venn2=this.venn2??I(this.secondaryColor,{l:-30}),this.venn3=this.venn3??I(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??I(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??I(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??I(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??I(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??I(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||I(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?at(this.quadrant1Fill):it(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:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((i=this.radar)==null?void 0:i.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((u=this.radar)==null?void 0:u.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.xyChart={backgroundColor:((f=this.xyChart)==null?void 0:f.backgroundColor)||this.background,titleColor:((m=this.xyChart)==null?void 0:m.titleColor)||this.primaryTextColor,dataLabelColor:((g=this.xyChart)==null?void 0:g.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((x=this.xyChart)==null?void 0:x.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:((v=this.xyChart)==null?void 0:v.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((w=this.xyChart)==null?void 0:w.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((_=this.xyChart)==null?void 0:_.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((A=this.xyChart)==null?void 0:A.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((F=this.xyChart)==null?void 0:F.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((E=this.xyChart)==null?void 0:E.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||I(this.primaryColor,{h:-30}),this.git4=this.git4||I(this.primaryColor,{h:-60}),this.git5=this.git5||I(this.primaryColor,{h:-90}),this.git6=this.git6||I(this.primaryColor,{h:60}),this.git7=this.git7||I(this.primaryColor,{h:120}),this.darkMode?(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.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||it(Q(this.git0),25),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Q(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Q(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||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(t){if(Object.keys(this).forEach(n=>{this[n]==="calculated"&&(this[n]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},S(Za,"Theme"),Za),jP=S(e=>{const t=new $P;return t.calculate(e),t},"getThemeVariables"),Ja,zP=(Ja=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=at("#cde498",10),this.primaryBorderColor=Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Q(this.primaryColor),this.secondaryTextColor=Q(this.secondaryColor),this.tertiaryTextColor=Q(this.primaryColor),this.lineColor=Q(this.background),this.textColor=Q(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){var t,r,n,i,o,s,l,u,h,d,f,m,g,x,C,k,v,w,_,A,F,E;this.actorBorder=it(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||I(this.primaryColor,{h:30}),this.cScale4=this.cScale4||I(this.primaryColor,{h:60}),this.cScale5=this.cScale5||I(this.primaryColor,{h:90}),this.cScale6=this.cScale6||I(this.primaryColor,{h:120}),this.cScale7=this.cScale7||I(this.primaryColor,{h:150}),this.cScale8=this.cScale8||I(this.primaryColor,{h:210}),this.cScale9=this.cScale9||I(this.primaryColor,{h:270}),this.cScale10=this.cScale10||I(this.primaryColor,{h:300}),this.cScale11=this.cScale11||I(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||it(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||it(this.tertiaryColor,40);for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScale"+B]=it(this["cScale"+B],10),this["cScalePeer"+B]=this["cScalePeer"+B]||it(this["cScale"+B],25);for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScaleInv"+B]=this["cScaleInv"+B]||I(this["cScale"+B],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScaleLabel"+B]=this["cScaleLabel"+B]||this.scaleLabelColor;for(let B=0;B<5;B++)this["surface"+B]=this["surface"+B]||I(this.mainBkg,{h:30,s:-30,l:-(5+B*5)}),this["surfacePeer"+B]=this["surfacePeer"+B]||I(this.mainBkg,{h:30,s:-30,l:-(8+B*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||at(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||at(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=I(this.primaryColor,{h:64}),this.fillType3=I(this.secondaryColor,{h:64}),this.fillType4=I(this.primaryColor,{h:-64}),this.fillType5=I(this.secondaryColor,{h:-64}),this.fillType6=I(this.primaryColor,{h:128}),this.fillType7=I(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||I(this.primaryColor,{l:-30}),this.pie5=this.pie5||I(this.secondaryColor,{l:-30}),this.pie6=this.pie6||I(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||I(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||I(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||I(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||I(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||I(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||I(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??I(this.primaryColor,{l:-30}),this.venn2=this.venn2??I(this.secondaryColor,{l:-30}),this.venn3=this.venn3??I(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??I(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??I(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??I(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??I(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??I(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||I(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?at(this.quadrant1Fill):it(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:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((i=this.radar)==null?void 0:i.curveOpacity)||.5,curveStrokeWidth:((o=this.radar)==null?void 0:o.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((u=this.radar)==null?void 0:u.graticuleOpacity)||.3,legendBoxSize:((h=this.radar)==null?void 0:h.legendBoxSize)||12,legendFontSize:((d=this.radar)==null?void 0:d.legendFontSize)||12},this.xyChart={backgroundColor:((f=this.xyChart)==null?void 0:f.backgroundColor)||this.background,titleColor:((m=this.xyChart)==null?void 0:m.titleColor)||this.primaryTextColor,dataLabelColor:((g=this.xyChart)==null?void 0:g.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((x=this.xyChart)==null?void 0:x.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:((v=this.xyChart)==null?void 0:v.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((w=this.xyChart)==null?void 0:w.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((_=this.xyChart)==null?void 0:_.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((A=this.xyChart)==null?void 0:A.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((F=this.xyChart)==null?void 0:F.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((E=this.xyChart)==null?void 0:E.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||I(this.primaryColor,{h:-30}),this.git4=this.git4||I(this.primaryColor,{h:-60}),this.git5=this.git5||I(this.primaryColor,{h:-90}),this.git6=this.git6||I(this.primaryColor,{h:60}),this.git7=this.git7||I(this.primaryColor,{h:120}),this.darkMode?(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.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Q(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Q(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||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},S(Ja,"Theme"),Ja),qP=S(e=>{const t=new zP;return t.calculate(e),t},"getThemeVariables"),ts,WP=(ts=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=at(this.contrast,55),this.background="#ffffff",this.tertiaryColor=I(this.primaryColor,{h:-160}),this.primaryBorderColor=Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Q(this.primaryColor),this.secondaryTextColor=Q(this.secondaryColor),this.tertiaryTextColor=Q(this.tertiaryColor),this.lineColor=Q(this.background),this.textColor=Q(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||at(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var t,r,n,i,o,s,l,u,h,d,f,m,g,x,C,k,v,w,_,A,F,E;this.secondBkg=at(this.contrast,55),this.border2=this.contrast,this.actorBorder=at(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 B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScaleInv"+B]=this["cScaleInv"+B]||Q(this["cScale"+B]);for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this.darkMode?this["cScalePeer"+B]=this["cScalePeer"+B]||at(this["cScale"+B],10):this["cScalePeer"+B]=this["cScalePeer"+B]||it(this["cScale"+B],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["cScaleLabel"+B]=this["cScaleLabel"+B]||this.scaleLabelColor;for(let B=0;B<5;B++)this["surface"+B]=this["surface"+B]||I(this.mainBkg,{l:-(5+B*5)}),this["surfacePeer"+B]=this["surfacePeer"+B]||I(this.mainBkg,{l:-(8+B*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=at(this.contrast,30),this.sectionBkgColor2=at(this.contrast,30),this.taskBorderColor=it(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=at(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=it(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=I(this.primaryColor,{h:64}),this.fillType3=I(this.secondaryColor,{h:64}),this.fillType4=I(this.primaryColor,{h:-64}),this.fillType5=I(this.secondaryColor,{h:-64}),this.fillType6=I(this.primaryColor,{h:128}),this.fillType7=I(this.secondaryColor,{h:128});for(let B=0;B<this.THEME_COLOR_LIMIT;B++)this["pie"+B]=this["cScale"+B];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let B=0;B<8;B++)this["venn"+(B+1)]=this["venn"+(B+1)]??this["cScale"+B];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||I(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?at(this.quadrant1Fill):it(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((t=this.xyChart)==null?void 0:t.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,dataLabelColor:((n=this.xyChart)==null?void 0:n.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((f=this.xyChart)==null?void 0:f.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((g=this.radar)==null?void 0:g.axisColor)||this.lineColor,axisStrokeWidth:((x=this.radar)==null?void 0:x.axisStrokeWidth)||2,axisLabelFontSize:((C=this.radar)==null?void 0:C.axisLabelFontSize)||12,curveOpacity:((k=this.radar)==null?void 0:k.curveOpacity)||.5,curveStrokeWidth:((v=this.radar)==null?void 0:v.curveStrokeWidth)||2,graticuleColor:((w=this.radar)==null?void 0:w.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((_=this.radar)==null?void 0:_.graticuleStrokeWidth)||1,graticuleOpacity:((A=this.radar)==null?void 0:A.graticuleOpacity)||.3,legendBoxSize:((F=this.radar)==null?void 0:F.legendBoxSize)||12,legendFontSize:((E=this.radar)==null?void 0:E.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=it(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||I(this.primaryColor,{h:-30}),this.git4=this.pie5||I(this.primaryColor,{h:-60}),this.git5=this.pie6||I(this.primaryColor,{h:-90}),this.git6=this.pie7||I(this.primaryColor,{h:60}),this.git7=this.pie8||I(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(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||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},S(ts,"Theme"),ts),HP=S(e=>{const t=new WP;return t.calculate(e),t},"getThemeVariables"),es,UP=(es=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=Vt(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var o,s,l,u,h,d,f,m,g,x,C;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||I(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||I(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Q(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Q(this.tertiaryColor),this.lineColor=this.lineColor||Q(this.background),this.arrowheadColor=this.arrowheadColor||Q(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?it(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||it(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Q(this.lineColor);const t="#ECECFE",r="#E9E9F1",n=I(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||at(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||t,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||n,this.cScale3=this.cScale3||I(t,{h:30}),this.cScale4=this.cScale4||I(t,{h:60}),this.cScale5=this.cScale5||I(t,{h:90}),this.cScale6=this.cScale6||I(t,{h:120}),this.cScale7=this.cScale7||I(t,{h:150}),this.cScale8=this.cScale8||I(t,{h:210,l:150}),this.cScale9=this.cScale9||I(t,{h:270}),this.cScale10=this.cScale10||I(t,{h:300}),this.cScale11=this.cScale11||I(t,{h:330}),this.darkMode)for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=it(this["cScale"+k],75);else for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=it(this["cScale"+k],25);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||Q(this["cScale"+k]);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this.darkMode?this["cScalePeer"+k]=this["cScalePeer"+k]||at(this["cScale"+k],10):this["cScalePeer"+k]=this["cScalePeer"+k]||it(this["cScale"+k],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||I(this.mainBkg,{h:180,s:-15,l:i*(5+k*3)}),this["surfacePeer"+k]=this["surfacePeer"+k]||I(this.mainBkg,{h:180,s:-15,l:i*(8+k*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||I(t,{h:64}),this.fillType3=this.fillType3||I(r,{h:64}),this.fillType4=this.fillType4||I(t,{h:-64}),this.fillType5=this.fillType5||I(r,{h:-64}),this.fillType6=this.fillType6||I(t,{h:128}),this.fillType7=this.fillType7||I(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||n,this.pie4=this.pie4||I(t,{l:-10}),this.pie5=this.pie5||I(r,{l:-10}),this.pie6=this.pie6||I(n,{l:-10}),this.pie7=this.pie7||I(t,{h:60,l:-10}),this.pie8=this.pie8||I(t,{h:-60,l:-10}),this.pie9=this.pie9||I(t,{h:120,l:0}),this.pie10=this.pie10||I(t,{h:60,l:-20}),this.pie11=this.pie11||I(t,{h:-60,l:-20}),this.pie12=this.pie12||I(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||I(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?at(this.quadrant1Fill):it(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:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((u=this.xyChart)==null?void 0:u.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((d=this.xyChart)==null?void 0:d.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((f=this.xyChart)==null?void 0:f.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((m=this.xyChart)==null?void 0:m.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((g=this.xyChart)==null?void 0:g.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((x=this.xyChart)==null?void 0:x.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?it(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||n,this.git3=this.git3||I(t,{h:-30}),this.git4=this.git4||I(t,{h:-60}),this.git5=this.git5||I(t,{h:-90}),this.git6=this.git6||I(t,{h:60}),this.git7=this.git7||I(t,{h:120}),this.darkMode?(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.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(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||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},S(es,"Theme"),es),VP=S(e=>{const t=new UP;return t.calculate(e),t},"getThemeVariables"),rs,YP=(rs=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=at(this.primaryColor,16),this.tertiaryColor=I(this.primaryColor,{h:-160}),this.primaryBorderColor=Q(this.background),this.secondaryBorderColor=Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Q(this.primaryColor),this.secondaryTextColor=Q(this.secondaryColor),this.tertiaryTextColor=Q(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=at(Q("#323D47"),10),this.border1="#ccc",this.border2=uo(255,255,255,.25),this.arrowheadColor=Q(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var r,n,i,o,s,l,u,h,d,f,m;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||I(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||I(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Q(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Q(this.tertiaryColor),this.lineColor=this.lineColor||Q(this.background),this.arrowheadColor=this.arrowheadColor||Q(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?it(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||it(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Q(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||at(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||I(this.primaryColor,{h:30}),this.cScale4=this.cScale4||I(this.primaryColor,{h:60}),this.cScale5=this.cScale5||I(this.primaryColor,{h:90}),this.cScale6=this.cScale6||I(this.primaryColor,{h:120}),this.cScale7=this.cScale7||I(this.primaryColor,{h:150}),this.cScale8=this.cScale8||I(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||I(this.primaryColor,{h:270}),this.cScale10=this.cScale10||I(this.primaryColor,{h:300}),this.cScale11=this.cScale11||I(this.primaryColor,{h:330}),this.darkMode)for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=it(this["cScale"+g],75);else for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=it(this["cScale"+g],25);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||Q(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||at(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||it(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=this["cScaleLabel"+g]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||I(this.mainBkg,{h:180,s:-15,l:t*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||I(this.mainBkg,{h:180,s:-15,l:t*(8+g*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||I(this.primaryColor,{h:64}),this.fillType3=this.fillType3||I(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||I(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||I(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||I(this.primaryColor,{h:128}),this.fillType7=this.fillType7||I(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||I(this.primaryColor,{l:-10}),this.pie5=this.pie5||I(this.secondaryColor,{l:-10}),this.pie6=this.pie6||I(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||I(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||I(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||I(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||I(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||I(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||I(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||I(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?at(this.quadrant1Fill):it(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((f=this.xyChart)==null?void 0:f.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.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?it(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=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.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(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||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},S(rs,"Theme"),rs),GP=S(e=>{const t=new YP;return t.calculate(e),t},"getThemeVariables"),ns,XP=(ns=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Vt("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){var o,s,l,u,h,d,f,m,g,x,C;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||I(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||I(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Q(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Q(this.tertiaryColor),this.lineColor=this.lineColor||Q(this.background),this.arrowheadColor=this.arrowheadColor||Q(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?it(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||it(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Q(this.lineColor);const t="#ECECFE",r="#E9E9F1",n=I(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||at(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackground="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=this.mainBkg;if(this.darkMode)for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=it(this["cScale"+k],75);else for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScale"+k]=it(this["cScale"+k],25);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||Q(this["cScale"+k]);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this.darkMode?this["cScalePeer"+k]=this["cScalePeer"+k]||at(this["cScale"+k],10):this["cScalePeer"+k]=this["cScalePeer"+k]||it(this["cScale"+k],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||I(this.mainBkg,{h:180,s:-15,l:i*(5+k*3)}),this["surfacePeer"+k]=this["surfacePeer"+k]||I(this.mainBkg,{h:180,s:-15,l:i*(8+k*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||I(t,{h:64}),this.fillType3=this.fillType3||I(r,{h:64}),this.fillType4=this.fillType4||I(t,{h:-64}),this.fillType5=this.fillType5||I(r,{h:-64}),this.fillType6=this.fillType6||I(t,{h:128}),this.fillType7=this.fillType7||I(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||n,this.pie4=this.pie4||I(t,{l:-10}),this.pie5=this.pie5||I(r,{l:-10}),this.pie6=this.pie6||I(n,{l:-10}),this.pie7=this.pie7||I(t,{h:60,l:-10}),this.pie8=this.pie8||I(t,{h:-60,l:-10}),this.pie9=this.pie9||I(t,{h:120,l:0}),this.pie10=this.pie10||I(t,{h:60,l:-20}),this.pie11=this.pie11||I(t,{h:-60,l:-20}),this.pie12=this.pie12||I(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||I(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?at(this.quadrant1Fill):it(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:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((u=this.xyChart)==null?void 0:u.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((d=this.xyChart)==null?void 0:d.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((f=this.xyChart)==null?void 0:f.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((m=this.xyChart)==null?void 0:m.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((g=this.xyChart)==null?void 0:g.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((x=this.xyChart)==null?void 0:x.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?it(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||n,this.git3=this.git3||I(t,{h:-30}),this.git4=this.git4||I(t,{h:-60}),this.git5=this.git5||I(t,{h:-90}),this.git6=this.git6||I(t,{h:60}),this.git7=this.git7||I(t,{h:120}),this.darkMode?(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.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},S(ns,"Theme"),ns),KP=S(e=>{const t=new XP;return t.calculate(e),t},"getThemeVariables"),is,QP=(is=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=at(this.primaryColor,16),this.tertiaryColor=I(this.primaryColor,{h:-160}),this.primaryBorderColor=Q(this.background),this.secondaryBorderColor=Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Q(this.primaryColor),this.secondaryTextColor=Q(this.secondaryColor),this.tertiaryTextColor=Q(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=at(Q("#323D47"),10),this.border1="#ccc",this.border2=uo(255,255,255,.25),this.arrowheadColor=Q(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){var r,n,i,o,s,l,u,h,d,f,m;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||I(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||I(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Q(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Q(this.tertiaryColor),this.lineColor=this.lineColor||Q(this.background),this.arrowheadColor=this.arrowheadColor||Q(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?it(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||it(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Q(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||at(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackground="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||I(this.primaryColor,{h:30}),this.cScale4=this.cScale4||I(this.primaryColor,{h:60}),this.cScale5=this.cScale5||I(this.primaryColor,{h:90}),this.cScale6=this.cScale6||I(this.primaryColor,{h:120}),this.cScale7=this.cScale7||I(this.primaryColor,{h:150}),this.cScale8=this.cScale8||I(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||I(this.primaryColor,{h:270}),this.cScale10=this.cScale10||I(this.primaryColor,{h:300}),this.cScale11=this.cScale11||I(this.primaryColor,{h:330}),this.darkMode)for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=it(this["cScale"+g],75);else for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=it(this["cScale"+g],25);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||Q(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||at(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||it(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=this["cScaleLabel"+g]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||I(this.mainBkg,{h:180,s:-15,l:t*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||I(this.mainBkg,{h:180,s:-15,l:t*(8+g*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||I(this.primaryColor,{h:64}),this.fillType3=this.fillType3||I(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||I(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||I(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||I(this.primaryColor,{h:128}),this.fillType7=this.fillType7||I(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||I(this.primaryColor,{l:-10}),this.pie5=this.pie5||I(this.secondaryColor,{l:-10}),this.pie6=this.pie6||I(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||I(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||I(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||I(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||I(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||I(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||I(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||I(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?at(this.quadrant1Fill):it(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((f=this.xyChart)==null?void 0:f.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.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?it(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||I(this.primaryColor,{h:-30}),this.git4=this.git4||I(this.primaryColor,{h:-60}),this.git5=this.git5||I(this.primaryColor,{h:-90}),this.git6=this.git6||I(this.primaryColor,{h:60}),this.git7=this.git7||I(this.primaryColor,{h:120}),this.darkMode?(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.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},S(is,"Theme"),is),ZP=S(e=>{const t=new QP;return t.calculate(e),t},"getThemeVariables"),os,JP=(os=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Vt(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){var o,s,l,u,h,d,f,m,g,x,C;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||I(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||I(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Q(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Q(this.tertiaryColor),this.lineColor=this.lineColor||Q(this.background),this.arrowheadColor=this.arrowheadColor||Q(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?it(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||it(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Q(this.lineColor);const t="#ECECFE",r="#E9E9F1",n=I(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||n,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||at(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleInv"+k]=this["cScaleInv"+k]||Q(this["cScale"+k]);for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this.darkMode?this["cScalePeer"+k]=this["cScalePeer"+k]||at(this["cScale"+k],10):this["cScalePeer"+k]=this["cScalePeer"+k]||it(this["cScale"+k],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let k=0;k<this.THEME_COLOR_LIMIT;k++)this["cScaleLabel"+k]=this["cScaleLabel"+k]||this.scaleLabelColor;const i=this.darkMode?-4:-1;for(let k=0;k<5;k++)this["surface"+k]=this["surface"+k]||I(this.mainBkg,{h:180,s:-15,l:i*(5+k*3)}),this["surfacePeer"+k]=this["surfacePeer"+k]||I(this.mainBkg,{h:180,s:-15,l:i*(8+k*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||I(t,{h:64}),this.fillType3=this.fillType3||I(r,{h:64}),this.fillType4=this.fillType4||I(t,{h:-64}),this.fillType5=this.fillType5||I(r,{h:-64}),this.fillType6=this.fillType6||I(t,{h:128}),this.fillType7=this.fillType7||I(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||n,this.pie4=this.pie4||I(t,{l:-10}),this.pie5=this.pie5||I(r,{l:-10}),this.pie6=this.pie6||I(n,{l:-10}),this.pie7=this.pie7||I(t,{h:60,l:-10}),this.pie8=this.pie8||I(t,{h:-60,l:-10}),this.pie9=this.pie9||I(t,{h:120,l:0}),this.pie10=this.pie10||I(t,{h:60,l:-20}),this.pie11=this.pie11||I(t,{h:-60,l:-20}),this.pie12=this.pie12||I(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||I(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?at(this.quadrant1Fill):it(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:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((u=this.xyChart)==null?void 0:u.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((d=this.xyChart)==null?void 0:d.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((f=this.xyChart)==null?void 0:f.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((m=this.xyChart)==null?void 0:m.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((g=this.xyChart)==null?void 0:g.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((x=this.xyChart)==null?void 0:x.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?it(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||n,this.git3=this.git3||I(t,{h:-30}),this.git4=this.git4||I(t,{h:-60}),this.git5=this.git5||I(t,{h:-90}),this.git6=this.git6||I(t,{h:60}),this.git7=this.git7||I(t,{h:120}),this.darkMode?(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.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},S(os,"Theme"),os),tN=S(e=>{const t=new JP;return t.calculate(e),t},"getThemeVariables"),as,eN=(as=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=at(this.primaryColor,16),this.tertiaryColor=I(this.primaryColor,{h:-160}),this.primaryBorderColor=Q(this.background),this.secondaryBorderColor=Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Vt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Q(this.primaryColor),this.secondaryTextColor=Q(this.secondaryColor),this.tertiaryTextColor=Q(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=at(Q("#323D47"),10),this.border1="#ccc",this.border2=uo(255,255,255,.25),this.arrowheadColor=Q(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){var r,n,i,o,s,l,u,h,d,f,m;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||I(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||I(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Vt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Vt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Vt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Vt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Q(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Q(this.tertiaryColor),this.lineColor=this.lineColor||Q(this.background),this.arrowheadColor=this.arrowheadColor||Q(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?it(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||it(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Q(this.lineColor),this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||at(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||Q(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||at(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||it(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=it(this["cScale"+g],75);const t=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||I(this.mainBkg,{h:180,s:-15,l:t*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||I(this.mainBkg,{h:180,s:-15,l:t*(8+g*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||I(this.primaryColor,{h:64}),this.fillType3=this.fillType3||I(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||I(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||I(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||I(this.primaryColor,{h:128}),this.fillType7=this.fillType7||I(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||I(this.primaryColor,{l:-10}),this.pie5=this.pie5||I(this.secondaryColor,{l:-10}),this.pie6=this.pie6||I(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||I(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||I(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||I(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||I(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||I(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||I(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||I(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||I(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||I(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||I(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||I(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||I(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Un(this.quadrant1Fill)?at(this.quadrant1Fill):it(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((o=this.xyChart)==null?void 0:o.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((u=this.xyChart)==null?void 0:u.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((d=this.xyChart)==null?void 0:d.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((f=this.xyChart)==null?void 0:f.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.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?it(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||I(this.primaryColor,{h:-30}),this.git4=this.git4||I(this.primaryColor,{h:-60}),this.git5=this.git5||I(this.primaryColor,{h:-90}),this.git6=this.git6||I(this.primaryColor,{h:60}),this.git7=this.git7||I(this.primaryColor,{h:120}),this.darkMode?(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.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||ci,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ui}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(n=>{this[n]=t[n]}),this.updateColors(),r.forEach(n=>{this[n]=t[n]})}},S(as,"Theme"),as),rN=S(e=>{const t=new eN;return t.calculate(e),t},"getThemeVariables"),Li={base:{getThemeVariables:PP},dark:{getThemeVariables:DP},default:{getThemeVariables:jP},forest:{getThemeVariables:qP},neutral:{getThemeVariables:HP},neo:{getThemeVariables:VP},"neo-dark":{getThemeVariables:GP},redux:{getThemeVariables:KP},"redux-dark":{getThemeVariables:ZP},"redux-color":{getThemeVariables:tN},"redux-dark-color":{getThemeVariables:rN}},sn={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},Pw={...sn,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Li.default.getThemeVariables(),sequence:{...sn.sequence,messageFont:S(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:S(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:S(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...sn.gantt,tickInterval:void 0,useWidth:void 0},c4:{...sn.c4,useWidth:void 0,personFont:S(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...sn.flowchart,inheritDir:!1},external_personFont:S(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:S(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:S(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:S(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:S(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:S(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:S(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:S(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:S(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:S(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:S(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:S(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:S(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:S(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:S(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:S(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:S(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:S(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:S(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:S(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:S(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...sn.pie,useWidth:984},xyChart:{...sn.xyChart,useWidth:void 0},requirement:{...sn.requirement,useWidth:void 0},packet:{...sn.packet},treeView:{...sn.treeView,useWidth:void 0},radar:{...sn.radar},ishikawa:{...sn.ishikawa},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...sn.venn}},Nw=S((e,t="")=>Object.keys(e).reduce((r,n)=>Array.isArray(e[n])?r:typeof e[n]=="object"&&e[n]!==null?[...r,t+n,...Nw(e[n],"")]:[...r,t+n],[]),"keyify"),nN=new Set(Nw(Pw,"")),Dw=Pw,kh=S(e=>{if(ht.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>kh(t));return}for(const t of Object.keys(e)){if(ht.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!nN.has(t)||e[t]==null){ht.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){ht.debug("sanitizing object",t),kh(e[t]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)t.includes(n)&&(ht.debug("sanitizing css option",t),e[t]=iN(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]="")}ht.debug("After sanitization",e)}},"sanitizeDirective"),iN=S(e=>{let t=0,r=0;for(const n of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";n==="{"?t++:n==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),hs=Object.freeze(Dw),Mi=S(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Kr=rr({},hs),bh,Ko=[],ql=rr({},hs),sd=S((e,t)=>{let r=rr({},e),n={};for(const i of t)zw(i),n=rr(n,i);if(r=rr(r,n),n.theme&&n.theme in Li){const i=rr({},bh),o=rr(i.themeVariables||{},n.themeVariables);r.theme&&r.theme in Li&&(r.themeVariables=Li[r.theme].getThemeVariables(o))}return ql=r,Ww(ql),ql},"updateCurrentConfig"),oN=S(e=>(Kr=rr({},hs),Kr=rr(Kr,e),e.theme&&Li[e.theme]&&(Kr.themeVariables=Li[e.theme].getThemeVariables(e.themeVariables)),sd(Kr,Ko),Kr),"setSiteConfig"),aN=S(e=>{bh=rr({},e)},"saveConfigFromInitialize"),sN=S(e=>(Kr=rr(Kr,e),sd(Kr,Ko),Kr),"updateSiteConfig"),$w=S(()=>rr({},Kr),"getSiteConfig"),jw=S(e=>(Ww(e),rr(ql,e),Re()),"setConfig"),Re=S(()=>rr({},ql),"getConfig"),zw=S(e=>{e&&(["secure",...Kr.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(ht.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"&&zw(e[t])}))},"sanitize"),lN=S(e=>{var t;kh(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Ko.push(e),sd(Kr,Ko)},"addDirective"),vh=S((e=Kr)=>{Ko=[],sd(e,Ko)},"reset"),cN={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},Sk={},qw=S(e=>{Sk[e]||(ht.warn(cN[e]),Sk[e]=!0)},"issueWarning"),Ww=S(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&qw("LAZY_LOAD_DEPRECATED")},"checkConfig"),AZ=S(()=>{let e={};bh&&(e=rr(e,bh));for(const t of Ko)e=rr(e,t);return e},"getUserDefinedConfig"),$r=S(e=>{var t,r;return((t=e.flowchart)==null?void 0:t.htmlLabels)!=null&&qw("FLOWCHART_HTML_LABELS_DEPRECATED"),Mi(e.htmlLabels??((r=e.flowchart)==null?void 0:r.htmlLabels)??!0)},"getEffectiveHtmlLabels"),dc=/<br\s*\/?>/gi,uN=S(e=>e?Vw(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),hN=(()=>{let e=!1;return()=>{e||(Hw(),e=!0)}})();function Hw(){const e="data-temp-href-target";us.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),us.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}S(Hw,"setupDompurifyHooks");var Uw=S(e=>(hN(),us.sanitize(e)),"removeScript"),Tk=S((e,t)=>{if($r(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=Uw(e):r!=="loose"&&(e=Vw(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=gN(e))}return e},"sanitizeMore"),Wn=S((e,t)=>e&&(t.dompurifyConfig?e=us.sanitize(Tk(e,t),t.dompurifyConfig).toString():e=us.sanitize(Tk(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),dN=S((e,t)=>typeof e=="string"?Wn(e,t):e.flat().map(r=>Wn(r,t)),"sanitizeTextOrArray"),fN=S(e=>dc.test(e),"hasBreaks"),pN=S(e=>e.split(dc),"splitBreaks"),gN=S(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),Vw=S(e=>e.replace(dc,"#br#"),"breakToPlaceholder"),mN=S(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),yN=S(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),xN=S(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),_k=S(function(e){const t=e.split(/(,)/),r=[];for(let n=0;n<t.length;n++){let i=t[n];if(i===","&&n>0&&n+1<t.length){const o=t[n-1],s=t[n+1];CN(o,s)&&(i=o+","+s,n++,r.pop())}r.push(kN(i))}return r.join("")},"parseGenericTypes"),pm=S((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),CN=S((e,t)=>{const r=pm(e,"~"),n=pm(t,"~");return r===1&&n===1},"shouldCombineSets"),kN=S(e=>{const t=pm(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const n=[...e];let i=n.indexOf("~"),o=n.lastIndexOf("~");for(;i!==-1&&o!==-1&&i!==o;)n[i]="<",n[o]=">",i=n.indexOf("~"),o=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),Ek=S(()=>window.MathMLElement!==void 0,"isMathMLSupported"),gm=/\$\$(.*)\$\$/g,Gl=S(e=>{var t;return(((t=e.match(gm))==null?void 0:t.length)??0)>0},"hasKatex"),FZ=S(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await Yw(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const n=document.querySelector("body");n==null||n.insertAdjacentElement("beforeend",r);const i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),bN=S(async(e,t)=>{if(!Gl(e))return e;if(!(Ek()||t.legacyMathML||t.forceLegacyMathML))return e.replace(gm,"MathML is unsupported in this environment.");{const{default:r}=await oe(async()=>{const{default:i}=await import("./katex-DkKDou_j.js");return{default:i}},[]),n=t.forceLegacyMathML||!Ek()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(dc).map(i=>Gl(i)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${i}</div>`:`<div>${i}</div>`).join("").replace(gm,(i,o)=>r.renderToString(o,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),Yw=S(async(e,t)=>Wn(await bN(e,t),t),"renderKatexSanitized"),fc={getRows:uN,sanitizeText:Wn,sanitizeTextOrArray:dN,hasBreaks:fN,splitBreaks:pN,lineBreakRegex:dc,removeScript:Uw,getUrl:mN,evaluate:Mi,getMax:yN,getMin:xN},vN=S(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),wN=S(function(e,t,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${t}px;`)):(n.set("height",e),n.set("width",t)),n},"calculateSvgSizeAttrs"),Gw=S(function(e,t,r,n){const i=wN(t,r,n);vN(e,i)},"configureSvgSize"),SN=S(function(e,t,r,n){const i=t.node().getBBox(),o=i.width,s=i.height;ht.info(`SVG bounds: ${o}x${s}`,i);let l=0,u=0;ht.info(`Graph bounds: ${l}x${u}`,e),l=o+r*2,u=s+r*2,ht.info(`Calculated bounds: ${l}x${u}`),Gw(t,u,l,n);const h=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;t.attr("viewBox",h)},"setupGraphViewbox"),nh={},TN=S((e,t,r,n)=>{let i="";return e in nh&&nh[e]?i=nh[e]({...r,svgId:n}):ht.warn(`No theme found for ${e}`),` & {
|
|
160
|
+
font-family: ${r.fontFamily};
|
|
161
|
+
font-size: ${r.fontSize};
|
|
162
|
+
fill: ${r.textColor}
|
|
163
|
+
}
|
|
164
|
+
@keyframes edge-animation-frame {
|
|
165
|
+
from {
|
|
166
|
+
stroke-dashoffset: 0;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
@keyframes dash {
|
|
170
|
+
to {
|
|
171
|
+
stroke-dashoffset: 0;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
& .edge-animation-slow {
|
|
175
|
+
stroke-dasharray: 9,5 !important;
|
|
176
|
+
stroke-dashoffset: 900;
|
|
177
|
+
animation: dash 50s linear infinite;
|
|
178
|
+
stroke-linecap: round;
|
|
179
|
+
}
|
|
180
|
+
& .edge-animation-fast {
|
|
181
|
+
stroke-dasharray: 9,5 !important;
|
|
182
|
+
stroke-dashoffset: 900;
|
|
183
|
+
animation: dash 20s linear infinite;
|
|
184
|
+
stroke-linecap: round;
|
|
185
|
+
}
|
|
186
|
+
/* Classes common for multiple diagrams */
|
|
187
|
+
|
|
188
|
+
& .error-icon {
|
|
189
|
+
fill: ${r.errorBkgColor};
|
|
190
|
+
}
|
|
191
|
+
& .error-text {
|
|
192
|
+
fill: ${r.errorTextColor};
|
|
193
|
+
stroke: ${r.errorTextColor};
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
& .edge-thickness-normal {
|
|
197
|
+
stroke-width: ${r.strokeWidth??1}px;
|
|
198
|
+
}
|
|
199
|
+
& .edge-thickness-thick {
|
|
200
|
+
stroke-width: 3.5px
|
|
201
|
+
}
|
|
202
|
+
& .edge-pattern-solid {
|
|
203
|
+
stroke-dasharray: 0;
|
|
204
|
+
}
|
|
205
|
+
& .edge-thickness-invisible {
|
|
206
|
+
stroke-width: 0;
|
|
207
|
+
fill: none;
|
|
208
|
+
}
|
|
209
|
+
& .edge-pattern-dashed{
|
|
210
|
+
stroke-dasharray: 3;
|
|
211
|
+
}
|
|
212
|
+
.edge-pattern-dotted {
|
|
213
|
+
stroke-dasharray: 2;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
& .marker {
|
|
217
|
+
fill: ${r.lineColor};
|
|
218
|
+
stroke: ${r.lineColor};
|
|
219
|
+
}
|
|
220
|
+
& .marker.cross {
|
|
221
|
+
stroke: ${r.lineColor};
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
& svg {
|
|
225
|
+
font-family: ${r.fontFamily};
|
|
226
|
+
font-size: ${r.fontSize};
|
|
227
|
+
}
|
|
228
|
+
& p {
|
|
229
|
+
margin: 0
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
${i}
|
|
233
|
+
.node .neo-node {
|
|
234
|
+
stroke: ${r.nodeBorder};
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
238
|
+
stroke: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
|
|
239
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
[data-look="neo"].node path {
|
|
244
|
+
stroke: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
|
|
245
|
+
stroke-width: ${r.strokeWidth??1}px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
[data-look="neo"].node .outer-path {
|
|
249
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
[data-look="neo"].node .neo-line path {
|
|
253
|
+
stroke: ${r.nodeBorder};
|
|
254
|
+
filter: none;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
[data-look="neo"].node circle{
|
|
258
|
+
stroke: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
|
|
259
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
[data-look="neo"].node circle .state-start{
|
|
263
|
+
fill: #000000;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
[data-look="neo"].icon-shape .icon {
|
|
267
|
+
fill: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
|
|
268
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
[data-look="neo"].icon-shape .icon-neo path {
|
|
272
|
+
stroke: ${r.useGradient?"url("+n+"-gradient)":r.nodeBorder};
|
|
273
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${n}-drop-shadow)`):"none"};
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
${t}
|
|
277
|
+
`},"getStyles"),_N=S((e,t)=>{t!==void 0&&(nh[e]=t)},"addStylesForDiagram"),EN=TN,Xw={};iP(Xw,{clear:()=>LN,getAccDescription:()=>IN,getAccTitle:()=>AN,getDiagramTitle:()=>ON,setAccDescription:()=>FN,setAccTitle:()=>BN,setDiagramTitle:()=>MN});var $y="",jy="",zy="",qy=S(e=>Wn(e,Re()),"sanitizeText"),LN=S(()=>{$y="",zy="",jy=""},"clear"),BN=S(e=>{$y=qy(e).replace(/^\s+/g,"")},"setAccTitle"),AN=S(()=>$y,"getAccTitle"),FN=S(e=>{zy=qy(e).replace(/\n\s+/g,`
|
|
278
|
+
`)},"setAccDescription"),IN=S(()=>zy,"getAccDescription"),MN=S(e=>{jy=qy(e)},"setDiagramTitle"),ON=S(()=>jy,"getDiagramTitle"),Lk=ht,RN=Ny,ue=Re,IZ=jw,MZ=hs,Wy=S(e=>Wn(e,ue()),"sanitizeText"),PN=SN,NN=S(()=>Xw,"getCommonDb"),wh={},Sh=S((e,t,r)=>{var n;wh[e]&&Lk.warn(`Diagram with id ${e} already registered. Overwriting.`),wh[e]=t,r&&Rw(e,r),_N(e,t.styles),(n=t.injectUtils)==null||n.call(t,Lk,RN,ue,Wy,PN,NN(),()=>{})},"registerDiagram"),mm=S(e=>{if(e in wh)return wh[e];throw new DN(e)},"getDiagram"),ss,DN=(ss=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},S(ss,"DiagramNotFoundError"),ss),$N={value:()=>{}};function Kw(){for(var e=0,t=arguments.length,r={},n;e<t;++e){if(!(n=arguments[e]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new ih(r)}function ih(e){this._=e}function jN(e,t){return e.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}ih.prototype=Kw.prototype={constructor:ih,on:function(e,t){var r=this._,n=jN(e+"",r),i,o=-1,s=n.length;if(arguments.length<2){for(;++o<s;)if((i=(e=n[o]).type)&&(i=zN(r[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<s;)if(i=(e=n[o]).type)r[i]=Bk(r[i],e.name,t);else if(t==null)for(i in r)r[i]=Bk(r[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new ih(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,o;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],n=0,i=o.length;n<i;++n)o[n].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],i=0,o=n.length;i<o;++i)n[i].value.apply(t,r)}};function zN(e,t){for(var r=0,n=e.length,i;r<n;++r)if((i=e[r]).name===t)return i.value}function Bk(e,t,r){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=$N,e=e.slice(0,n).concat(e.slice(n+1));break}return r!=null&&e.push({name:t,value:r}),e}var ym="http://www.w3.org/1999/xhtml";const Ak={svg:"http://www.w3.org/2000/svg",xhtml:ym,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ld(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Ak.hasOwnProperty(t)?{space:Ak[t],local:e}:e}function qN(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===ym&&t.documentElement.namespaceURI===ym?t.createElement(e):t.createElementNS(r,e)}}function WN(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Qw(e){var t=ld(e);return(t.local?WN:qN)(t)}function HN(){}function Hy(e){return e==null?HN:function(){return this.querySelector(e)}}function UN(e){typeof e!="function"&&(e=Hy(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var o=t[i],s=o.length,l=n[i]=new Array(s),u,h,d=0;d<s;++d)(u=o[d])&&(h=e.call(u,u.__data__,d,o))&&("__data__"in u&&(h.__data__=u.__data__),l[d]=h);return new fn(n,this._parents)}function VN(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function YN(){return[]}function Zw(e){return e==null?YN:function(){return this.querySelectorAll(e)}}function GN(e){return function(){return VN(e.apply(this,arguments))}}function XN(e){typeof e=="function"?e=GN(e):e=Zw(e);for(var t=this._groups,r=t.length,n=[],i=[],o=0;o<r;++o)for(var s=t[o],l=s.length,u,h=0;h<l;++h)(u=s[h])&&(n.push(e.call(u,u.__data__,h,s)),i.push(u));return new fn(n,i)}function Jw(e){return function(){return this.matches(e)}}function tS(e){return function(t){return t.matches(e)}}var KN=Array.prototype.find;function QN(e){return function(){return KN.call(this.children,e)}}function ZN(){return this.firstElementChild}function JN(e){return this.select(e==null?ZN:QN(typeof e=="function"?e:tS(e)))}var tD=Array.prototype.filter;function eD(){return Array.from(this.children)}function rD(e){return function(){return tD.call(this.children,e)}}function nD(e){return this.selectAll(e==null?eD:rD(typeof e=="function"?e:tS(e)))}function iD(e){typeof e!="function"&&(e=Jw(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var o=t[i],s=o.length,l=n[i]=[],u,h=0;h<s;++h)(u=o[h])&&e.call(u,u.__data__,h,o)&&l.push(u);return new fn(n,this._parents)}function eS(e){return new Array(e.length)}function oD(){return new fn(this._enter||this._groups.map(eS),this._parents)}function Th(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Th.prototype={constructor:Th,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 aD(e){return function(){return e}}function sD(e,t,r,n,i,o){for(var s=0,l,u=t.length,h=o.length;s<h;++s)(l=t[s])?(l.__data__=o[s],n[s]=l):r[s]=new Th(e,o[s]);for(;s<u;++s)(l=t[s])&&(i[s]=l)}function lD(e,t,r,n,i,o,s){var l,u,h=new Map,d=t.length,f=o.length,m=new Array(d),g;for(l=0;l<d;++l)(u=t[l])&&(m[l]=g=s.call(u,u.__data__,l,t)+"",h.has(g)?i[l]=u:h.set(g,u));for(l=0;l<f;++l)g=s.call(e,o[l],l,o)+"",(u=h.get(g))?(n[l]=u,u.__data__=o[l],h.delete(g)):r[l]=new Th(e,o[l]);for(l=0;l<d;++l)(u=t[l])&&h.get(m[l])===u&&(i[l]=u)}function cD(e){return e.__data__}function uD(e,t){if(!arguments.length)return Array.from(this,cD);var r=t?lD:sD,n=this._parents,i=this._groups;typeof e!="function"&&(e=aD(e));for(var o=i.length,s=new Array(o),l=new Array(o),u=new Array(o),h=0;h<o;++h){var d=n[h],f=i[h],m=f.length,g=hD(e.call(d,d&&d.__data__,h,n)),x=g.length,C=l[h]=new Array(x),k=s[h]=new Array(x),v=u[h]=new Array(m);r(d,f,C,k,v,g,t);for(var w=0,_=0,A,F;w<x;++w)if(A=C[w]){for(w>=_&&(_=w+1);!(F=k[_])&&++_<x;);A._next=F||null}}return s=new fn(s,n),s._enter=l,s._exit=u,s}function hD(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function dD(){return new fn(this._exit||this._groups.map(eS),this._parents)}function fD(e,t,r){var n=this.enter(),i=this,o=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?o.remove():r(o),n&&i?n.merge(i).order():i}function pD(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,o=n.length,s=Math.min(i,o),l=new Array(i),u=0;u<s;++u)for(var h=r[u],d=n[u],f=h.length,m=l[u]=new Array(f),g,x=0;x<f;++x)(g=h[x]||d[x])&&(m[x]=g);for(;u<i;++u)l[u]=r[u];return new fn(l,this._parents)}function gD(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n=e[t],i=n.length-1,o=n[i],s;--i>=0;)(s=n[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function mD(e){e||(e=yD);function t(f,m){return f&&m?e(f.__data__,m.__data__):!f-!m}for(var r=this._groups,n=r.length,i=new Array(n),o=0;o<n;++o){for(var s=r[o],l=s.length,u=i[o]=new Array(l),h,d=0;d<l;++d)(h=s[d])&&(u[d]=h);u.sort(t)}return new fn(i,this._parents).order()}function yD(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function xD(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function CD(){return Array.from(this)}function kD(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,o=n.length;i<o;++i){var s=n[i];if(s)return s}return null}function bD(){let e=0;for(const t of this)++e;return e}function vD(){return!this.node()}function wD(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var i=t[r],o=0,s=i.length,l;o<s;++o)(l=i[o])&&e.call(l,l.__data__,o,i);return this}function SD(e){return function(){this.removeAttribute(e)}}function TD(e){return function(){this.removeAttributeNS(e.space,e.local)}}function _D(e,t){return function(){this.setAttribute(e,t)}}function ED(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function LD(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function BD(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 AD(e,t){var r=ld(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?TD:SD:typeof t=="function"?r.local?BD:LD:r.local?ED:_D)(r,t))}function rS(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function FD(e){return function(){this.style.removeProperty(e)}}function ID(e,t,r){return function(){this.style.setProperty(e,t,r)}}function MD(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function OD(e,t,r){return arguments.length>1?this.each((t==null?FD:typeof t=="function"?MD:ID)(e,t,r??"")):ds(this.node(),e)}function ds(e,t){return e.style.getPropertyValue(t)||rS(e).getComputedStyle(e,null).getPropertyValue(t)}function RD(e){return function(){delete this[e]}}function PD(e,t){return function(){this[e]=t}}function ND(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function DD(e,t){return arguments.length>1?this.each((t==null?RD:typeof t=="function"?ND:PD)(e,t)):this.node()[e]}function nS(e){return e.trim().split(/^|\s+/)}function Uy(e){return e.classList||new iS(e)}function iS(e){this._node=e,this._names=nS(e.getAttribute("class")||"")}iS.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 oS(e,t){for(var r=Uy(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function aS(e,t){for(var r=Uy(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function $D(e){return function(){oS(this,e)}}function jD(e){return function(){aS(this,e)}}function zD(e,t){return function(){(t.apply(this,arguments)?oS:aS)(this,e)}}function qD(e,t){var r=nS(e+"");if(arguments.length<2){for(var n=Uy(this.node()),i=-1,o=r.length;++i<o;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof t=="function"?zD:t?$D:jD)(r,t))}function WD(){this.textContent=""}function HD(e){return function(){this.textContent=e}}function UD(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function VD(e){return arguments.length?this.each(e==null?WD:(typeof e=="function"?UD:HD)(e)):this.node().textContent}function YD(){this.innerHTML=""}function GD(e){return function(){this.innerHTML=e}}function XD(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function KD(e){return arguments.length?this.each(e==null?YD:(typeof e=="function"?XD:GD)(e)):this.node().innerHTML}function QD(){this.nextSibling&&this.parentNode.appendChild(this)}function ZD(){return this.each(QD)}function JD(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function t$(){return this.each(JD)}function e$(e){var t=typeof e=="function"?e:Qw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function r$(){return null}function n$(e,t){var r=typeof e=="function"?e:Qw(e),n=t==null?r$:typeof t=="function"?t:Hy(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function i$(){var e=this.parentNode;e&&e.removeChild(this)}function o$(){return this.each(i$)}function a$(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function s$(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function l$(e){return this.select(e?s$:a$)}function c$(e){return arguments.length?this.property("__data__",e):this.node().__data__}function u$(e){return function(t){e.call(this,t,this.__data__)}}function h$(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function d$(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,o;r<i;++r)o=t[r],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++n]=o;++n?t.length=n:delete this.__on}}}function f$(e,t,r){return function(){var n=this.__on,i,o=u$(t);if(n){for(var s=0,l=n.length;s<l;++s)if((i=n[s]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=r),i.value=t;return}}this.addEventListener(e.type,o,r),i={type:e.type,name:e.name,value:t,listener:o,options:r},n?n.push(i):this.__on=[i]}}function p$(e,t,r){var n=h$(e+""),i,o=n.length,s;if(arguments.length<2){var l=this.node().__on;if(l){for(var u=0,h=l.length,d;u<h;++u)for(i=0,d=l[u];i<o;++i)if((s=n[i]).type===d.type&&s.name===d.name)return d.value}return}for(l=t?f$:d$,i=0;i<o;++i)this.each(l(n[i],t,r));return this}function sS(e,t,r){var n=rS(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function g$(e,t){return function(){return sS(this,e,t)}}function m$(e,t){return function(){return sS(this,e,t.apply(this,arguments))}}function y$(e,t){return this.each((typeof t=="function"?m$:g$)(e,t))}function*x$(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,o=n.length,s;i<o;++i)(s=n[i])&&(yield s)}var lS=[null];function fn(e,t){this._groups=e,this._parents=t}function pc(){return new fn([[document.documentElement]],lS)}function C$(){return this}fn.prototype=pc.prototype={constructor:fn,select:UN,selectAll:XN,selectChild:JN,selectChildren:nD,filter:iD,data:uD,enter:oD,exit:dD,join:fD,merge:pD,selection:C$,order:gD,sort:mD,call:xD,nodes:CD,node:kD,size:bD,empty:vD,each:wD,attr:AD,style:OD,property:DD,classed:qD,text:VD,html:KD,raise:ZD,lower:t$,append:e$,insert:n$,remove:o$,clone:l$,datum:c$,on:p$,dispatch:y$,[Symbol.iterator]:x$};function Zt(e){return typeof e=="string"?new fn([[document.querySelector(e)]],[document.documentElement]):new fn([[e]],lS)}function Vy(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function cS(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function gc(){}var Xl=.7,_h=1/Xl,Ya="\\s*([+-]?\\d+)\\s*",Kl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",oi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",k$=/^#([0-9a-f]{3,8})$/,b$=new RegExp(`^rgb\\(${Ya},${Ya},${Ya}\\)$`),v$=new RegExp(`^rgb\\(${oi},${oi},${oi}\\)$`),w$=new RegExp(`^rgba\\(${Ya},${Ya},${Ya},${Kl}\\)$`),S$=new RegExp(`^rgba\\(${oi},${oi},${oi},${Kl}\\)$`),T$=new RegExp(`^hsl\\(${Kl},${oi},${oi}\\)$`),_$=new RegExp(`^hsla\\(${Kl},${oi},${oi},${Kl}\\)$`),Fk={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};Vy(gc,Ql,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ik,formatHex:Ik,formatHex8:E$,formatHsl:L$,formatRgb:Mk,toString:Mk});function Ik(){return this.rgb().formatHex()}function E$(){return this.rgb().formatHex8()}function L$(){return uS(this).formatHsl()}function Mk(){return this.rgb().formatRgb()}function Ql(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=k$.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Ok(t):r===3?new Jr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Nu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Nu(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=b$.exec(e))?new Jr(t[1],t[2],t[3],1):(t=v$.exec(e))?new Jr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=w$.exec(e))?Nu(t[1],t[2],t[3],t[4]):(t=S$.exec(e))?Nu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=T$.exec(e))?Nk(t[1],t[2]/100,t[3]/100,1):(t=_$.exec(e))?Nk(t[1],t[2]/100,t[3]/100,t[4]):Fk.hasOwnProperty(e)?Ok(Fk[e]):e==="transparent"?new Jr(NaN,NaN,NaN,0):null}function Ok(e){return new Jr(e>>16&255,e>>8&255,e&255,1)}function Nu(e,t,r,n){return n<=0&&(e=t=r=NaN),new Jr(e,t,r,n)}function B$(e){return e instanceof gc||(e=Ql(e)),e?(e=e.rgb(),new Jr(e.r,e.g,e.b,e.opacity)):new Jr}function xm(e,t,r,n){return arguments.length===1?B$(e):new Jr(e,t,r,n??1)}function Jr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Vy(Jr,xm,cS(gc,{brighter(e){return e=e==null?_h:Math.pow(_h,e),new Jr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Xl:Math.pow(Xl,e),new Jr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Jr(Vo(this.r),Vo(this.g),Vo(this.b),Eh(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:Rk,formatHex:Rk,formatHex8:A$,formatRgb:Pk,toString:Pk}));function Rk(){return`#${Wo(this.r)}${Wo(this.g)}${Wo(this.b)}`}function A$(){return`#${Wo(this.r)}${Wo(this.g)}${Wo(this.b)}${Wo((isNaN(this.opacity)?1:this.opacity)*255)}`}function Pk(){const e=Eh(this.opacity);return`${e===1?"rgb(":"rgba("}${Vo(this.r)}, ${Vo(this.g)}, ${Vo(this.b)}${e===1?")":`, ${e})`}`}function Eh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wo(e){return e=Vo(e),(e<16?"0":"")+e.toString(16)}function Nk(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Dn(e,t,r,n)}function uS(e){if(e instanceof Dn)return new Dn(e.h,e.s,e.l,e.opacity);if(e instanceof gc||(e=Ql(e)),!e)return new Dn;if(e instanceof Dn)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),s=NaN,l=o-i,u=(o+i)/2;return l?(t===o?s=(r-n)/l+(r<n)*6:r===o?s=(n-t)/l+2:s=(t-r)/l+4,l/=u<.5?o+i:2-o-i,s*=60):l=u>0&&u<1?0:s,new Dn(s,l,u,e.opacity)}function F$(e,t,r,n){return arguments.length===1?uS(e):new Dn(e,t,r,n??1)}function Dn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Vy(Dn,F$,cS(gc,{brighter(e){return e=e==null?_h:Math.pow(_h,e),new Dn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Xl:Math.pow(Xl,e),new Dn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Jr($p(e>=240?e-240:e+120,i,n),$p(e,i,n),$p(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Dn(Dk(this.h),Du(this.s),Du(this.l),Eh(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=Eh(this.opacity);return`${e===1?"hsl(":"hsla("}${Dk(this.h)}, ${Du(this.s)*100}%, ${Du(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Dk(e){return e=(e||0)%360,e<0?e+360:e}function Du(e){return Math.max(0,Math.min(1,e||0))}function $p(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 Yy=e=>()=>e;function hS(e,t){return function(r){return e+r*t}}function I$(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function OZ(e,t){var r=t-e;return r?hS(e,r>180||r<-180?r-360*Math.round(r/360):r):Yy(isNaN(e)?t:e)}function M$(e){return(e=+e)==1?dS:function(t,r){return r-t?I$(t,r,e):Yy(isNaN(t)?r:t)}}function dS(e,t){var r=t-e;return r?hS(e,r):Yy(isNaN(e)?t:e)}const $k=(function e(t){var r=M$(t);function n(i,o){var s=r((i=xm(i)).r,(o=xm(o)).r),l=r(i.g,o.g),u=r(i.b,o.b),h=dS(i.opacity,o.opacity);return function(d){return i.r=s(d),i.g=l(d),i.b=u(d),i.opacity=h(d),i+""}}return n.gamma=e,n})(1);function ao(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Cm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jp=new RegExp(Cm.source,"g");function O$(e){return function(){return e}}function R$(e){return function(t){return e(t)+""}}function P$(e,t){var r=Cm.lastIndex=jp.lastIndex=0,n,i,o,s=-1,l=[],u=[];for(e=e+"",t=t+"";(n=Cm.exec(e))&&(i=jp.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),l[s]?l[s]+=o:l[++s]=o),(n=n[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,u.push({i:s,x:ao(n,i)})),r=jp.lastIndex;return r<t.length&&(o=t.slice(r),l[s]?l[s]+=o:l[++s]=o),l.length<2?u[0]?R$(u[0].x):O$(t):(t=u.length,function(h){for(var d=0,f;d<t;++d)l[(f=u[d]).i]=f.x(h);return l.join("")})}var jk=180/Math.PI,km={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fS(e,t,r,n,i,o){var s,l,u;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,u/=l),e*n<t*r&&(e=-e,t=-t,u=-u,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*jk,skewX:Math.atan(u)*jk,scaleX:s,scaleY:l}}var $u;function N$(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?km:fS(t.a,t.b,t.c,t.d,t.e,t.f)}function D$(e){return e==null||($u||($u=document.createElementNS("http://www.w3.org/2000/svg","g")),$u.setAttribute("transform",e),!(e=$u.transform.baseVal.consolidate()))?km:(e=e.matrix,fS(e.a,e.b,e.c,e.d,e.e,e.f))}function pS(e,t,r,n){function i(h){return h.length?h.pop()+" ":""}function o(h,d,f,m,g,x){if(h!==f||d!==m){var C=g.push("translate(",null,t,null,r);x.push({i:C-4,x:ao(h,f)},{i:C-2,x:ao(d,m)})}else(f||m)&&g.push("translate("+f+t+m+r)}function s(h,d,f,m){h!==d?(h-d>180?d+=360:d-h>180&&(h+=360),m.push({i:f.push(i(f)+"rotate(",null,n)-2,x:ao(h,d)})):d&&f.push(i(f)+"rotate("+d+n)}function l(h,d,f,m){h!==d?m.push({i:f.push(i(f)+"skewX(",null,n)-2,x:ao(h,d)}):d&&f.push(i(f)+"skewX("+d+n)}function u(h,d,f,m,g,x){if(h!==f||d!==m){var C=g.push(i(g)+"scale(",null,",",null,")");x.push({i:C-4,x:ao(h,f)},{i:C-2,x:ao(d,m)})}else(f!==1||m!==1)&&g.push(i(g)+"scale("+f+","+m+")")}return function(h,d){var f=[],m=[];return h=e(h),d=e(d),o(h.translateX,h.translateY,d.translateX,d.translateY,f,m),s(h.rotate,d.rotate,f,m),l(h.skewX,d.skewX,f,m),u(h.scaleX,h.scaleY,d.scaleX,d.scaleY,f,m),h=d=null,function(g){for(var x=-1,C=m.length,k;++x<C;)f[(k=m[x]).i]=k.x(g);return f.join("")}}}var $$=pS(N$,"px, ","px)","deg)"),j$=pS(D$,", ",")",")"),fs=0,Bl=0,kl=0,gS=1e3,Lh,Al,Bh=0,Qo=0,cd=0,Zl=typeof performance=="object"&&performance.now?performance:Date,mS=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Gy(){return Qo||(mS(z$),Qo=Zl.now()+cd)}function z$(){Qo=0}function Ah(){this._call=this._time=this._next=null}Ah.prototype=yS.prototype={constructor:Ah,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Gy():+r)+(t==null?0:+t),!this._next&&Al!==this&&(Al?Al._next=this:Lh=this,Al=this),this._call=e,this._time=r,bm()},stop:function(){this._call&&(this._call=null,this._time=1/0,bm())}};function yS(e,t,r){var n=new Ah;return n.restart(e,t,r),n}function q$(){Gy(),++fs;for(var e=Lh,t;e;)(t=Qo-e._time)>=0&&e._call.call(void 0,t),e=e._next;--fs}function zk(){Qo=(Bh=Zl.now())+cd,fs=Bl=0;try{q$()}finally{fs=0,H$(),Qo=0}}function W$(){var e=Zl.now(),t=e-Bh;t>gS&&(cd-=t,Bh=e)}function H$(){for(var e,t=Lh,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Lh=r);Al=e,bm(n)}function bm(e){if(!fs){Bl&&(Bl=clearTimeout(Bl));var t=e-Qo;t>24?(e<1/0&&(Bl=setTimeout(zk,e-Zl.now()-cd)),kl&&(kl=clearInterval(kl))):(kl||(Bh=Zl.now(),kl=setInterval(W$,gS)),fs=1,mS(zk))}}function qk(e,t,r){var n=new Ah;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var U$=Kw("start","end","cancel","interrupt"),V$=[],xS=0,Wk=1,vm=2,oh=3,Hk=4,wm=5,ah=6;function ud(e,t,r,n,i,o){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;Y$(e,r,{name:t,index:n,group:i,on:U$,tween:V$,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:xS})}function Xy(e,t){var r=Vn(e,t);if(r.state>xS)throw new Error("too late; already scheduled");return r}function hi(e,t){var r=Vn(e,t);if(r.state>oh)throw new Error("too late; already running");return r}function Vn(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Y$(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=yS(o,0,r.time);function o(h){r.state=Wk,r.timer.restart(s,r.delay,r.time),r.delay<=h&&s(h-r.delay)}function s(h){var d,f,m,g;if(r.state!==Wk)return u();for(d in n)if(g=n[d],g.name===r.name){if(g.state===oh)return qk(s);g.state===Hk?(g.state=ah,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete n[d]):+d<t&&(g.state=ah,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete n[d])}if(qk(function(){r.state===oh&&(r.state=Hk,r.timer.restart(l,r.delay,r.time),l(h))}),r.state=vm,r.on.call("start",e,e.__data__,r.index,r.group),r.state===vm){for(r.state=oh,i=new Array(m=r.tween.length),d=0,f=-1;d<m;++d)(g=r.tween[d].value.call(e,e.__data__,r.index,r.group))&&(i[++f]=g);i.length=f+1}}function l(h){for(var d=h<r.duration?r.ease.call(null,h/r.duration):(r.timer.restart(u),r.state=wm,1),f=-1,m=i.length;++f<m;)i[f].call(e,d);r.state===wm&&(r.on.call("end",e,e.__data__,r.index,r.group),u())}function u(){r.state=ah,r.timer.stop(),delete n[t];for(var h in n)return;delete e.__transition}}function G$(e,t){var r=e.__transition,n,i,o=!0,s;if(r){t=t==null?null:t+"";for(s in r){if((n=r[s]).name!==t){o=!1;continue}i=n.state>vm&&n.state<wm,n.state=ah,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[s]}o&&delete e.__transition}}function X$(e){return this.each(function(){G$(this,e)})}function K$(e,t){var r,n;return function(){var i=hi(this,e),o=i.tween;if(o!==r){n=r=o;for(var s=0,l=n.length;s<l;++s)if(n[s].name===t){n=n.slice(),n.splice(s,1);break}}i.tween=n}}function Q$(e,t,r){var n,i;if(typeof r!="function")throw new Error;return function(){var o=hi(this,e),s=o.tween;if(s!==n){i=(n=s).slice();for(var l={name:t,value:r},u=0,h=i.length;u<h;++u)if(i[u].name===t){i[u]=l;break}u===h&&i.push(l)}o.tween=i}}function Z$(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n=Vn(this.node(),r).tween,i=0,o=n.length,s;i<o;++i)if((s=n[i]).name===e)return s.value;return null}return this.each((t==null?K$:Q$)(r,e,t))}function Ky(e,t,r){var n=e._id;return e.each(function(){var i=hi(this,n);(i.value||(i.value={}))[t]=r.apply(this,arguments)}),function(i){return Vn(i,n).value[t]}}function CS(e,t){var r;return(typeof t=="number"?ao:t instanceof Ql?$k:(r=Ql(t))?(t=r,$k):P$)(e,t)}function J$(e){return function(){this.removeAttribute(e)}}function t6(e){return function(){this.removeAttributeNS(e.space,e.local)}}function e6(e,t,r){var n,i=r+"",o;return function(){var s=this.getAttribute(e);return s===i?null:s===n?o:o=t(n=s,r)}}function r6(e,t,r){var n,i=r+"",o;return function(){var s=this.getAttributeNS(e.space,e.local);return s===i?null:s===n?o:o=t(n=s,r)}}function n6(e,t,r){var n,i,o;return function(){var s,l=r(this),u;return l==null?void this.removeAttribute(e):(s=this.getAttribute(e),u=l+"",s===u?null:s===n&&u===i?o:(i=u,o=t(n=s,l)))}}function i6(e,t,r){var n,i,o;return function(){var s,l=r(this),u;return l==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),u=l+"",s===u?null:s===n&&u===i?o:(i=u,o=t(n=s,l)))}}function o6(e,t){var r=ld(e),n=r==="transform"?j$:CS;return this.attrTween(e,typeof t=="function"?(r.local?i6:n6)(r,n,Ky(this,"attr."+e,t)):t==null?(r.local?t6:J$)(r):(r.local?r6:e6)(r,n,t))}function a6(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function s6(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function l6(e,t){var r,n;function i(){var o=t.apply(this,arguments);return o!==n&&(r=(n=o)&&s6(e,o)),r}return i._value=t,i}function c6(e,t){var r,n;function i(){var o=t.apply(this,arguments);return o!==n&&(r=(n=o)&&a6(e,o)),r}return i._value=t,i}function u6(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=ld(e);return this.tween(r,(n.local?l6:c6)(n,t))}function h6(e,t){return function(){Xy(this,e).delay=+t.apply(this,arguments)}}function d6(e,t){return t=+t,function(){Xy(this,e).delay=t}}function f6(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?h6:d6)(t,e)):Vn(this.node(),t).delay}function p6(e,t){return function(){hi(this,e).duration=+t.apply(this,arguments)}}function g6(e,t){return t=+t,function(){hi(this,e).duration=t}}function m6(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?p6:g6)(t,e)):Vn(this.node(),t).duration}function y6(e,t){if(typeof t!="function")throw new Error;return function(){hi(this,e).ease=t}}function x6(e){var t=this._id;return arguments.length?this.each(y6(t,e)):Vn(this.node(),t).ease}function C6(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;hi(this,e).ease=r}}function k6(e){if(typeof e!="function")throw new Error;return this.each(C6(this._id,e))}function b6(e){typeof e!="function"&&(e=Jw(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var o=t[i],s=o.length,l=n[i]=[],u,h=0;h<s;++h)(u=o[h])&&e.call(u,u.__data__,h,o)&&l.push(u);return new Ai(n,this._parents,this._name,this._id)}function v6(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,o=Math.min(n,i),s=new Array(n),l=0;l<o;++l)for(var u=t[l],h=r[l],d=u.length,f=s[l]=new Array(d),m,g=0;g<d;++g)(m=u[g]||h[g])&&(f[g]=m);for(;l<n;++l)s[l]=t[l];return new Ai(s,this._parents,this._name,this._id)}function w6(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 S6(e,t,r){var n,i,o=w6(t)?Xy:hi;return function(){var s=o(this,e),l=s.on;l!==n&&(i=(n=l).copy()).on(t,r),s.on=i}}function T6(e,t){var r=this._id;return arguments.length<2?Vn(this.node(),r).on.on(e):this.each(S6(r,e,t))}function _6(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function E6(){return this.on("end.remove",_6(this._id))}function L6(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Hy(e));for(var n=this._groups,i=n.length,o=new Array(i),s=0;s<i;++s)for(var l=n[s],u=l.length,h=o[s]=new Array(u),d,f,m=0;m<u;++m)(d=l[m])&&(f=e.call(d,d.__data__,m,l))&&("__data__"in d&&(f.__data__=d.__data__),h[m]=f,ud(h[m],t,r,m,h,Vn(d,r)));return new Ai(o,this._parents,t,r)}function B6(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Zw(e));for(var n=this._groups,i=n.length,o=[],s=[],l=0;l<i;++l)for(var u=n[l],h=u.length,d,f=0;f<h;++f)if(d=u[f]){for(var m=e.call(d,d.__data__,f,u),g,x=Vn(d,r),C=0,k=m.length;C<k;++C)(g=m[C])&&ud(g,t,r,C,m,x);o.push(m),s.push(d)}return new Ai(o,s,t,r)}var A6=pc.prototype.constructor;function F6(){return new A6(this._groups,this._parents)}function I6(e,t){var r,n,i;return function(){var o=ds(this,e),s=(this.style.removeProperty(e),ds(this,e));return o===s?null:o===r&&s===n?i:i=t(r=o,n=s)}}function kS(e){return function(){this.style.removeProperty(e)}}function M6(e,t,r){var n,i=r+"",o;return function(){var s=ds(this,e);return s===i?null:s===n?o:o=t(n=s,r)}}function O6(e,t,r){var n,i,o;return function(){var s=ds(this,e),l=r(this),u=l+"";return l==null&&(u=l=(this.style.removeProperty(e),ds(this,e))),s===u?null:s===n&&u===i?o:(i=u,o=t(n=s,l))}}function R6(e,t){var r,n,i,o="style."+t,s="end."+o,l;return function(){var u=hi(this,e),h=u.on,d=u.value[o]==null?l||(l=kS(t)):void 0;(h!==r||i!==d)&&(n=(r=h).copy()).on(s,i=d),u.on=n}}function P6(e,t,r){var n=(e+="")=="transform"?$$:CS;return t==null?this.styleTween(e,I6(e,n)).on("end.style."+e,kS(e)):typeof t=="function"?this.styleTween(e,O6(e,n,Ky(this,"style."+e,t))).each(R6(this._id,e)):this.styleTween(e,M6(e,n,t),r).on("end.style."+e,null)}function N6(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function D6(e,t,r){var n,i;function o(){var s=t.apply(this,arguments);return s!==i&&(n=(i=s)&&N6(e,s,r)),n}return o._value=t,o}function $6(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,D6(e,t,r??""))}function j6(e){return function(){this.textContent=e}}function z6(e){return function(){var t=e(this);this.textContent=t??""}}function q6(e){return this.tween("text",typeof e=="function"?z6(Ky(this,"text",e)):j6(e==null?"":e+""))}function W6(e){return function(t){this.textContent=e.call(this,t)}}function H6(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&W6(i)),t}return n._value=e,n}function U6(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,H6(e))}function V6(){for(var e=this._name,t=this._id,r=bS(),n=this._groups,i=n.length,o=0;o<i;++o)for(var s=n[o],l=s.length,u,h=0;h<l;++h)if(u=s[h]){var d=Vn(u,t);ud(u,e,r,h,s,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Ai(n,this._parents,e,r)}function Y6(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(o,s){var l={value:s},u={value:function(){--i===0&&o()}};r.each(function(){var h=hi(this,n),d=h.on;d!==e&&(t=(e=d).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(u)),h.on=t}),i===0&&o()})}var G6=0;function Ai(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function bS(){return++G6}var Si=pc.prototype;Ai.prototype={constructor:Ai,select:L6,selectAll:B6,selectChild:Si.selectChild,selectChildren:Si.selectChildren,filter:b6,merge:v6,selection:F6,transition:V6,call:Si.call,nodes:Si.nodes,node:Si.node,size:Si.size,empty:Si.empty,each:Si.each,on:T6,attr:o6,attrTween:u6,style:P6,styleTween:$6,text:q6,textTween:U6,remove:E6,tween:Z$,delay:f6,duration:m6,ease:x6,easeVarying:k6,end:Y6,[Symbol.iterator]:Si[Symbol.iterator]};function X6(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var K6={time:null,delay:0,duration:250,ease:X6};function Q6(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 Z6(e){var t,r;e instanceof Ai?(t=e._id,e=e._name):(t=bS(),(r=K6).time=Gy(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,o=0;o<i;++o)for(var s=n[o],l=s.length,u,h=0;h<l;++h)(u=s[h])&&ud(u,e,t,h,s,r||Q6(u,t));return new Ai(n,this._parents,e,t)}pc.prototype.interrupt=X$;pc.prototype.transition=Z6;const Sm=Math.PI,Tm=2*Sm,$o=1e-6,J6=Tm-$o;function vS(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function t8(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return vS;const r=10**t;return function(n){this._+=n[0];for(let i=1,o=n.length;i<o;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class e8{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?vS:t8(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,o,s){this._append`C${+t},${+r},${+n},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(t,r,n,i,o){if(t=+t,r=+r,n=+n,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,l=this._y1,u=n-t,h=i-r,d=s-t,f=l-r,m=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(m>$o)if(!(Math.abs(f*u-h*d)>$o)||!o)this._append`L${this._x1=t},${this._y1=r}`;else{let g=n-s,x=i-l,C=u*u+h*h,k=g*g+x*x,v=Math.sqrt(C),w=Math.sqrt(m),_=o*Math.tan((Sm-Math.acos((C+m-k)/(2*v*w)))/2),A=_/w,F=_/v;Math.abs(A-1)>$o&&this._append`L${t+A*d},${r+A*f}`,this._append`A${o},${o},0,0,${+(f*g>d*x)},${this._x1=t+F*u},${this._y1=r+F*h}`}}arc(t,r,n,i,o,s){if(t=+t,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),h=t+l,d=r+u,f=1^s,m=s?i-o:o-i;this._x1===null?this._append`M${h},${d}`:(Math.abs(this._x1-h)>$o||Math.abs(this._y1-d)>$o)&&this._append`L${h},${d}`,n&&(m<0&&(m=m%Tm+Tm),m>J6?this._append`A${n},${n},0,1,${f},${t-l},${r-u}A${n},${n},0,1,${f},${this._x1=h},${this._y1=d}`:m>$o&&this._append`A${n},${n},0,${+(m>=Sm)},${f},${this._x1=t+n*Math.cos(o)},${this._y1=r+n*Math.sin(o)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Oa(e){return function(){return e}}const RZ=Math.abs,PZ=Math.atan2,NZ=Math.cos,DZ=Math.max,$Z=Math.min,jZ=Math.sin,zZ=Math.sqrt,Uk=1e-12,Qy=Math.PI,Vk=Qy/2,qZ=2*Qy;function WZ(e){return e>1?0:e<-1?Qy:Math.acos(e)}function HZ(e){return e>=1?Vk:e<=-1?-Vk:Math.asin(e)}function r8(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new e8(t)}function n8(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function wS(e){this._context=e}wS.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 Wl(e){return new wS(e)}function i8(e){return e[0]}function o8(e){return e[1]}function a8(e,t){var r=Oa(!0),n=null,i=Wl,o=null,s=r8(l);e=typeof e=="function"?e:e===void 0?i8:Oa(e),t=typeof t=="function"?t:t===void 0?o8:Oa(t);function l(u){var h,d=(u=n8(u)).length,f,m=!1,g;for(n==null&&(o=i(g=s())),h=0;h<=d;++h)!(h<d&&r(f=u[h],h,u))===m&&((m=!m)?o.lineStart():o.lineEnd()),m&&o.point(+e(f,h,u),+t(f,h,u));if(g)return o=null,g+""||null}return l.x=function(u){return arguments.length?(e=typeof u=="function"?u:Oa(+u),l):e},l.y=function(u){return arguments.length?(t=typeof u=="function"?u:Oa(+u),l):t},l.defined=function(u){return arguments.length?(r=typeof u=="function"?u:Oa(!!u),l):r},l.curve=function(u){return arguments.length?(i=u,n!=null&&(o=i(n)),l):i},l.context=function(u){return arguments.length?(u==null?n=o=null:o=i(n=u),l):n},l}class SS{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 TS(e){return new SS(e,!0)}function _S(e){return new SS(e,!1)}function fo(){}function Fh(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 hd(e){this._context=e}hd.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:Fh(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:Fh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _m(e){return new hd(e)}function ES(e){this._context=e}ES.prototype={areaStart:fo,areaEnd:fo,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:Fh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function s8(e){return new ES(e)}function LS(e){this._context=e}LS.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,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Fh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function l8(e){return new LS(e)}function BS(e,t){this._basis=new hd(e),this._beta=t}BS.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 n=e[0],i=t[0],o=e[r]-n,s=t[r]-i,l=-1,u;++l<=r;)u=l/r,this._basis.point(this._beta*e[l]+(1-this._beta)*(n+u*o),this._beta*t[l]+(1-this._beta)*(i+u*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const c8=(function e(t){function r(n){return t===1?new hd(n):new BS(n,t)}return r.beta=function(n){return e(+n)},r})(.85);function Ih(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 Zy(e,t){this._context=e,this._k=(1-t)/6}Zy.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:Ih(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:Ih(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 AS=(function e(t){function r(n){return new Zy(n,t)}return r.tension=function(n){return e(+n)},r})(0);function Jy(e,t){this._context=e,this._k=(1-t)/6}Jy.prototype={areaStart:fo,areaEnd:fo,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:Ih(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 u8=(function e(t){function r(n){return new Jy(n,t)}return r.tension=function(n){return e(+n)},r})(0);function tx(e,t){this._context=e,this._k=(1-t)/6}tx.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:Ih(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 h8=(function e(t){function r(n){return new tx(n,t)}return r.tension=function(n){return e(+n)},r})(0);function ex(e,t,r){var n=e._x1,i=e._y1,o=e._x2,s=e._y2;if(e._l01_a>Uk){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Uk){var h=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*h+e._x1*e._l23_2a-t*e._l12_2a)/d,s=(s*h+e._y1*e._l23_2a-r*e._l12_2a)/d}e._context.bezierCurveTo(n,i,o,s,e._x2,e._y2)}function FS(e,t){this._context=e,this._alpha=t}FS.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,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ex(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 IS=(function e(t){function r(n){return t?new FS(n,t):new Zy(n,0)}return r.alpha=function(n){return e(+n)},r})(.5);function MS(e,t){this._context=e,this._alpha=t}MS.prototype={areaStart:fo,areaEnd:fo,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,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ex(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 d8=(function e(t){function r(n){return t?new MS(n,t):new Jy(n,0)}return r.alpha=function(n){return e(+n)},r})(.5);function OS(e,t){this._context=e,this._alpha=t}OS.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,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ex(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 f8=(function e(t){function r(n){return t?new OS(n,t):new tx(n,0)}return r.alpha=function(n){return e(+n)},r})(.5);function RS(e){this._context=e}RS.prototype={areaStart:fo,areaEnd:fo,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 p8(e){return new RS(e)}function Yk(e){return e<0?-1:1}function Gk(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),s=(r-e._y1)/(i||n<0&&-0),l=(o*i+s*n)/(n+i);return(Yk(o)+Yk(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(l))||0}function Xk(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function zp(e,t,r){var n=e._x0,i=e._y0,o=e._x1,s=e._y1,l=(o-n)/3;e._context.bezierCurveTo(n+l,i+l*t,o-l,s-l*r,o,s)}function Mh(e){this._context=e}Mh.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:zp(this,this._t0,Xk(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,zp(this,Xk(this,r=Gk(this,e,t)),r);break;default:zp(this,this._t0,r=Gk(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function PS(e){this._context=new NS(e)}(PS.prototype=Object.create(Mh.prototype)).point=function(e,t){Mh.prototype.point.call(this,t,e)};function NS(e){this._context=e}NS.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,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}};function DS(e){return new Mh(e)}function $S(e){return new PS(e)}function jS(e){this._context=e}jS.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 n=Kk(e),i=Kk(t),o=0,s=1;s<r;++o,++s)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],e[s],t[s]);(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 Kk(e){var t,r=e.length-1,n,i=new Array(r),o=new Array(r),s=new Array(r);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function zS(e){return new jS(e)}function dd(e,t){this._context=e,this._t=t}dd.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 qS(e){return new dd(e,.5)}function WS(e){return new dd(e,0)}function HS(e){return new dd(e,1)}function Fl(e,t,r){this.k=e,this.x=t,this.y=r}Fl.prototype={constructor:Fl,scale:function(e){return e===1?this:new Fl(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Fl(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+")"}};Fl.prototype;var g8=S(e=>{var i;const{securityLevel:t}=ue();let r=Zt("body");if(t==="sandbox"){const s=((i=Zt(`#i${e}`).node())==null?void 0:i.contentDocument)??document;r=Zt(s.body)}return r.select(`#${e}`)},"selectSvgElement");function rx(e){return typeof e>"u"||e===null}S(rx,"isNothing");function US(e){return typeof e=="object"&&e!==null}S(US,"isObject");function VS(e){return Array.isArray(e)?e:rx(e)?[]:[e]}S(VS,"toArray");function YS(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}S(YS,"extend");function GS(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}S(GS,"repeat");function XS(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}S(XS,"isNegativeZero");var m8=rx,y8=US,x8=VS,C8=GS,k8=XS,b8=YS,nr={isNothing:m8,isObject:y8,toArray:x8,repeat:C8,isNegativeZero:k8,extend:b8};function nx(e,t){var r="",n=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+=`
|
|
279
|
+
|
|
280
|
+
`+e.mark.snippet),n+" "+r):n}S(nx,"formatError");function ps(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=nx(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}S(ps,"YAMLException$1");ps.prototype=Object.create(Error.prototype);ps.prototype.constructor=ps;ps.prototype.toString=S(function(t){return this.name+": "+nx(this,t)},"toString");var Zr=ps;function sh(e,t,r,n,i){var o="",s="",l=Math.floor(i/2)-1;return n-t>l&&(o=" ... ",t=n-l+o.length),r-n>l&&(s=" ...",r=n+l-s.length),{str:o+e.slice(t,r).replace(/\t/g,"→")+s,pos:n-t+o.length}}S(sh,"getLine");function lh(e,t){return nr.repeat(" ",t-e.length)+e}S(lh,"padStart");function KS(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],o,s=-1;o=r.exec(e.buffer);)i.push(o.index),n.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var l="",u,h,d=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+d+3);for(u=1;u<=t.linesBefore&&!(s-u<0);u++)h=sh(e.buffer,n[s-u],i[s-u],e.position-(n[s]-n[s-u]),f),l=nr.repeat(" ",t.indent)+lh((e.line-u+1).toString(),d)+" | "+h.str+`
|
|
281
|
+
`+l;for(h=sh(e.buffer,n[s],i[s],e.position,f),l+=nr.repeat(" ",t.indent)+lh((e.line+1).toString(),d)+" | "+h.str+`
|
|
282
|
+
`,l+=nr.repeat("-",t.indent+d+3+h.pos)+`^
|
|
283
|
+
`,u=1;u<=t.linesAfter&&!(s+u>=i.length);u++)h=sh(e.buffer,n[s+u],i[s+u],e.position-(n[s]-n[s+u]),f),l+=nr.repeat(" ",t.indent)+lh((e.line+u+1).toString(),d)+" | "+h.str+`
|
|
284
|
+
`;return l.replace(/\n$/,"")}S(KS,"makeSnippet");var v8=KS,w8=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],S8=["scalar","sequence","mapping"];function QS(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}S(QS,"compileStyleAliases");function ZS(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(w8.indexOf(r)===-1)throw new Zr('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=QS(t.styleAliases||null),S8.indexOf(this.kind)===-1)throw new Zr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}S(ZS,"Type$1");var _r=ZS;function Em(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(o,s){o.tag===n.tag&&o.kind===n.kind&&o.multi===n.multi&&(i=s)}),r[i]=n}),r}S(Em,"compileList");function JS(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(S(n,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}S(JS,"compileMap");function Oh(e){return this.extend(e)}S(Oh,"Schema$1");Oh.prototype.extend=S(function(t){var r=[],n=[];if(t instanceof _r)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new Zr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(o){if(!(o instanceof _r))throw new Zr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(o.loadKind&&o.loadKind!=="scalar")throw new Zr("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 Zr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(o){if(!(o instanceof _r))throw new Zr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Oh.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=Em(i,"implicit"),i.compiledExplicit=Em(i,"explicit"),i.compiledTypeMap=JS(i.compiledImplicit,i.compiledExplicit),i},"extend");var T8=Oh,_8=new _r("tag:yaml.org,2002:str",{kind:"scalar",construct:S(function(e){return e!==null?e:""},"construct")}),E8=new _r("tag:yaml.org,2002:seq",{kind:"sequence",construct:S(function(e){return e!==null?e:[]},"construct")}),L8=new _r("tag:yaml.org,2002:map",{kind:"mapping",construct:S(function(e){return e!==null?e:{}},"construct")}),B8=new T8({explicit:[_8,E8,L8]});function tT(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}S(tT,"resolveYamlNull");function eT(){return null}S(eT,"constructYamlNull");function rT(e){return e===null}S(rT,"isNull");var A8=new _r("tag:yaml.org,2002:null",{kind:"scalar",resolve:tT,construct:eT,predicate:rT,represent:{canonical:S(function(){return"~"},"canonical"),lowercase:S(function(){return"null"},"lowercase"),uppercase:S(function(){return"NULL"},"uppercase"),camelcase:S(function(){return"Null"},"camelcase"),empty:S(function(){return""},"empty")},defaultStyle:"lowercase"});function nT(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")}S(nT,"resolveYamlBoolean");function iT(e){return e==="true"||e==="True"||e==="TRUE"}S(iT,"constructYamlBoolean");function oT(e){return Object.prototype.toString.call(e)==="[object Boolean]"}S(oT,"isBoolean");var F8=new _r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:nT,construct:iT,predicate:oT,represent:{lowercase:S(function(e){return e?"true":"false"},"lowercase"),uppercase:S(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:S(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function aT(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}S(aT,"isHexCode");function sT(e){return 48<=e&&e<=55}S(sT,"isOctCode");function lT(e){return 48<=e&&e<=57}S(lT,"isDecCode");function cT(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!aT(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!sT(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!lT(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}S(cT,"resolveYamlInteger");function uT(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="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)}S(uT,"constructYamlInteger");function hT(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!nr.isNegativeZero(e)}S(hT,"isInteger");var I8=new _r("tag:yaml.org,2002:int",{kind:"scalar",resolve:cT,construct:uT,predicate:hT,represent:{binary:S(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:S(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:S(function(e){return e.toString(10)},"decimal"),hexadecimal:S(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"]}}),M8=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function dT(e){return!(e===null||!M8.test(e)||e[e.length-1]==="_")}S(dT,"resolveYamlFloat");function fT(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)}S(fT,"constructYamlFloat");var O8=/^[-+]?[0-9]+e/;function pT(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(nr.isNegativeZero(e))return"-0.0";return r=e.toString(10),O8.test(r)?r.replace("e",".e"):r}S(pT,"representYamlFloat");function gT(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||nr.isNegativeZero(e))}S(gT,"isFloat");var R8=new _r("tag:yaml.org,2002:float",{kind:"scalar",resolve:dT,construct:fT,predicate:gT,represent:pT,defaultStyle:"lowercase"}),mT=B8.extend({implicit:[A8,F8,I8,R8]}),P8=mT,yT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),xT=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 CT(e){return e===null?!1:yT.exec(e)!==null||xT.exec(e)!==null}S(CT,"resolveYamlTimestamp");function kT(e){var t,r,n,i,o,s,l,u=0,h=null,d,f,m;if(t=yT.exec(e),t===null&&(t=xT.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],s=+t[5],l=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(d=+t[10],f=+(t[11]||0),h=(d*60+f)*6e4,t[9]==="-"&&(h=-h)),m=new Date(Date.UTC(r,n,i,o,s,l,u)),h&&m.setTime(m.getTime()-h),m}S(kT,"constructYamlTimestamp");function bT(e){return e.toISOString()}S(bT,"representYamlTimestamp");var N8=new _r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:CT,construct:kT,instanceOf:Date,represent:bT});function vT(e){return e==="<<"||e===null}S(vT,"resolveYamlMerge");var D8=new _r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:vT}),ix=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
285
|
+
\r`;function wT(e){if(e===null)return!1;var t,r,n=0,i=e.length,o=ix;for(r=0;r<i;r++)if(t=o.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}S(wT,"resolveYamlBinary");function ST(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,o=ix,s=0,l=[];for(t=0;t<i;t++)t%4===0&&t&&(l.push(s>>16&255),l.push(s>>8&255),l.push(s&255)),s=s<<6|o.indexOf(n.charAt(t));return r=i%4*6,r===0?(l.push(s>>16&255),l.push(s>>8&255),l.push(s&255)):r===18?(l.push(s>>10&255),l.push(s>>2&255)):r===12&&l.push(s>>4&255),new Uint8Array(l)}S(ST,"constructYamlBinary");function TT(e){var t="",r=0,n,i,o=e.length,s=ix;for(n=0;n<o;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}S(TT,"representYamlBinary");function _T(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}S(_T,"isBinary");var $8=new _r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:wT,construct:ST,predicate:_T,represent:TT}),j8=Object.prototype.hasOwnProperty,z8=Object.prototype.toString;function ET(e){if(e===null)return!0;var t=[],r,n,i,o,s,l=e;for(r=0,n=l.length;r<n;r+=1){if(i=l[r],s=!1,z8.call(i)!=="[object Object]")return!1;for(o in i)if(j8.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}S(ET,"resolveYamlOmap");function LT(e){return e!==null?e:[]}S(LT,"constructYamlOmap");var q8=new _r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ET,construct:LT}),W8=Object.prototype.toString;function BT(e){if(e===null)return!0;var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(n=s[t],W8.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;o[t]=[i[0],n[i[0]]]}return!0}S(BT,"resolveYamlPairs");function AT(e){if(e===null)return[];var t,r,n,i,o,s=e;for(o=new Array(s.length),t=0,r=s.length;t<r;t+=1)n=s[t],i=Object.keys(n),o[t]=[i[0],n[i[0]]];return o}S(AT,"constructYamlPairs");var H8=new _r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:BT,construct:AT}),U8=Object.prototype.hasOwnProperty;function FT(e){if(e===null)return!0;var t,r=e;for(t in r)if(U8.call(r,t)&&r[t]!==null)return!1;return!0}S(FT,"resolveYamlSet");function IT(e){return e!==null?e:{}}S(IT,"constructYamlSet");var V8=new _r("tag:yaml.org,2002:set",{kind:"mapping",resolve:FT,construct:IT}),MT=P8.extend({implicit:[N8,D8],explicit:[$8,q8,H8,V8]}),po=Object.prototype.hasOwnProperty,Rh=1,OT=2,RT=3,Ph=4,qp=1,Y8=2,Qk=3,G8=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,X8=/[\x85\u2028\u2029]/,K8=/[,\[\]\{\}]/,PT=/^(?:!|!!|![a-z\-]+!)$/i,NT=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Lm(e){return Object.prototype.toString.call(e)}S(Lm,"_class");function zn(e){return e===10||e===13}S(zn,"is_EOL");function ho(e){return e===9||e===32}S(ho,"is_WHITE_SPACE");function Rr(e){return e===9||e===32||e===10||e===13}S(Rr,"is_WS_OR_EOL");function Ho(e){return e===44||e===91||e===93||e===123||e===125}S(Ho,"is_FLOW_INDICATOR");function DT(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}S(DT,"fromHexCode");function $T(e){return e===120?2:e===117?4:e===85?8:0}S($T,"escapedHexLen");function jT(e){return 48<=e&&e<=57?e-48:-1}S(jT,"fromDecimalCode");function Bm(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
286
|
+
`: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":""}S(Bm,"simpleEscapeSequence");function zT(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}S(zT,"charFromCodepoint");function ox(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}S(ox,"setProperty");var qT=new Array(256),WT=new Array(256);for(No=0;No<256;No++)qT[No]=Bm(No)?1:0,WT[No]=Bm(No);var No;function HT(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||MT,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=[]}S(HT,"State$1");function ax(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=v8(r),new Zr(t,r)}S(ax,"generateError");function Nt(e,t){throw ax(e,t)}S(Nt,"throwError");function Jl(e,t){e.onWarning&&e.onWarning.call(null,ax(e,t))}S(Jl,"throwWarning");var Zk={YAML:S(function(t,r,n){var i,o,s;t.version!==null&&Nt(t,"duplication of %YAML directive"),n.length!==1&&Nt(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Nt(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&Nt(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Jl(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:S(function(t,r,n){var i,o;n.length!==2&&Nt(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],PT.test(i)||Nt(t,"ill-formed tag handle (first argument) of the TAG directive"),po.call(t.tagMap,i)&&Nt(t,'there is a previously declared suffix for "'+i+'" tag handle'),NT.test(o)||Nt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{o=decodeURIComponent(o)}catch{Nt(t,"tag prefix is malformed: "+o)}t.tagMap[i]=o},"handleTagDirective")};function Bi(e,t,r,n){var i,o,s,l;if(t<r){if(l=e.input.slice(t,r),n)for(i=0,o=l.length;i<o;i+=1)s=l.charCodeAt(i),s===9||32<=s&&s<=1114111||Nt(e,"expected valid JSON character");else G8.test(l)&&Nt(e,"the stream contains non-printable characters");e.result+=l}}S(Bi,"captureSegment");function Am(e,t,r,n){var i,o,s,l;for(nr.isObject(r)||Nt(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,l=i.length;s<l;s+=1)o=i[s],po.call(t,o)||(ox(t,o,r[o]),n[o]=!0)}S(Am,"mergeMappings");function Uo(e,t,r,n,i,o,s,l,u){var h,d;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),h=0,d=i.length;h<d;h+=1)Array.isArray(i[h])&&Nt(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Lm(i[h])==="[object Object]"&&(i[h]="[object Object]");if(typeof i=="object"&&Lm(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(o))for(h=0,d=o.length;h<d;h+=1)Am(e,t,o[h],r);else Am(e,t,o,r);else!e.json&&!po.call(r,i)&&po.call(t,i)&&(e.line=s||e.line,e.lineStart=l||e.lineStart,e.position=u||e.position,Nt(e,"duplicated mapping key")),ox(t,i,o),delete r[i];return t}S(Uo,"storeMappingPair");function fd(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++):Nt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}S(fd,"readLineBreak");function He(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;ho(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(zn(i))for(fd(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Jl(e,"deficient indentation"),n}S(He,"skipSeparationSpace");function mc(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||Rr(r)))}S(mc,"testDocumentSeparator");function pd(e,t){t===1?e.result+=" ":t>1&&(e.result+=nr.repeat(`
|
|
287
|
+
`,t-1))}S(pd,"writeFoldedLines");function UT(e,t,r){var n,i,o,s,l,u,h,d,f=e.kind,m=e.result,g;if(g=e.input.charCodeAt(e.position),Rr(g)||Ho(g)||g===35||g===38||g===42||g===33||g===124||g===62||g===39||g===34||g===37||g===64||g===96||(g===63||g===45)&&(i=e.input.charCodeAt(e.position+1),Rr(i)||r&&Ho(i)))return!1;for(e.kind="scalar",e.result="",o=s=e.position,l=!1;g!==0;){if(g===58){if(i=e.input.charCodeAt(e.position+1),Rr(i)||r&&Ho(i))break}else if(g===35){if(n=e.input.charCodeAt(e.position-1),Rr(n))break}else{if(e.position===e.lineStart&&mc(e)||r&&Ho(g))break;if(zn(g))if(u=e.line,h=e.lineStart,d=e.lineIndent,He(e,!1,-1),e.lineIndent>=t){l=!0,g=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=u,e.lineStart=h,e.lineIndent=d;break}}l&&(Bi(e,o,s,!1),pd(e,e.line-u),o=s=e.position,l=!1),ho(g)||(s=e.position+1),g=e.input.charCodeAt(++e.position)}return Bi(e,o,s,!1),e.result?!0:(e.kind=f,e.result=m,!1)}S(UT,"readPlainScalar");function VT(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Bi(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else zn(r)?(Bi(e,n,i,!0),pd(e,He(e,!1,t)),n=i=e.position):e.position===e.lineStart&&mc(e)?Nt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Nt(e,"unexpected end of the stream within a single quoted scalar")}S(VT,"readSingleQuotedScalar");function YT(e,t){var r,n,i,o,s,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return Bi(e,r,e.position,!0),e.position++,!0;if(l===92){if(Bi(e,r,e.position,!0),l=e.input.charCodeAt(++e.position),zn(l))He(e,!1,t);else if(l<256&&qT[l])e.result+=WT[l],e.position++;else if((s=$T(l))>0){for(i=s,o=0;i>0;i--)l=e.input.charCodeAt(++e.position),(s=DT(l))>=0?o=(o<<4)+s:Nt(e,"expected hexadecimal character");e.result+=zT(o),e.position++}else Nt(e,"unknown escape sequence");r=n=e.position}else zn(l)?(Bi(e,r,n,!0),pd(e,He(e,!1,t)),r=n=e.position):e.position===e.lineStart&&mc(e)?Nt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Nt(e,"unexpected end of the stream within a double quoted scalar")}S(YT,"readDoubleQuotedScalar");function GT(e,t){var r=!0,n,i,o,s=e.tag,l,u=e.anchor,h,d,f,m,g,x=Object.create(null),C,k,v,w;if(w=e.input.charCodeAt(e.position),w===91)d=93,g=!1,l=[];else if(w===123)d=125,g=!0,l={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),w=e.input.charCodeAt(++e.position);w!==0;){if(He(e,!0,t),w=e.input.charCodeAt(e.position),w===d)return e.position++,e.tag=s,e.anchor=u,e.kind=g?"mapping":"sequence",e.result=l,!0;r?w===44&&Nt(e,"expected the node content, but found ','"):Nt(e,"missed comma between flow collection entries"),k=C=v=null,f=m=!1,w===63&&(h=e.input.charCodeAt(e.position+1),Rr(h)&&(f=m=!0,e.position++,He(e,!0,t))),n=e.line,i=e.lineStart,o=e.position,Zo(e,t,Rh,!1,!0),k=e.tag,C=e.result,He(e,!0,t),w=e.input.charCodeAt(e.position),(m||e.line===n)&&w===58&&(f=!0,w=e.input.charCodeAt(++e.position),He(e,!0,t),Zo(e,t,Rh,!1,!0),v=e.result),g?Uo(e,l,x,k,C,v,n,i,o):f?l.push(Uo(e,null,x,k,C,v,n,i,o)):l.push(C),He(e,!0,t),w=e.input.charCodeAt(e.position),w===44?(r=!0,w=e.input.charCodeAt(++e.position)):r=!1}Nt(e,"unexpected end of the stream within a flow collection")}S(GT,"readFlowCollection");function XT(e,t){var r,n,i=qp,o=!1,s=!1,l=t,u=0,h=!1,d,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)qp===i?i=f===43?Qk:Y8:Nt(e,"repeat of a chomping mode identifier");else if((d=jT(f))>=0)d===0?Nt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Nt(e,"repeat of an indentation width identifier"):(l=t+d-1,s=!0);else break;if(ho(f)){do f=e.input.charCodeAt(++e.position);while(ho(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!zn(f)&&f!==0)}for(;f!==0;){for(fd(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!s||e.lineIndent<l)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>l&&(l=e.lineIndent),zn(f)){u++;continue}if(e.lineIndent<l){i===Qk?e.result+=nr.repeat(`
|
|
288
|
+
`,o?1+u:u):i===qp&&o&&(e.result+=`
|
|
289
|
+
`);break}for(n?ho(f)?(h=!0,e.result+=nr.repeat(`
|
|
290
|
+
`,o?1+u:u)):h?(h=!1,e.result+=nr.repeat(`
|
|
291
|
+
`,u+1)):u===0?o&&(e.result+=" "):e.result+=nr.repeat(`
|
|
292
|
+
`,u):e.result+=nr.repeat(`
|
|
293
|
+
`,o?1+u:u),o=!0,s=!0,u=0,r=e.position;!zn(f)&&f!==0;)f=e.input.charCodeAt(++e.position);Bi(e,r,e.position,!1)}return!0}S(XT,"readBlockScalar");function Fm(e,t){var r,n=e.tag,i=e.anchor,o=[],s,l=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Nt(e,"tab characters must not be used in indentation")),!(u!==45||(s=e.input.charCodeAt(e.position+1),!Rr(s))));){if(l=!0,e.position++,He(e,!0,-1)&&e.lineIndent<=t){o.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Zo(e,t,RT,!1,!0),o.push(e.result),He(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)Nt(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return l?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=o,!0):!1}S(Fm,"readBlockSequence");function KT(e,t,r){var n,i,o,s,l,u,h=e.tag,d=e.anchor,f={},m=Object.create(null),g=null,x=null,C=null,k=!1,v=!1,w;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),w=e.input.charCodeAt(e.position);w!==0;){if(!k&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Nt(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),o=e.line,(w===63||w===58)&&Rr(n))w===63?(k&&(Uo(e,f,m,g,x,null,s,l,u),g=x=C=null),v=!0,k=!0,i=!0):k?(k=!1,i=!0):Nt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,w=n;else{if(s=e.line,l=e.lineStart,u=e.position,!Zo(e,r,OT,!1,!0))break;if(e.line===o){for(w=e.input.charCodeAt(e.position);ho(w);)w=e.input.charCodeAt(++e.position);if(w===58)w=e.input.charCodeAt(++e.position),Rr(w)||Nt(e,"a whitespace character is expected after the key-value separator within a block mapping"),k&&(Uo(e,f,m,g,x,null,s,l,u),g=x=C=null),v=!0,k=!1,i=!1,g=e.tag,x=e.result;else if(v)Nt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=h,e.anchor=d,!0}else if(v)Nt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=h,e.anchor=d,!0}if((e.line===o||e.lineIndent>t)&&(k&&(s=e.line,l=e.lineStart,u=e.position),Zo(e,t,Ph,!0,i)&&(k?x=e.result:C=e.result),k||(Uo(e,f,m,g,x,C,s,l,u),g=x=C=null),He(e,!0,-1),w=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&w!==0)Nt(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return k&&Uo(e,f,m,g,x,null,s,l,u),v&&(e.tag=h,e.anchor=d,e.kind="mapping",e.result=f),v}S(KT,"readBlockMapping");function QT(e){var t,r=!1,n=!1,i,o,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&Nt(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,i="!!",s=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(o=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Nt(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Rr(s);)s===33&&(n?Nt(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),PT.test(i)||Nt(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);o=e.input.slice(t,e.position),K8.test(o)&&Nt(e,"tag suffix cannot contain flow indicator characters")}o&&!NT.test(o)&&Nt(e,"tag name cannot contain such characters: "+o);try{o=decodeURIComponent(o)}catch{Nt(e,"tag name is malformed: "+o)}return r?e.tag=o:po.call(e.tagMap,i)?e.tag=e.tagMap[i]+o:i==="!"?e.tag="!"+o:i==="!!"?e.tag="tag:yaml.org,2002:"+o:Nt(e,'undeclared tag handle "'+i+'"'),!0}S(QT,"readTagProperty");function ZT(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Nt(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Rr(r)&&!Ho(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Nt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}S(ZT,"readAnchorProperty");function JT(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Rr(n)&&!Ho(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Nt(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),po.call(e.anchorMap,r)||Nt(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],He(e,!0,-1),!0}S(JT,"readAlias");function Zo(e,t,r,n,i){var o,s,l,u=1,h=!1,d=!1,f,m,g,x,C,k;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=s=l=Ph===r||RT===r,n&&He(e,!0,-1)&&(h=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;QT(e)||ZT(e);)He(e,!0,-1)?(h=!0,l=o,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):l=!1;if(l&&(l=h||i),(u===1||Ph===r)&&(Rh===r||OT===r?C=t:C=t+1,k=e.position-e.lineStart,u===1?l&&(Fm(e,k)||KT(e,k,C))||GT(e,C)?d=!0:(s&&XT(e,C)||VT(e,C)||YT(e,C)?d=!0:JT(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&Nt(e,"alias node should not have any properties")):UT(e,C,Rh===r)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(d=l&&Fm(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"&&Nt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,m=e.implicitTypes.length;f<m;f+=1)if(x=e.implicitTypes[f],x.resolve(e.result)){e.result=x.construct(e.result),e.tag=x.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(po.call(e.typeMap[e.kind||"fallback"],e.tag))x=e.typeMap[e.kind||"fallback"][e.tag];else for(x=null,g=e.typeMap.multi[e.kind||"fallback"],f=0,m=g.length;f<m;f+=1)if(e.tag.slice(0,g[f].tag.length)===g[f].tag){x=g[f];break}x||Nt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&x.kind!==e.kind&&Nt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+x.kind+'", not "'+e.kind+'"'),x.resolve(e.result,e.tag)?(e.result=x.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Nt(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}S(Zo,"composeNode");function t_(e){var t=e.position,r,n,i,o=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(s=e.input.charCodeAt(e.position))!==0&&(He(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(o=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Rr(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&Nt(e,"directive name must not be less than one character in length");s!==0;){for(;ho(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!zn(s));break}if(zn(s))break;for(r=e.position;s!==0&&!Rr(s);)s=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}s!==0&&fd(e),po.call(Zk,n)?Zk[n](e,n,i):Jl(e,'unknown document directive "'+n+'"')}if(He(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,He(e,!0,-1)):o&&Nt(e,"directives end mark is expected"),Zo(e,e.lineIndent-1,Ph,!1,!0),He(e,!0,-1),e.checkLineBreaks&&X8.test(e.input.slice(t,e.position))&&Jl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&mc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,He(e,!0,-1));return}if(e.position<e.length-1)Nt(e,"end of the stream or a document separator is expected");else return}S(t_,"readDocument");function sx(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
294
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new HT(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,Nt(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;)t_(r);return r.documents}S(sx,"loadDocuments");function Q8(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=sx(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}S(Q8,"loadAll$1");function e_(e,t){var r=sx(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Zr("expected a single document in the stream, but found more")}}S(e_,"load$1");var Z8=e_,J8={load:Z8},r_=Object.prototype.toString,n_=Object.prototype.hasOwnProperty,lx=65279,tj=9,tc=10,ej=13,rj=32,nj=33,ij=34,Im=35,oj=37,aj=38,sj=39,lj=42,i_=44,cj=45,Nh=58,uj=61,hj=62,dj=63,fj=64,o_=91,a_=93,pj=96,s_=123,gj=124,l_=125,Lr={};Lr[0]="\\0";Lr[7]="\\a";Lr[8]="\\b";Lr[9]="\\t";Lr[10]="\\n";Lr[11]="\\v";Lr[12]="\\f";Lr[13]="\\r";Lr[27]="\\e";Lr[34]='\\"';Lr[92]="\\\\";Lr[133]="\\N";Lr[160]="\\_";Lr[8232]="\\L";Lr[8233]="\\P";var mj=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],yj=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function c_(e,t){var r,n,i,o,s,l,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)s=n[i],l=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),u=e.compiledTypeMap.fallback[s],u&&n_.call(u.styleAliases,l)&&(l=u.styleAliases[l]),r[s]=l;return r}S(c_,"compileStyleMap");function u_(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Zr("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+nr.repeat("0",n-t.length)+t}S(u_,"encodeHex");var xj=1,ec=2;function h_(e){this.schema=e.schema||MT,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=nr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=c_(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==='"'?ec:xj,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}S(h_,"State");function Mm(e,t){for(var r=nr.repeat(" ",t),n=0,i=-1,o="",s,l=e.length;n<l;)i=e.indexOf(`
|
|
295
|
+
`,n),i===-1?(s=e.slice(n),n=l):(s=e.slice(n,i+1),n=i+1),s.length&&s!==`
|
|
296
|
+
`&&(o+=r),o+=s;return o}S(Mm,"indentString");function Dh(e,t){return`
|
|
297
|
+
`+nr.repeat(" ",e.indent*t)}S(Dh,"generateNextLine");function d_(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}S(d_,"testImplicitResolving");function rc(e){return e===rj||e===tj}S(rc,"isWhitespace");function gs(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==lx||65536<=e&&e<=1114111}S(gs,"isPrintable");function Om(e){return gs(e)&&e!==lx&&e!==ej&&e!==tc}S(Om,"isNsCharOrWhitespace");function Rm(e,t,r){var n=Om(e),i=n&&!rc(e);return(r?n:n&&e!==i_&&e!==o_&&e!==a_&&e!==s_&&e!==l_)&&e!==Im&&!(t===Nh&&!i)||Om(t)&&!rc(t)&&e===Im||t===Nh&&i}S(Rm,"isPlainSafe");function f_(e){return gs(e)&&e!==lx&&!rc(e)&&e!==cj&&e!==dj&&e!==Nh&&e!==i_&&e!==o_&&e!==a_&&e!==s_&&e!==l_&&e!==Im&&e!==aj&&e!==lj&&e!==nj&&e!==gj&&e!==uj&&e!==hj&&e!==sj&&e!==ij&&e!==oj&&e!==fj&&e!==pj}S(f_,"isPlainSafeFirst");function p_(e){return!rc(e)&&e!==Nh}S(p_,"isPlainSafeLast");function Wa(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}S(Wa,"codePointAt");function cx(e){var t=/^\n* /;return t.test(e)}S(cx,"needIndentIndicator");var g_=1,Pm=2,m_=3,y_=4,ja=5;function x_(e,t,r,n,i,o,s,l){var u,h=0,d=null,f=!1,m=!1,g=n!==-1,x=-1,C=f_(Wa(e,0))&&p_(Wa(e,e.length-1));if(t||s)for(u=0;u<e.length;h>=65536?u+=2:u++){if(h=Wa(e,u),!gs(h))return ja;C=C&&Rm(h,d,l),d=h}else{for(u=0;u<e.length;h>=65536?u+=2:u++){if(h=Wa(e,u),h===tc)f=!0,g&&(m=m||u-x-1>n&&e[x+1]!==" ",x=u);else if(!gs(h))return ja;C=C&&Rm(h,d,l),d=h}m=m||g&&u-x-1>n&&e[x+1]!==" "}return!f&&!m?C&&!s&&!i(e)?g_:o===ec?ja:Pm:r>9&&cx(e)?ja:s?o===ec?ja:Pm:m?y_:m_}S(x_,"chooseScalarStyle");function C_(e,t,r,n,i){e.dump=(function(){if(t.length===0)return e.quotingType===ec?'""':"''";if(!e.noCompatMode&&(mj.indexOf(t)!==-1||yj.test(t)))return e.quotingType===ec?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),l=n||e.flowLevel>-1&&r>=e.flowLevel;function u(h){return d_(e,h)}switch(S(u,"testAmbiguity"),x_(t,l,e.indent,s,u,e.quotingType,e.forceQuotes&&!n,i)){case g_:return t;case Pm:return"'"+t.replace(/'/g,"''")+"'";case m_:return"|"+Nm(t,e.indent)+Dm(Mm(t,o));case y_:return">"+Nm(t,e.indent)+Dm(Mm(k_(t,s),o));case ja:return'"'+b_(t)+'"';default:throw new Zr("impossible error: invalid scalar style")}})()}S(C_,"writeScalar");function Nm(e,t){var r=cx(e)?String(t):"",n=e[e.length-1]===`
|
|
298
|
+
`,i=n&&(e[e.length-2]===`
|
|
299
|
+
`||e===`
|
|
300
|
+
`),o=i?"+":n?"":"-";return r+o+`
|
|
301
|
+
`}S(Nm,"blockHeader");function Dm(e){return e[e.length-1]===`
|
|
302
|
+
`?e.slice(0,-1):e}S(Dm,"dropEndingNewline");function k_(e,t){for(var r=/(\n+)([^\n]*)/g,n=(function(){var h=e.indexOf(`
|
|
303
|
+
`);return h=h!==-1?h:e.length,r.lastIndex=h,$m(e.slice(0,h),t)})(),i=e[0]===`
|
|
304
|
+
`||e[0]===" ",o,s;s=r.exec(e);){var l=s[1],u=s[2];o=u[0]===" ",n+=l+(!i&&!o&&u!==""?`
|
|
305
|
+
`:"")+$m(u,t),i=o}return n}S(k_,"foldString");function $m(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,s=0,l=0,u="";n=r.exec(e);)l=n.index,l-i>t&&(o=s>i?s:l,u+=`
|
|
306
|
+
`+e.slice(i,o),i=o+1),s=l;return u+=`
|
|
307
|
+
`,e.length-i>t&&s>i?u+=e.slice(i,s)+`
|
|
308
|
+
`+e.slice(s+1):u+=e.slice(i),u.slice(1)}S($m,"foldLine");function b_(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=Wa(e,i),n=Lr[r],!n&&gs(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||u_(r);return t}S(b_,"escapeString");function v_(e,t,r){var n="",i=e.tag,o,s,l;for(o=0,s=r.length;o<s;o+=1)l=r[o],e.replacer&&(l=e.replacer.call(r,String(o),l)),(si(e,t,l,!1,!1)||typeof l>"u"&&si(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}S(v_,"writeFlowSequence");function jm(e,t,r,n){var i="",o=e.tag,s,l,u;for(s=0,l=r.length;s<l;s+=1)u=r[s],e.replacer&&(u=e.replacer.call(r,String(s),u)),(si(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&si(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Dh(e,t)),e.dump&&tc===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}S(jm,"writeBlockSequence");function w_(e,t,r){var n="",i=e.tag,o=Object.keys(r),s,l,u,h,d;for(s=0,l=o.length;s<l;s+=1)d="",n!==""&&(d+=", "),e.condenseFlow&&(d+='"'),u=o[s],h=r[u],e.replacer&&(h=e.replacer.call(r,u,h)),si(e,t,u,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),si(e,t,h,!1,!1)&&(d+=e.dump,n+=d));e.tag=i,e.dump="{"+n+"}"}S(w_,"writeFlowMapping");function S_(e,t,r,n){var i="",o=e.tag,s=Object.keys(r),l,u,h,d,f,m;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Zr("sortKeys must be a boolean or a function");for(l=0,u=s.length;l<u;l+=1)m="",(!n||i!=="")&&(m+=Dh(e,t)),h=s[l],d=r[h],e.replacer&&(d=e.replacer.call(r,h,d)),si(e,t+1,h,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&tc===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,f&&(m+=Dh(e,t)),si(e,t+1,d,!0,f)&&(e.dump&&tc===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,i+=m));e.tag=o,e.dump=i||"{}"}S(S_,"writeBlockMapping");function zm(e,t,r){var n,i,o,s,l,u;for(i=r?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o<s;o+=1)if(l=i[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(u=e.styleMap[l.tag]||l.defaultStyle,r_.call(l.represent)==="[object Function]")n=l.represent(t,u);else if(n_.call(l.represent,u))n=l.represent[u](t,u);else throw new Zr("!<"+l.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}S(zm,"detectType");function si(e,t,r,n,i,o,s){e.tag=null,e.dump=r,zm(e,r,!1)||zm(e,r,!0);var l=r_.call(e.dump),u=n,h;n&&(n=e.flowLevel<0||e.flowLevel>t);var d=l==="[object Object]"||l==="[object Array]",f,m;if(d&&(f=e.duplicates.indexOf(r),m=f!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(i=!1),m&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(d&&m&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),l==="[object Object]")n&&Object.keys(e.dump).length!==0?(S_(e,t,e.dump,i),m&&(e.dump="&ref_"+f+e.dump)):(w_(e,t,e.dump),m&&(e.dump="&ref_"+f+" "+e.dump));else if(l==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?jm(e,t-1,e.dump,i):jm(e,t,e.dump,i),m&&(e.dump="&ref_"+f+e.dump)):(v_(e,t,e.dump),m&&(e.dump="&ref_"+f+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&C_(e,e.dump,t,o,u);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Zr("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(h=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?h="!"+h:h.slice(0,18)==="tag:yaml.org,2002:"?h="!!"+h.slice(18):h="!<"+h+">",e.dump=h+" "+e.dump)}return!0}S(si,"writeNode");function T_(e,t){var r=[],n=[],i,o;for($h(e,r,n),i=0,o=n.length;i<o;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(o)}S(T_,"getDuplicateReferences");function $h(e,t,r){var n,i,o;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,o=e.length;i<o;i+=1)$h(e[i],t,r);else for(n=Object.keys(e),i=0,o=n.length;i<o;i+=1)$h(e[n[i]],t,r)}S($h,"inspectNode");function Cj(e,t){t=t||{};var r=new h_(t);r.noRefs||T_(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),si(r,0,n,!0,!0)?r.dump+`
|
|
309
|
+
`:""}S(Cj,"dump$1");function kj(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.")}}S(kj,"renamed");var bj=mT,vj=J8.load;/*! Bundled license information:
|
|
310
|
+
|
|
311
|
+
js-yaml/dist/js-yaml.mjs:
|
|
312
|
+
(*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
|
|
313
|
+
*/var bl=S((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";const r=e.x??0,n=e.y??0;return"translate("+-(r+e.width/2)+", "+-(n+e.height/2)+")"},"computeLabelTransform"),Sr={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Jk={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Il(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Ae(e),t=Ae(t);const[r,n]=[e.x,e.y],[i,o]=[t.x,t.y],s=i-r,l=o-n;return{angle:Math.atan(l/s),deltaX:s,deltaY:l}}S(Il,"calculateDeltaAndAngle");var Ae=S(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),wj=S(e=>({x:S(function(t,r,n){let i=0;const o=Ae(n[0]).x<Ae(n[n.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(Sr,e.arrowTypeStart)){const{angle:g,deltaX:x}=Il(n[0],n[1]);i=Sr[e.arrowTypeStart]*Math.cos(g)*(x>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(Sr,e.arrowTypeEnd)){const{angle:g,deltaX:x}=Il(n[n.length-1],n[n.length-2]);i=Sr[e.arrowTypeEnd]*Math.cos(g)*(x>=0?1:-1)}const s=Math.abs(Ae(t).x-Ae(n[n.length-1]).x),l=Math.abs(Ae(t).y-Ae(n[n.length-1]).y),u=Math.abs(Ae(t).x-Ae(n[0]).x),h=Math.abs(Ae(t).y-Ae(n[0]).y),d=Sr[e.arrowTypeStart],f=Sr[e.arrowTypeEnd],m=1;if(s<f&&s>0&&l<f){let g=f+m-s;g*=o==="right"?-1:1,i-=g}if(u<d&&u>0&&h<d){let g=d+m-u;g*=o==="right"?-1:1,i+=g}return Ae(t).x+i},"x"),y:S(function(t,r,n){let i=0;const o=Ae(n[0]).y<Ae(n[n.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(Sr,e.arrowTypeStart)){const{angle:g,deltaY:x}=Il(n[0],n[1]);i=Sr[e.arrowTypeStart]*Math.abs(Math.sin(g))*(x>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(Sr,e.arrowTypeEnd)){const{angle:g,deltaY:x}=Il(n[n.length-1],n[n.length-2]);i=Sr[e.arrowTypeEnd]*Math.abs(Math.sin(g))*(x>=0?1:-1)}const s=Math.abs(Ae(t).y-Ae(n[n.length-1]).y),l=Math.abs(Ae(t).x-Ae(n[n.length-1]).x),u=Math.abs(Ae(t).y-Ae(n[0]).y),h=Math.abs(Ae(t).x-Ae(n[0]).x),d=Sr[e.arrowTypeStart],f=Sr[e.arrowTypeEnd],m=1;if(s<f&&s>0&&l<f){let g=f+m-s;g*=o==="up"?-1:1,i-=g}if(u<d&&u>0&&h<d){let g=d+m-u;g*=o==="up"?-1:1,i+=g}return Ae(t).y+i},"y")}),"getLineFunctionsWithOffset"),ju={},er={},tb;function Sj(){return tb||(tb=1,Object.defineProperty(er,"__esModule",{value:!0}),er.BLANK_URL=er.relativeFirstCharacters=er.whitespaceEscapeCharsRegex=er.urlSchemeRegex=er.ctrlCharactersRegex=er.htmlCtrlEntityRegex=er.htmlEntitiesRegex=er.invalidProtocolRegex=void 0,er.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,er.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,er.htmlCtrlEntityRegex=/&(newline|tab);/gi,er.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,er.urlSchemeRegex=/^.+(:|:)/gim,er.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,er.relativeFirstCharacters=[".","/"],er.BLANK_URL="about:blank"),er}var eb;function Tj(){if(eb)return ju;eb=1,Object.defineProperty(ju,"__esModule",{value:!0}),ju.sanitizeUrl=o;var e=Sj();function t(s){return e.relativeFirstCharacters.indexOf(s[0])>-1}function r(s){var l=s.replace(e.ctrlCharactersRegex,"");return l.replace(e.htmlEntitiesRegex,function(u,h){return String.fromCharCode(h)})}function n(s){return URL.canParse(s)}function i(s){try{return decodeURIComponent(s)}catch{return s}}function o(s){if(!s)return e.BLANK_URL;var l,u=i(s.trim());do u=r(u).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim(),u=i(u),l=u.match(e.ctrlCharactersRegex)||u.match(e.htmlEntitiesRegex)||u.match(e.htmlCtrlEntityRegex)||u.match(e.whitespaceEscapeCharsRegex);while(l&&l.length>0);var h=u;if(!h)return e.BLANK_URL;if(t(h))return h;var d=h.trimStart(),f=d.match(e.urlSchemeRegex);if(!f)return h;var m=f[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(m))return e.BLANK_URL;var g=d.replace(/\\/g,"/");if(m==="mailto:"||m.includes("://"))return g;if(m==="http:"||m==="https:"){if(!n(g))return e.BLANK_URL;var x=new URL(g);return x.protocol=x.protocol.toLowerCase(),x.hostname=x.hostname.toLowerCase(),x.toString()}return g}return ju}var _j=Tj(),__=typeof global=="object"&&global&&global.Object===Object&&global,Ej=typeof self=="object"&&self&&self.Object===Object&&self,di=__||Ej||Function("return this")(),jh=di.Symbol,E_=Object.prototype,Lj=E_.hasOwnProperty,Bj=E_.toString,vl=jh?jh.toStringTag:void 0;function Aj(e){var t=Lj.call(e,vl),r=e[vl];try{e[vl]=void 0;var n=!0}catch{}var i=Bj.call(e);return n&&(t?e[vl]=r:delete e[vl]),i}var Fj=Object.prototype,Ij=Fj.toString;function Mj(e){return Ij.call(e)}var Oj="[object Null]",Rj="[object Undefined]",rb=jh?jh.toStringTag:void 0;function ks(e){return e==null?e===void 0?Rj:Oj:rb&&rb in Object(e)?Aj(e):Mj(e)}function ia(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Pj="[object AsyncFunction]",Nj="[object Function]",Dj="[object GeneratorFunction]",$j="[object Proxy]";function ux(e){if(!ia(e))return!1;var t=ks(e);return t==Nj||t==Dj||t==Pj||t==$j}var Wp=di["__core-js_shared__"],nb=(function(){var e=/[^.]+$/.exec(Wp&&Wp.keys&&Wp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function jj(e){return!!nb&&nb in e}var zj=Function.prototype,qj=zj.toString;function oa(e){if(e!=null){try{return qj.call(e)}catch{}try{return e+""}catch{}}return""}var Wj=/[\\^$.*+?()[\]{}|]/g,Hj=/^\[object .+?Constructor\]$/,Uj=Function.prototype,Vj=Object.prototype,Yj=Uj.toString,Gj=Vj.hasOwnProperty,Xj=RegExp("^"+Yj.call(Gj).replace(Wj,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Kj(e){if(!ia(e)||jj(e))return!1;var t=ux(e)?Xj:Hj;return t.test(oa(e))}function Qj(e,t){return e==null?void 0:e[t]}function aa(e,t){var r=Qj(e,t);return Kj(r)?r:void 0}var nc=aa(Object,"create");function Zj(){this.__data__=nc?nc(null):{},this.size=0}function Jj(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tz="__lodash_hash_undefined__",ez=Object.prototype,rz=ez.hasOwnProperty;function nz(e){var t=this.__data__;if(nc){var r=t[e];return r===tz?void 0:r}return rz.call(t,e)?t[e]:void 0}var iz=Object.prototype,oz=iz.hasOwnProperty;function az(e){var t=this.__data__;return nc?t[e]!==void 0:oz.call(t,e)}var sz="__lodash_hash_undefined__";function lz(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nc&&t===void 0?sz:t,this}function Jo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Jo.prototype.clear=Zj;Jo.prototype.delete=Jj;Jo.prototype.get=nz;Jo.prototype.has=az;Jo.prototype.set=lz;function cz(){this.__data__=[],this.size=0}function gd(e,t){return e===t||e!==e&&t!==t}function md(e,t){for(var r=e.length;r--;)if(gd(e[r][0],t))return r;return-1}var uz=Array.prototype,hz=uz.splice;function dz(e){var t=this.__data__,r=md(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():hz.call(t,r,1),--this.size,!0}function fz(e){var t=this.__data__,r=md(t,e);return r<0?void 0:t[r][1]}function pz(e){return md(this.__data__,e)>-1}function gz(e,t){var r=this.__data__,n=md(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Oi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Oi.prototype.clear=cz;Oi.prototype.delete=dz;Oi.prototype.get=fz;Oi.prototype.has=pz;Oi.prototype.set=gz;var ic=aa(di,"Map");function mz(){this.size=0,this.__data__={hash:new Jo,map:new(ic||Oi),string:new Jo}}function yz(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function yd(e,t){var r=e.__data__;return yz(t)?r[typeof t=="string"?"string":"hash"]:r.map}function xz(e){var t=yd(this,e).delete(e);return this.size-=t?1:0,t}function Cz(e){return yd(this,e).get(e)}function kz(e){return yd(this,e).has(e)}function bz(e,t){var r=yd(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function xo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xo.prototype.clear=mz;xo.prototype.delete=xz;xo.prototype.get=Cz;xo.prototype.has=kz;xo.prototype.set=bz;var vz="Expected a function";function yc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(vz);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(yc.Cache||xo),r}yc.Cache=xo;function wz(){this.__data__=new Oi,this.size=0}function Sz(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Tz(e){return this.__data__.get(e)}function _z(e){return this.__data__.has(e)}var Ez=200;function Lz(e,t){var r=this.__data__;if(r instanceof Oi){var n=r.__data__;if(!ic||n.length<Ez-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new xo(n)}return r.set(e,t),this.size=r.size,this}function bs(e){var t=this.__data__=new Oi(e);this.size=t.size}bs.prototype.clear=wz;bs.prototype.delete=Sz;bs.prototype.get=Tz;bs.prototype.has=_z;bs.prototype.set=Lz;var zh=(function(){try{var e=aa(Object,"defineProperty");return e({},"",{}),e}catch{}})();function hx(e,t,r){t=="__proto__"&&zh?zh(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function qm(e,t,r){(r!==void 0&&!gd(e[t],r)||r===void 0&&!(t in e))&&hx(e,t,r)}function Bz(e){return function(t,r,n){for(var i=-1,o=Object(t),s=n(t),l=s.length;l--;){var u=s[++i];if(r(o[u],u,o)===!1)break}return t}}var Az=Bz(),L_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ib=L_&&typeof module=="object"&&module&&!module.nodeType&&module,Fz=ib&&ib.exports===L_,ob=Fz?di.Buffer:void 0,ab=ob?ob.allocUnsafe:void 0;function Iz(e,t){if(t)return e.slice();var r=e.length,n=ab?ab(r):new e.constructor(r);return e.copy(n),n}var sb=di.Uint8Array;function Mz(e){var t=new e.constructor(e.byteLength);return new sb(t).set(new sb(e)),t}function Oz(e,t){var r=t?Mz(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Rz(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var lb=Object.create,Pz=(function(){function e(){}return function(t){if(!ia(t))return{};if(lb)return lb(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function B_(e,t){return function(r){return e(t(r))}}var A_=B_(Object.getPrototypeOf,Object),Nz=Object.prototype;function xd(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Nz;return e===r}function Dz(e){return typeof e.constructor=="function"&&!xd(e)?Pz(A_(e)):{}}function xc(e){return e!=null&&typeof e=="object"}var $z="[object Arguments]";function cb(e){return xc(e)&&ks(e)==$z}var F_=Object.prototype,jz=F_.hasOwnProperty,zz=F_.propertyIsEnumerable,qh=cb((function(){return arguments})())?cb:function(e){return xc(e)&&jz.call(e,"callee")&&!zz.call(e,"callee")},Wh=Array.isArray,qz=9007199254740991;function I_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=qz}function Cd(e){return e!=null&&I_(e.length)&&!ux(e)}function Wz(e){return xc(e)&&Cd(e)}function Hz(){return!1}var M_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ub=M_&&typeof module=="object"&&module&&!module.nodeType&&module,Uz=ub&&ub.exports===M_,hb=Uz?di.Buffer:void 0,Vz=hb?hb.isBuffer:void 0,dx=Vz||Hz,Yz="[object Object]",Gz=Function.prototype,Xz=Object.prototype,O_=Gz.toString,Kz=Xz.hasOwnProperty,Qz=O_.call(Object);function Zz(e){if(!xc(e)||ks(e)!=Yz)return!1;var t=A_(e);if(t===null)return!0;var r=Kz.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&O_.call(r)==Qz}var Jz="[object Arguments]",t9="[object Array]",e9="[object Boolean]",r9="[object Date]",n9="[object Error]",i9="[object Function]",o9="[object Map]",a9="[object Number]",s9="[object Object]",l9="[object RegExp]",c9="[object Set]",u9="[object String]",h9="[object WeakMap]",d9="[object ArrayBuffer]",f9="[object DataView]",p9="[object Float32Array]",g9="[object Float64Array]",m9="[object Int8Array]",y9="[object Int16Array]",x9="[object Int32Array]",C9="[object Uint8Array]",k9="[object Uint8ClampedArray]",b9="[object Uint16Array]",v9="[object Uint32Array]",Ee={};Ee[p9]=Ee[g9]=Ee[m9]=Ee[y9]=Ee[x9]=Ee[C9]=Ee[k9]=Ee[b9]=Ee[v9]=!0;Ee[Jz]=Ee[t9]=Ee[d9]=Ee[e9]=Ee[f9]=Ee[r9]=Ee[n9]=Ee[i9]=Ee[o9]=Ee[a9]=Ee[s9]=Ee[l9]=Ee[c9]=Ee[u9]=Ee[h9]=!1;function w9(e){return xc(e)&&I_(e.length)&&!!Ee[ks(e)]}function S9(e){return function(t){return e(t)}}var R_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Hl=R_&&typeof module=="object"&&module&&!module.nodeType&&module,T9=Hl&&Hl.exports===R_,Hp=T9&&__.process,db=(function(){try{var e=Hl&&Hl.require&&Hl.require("util").types;return e||Hp&&Hp.binding&&Hp.binding("util")}catch{}})(),fb=db&&db.isTypedArray,fx=fb?S9(fb):w9;function Wm(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var _9=Object.prototype,E9=_9.hasOwnProperty;function L9(e,t,r){var n=e[t];(!(E9.call(e,t)&&gd(n,r))||r===void 0&&!(t in e))&&hx(e,t,r)}function B9(e,t,r,n){var i=!r;r||(r={});for(var o=-1,s=t.length;++o<s;){var l=t[o],u=void 0;u===void 0&&(u=e[l]),i?hx(r,l,u):L9(r,l,u)}return r}function A9(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var F9=9007199254740991,I9=/^(?:0|[1-9]\d*)$/;function P_(e,t){var r=typeof e;return t=t??F9,!!t&&(r=="number"||r!="symbol"&&I9.test(e))&&e>-1&&e%1==0&&e<t}var M9=Object.prototype,O9=M9.hasOwnProperty;function R9(e,t){var r=Wh(e),n=!r&&qh(e),i=!r&&!n&&dx(e),o=!r&&!n&&!i&&fx(e),s=r||n||i||o,l=s?A9(e.length,String):[],u=l.length;for(var h in e)(t||O9.call(e,h))&&!(s&&(h=="length"||i&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||P_(h,u)))&&l.push(h);return l}function P9(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var N9=Object.prototype,D9=N9.hasOwnProperty;function $9(e){if(!ia(e))return P9(e);var t=xd(e),r=[];for(var n in e)n=="constructor"&&(t||!D9.call(e,n))||r.push(n);return r}function N_(e){return Cd(e)?R9(e,!0):$9(e)}function j9(e){return B9(e,N_(e))}function z9(e,t,r,n,i,o,s){var l=Wm(e,r),u=Wm(t,r),h=s.get(u);if(h){qm(e,r,h);return}var d=o?o(l,u,r+"",e,t,s):void 0,f=d===void 0;if(f){var m=Wh(u),g=!m&&dx(u),x=!m&&!g&&fx(u);d=u,m||g||x?Wh(l)?d=l:Wz(l)?d=Rz(l):g?(f=!1,d=Iz(u,!0)):x?(f=!1,d=Oz(u,!0)):d=[]:Zz(u)||qh(u)?(d=l,qh(l)?d=j9(l):(!ia(l)||ux(l))&&(d=Dz(u))):f=!1}f&&(s.set(u,d),i(d,u,n,o,s),s.delete(u)),qm(e,r,d)}function D_(e,t,r,n,i){e!==t&&Az(t,function(o,s){if(i||(i=new bs),ia(o))z9(e,t,s,r,D_,n,i);else{var l=n?n(Wm(e,s),o,s+"",e,t,i):void 0;l===void 0&&(l=o),qm(e,s,l)}},N_)}function $_(e){return e}function q9(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 pb=Math.max;function W9(e,t,r){return t=pb(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=pb(n.length-t,0),s=Array(o);++i<o;)s[i]=n[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=n[i];return l[t]=r(s),q9(e,this,l)}}function H9(e){return function(){return e}}var U9=zh?function(e,t){return zh(e,"toString",{configurable:!0,enumerable:!1,value:H9(t),writable:!0})}:$_,V9=800,Y9=16,G9=Date.now;function X9(e){var t=0,r=0;return function(){var n=G9(),i=Y9-(n-r);if(r=n,i>0){if(++t>=V9)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var K9=X9(U9);function Q9(e,t){return K9(W9(e,t,$_),e+"")}function Z9(e,t,r){if(!ia(r))return!1;var n=typeof t;return(n=="number"?Cd(r)&&P_(t,r.length):n=="string"&&t in r)?gd(r[t],e):!1}function J9(e){return Q9(function(t,r){var n=-1,i=r.length,o=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&Z9(r[0],r[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++n<i;){var l=r[n];l&&e(t,l,n,o)}return t})}var tq=J9(function(e,t,r){D_(e,t,r)}),eq="",rq={curveBasis:_m,curveBasisClosed:s8,curveBasisOpen:l8,curveBumpX:TS,curveBumpY:_S,curveBundle:c8,curveCardinalClosed:u8,curveCardinalOpen:h8,curveCardinal:AS,curveCatmullRomClosed:d8,curveCatmullRomOpen:f8,curveCatmullRom:IS,curveLinear:Wl,curveLinearClosed:p8,curveMonotoneX:DS,curveMonotoneY:$S,curveNatural:zS,curveStep:qS,curveStepAfter:HS,curveStepBefore:WS},nq=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,iq=S(function(e,t){const r=j_(e,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const s=r.map(l=>l.args);kh(s),n=rr(n,[...s])}else n=r.args;if(!n)return;let i=Dy(e,t);const o="config";return n[o]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[o],delete n[o]),n},"detectInit"),j_=S(function(e,t=null){var r,n;try{const i=new RegExp(`[%]{2}(?![{]${nq.source})(?=[}][%]{2}).*
|
|
314
|
+
`,"ig");e=e.trim().replace(i,"").replace(/'/gm,'"'),ht.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let o;const s=[];for(;(o=zl.exec(e))!==null;)if(o.index===zl.lastIndex&&zl.lastIndex++,o&&!t||t&&((r=o[1])!=null&&r.match(t))||t&&((n=o[2])!=null&&n.match(t))){const l=o[1]?o[1]:o[2],u=o[3]?o[3].trim():o[4]?JSON.parse(o[4].trim()):null;s.push({type:l,args:u})}return s.length===0?{type:e,args:null}:s.length===1?s[0]:s}catch(i){return ht.error(`ERROR: ${i.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),oq=S(function(e){return e.replace(zl,"")},"removeDirectives"),aq=S(function(e,t){for(const[r,n]of t.entries())if(n.match(e))return r;return-1},"isSubstringInArray");function px(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return rq[r]??t}S(px,"interpolateToCurve");function z_(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?_j.sanitizeUrl(r):r}S(z_,"formatUrl");var sq=S((e,...t)=>{const r=e.split("."),n=r.length-1,i=r[n];let o=window;for(let s=0;s<n;s++)if(o=o[r[s]],!o){ht.error(`Function name: ${e} not found in window`);return}o[i](...t)},"runFunc");function gx(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}S(gx,"distance");function q_(e){let t,r=0;e.forEach(i=>{r+=gx(i,t),t=i});const n=r/2;return mx(e,n)}S(q_,"traverseEdge");function W_(e){return e.length===1?e[0]:q_(e)}S(W_,"calcLabelPosition");var gb=S((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),mx=S((e,t)=>{let r,n=t;for(const i of e){if(r){const o=gx(i,r);if(o===0)return r;if(o<n)n-=o;else{const s=n/o;if(s<=0)return r;if(s>=1)return{x:i.x,y:i.y};if(s>0&&s<1)return{x:gb((1-s)*r.x+s*i.x,5),y:gb((1-s)*r.y+s*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),lq=S((e,t,r)=>{ht.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const i=mx(t,25),o=e?10:5,s=Math.atan2(t[0].y-i.y,t[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(s)*o+(t[0].x+i.x)/2,l.y=-Math.cos(s)*o+(t[0].y+i.y)/2,l},"calcCardinalityPosition");function H_(e,t,r){const n=structuredClone(r);ht.info("our points",n),t!=="start_left"&&t!=="start_right"&&n.reverse();const i=25+e,o=mx(n,i),s=10+e*.5,l=Math.atan2(n[0].y-o.y,n[0].x-o.x),u={x:0,y:0};return t==="start_left"?(u.x=Math.sin(l+Math.PI)*s+(n[0].x+o.x)/2,u.y=-Math.cos(l+Math.PI)*s+(n[0].y+o.y)/2):t==="end_right"?(u.x=Math.sin(l-Math.PI)*s+(n[0].x+o.x)/2-5,u.y=-Math.cos(l-Math.PI)*s+(n[0].y+o.y)/2-5):t==="end_left"?(u.x=Math.sin(l)*s+(n[0].x+o.x)/2-5,u.y=-Math.cos(l)*s+(n[0].y+o.y)/2-5):(u.x=Math.sin(l)*s+(n[0].x+o.x)/2,u.y=-Math.cos(l)*s+(n[0].y+o.y)/2),u}S(H_,"calcTerminalLabelPosition");function U_(e){let t="",r="";for(const n of e)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":t=t+n+";");return{style:t,labelStyle:r}}S(U_,"getStylesFromArray");var mb=0,cq=S(()=>(mb++,"id-"+Math.random().toString(36).substr(2,12)+"-"+mb),"generateId");function V_(e){let t="";const r="0123456789abcdef",n=r.length;for(let i=0;i<e;i++)t+=r.charAt(Math.floor(Math.random()*n));return t}S(V_,"makeRandomHex");var uq=S(e=>V_(e.length),"random"),hq=S(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"),dq=S(function(e,t){const r=t.text.replace(fc.lineBreakRegex," "),[,n]=kd(t.fontSize),i=e.append("text");i.attr("x",t.x),i.attr("y",t.y),i.style("text-anchor",t.anchor),i.style("font-family",t.fontFamily),i.style("font-size",n),i.style("font-weight",t.fontWeight),i.attr("fill",t.fill),t.class!==void 0&&i.attr("class",t.class);const o=i.append("tspan");return o.attr("x",t.x+t.textMargin*2),o.attr("fill",t.fill),o.text(r),i},"drawSimpleText"),fq=yc((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),fc.lineBreakRegex.test(e)))return e;const n=e.split(" ").filter(Boolean),i=[];let o="";return n.forEach((s,l)=>{const u=Fi(`${s} `,r),h=Fi(o,r);if(u>t){const{hyphenatedStrings:m,remainingWord:g}=pq(s,t,"-",r);i.push(o,...m),o=g}else h+u>=t?(i.push(o),o=s):o=[o,s].filter(Boolean).join(" ");l+1===n.length&&i.push(o)}),i.filter(s=>s!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),pq=yc((e,t,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const i=[...e],o=[];let s="";return i.forEach((l,u)=>{const h=`${s}${l}`;if(Fi(h,n)>=t){const f=u+1,m=i.length===f,g=`${h}${r}`;o.push(m?h:g),s=""}else s=h}),{hyphenatedStrings:o,remainingWord:s}},(e,t,r="-",n)=>`${e}${t}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function Y_(e,t){return yx(e,t).height}S(Y_,"calculateTextHeight");function Fi(e,t){return yx(e,t).width}S(Fi,"calculateTextWidth");var yx=yc((e,t)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=t;if(!e)return{width:0,height:0};const[,o]=kd(r),s=["sans-serif",n],l=e.split(fc.lineBreakRegex),u=[],h=Zt("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const d=h.append("svg");for(const m of s){let g=0;const x={width:0,height:0,lineHeight:0};for(const C of l){const k=hq();k.text=C||eq;const v=dq(d,k).style("font-size",o).style("font-weight",i).style("font-family",m),w=(v._groups||v)[0][0].getBBox();if(w.width===0&&w.height===0)throw new Error("svg element not in render tree");x.width=Math.round(Math.max(x.width,w.width)),g=Math.round(w.height),x.height+=g,x.lineHeight=Math.round(Math.max(x.lineHeight,g))}u.push(x)}d.remove();const f=isNaN(u[1].height)||isNaN(u[1].width)||isNaN(u[1].lineHeight)||u[0].height>u[1].height&&u[0].width>u[1].width&&u[0].lineHeight>u[1].lineHeight?0:1;return u[f]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),ls,gq=(ls=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},S(ls,"InitIDGenerator"),ls),zu,mq=S(function(e){return zu=zu||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),zu.innerHTML=e,unescape(zu.textContent)},"entityDecode");function xx(e){return"str"in e}S(xx,"isDetailedError");var yq=S((e,t,r,n)=>{var o;if(!n)return;const i=(o=e.node())==null?void 0:o.getBBox();i&&e.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",t)},"insertTitle"),kd=S(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 Cx(e,t){return tq({},e,t)}S(Cx,"cleanAndMerge");var $n={assignWithDepth:rr,wrapLabel:fq,calculateTextHeight:Y_,calculateTextWidth:Fi,calculateTextDimensions:yx,cleanAndMerge:Cx,detectInit:iq,detectDirective:j_,isSubstringInArray:aq,interpolateToCurve:px,calcLabelPosition:W_,calcCardinalityPosition:lq,calcTerminalLabelPosition:H_,formatUrl:z_,getStylesFromArray:U_,generateId:cq,random:uq,runFunc:sq,entityDecode:mq,insertTitle:yq,isLabelCoordinateInPath:G_,parseFontSize:kd,InitIDGenerator:gq},xq=S(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 n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"fl°°"+n+"¶ß":"fl°"+n+"¶ß"}),t},"encodeEntities"),ta=S(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),UZ=S((e,t,{counter:r=0,prefix:n,suffix:i},o)=>o||`${n?`${n}_`:""}${e}_${t}_${r}${i?`_${i}`:""}`,"getEdgeId");function cr(e){return e??null}S(cr,"handleUndefinedAttr");function G_(e,t){const r=Math.round(e.x),n=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,o=>Math.round(parseFloat(o)).toString());return i.includes(r.toString())||i.includes(n.toString())}S(G_,"isLabelCoordinateInPath");var kx=S(({flowchart:e})=>{var i,o;const t=((i=e==null?void 0:e.subGraphTitleMargin)==null?void 0:i.top)??0,r=((o=e==null?void 0:e.subGraphTitleMargin)==null?void 0:o.bottom)??0,n=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:n}},"getSubGraphTitleMargins");async function X_(e,t){const r=e.getElementsByTagName("img");if(!r||r.length===0)return;const n=t.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...r].map(i=>new Promise(o=>{function s(){if(i.style.display="flex",i.style.flexDirection="column",n){const l=ue().fontSize?ue().fontSize:window.getComputedStyle(document.body).fontSize,u=5,[h=Dw.fontSize]=kd(l),d=h*u+"px";i.style.minWidth=d,i.style.maxWidth=d}else i.style.width="100%";o(i)}S(s,"setupImage"),setTimeout(()=>{i.complete&&s()}),i.addEventListener("error",s),i.addEventListener("load",s)})))}S(X_,"configureLabelImages");var Cq=S(e=>{const{handDrawnSeed:t}=ue();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),vs=S(e=>{const t=kq([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),kq=S(e=>{const t=new Map;return e.forEach(r=>{const[n,i]=r.split(":");t.set(n.trim(),i==null?void 0:i.trim())}),t},"styles2Map"),K_=S(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"),It=S(e=>{const{stylesArray:t}=vs(e),r=[],n=[],i=[],o=[];return t.forEach(s=>{const l=s[0];K_(l)?r.push(s.join(":")+" !important"):(n.push(s.join(":")+" !important"),l.includes("stroke")&&i.push(s.join(":")+" !important"),l==="fill"&&o.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:t,borderStyles:i,backgroundStyles:o}},"styles2String"),Ft=S((e,t)=>{var u;const{themeVariables:r,handDrawnSeed:n}=ue(),{nodeBorder:i,mainBkg:o}=r,{stylesMap:s}=vs(e);return Object.assign({roughness:.7,fill:s.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||i,seed:n,strokeWidth:((u=s.get("stroke-width"))==null?void 0:u.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:bq(s.get("stroke-dasharray"))},t)},"userNodeOverrides"),bq=S(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const i=isNaN(t[0])?0:t[0];return[i,i]}const r=isNaN(t[0])?0:t[0],n=isNaN(t[1])?0:t[1];return[r,n]},"getStrokeDashArray");const vq=Object.freeze({left:0,top:0,width:16,height:16}),Hh=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Q_=Object.freeze({...vq,...Hh}),wq=Object.freeze({...Q_,body:"",hidden:!1}),Sq=Object.freeze({width:null,height:null}),Tq=Object.freeze({...Sq,...Hh}),_q=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const l=i.pop(),u=i.pop(),h={provider:i.length>0?i[0]:n,prefix:u,name:l};return Up(h)?h:null}const o=i[0],s=o.split("-");if(s.length>1){const l={provider:n,prefix:s.shift(),name:s.join("-")};return Up(l)?l:null}if(r&&n===""){const l={provider:n,prefix:"",name:o};return Up(l,r)?l:null}return null},Up=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function Eq(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function yb(e,t){const r=Eq(e,t);for(const n in wq)n in Hh?n in e&&!(n in r)&&(r[n]=Hh[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function Lq(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function o(s){if(r[s])return i[s]=[];if(!(s in i)){i[s]=null;const l=n[s]&&n[s].parent,u=l&&o(l);u&&(i[s]=[l].concat(u))}return i[s]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(o),i}function xb(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function s(l){o=yb(n[l]||i[l],o)}return s(t),r.forEach(s),yb(e,o)}function Bq(e,t){if(e.icons[t])return xb(e,t,[]);const r=Lq(e,[t])[t];return r?xb(e,t,r):null}const Aq=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Fq=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Cb(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 n=e.split(Aq);if(n===null||!n.length)return e;const i=[];let o=n.shift(),s=Fq.test(o);for(;;){if(s){const l=parseFloat(o);isNaN(l)?i.push(o):i.push(Math.ceil(l*t*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");s=!s}}function Iq(e,t="defs"){let r="";const n=e.indexOf("<"+t);for(;n>=0;){const i=e.indexOf(">",n),o=e.indexOf("</"+t);if(i===-1||o===-1)break;const s=e.indexOf(">",o);if(s===-1)break;r+=e.slice(i+1,o).trim(),e=e.slice(0,n).trim()+e.slice(s+1)}return{defs:r,content:e}}function Mq(e,t){return e?"<defs>"+e+"</defs>"+t:t}function Oq(e,t,r){const n=Iq(e);return Mq(n.defs,t+n.content+r)}const Rq=e=>e==="unset"||e==="undefined"||e==="none";function Pq(e,t){const r={...Q_,...e},n={...Tq,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(C=>{const k=[],v=C.hFlip,w=C.vFlip;let _=C.rotate;v?w?_+=2:(k.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),k.push("scale(-1 1)"),i.top=i.left=0):w&&(k.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),k.push("scale(1 -1)"),i.top=i.left=0);let A;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:A=i.height/2+i.top,k.unshift("rotate(90 "+A.toString()+" "+A.toString()+")");break;case 2:k.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:A=i.width/2+i.left,k.unshift("rotate(-90 "+A.toString()+" "+A.toString()+")");break}_%2===1&&(i.left!==i.top&&(A=i.left,i.left=i.top,i.top=A),i.width!==i.height&&(A=i.width,i.width=i.height,i.height=A)),k.length&&(o=Oq(o,'<g transform="'+k.join(" ")+'">',"</g>"))});const s=n.width,l=n.height,u=i.width,h=i.height;let d,f;s===null?(f=l===null?"1em":l==="auto"?h:l,d=Cb(f,u/h)):(d=s==="auto"?u:s,f=l===null?Cb(d,h/u):l==="auto"?h:l);const m={},g=(C,k)=>{Rq(k)||(m[C]=k.toString())};g("width",d),g("height",f);const x=[i.left,i.top,u,h];return m.viewBox=x.join(" "),{attributes:m,viewBox:x,body:o}}const Nq=/\sid="(\S+)"/g,kb=new Map;function Dq(e){e=e.replace(/[0-9]+$/,"")||"a";const t=kb.get(e)||0;return kb.set(e,t+1),t?`${e}${t}`:e}function $q(e){const t=[];let r;for(;r=Nq.exec(e);)t.push(r[1]);if(!t.length)return e;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(i=>{const o=Dq(i),s=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+o+n+"$3")}),e=e.replace(new RegExp(n,"g"),""),e}function jq(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function bx(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var sa=bx();function Z_(e){sa=e}var Ul={exec:()=>null};function he(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(i,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(Pr.caret,"$1"),r=r.replace(i,s),n},getRegex:()=>new RegExp(r,t)};return n}var zq=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Pr={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")},qq=/^(?:[ \t]*(?:\n|$))+/,Wq=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Hq=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Cc=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Uq=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,vx=/(?:[*+-]|\d{1,9}[.)])/,J_=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,tE=he(J_).replace(/bull/g,vx).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(),Vq=he(J_).replace(/bull/g,vx).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(),wx=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Yq=/^[^\n]+/,Sx=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Gq=he(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Sx).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Xq=he(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,vx).getRegex(),bd="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",Tx=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Kq=he("^ {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",Tx).replace("tag",bd).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),eE=he(wx).replace("hr",Cc).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",bd).getRegex(),Qq=he(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",eE).getRegex(),_x={blockquote:Qq,code:Wq,def:Gq,fences:Hq,heading:Uq,hr:Cc,html:Kq,lheading:tE,list:Xq,newline:qq,paragraph:eE,table:Ul,text:Yq},bb=he("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Cc).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",bd).getRegex(),Zq={..._x,lheading:Vq,table:bb,paragraph:he(wx).replace("hr",Cc).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",bb).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",bd).getRegex()},Jq={..._x,html:he(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Tx).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:Ul,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:he(wx).replace("hr",Cc).replace("heading",` *#{1,6} *[^
|
|
315
|
+
]`).replace("lheading",tE).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},t7=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,e7=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,rE=/^( {2,}|\\)\n(?!\s*$)/,r7=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,vd=/[\p{P}\p{S}]/u,Ex=/[\s\p{P}\p{S}]/u,nE=/[^\s\p{P}\p{S}]/u,n7=he(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ex).getRegex(),iE=/(?!~)[\p{P}\p{S}]/u,i7=/(?!~)[\s\p{P}\p{S}]/u,o7=/(?:[^\s\p{P}\p{S}]|~)/u,a7=he(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",zq?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),oE=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,s7=he(oE,"u").replace(/punct/g,vd).getRegex(),l7=he(oE,"u").replace(/punct/g,iE).getRegex(),aE="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",c7=he(aE,"gu").replace(/notPunctSpace/g,nE).replace(/punctSpace/g,Ex).replace(/punct/g,vd).getRegex(),u7=he(aE,"gu").replace(/notPunctSpace/g,o7).replace(/punctSpace/g,i7).replace(/punct/g,iE).getRegex(),h7=he("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,nE).replace(/punctSpace/g,Ex).replace(/punct/g,vd).getRegex(),d7=he(/\\(punct)/,"gu").replace(/punct/g,vd).getRegex(),f7=he(/^<(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(),p7=he(Tx).replace("(?:-->|$)","-->").getRegex(),g7=he("^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",p7).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Uh=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,m7=he(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Uh).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),sE=he(/^!?\[(label)\]\[(ref)\]/).replace("label",Uh).replace("ref",Sx).getRegex(),lE=he(/^!?\[(ref)\](?:\[\])?/).replace("ref",Sx).getRegex(),y7=he("reflink|nolink(?!\\()","g").replace("reflink",sE).replace("nolink",lE).getRegex(),vb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Lx={_backpedal:Ul,anyPunctuation:d7,autolink:f7,blockSkip:a7,br:rE,code:e7,del:Ul,emStrongLDelim:s7,emStrongRDelimAst:c7,emStrongRDelimUnd:h7,escape:t7,link:m7,nolink:lE,punctuation:n7,reflink:sE,reflinkSearch:y7,tag:g7,text:r7,url:Ul},x7={...Lx,link:he(/^!?\[(label)\]\((.*?)\)/).replace("label",Uh).getRegex(),reflink:he(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Uh).getRegex()},Hm={...Lx,emStrongRDelimAst:u7,emStrongLDelim:l7,url:he(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",vb).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:he(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",vb).getRegex()},C7={...Hm,br:he(rE).replace("{2,}","*").getRegex(),text:he(Hm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},qu={normal:_x,gfm:Zq,pedantic:Jq},wl={normal:Lx,gfm:Hm,breaks:C7,pedantic:x7},k7={"&":"&","<":"<",">":">",'"':""","'":"'"},wb=e=>k7[e];function ei(e,t){if(t){if(Pr.escapeTest.test(e))return e.replace(Pr.escapeReplace,wb)}else if(Pr.escapeTestNoEncode.test(e))return e.replace(Pr.escapeReplaceNoEncode,wb);return e}function Sb(e){try{e=encodeURI(e).replace(Pr.percentDecode,"%")}catch{return null}return e}function Tb(e,t){var o;let r=e.replace(Pr.findPipe,(s,l,u)=>{let h=!1,d=l;for(;--d>=0&&u[d]==="\\";)h=!h;return h?"|":" |"}),n=r.split(Pr.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!((o=n.at(-1))!=null&&o.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(Pr.slashPipe,"|");return n}function Sl(e,t,r){let n=e.length;if(n===0)return"";let i=0;for(;i<n&&e.charAt(n-i-1)===t;)i++;return e.slice(0,n-i)}function b7(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function _b(e,t,r,n,i){let o=t.href,s=t.title||null,l=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:o,title:s,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,u}function v7(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
|
|
316
|
+
`).map(o=>{let s=o.match(r.other.beginningSpace);if(s===null)return o;let[l]=s;return l.length>=i.length?o.slice(i.length):o}).join(`
|
|
317
|
+
`)}var Vh=class{constructor(t){pe(this,"options");pe(this,"rules");pe(this,"lexer");this.options=t||sa}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Sl(n,`
|
|
318
|
+
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],i=v7(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let i=Sl(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Sl(r[0],`
|
|
319
|
+
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=Sl(r[0],`
|
|
320
|
+
`).split(`
|
|
321
|
+
`),i="",o="",s=[];for(;n.length>0;){let l=!1,u=[],h;for(h=0;h<n.length;h++)if(this.rules.other.blockquoteStart.test(n[h]))u.push(n[h]),l=!0;else if(!l)u.push(n[h]);else break;n=n.slice(h);let d=u.join(`
|
|
322
|
+
`),f=d.replace(this.rules.other.blockquoteSetextReplace,`
|
|
323
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
|
|
324
|
+
${d}`:d,o=o?`${o}
|
|
325
|
+
${f}`:f;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,s,!0),this.lexer.state.top=m,n.length===0)break;let g=s.at(-1);if((g==null?void 0:g.type)==="code")break;if((g==null?void 0:g.type)==="blockquote"){let x=g,C=x.raw+`
|
|
326
|
+
`+n.join(`
|
|
327
|
+
`),k=this.blockquote(C);s[s.length-1]=k,i=i.substring(0,i.length-x.raw.length)+k.raw,o=o.substring(0,o.length-x.text.length)+k.text;break}else if((g==null?void 0:g.type)==="list"){let x=g,C=x.raw+`
|
|
328
|
+
`+n.join(`
|
|
329
|
+
`),k=this.list(C);s[s.length-1]=k,i=i.substring(0,i.length-g.raw.length)+k.raw,o=o.substring(0,o.length-x.raw.length)+k.raw,n=C.substring(s.at(-1).raw.length).split(`
|
|
330
|
+
`);continue}}return{type:"blockquote",raw:i,tokens:s,text:o}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),i=n.length>1,o={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let s=this.rules.other.listItemRegex(n),l=!1;for(;t;){let h=!1,d="",f="";if(!(r=s.exec(t))||this.rules.block.hr.test(t))break;d=r[0],t=t.substring(d.length);let m=r[2].split(`
|
|
331
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,w=>" ".repeat(3*w.length)),g=t.split(`
|
|
332
|
+
`,1)[0],x=!m.trim(),C=0;if(this.options.pedantic?(C=2,f=m.trimStart()):x?C=r[1].length+1:(C=r[2].search(this.rules.other.nonSpaceChar),C=C>4?1:C,f=m.slice(C),C+=r[1].length),x&&this.rules.other.blankLine.test(g)&&(d+=g+`
|
|
333
|
+
`,t=t.substring(g.length+1),h=!0),!h){let w=this.rules.other.nextBulletRegex(C),_=this.rules.other.hrRegex(C),A=this.rules.other.fencesBeginRegex(C),F=this.rules.other.headingBeginRegex(C),E=this.rules.other.htmlBeginRegex(C);for(;t;){let B=t.split(`
|
|
334
|
+
`,1)[0],N;if(g=B,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),N=g):N=g.replace(this.rules.other.tabCharGlobal," "),A.test(g)||F.test(g)||E.test(g)||w.test(g)||_.test(g))break;if(N.search(this.rules.other.nonSpaceChar)>=C||!g.trim())f+=`
|
|
335
|
+
`+N.slice(C);else{if(x||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||A.test(m)||F.test(m)||_.test(m))break;f+=`
|
|
336
|
+
`+g}!x&&!g.trim()&&(x=!0),d+=B+`
|
|
337
|
+
`,t=t.substring(B.length+1),m=N.slice(C)}}o.loose||(l?o.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(l=!0));let k=null,v;this.options.gfm&&(k=this.rules.other.listIsTask.exec(f),k&&(v=k[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:d,task:!!k,checked:v,loose:!1,text:f,tokens:[]}),o.raw+=d}let u=o.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let h=0;h<o.items.length;h++)if(this.lexer.state.top=!1,o.items[h].tokens=this.lexer.blockTokens(o.items[h].text,[]),!o.loose){let d=o.items[h].tokens.filter(m=>m.type==="space"),f=d.length>0&&d.some(m=>this.rules.other.anyLine.test(m.raw));o.loose=f}if(o.loose)for(let h=0;h<o.items.length;h++)o.items[h].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 n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=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:n,raw:r[0],href:i,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 n=Tb(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(l=r[3])!=null&&l.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
338
|
+
`):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let u of i)this.rules.other.tableAlignRight.test(u)?s.align.push("right"):this.rules.other.tableAlignCenter.test(u)?s.align.push("center"):this.rules.other.tableAlignLeft.test(u)?s.align.push("left"):s.align.push(null);for(let u=0;u<n.length;u++)s.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:s.align[u]});for(let u of o)s.rows.push(Tb(u,s.header.length).map((h,d)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:s.align[d]})));return s}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
|
|
339
|
+
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let s=Sl(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=b7(r[2],"()");if(s===-2)return;if(s>-1){let l=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,l).trim(),r[3]=""}}let i=r[2],o="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(i);s&&(i=s[1],o=s[3])}else o=r[3]?r[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),_b(r,{href:i&&i.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 n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=r[i.toLowerCase()];if(!o){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return _b(n,o,n[0],this.lexer,this.rules)}}emStrong(t,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!n||this.rules.inline.punctuation.exec(n))){let o=[...i[0]].length-1,s,l,u=o,h=0,d=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,r=r.slice(-1*t.length+o);(i=d.exec(r))!=null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(l=[...s].length,i[3]||i[4]){u+=l;continue}else if((i[5]||i[6])&&o%3&&!((o+l)%3)){h+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+h);let f=[...i[0]][0].length,m=t.slice(0,o+i.index+f+l);if(Math.min(o,l)%2){let x=m.slice(1,-1);return{type:"em",raw:m,text:x,tokens:this.lexer.inlineTokens(x)}}let g=m.slice(2,-2);return{type:"strong",raw:m,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),o=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&o&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,i;return r[2]==="@"?(n=r[1],i="mailto:"+n):(n=r[1],i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n;let r;if(r=this.rules.inline.url.exec(t)){let i,o;if(r[2]==="@")i=r[0],o="mailto:"+i;else{let s;do s=r[0],r[0]=((n=this.rules.inline._backpedal.exec(r[0]))==null?void 0:n[0])??"";while(s!==r[0]);i=r[0],r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:i,href:o,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},Pn=class Um{constructor(t){pe(this,"tokens");pe(this,"options");pe(this,"state");pe(this,"tokenizer");pe(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||sa,this.options.tokenizer=this.options.tokenizer||new Vh,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:Pr,block:qu.normal,inline:wl.normal};this.options.pedantic?(r.block=qu.pedantic,r.inline=wl.pedantic):this.options.gfm&&(r.block=qu.gfm,this.options.breaks?r.inline=wl.breaks:r.inline=wl.gfm),this.tokenizer.rules=r}static get rules(){return{block:qu,inline:wl}}static lex(t,r){return new Um(r).lex(t)}static lexInline(t,r){return new Um(r).inlineTokens(t)}lex(t){t=t.replace(Pr.carriageReturn,`
|
|
340
|
+
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){var i,o,s;for(this.options.pedantic&&(t=t.replace(Pr.tabCharGlobal," ").replace(Pr.spaceLine,""));t;){let l;if((o=(i=this.options.extensions)==null?void 0:i.block)!=null&&o.some(h=>(l=h.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.space(t)){t=t.substring(l.raw.length);let h=r.at(-1);l.raw.length===1&&h!==void 0?h.raw+=`
|
|
341
|
+
`:r.push(l);continue}if(l=this.tokenizer.code(t)){t=t.substring(l.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
|
|
342
|
+
`)?"":`
|
|
343
|
+
`)+l.raw,h.text+=`
|
|
344
|
+
`+l.text,this.inlineQueue.at(-1).src=h.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 h=r.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
|
|
345
|
+
`)?"":`
|
|
346
|
+
`)+l.raw,h.text+=`
|
|
347
|
+
`+l.raw,this.inlineQueue.at(-1).src=h.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 u=t;if((s=this.options.extensions)!=null&&s.startBlock){let h=1/0,d=t.slice(1),f;this.options.extensions.startBlock.forEach(m=>{f=m.call({lexer:this},d),typeof f=="number"&&f>=0&&(h=Math.min(h,f))}),h<1/0&&h>=0&&(u=t.substring(0,h+1))}if(this.state.top&&(l=this.tokenizer.paragraph(u))){let h=r.at(-1);n&&(h==null?void 0:h.type)==="paragraph"?(h.raw+=(h.raw.endsWith(`
|
|
348
|
+
`)?"":`
|
|
349
|
+
`)+l.raw,h.text+=`
|
|
350
|
+
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(l),n=u.length!==t.length,t=t.substring(l.raw.length);continue}if(l=this.tokenizer.text(t)){t=t.substring(l.raw.length);let h=r.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
|
|
351
|
+
`)?"":`
|
|
352
|
+
`)+l.raw,h.text+=`
|
|
353
|
+
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):r.push(l);continue}if(t){let h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}else throw new Error(h)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var u,h,d,f,m;let n=t,i=null;if(this.tokens.links){let g=Object.keys(this.tokens.links);if(g.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)g.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)o=i[2]?i[2].length:0,n=n.slice(0,i.index+o)+"["+"a".repeat(i[0].length-o-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=((h=(u=this.options.hooks)==null?void 0:u.emStrongMask)==null?void 0:h.call({lexer:this},n))??n;let s=!1,l="";for(;t;){s||(l=""),s=!1;let g;if((f=(d=this.options.extensions)==null?void 0:d.inline)!=null&&f.some(C=>(g=C.call({lexer:this},t,r))?(t=t.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.escape(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.tag(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.link(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(g.raw.length);let C=r.at(-1);g.type==="text"&&(C==null?void 0:C.type)==="text"?(C.raw+=g.raw,C.text+=g.text):r.push(g);continue}if(g=this.tokenizer.emStrong(t,n,l)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.codespan(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.br(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.del(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.autolink(t)){t=t.substring(g.raw.length),r.push(g);continue}if(!this.state.inLink&&(g=this.tokenizer.url(t))){t=t.substring(g.raw.length),r.push(g);continue}let x=t;if((m=this.options.extensions)!=null&&m.startInline){let C=1/0,k=t.slice(1),v;this.options.extensions.startInline.forEach(w=>{v=w.call({lexer:this},k),typeof v=="number"&&v>=0&&(C=Math.min(C,v))}),C<1/0&&C>=0&&(x=t.substring(0,C+1))}if(g=this.tokenizer.inlineText(x)){t=t.substring(g.raw.length),g.raw.slice(-1)!=="_"&&(l=g.raw.slice(-1)),s=!0;let C=r.at(-1);(C==null?void 0:C.type)==="text"?(C.raw+=g.raw,C.text+=g.text):r.push(g);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}},Yh=class{constructor(t){pe(this,"options");pe(this,"parser");this.options=t||sa}space(t){return""}code({text:t,lang:r,escaped:n}){var s;let i=(s=(r||"").match(Pr.notSpaceStart))==null?void 0:s[0],o=t.replace(Pr.endingNewline,"")+`
|
|
354
|
+
`;return i?'<pre><code class="language-'+ei(i)+'">'+(n?o:ei(o,!0))+`</code></pre>
|
|
355
|
+
`:"<pre><code>"+(n?o:ei(o,!0))+`</code></pre>
|
|
356
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
357
|
+
${this.parser.parse(t)}</blockquote>
|
|
358
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
359
|
+
`}hr(t){return`<hr>
|
|
360
|
+
`}list(t){let r=t.ordered,n=t.start,i="";for(let l=0;l<t.items.length;l++){let u=t.items[l];i+=this.listitem(u)}let o=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+o+s+`>
|
|
361
|
+
`+i+"</"+o+`>
|
|
362
|
+
`}listitem(t){var n;let r="";if(t.task){let i=this.checkbox({checked:!!t.checked});t.loose?((n=t.tokens[0])==null?void 0:n.type)==="paragraph"?(t.tokens[0].text=i+" "+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=i+" "+ei(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
|
|
363
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
364
|
+
`}table(t){let r="",n="";for(let o=0;o<t.header.length;o++)n+=this.tablecell(t.header[o]);r+=this.tablerow({text:n});let i="";for(let o=0;o<t.rows.length;o++){let s=t.rows[o];n="";for(let l=0;l<s.length;l++)n+=this.tablecell(s[l]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
|
|
365
|
+
<thead>
|
|
366
|
+
`+r+`</thead>
|
|
367
|
+
`+i+`</table>
|
|
368
|
+
`}tablerow({text:t}){return`<tr>
|
|
369
|
+
${t}</tr>
|
|
370
|
+
`}tablecell(t){let r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`</${n}>
|
|
371
|
+
`}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>${ei(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:n}){let i=this.parser.parseInline(n),o=Sb(t);if(o===null)return i;t=o;let s='<a href="'+t+'"';return r&&(s+=' title="'+ei(r)+'"'),s+=">"+i+"</a>",s}image({href:t,title:r,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let o=Sb(t);if(o===null)return ei(n);t=o;let s=`<img src="${t}" alt="${n}"`;return r&&(s+=` title="${ei(r)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ei(t.text)}},Bx=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""}},Nn=class Vm{constructor(t){pe(this,"options");pe(this,"renderer");pe(this,"textRenderer");this.options=t||sa,this.options.renderer=this.options.renderer||new Yh,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Bx}static parse(t,r){return new Vm(r).parse(t)}static parseInline(t,r){return new Vm(r).parseInline(t)}parse(t,r=!0){var i,o;let n="";for(let s=0;s<t.length;s++){let l=t[s];if((o=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&o[l.type]){let h=l,d=this.options.extensions.renderers[h.type].call({parser:this},h);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(h.type)){n+=d||"";continue}}let u=l;switch(u.type){case"space":{n+=this.renderer.space(u);continue}case"hr":{n+=this.renderer.hr(u);continue}case"heading":{n+=this.renderer.heading(u);continue}case"code":{n+=this.renderer.code(u);continue}case"table":{n+=this.renderer.table(u);continue}case"blockquote":{n+=this.renderer.blockquote(u);continue}case"list":{n+=this.renderer.list(u);continue}case"html":{n+=this.renderer.html(u);continue}case"def":{n+=this.renderer.def(u);continue}case"paragraph":{n+=this.renderer.paragraph(u);continue}case"text":{let h=u,d=this.renderer.text(h);for(;s+1<t.length&&t[s+1].type==="text";)h=t[++s],d+=`
|
|
372
|
+
`+this.renderer.text(h);r?n+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d,escaped:!0}]}):n+=d;continue}default:{let h='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return n}parseInline(t,r=this.renderer){var i,o;let n="";for(let s=0;s<t.length;s++){let l=t[s];if((o=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&o[l.type]){let h=this.options.extensions.renderers[l.type].call({parser:this},l);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){n+=h||"";continue}}let u=l;switch(u.type){case"escape":{n+=r.text(u);break}case"html":{n+=r.html(u);break}case"link":{n+=r.link(u);break}case"image":{n+=r.image(u);break}case"strong":{n+=r.strong(u);break}case"em":{n+=r.em(u);break}case"codespan":{n+=r.codespan(u);break}case"br":{n+=r.br(u);break}case"del":{n+=r.del(u);break}case"text":{n+=r.text(u);break}default:{let h='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(h),"";throw new Error(h)}}}return n}},Ku,Ml=(Ku=class{constructor(t){pe(this,"options");pe(this,"block");this.options=t||sa}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Pn.lex:Pn.lexInline}provideParser(){return this.block?Nn.parse:Nn.parseInline}},pe(Ku,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),pe(Ku,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Ku),w7=class{constructor(...t){pe(this,"defaults",bx());pe(this,"options",this.setOptions);pe(this,"parse",this.parseMarkdown(!0));pe(this,"parseInline",this.parseMarkdown(!1));pe(this,"Parser",Nn);pe(this,"Renderer",Yh);pe(this,"TextRenderer",Bx);pe(this,"Lexer",Pn);pe(this,"Tokenizer",Vh);pe(this,"Hooks",Ml);this.use(...t)}walkTokens(t,r){var i,o;let n=[];for(let s of t)switch(n=n.concat(r.call(this,s)),s.type){case"table":{let l=s;for(let u of l.header)n=n.concat(this.walkTokens(u.tokens,r));for(let u of l.rows)for(let h of u)n=n.concat(this.walkTokens(h.tokens,r));break}case"list":{let l=s;n=n.concat(this.walkTokens(l.items,r));break}default:{let l=s;(o=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&o[l.type]?this.defaults.extensions.childTokens[l.type].forEach(u=>{let h=l[u].flat(1/0);n=n.concat(this.walkTokens(h,r))}):l.tokens&&(n=n.concat(this.walkTokens(l.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let s=r.renderers[o.name];s?r.renderers[o.name]=function(...l){let u=o.renderer.apply(this,l);return u===!1&&(u=s.apply(this,l)),u}: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 s=r[o.level];s?s.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)}),i.extensions=r),n.renderer){let o=this.defaults.renderer||new Yh(this.defaults);for(let s in n.renderer){if(!(s in o))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let l=s,u=n.renderer[l],h=o[l];o[l]=(...d)=>{let f=u.apply(o,d);return f===!1&&(f=h.apply(o,d)),f||""}}i.renderer=o}if(n.tokenizer){let o=this.defaults.tokenizer||new Vh(this.defaults);for(let s in n.tokenizer){if(!(s in o))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let l=s,u=n.tokenizer[l],h=o[l];o[l]=(...d)=>{let f=u.apply(o,d);return f===!1&&(f=h.apply(o,d)),f}}i.tokenizer=o}if(n.hooks){let o=this.defaults.hooks||new Ml;for(let s in n.hooks){if(!(s in o))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let l=s,u=n.hooks[l],h=o[l];Ml.passThroughHooks.has(s)?o[l]=d=>{if(this.defaults.async&&Ml.passThroughHooksRespectAsync.has(s))return(async()=>{let m=await u.call(o,d);return h.call(o,m)})();let f=u.call(o,d);return h.call(o,f)}:o[l]=(...d)=>{if(this.defaults.async)return(async()=>{let m=await u.apply(o,d);return m===!1&&(m=await h.apply(o,d)),m})();let f=u.apply(o,d);return f===!1&&(f=h.apply(o,d)),f}}i.hooks=o}if(n.walkTokens){let o=this.defaults.walkTokens,s=n.walkTokens;i.walkTokens=function(l){let u=[];return u.push(s.call(this,l)),o&&(u=u.concat(o.call(this,l))),u}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Pn.lex(t,r??this.defaults)}parser(t,r){return Nn.parse(t,r??this.defaults)}parseMarkdown(t){return(r,n)=>{let i={...n},o={...this.defaults,...i},s=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&i.async===!1)return s(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 s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(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,u=await(o.hooks?await o.hooks.provideLexer():t?Pn.lex:Pn.lexInline)(l,o),h=o.hooks?await o.hooks.processAllTokens(u):u;o.walkTokens&&await Promise.all(this.walkTokens(h,o.walkTokens));let d=await(o.hooks?await o.hooks.provideParser():t?Nn.parse:Nn.parseInline)(h,o);return o.hooks?await o.hooks.postprocess(d):d})().catch(s);try{o.hooks&&(r=o.hooks.preprocess(r));let l=(o.hooks?o.hooks.provideLexer():t?Pn.lex:Pn.lexInline)(r,o);o.hooks&&(l=o.hooks.processAllTokens(l)),o.walkTokens&&this.walkTokens(l,o.walkTokens);let u=(o.hooks?o.hooks.provideParser():t?Nn.parse:Nn.parseInline)(l,o);return o.hooks&&(u=o.hooks.postprocess(u)),u}catch(l){return s(l)}}}onError(t,r){return n=>{if(n.message+=`
|
|
373
|
+
Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+ei(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},ea=new w7;function de(e,t){return ea.parse(e,t)}de.options=de.setOptions=function(e){return ea.setOptions(e),de.defaults=ea.defaults,Z_(de.defaults),de};de.getDefaults=bx;de.defaults=sa;de.use=function(...e){return ea.use(...e),de.defaults=ea.defaults,Z_(de.defaults),de};de.walkTokens=function(e,t){return ea.walkTokens(e,t)};de.parseInline=ea.parseInline;de.Parser=Nn;de.parser=Nn.parse;de.Renderer=Yh;de.TextRenderer=Bx;de.Lexer=Pn;de.lexer=Pn.lex;de.Tokenizer=Vh;de.Hooks=Ml;de.parse=de;de.options;de.setOptions;de.use;de.walkTokens;de.parseInline;Nn.parse;Pn.lex;function cE(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(l,u){var h=u.match(/\n([\t ]+|(?!\s).)/g);return h?l.concat(h.map(function(d){var f,m;return(m=(f=d.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&m!==void 0?m:0})):l},[]);if(i.length){var o=new RegExp(`
|
|
374
|
+
[ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(l){return l.replace(o,`
|
|
375
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return t.forEach(function(l,u){var h=s.match(/(?:^|\n)( *)$/),d=h?h[1]:"",f=l;typeof l=="string"&&l.includes(`
|
|
376
|
+
`)&&(f=String(l).split(`
|
|
377
|
+
`).map(function(m,g){return g===0?m:""+d+m}).join(`
|
|
378
|
+
`)),s+=f+n[u+1]}),s}var S7={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},Ym=new Map,uE=new Map,T7=S(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(ht.debug("Registering icon pack:",t.name),"loader"in t)uE.set(t.name,t.loader);else if("icons"in t)Ym.set(t.name,t.icons);else throw ht.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),hE=S(async(e,t)=>{const r=_q(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const n=r.prefix||t;if(!n)throw new Error(`Icon name must contain a prefix: ${e}`);let i=Ym.get(n);if(!i){const s=uE.get(n);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{i={...await s(),prefix:n},Ym.set(n,i)}catch(l){throw ht.error(l),new Error(`Failed to load icon set: ${r.prefix}`)}}const o=Bq(i,r.name);if(!o)throw new Error(`Icon not found: ${e}`);return o},"getRegisteredIconData"),_7=S(async e=>{try{return await hE(e),!0}catch{return!1}},"isIconAvailable"),kc=S(async(e,t,r)=>{let n;try{n=await hE(e,t==null?void 0:t.fallbackPrefix)}catch(s){ht.error(s),n=S7}const i=Pq(n,t),o=jq($q(i.body),{...i.attributes,...r});return Wn(o,Re())},"getIconSVG");function dE(e,{markdownAutoWrap:t}){const n=e.replace(/<br\/>/g,`
|
|
379
|
+
`).replace(/\n{2,}/g,`
|
|
380
|
+
`);return cE(n)}S(dE,"preprocessMarkdown");function fE(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(t=>{var r;return((r=t.trim().match(/<[^>]+>|[^\s<>]+/g))==null?void 0:r.map(n=>({content:n,type:"normal"})))??[]})}S(fE,"nonMarkdownToLines");function pE(e,t={}){const r=dE(e,t),n=de.lexer(r),i=[[]];let o=0;function s(l,u="normal"){l.type==="text"?l.text.split(`
|
|
381
|
+
`).forEach((d,f)=>{f!==0&&(o++,i.push([])),d.split(" ").forEach(m=>{m=m.replace(/'/g,"'"),m&&i[o].push({content:m,type:u})})}):l.type==="strong"||l.type==="em"?l.tokens.forEach(h=>{s(h,l.type)}):l.type==="html"&&i[o].push({content:l.text,type:"normal"})}return S(s,"processNode"),n.forEach(l=>{var u;l.type==="paragraph"?(u=l.tokens)==null||u.forEach(h=>{s(h)}):l.type==="html"?i[o].push({content:l.text,type:"normal"}):i[o].push({content:l.raw,type:"normal"})}),i}S(pE,"markdownToLines");function gE(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}S(gE,"nonMarkdownToHTML");function mE(e,{markdownAutoWrap:t}={}){const r=de.lexer(e);function n(i){var o,s,l;return i.type==="text"?t===!1?i.text.replace(/\n */g,"<br/>").replace(/ /g," "):i.text.replace(/\n */g,"<br/>"):i.type==="strong"?`<strong>${(o=i.tokens)==null?void 0:o.map(n).join("")}</strong>`:i.type==="em"?`<em>${(s=i.tokens)==null?void 0:s.map(n).join("")}</em>`:i.type==="paragraph"?`<p>${(l=i.tokens)==null?void 0:l.map(n).join("")}</p>`:i.type==="space"?"":i.type==="html"?`${i.text}`:i.type==="escape"?i.text:(ht.warn(`Unsupported markdown: ${i.type}`),i.raw)}return S(n,"output"),r.map(n).join("")}S(mE,"markdownToHTML");function yE(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}S(yE,"splitTextToChars");function xE(e,t){const r=yE(t.content);return Ax(e,[],r,t.type)}S(xE,"splitWordToFitWidth");function Ax(e,t,r,n){if(r.length===0)return[{content:t.join(""),type:n},{content:"",type:n}];const[i,...o]=r,s=[...t,i];return e([{content:s.join(""),type:n}])?Ax(e,s,o,n):(t.length===0&&i&&(t.push(i),r.shift()),[{content:t.join(""),type:n},{content:r.join(""),type:n}])}S(Ax,"splitWordToFitWidthRecursion");function CE(e,t){if(e.some(({content:r})=>r.includes(`
|
|
382
|
+
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Gh(e,t)}S(CE,"splitLineToFitWidth");function Gh(e,t,r=[],n=[]){if(e.length===0)return n.length>0&&r.push(n),r.length>0?r:[];let i="";e[0].content===" "&&(i=" ",e.shift());const o=e.shift()??{content:" ",type:"normal"},s=[...n];if(i!==""&&s.push({content:i,type:"normal"}),s.push(o),t(s))return Gh(e,t,r,s);if(n.length>0)r.push(n),e.unshift(o);else if(o.content){const[l,u]=xE(t,o);r.push([l]),u.content&&e.unshift(u)}return Gh(e,t,r)}S(Gh,"splitLineToFitWidthRecursion");function Gm(e,t){t&&e.attr("style",t)}S(Gm,"applyStyle");var Eb=16384;async function kE(e,t,r,n,i=!1,o=Re()){const s=e.append("foreignObject");s.attr("width",`${Math.min(10*r,Eb)}px`),s.attr("height",`${Math.min(10*r,Eb)}px`);const l=s.append("xhtml:div"),u=Gl(t.label)?await Yw(t.label.replace(fc.lineBreakRegex,`
|
|
383
|
+
`),o):Wn(t.label,o),h=t.isNode?"nodeLabel":"edgeLabel",d=l.append("span");d.html(u),Gm(d,t.labelStyle),d.attr("class",`${h} ${n}`),Gm(l,t.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(l.style("max-width",r+"px"),l.style("text-align","center")),l.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&l.attr("class","labelBkg");let f=l.node().getBoundingClientRect();return f.width===r&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",r+"px"),f=l.node().getBoundingClientRect()),s.node()}S(kE,"addHtmlSpan");function wd(e,t,r,n=!1){const i=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return n&&i.attr("text-anchor","middle"),i}S(wd,"createTspan");function bE(e,t,r){const n=e.append("text"),i=wd(n,1,t);Sd(i,r);const o=i.node().getComputedTextLength();return n.remove(),o}S(bE,"computeWidthOfText");function E7(e,t,r){var s;const n=e.append("text"),i=wd(n,1,t);Sd(i,[{content:r,type:"normal"}]);const o=(s=i.node())==null?void 0:s.getBoundingClientRect();return o&&n.remove(),o}S(E7,"computeDimensionOfText");function vE(e,t,r,n=!1,i=!1){const s=t.append("g"),l=s.insert("rect").attr("class","background").attr("style","stroke: none"),u=s.append("text").attr("y","-10.1");i&&u.attr("text-anchor","middle");let h=0;for(const d of r){const f=S(g=>bE(s,1.1,g)<=e,"checkWidth"),m=f(d)?[d]:CE(d,f);for(const g of m){const x=wd(u,h,1.1,i);Sd(x,g),h++}}if(n){const d=u.node().getBBox(),f=2;return l.attr("x",d.x-f).attr("y",d.y-f).attr("width",d.width+2*f).attr("height",d.height+2*f),s.node()}else return u.node()}S(vE,"createFormattedText");function Xm(e){const t=/&(amp|lt|gt);/g;return e.replace(t,(r,n)=>{switch(n){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}S(Xm,"decodeHTMLEntities");function Sd(e,t){e.text(""),t.forEach((r,n)=>{const i=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");n===0?i.text(Xm(r.content)):i.text(" "+Xm(r.content))})}S(Sd,"updateTextContentAndStyles");async function wE(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(i,o,s)=>(r.push((async()=>{const l=`${o}:${s}`;return await _7(l)?await kc(l,void 0,{class:"label-icon"}):`<i class='${Wn(i,t).replace(":"," ")}'></i>`})()),i));const n=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>n.shift()??"")}S(wE,"replaceIconSubstring");var Ri=S(async(e,t="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:o=!0,markdown:s=!0,isNode:l=!0,width:u=200,addSvgBackground:h=!1}={},d)=>{if(ht.debug("XYZ createText",t,r,n,i,o,l,"addSvgBackground: ",h),o){const f=s?mE(t,d):gE(t),m=await wE(ta(f),d),g=t.replace(/\\\\/g,"\\"),x={isNode:l,label:Gl(t)?g:m,labelStyle:r.replace("fill:","color:")};return await kE(e,x,u,i,h,d)}else{const f=ta(t.replace(/<br\s*\/?>/g,"<br/>")),m=s?pE(f.replace("<br>","<br/>"),d):fE(f),g=vE(u,e,m,t?h:!1,!l);if(l){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const x=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Zt(g).attr("style",x)}else{const x=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Zt(g).select("rect").attr("style",x.replace(/background:/g,"fill:"));const C=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Zt(g).select("text").attr("style",C)}return n?Zt(g).selectAll("tspan.text-outer-tspan").classed("title-row",!0):Zt(g).selectAll("tspan.text-outer-tspan").classed("row",!0),g}},"createText");function Vp(e,t,r){if(e&&e.length){const[n,i]=t,o=Math.PI/180*r,s=Math.cos(o),l=Math.sin(o);for(const u of e){const[h,d]=u;u[0]=(h-n)*s-(d-i)*l+n,u[1]=(h-n)*l+(d-i)*s+i}}}function L7(e,t){return e[0]===t[0]&&e[1]===t[1]}function B7(e,t,r,n=1){const i=r,o=Math.max(t,.1),s=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,l=[0,0];if(i)for(const h of s)Vp(h,l,i);const u=(function(h,d,f){const m=[];for(const w of h){const _=[...w];L7(_[0],_[_.length-1])||_.push([_[0][0],_[0][1]]),_.length>2&&m.push(_)}const g=[];d=Math.max(d,.1);const x=[];for(const w of m)for(let _=0;_<w.length-1;_++){const A=w[_],F=w[_+1];if(A[1]!==F[1]){const E=Math.min(A[1],F[1]);x.push({ymin:E,ymax:Math.max(A[1],F[1]),x:E===A[1]?A[0]:F[0],islope:(F[0]-A[0])/(F[1]-A[1])})}}if(x.sort(((w,_)=>w.ymin<_.ymin?-1:w.ymin>_.ymin?1:w.x<_.x?-1:w.x>_.x?1:w.ymax===_.ymax?0:(w.ymax-_.ymax)/Math.abs(w.ymax-_.ymax))),!x.length)return g;let C=[],k=x[0].ymin,v=0;for(;C.length||x.length;){if(x.length){let w=-1;for(let _=0;_<x.length&&!(x[_].ymin>k);_++)w=_;x.splice(0,w+1).forEach((_=>{C.push({s:k,edge:_})}))}if(C=C.filter((w=>!(w.edge.ymax<=k))),C.sort(((w,_)=>w.edge.x===_.edge.x?0:(w.edge.x-_.edge.x)/Math.abs(w.edge.x-_.edge.x))),(f!==1||v%d==0)&&C.length>1)for(let w=0;w<C.length;w+=2){const _=w+1;if(_>=C.length)break;const A=C[w].edge,F=C[_].edge;g.push([[Math.round(A.x),k],[Math.round(F.x),k]])}k+=f,C.forEach((w=>{w.edge.x=w.edge.x+f*w.edge.islope})),v++}return g})(s,o,n);if(i){for(const h of s)Vp(h,l,-i);(function(h,d,f){const m=[];h.forEach((g=>m.push(...g))),Vp(m,d,f)})(u,l,-i)}return u}function bc(e,t){var r;const n=t.hachureAngle+90;let i=t.hachureGap;i<0&&(i=4*t.strokeWidth),i=Math.round(Math.max(i,.1));let o=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(o=i),B7(e,i,n,o||1)}class Fx{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const n=bc(t,r);return{type:"fillSketch",ops:this.renderLines(n,r)}}renderLines(t,r){const n=[];for(const i of t)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],r));return n}}function Td(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 A7 extends Fx{fillPolygons(t,r){let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);const i=bc(t,Object.assign({},r,{hachureGap:n})),o=Math.PI/180*r.hachureAngle,s=[],l=.5*n*Math.cos(o),u=.5*n*Math.sin(o);for(const[h,d]of i)Td([h,d])&&s.push([[h[0]-l,h[1]+u],[...d]],[[h[0]+l,h[1]-u],[...d]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}}class F7 extends Fx{fillPolygons(t,r){const n=this._fillPolygons(t,r),i=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),o=this._fillPolygons(t,i);return n.ops=n.ops.concat(o.ops),n}}class I7{constructor(t){this.helper=t}fillPolygons(t,r){const n=bc(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(n,r)}dotsOnLines(t,r){const n=[];let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let o=r.fillWeight;o<0&&(o=r.strokeWidth/2);const s=i/4;for(const l of t){const u=Td(l),h=u/i,d=Math.ceil(h)-1,f=u-d*i,m=(l[0][0]+l[1][0])/2-i/4,g=Math.min(l[0][1],l[1][1]);for(let x=0;x<d;x++){const C=g+f+x*i,k=m-s+2*Math.random()*s,v=C-s+2*Math.random()*s,w=this.helper.ellipse(k,v,o,o,r);n.push(...w.ops)}}return{type:"fillSketch",ops:n}}}let M7=class{constructor(t){this.helper=t}fillPolygons(t,r){const n=bc(t,r);return{type:"fillSketch",ops:this.dashedLine(n,r)}}dashedLine(t,r){const n=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,i=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,o=[];return t.forEach((s=>{const l=Td(s),u=Math.floor(l/(n+i)),h=(l+i-u*(n+i))/2;let d=s[0],f=s[1];d[0]>f[0]&&(d=s[1],f=s[0]);const m=Math.atan((f[1]-d[1])/(f[0]-d[0]));for(let g=0;g<u;g++){const x=g*(n+i),C=x+n,k=[d[0]+x*Math.cos(m)+h*Math.cos(m),d[1]+x*Math.sin(m)+h*Math.sin(m)],v=[d[0]+C*Math.cos(m)+h*Math.cos(m),d[1]+C*Math.sin(m)+h*Math.sin(m)];o.push(...this.helper.doubleLineOps(k[0],k[1],v[0],v[1],r))}})),o}};class O7{constructor(t){this.helper=t}fillPolygons(t,r){const n=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,i=r.zigzagOffset<0?n:r.zigzagOffset,o=bc(t,r=Object.assign({},r,{hachureGap:n+i}));return{type:"fillSketch",ops:this.zigzagLines(o,i,r)}}zigzagLines(t,r,n){const i=[];return t.forEach((o=>{const s=Td(o),l=Math.round(s/(2*r));let u=o[0],h=o[1];u[0]>h[0]&&(u=o[1],h=o[0]);const d=Math.atan((h[1]-u[1])/(h[0]-u[0]));for(let f=0;f<l;f++){const m=2*f*r,g=2*(f+1)*r,x=Math.sqrt(2*Math.pow(r,2)),C=[u[0]+m*Math.cos(d),u[1]+m*Math.sin(d)],k=[u[0]+g*Math.cos(d),u[1]+g*Math.sin(d)],v=[C[0]+x*Math.cos(d+Math.PI/4),C[1]+x*Math.sin(d+Math.PI/4)];i.push(...this.helper.doubleLineOps(C[0],C[1],v[0],v[1],n),...this.helper.doubleLineOps(v[0],v[1],k[0],k[1],n))}})),i}}const Gr={};class R7{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const P7=0,Yp=1,Lb=2,Wu={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 Gp(e,t){return e.type===t}function Ix(e){const t=[],r=(function(s){const l=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))l[l.length]={type:P7,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];l[l.length]={type:Yp,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return l[l.length]={type:Lb,text:""},l})(e);let n="BOD",i=0,o=r[i];for(;!Gp(o,Lb);){let s=0;const l=[];if(n==="BOD"){if(o.text!=="M"&&o.text!=="m")return Ix("M0,0"+e);i++,s=Wu[o.text],n=o.text}else Gp(o,Yp)?s=Wu[n]:(i++,s=Wu[o.text],n=o.text);if(!(i+s<r.length))throw new Error("Path data ended short");for(let u=i;u<i+s;u++){const h=r[u];if(!Gp(h,Yp))throw new Error("Param not a number: "+n+","+h.text);l[l.length]=+h.text}if(typeof Wu[n]!="number")throw new Error("Bad segment: "+n);{const u={key:n,data:l};t.push(u),i+=s,o=r[i],n==="M"&&(n="L"),n==="m"&&(n="l")}}return t}function SE(e){let t=0,r=0,n=0,i=0;const o=[];for(const{key:s,data:l}of e)switch(s){case"M":o.push({key:"M",data:[...l]}),[t,r]=l,[n,i]=l;break;case"m":t+=l[0],r+=l[1],o.push({key:"M",data:[t,r]}),n=t,i=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 u=l.map(((h,d)=>d%2?h+r:h+t));o.push({key:"C",data:u}),t=u[4],r=u[5];break}case"Q":o.push({key:"Q",data:[...l]}),t=l[2],r=l[3];break;case"q":{const u=l.map(((h,d)=>d%2?h+r:h+t));o.push({key:"Q",data:u}),t=u[2],r=u[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 u=l.map(((h,d)=>d%2?h+r:h+t));o.push({key:"S",data:u}),t=u[2],r=u[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=n,r=i}return o}function TE(e){const t=[];let r="",n=0,i=0,o=0,s=0,l=0,u=0;for(const{key:h,data:d}of e){switch(h){case"M":t.push({key:"M",data:[...d]}),[n,i]=d,[o,s]=d;break;case"C":t.push({key:"C",data:[...d]}),n=d[4],i=d[5],l=d[2],u=d[3];break;case"L":t.push({key:"L",data:[...d]}),[n,i]=d;break;case"H":n=d[0],t.push({key:"L",data:[n,i]});break;case"V":i=d[0],t.push({key:"L",data:[n,i]});break;case"S":{let f=0,m=0;r==="C"||r==="S"?(f=n+(n-l),m=i+(i-u)):(f=n,m=i),t.push({key:"C",data:[f,m,...d]}),l=d[0],u=d[1],n=d[2],i=d[3];break}case"T":{const[f,m]=d;let g=0,x=0;r==="Q"||r==="T"?(g=n+(n-l),x=i+(i-u)):(g=n,x=i);const C=n+2*(g-n)/3,k=i+2*(x-i)/3,v=f+2*(g-f)/3,w=m+2*(x-m)/3;t.push({key:"C",data:[C,k,v,w,f,m]}),l=g,u=x,n=f,i=m;break}case"Q":{const[f,m,g,x]=d,C=n+2*(f-n)/3,k=i+2*(m-i)/3,v=g+2*(f-g)/3,w=x+2*(m-x)/3;t.push({key:"C",data:[C,k,v,w,g,x]}),l=f,u=m,n=g,i=x;break}case"A":{const f=Math.abs(d[0]),m=Math.abs(d[1]),g=d[2],x=d[3],C=d[4],k=d[5],v=d[6];f===0||m===0?(t.push({key:"C",data:[n,i,k,v,k,v]}),n=k,i=v):(n!==k||i!==v)&&(_E(n,i,k,v,f,m,g,x,C).forEach((function(w){t.push({key:"C",data:w})})),n=k,i=v);break}case"Z":t.push({key:"Z",data:[]}),n=o,i=s}r=h}return t}function Tl(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function _E(e,t,r,n,i,o,s,l,u,h){const d=(f=s,Math.PI*f/180);var f;let m=[],g=0,x=0,C=0,k=0;if(h)[g,x,C,k]=h;else{[e,t]=Tl(e,t,-d),[r,n]=Tl(r,n,-d);const tt=(e-r)/2,U=(t-n)/2;let W=tt*tt/(i*i)+U*U/(o*o);W>1&&(W=Math.sqrt(W),i*=W,o*=W);const H=i*i,G=o*o,$=H*G-H*U*U-G*tt*tt,Z=H*U*U+G*tt*tt,R=(l===u?-1:1)*Math.sqrt(Math.abs($/Z));C=R*i*U/o+(e+r)/2,k=R*-o*tt/i+(t+n)/2,g=Math.asin(parseFloat(((t-k)/o).toFixed(9))),x=Math.asin(parseFloat(((n-k)/o).toFixed(9))),e<C&&(g=Math.PI-g),r<C&&(x=Math.PI-x),g<0&&(g=2*Math.PI+g),x<0&&(x=2*Math.PI+x),u&&g>x&&(g-=2*Math.PI),!u&&x>g&&(x-=2*Math.PI)}let v=x-g;if(Math.abs(v)>120*Math.PI/180){const tt=x,U=r,W=n;x=u&&x>g?g+120*Math.PI/180*1:g+120*Math.PI/180*-1,m=_E(r=C+i*Math.cos(x),n=k+o*Math.sin(x),U,W,i,o,s,0,u,[x,tt,C,k])}v=x-g;const w=Math.cos(g),_=Math.sin(g),A=Math.cos(x),F=Math.sin(x),E=Math.tan(v/4),B=4/3*i*E,N=4/3*o*E,q=[e,t],O=[e+B*_,t-N*w],D=[r+B*F,n-N*A],K=[r,n];if(O[0]=2*q[0]-O[0],O[1]=2*q[1]-O[1],h)return[O,D,K].concat(m);{m=[O,D,K].concat(m);const tt=[];for(let U=0;U<m.length;U+=3){const W=Tl(m[U][0],m[U][1],d),H=Tl(m[U+1][0],m[U+1][1],d),G=Tl(m[U+2][0],m[U+2][1],d);tt.push([W[0],W[1],H[0],H[1],G[0],G[1]])}return tt}}const N7={randOffset:function(e,t){return Ut(e,t)},randOffsetWithRange:function(e,t,r){return Xh(e,t,r)},ellipse:function(e,t,r,n,i){const o=LE(r,n,i);return Km(e,t,i,o).opset},doubleLineOps:function(e,t,r,n,i){return go(e,t,r,n,i,!0)}};function EE(e,t,r,n,i){return{type:"path",ops:go(e,t,r,n,i)}}function ch(e,t,r){const n=(e||[]).length;if(n>2){const i=[];for(let o=0;o<n-1;o++)i.push(...go(e[o][0],e[o][1],e[o+1][0],e[o+1][1],r));return t&&i.push(...go(e[n-1][0],e[n-1][1],e[0][0],e[0][1],r)),{type:"path",ops:i}}return n===2?EE(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function D7(e,t,r,n,i){return(function(o,s){return ch(o,!0,s)})([[e,t],[e+r,t],[e+r,t+n],[e,t+n]],i)}function Bb(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,n=Hu(r[0],1*(1+.2*t.roughness),t),i=t.disableMultiStroke?[]:Hu(r[0],1.5*(1+.22*t.roughness),Ib(t));for(let o=1;o<r.length;o++){const s=r[o];if(s.length){const l=Hu(s,1*(1+.2*t.roughness),t),u=t.disableMultiStroke?[]:Hu(s,1.5*(1+.22*t.roughness),Ib(t));for(const h of l)h.op!=="move"&&n.push(h);for(const h of u)h.op!=="move"&&i.push(h)}}return{type:"path",ops:n.concat(i)}}return{type:"path",ops:[]}}function LE(e,t,r){const n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),i=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),o=2*Math.PI/i;let s=Math.abs(e/2),l=Math.abs(t/2);const u=1-r.curveFitting;return s+=Ut(s*u,r),l+=Ut(l*u,r),{increment:o,rx:s,ry:l}}function Km(e,t,r,n){const[i,o]=Mb(n.increment,e,t,n.rx,n.ry,1,n.increment*Xh(.1,Xh(.4,1,r),r),r);let s=Kh(i,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[l]=Mb(n.increment,e,t,n.rx,n.ry,1.5,0,r),u=Kh(l,null,r);s=s.concat(u)}return{estimatedPoints:o,opset:{type:"path",ops:s}}}function Ab(e,t,r,n,i,o,s,l,u){const h=e,d=t;let f=Math.abs(r/2),m=Math.abs(n/2);f+=Ut(.01*f,u),m+=Ut(.01*m,u);let g=i,x=o;for(;g<0;)g+=2*Math.PI,x+=2*Math.PI;x-g>2*Math.PI&&(g=0,x=2*Math.PI);const C=2*Math.PI/u.curveStepCount,k=Math.min(C/2,(x-g)/2),v=Ob(k,h,d,f,m,g,x,1,u);if(!u.disableMultiStroke){const w=Ob(k,h,d,f,m,g,x,1.5,u);v.push(...w)}return s&&(l?v.push(...go(h,d,h+f*Math.cos(g),d+m*Math.sin(g),u),...go(h,d,h+f*Math.cos(x),d+m*Math.sin(x),u)):v.push({op:"lineTo",data:[h,d]},{op:"lineTo",data:[h+f*Math.cos(g),d+m*Math.sin(g)]})),{type:"path",ops:v}}function Fb(e,t){const r=TE(SE(Ix(e))),n=[];let i=[0,0],o=[0,0];for(const{key:s,data:l}of r)switch(s){case"M":o=[l[0],l[1]],i=[l[0],l[1]];break;case"L":n.push(...go(o[0],o[1],l[0],l[1],t)),o=[l[0],l[1]];break;case"C":{const[u,h,d,f,m,g]=l;n.push(...$7(u,h,d,f,m,g,o,t)),o=[m,g];break}case"Z":n.push(...go(o[0],o[1],i[0],i[1],t)),o=[i[0],i[1]]}return{type:"path",ops:n}}function Xp(e,t){const r=[];for(const n of e)if(n.length){const i=t.maxRandomnessOffset||0,o=n.length;if(o>2){r.push({op:"move",data:[n[0][0]+Ut(i,t),n[0][1]+Ut(i,t)]});for(let s=1;s<o;s++)r.push({op:"lineTo",data:[n[s][0]+Ut(i,t),n[s][1]+Ut(i,t)]})}}return{type:"fillPath",ops:r}}function Ra(e,t){return(function(r,n){let i=r.fillStyle||"hachure";if(!Gr[i])switch(i){case"zigzag":Gr[i]||(Gr[i]=new A7(n));break;case"cross-hatch":Gr[i]||(Gr[i]=new F7(n));break;case"dots":Gr[i]||(Gr[i]=new I7(n));break;case"dashed":Gr[i]||(Gr[i]=new M7(n));break;case"zigzag-line":Gr[i]||(Gr[i]=new O7(n));break;default:i="hachure",Gr[i]||(Gr[i]=new Fx(n))}return Gr[i]})(t,N7).fillPolygons(e,t)}function Ib(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function BE(e){return e.randomizer||(e.randomizer=new R7(e.seed||0)),e.randomizer.next()}function Xh(e,t,r,n=1){return r.roughness*n*(BE(r)*(t-e)+e)}function Ut(e,t,r=1){return Xh(-e,e,t,r)}function go(e,t,r,n,i,o=!1){const s=o?i.disableMultiStrokeFill:i.disableMultiStroke,l=Qm(e,t,r,n,i,!0,!1);if(s)return l;const u=Qm(e,t,r,n,i,!0,!0);return l.concat(u)}function Qm(e,t,r,n,i,o,s){const l=Math.pow(e-r,2)+Math.pow(t-n,2),u=Math.sqrt(l);let h=1;h=u<200?1:u>500?.4:-.0016668*u+1.233334;let d=i.maxRandomnessOffset||0;d*d*100>l&&(d=u/10);const f=d/2,m=.2+.2*BE(i);let g=i.bowing*i.maxRandomnessOffset*(n-t)/200,x=i.bowing*i.maxRandomnessOffset*(e-r)/200;g=Ut(g,i,h),x=Ut(x,i,h);const C=[],k=()=>Ut(f,i,h),v=()=>Ut(d,i,h),w=i.preserveVertices;return s?C.push({op:"move",data:[e+(w?0:k()),t+(w?0:k())]}):C.push({op:"move",data:[e+(w?0:Ut(d,i,h)),t+(w?0:Ut(d,i,h))]}),s?C.push({op:"bcurveTo",data:[g+e+(r-e)*m+k(),x+t+(n-t)*m+k(),g+e+2*(r-e)*m+k(),x+t+2*(n-t)*m+k(),r+(w?0:k()),n+(w?0:k())]}):C.push({op:"bcurveTo",data:[g+e+(r-e)*m+v(),x+t+(n-t)*m+v(),g+e+2*(r-e)*m+v(),x+t+2*(n-t)*m+v(),r+(w?0:v()),n+(w?0:v())]}),C}function Hu(e,t,r){if(!e.length)return[];const n=[];n.push([e[0][0]+Ut(t,r),e[0][1]+Ut(t,r)]),n.push([e[0][0]+Ut(t,r),e[0][1]+Ut(t,r)]);for(let i=1;i<e.length;i++)n.push([e[i][0]+Ut(t,r),e[i][1]+Ut(t,r)]),i===e.length-1&&n.push([e[i][0]+Ut(t,r),e[i][1]+Ut(t,r)]);return Kh(n,null,r)}function Kh(e,t,r){const n=e.length,i=[];if(n>3){const o=[],s=1-r.curveTightness;i.push({op:"move",data:[e[1][0],e[1][1]]});for(let l=1;l+2<n;l++){const u=e[l];o[0]=[u[0],u[1]],o[1]=[u[0]+(s*e[l+1][0]-s*e[l-1][0])/6,u[1]+(s*e[l+1][1]-s*e[l-1][1])/6],o[2]=[e[l+1][0]+(s*e[l][0]-s*e[l+2][0])/6,e[l+1][1]+(s*e[l][1]-s*e[l+2][1])/6],o[3]=[e[l+1][0],e[l+1][1]],i.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}}else n===3?(i.push({op:"move",data:[e[1][0],e[1][1]]}),i.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):n===2&&i.push(...Qm(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return i}function Mb(e,t,r,n,i,o,s,l){const u=[],h=[];if(l.roughness===0){e/=4,h.push([t+n*Math.cos(-e),r+i*Math.sin(-e)]);for(let d=0;d<=2*Math.PI;d+=e){const f=[t+n*Math.cos(d),r+i*Math.sin(d)];u.push(f),h.push(f)}h.push([t+n*Math.cos(0),r+i*Math.sin(0)]),h.push([t+n*Math.cos(e),r+i*Math.sin(e)])}else{const d=Ut(.5,l)-Math.PI/2;h.push([Ut(o,l)+t+.9*n*Math.cos(d-e),Ut(o,l)+r+.9*i*Math.sin(d-e)]);const f=2*Math.PI+d-.01;for(let m=d;m<f;m+=e){const g=[Ut(o,l)+t+n*Math.cos(m),Ut(o,l)+r+i*Math.sin(m)];u.push(g),h.push(g)}h.push([Ut(o,l)+t+n*Math.cos(d+2*Math.PI+.5*s),Ut(o,l)+r+i*Math.sin(d+2*Math.PI+.5*s)]),h.push([Ut(o,l)+t+.98*n*Math.cos(d+s),Ut(o,l)+r+.98*i*Math.sin(d+s)]),h.push([Ut(o,l)+t+.9*n*Math.cos(d+.5*s),Ut(o,l)+r+.9*i*Math.sin(d+.5*s)])}return[h,u]}function Ob(e,t,r,n,i,o,s,l,u){const h=o+Ut(.1,u),d=[];d.push([Ut(l,u)+t+.9*n*Math.cos(h-e),Ut(l,u)+r+.9*i*Math.sin(h-e)]);for(let f=h;f<=s;f+=e)d.push([Ut(l,u)+t+n*Math.cos(f),Ut(l,u)+r+i*Math.sin(f)]);return d.push([t+n*Math.cos(s),r+i*Math.sin(s)]),d.push([t+n*Math.cos(s),r+i*Math.sin(s)]),Kh(d,null,u)}function $7(e,t,r,n,i,o,s,l){const u=[],h=[l.maxRandomnessOffset||1,(l.maxRandomnessOffset||1)+.3];let d=[0,0];const f=l.disableMultiStroke?1:2,m=l.preserveVertices;for(let g=0;g<f;g++)g===0?u.push({op:"move",data:[s[0],s[1]]}):u.push({op:"move",data:[s[0]+(m?0:Ut(h[0],l)),s[1]+(m?0:Ut(h[0],l))]}),d=m?[i,o]:[i+Ut(h[g],l),o+Ut(h[g],l)],u.push({op:"bcurveTo",data:[e+Ut(h[g],l),t+Ut(h[g],l),r+Ut(h[g],l),n+Ut(h[g],l),d[0],d[1]]});return u}function _l(e){return[...e]}function Rb(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const n=[];if(r===3)n.push(_l(e[0]),_l(e[1]),_l(e[2]),_l(e[2]));else{const i=[];i.push(e[0],e[0]);for(let l=1;l<e.length;l++)i.push(e[l]),l===e.length-1&&i.push(e[l]);const o=[],s=1-t;n.push(_l(i[0]));for(let l=1;l+2<i.length;l++){const u=i[l];o[0]=[u[0],u[1]],o[1]=[u[0]+(s*i[l+1][0]-s*i[l-1][0])/6,u[1]+(s*i[l+1][1]-s*i[l-1][1])/6],o[2]=[i[l+1][0]+(s*i[l][0]-s*i[l+2][0])/6,i[l+1][1]+(s*i[l][1]-s*i[l+2][1])/6],o[3]=[i[l+1][0],i[l+1][1]],n.push(o[1],o[2],o[3])}}return n}function uh(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function j7(e,t,r){const n=uh(t,r);if(n===0)return uh(e,t);let i=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/n;return i=Math.max(0,Math.min(1,i)),uh(e,jo(t,r,i))}function jo(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function Zm(e,t,r,n){const i=n||[];if((function(l,u){const h=l[u+0],d=l[u+1],f=l[u+2],m=l[u+3];let g=3*d[0]-2*h[0]-m[0];g*=g;let x=3*d[1]-2*h[1]-m[1];x*=x;let C=3*f[0]-2*m[0]-h[0];C*=C;let k=3*f[1]-2*m[1]-h[1];return k*=k,g<C&&(g=C),x<k&&(x=k),g+x})(e,t)<r){const l=e[t+0];i.length?(o=i[i.length-1],s=l,Math.sqrt(uh(o,s))>1&&i.push(l)):i.push(l),i.push(e[t+3])}else{const u=e[t+0],h=e[t+1],d=e[t+2],f=e[t+3],m=jo(u,h,.5),g=jo(h,d,.5),x=jo(d,f,.5),C=jo(m,g,.5),k=jo(g,x,.5),v=jo(C,k,.5);Zm([u,m,C,v],0,r,i),Zm([v,k,x,f],0,r,i)}var o,s;return i}function z7(e,t){return Qh(e,0,e.length,t)}function Qh(e,t,r,n,i){const o=i||[],s=e[t],l=e[r-1];let u=0,h=1;for(let d=t+1;d<r-1;++d){const f=j7(e[d],s,l);f>u&&(u=f,h=d)}return Math.sqrt(u)>n?(Qh(e,t,h+1,n,o),Qh(e,h,r,n,o)):(o.length||o.push(s),o.push(l)),o}function Kp(e,t=.15,r){const n=[],i=(e.length-1)/3;for(let o=0;o<i;o++)Zm(e,3*o,t,n);return r&&r>0?Qh(n,0,n.length,r):n}const ln="none";class Zh{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,n){return{shape:t,sets:r||[],options:n||this.defaultOptions}}line(t,r,n,i,o){const s=this._o(o);return this._d("line",[EE(t,r,n,i,s)],s)}rectangle(t,r,n,i,o){const s=this._o(o),l=[],u=D7(t,r,n,i,s);if(s.fill){const h=[[t,r],[t+n,r],[t+n,r+i],[t,r+i]];s.fillStyle==="solid"?l.push(Xp([h],s)):l.push(Ra([h],s))}return s.stroke!==ln&&l.push(u),this._d("rectangle",l,s)}ellipse(t,r,n,i,o){const s=this._o(o),l=[],u=LE(n,i,s),h=Km(t,r,s,u);if(s.fill)if(s.fillStyle==="solid"){const d=Km(t,r,s,u).opset;d.type="fillPath",l.push(d)}else l.push(Ra([h.estimatedPoints],s));return s.stroke!==ln&&l.push(h.opset),this._d("ellipse",l,s)}circle(t,r,n,i){const o=this.ellipse(t,r,n,n,i);return o.shape="circle",o}linearPath(t,r){const n=this._o(r);return this._d("linearPath",[ch(t,!1,n)],n)}arc(t,r,n,i,o,s,l=!1,u){const h=this._o(u),d=[],f=Ab(t,r,n,i,o,s,l,!0,h);if(l&&h.fill)if(h.fillStyle==="solid"){const m=Object.assign({},h);m.disableMultiStroke=!0;const g=Ab(t,r,n,i,o,s,!0,!1,m);g.type="fillPath",d.push(g)}else d.push((function(m,g,x,C,k,v,w){const _=m,A=g;let F=Math.abs(x/2),E=Math.abs(C/2);F+=Ut(.01*F,w),E+=Ut(.01*E,w);let B=k,N=v;for(;B<0;)B+=2*Math.PI,N+=2*Math.PI;N-B>2*Math.PI&&(B=0,N=2*Math.PI);const q=(N-B)/w.curveStepCount,O=[];for(let D=B;D<=N;D+=q)O.push([_+F*Math.cos(D),A+E*Math.sin(D)]);return O.push([_+F*Math.cos(N),A+E*Math.sin(N)]),O.push([_,A]),Ra([O],w)})(t,r,n,i,o,s,h));return h.stroke!==ln&&d.push(f),this._d("arc",d,h)}curve(t,r){const n=this._o(r),i=[],o=Bb(t,n);if(n.fill&&n.fill!==ln)if(n.fillStyle==="solid"){const s=Bb(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],l=t;if(l.length){const u=typeof l[0][0]=="number"?[l]:l;for(const h of u)h.length<3?s.push(...h):h.length===3?s.push(...Kp(Rb([h[0],h[0],h[1],h[2]]),10,(1+n.roughness)/2)):s.push(...Kp(Rb(h),10,(1+n.roughness)/2))}s.length&&i.push(Ra([s],n))}return n.stroke!==ln&&i.push(o),this._d("curve",i,n)}polygon(t,r){const n=this._o(r),i=[],o=ch(t,!0,n);return n.fill&&(n.fillStyle==="solid"?i.push(Xp([t],n)):i.push(Ra([t],n))),n.stroke!==ln&&i.push(o),this._d("polygon",i,n)}path(t,r){const n=this._o(r),i=[];if(!t)return this._d("path",i,n);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=n.fill&&n.fill!=="transparent"&&n.fill!==ln,s=n.stroke!==ln,l=!!(n.simplification&&n.simplification<1),u=(function(d,f,m){const g=TE(SE(Ix(d))),x=[];let C=[],k=[0,0],v=[];const w=()=>{v.length>=4&&C.push(...Kp(v,f)),v=[]},_=()=>{w(),C.length&&(x.push(C),C=[])};for(const{key:F,data:E}of g)switch(F){case"M":_(),k=[E[0],E[1]],C.push(k);break;case"L":w(),C.push([E[0],E[1]]);break;case"C":if(!v.length){const B=C.length?C[C.length-1]:k;v.push([B[0],B[1]])}v.push([E[0],E[1]]),v.push([E[2],E[3]]),v.push([E[4],E[5]]);break;case"Z":w(),C.push([k[0],k[1]])}if(_(),!m)return x;const A=[];for(const F of x){const E=z7(F,m);E.length&&A.push(E)}return A})(t,1,l?4-4*(n.simplification||1):(1+n.roughness)/2),h=Fb(t,n);if(o)if(n.fillStyle==="solid")if(u.length===1){const d=Fb(t,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else i.push(Xp(u,n));else i.push(Ra(u,n));return s&&(l?u.forEach((d=>{i.push(ch(d,!1,n))})):i.push(h)),this._d("path",i,n)}opsToPath(t,r){let n="";for(const i of t.ops){const o=typeof r=="number"&&r>=0?i.data.map((s=>+s.toFixed(r))):i.data;switch(i.op){case"move":n+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":n+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":n+=`L${o[0]} ${o[1]} `}}return n.trim()}toPaths(t){const r=t.sets||[],n=t.options||this.defaultOptions,i=[];for(const o of r){let s=null;switch(o.type){case"path":s={d:this.opsToPath(o),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:ln};break;case"fillPath":s={d:this.opsToPath(o),stroke:ln,strokeWidth:0,fill:n.fill||ln};break;case"fillSketch":s=this.fillSketch(o,n)}s&&i.push(s)}return i}fillSketch(t,r){let n=r.fillWeight;return n<0&&(n=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||ln,strokeWidth:n,fill:ln}}_mergedShape(t){return t.filter(((r,n)=>n===0||r.op!=="move"))}}class q7{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new Zh(r)}draw(t){const r=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(const s of r)switch(s.type){case"path":i.save(),i.strokeStyle=n.stroke==="none"?"transparent":n.stroke,i.lineWidth=n.strokeWidth,n.strokeLineDash&&i.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(i.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(i,s,o),i.restore();break;case"fillPath":{i.save(),i.fillStyle=n.fill||"";const l=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,s,o,l),i.restore();break}case"fillSketch":this.fillSketch(i,s,n)}}fillSketch(t,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2),t.save(),n.fillLineDash&&t.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(t.lineDashOffset=n.fillLineDashOffset),t.strokeStyle=n.fill||"",t.lineWidth=i,this._drawToContext(t,r,n.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,n,i="nonzero"){t.beginPath();for(const o of r.ops){const s=typeof n=="number"&&n>=0?o.data.map((l=>+l.toFixed(n))):o.data;switch(o.op){case"move":t.moveTo(s[0],s[1]);break;case"bcurveTo":t.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":t.lineTo(s[0],s[1])}}r.type==="fillPath"?t.fill(i):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,n,i,o){const s=this.gen.line(t,r,n,i,o);return this.draw(s),s}rectangle(t,r,n,i,o){const s=this.gen.rectangle(t,r,n,i,o);return this.draw(s),s}ellipse(t,r,n,i,o){const s=this.gen.ellipse(t,r,n,i,o);return this.draw(s),s}circle(t,r,n,i){const o=this.gen.circle(t,r,n,i);return this.draw(o),o}linearPath(t,r){const n=this.gen.linearPath(t,r);return this.draw(n),n}polygon(t,r){const n=this.gen.polygon(t,r);return this.draw(n),n}arc(t,r,n,i,o,s,l=!1,u){const h=this.gen.arc(t,r,n,i,o,s,l,u);return this.draw(h),h}curve(t,r){const n=this.gen.curve(t,r);return this.draw(n),n}path(t,r){const n=this.gen.path(t,r);return this.draw(n),n}}const Uu="http://www.w3.org/2000/svg";class W7{constructor(t,r){this.svg=t,this.gen=new Zh(r)}draw(t){const r=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,o=i.createElementNS(Uu,"g"),s=t.options.fixedDecimalPlaceDigits;for(const l of r){let u=null;switch(l.type){case"path":u=i.createElementNS(Uu,"path"),u.setAttribute("d",this.opsToPath(l,s)),u.setAttribute("stroke",n.stroke),u.setAttribute("stroke-width",n.strokeWidth+""),u.setAttribute("fill","none"),n.strokeLineDash&&u.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&u.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":u=i.createElementNS(Uu,"path"),u.setAttribute("d",this.opsToPath(l,s)),u.setAttribute("stroke","none"),u.setAttribute("stroke-width","0"),u.setAttribute("fill",n.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||u.setAttribute("fill-rule","evenodd");break;case"fillSketch":u=this.fillSketch(i,l,n)}u&&o.appendChild(u)}return o}fillSketch(t,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);const o=t.createElementNS(Uu,"path");return o.setAttribute("d",this.opsToPath(r,n.fixedDecimalPlaceDigits)),o.setAttribute("stroke",n.fill||""),o.setAttribute("stroke-width",i+""),o.setAttribute("fill","none"),n.fillLineDash&&o.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,n,i,o){const s=this.gen.line(t,r,n,i,o);return this.draw(s)}rectangle(t,r,n,i,o){const s=this.gen.rectangle(t,r,n,i,o);return this.draw(s)}ellipse(t,r,n,i,o){const s=this.gen.ellipse(t,r,n,i,o);return this.draw(s)}circle(t,r,n,i){const o=this.gen.circle(t,r,n,i);return this.draw(o)}linearPath(t,r){const n=this.gen.linearPath(t,r);return this.draw(n)}polygon(t,r){const n=this.gen.polygon(t,r);return this.draw(n)}arc(t,r,n,i,o,s,l=!1,u){const h=this.gen.arc(t,r,n,i,o,s,l,u);return this.draw(h)}curve(t,r){const n=this.gen.curve(t,r);return this.draw(n)}path(t,r){const n=this.gen.path(t,r);return this.draw(n)}}var Bt={canvas:(e,t)=>new q7(e,t),svg:(e,t)=>new W7(e,t),generator:e=>new Zh(e),newSeed:()=>Zh.newSeed()},Ht=S(async(e,t,r)=>{var g,x;let n;const i=t.useHtmlLabels||Mi((g=ue())==null?void 0:g.htmlLabels);r?n=r:n="node default";const o=e.insert("g").attr("class",n).attr("id",t.domId||t.id),s=o.insert("g").attr("class","label").attr("style",cr(t.labelStyle));let l;t.label===void 0?l="":l=typeof t.label=="string"?t.label:t.label[0];const u=!!t.icon||!!t.img,h=t.labelType==="markdown",d=await Ri(s,Wn(ta(l),ue()),{useHtmlLabels:i,width:t.width||((x=ue().flowchart)==null?void 0:x.wrappingWidth),classes:h?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:u,markdown:h},ue());let f=d.getBBox();const m=((t==null?void 0:t.padding)??0)/2;if(i){const C=d.children[0],k=Zt(d);await X_(C,l),f=C.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height)}return i?s.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):s.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&s.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:o,bbox:f,halfPadding:m,label:s}},"labelHelper"),Qp=S(async(e,t,r)=>{var u,h;const n=r.useHtmlLabels??$r(ue()),i=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),o=await Ri(i,Wn(ta(t),ue()),{useHtmlLabels:n,width:r.width||((h=(u=ue())==null?void 0:u.flowchart)==null?void 0:h.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let s=o.getBBox();const l=r.padding/2;if($r(ue())){const d=o.children[0],f=Zt(o);s=d.getBoundingClientRect(),f.attr("width",s.width),f.attr("height",s.height)}return n?i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):i.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:e,bbox:s,halfPadding:l,label:i}},"insertLabel"),Mt=S((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),Wt=S((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function ae(e){const t=e.map((r,n)=>`${n===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}S(ae,"createPathFromPoints");function mo(e,t,r,n,i,o){const s=[],u=r-e,h=n-t,d=u/o,f=2*Math.PI/d,m=t+h/2;for(let g=0;g<=50;g++){const x=g/50,C=e+x*u,k=m+i*Math.sin(f*(C-e));s.push({x:C,y:k})}return s}S(mo,"generateFullSineWavePoints");function oc(e,t,r,n,i,o){const s=[],l=i*Math.PI/180,d=(o*Math.PI/180-l)/(n-1);for(let f=0;f<n;f++){const m=l+f*d,g=e+r*Math.cos(m),x=t+r*Math.sin(m);s.push({x:-g,y:-x})}return s}S(oc,"generateCirclePoints");function Jm(e){const t=Array.from(e.childNodes).filter(u=>u.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),n=t.map(u=>u.getAttribute("d")).filter(u=>u!==null).join(" ");r.setAttribute("d",n);const i=t.find(u=>u.getAttribute("fill")!=="none"),o=t.find(u=>u.getAttribute("stroke")!=="none"),s=S((u,h)=>(u==null?void 0:u.getAttribute(h))??void 0,"getAttr");if(i){const u={fill:s(i,"fill"),"fill-opacity":s(i,"fill-opacity")??"1"};Object.entries(u).forEach(([h,d])=>{d&&r.setAttribute(h,d)})}if(o){const u={stroke:s(o,"stroke"),"stroke-width":s(o,"stroke-width")??"1","stroke-opacity":s(o,"stroke-opacity")??"1"};Object.entries(u).forEach(([h,d])=>{d&&r.setAttribute(h,d)})}const l=document.createElementNS("http://www.w3.org/2000/svg","g");return l.appendChild(r),l}S(Jm,"mergePaths");var H7=S((e,t)=>{var r=e.x,n=e.y,i=t.x-r,o=t.y-n,s=e.width/2,l=e.height/2,u,h;return Math.abs(o)*s>Math.abs(i)*l?(o<0&&(l=-l),u=o===0?0:l*i/o,h=l):(i<0&&(s=-s),u=s,h=i===0?0:s*o/i),{x:r+u,y:n+h}},"intersectRect"),ws=H7,U7=S(async(e,t,r,n=!1,i=!1)=>{let o=t||"";typeof o=="object"&&(o=o[0]);const s=ue(),l=$r(s);return await Ri(e,o,{style:r,isTitle:n,useHtmlLabels:l,markdown:!1,isNode:i,width:Number.POSITIVE_INFINITY},s)},"createLabel"),so=U7,Co=S((e,t,r,n,i)=>["M",e+i,t,"H",e+r-i,"A",i,i,0,0,1,e+r,t+i,"V",t+n-i,"A",i,i,0,0,1,e+r-i,t+n,"H",e+i,"A",i,i,0,0,1,e,t+n-i,"V",t+i,"A",i,i,0,0,1,e+i,t,"Z"].join(" "),"createRoundedRectPathD"),AE=S(async(e,t)=>{ht.info("Creating subgraph rect for ",t.id,t);const r=ue(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:o,clusterBorder:s}=n,{labelStyles:l,nodeStyles:u,borderStyles:h,backgroundStyles:d}=It(t),f=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),m=$r(r),g=f.insert("g").attr("class","cluster-label ");let x;t.labelType==="markdown"?x=await Ri(g,t.label,{style:t.labelStyle,useHtmlLabels:m,isNode:!0,width:t.width}):x=await so(g,t.label,t.labelStyle||"",!1,!0);let C=x.getBBox();if($r(r)){const B=x.children[0],N=Zt(x);C=B.getBoundingClientRect(),N.attr("width",C.width),N.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 v=t.height,w=t.x-k/2,_=t.y-v/2;ht.trace("Data ",t,JSON.stringify(t));let A;if(t.look==="handDrawn"){const B=Bt.svg(f),N=Ft(t,{roughness:.7,fill:o,stroke:s,fillWeight:3,seed:i}),q=B.path(Co(w,_,k,v,0),N);A=f.insert(()=>(ht.debug("Rough node insert CXC",q),q),":first-child"),A.select("path:nth-child(2)").attr("style",h.join(";")),A.select("path").attr("style",d.join(";").replace("fill","stroke"))}else A=f.insert("rect",":first-child"),A.attr("style",u).attr("rx",t.rx).attr("ry",t.ry).attr("x",w).attr("y",_).attr("width",k).attr("height",v);const{subGraphTitleTopMargin:F}=kx(r);if(g.attr("transform",`translate(${t.x-C.width/2}, ${t.y-t.height/2+F})`),l){const B=g.select("span");B&&B.attr("style",l)}const E=A.node().getBBox();return t.offsetX=0,t.width=E.width,t.height=E.height,t.offsetY=C.height-t.padding/2,t.intersect=function(B){return ws(t,B)},{cluster:f,labelBBox:C}},"rect"),V7=S((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.domId),n=r.insert("rect",":first-child"),i=0*t.padding,o=i/2;n.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+i).attr("height",t.height+i).attr("fill","none");const s=n.node().getBBox();return t.width=s.width,t.height=s.height,t.intersect=function(l){return ws(t,l)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),Y7=S(async(e,t)=>{const r=ue(),{themeVariables:n,handDrawnSeed:i}=r,{altBackground:o,compositeBackground:s,compositeTitleBackground:l,nodeBorder:u}=n,h=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),d=h.insert("g",":first-child"),f=h.insert("g").attr("class","cluster-label");let m=h.append("rect");const g=await so(f,t.label,t.labelStyle,void 0,!0);let x=g.getBBox();if($r(r)){const q=g.children[0],O=Zt(g);x=q.getBoundingClientRect(),O.attr("width",x.width),O.attr("height",x.height)}const C=0*t.padding,k=C/2,v=(t.width<=x.width+t.padding?x.width+t.padding:t.width)+C;t.width<=x.width+t.padding?t.diff=(v-t.width)/2-t.padding:t.diff=-t.padding;const w=t.height+C,_=t.height+C-x.height-6,A=t.x-v/2,F=t.y-w/2;t.width=v;const E=t.y-t.height/2-k+x.height+2;let B;if(t.look==="handDrawn"){const q=t.cssClasses.includes("statediagram-cluster-alt"),O=Bt.svg(h),D=t.rx||t.ry?O.path(Co(A,F,v,w,10),{roughness:.7,fill:l,fillStyle:"solid",stroke:u,seed:i}):O.rectangle(A,F,v,w,{seed:i});B=h.insert(()=>D,":first-child");const K=O.rectangle(A,E,v,_,{fill:q?o:s,fillStyle:q?"hachure":"solid",stroke:u,seed:i});B=h.insert(()=>D,":first-child"),m=h.insert(()=>K)}else B=d.insert("rect",":first-child"),B.attr("class","outer").attr("x",A).attr("y",F).attr("width",v).attr("height",w).attr("data-look",t.look),m.attr("class","inner").attr("x",A).attr("y",E).attr("width",v).attr("height",_);f.attr("transform",`translate(${t.x-x.width/2}, ${F+1-($r(r)?0:3)})`);const N=B.node().getBBox();return t.height=N.height,t.offsetX=0,t.offsetY=x.height-t.padding/2,t.labelBBox=x,t.intersect=function(q){return ws(t,q)},{cluster:h,labelBBox:x}},"roundedWithTitle"),G7=S(async(e,t)=>{ht.info("Creating subgraph rect for ",t.id,t);const r=ue(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:o,clusterBorder:s}=n,{labelStyles:l,nodeStyles:u,borderStyles:h,backgroundStyles:d}=It(t),f=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),m=$r(r),g=f.insert("g").attr("class","cluster-label "),x=await Ri(g,t.label,{style:t.labelStyle,useHtmlLabels:m,isNode:!0,width:t.width});let C=x.getBBox();if($r(r)){const B=x.children[0],N=Zt(x);C=B.getBoundingClientRect(),N.attr("width",C.width),N.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 v=t.height,w=t.x-k/2,_=t.y-v/2;ht.trace("Data ",t,JSON.stringify(t));let A;if(t.look==="handDrawn"){const B=Bt.svg(f),N=Ft(t,{roughness:.7,fill:o,stroke:s,fillWeight:4,seed:i}),q=B.path(Co(w,_,k,v,t.rx),N);A=f.insert(()=>(ht.debug("Rough node insert CXC",q),q),":first-child"),A.select("path:nth-child(2)").attr("style",h.join(";")),A.select("path").attr("style",d.join(";").replace("fill","stroke"))}else A=f.insert("rect",":first-child"),A.attr("style",u).attr("rx",t.rx).attr("ry",t.ry).attr("x",w).attr("y",_).attr("width",k).attr("height",v);const{subGraphTitleTopMargin:F}=kx(r);if(g.attr("transform",`translate(${t.x-C.width/2}, ${t.y-t.height/2+F})`),l){const B=g.select("span");B&&B.attr("style",l)}const E=A.node().getBBox();return t.offsetX=0,t.width=E.width,t.height=E.height,t.offsetY=C.height-t.padding/2,t.intersect=function(B){return ws(t,B)},{cluster:f,labelBBox:C}},"kanbanSection"),X7=S((e,t)=>{const r=ue(),{themeVariables:n,handDrawnSeed:i}=r,{nodeBorder:o}=n,s=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),l=s.insert("g",":first-child"),u=0*t.padding,h=t.width+u;t.diff=-t.padding;const d=t.height+u,f=t.x-h/2,m=t.y-d/2;t.width=h;let g;if(t.look==="handDrawn"){const k=Bt.svg(s).rectangle(f,m,h,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:i});g=s.insert(()=>k,":first-child")}else{g=l.insert("rect",":first-child");let C="outer";t.look,C="divider",g.attr("class",C).attr("x",f).attr("y",m).attr("width",h).attr("height",d).attr("data-look",t.look)}const x=g.node().getBBox();return t.height=x.height,t.offsetX=0,t.offsetY=0,t.intersect=function(C){return ws(t,C)},{cluster:s,labelBBox:{}}},"divider"),K7=AE,Q7={rect:AE,squareRect:K7,roundedWithTitle:Y7,noteGroup:V7,divider:X7,kanbanSection:G7},FE=new Map,Z7=S(async(e,t)=>{const r=t.shape||"rect",n=await Q7[r](e,t);return FE.set(t.id,n),n},"insertCluster"),ZZ=S(()=>{FE=new Map},"clear");function IE(e,t){return e.intersect(t)}S(IE,"intersectNode");var J7=IE;function ME(e,t,r,n){var i=e.x,o=e.y,s=i-n.x,l=o-n.y,u=Math.sqrt(t*t*l*l+r*r*s*s),h=Math.abs(t*r*s/u);n.x<i&&(h=-h);var d=Math.abs(t*r*l/u);return n.y<o&&(d=-d),{x:i+h,y:o+d}}S(ME,"intersectEllipse");var OE=ME;function RE(e,t,r){return OE(e,t,t,r)}S(RE,"intersectCircle");var tW=RE;function PE(e,t,r,n){{const i=t.y-e.y,o=e.x-t.x,s=t.x*e.y-e.x*t.y,l=i*r.x+o*r.y+s,u=i*n.x+o*n.y+s,h=1e-6;if(l!==0&&u!==0&&ty(l,u))return;const d=n.y-r.y,f=r.x-n.x,m=n.x*r.y-r.x*n.y,g=d*e.x+f*e.y+m,x=d*t.x+f*t.y+m;if(Math.abs(g)<h&&Math.abs(x)<h&&ty(g,x))return;const C=i*f-d*o;if(C===0)return;const k=Math.abs(C/2);let v=o*m-f*s;const w=v<0?(v-k)/C:(v+k)/C;v=d*s-i*m;const _=v<0?(v-k)/C:(v+k)/C;return{x:w,y:_}}}S(PE,"intersectLine");function ty(e,t){return e*t>0}S(ty,"sameSign");var eW=PE;function NE(e,t,r){let n=e.x,i=e.y,o=[],s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){s=Math.min(s,d.x),l=Math.min(l,d.y)}):(s=Math.min(s,t.x),l=Math.min(l,t.y));let u=n-e.width/2-s,h=i-e.height/2-l;for(let d=0;d<t.length;d++){let f=t[d],m=t[d<t.length-1?d+1:0],g=eW(e,r,{x:u+f.x,y:h+f.y},{x:u+m.x,y:h+m.y});g&&o.push(g)}return o.length?(o.length>1&&o.sort(function(d,f){let m=d.x-r.x,g=d.y-r.y,x=Math.sqrt(m*m+g*g),C=f.x-r.x,k=f.y-r.y,v=Math.sqrt(C*C+k*k);return x<v?-1:x===v?0:1}),o[0]):e}S(NE,"intersectPolygon");var rW=NE,vt={node:J7,circle:tW,ellipse:OE,polygon:rW,rect:ws};function DE(e,t){const{labelStyles:r}=It(t);t.labelStyle=r;const n=Wt(t);let i=n;n||(i="anchor");const o=e.insert("g").attr("class",i).attr("id",t.domId||t.id),s=1,{cssStyles:l}=t,u=Bt.svg(o),h=Ft(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);const d=u.circle(0,0,s*2,h),f=o.insert(()=>d,":first-child");return f.attr("class","anchor").attr("style",cr(l)),Mt(t,f),t.intersect=function(m){return ht.info("Circle intersect",t,s,m),vt.circle(t,s,m)},o}S(DE,"anchor");function ey(e,t,r,n,i,o,s){const u=(e+r)/2,h=(t+n)/2,d=Math.atan2(n-t,r-e),f=(r-e)/2,m=(n-t)/2,g=f/i,x=m/o,C=Math.sqrt(g**2+x**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),v=u+k*o*Math.sin(d)*(s?-1:1),w=h-k*i*Math.cos(d)*(s?-1:1),_=Math.atan2((t-w)/o,(e-v)/i);let F=Math.atan2((n-w)/o,(r-v)/i)-_;s&&F<0&&(F+=2*Math.PI),!s&&F>0&&(F-=2*Math.PI);const E=[];for(let B=0;B<20;B++){const N=B/19,q=_+N*F,O=v+i*Math.cos(q),D=w+o*Math.sin(q);E.push({x:O,y:D})}return E}S(ey,"generateArcPoints");function $E(e,t,r){const[n,i]=[t,r].sort((o,s)=>s-o);return i*(1-Math.sqrt(1-(e/n/2)**2))}S($E,"calculateArcSagitta");async function jE(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?16:i,s=t.look==="neo"?12:i,l=S(q=>q+s,"calcTotalHeight"),u=S(q=>{const O=q/2;return[O/(2.5+q/50),O]},"calcEllipseRadius"),{shapeSvg:h,bbox:d}=await Ht(e,t,Wt(t)),f=l(t!=null&&t.height?t==null?void 0:t.height:d.height),[m,g]=u(f),x=$E(f,m,g),k=(t!=null&&t.width?t==null?void 0:t.width:d.width)+o*2+x-x,v=f,{cssStyles:w}=t,_=[{x:k/2,y:-v/2},{x:-k/2,y:-v/2},...ey(-k/2,-v/2,-k/2,v/2,m,g,!1),{x:k/2,y:v/2},...ey(k/2,v/2,k/2,-v/2,m,g,!0)],A=Bt.svg(h),F=Ft(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const E=ae(_),B=A.path(E,F),N=h.insert(()=>B,":first-child");return N.attr("class","basic label-container outer-path"),w&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",w),n&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",n),N.attr("transform",`translate(${m/2}, 0)`),Mt(t,N),t.intersect=function(q){return vt.polygon(t,_,q)},h}S(jE,"bowTieRect");function Pi(e,t,r,n){return e.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}S(Pi,"insertPolygonShape");var Vu=12;async function zE(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?28:i,s=t.look==="neo"?24:i,{shapeSvg:l,bbox:u}=await Ht(e,t,Wt(t)),h=((t==null?void 0:t.width)??u.width)+(t.look==="neo"?o*2:o+Vu),d=((t==null?void 0:t.height)??u.height)+(t.look==="neo"?s*2:s),f=0,m=h,g=-d,x=0,C=[{x:f+Vu,y:g},{x:m,y:g},{x:m,y:x},{x:f,y:x},{x:f,y:g+Vu},{x:f+Vu,y:g}];let k;const{cssStyles:v}=t;if(t.look==="handDrawn"){const w=Bt.svg(l),_=Ft(t,{}),A=ae(C),F=w.path(A,_);k=l.insert(()=>F,":first-child").attr("transform",`translate(${-h/2}, ${d/2})`),v&&k.attr("style",v)}else k=Pi(l,h,d,C);return n&&k.attr("style",n),Mt(t,k),t.intersect=function(w){return vt.polygon(t,C,w)},l}S(zE,"card");function qE(e,t){const{nodeStyles:r}=It(t);t.label="";const n=e.insert("g").attr("class",Wt(t)).attr("id",t.domId??t.id),{cssStyles:i}=t,o=Math.max(28,t.width??0),s=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}],l=Bt.svg(n),u=Ft(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const h=ae(s),d=l.path(h,u),f=n.insert(()=>d,":first-child");return i&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",i),r&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(m){return vt.polygon(t,s,m)},n}S(qE,"choice");async function Mx(e,t,r){const{labelStyles:n,nodeStyles:i}=It(t);t.labelStyle=n;const{shapeSvg:o,bbox:s,halfPadding:l}=await Ht(e,t,Wt(t)),u=16,h=(r==null?void 0:r.padding)??l,d=t.look==="neo"?s.width/2+u*2:s.width/2+h;let f;const{cssStyles:m}=t;if(t.look==="handDrawn"){const g=Bt.svg(o),x=Ft(t,{}),C=g.circle(0,0,d*2,x);f=o.insert(()=>C,":first-child"),f.attr("class","basic label-container").attr("style",cr(m))}else f=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",i).attr("r",d).attr("cx",0).attr("cy",0);return Mt(t,f),t.calcIntersect=function(g,x){const C=g.width/2;return vt.circle(g,C,x)},t.intersect=function(g){return ht.info("Circle intersect",t,d,g),vt.circle(t,d,g)},o}S(Mx,"circle");function WE(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=e*2,i={x:n/2*t,y:n/2*r},o={x:-(n/2)*t,y:n/2*r},s={x:-(n/2)*t,y:-(n/2)*r},l={x:n/2*t,y:-(n/2)*r};return`M ${o.x},${o.y} L ${l.x},${l.y}
|
|
384
|
+
M ${i.x},${i.y} L ${s.x},${s.y}`}S(WE,"createLine");function HE(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r,t.label="";const i=e.insert("g").attr("class",Wt(t)).attr("id",t.domId??t.id),o=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:s}=t,l=Bt.svg(i),u=Ft(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const h=l.circle(0,0,o*2,u),d=WE(o),f=l.path(d,u),m=i.insert(()=>h,":first-child");return m.insert(()=>f),m.attr("class","outer-path"),s&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",s),n&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",n),Mt(t,m),t.intersect=function(g){return ht.info("crossedCircle intersect",t,{radius:o,point:g}),vt.circle(t,o,g)},i}S(HE,"crossedCircle");function _i(e,t,r,n=100,i=0,o=180){const s=[],l=i*Math.PI/180,d=(o*Math.PI/180-l)/(n-1);for(let f=0;f<n;f++){const m=l+f*d,g=e+r*Math.cos(m),x=t+r*Math.sin(m);s.push({x:-g,y:-x})}return s}S(_i,"generateCirclePoints");async function UE(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:s}=await Ht(e,t,Wt(t)),l=t.look==="neo"?18:t.padding??0,u=t.look==="neo"?12:t.padding??0,h=o.width+l,d=o.height+u,f=Math.max(5,d*.1),{cssStyles:m}=t,g=[..._i(h/2,-d/2,f,30,-90,0),{x:-h/2-f,y:f},..._i(h/2+f*2,-f,f,20,-180,-270),..._i(h/2+f*2,f,f,20,-90,-180),{x:-h/2-f,y:-d/2},..._i(h/2,d/2,f,20,0,90)],x=[{x:h/2,y:-d/2-f},{x:-h/2,y:-d/2-f},..._i(h/2,-d/2,f,20,-90,0),{x:-h/2-f,y:-f},..._i(h/2+h*.1,-f,f,20,-180,-270),..._i(h/2+h*.1,f,f,20,-90,-180),{x:-h/2-f,y:d/2},..._i(h/2,d/2,f,20,0,90),{x:-h/2,y:d/2+f},{x:h/2,y:d/2+f}],C=Bt.svg(i),k=Ft(t,{fill:"none"});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const w=ae(g).replace("Z",""),_=C.path(w,k),A=ae(x),F=C.path(A,{...k}),E=i.insert("g",":first-child");return E.insert(()=>F,":first-child").attr("stroke-opacity",0),E.insert(()=>_,":first-child"),E.attr("class","text"),m&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",m),n&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",n),E.attr("transform",`translate(${f}, 0)`),s.attr("transform",`translate(${-h/2+f-(o.x-(o.left??0))},${-d/2+(t.padding??0)/2-(o.y-(o.top??0))})`),Mt(t,E),t.intersect=function(B){return vt.polygon(t,x,B)},i}S(UE,"curlyBraceLeft");function Ei(e,t,r,n=100,i=0,o=180){const s=[],l=i*Math.PI/180,d=(o*Math.PI/180-l)/(n-1);for(let f=0;f<n;f++){const m=l+f*d,g=e+r*Math.cos(m),x=t+r*Math.sin(m);s.push({x:g,y:x})}return s}S(Ei,"generateCirclePoints");async function VE(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:s}=await Ht(e,t,Wt(t)),l=t.look==="neo"?18:t.padding??0,u=t.look==="neo"?12:t.padding??0,h=o.width+(t.look==="neo"?l*2:l),d=o.height+(t.look==="neo"?u*2:u),f=Math.max(5,d*.1),{cssStyles:m}=t,g=[...Ei(h/2,-d/2,f,20,-90,0),{x:h/2+f,y:-f},...Ei(h/2+f*2,-f,f,20,-180,-270),...Ei(h/2+f*2,f,f,20,-90,-180),{x:h/2+f,y:d/2},...Ei(h/2,d/2,f,20,0,90)],x=[{x:-h/2,y:-d/2-f},{x:h/2,y:-d/2-f},...Ei(h/2,-d/2,f,20,-90,0),{x:h/2+f,y:-f},...Ei(h/2+f*2,-f,f,20,-180,-270),...Ei(h/2+f*2,f,f,20,-90,-180),{x:h/2+f,y:d/2},...Ei(h/2,d/2,f,20,0,90),{x:h/2,y:d/2+f},{x:-h/2,y:d/2+f}],C=Bt.svg(i),k=Ft(t,{fill:"none"});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const w=ae(g).replace("Z",""),_=C.path(w,k),A=ae(x),F=C.path(A,{...k}),E=i.insert("g",":first-child");return E.insert(()=>F,":first-child").attr("stroke-opacity",0),E.insert(()=>_,":first-child"),E.attr("class","text"),m&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",m),n&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",n),E.attr("transform",`translate(${-f}, 0)`),s.attr("transform",`translate(${-h/2+(t.padding??0)/2-(o.x-(o.left??0))},${-d/2+(t.padding??0)/2-(o.y-(o.top??0))})`),Mt(t,E),t.intersect=function(B){return vt.polygon(t,x,B)},i}S(VE,"curlyBraceRight");function fr(e,t,r,n=100,i=0,o=180){const s=[],l=i*Math.PI/180,d=(o*Math.PI/180-l)/(n-1);for(let f=0;f<n;f++){const m=l+f*d,g=e+r*Math.cos(m),x=t+r*Math.sin(m);s.push({x:-g,y:-x})}return s}S(fr,"generateCirclePoints");async function YE(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:s}=await Ht(e,t,Wt(t)),l=t.look==="neo"?18:t.padding??0,u=t.look==="neo"?12:t.padding??0,h=o.width+(t.look==="neo"?l*2:l),d=o.height+(t.look==="neo"?u*2:u),f=Math.max(5,d*.1),{cssStyles:m}=t,g=[...fr(h/2,-d/2,f,30,-90,0),{x:-h/2-f,y:f},...fr(h/2+f*2,-f,f,20,-180,-270),...fr(h/2+f*2,f,f,20,-90,-180),{x:-h/2-f,y:-d/2},...fr(h/2,d/2,f,20,0,90)],x=[...fr(-h/2+f+f/2,-d/2,f,20,-90,-180),{x:h/2-f/2,y:f},...fr(-h/2-f/2,-f,f,20,0,90),...fr(-h/2-f/2,f,f,20,-90,0),{x:h/2-f/2,y:-f},...fr(-h/2+f+f/2,d/2,f,30,-180,-270)],C=[{x:h/2,y:-d/2-f},{x:-h/2,y:-d/2-f},...fr(h/2,-d/2,f,20,-90,0),{x:-h/2-f,y:-f},...fr(h/2+f*2,-f,f,20,-180,-270),...fr(h/2+f*2,f,f,20,-90,-180),{x:-h/2-f,y:d/2},...fr(h/2,d/2,f,20,0,90),{x:-h/2,y:d/2+f},{x:h/2-f-f/2,y:d/2+f},...fr(-h/2+f+f/2,-d/2,f,20,-90,-180),{x:h/2-f/2,y:f},...fr(-h/2-f/2,-f,f,20,0,90),...fr(-h/2-f/2,f,f,20,-90,0),{x:h/2-f/2,y:-f},...fr(-h/2+f+f/2,d/2,f,30,-180,-270)],k=Bt.svg(i),v=Ft(t,{fill:"none"});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const _=ae(g).replace("Z",""),A=k.path(_,v),E=ae(x).replace("Z",""),B=k.path(E,v),N=ae(C),q=k.path(N,{...v}),O=i.insert("g",":first-child");return O.insert(()=>q,":first-child").attr("stroke-opacity",0),O.insert(()=>A,":first-child"),O.insert(()=>B,":first-child"),O.attr("class","text"),m&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",m),n&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",n),O.attr("transform",`translate(${f-f/4}, 0)`),s.attr("transform",`translate(${-h/2+(t.padding??0)/2-(o.x-(o.left??0))},${-d/2+(t.padding??0)/2-(o.y-(o.top??0))})`),Mt(t,O),t.intersect=function(D){return vt.polygon(t,C,D)},i}S(YE,"curlyBraces");async function GE(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?16:i,s=t.look==="neo"?12:i,l=20,u=5,{shapeSvg:h,bbox:d}=await Ht(e,t,Wt(t)),f=Math.max(l,(d.width+o*2)*1.25,(t==null?void 0:t.width)??0),m=Math.max(u,d.height+s*2,(t==null?void 0:t.height)??0),g=m/2,{cssStyles:x}=t,C=Bt.svg(h),k=Ft(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const v=f,w=m,_=v-g,A=w/4,F=[{x:_,y:0},{x:A,y:0},{x:0,y:w/2},{x:A,y:w},{x:_,y:w},...oc(-_,-w/2,g,50,270,90)],E=ae(F),B=C.path(E,k),N=h.insert(()=>B,":first-child");return N.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&N.selectChildren("path").attr("style",x),n&&t.look!=="handDrawn"&&N.selectChildren("path").attr("style",n),N.attr("transform",`translate(${-f/2}, ${-m/2})`),Mt(t,N),t.intersect=function(q){return vt.polygon(t,F,q)},h}S(GE,"curvedTrapezoid");var nW=S((e,t,r,n,i,o)=>[`M${e},${t+o}`,`a${i},${o} 0,0,0 ${r},0`,`a${i},${o} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${o} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),iW=S((e,t,r,n,i,o)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${i},${o} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${o} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),oW=S((e,t,r,n,i,o)=>[`M${e-r/2},${-n/2}`,`a${i},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Pb=8,Nb=8;async function XE(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?24:i,s=t.look==="neo"?24:i;if(t.width||t.height){const k=t.width??0;t.width=(t.width??0)-s,t.width<Nb&&(t.width=Nb);const w=k/2/(2.5+k/50);t.height=(t.height??0)-o-w*3,t.height<Pb&&(t.height=Pb)}const{shapeSvg:l,bbox:u,label:h}=await Ht(e,t,Wt(t)),d=(t.width?t.width:u.width)+s,f=d/2,m=f/(2.5+d/50),g=(t.height?t.height:u.height)+o+m;let x;const{cssStyles:C}=t;if(t.look==="handDrawn"){const k=Bt.svg(l),v=iW(0,0,d,g,f,m),w=oW(0,m,d,g,f,m),_=Ft(t,{}),A=k.path(v,_),F=k.path(w,Ft(t,{fill:"none"}));x=l.insert(()=>F,":first-child"),x=l.insert(()=>A,":first-child"),x.attr("class","basic label-container"),C&&x.attr("style",C)}else{const k=nW(0,0,d,g,f,m);x=l.insert("path",":first-child").attr("d",k).attr("class","basic label-container outer-path").attr("style",cr(C)).attr("style",n)}return x.attr("label-offset-y",m),x.attr("transform",`translate(${-d/2}, ${-(g/2+m)})`),Mt(t,x),h.attr("transform",`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+(t.padding??0)/1.5-(u.y-(u.top??0))})`),t.intersect=function(k){const v=vt.rect(t,k),w=v.x-(t.x??0);if(f!=0&&(Math.abs(w)<(t.width??0)/2||Math.abs(w)==(t.width??0)/2&&Math.abs(v.y-(t.y??0))>(t.height??0)/2-m)){let _=m*m*(1-w*w/(f*f));_>0&&(_=Math.sqrt(_)),_=m-_,k.y-(t.y??0)>0&&(_=-_),v.y+=_}return v},l}S(XE,"cylinder");async function KE(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?16:t.padding??0,{shapeSvg:s,bbox:l,label:u}=await Ht(e,t,Wt(t)),h=l.width+i,d=l.height+o,f=d*.2,m=-h/2,g=-d/2-f/2,{cssStyles:x}=t,C=Bt.svg(s),k=Ft(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const v=[{x:m,y:g+f},{x:-m,y:g+f},{x:-m,y:-g},{x:m,y:-g},{x:m,y:g},{x:-m,y:g},{x:-m,y:g+f}],w=C.polygon(v.map(A=>[A.x,A.y]),k),_=s.insert(()=>w,":first-child");return _.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",x),n&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",n),u.attr("transform",`translate(${m+(t.padding??0)/2-(l.x-(l.left??0))}, ${g+f+(t.padding??0)/2-(l.y-(l.top??0))})`),Mt(t,_),t.intersect=function(A){return vt.rect(t,A)},s}S(KE,"dividedRectangle");async function QE(e,t){var g,x;const{labelStyles:r,nodeStyles:n}=It(t),i=t.look==="neo"?12:5;t.labelStyle=r;const o=t.padding??0,s=t.look==="neo"?16:o,{shapeSvg:l,bbox:u}=await Ht(e,t,Wt(t)),h=(t!=null&&t.width?(t==null?void 0:t.width)/2:u.width/2)+(s??0),d=h-i;let f;const{cssStyles:m}=t;if(t.look==="handDrawn"){const C=Bt.svg(l),k=Ft(t,{roughness:.2,strokeWidth:2.5}),v=Ft(t,{roughness:.2,strokeWidth:1.5}),w=C.circle(0,0,h*2,k),_=C.circle(0,0,d*2,v);f=l.insert("g",":first-child"),f.attr("class",cr(t.cssClasses)).attr("style",cr(m)),(g=f.node())==null||g.appendChild(w),(x=f.node())==null||x.appendChild(_)}else{f=l.insert("g",":first-child");const C=f.insert("circle",":first-child"),k=f.insert("circle");f.attr("class","basic label-container").attr("style",n),C.attr("class","outer-circle").attr("style",n).attr("r",h).attr("cx",0).attr("cy",0),k.attr("class","inner-circle").attr("style",n).attr("r",d).attr("cx",0).attr("cy",0)}return Mt(t,f),t.intersect=function(C){return ht.info("DoubleCircle intersect",t,h,C),vt.circle(t,h,C)},l}S(QE,"doublecircle");function ZE(e,t,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=It(t);t.label="",t.labelStyle=n;const o=e.insert("g").attr("class",Wt(t)).attr("id",t.domId??t.id),s=7,{cssStyles:l}=t,u=Bt.svg(o),{nodeBorder:h}=r,d=Ft(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(d.roughness=0);const f=u.circle(0,0,s*2,d),m=o.insert(()=>f,":first-child");return m.selectAll("path").attr("style",`fill: ${h} !important;`),l&&l.length>0&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",l),i&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",i),Mt(t,m),t.intersect=function(g){return ht.info("filledCircle intersect",t,{radius:s,point:g}),vt.circle(t,s,g)},o}S(ZE,"filledCircle");var Db=10,$b=10;async function JE(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?i*2:i;(t.width||t.height)&&(t.height=(t==null?void 0:t.height)??0,t.height<Db&&(t.height=Db),t.width=((t==null?void 0:t.width)??0)-o-o/2,t.width<$b&&(t.width=$b));const{shapeSvg:s,bbox:l,label:u}=await Ht(e,t,Wt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:l.width)+(o??0),d=t!=null&&t.height?t==null?void 0:t.height:h+l.height,f=d,m=[{x:0,y:-d},{x:f,y:-d},{x:f/2,y:0}],{cssStyles:g}=t,x=Bt.svg(s),C=Ft(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=ae(m),v=x.path(k,C),w=s.insert(()=>v,":first-child").attr("transform",`translate(${-d/2}, ${d/2})`).attr("class","outer-path");return g&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",g),n&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",n),t.width=h,t.height=d,Mt(t,w),u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-d/2+(t.padding??0)/2+(l.y-(l.top??0))})`),t.intersect=function(_){return ht.info("Triangle intersect",t,m,_),vt.polygon(t,m,_)},s}S(JE,"flippedTriangle");function tL(e,t,{dir:r,config:{state:n,themeVariables:i}}){const{nodeStyles:o}=It(t);t.label="";const s=e.insert("g").attr("class",Wt(t)).attr("id",t.domId??t.id),{cssStyles:l}=t;let u=Math.max(70,(t==null?void 0:t.width)??0),h=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(u=Math.max(10,(t==null?void 0:t.width)??0),h=Math.max(70,(t==null?void 0:t.height)??0));const d=-1*u/2,f=-1*h/2,m=Bt.svg(s),g=Ft(t,{stroke:i.lineColor,fill:i.lineColor});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const x=m.rectangle(d,f,u,h,g),C=s.insert(()=>x,":first-child");l&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",l),o&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",o),Mt(t,C);const k=(n==null?void 0:n.padding)??0;return t.width&&t.height&&(t.width+=k/2||0,t.height+=k/2||0),t.intersect=function(v){return vt.rect(t,v)},s}S(tL,"forkJoin");async function eL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=15,o=10,s=t.look==="neo"?16:t.padding??0,l=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=((t==null?void 0:t.height)??0)-l*2,t.height<o&&(t.height=o),t.width=((t==null?void 0:t.width)??0)-s*2,t.width<i&&(t.width=i));const{shapeSvg:u,bbox:h}=await Ht(e,t,Wt(t)),d=(t!=null&&t.width?t==null?void 0:t.width:Math.max(i,h.width))+s*2,f=(t!=null&&t.height?t==null?void 0:t.height:Math.max(o,h.height))+l*2,m=f/2,{cssStyles:g}=t,x=Bt.svg(u),C=Ft(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:-d/2,y:-f/2},{x:d/2-m,y:-f/2},...oc(-d/2+m,0,m,50,90,270),{x:d/2-m,y:f/2},{x:-d/2,y:f/2}],v=ae(k),w=x.path(v,C),_=u.insert(()=>w,":first-child");return _.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",g),n&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",n),Mt(t,_),t.intersect=function(A){return ht.info("Pill intersect",t,{radius:m,point:A}),vt.polygon(t,k,A)},u}S(eL,"halfRoundedRectangle");var aW=S((e,t,r,n,i)=>[`M${e+i},${t}`,`L${e+r-i},${t}`,`L${e+r},${t-n/2}`,`L${e+r-i},${t-n}`,`L${e+i},${t-n}`,`L${e},${t-n/2}`,"Z"].join(" "),"createHexagonPathD");async function rL(e,t){const{labelStyles:r,nodeStyles:n}=It(t),i=t.look==="neo"?3.5:4;t.labelStyle=r;const o=t.padding??0,s=70,l=32,u=t.look==="neo"?s:o,h=t.look==="neo"?l:o;if(t.width||t.height){const _=(t.height??0)/i;t.width=((t==null?void 0:t.width)??0)-2*_-h,t.height=(t.height??0)-u}const{shapeSvg:d,bbox:f}=await Ht(e,t,Wt(t)),m=(t!=null&&t.height?t==null?void 0:t.height:f.height)+u,g=m/i,x=(t!=null&&t.width?t==null?void 0:t.width:f.width)+2*g+h,C=[{x:g,y:0},{x:x-g,y:0},{x,y:-m/2},{x:x-g,y:-m},{x:g,y:-m},{x:0,y:-m/2}];let k;const{cssStyles:v}=t;if(t.look==="handDrawn"){const w=Bt.svg(d),_=Ft(t,{}),A=aW(0,0,x,m,g),F=w.path(A,_);k=d.insert(()=>F,":first-child").attr("transform",`translate(${-x/2}, ${m/2})`),v&&k.attr("style",v)}else k=Pi(d,x,m,C);return n&&k.attr("style",n),t.width=x,t.height=m,Mt(t,k),t.intersect=function(w){return vt.polygon(t,C,w)},d}S(rL,"hexagon");async function nL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.label="",t.labelStyle=r;const{shapeSvg:i}=await Ht(e,t,Wt(t)),o=Math.max(30,(t==null?void 0:t.width)??0),s=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:l}=t,u=Bt.svg(i),h=Ft(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const d=[{x:0,y:0},{x:o,y:0},{x:0,y:s},{x:o,y:s}],f=ae(d),m=u.path(f,h),g=i.insert(()=>m,":first-child");return g.attr("class","basic label-container outer-path"),l&&t.look!=="handDrawn"&&g.selectChildren("path").attr("style",l),n&&t.look!=="handDrawn"&&g.selectChildren("path").attr("style",n),g.attr("transform",`translate(${-o/2}, ${-s/2})`),Mt(t,g),t.intersect=function(x){return ht.info("Pill intersect",t,{points:d}),vt.polygon(t,d,x)},i}S(nL,"hourglass");async function iL(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=It(t);t.labelStyle=i;const o=t.assetHeight??48,s=t.assetWidth??48,l=Math.max(o,s),u=n==null?void 0:n.wrappingWidth;t.width=Math.max(l,u??0);const{shapeSvg:h,bbox:d,label:f}=await Ht(e,t,"icon-shape default"),m=t.pos==="t",g=l,x=l,{nodeBorder:C}=r,{stylesMap:k}=vs(t),v=-x/2,w=-g/2,_=t.label?8:0,A=Bt.svg(h),F=Ft(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const E=A.rectangle(v,w,x,g,F),B=Math.max(x,d.width),N=g+d.height+_,q=A.rectangle(-B/2,-N/2,B,N,{...F,fill:"transparent",stroke:"none"}),O=h.insert(()=>E,":first-child"),D=h.insert(()=>q);if(t.icon){const K=h.append("g");K.html(`<g>${await kc(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const tt=K.node().getBBox(),U=tt.width,W=tt.height,H=tt.x,G=tt.y;K.attr("transform",`translate(${-U/2-H},${m?d.height/2+_/2-W/2-G:-d.height/2-_/2-W/2-G})`),K.attr("style",`color: ${k.get("stroke")??C};`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${m?-N/2:N/2-d.height})`),O.attr("transform",`translate(0,${m?d.height/2+_/2:-d.height/2-_/2})`),Mt(t,D),t.intersect=function(K){if(ht.info("iconSquare intersect",t,K),!t.label)return vt.rect(t,K);const tt=t.x??0,U=t.y??0,W=t.height??0;let H=[];return m?H=[{x:tt-d.width/2,y:U-W/2},{x:tt+d.width/2,y:U-W/2},{x:tt+d.width/2,y:U-W/2+d.height+_},{x:tt+x/2,y:U-W/2+d.height+_},{x:tt+x/2,y:U+W/2},{x:tt-x/2,y:U+W/2},{x:tt-x/2,y:U-W/2+d.height+_},{x:tt-d.width/2,y:U-W/2+d.height+_}]:H=[{x:tt-x/2,y:U-W/2},{x:tt+x/2,y:U-W/2},{x:tt+x/2,y:U-W/2+g},{x:tt+d.width/2,y:U-W/2+g},{x:tt+d.width/2/2,y:U+W/2},{x:tt-d.width/2,y:U+W/2},{x:tt-d.width/2,y:U-W/2+g},{x:tt-x/2,y:U-W/2+g}],vt.polygon(t,H,K)},h}S(iL,"icon");async function oL(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=It(t);t.labelStyle=i;const o=t.assetHeight??48,s=t.assetWidth??48,l=Math.max(o,s),u=n==null?void 0:n.wrappingWidth;t.width=Math.max(l,u??0);const{shapeSvg:h,bbox:d,label:f}=await Ht(e,t,"icon-shape default"),m=20,g=t.label?8:0,x=t.pos==="t",{nodeBorder:C,mainBkg:k}=r,{stylesMap:v}=vs(t),w=Bt.svg(h),_=Ft(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const A=v.get("fill");_.stroke=A??k;const F=h.append("g");t.icon&&F.html(`<g>${await kc(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const E=F.node().getBBox(),B=E.width,N=E.height,q=E.x,O=E.y,D=Math.max(B,N)*Math.SQRT2+m*2,K=w.circle(0,0,D,_),tt=Math.max(D,d.width),U=D+d.height+g,W=w.rectangle(-tt/2,-U/2,tt,U,{..._,fill:"transparent",stroke:"none"}),H=h.insert(()=>K,":first-child"),G=h.insert(()=>W);return F.attr("transform",`translate(${-B/2-q},${x?d.height/2+g/2-N/2-O:-d.height/2-g/2-N/2-O})`),F.attr("style",`color: ${v.get("stroke")??C};`),f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${x?-U/2:U/2-d.height})`),H.attr("transform",`translate(0,${x?d.height/2+g/2:-d.height/2-g/2})`),Mt(t,G),t.intersect=function($){return ht.info("iconSquare intersect",t,$),vt.rect(t,$)},h}S(oL,"iconCircle");async function aL(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=It(t);t.labelStyle=i;const o=t.assetHeight??48,s=t.assetWidth??48,l=Math.max(o,s),u=n==null?void 0:n.wrappingWidth;t.width=Math.max(l,u??0);const{shapeSvg:h,bbox:d,halfPadding:f,label:m}=await Ht(e,t,"icon-shape default"),g=t.pos==="t",x=l+f*2,C=l+f*2,{nodeBorder:k,mainBkg:v}=r,{stylesMap:w}=vs(t),_=-C/2,A=-x/2,F=t.label?8:0,E=Bt.svg(h),B=Ft(t,{});t.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");const N=w.get("fill");B.stroke=N??v;const q=E.path(Co(_,A,C,x,5),B),O=Math.max(C,d.width),D=x+d.height+F,K=E.rectangle(-O/2,-D/2,O,D,{...B,fill:"transparent",stroke:"none"}),tt=h.insert(()=>q,":first-child").attr("class","icon-shape2"),U=h.insert(()=>K);if(t.icon){const W=h.append("g");W.html(`<g>${await kc(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const H=W.node().getBBox(),G=H.width,$=H.height,Z=H.x,R=H.y;W.attr("transform",`translate(${-G/2-Z},${g?d.height/2+F/2-$/2-R:-d.height/2-F/2-$/2-R})`),W.attr("style",`color: ${w.get("stroke")??k};`)}return m.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${g?-D/2:D/2-d.height})`),tt.attr("transform",`translate(0,${g?d.height/2+F/2:-d.height/2-F/2})`),Mt(t,U),t.intersect=function(W){if(ht.info("iconSquare intersect",t,W),!t.label)return vt.rect(t,W);const H=t.x??0,G=t.y??0,$=t.height??0;let Z=[];return g?Z=[{x:H-d.width/2,y:G-$/2},{x:H+d.width/2,y:G-$/2},{x:H+d.width/2,y:G-$/2+d.height+F},{x:H+C/2,y:G-$/2+d.height+F},{x:H+C/2,y:G+$/2},{x:H-C/2,y:G+$/2},{x:H-C/2,y:G-$/2+d.height+F},{x:H-d.width/2,y:G-$/2+d.height+F}]:Z=[{x:H-C/2,y:G-$/2},{x:H+C/2,y:G-$/2},{x:H+C/2,y:G-$/2+x},{x:H+d.width/2,y:G-$/2+x},{x:H+d.width/2/2,y:G+$/2},{x:H-d.width/2,y:G+$/2},{x:H-d.width/2,y:G-$/2+x},{x:H-C/2,y:G-$/2+x}],vt.polygon(t,Z,W)},h}S(aL,"iconRounded");async function sL(e,t,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=It(t);t.labelStyle=i;const o=t.assetHeight??48,s=t.assetWidth??48,l=Math.max(o,s),u=n==null?void 0:n.wrappingWidth;t.width=Math.max(l,u??0);const{shapeSvg:h,bbox:d,halfPadding:f,label:m}=await Ht(e,t,"icon-shape default"),g=t.pos==="t",x=l+f*2,C=l+f*2,{nodeBorder:k,mainBkg:v}=r,{stylesMap:w}=vs(t),_=-C/2,A=-x/2,F=t.label?8:0,E=Bt.svg(h),B=Ft(t,{});t.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");const N=w.get("fill");B.stroke=N??v;const q=E.path(Co(_,A,C,x,.1),B),O=Math.max(C,d.width),D=x+d.height+F,K=E.rectangle(-O/2,-D/2,O,D,{...B,fill:"transparent",stroke:"none"}),tt=h.insert(()=>q,":first-child"),U=h.insert(()=>K);if(t.icon){const W=h.append("g");W.html(`<g>${await kc(t.icon,{height:l,width:l,fallbackPrefix:""})}</g>`);const H=W.node().getBBox(),G=H.width,$=H.height,Z=H.x,R=H.y;W.attr("transform",`translate(${-G/2-Z},${g?d.height/2+F/2-$/2-R:-d.height/2-F/2-$/2-R})`),W.attr("style",`color: ${w.get("stroke")??k};`)}return m.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${g?-D/2:D/2-d.height})`),tt.attr("transform",`translate(0,${g?d.height/2+F/2:-d.height/2-F/2})`),Mt(t,U),t.intersect=function(W){if(ht.info("iconSquare intersect",t,W),!t.label)return vt.rect(t,W);const H=t.x??0,G=t.y??0,$=t.height??0;let Z=[];return g?Z=[{x:H-d.width/2,y:G-$/2},{x:H+d.width/2,y:G-$/2},{x:H+d.width/2,y:G-$/2+d.height+F},{x:H+C/2,y:G-$/2+d.height+F},{x:H+C/2,y:G+$/2},{x:H-C/2,y:G+$/2},{x:H-C/2,y:G-$/2+d.height+F},{x:H-d.width/2,y:G-$/2+d.height+F}]:Z=[{x:H-C/2,y:G-$/2},{x:H+C/2,y:G-$/2},{x:H+C/2,y:G-$/2+x},{x:H+d.width/2,y:G-$/2+x},{x:H+d.width/2/2,y:G+$/2},{x:H-d.width/2,y:G+$/2},{x:H-d.width/2,y:G-$/2+x},{x:H-C/2,y:G-$/2+x}],vt.polygon(t,Z,W)},h}S(sL,"iconSquare");async function lL(e,t,{config:{flowchart:r}}){const n=new Image;n.src=(t==null?void 0:t.img)??"",await n.decode();const i=Number(n.naturalWidth.toString().replace("px","")),o=Number(n.naturalHeight.toString().replace("px",""));t.imageAspectRatio=i/o;const{labelStyles:s}=It(t);t.labelStyle=s;const l=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const u=Math.max(t.label?l??0:0,(t==null?void 0:t.assetWidth)??i),h=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:u,d=t.constraint==="on"?h/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??o;t.width=Math.max(h,l??0);const{shapeSvg:f,bbox:m,label:g}=await Ht(e,t,"image-shape default"),x=t.pos==="t",C=-h/2,k=-d/2,v=t.label?8:0,w=Bt.svg(f),_=Ft(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const A=w.rectangle(C,k,h,d,_),F=Math.max(h,m.width),E=d+m.height+v,B=w.rectangle(-F/2,-E/2,F,E,{..._,fill:"none",stroke:"none"}),N=f.insert(()=>A,":first-child"),q=f.insert(()=>B);if(t.img){const O=f.append("image");O.attr("href",t.img),O.attr("width",h),O.attr("height",d),O.attr("preserveAspectRatio","none"),O.attr("transform",`translate(${-h/2},${x?E/2-d:-E/2})`)}return g.attr("transform",`translate(${-m.width/2-(m.x-(m.left??0))},${x?-d/2-m.height/2-v/2:d/2-m.height/2+v/2})`),N.attr("transform",`translate(0,${x?m.height/2+v/2:-m.height/2-v/2})`),Mt(t,q),t.intersect=function(O){if(ht.info("iconSquare intersect",t,O),!t.label)return vt.rect(t,O);const D=t.x??0,K=t.y??0,tt=t.height??0;let U=[];return x?U=[{x:D-m.width/2,y:K-tt/2},{x:D+m.width/2,y:K-tt/2},{x:D+m.width/2,y:K-tt/2+m.height+v},{x:D+h/2,y:K-tt/2+m.height+v},{x:D+h/2,y:K+tt/2},{x:D-h/2,y:K+tt/2},{x:D-h/2,y:K-tt/2+m.height+v},{x:D-m.width/2,y:K-tt/2+m.height+v}]:U=[{x:D-h/2,y:K-tt/2},{x:D+h/2,y:K-tt/2},{x:D+h/2,y:K-tt/2+d},{x:D+m.width/2,y:K-tt/2+d},{x:D+m.width/2/2,y:K+tt/2},{x:D-m.width/2,y:K+tt/2},{x:D-m.width/2,y:K-tt/2+d},{x:D-h/2,y:K-tt/2+d}],vt.polygon(t,U,O)},f}S(lL,"imageSquare");async function cL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=i,s=t.look==="neo"?i*2:i,{shapeSvg:l,bbox:u}=await Ht(e,t,Wt(t)),h=Math.max(u.width+(s??0)*2,(t==null?void 0:t.width)??0),d=Math.max(u.height+(o??0)*2,(t==null?void 0:t.height)??0),f=[{x:0,y:0},{x:h,y:0},{x:h+3*d/6,y:-d},{x:-3*d/6,y:-d}];let m;const{cssStyles:g}=t;if(t.look==="handDrawn"){const x=Bt.svg(l),C=Ft(t,{}),k=ae(f),v=x.path(k,C);m=l.insert(()=>v,":first-child").attr("transform",`translate(${-h/2}, ${d/2})`),g&&m.attr("style",g)}else m=Pi(l,h,d,f);return n&&m.attr("style",n),t.width=h,t.height=d,Mt(t,m),t.intersect=function(x){return vt.polygon(t,f,x)},l}S(cL,"inv_trapezoid");async function vc(e,t,r){const{labelStyles:n,nodeStyles:i}=It(t);t.labelStyle=n;const{shapeSvg:o,bbox:s}=await Ht(e,t,Wt(t)),l=Math.max(s.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),u=Math.max(s.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),h=-l/2,d=-u/2;let f,{rx:m,ry:g}=t;const{cssStyles:x}=t;if(r!=null&&r.rx&&r.ry&&(m=r.rx,g=r.ry),t.look==="handDrawn"){const C=Bt.svg(o),k=Ft(t,{}),v=m||g?C.path(Co(h,d,l,u,m||0),k):C.rectangle(h,d,l,u,k);f=o.insert(()=>v,":first-child"),f.attr("class","basic label-container").attr("style",cr(x))}else f=o.insert("rect",":first-child"),f.attr("class","basic label-container").attr("style",i).attr("rx",cr(m)).attr("ry",cr(g)).attr("x",h).attr("y",d).attr("width",l).attr("height",u);return Mt(t,f),t.calcIntersect=function(C,k){return vt.rect(C,k)},t.intersect=function(C){return vt.rect(t,C)},o}S(vc,"drawRect");async function uL(e,t){const{shapeSvg:r,bbox:n,label:i}=await Ht(e,t,"label"),o=r.insert("rect",":first-child");return o.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),i.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),Mt(t,o),t.intersect=function(u){return vt.rect(t,u)},r}S(uL,"labelRect");async function hL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=i,s=t.look==="neo"?i*2:i,{shapeSvg:l,bbox:u}=await Ht(e,t,Wt(t)),h=((t==null?void 0:t.height)??u.height)+o,d=((t==null?void 0:t.width)??u.width)+s,f=[{x:0,y:0},{x:d+3*h/6,y:0},{x:d,y:-h},{x:-(3*h)/6,y:-h}];let m;const{cssStyles:g}=t;if(t.look==="handDrawn"){const x=Bt.svg(l),C=Ft(t,{}),k=ae(f),v=x.path(k,C);m=l.insert(()=>v,":first-child").attr("transform",`translate(${-d/2}, ${h/2})`),g&&m.attr("style",g)}else m=Pi(l,d,h,f);return n&&m.attr("style",n),t.width=d,t.height=h,Mt(t,m),t.intersect=function(x){return vt.polygon(t,f,x)},l}S(hL,"lean_left");async function dL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=i,s=t.look==="neo"?i*2:i,{shapeSvg:l,bbox:u}=await Ht(e,t,Wt(t)),h=((t==null?void 0:t.height)??u.height)+o,d=((t==null?void 0:t.width)??u.width)+s,f=[{x:-3*h/6,y:0},{x:d,y:0},{x:d+3*h/6,y:-h},{x:0,y:-h}];let m;const{cssStyles:g}=t;if(t.look==="handDrawn"){const x=Bt.svg(l),C=Ft(t,{}),k=ae(f),v=x.path(k,C);m=l.insert(()=>v,":first-child").attr("transform",`translate(${-d/2}, ${h/2})`),g&&m.attr("style",g)}else m=Pi(l,d,h,f);return n&&m.attr("style",n),t.width=d,t.height=h,Mt(t,m),t.intersect=function(x){return vt.polygon(t,f,x)},l}S(dL,"lean_right");function fL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.label="",t.labelStyle=r;const i=e.insert("g").attr("class",Wt(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,s=Math.max(35,(t==null?void 0:t.width)??0),l=Math.max(35,(t==null?void 0:t.height)??0),u=7,h=[{x:s,y:0},{x:0,y:l+u/2},{x:s-2*u,y:l+u/2},{x:0,y:2*l},{x:s,y:l-u/2},{x:2*u,y:l-u/2}],d=Bt.svg(i),f=Ft(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const m=ae(h),g=d.path(m,f),x=i.insert(()=>g,":first-child");return x.attr("class","outer-path"),o&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",o),n&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",n),x.attr("transform",`translate(-${s/2},${-l})`),Mt(t,x),t.intersect=function(C){return ht.info("lightningBolt intersect",t,C),vt.polygon(t,h,C)},i}S(fL,"lightningBolt");var sW=S((e,t,r,n,i,o,s)=>[`M${e},${t+o}`,`a${i},${o} 0,0,0 ${r},0`,`a${i},${o} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${o} 0,0,0 ${r},0`,`l0,${-n}`,`M${e},${t+o+s}`,`a${i},${o} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),lW=S((e,t,r,n,i,o,s)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${i},${o} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${o} 0,0,0 ${r},0`,`l0,${-n}`,`M${e},${t+o+s}`,`a${i},${o} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),cW=S((e,t,r,n,i,o)=>[`M${e-r/2},${-n/2}`,`a${i},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),jb=10,zb=10;async function pL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?16:i,s=t.look==="neo"?24:i;if(t.width||t.height){const v=t.width??0;t.width=(t.width??0)-o,t.width<zb&&(t.width=zb);const _=v/2/(2.5+v/50);t.height=(t.height??0)-s-_*3,t.height<jb&&(t.height=jb)}const{shapeSvg:l,bbox:u,label:h}=await Ht(e,t,Wt(t)),d=(t!=null&&t.width?t==null?void 0:t.width:u.width)+o*2,f=d/2,m=f/(2.5+d/50),g=(t!=null&&t.height?t==null?void 0:t.height:u.height)+m+s*2,x=g*.1;let C;const{cssStyles:k}=t;if(t.look==="handDrawn"){const v=Bt.svg(l),w=lW(0,0,d,g,f,m,x),_=cW(0,m,d,g,f,m),A=Ft(t,{}),F=v.path(w,A),E=v.path(_,A);l.insert(()=>E,":first-child").attr("class","line"),C=l.insert(()=>F,":first-child"),C.attr("class","basic label-container"),k&&C.attr("style",k)}else{const v=sW(0,0,d,g,f,m,x);C=l.insert("path",":first-child").attr("d",v).attr("class","basic label-container outer-path").attr("style",cr(k)).attr("style",n)}return C.attr("label-offset-y",m),C.attr("transform",`translate(${-d/2}, ${-(g/2+m)})`),Mt(t,C),h.attr("transform",`translate(${-(u.width/2)-(u.x-(u.left??0))}, ${-(u.height/2)+m-(u.y-(u.top??0))})`),t.intersect=function(v){const w=vt.rect(t,v),_=w.x-(t.x??0);if(f!=0&&(Math.abs(_)<(t.width??0)/2||Math.abs(_)==(t.width??0)/2&&Math.abs(w.y-(t.y??0))>(t.height??0)/2-m)){let A=m*m*(1-_*_/(f*f));A>0&&(A=Math.sqrt(A)),A=m-A,v.y-(t.y??0)>0&&(A=-A),w.y+=A}return w},l}S(pL,"linedCylinder");async function gL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?16:i,s=t.look==="neo"?12:i;if(t.width||t.height){const A=t.width;t.width=(A??0)*10/11-o*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-s*2,t.height<10&&(t.height=10)}const{shapeSvg:l,bbox:u,label:h}=await Ht(e,t,Wt(t)),d=(t!=null&&t.width?t==null?void 0:t.width:u.width)+(o??0)*2,f=(t!=null&&t.height?t==null?void 0:t.height:u.height)+(s??0)*2,m=t.look==="neo"?f/4:f/8,g=f+m,{cssStyles:x}=t,C=Bt.svg(l),k=Ft(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const v=[{x:-d/2-d/2*.1,y:-g/2},{x:-d/2-d/2*.1,y:g/2},...mo(-d/2-d/2*.1,g/2,d/2+d/2*.1,g/2,m,.8),{x:d/2+d/2*.1,y:-g/2},{x:-d/2-d/2*.1,y:-g/2},{x:-d/2,y:-g/2},{x:-d/2,y:g/2*1.1},{x:-d/2,y:-g/2}],w=C.polygon(v.map(A=>[A.x,A.y]),k),_=l.insert(()=>w,":first-child");return _.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",x),n&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",n),_.attr("transform",`translate(0,${-m/2})`),h.attr("transform",`translate(${-d/2+(t.padding??0)+d/2*.1/2-(u.x-(u.left??0))},${-f/2+(t.padding??0)-m/2-(u.y-(u.top??0))})`),Mt(t,_),t.intersect=function(A){return vt.polygon(t,v,A)},l}S(gL,"linedWaveEdgedRect");async function mL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?16:i,s=t.look==="neo"?12:i,l=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-o*2-2*l,10),t.height=Math.max(((t==null?void 0:t.height)??0)-s*2-2*l,10));const{shapeSvg:u,bbox:h,label:d}=await Ht(e,t,Wt(t)),f=(t!=null&&t.width?t==null?void 0:t.width:h.width)+o*2+2*l,m=(t!=null&&t.height?t==null?void 0:t.height:h.height)+s*2+2*l,g=f-2*l,x=m-2*l,C=-g/2,k=-x/2,{cssStyles:v}=t,w=Bt.svg(u),_=Ft(t,{}),A=[{x:C-l,y:k+l},{x:C-l,y:k+x+l},{x:C+g-l,y:k+x+l},{x:C+g-l,y:k+x},{x:C+g,y:k+x},{x:C+g,y:k+x-l},{x:C+g+l,y:k+x-l},{x:C+g+l,y:k-l},{x:C+l,y:k-l},{x:C+l,y:k},{x:C,y:k},{x:C,y:k+l}],F=[{x:C,y:k+l},{x:C+g-l,y:k+l},{x:C+g-l,y:k+x},{x:C+g,y:k+x},{x:C+g,y:k},{x:C,y:k}];t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const E=ae(A);let B=w.path(E,_);const N=ae(F);let q=w.path(N,_);t.look!=="handDrawn"&&(B=Jm(B),q=Jm(q));const O=u.insert("g",":first-child");return O.insert(()=>B),O.insert(()=>q),O.attr("class","basic label-container outer-path"),v&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",v),n&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",n),d.attr("transform",`translate(${-(h.width/2)-l-(h.x-(h.left??0))}, ${-(h.height/2)+l-(h.y-(h.top??0))})`),Mt(t,O),t.intersect=function(D){return vt.polygon(t,A,D)},u}S(mL,"multiRect");async function yL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:s}=await Ht(e,t,Wt(t)),l=t.padding??0,u=t.look==="neo"?16:l,h=t.look==="neo"?12:l;let d=!0;(t.width||t.height)&&(d=!1,t.width=((t==null?void 0:t.width)??0)-u*2,t.height=((t==null?void 0:t.height)??0)-h*3);const f=Math.max(o.width,(t==null?void 0:t.width)??0)+u*2,m=Math.max(o.height,(t==null?void 0:t.height)??0)+h*3,g=t.look==="neo"?m/4:m/8,x=m+(d?g/2:-g/2),C=-f/2,k=-x/2,v=10,{cssStyles:w}=t,_=mo(C-v,k+x+v,C+f-v,k+x+v,g,.8),A=_==null?void 0:_[_.length-1],F=[{x:C-v,y:k+v},{x:C-v,y:k+x+v},..._,{x:C+f-v,y:A.y-v},{x:C+f,y:A.y-v},{x:C+f,y:A.y-2*v},{x:C+f+v,y:A.y-2*v},{x:C+f+v,y:k-v},{x:C+v,y:k-v},{x:C+v,y:k},{x:C,y:k},{x:C,y:k+v}],E=[{x:C,y:k+v},{x:C+f-v,y:k+v},{x:C+f-v,y:A.y-v},{x:C+f,y:A.y-v},{x:C+f,y:k},{x:C,y:k}],B=Bt.svg(i),N=Ft(t,{});t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");const q=ae(F),O=B.path(q,N),D=ae(E),K=B.path(D,N),tt=i.insert(()=>O,":first-child");return tt.insert(()=>K),tt.attr("class","basic label-container outer-path"),w&&t.look!=="handDrawn"&&tt.selectAll("path").attr("style",w),n&&t.look!=="handDrawn"&&tt.selectAll("path").attr("style",n),tt.attr("transform",`translate(0,${-g/2})`),s.attr("transform",`translate(${-(o.width/2)-v-(o.x-(o.left??0))}, ${-(o.height/2)+v-g/2-(o.y-(o.top??0))})`),Mt(t,tt),t.intersect=function(U){return vt.polygon(t,F,U)},i}S(yL,"multiWaveEdgedRectangle");async function xL(e,t,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=It(t);t.labelStyle=n,t.useHtmlLabels||$r(Re())||(t.centerLabel=!0);const{shapeSvg:s,bbox:l,label:u}=await Ht(e,t,Wt(t)),h=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),f=-h/2,m=-d/2,{cssStyles:g}=t,x=Bt.svg(s),C=Ft(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=x.rectangle(f,m,h,d,C),v=s.insert(()=>k,":first-child");return v.attr("class","basic label-container outer-path"),u.attr("class","label noteLabel"),g&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),Mt(t,v),t.intersect=function(w){return vt.rect(t,w)},s}S(xL,"note");var uW=S((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 CL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await Ht(e,t,Wt(t)),s=o.width+(t.padding??0),l=o.height+(t.padding??0),u=s+l,h=.5,d=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}];let f;const{cssStyles:m}=t;if(t.look==="handDrawn"){const g=Bt.svg(i),x=Ft(t,{}),C=uW(0,0,u),k=g.path(C,x);f=i.insert(()=>k,":first-child").attr("transform",`translate(${-u/2+h}, ${u/2})`),m&&f.attr("style",m)}else f=Pi(i,u,u,d),f.attr("transform",`translate(${-u/2+h}, ${u/2})`);return n&&f.attr("style",n),Mt(t,f),t.calcIntersect=function(g,x){const C=g.width,k=[{x:C/2,y:0},{x:C,y:-C/2},{x:C/2,y:-C},{x:0,y:-C/2}],v=vt.polygon(g,k,x);return{x:v.x-.5,y:v.y-.5}},t.intersect=function(g){return this.calcIntersect(t,g)},i}S(CL,"question");async function kL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?21:i??0,s=t.look==="neo"?12:i??0,{shapeSvg:l,bbox:u,label:h}=await Ht(e,t,Wt(t)),d=((t==null?void 0:t.width)??u.width)+(t.look==="neo"?o*2:o),f=((t==null?void 0:t.height)??u.height)+(t.look==="neo"?s*2:s),m=-d/2,g=-f/2,x=g/2,C=[{x:m+x,y:g},{x:m,y:0},{x:m+x,y:-g},{x:-m,y:-g},{x:-m,y:g}],{cssStyles:k}=t,v=Bt.svg(l),w=Ft(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const _=ae(C),A=v.path(_,w),F=l.insert(()=>A,":first-child");return F.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",k),n&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",n),F.attr("transform",`translate(${-x/2},0)`),h.attr("transform",`translate(${-x/2-u.width/2-(u.x-(u.left??0))}, ${-(u.height/2)-(u.y-(u.top??0))})`),Mt(t,F),t.intersect=function(E){return vt.polygon(t,C,E)},l}S(kL,"rect_left_inv_arrow");async function bL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;let i;t.cssClasses?i="node "+t.cssClasses:i="node default";const o=e.insert("g").attr("class",i).attr("id",t.domId||t.id),s=o.insert("g"),l=o.insert("g").attr("class","label").attr("style",n),u=t.description,h=t.label,d=await so(l,h,t.labelStyle,!0,!0);let f={width:0,height:0};if($r(ue())){const N=d.children[0],q=Zt(d);f=N.getBoundingClientRect(),q.attr("width",f.width),q.attr("height",f.height)}ht.info("Text 2",u);const m=u||[],g=d.getBBox(),x=await so(l,Array.isArray(m)?m.join("<br/>"):m,t.labelStyle,!0,!0),C=x.children[0],k=Zt(x);f=C.getBoundingClientRect(),k.attr("width",f.width),k.attr("height",f.height);const v=(t.padding||0)/2;Zt(x).attr("transform","translate( "+(f.width>g.width?0:(g.width-f.width)/2)+", "+(g.height+v+5)+")"),Zt(d).attr("transform","translate( "+(f.width<g.width?0:-(g.width-f.width)/2)+", 0)"),f=l.node().getBBox(),l.attr("transform","translate("+-f.width/2+", "+(-f.height/2-v+3)+")");const w=f.width+(t.padding||0),_=f.height+(t.padding||0),A=-f.width/2-v,F=-f.height/2-v;let E,B;if(t.look==="handDrawn"){const N=Bt.svg(o),q=Ft(t,{}),O=N.path(Co(A,F,w,_,t.rx||0),q),D=N.line(-f.width/2-v,-f.height/2-v+g.height+v,f.width/2+v,-f.height/2-v+g.height+v,q);B=o.insert(()=>(ht.debug("Rough node insert CXC",O),D),":first-child"),E=o.insert(()=>(ht.debug("Rough node insert CXC",O),O),":first-child")}else E=s.insert("rect",":first-child"),B=s.insert("line"),E.attr("class","outer title-state").attr("style",n).attr("x",-f.width/2-v).attr("y",-f.height/2-v).attr("width",f.width+(t.padding||0)).attr("height",f.height+(t.padding||0)),B.attr("class","divider").attr("x1",-f.width/2-v).attr("x2",f.width/2+v).attr("y1",-f.height/2-v+g.height+v).attr("y2",-f.height/2-v+g.height+v);return Mt(t,E),t.intersect=function(N){return vt.rect(t,N)},o}S(bL,"rectWithTitle");async function vL(e,t,{config:{themeVariables:r}}){const n=(r==null?void 0:r.radius)??5,i={rx:n,ry:n,labelPaddingX:((t==null?void 0:t.padding)??0)*1,labelPaddingY:((t==null?void 0:t.padding)??0)*1};return vc(e,t,i)}S(vL,"roundedRect");var Do=8;async function wL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?12:t.padding??0,{shapeSvg:s,bbox:l,label:u}=await Ht(e,t,Wt(t)),h=((t==null?void 0:t.width)??l.width)+i*2+(t.look==="neo"?Do:Do*2),d=((t==null?void 0:t.height)??l.height)+o*2,f=h-Do,m=d,g=Do-h/2,x=-d/2,{cssStyles:C}=t,k=Bt.svg(s),v=Ft(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const w=[{x:g,y:x},{x:g+f,y:x},{x:g+f,y:x+m},{x:g-Do,y:x+m},{x:g-Do,y:x},{x:g,y:x},{x:g,y:x+m}],_=k.polygon(w.map(F=>[F.x,F.y]),v),A=s.insert(()=>_,":first-child");return A.attr("class","basic label-container outer-path").attr("style",cr(C)),n&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",n),C&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",n),u.attr("transform",`translate(${Do/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),Mt(t,A),t.intersect=function(F){return vt.rect(t,F)},s}S(wL,"shadedProcess");async function SL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?16:i,s=t.look==="neo"?12:i;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-o*2,10),t.height=Math.max(((t==null?void 0:t.height)??0)/1.5-s*2,10));const{shapeSvg:l,bbox:u,label:h}=await Ht(e,t,Wt(t)),d=(t!=null&&t.width?t==null?void 0:t.width:u.width)+o*2,f=((t!=null&&t.height?t==null?void 0:t.height:u.height)+s*2)*1.5,m=d,g=f/1.5,x=-m/2,C=-g/2,{cssStyles:k}=t,v=Bt.svg(l),w=Ft(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const _=[{x,y:C},{x,y:C+g},{x:x+m,y:C+g},{x:x+m,y:C-g/2}],A=ae(_),F=v.path(A,w),E=l.insert(()=>F,":first-child");return E.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&E.selectChildren("path").attr("style",k),n&&t.look!=="handDrawn"&&E.selectChildren("path").attr("style",n),E.attr("transform",`translate(0, ${g/4})`),h.attr("transform",`translate(${-m/2+(t.padding??0)-(u.x-(u.left??0))}, ${-g/4+(t.padding??0)-(u.y-(u.top??0))})`),Mt(t,E),t.intersect=function(B){return vt.polygon(t,_,B)},l}S(SL,"slopedRect");async function TL(e,t){const r=t.padding??0,n=t.look==="neo"?16:r*2,i=t.look==="neo"?12:r,o={rx:0,ry:0,labelPaddingX:t.labelPaddingX??n,labelPaddingY:i};return vc(e,t,o)}S(TL,"squareRect");async function _L(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?20:i,s=t.look==="neo"?12:i,{shapeSvg:l,bbox:u}=await Ht(e,t,Wt(t)),h=u.height+(t.look==="neo"?s*2:s),d=u.width+h/4+(t.look==="neo"?o*2:o),f=h/2,{cssStyles:m}=t,g=Bt.svg(l),x=Ft(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const C=[{x:-d/2+f,y:-h/2},{x:d/2-f,y:-h/2},...oc(-d/2+f,0,f,50,90,270),{x:d/2-f,y:h/2},...oc(d/2-f,0,f,50,270,450)],k=ae(C),v=g.path(k,x),w=l.insert(()=>v,":first-child");return w.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",m),n&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",n),Mt(t,w),t.intersect=function(_){return vt.polygon(t,C,_)},l}S(_L,"stadium");async function EL(e,t){const r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5};return vc(e,t,r)}S(EL,"state");function LL(e,t,{config:{themeVariables:r}}){var w,_;const{labelStyles:n,nodeStyles:i}=It(t);t.labelStyle=n;const{cssStyles:o}=t,{lineColor:s,stateBorder:l,nodeBorder:u,nodeShadow:h}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const d=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),f=Bt.svg(d),m=Ft(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const g=f.circle(0,0,t.width,{...m,stroke:s,strokeWidth:2}),x=l??u,C=(t.width??0)*5/14,k=f.circle(0,0,C,{...m,fill:x,stroke:x,strokeWidth:2,fillStyle:"solid"}),v=d.insert(()=>g,":first-child");if(v.insert(()=>k),t.look!=="handDrawn"&&v.attr("class","outer-path"),o&&v.selectAll("path").attr("style",o),i&&v.selectAll("path").attr("style",i),t.width<25&&h&&t.look!=="handDrawn"){const A=((_=(w=e.node())==null?void 0:w.ownerSVGElement)==null?void 0:_.id)??"",F=A?`${A}-drop-shadow-small`:"drop-shadow-small";v.attr("style",`filter:url(#${F})`)}return Mt(t,v),t.intersect=function(A){return vt.circle(t,(t.width??0)/2,A)},d}S(LL,"stateEnd");function BL(e,t,{config:{themeVariables:r}}){var l,u;const{lineColor:n,nodeShadow:i}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const o=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let s;if(t.look==="handDrawn"){const d=Bt.svg(o).circle(0,0,t.width,Cq(n));s=o.insert(()=>d),s.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else s=o.insert("circle",":first-child"),s.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&i&&t.look!=="handDrawn"){const h=((u=(l=e.node())==null?void 0:l.ownerSVGElement)==null?void 0:u.id)??"",d=h?`${h}-drop-shadow-small`:"drop-shadow-small";s.attr("style",`filter:url(#${d})`)}return Mt(t,s),t.intersect=function(h){return vt.circle(t,(t.width??7)/2,h)},o}S(BL,"stateStart");var Pa=8;async function AL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=(t==null?void 0:t.padding)??8,o=t.look==="neo"?28:i,s=t.look==="neo"?12:i,{shapeSvg:l,bbox:u}=await Ht(e,t,Wt(t)),h=((t==null?void 0:t.width)??u.width)+2*Pa+o,d=((t==null?void 0:t.height)??u.height)+s,f=h-2*Pa,m=d,g=-h/2,x=-d/2,C=[{x:0,y:0},{x:f,y:0},{x:f,y:-m},{x:0,y:-m},{x:0,y:0},{x:-8,y:0},{x:f+8,y:0},{x:f+8,y:-m},{x:-8,y:-m},{x:-8,y:0}];if(t.look==="handDrawn"){const k=Bt.svg(l),v=Ft(t,{}),w=k.rectangle(g,x,f+16,m,v),_=k.line(g+Pa,x,g+Pa,x+m,v),A=k.line(g+Pa+f,x,g+Pa+f,x+m,v);l.insert(()=>_,":first-child"),l.insert(()=>A,":first-child");const F=l.insert(()=>w,":first-child"),{cssStyles:E}=t;F.attr("class","basic label-container").attr("style",cr(E)),Mt(t,F)}else{const k=Pi(l,f,m,C);n&&k.attr("style",n),Mt(t,k)}return t.intersect=function(k){return vt.polygon(t,C,k)},l}S(AL,"subroutine");var Zp=.2;async function FL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?16:i,s=t.look==="neo"?12:i;(t.width||t.height)&&(t.height=Math.max(((t==null?void 0:t.height)??0)-s*2,10),t.width=Math.max(((t==null?void 0:t.width)??0)-o*2-Zp*(t.height+s*2),10));const{shapeSvg:l,bbox:u}=await Ht(e,t,Wt(t)),h=(t!=null&&t.height?t==null?void 0:t.height:u.height)+s*2,d=Zp*h,f=Zp*h,g=(t!=null&&t.width?t==null?void 0:t.width:u.width)+o*2+d-d,x=h,C=-g/2,k=-x/2,{cssStyles:v}=t,w=Bt.svg(l),_=Ft(t,{}),A=[{x:C-d/2,y:k},{x:C+g+d/2,y:k},{x:C+g+d/2,y:k+x},{x:C-d/2,y:k+x}],F=[{x:C+g-d/2,y:k+x},{x:C+g+d/2,y:k+x},{x:C+g+d/2,y:k+x-f}];t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const E=ae(A),B=w.path(E,_),N=ae(F),q=w.path(N,{..._,fillStyle:"solid"}),O=l.insert(()=>q,":first-child");return O.insert(()=>B,":first-child"),O.attr("class","basic label-container outer-path"),v&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",v),n&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",n),Mt(t,O),t.intersect=function(D){return vt.polygon(t,A,D)},l}S(FL,"taggedRect");async function IL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,label:s}=await Ht(e,t,Wt(t)),l=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=u/8,d=.2*l,f=.2*u,m=u+h,{cssStyles:g}=t,x=Bt.svg(i),C=Ft(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:-l/2-l/2*.1,y:m/2},...mo(-l/2-l/2*.1,m/2,l/2+l/2*.1,m/2,h,.8),{x:l/2+l/2*.1,y:-m/2},{x:-l/2-l/2*.1,y:-m/2}],v=-l/2+l/2*.1,w=-m/2-f*.4,_=[{x:v+l-d,y:(w+u)*1.3},{x:v+l,y:w+u-f},{x:v+l,y:(w+u)*.9},...mo(v+l,(w+u)*1.25,v+l-d,(w+u)*1.3,-u*.02,.5)],A=ae(k),F=x.path(A,C),E=ae(_),B=x.path(E,{...C,fillStyle:"solid"}),N=i.insert(()=>B,":first-child");return N.insert(()=>F,":first-child"),N.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",g),n&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",n),N.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-l/2+(t.padding??0)-(o.x-(o.left??0))},${-u/2+(t.padding??0)-h/2-(o.y-(o.top??0))})`),Mt(t,N),t.intersect=function(q){return vt.polygon(t,k,q)},i}S(IL,"taggedWaveEdgedRectangle");async function ML(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const{shapeSvg:i,bbox:o}=await Ht(e,t,Wt(t)),s=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),u=-s/2,h=-l/2,d=i.insert("rect",":first-child");return d.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",u).attr("y",h).attr("width",s).attr("height",l),Mt(t,d),t.intersect=function(f){return vt.rect(t,f)},i}S(ML,"text");var hW=S((e,t,r,n,i,o)=>`M${e},${t}
|
|
385
|
+
a${i},${o} 0,0,1 0,${-n}
|
|
386
|
+
l${r},0
|
|
387
|
+
a${i},${o} 0,0,1 0,${n}
|
|
388
|
+
M${r},${-n}
|
|
389
|
+
a${i},${o} 0,0,0 0,${n}
|
|
390
|
+
l${-r},0`,"createCylinderPathD"),dW=S((e,t,r,n,i,o)=>[`M${e},${t}`,`M${e+r},${t}`,`a${i},${o} 0,0,0 0,${-n}`,`l${-r},0`,`a${i},${o} 0,0,0 0,${n}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),fW=S((e,t,r,n,i,o)=>[`M${e+r/2},${-n/2}`,`a${i},${o} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD"),qb=5,Wb=10;async function OL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?12:i/2;if(t.width||t.height){const C=t.height??0;t.height=(t.height??0)-o,t.height<qb&&(t.height=qb);const v=C/2/(2.5+C/50);t.width=(t.width??0)-o-v*3,t.width<Wb&&(t.width=Wb)}const{shapeSvg:s,bbox:l,label:u}=await Ht(e,t,Wt(t)),h=(t.height?t.height:l.height)+o,d=h/2,f=d/(2.5+h/50),m=(t.width?t.width:l.width)+f+o,{cssStyles:g}=t;let x;if(t.look==="handDrawn"){const C=Bt.svg(s),k=dW(0,0,m,h,f,d),v=fW(0,0,m,h,f,d),w=C.path(k,Ft(t,{})),_=C.path(v,Ft(t,{fill:"none"}));x=s.insert(()=>_,":first-child"),x=s.insert(()=>w,":first-child"),x.attr("class","basic label-container"),g&&x.attr("style",g)}else{const C=hW(0,0,m,h,f,d);x=s.insert("path",":first-child").attr("d",C).attr("class","basic label-container").attr("style",cr(g)).attr("style",n),x.attr("class","basic label-container outer-path"),g&&x.selectAll("path").attr("style",g),n&&x.selectAll("path").attr("style",n)}return x.attr("label-offset-x",f),x.attr("transform",`translate(${-m/2}, ${h/2} )`),u.attr("transform",`translate(${-(l.width/2)-f-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),Mt(t,x),t.intersect=function(C){const k=vt.rect(t,C),v=k.y-(t.y??0);if(d!=0&&(Math.abs(v)<(t.height??0)/2||Math.abs(v)==(t.height??0)/2&&Math.abs(k.x-(t.x??0))>(t.width??0)/2-f)){let w=f*f*(1-v*v/(d*d));w!=0&&(w=Math.sqrt(Math.abs(w))),w=f-w,C.x-(t.x??0)>0&&(w=-w),k.x+=w}return k},s}S(OL,"tiltedCylinder");async function RL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=(t.look==="neo",i),s=t.look==="neo"?i*2:i,{shapeSvg:l,bbox:u}=await Ht(e,t,Wt(t)),h=((t==null?void 0:t.height)??u.height)+o,d=((t==null?void 0:t.width)??u.width)+s,f=[{x:-3*h/6,y:0},{x:d+3*h/6,y:0},{x:d,y:-h},{x:0,y:-h}];let m;const{cssStyles:g}=t;if(t.look==="handDrawn"){const x=Bt.svg(l),C=Ft(t,{}),k=ae(f),v=x.path(k,C);m=l.insert(()=>v,":first-child").attr("transform",`translate(${-d/2}, ${h/2})`),g&&m.attr("style",g)}else m=Pi(l,d,h,f);return n&&m.attr("style",n),t.width=d,t.height=h,Mt(t,m),t.intersect=function(x){return vt.polygon(t,f,x)},l}S(RL,"trapezoid");async function PL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?16:i,s=t.look==="neo"?12:i,l=15,u=5;(t.width||t.height)&&(t.height=(t.height??0)-s*2,t.height<u&&(t.height=u),t.width=(t.width??0)-o*2,t.width<l&&(t.width=l));const{shapeSvg:h,bbox:d}=await Ht(e,t,Wt(t)),f=(t!=null&&t.width?t==null?void 0:t.width:d.width)+o*2,m=(t!=null&&t.height?t==null?void 0:t.height:d.height)+s*2,{cssStyles:g}=t,x=Bt.svg(h),C=Ft(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:-f/2*.8,y:-m/2},{x:f/2*.8,y:-m/2},{x:f/2,y:-m/2*.6},{x:f/2,y:m/2},{x:-f/2,y:m/2},{x:-f/2,y:-m/2*.6}],v=ae(k),w=x.path(v,C),_=h.insert(()=>w,":first-child");return _.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",g),n&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",n),Mt(t,_),t.intersect=function(A){return vt.polygon(t,k,A)},h}S(PL,"trapezoidalPentagon");var Hb=10,Ub=10;async function NL(e,t){var A;const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?i*2:i;(t.width||t.height)&&(t.width=(((t==null?void 0:t.width)??0)-o)/2,t.width<Ub&&(t.width=Ub),t.height=(t==null?void 0:t.height)??0,t.height<Hb&&(t.height=Hb));const{shapeSvg:s,bbox:l,label:u}=await Ht(e,t,Wt(t)),h=Mi((A=ue().flowchart)==null?void 0:A.htmlLabels),d=(t!=null&&t.width?t==null?void 0:t.width:l.width)+o,f=t!=null&&t.height?t==null?void 0:t.height:d+l.height,m=f,g=[{x:0,y:0},{x:m,y:0},{x:m/2,y:-f}],{cssStyles:x}=t,C=Bt.svg(s),k=Ft(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const v=ae(g),w=C.path(v,k),_=s.insert(()=>w,":first-child").attr("transform",`translate(${-f/2}, ${f/2})`).attr("class","outer-path");return x&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",x),n&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",n),t.width=d,t.height=f,Mt(t,_),u.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${f/2-(l.height+(t.padding??0)/(h?2:1)-(l.y-(l.top??0)))})`),t.intersect=function(F){return ht.info("Triangle intersect",t,g,F),vt.polygon(t,g,F)},s}S(NL,"triangle");async function DL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?16:i,s=t.look==="neo"?12:i;let l=!0;(t.width||t.height)&&(l=!1,t.width=((t==null?void 0:t.width)??0)-o*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-s*2,t.height<10&&(t.height=10));const{shapeSvg:u,bbox:h,label:d}=await Ht(e,t,Wt(t)),f=(t!=null&&t.width?t==null?void 0:t.width:h.width)+(o??0)*2,m=(t!=null&&t.height?t==null?void 0:t.height:h.height)+(s??0)*2,g=t.look==="neo"?m/4:m/8,x=m+(l?g:-g),{cssStyles:C}=t,v=14-f,w=v>0?v/2:0,_=Bt.svg(u),A=Ft(t,{});t.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const F=[{x:-f/2-w,y:x/2},...mo(-f/2-w,x/2,f/2+w,x/2,g,.8),{x:f/2+w,y:-x/2},{x:-f/2-w,y:-x/2}],E=ae(F),B=_.path(E,A),N=u.insert(()=>B,":first-child");return N.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",C),n&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",n),N.attr("transform",`translate(0,${-g/2})`),d.attr("transform",`translate(${-f/2+(t.padding??0)-(h.x-(h.left??0))},${-m/2+(t.padding??0)-g-(h.y-(h.top??0))})`),Mt(t,N),t.intersect=function(q){return vt.polygon(t,F,q)},u}S(DL,"waveEdgedRectangle");async function $L(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.padding??0,o=t.look==="neo"?16:i,s=t.look==="neo"?20:i;if(t.width||t.height){t.width=(t==null?void 0:t.width)??0,t.width<20&&(t.width=20),t.height=(t==null?void 0:t.height)??0,t.height<10&&(t.height=10);const A=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-s-A*(20/9)),t.width=t.width-o*2}const{shapeSvg:l,bbox:u}=await Ht(e,t,Wt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:u.width)+o*2,d=(t!=null&&t.height?t==null?void 0:t.height:u.height)+s,f=d/8,m=d+f*2,{cssStyles:g}=t,x=Bt.svg(l),C=Ft(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=[{x:-h/2,y:m/2},...mo(-h/2,m/2,h/2,m/2,f,1),{x:h/2,y:-m/2},...mo(h/2,-m/2,-h/2,-m/2,f,-1)],v=ae(k),w=x.path(v,C),_=l.insert(()=>w,":first-child");return _.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",g),n&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",n),Mt(t,_),t.intersect=function(A){return vt.polygon(t,k,A)},l}S($L,"waveRectangle");var $e=10;async function jL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-i*2-$e,10),t.height=Math.max(((t==null?void 0:t.height)??0)-o*2-$e,10));const{shapeSvg:s,bbox:l,label:u}=await Ht(e,t,Wt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:l.width)+i*2+$e,d=(t!=null&&t.height?t==null?void 0:t.height:l.height)+o*2+$e,f=h-$e,m=d-$e,g=-f/2,x=-m/2,{cssStyles:C}=t,k=Bt.svg(s),v=Ft(t,{}),w=[{x:g-$e,y:x-$e},{x:g-$e,y:x+m},{x:g+f,y:x+m},{x:g+f,y:x-$e}],_=`M${g-$e},${x-$e} L${g+f},${x-$e} L${g+f},${x+m} L${g-$e},${x+m} L${g-$e},${x-$e}
|
|
391
|
+
M${g-$e},${x} L${g+f},${x}
|
|
392
|
+
M${g},${x-$e} L${g},${x+m}`;t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const A=k.path(_,v),F=s.insert(()=>A,":first-child");return F.attr("transform",`translate(${$e/2}, ${$e/2})`),F.attr("class","basic label-container outer-path"),C&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",C),n&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",n),u.attr("transform",`translate(${-(l.width/2)+$e/2-(l.x-(l.left??0))}, ${-(l.height/2)+$e/2-(l.y-(l.top??0))})`),Mt(t,F),t.intersect=function(E){return vt.polygon(t,w,E)},s}S(jL,"windowPane");var Vb=new Set(["redux-color","redux-dark-color"]),pW=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function Ox(e,t){var mt,wt,St,Dt;const r=t;r.alias&&(t.label=r.alias);const{theme:n,themeVariables:i}=Re(),{rowEven:o,rowOdd:s,nodeBorder:l,borderColorArray:u}=i;if(t.look==="handDrawn"){const{themeVariables:xt}=Re(),{background:_t}=xt,re={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${_t}`]};await Ox(e,re)}const h=Re();t.useHtmlLabels=h.htmlLabels;let d=((mt=h.er)==null?void 0:mt.diagramPadding)??10,f=((wt=h.er)==null?void 0:wt.entityPadding)??6;const{cssStyles:m}=t,{labelStyles:g,nodeStyles:x}=It(t);if(r.attributes.length===0&&t.label){const xt={rx:0,ry:0,labelPaddingX:d,labelPaddingY:d*1.5};Fi(t.label,h)+xt.labelPaddingX*2<h.er.minEntityWidth&&(t.width=h.er.minEntityWidth);const _t=await vc(e,t,xt);if(n!=null&&Vb.has(n)){const re=r.colorIndex??0;_t.attr("data-color-id",`color-${re%u.length}`)}if(!Mi(h.htmlLabels)){const re=_t.select("text"),Qt=(St=re.node())==null?void 0:St.getBBox();re.attr("transform",`translate(${-Qt.width/2}, 0)`)}return _t}h.htmlLabels||(d*=1.25,f*=1.25);let C=Wt(t);C||(C="node default");const k=e.insert("g").attr("class",C).attr("id",t.domId||t.id),v=await za(k,t.label??"",h,0,0,["name"],g);v.height+=f;let w=0;const _=[],A=[];let F=0,E=0,B=0,N=0,q=!0,O=!0;for(const xt of r.attributes){const _t=await za(k,xt.type,h,0,w,["attribute-type"],g);F=Math.max(F,_t.width+d);const re=await za(k,xt.name,h,0,w,["attribute-name"],g);E=Math.max(E,re.width+d);const Qt=await za(k,xt.keys.join(),h,0,w,["attribute-keys"],g);B=Math.max(B,Qt.width+d);const Ue=await za(k,xt.comment,h,0,w,["attribute-comment"],g);N=Math.max(N,Ue.width+d);const Ce=Math.max(_t.height,re.height,Qt.height,Ue.height)+f;A.push({yOffset:w,rowHeight:Ce}),w+=Ce}let D=4;B<=d&&(q=!1,B=0,D--),N<=d&&(O=!1,N=0,D--);const K=k.node().getBBox();if(v.width+d*2-(F+E+B+N)>0){const xt=v.width+d*2-(F+E+B+N);F+=xt/D,E+=xt/D,B>0&&(B+=xt/D),N>0&&(N+=xt/D)}const tt=F+E+B+N,U=Bt.svg(k),W=Ft(t,{});t.look!=="handDrawn"&&(W.roughness=0,W.fillStyle="solid");let H=0;A.length>0&&(H=A.reduce((xt,_t)=>xt+((_t==null?void 0:_t.rowHeight)??0),0));const G=Math.max(K.width+d*2,(t==null?void 0:t.width)||0,tt),$=Math.max((H??0)+v.height,(t==null?void 0:t.height)||0),Z=-G/2,R=-$/2;if(k.selectAll("g:not(:first-child)").each((xt,_t,re)=>{const Qt=Zt(re[_t]),Ue=Qt.attr("transform");let Ce=0,je=0;if(Ue){const Fe=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Ue);Fe&&(Ce=parseFloat(Fe[1]),je=parseFloat(Fe[2]),Qt.attr("class").includes("attribute-name")?Ce+=F:Qt.attr("class").includes("attribute-keys")?Ce+=F+E:Qt.attr("class").includes("attribute-comment")&&(Ce+=F+E+B))}Qt.attr("transform",`translate(${Z+d/2+Ce}, ${je+R+v.height+f/2})`)}),k.select(".name").attr("transform","translate("+-v.width/2+", "+(R+f/2)+")"),n!=null&&Vb.has(n)){const xt=r.colorIndex??0;k.attr("data-color-id",`color-${xt%u.length}`)}const j=U.rectangle(Z,R,G,$,W),J=k.insert(()=>j,":first-child").attr("class","outer-path").attr("style",m.join(""));_.push(0);for(const[xt,_t]of A.entries()){const Qt=(xt+1)%2===0&&_t.yOffset!==0,Ue=U.rectangle(Z,v.height+R+(_t==null?void 0:_t.yOffset),G,_t==null?void 0:_t.rowHeight,{...W,fill:Qt?o:s,stroke:l});k.insert(()=>Ue,"g.label").attr("style",m.join("")).attr("class",`row-rect-${Qt?"even":"odd"}`)}const P=1e-4;let ct=qa(Z,v.height+R,G+Z,v.height+R,P),lt=U.polygon(ct.map(xt=>[xt.x,xt.y]),W);if(k.insert(()=>lt).attr("class","divider"),ct=qa(F+Z,v.height+R,F+Z,$+R,P),lt=U.polygon(ct.map(xt=>[xt.x,xt.y]),W),k.insert(()=>lt).attr("class","divider"),q){const xt=F+E+Z;ct=qa(xt,v.height+R,xt,$+R,P),lt=U.polygon(ct.map(_t=>[_t.x,_t.y]),W),k.insert(()=>lt).attr("class","divider")}if(O){const xt=F+E+B+Z;ct=qa(xt,v.height+R,xt,$+R,P),lt=U.polygon(ct.map(_t=>[_t.x,_t.y]),W),k.insert(()=>lt).attr("class","divider")}for(const xt of _){const _t=v.height+R+xt;ct=qa(Z,_t,G+Z,_t,P),lt=U.polygon(ct.map(re=>[re.x,re.y]),W),k.insert(()=>lt).attr("class","divider")}if(Mt(t,J),x&&t.look!=="handDrawn")if(n!=null&&pW.has(n))k.selectAll("path").attr("style",x);else{const xt=x.split(";"),_t=(Dt=xt==null?void 0:xt.filter(re=>re.includes("stroke")))==null?void 0:Dt.map(re=>`${re}`).join("; ");k.selectAll("path").attr("style",_t??""),k.selectAll(".row-rect-even path").attr("style",x)}return t.intersect=function(xt){return vt.rect(t,xt)},k}S(Ox,"erBox");async function za(e,t,r,n=0,i=0,o=[],s=""){const l=e.insert("g").attr("class",`label ${o.join(" ")}`).attr("transform",`translate(${n}, ${i})`).attr("style",s);t!==_k(t)&&(t=_k(t),t=t.replaceAll("<","<").replaceAll(">",">"));const u=l.node().appendChild(await Ri(l,t,{width:Fi(t,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(t.includes("<")||t.includes(">")){let d=u.children[0];for(d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">");d.childNodes[0];)d=d.childNodes[0],d.textContent=d.textContent.replaceAll("<","<").replaceAll(">",">")}let h=u.getBBox();if(Mi(r.htmlLabels)){const d=u.children[0];d.style.textAlign="start";const f=Zt(u);h=d.getBoundingClientRect(),f.attr("width",h.width),f.attr("height",h.height)}return h}S(za,"addText");function qa(e,t,r,n,i){return e===r?[{x:e-i/2,y:t},{x:e+i/2,y:t},{x:r+i/2,y:n},{x:r-i/2,y:n}]:[{x:e,y:t-i/2},{x:e,y:t+i/2},{x:r,y:n+i/2},{x:r,y:n-i/2}]}S(qa,"lineToPolygon");async function zL(e,t,r,n,i=r.class.padding??12){const o=n?0:3,s=e.insert("g").attr("class",Wt(t)).attr("id",t.domId||t.id);let l=null,u=null,h=null,d=null,f=0,m=0,g=0;if(l=s.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const w=t.annotations[0];await Ol(l,{text:`«${w}»`},0),f=l.node().getBBox().height}u=s.insert("g").attr("class","label-group text"),await Ol(u,t,0,["font-weight: bolder"]);const x=u.node().getBBox();m=x.height,h=s.insert("g").attr("class","members-group text");let C=0;for(const w of t.members){const _=await Ol(h,w,C,[w.parseClassifier()]);C+=_+o}g=h.node().getBBox().height,g<=0&&(g=i/2),d=s.insert("g").attr("class","methods-group text");let k=0;for(const w of t.methods){const _=await Ol(d,w,k,[w.parseClassifier()]);k+=_+o}let v=s.node().getBBox();if(l!==null){const w=l.node().getBBox();l.attr("transform",`translate(${-w.width/2})`)}return u.attr("transform",`translate(${-x.width/2}, ${f})`),v=s.node().getBBox(),h.attr("transform",`translate(0, ${f+m+i*2})`),v=s.node().getBBox(),d.attr("transform",`translate(0, ${f+m+(g?g+i*4:i*2)})`),v=s.node().getBBox(),{shapeSvg:s,bbox:v}}S(zL,"textHelper");async function Ol(e,t,r,n=[]){const i=e.insert("g").attr("class","label").attr("style",n.join("; ")),o=Re();let s="useHtmlLabels"in t?t.useHtmlLabels:Mi(o.htmlLabels)??!0,l="";"text"in t?l=t.text:l=t.label,!s&&l.startsWith("\\")&&(l=l.substring(1)),Gl(l)&&(s=!0);const u=await Ri(i,Wy(ta(l)),{width:Fi(l,o)+50,classes:"markdown-node-label",useHtmlLabels:s},o);let h,d=1;if(s){const f=u.children[0],m=Zt(u);d=f.innerHTML.split("<br>").length,f.innerHTML.includes("</math>")&&(d+=f.innerHTML.split("<mrow>").length-1);const g=f.getElementsByTagName("img");if(g){const x=l.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...g].map(C=>new Promise(k=>{function v(){var w;if(C.style.display="flex",C.style.flexDirection="column",x){const _=((w=o.fontSize)==null?void 0:w.toString())??window.getComputedStyle(document.body).fontSize,F=parseInt(_,10)*5+"px";C.style.minWidth=F,C.style.maxWidth=F}else C.style.width="100%";k(C)}S(v,"setupImage"),setTimeout(()=>{C.complete&&v()}),C.addEventListener("error",v),C.addEventListener("load",v)})))}h=f.getBoundingClientRect(),m.attr("width",h.width),m.attr("height",h.height)}else{n.includes("font-weight: bolder")&&Zt(u).selectAll("tspan").attr("font-weight",""),d=u.children.length;const f=u.children[0];(u.textContent===""||u.textContent.includes(">"))&&(f.textContent=l[0]+l.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),l[1]===" "&&(f.textContent=f.textContent[0]+" "+f.textContent.substring(1))),f.textContent==="undefined"&&(f.textContent=""),h=u.getBBox()}return i.attr("transform","translate(0,"+(-h.height/(2*d)+r)+")"),h.height}S(Ol,"addText");async function qL(e,t){var U,W;const r=ue(),{themeVariables:n}=r,{useGradient:i}=n,o=r.class.padding??12,s=o,l=t.useHtmlLabels??Mi(r.htmlLabels)??!0,u=t;u.annotations=u.annotations??[],u.members=u.members??[],u.methods=u.methods??[];const{shapeSvg:h,bbox:d}=await zL(e,t,r,l,s),{labelStyles:f,nodeStyles:m}=It(t);t.labelStyle=f,t.cssStyles=u.styles||"";const g=((U=u.styles)==null?void 0:U.join(";"))||m||"";t.cssStyles||(t.cssStyles=g.replaceAll("!important","").split(";"));const x=u.members.length===0&&u.methods.length===0&&!((W=r.class)!=null&&W.hideEmptyMembersBox),C=Bt.svg(h),k=Ft(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const v=Math.max(t.width??0,d.width);let w=Math.max(t.height??0,d.height);const _=(t.height??0)>d.height;u.members.length===0&&u.methods.length===0?w+=s:u.members.length>0&&u.methods.length===0&&(w+=s*2);const A=-v/2,F=-w/2;let E=x?o*2:u.members.length===0&&u.methods.length===0?-o:0;_&&(E=o*2);const B=C.rectangle(A-o,F-o-(x?o:u.members.length===0&&u.methods.length===0?-o/2:0),v+2*o,w+2*o+E,k),N=h.insert(()=>B,":first-child");N.attr("class","basic label-container outer-path");const q=N.node().getBBox(),O=h.select(".annotation-group").node().getBBox().height-(x?o/2:0)||0,D=h.select(".label-group").node().getBBox().height-(x?o/2:0)||0,K=h.select(".members-group").node().getBBox().height-(x?o/2:0)||0,tt=(O+D+F+o-(F-o-(x?o:u.members.length===0&&u.methods.length===0?-o/2:0)))/2;if(h.selectAll(".text").each((H,G,$)=>{var ct,lt;const Z=Zt($[G]),R=Z.attr("transform");let j=0;if(R){const wt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(R);wt&&(j=parseFloat(wt[2]))}let J=j+F+o-(x?o:u.members.length===0&&u.methods.length===0?-o/2:0);if(Z.attr("class").includes("methods-group")){const mt=Math.max(K,s/2);_?J=Math.max(tt,O+D+mt+F+s*2+o)+s*2:J=O+D+mt+F+s*4+o}u.members.length===0&&u.methods.length===0&&((ct=r.class)!=null&&ct.hideEmptyMembersBox)&&(u.annotations.length>0?J=j-s:J=j),l||(J-=4);let P=A;(Z.attr("class").includes("label-group")||Z.attr("class").includes("annotation-group"))&&(P=-((lt=Z.node())==null?void 0:lt.getBBox().width)/2||0,h.selectAll("text").each(function(mt,wt,St){window.getComputedStyle(St[wt]).textAnchor==="middle"&&(P=0)})),Z.attr("transform",`translate(${P}, ${J})`)}),u.members.length>0||u.methods.length>0||x){const H=O+D+F+o,G=C.line(q.x,H,q.x+q.width,H+.001,k);h.insert(()=>G).attr("class",`divider${t.look==="neo"&&!i?" neo-line":""}`).attr("style",g)}if(x||u.members.length>0||u.methods.length>0){const H=O+D+K+F+s*2+o,G=C.line(q.x,_?Math.max(tt,H):H,q.x+q.width,(_?Math.max(tt,H):H)+.001,k);h.insert(()=>G).attr("class",`divider${t.look==="neo"&&!i?" neo-line":""}`).attr("style",g)}if(u.look!=="handDrawn"&&h.selectAll("path").attr("style",g),N.select(":nth-child(2)").attr("style",g),h.selectAll(".divider").select("path").attr("style",g),t.labelStyle?h.selectAll("span").attr("style",t.labelStyle):h.selectAll("span").attr("style",g),!l){const H=RegExp(/color\s*:\s*([^;]*)/),G=H.exec(g);if(G){const $=G[0].replace("color","fill");h.selectAll("tspan").attr("style",$)}else if(f){const $=H.exec(f);if($){const Z=$[0].replace("color","fill");h.selectAll("tspan").attr("style",Z)}}}return Mt(t,N),t.intersect=function(H){return vt.rect(t,H)},h}S(qL,"classBox");async function WL(e,t){var q,O;const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const i=t,o=t,s=20,l=20,u="verifyMethod"in t,h=Wt(t),{themeVariables:d}=ue(),{borderColorArray:f,requirementEdgeLabelBackground:m}=d,g=e.insert("g").attr("class",h).attr("id",t.domId??t.id);let x;u?x=await ri(g,`<<${i.type}>>`,0,t.labelStyle):x=await ri(g,"<<Element>>",0,t.labelStyle);let C=x;const k=await ri(g,i.name,C,t.labelStyle+"; font-weight: bold;");if(C+=k+l,u){const D=await ri(g,`${i.requirementId?`ID: ${i.requirementId}`:""}`,C,t.labelStyle);C+=D;const K=await ri(g,`${i.text?`Text: ${i.text}`:""}`,C,t.labelStyle);C+=K;const tt=await ri(g,`${i.risk?`Risk: ${i.risk}`:""}`,C,t.labelStyle);C+=tt,await ri(g,`${i.verifyMethod?`Verification: ${i.verifyMethod}`:""}`,C,t.labelStyle)}else{const D=await ri(g,`${o.type?`Type: ${o.type}`:""}`,C,t.labelStyle);C+=D,await ri(g,`${o.docRef?`Doc Ref: ${o.docRef}`:""}`,C,t.labelStyle)}const v=(((q=g.node())==null?void 0:q.getBBox().width)??200)+s,w=(((O=g.node())==null?void 0:O.getBBox().height)??200)+s,_=-v/2,A=-w/2,F=Bt.svg(g),E=Ft(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const B=F.rectangle(_,A,v,w,E),N=g.insert(()=>B,":first-child");if(N.attr("class","basic label-container outer-path").attr("style",n),f!=null&&f.length){const D=t.colorIndex??0;g.attr("data-color-id",`color-${D%f.length}`)}if(g.selectAll(".label").each((D,K,tt)=>{const U=Zt(tt[K]),W=U.attr("transform");let H=0,G=0;if(W){const j=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(W);j&&(H=parseFloat(j[1]),G=parseFloat(j[2]))}const $=G-w/2;let Z=_+s/2;(K===0||K===1)&&(Z=H),U.attr("transform",`translate(${Z}, ${$+s})`)}),C>x+k+l){const D=A+x+k+l;let K;if(t.look==="neo"){const W=[[_,D],[_+v,D],[_+v,D+.001],[_,D+.001]];K=F.polygon(W,E)}else K=F.line(_,D,_+v,D,E);g.insert(()=>K).attr("class","divider")}return Mt(t,N),t.intersect=function(D){return vt.rect(t,D)},n&&t.look!=="handDrawn"&&(m||f!=null&&f.length)&&g.selectAll("path").attr("style",n),g}S(WL,"requirementBox");async function ri(e,t,r,n=""){if(t==="")return 0;const i=e.insert("g").attr("class","label").attr("style",n),o=ue(),s=o.htmlLabels??!0,l=await Ri(i,Wy(ta(t)),{width:Fi(t,o)+50,classes:"markdown-node-label",useHtmlLabels:s,style:n},o);let u;if(s){const h=l.children[0],d=Zt(l);u=h.getBoundingClientRect(),d.attr("width",u.width),d.attr("height",u.height)}else{const h=l.children[0];for(const d of h.children)n&&d.setAttribute("style",n);u=l.getBBox(),u.height+=6}return i.attr("transform",`translate(${-u.width/2},${-u.height/2+r})`),u.height}S(ri,"addText");var gW=S(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 HL(e,t,{config:r}){var K,tt;const{labelStyles:n,nodeStyles:i}=It(t);t.labelStyle=n||"";const o=10,s=t.width;t.width=(t.width??200)-10;const{shapeSvg:l,bbox:u,label:h}=await Ht(e,t,Wt(t)),d=t.padding||10;let f="",m;"ticket"in t&&t.ticket&&((K=r==null?void 0:r.kanban)!=null&&K.ticketBaseUrl)&&(f=(tt=r==null?void 0:r.kanban)==null?void 0:tt.ticketBaseUrl.replace("#TICKET#",t.ticket),m=l.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",f).attr("target","_blank"));const g={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let x,C;m?{label:x,bbox:C}=await Qp(m,"ticket"in t&&t.ticket||"",g):{label:x,bbox:C}=await Qp(l,"ticket"in t&&t.ticket||"",g);const{label:k,bbox:v}=await Qp(l,"assigned"in t&&t.assigned||"",g);t.width=s;const w=10,_=(t==null?void 0:t.width)||0,A=Math.max(C.height,v.height)/2,F=Math.max(u.height+w*2,(t==null?void 0:t.height)||0)+A,E=-_/2,B=-F/2;h.attr("transform","translate("+(d-_/2)+", "+(-A-u.height/2)+")"),x.attr("transform","translate("+(d-_/2)+", "+(-A+u.height/2)+")"),k.attr("transform","translate("+(d+_/2-v.width-2*o)+", "+(-A+u.height/2)+")");let N;const{rx:q,ry:O}=t,{cssStyles:D}=t;if(t.look==="handDrawn"){const U=Bt.svg(l),W=Ft(t,{}),H=q||O?U.path(Co(E,B,_,F,q||0),W):U.rectangle(E,B,_,F,W);N=l.insert(()=>H,":first-child"),N.attr("class","basic label-container").attr("style",D||null)}else{N=l.insert("rect",":first-child"),N.attr("class","basic label-container __APA__").attr("style",i).attr("rx",q??5).attr("ry",O??5).attr("x",E).attr("y",B).attr("width",_).attr("height",F);const U="priority"in t&&t.priority;if(U){const W=l.append("line"),H=E+2,G=B+Math.floor((q??0)/2),$=B+F-Math.floor((q??0)/2);W.attr("x1",H).attr("y1",G).attr("x2",H).attr("y2",$).attr("stroke-width","4").attr("stroke",gW(U))}}return Mt(t,N),t.height=F,t.intersect=function(U){return vt.rect(t,U)},l}S(HL,"kanbanItem");async function UL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,halfPadding:s,label:l}=await Ht(e,t,Wt(t)),u=o.width+10*s,h=o.height+8*s,d=.15*u,{cssStyles:f}=t,m=o.width+20,g=o.height+20,x=Math.max(u,m),C=Math.max(h,g);l.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);let k;const v=`M0 0
|
|
393
|
+
a${d},${d} 1 0,0 ${x*.25},${-1*C*.1}
|
|
394
|
+
a${d},${d} 1 0,0 ${x*.25},0
|
|
395
|
+
a${d},${d} 1 0,0 ${x*.25},0
|
|
396
|
+
a${d},${d} 1 0,0 ${x*.25},${C*.1}
|
|
397
|
+
|
|
398
|
+
a${d},${d} 1 0,0 ${x*.15},${C*.33}
|
|
399
|
+
a${d*.8},${d*.8} 1 0,0 0,${C*.34}
|
|
400
|
+
a${d},${d} 1 0,0 ${-1*x*.15},${C*.33}
|
|
401
|
+
|
|
402
|
+
a${d},${d} 1 0,0 ${-1*x*.25},${C*.15}
|
|
403
|
+
a${d},${d} 1 0,0 ${-1*x*.25},0
|
|
404
|
+
a${d},${d} 1 0,0 ${-1*x*.25},0
|
|
405
|
+
a${d},${d} 1 0,0 ${-1*x*.25},${-1*C*.15}
|
|
406
|
+
|
|
407
|
+
a${d},${d} 1 0,0 ${-1*x*.1},${-1*C*.33}
|
|
408
|
+
a${d*.8},${d*.8} 1 0,0 0,${-1*C*.34}
|
|
409
|
+
a${d},${d} 1 0,0 ${x*.1},${-1*C*.33}
|
|
410
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const w=Bt.svg(i),_=Ft(t,{}),A=w.path(v,_);k=i.insert(()=>A,":first-child"),k.attr("class","basic label-container").attr("style",cr(f))}else k=i.insert("path",":first-child").attr("class","basic label-container").attr("style",n).attr("d",v);return k.attr("transform",`translate(${-x/2}, ${-C/2})`),Mt(t,k),t.calcIntersect=function(w,_){return vt.rect(w,_)},t.intersect=function(w){return ht.info("Bang intersect",t,w),vt.rect(t,w)},i}S(UL,"bang");async function VL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,halfPadding:s,label:l}=await Ht(e,t,Wt(t)),u=o.width+2*s,h=o.height+2*s,d=.15*u,f=.25*u,m=.35*u,g=.2*u,{cssStyles:x}=t;let C;const k=`M0 0
|
|
411
|
+
a${d},${d} 0 0,1 ${u*.25},${-1*u*.1}
|
|
412
|
+
a${m},${m} 1 0,1 ${u*.4},${-1*u*.1}
|
|
413
|
+
a${f},${f} 1 0,1 ${u*.35},${u*.2}
|
|
414
|
+
|
|
415
|
+
a${d},${d} 1 0,1 ${u*.15},${h*.35}
|
|
416
|
+
a${g},${g} 1 0,1 ${-1*u*.15},${h*.65}
|
|
417
|
+
|
|
418
|
+
a${f},${d} 1 0,1 ${-1*u*.25},${u*.15}
|
|
419
|
+
a${m},${m} 1 0,1 ${-1*u*.5},0
|
|
420
|
+
a${d},${d} 1 0,1 ${-1*u*.25},${-1*u*.15}
|
|
421
|
+
|
|
422
|
+
a${d},${d} 1 0,1 ${-1*u*.1},${-1*h*.35}
|
|
423
|
+
a${g},${g} 1 0,1 ${u*.1},${-1*h*.65}
|
|
424
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const v=Bt.svg(i),w=Ft(t,{}),_=v.path(k,w);C=i.insert(()=>_,":first-child"),C.attr("class","basic label-container").attr("style",cr(x))}else C=i.insert("path",":first-child").attr("class","basic label-container").attr("style",n).attr("d",k);return l.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),C.attr("transform",`translate(${-u/2}, ${-h/2})`),Mt(t,C),t.calcIntersect=function(v,w){return vt.rect(v,w)},t.intersect=function(v){return ht.info("Cloud intersect",t,v),vt.rect(t,v)},i}S(VL,"cloud");async function YL(e,t){const{labelStyles:r,nodeStyles:n}=It(t);t.labelStyle=r;const{shapeSvg:i,bbox:o,halfPadding:s,label:l}=await Ht(e,t,Wt(t)),u=o.width+8*s,h=o.height+2*s,d=5,f=t.look==="neo"?`
|
|
425
|
+
M${-u/2} ${h/2-d}
|
|
426
|
+
v${-h+2*d}
|
|
427
|
+
q0,-${d} ${d},-${d}
|
|
428
|
+
h${u-2*d}
|
|
429
|
+
q${d},0 ${d},${d}
|
|
430
|
+
v${h-d}
|
|
431
|
+
H${-u/2}
|
|
432
|
+
Z
|
|
433
|
+
`:`
|
|
434
|
+
M${-u/2} ${h/2-d}
|
|
435
|
+
v${-h+2*d}
|
|
436
|
+
q0,-${d} ${d},-${d}
|
|
437
|
+
h${u-2*d}
|
|
438
|
+
q${d},0 ${d},${d}
|
|
439
|
+
v${h-2*d}
|
|
440
|
+
q0,${d} ${-d},${d}
|
|
441
|
+
h${-(u-2*d)}
|
|
442
|
+
q${-d},0 ${-d},${-d}
|
|
443
|
+
Z
|
|
444
|
+
`;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId — was render.ts domId prefixing skipped?`);const m=i.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",n).attr("d",f);return i.append("line").attr("class","node-line-").attr("x1",-u/2).attr("y1",h/2).attr("x2",u/2).attr("y2",h/2),l.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),i.append(()=>l.node()),Mt(t,m),t.calcIntersect=function(g,x){return vt.rect(g,x)},t.intersect=function(g){return vt.rect(t,g)},i}S(YL,"defaultMindmapNode");async function GL(e,t){const r={padding:t.padding??0};return Mx(e,t,r)}S(GL,"mindmapCircle");var mW=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:TL},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:vL},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:_L},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:AL},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:XE},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Mx},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:UL},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:VL},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:CL},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:rL},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:dL},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:hL},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:RL},{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:cL},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:QE},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:ML},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:zE},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:wL},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:BL},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:LL},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:tL},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:nL},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:UE},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:VE},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:YE},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:fL},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:DL},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:eL},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:OL},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:pL},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:GE},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:KE},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:NL},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:jL},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:ZE},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:PL},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:JE},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:SL},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:yL},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:mL},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:jE},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:HE},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:IL},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:FL},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:$L},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:kL},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:gL}],yW=S(()=>{const t=[...Object.entries({state:EL,choice:qE,note:xL,rectWithTitle:bL,labelRect:uL,iconSquare:sL,iconCircle:oL,icon:iL,iconRounded:aL,imageSquare:lL,anchor:DE,kanbanItem:HL,mindmapCircle:GL,defaultMindmapNode:YL,classBox:qL,erBox:Ox,requirementBox:WL}),...mW.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(i=>[i,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),XL=yW();function xW(e){return e in XL}S(xW,"isValidShape");var _d=new Map;async function KL(e,t,r){let n,i;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const o=t.shape?XL[t.shape]:void 0;if(!o)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let s;r.config.securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),n=e.insert("svg:a").attr("xlink:href",t.link).attr("target",s??null),i=await o(n,t,r)}else i=await o(e,t,r),n=i;return n.attr("data-look",cr(t.look)),t.tooltip&&i.attr("title",t.tooltip),_d.set(t.id,n),t.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}S(KL,"insertNode");var JZ=S((e,t)=>{_d.set(t.id,e)},"setNodeElem"),tJ=S(()=>{_d.clear()},"clear"),eJ=S(e=>{const t=_d.get(e.id);ht.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,n=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+n-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),n},"positionNode"),CW=S((e,t,r,n,i,o=!1,s)=>{t.arrowTypeStart&&Yb(e,"start",t.arrowTypeStart,r,n,i,o,s),t.arrowTypeEnd&&Yb(e,"end",t.arrowTypeEnd,r,n,i,o,s)},"addEdgeMarkers"),kW={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},bW=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Yb=S((e,t,r,n,i,o,s=!1,l)=>{var x;const u=kW[r],h=u&&bW.includes(u.type);if(!u){ht.warn(`Unknown arrow type: ${r}`);return}const d=u.type,g=`${i}_${o}-${d}${t==="start"?"Start":"End"}${s&&h?"-margin":""}`;if(l&&l.trim()!==""){const C=l.replace(/[^\dA-Za-z]/g,"_"),k=`${g}_${C}`;if(!document.getElementById(k)){const v=document.getElementById(g);if(v){const w=v.cloneNode(!0);w.id=k,w.querySelectorAll("path, circle, line").forEach(A=>{A.setAttribute("stroke",l),u.fill&&A.setAttribute("fill",l)}),(x=v.parentNode)==null||x.appendChild(w)}}e.attr(`marker-${t}`,`url(${n}#${k})`)}else e.attr(`marker-${t}`,`url(${n}#${g})`)},"addEdgeMarker"),vW=S(e=>{var t,r;return typeof e=="string"?e:(r=(t=ue())==null?void 0:t.flowchart)==null?void 0:r.curve},"resolveEdgeCurveType"),Jh=new Map,pr=new Map,rJ=S(()=>{Jh.clear(),pr.clear()},"clear"),El=S(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),wW=S(async(e,t)=>{const r=ue();let n=$r(r);const{labelStyles:i}=It(t);t.labelStyle=i;const o=e.insert("g").attr("class","edgeLabel"),s=o.insert("g").attr("class","label").attr("data-id",t.id),l=t.labelType==="markdown",h=await Ri(e,t.label,{style:El(t.labelStyle),useHtmlLabels:n,addSvgBackground:!0,isNode:!1,markdown:l,width:l?void 0:void 0},r);s.node().appendChild(h),ht.info("abc82",t,t.labelType);let d=h.getBBox(),f=d;if(n){const g=h.children[0],x=Zt(h);d=g.getBoundingClientRect(),f=d,x.attr("width",d.width),x.attr("height",d.height)}else{const g=Zt(h).select("text").node();g&&typeof g.getBBox=="function"&&(f=g.getBBox())}s.attr("transform",bl(f,n)),Jh.set(t.id,o),t.width=d.width,t.height=d.height;let m;if(t.startLabelLeft){const g=e.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner"),C=await so(x,t.startLabelLeft,El(t.labelStyle)||"",!1,!1);m=C;let k=C.getBBox();if(n){const v=C.children[0],w=Zt(C);k=v.getBoundingClientRect(),w.attr("width",k.width),w.attr("height",k.height)}x.attr("transform",bl(k,n)),pr.get(t.id)||pr.set(t.id,{}),pr.get(t.id).startLeft=g,Rl(m,t.startLabelLeft)}if(t.startLabelRight){const g=e.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner"),C=await so(x,t.startLabelRight,El(t.labelStyle)||"",!1,!1);m=C,x.node().appendChild(C);let k=C.getBBox();if(n){const v=C.children[0],w=Zt(C);k=v.getBoundingClientRect(),w.attr("width",k.width),w.attr("height",k.height)}x.attr("transform",bl(k,n)),pr.get(t.id)||pr.set(t.id,{}),pr.get(t.id).startRight=g,Rl(m,t.startLabelRight)}if(t.endLabelLeft){const g=e.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner"),C=await so(x,t.endLabelLeft,El(t.labelStyle)||"",!1,!1);m=C;let k=C.getBBox();if(n){const v=C.children[0],w=Zt(C);k=v.getBoundingClientRect(),w.attr("width",k.width),w.attr("height",k.height)}x.attr("transform",bl(k,n)),g.node().appendChild(C),pr.get(t.id)||pr.set(t.id,{}),pr.get(t.id).endLeft=g,Rl(m,t.endLabelLeft)}if(t.endLabelRight){const g=e.insert("g").attr("class","edgeTerminals"),x=g.insert("g").attr("class","inner"),C=await so(x,t.endLabelRight,El(t.labelStyle)||"",!1,!1);m=C;let k=C.getBBox();if(n){const v=C.children[0],w=Zt(C);k=v.getBoundingClientRect(),w.attr("width",k.width),w.attr("height",k.height)}x.attr("transform",bl(k,n)),g.node().appendChild(C),pr.get(t.id)||pr.set(t.id,{}),pr.get(t.id).endRight=g,Rl(m,t.endLabelRight)}return h},"insertEdgeLabel");function Rl(e,t){$r(ue())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}S(Rl,"setTerminalWidth");var SW=S((e,t)=>{ht.debug("Moving label abc88 ",e.id,e.label,Jh.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const n=ue(),{subGraphTitleTotalMargin:i}=kx(n);if(e.label){const o=Jh.get(e.id);let s=e.x,l=e.y;if(r){const u=$n.calcLabelPosition(r);ht.debug("Moving label "+e.label+" from (",s,",",l,") to (",u.x,",",u.y,") abc88"),t.updatedPath&&(s=u.x,l=u.y)}o.attr("transform",`translate(${s}, ${l+i/2})`)}if(e.startLabelLeft){const o=pr.get(e.id).startLeft;let s=e.x,l=e.y;if(r){const u=$n.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);s=u.x,l=u.y}o.attr("transform",`translate(${s}, ${l})`)}if(e.startLabelRight){const o=pr.get(e.id).startRight;let s=e.x,l=e.y;if(r){const u=$n.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);s=u.x,l=u.y}o.attr("transform",`translate(${s}, ${l})`)}if(e.endLabelLeft){const o=pr.get(e.id).endLeft;let s=e.x,l=e.y;if(r){const u=$n.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);s=u.x,l=u.y}o.attr("transform",`translate(${s}, ${l})`)}if(e.endLabelRight){const o=pr.get(e.id).endRight;let s=e.x,l=e.y;if(r){const u=$n.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);s=u.x,l=u.y}o.attr("transform",`translate(${s}, ${l})`)}},"positionEdgeLabel"),TW=S((e,t)=>{const r=e.x,n=e.y,i=Math.abs(t.x-r),o=Math.abs(t.y-n),s=e.width/2,l=e.height/2;return i>=s||o>=l},"outsideNode"),_W=S((e,t,r)=>{ht.debug(`intersection calc abc89:
|
|
445
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
446
|
+
insidePoint : ${JSON.stringify(r)}
|
|
447
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const n=e.x,i=e.y,o=Math.abs(n-r.x),s=e.width/2;let l=r.x<t.x?s-o:s+o;const u=e.height/2,h=Math.abs(t.y-r.y),d=Math.abs(t.x-r.x);if(Math.abs(i-t.y)*s>Math.abs(n-t.x)*u){let f=r.y<t.y?t.y-u-i:i-u-t.y;l=d*f/h;const m={x:r.x<t.x?r.x+l:r.x-d+l,y:r.y<t.y?r.y+h-f:r.y-h+f};return l===0&&(m.x=t.x,m.y=t.y),d===0&&(m.x=t.x),h===0&&(m.y=t.y),ht.debug(`abc89 top/bottom calc, Q ${h}, q ${f}, R ${d}, r ${l}`,m),m}else{r.x<t.x?l=t.x-s-n:l=n-s-t.x;let f=h*l/d,m=r.x<t.x?r.x+d-l:r.x-d+l,g=r.y<t.y?r.y+f:r.y-f;return ht.debug(`sides calc abc89, Q ${h}, q ${f}, R ${d}, r ${l}`,{_x:m,_y:g}),l===0&&(m=t.x,g=t.y),d===0&&(m=t.x),h===0&&(g=t.y),{x:m,y:g}}},"intersection"),Gb=S((e,t)=>{ht.warn("abc88 cutPathAtIntersect",e,t);let r=[],n=e[0],i=!1;return e.forEach(o=>{if(ht.info("abc88 checking point",o,t),!TW(t,o)&&!i){const s=_W(t,n,o);ht.debug("abc88 inside",o,n,s),ht.debug("abc88 intersection",s,t);let l=!1;r.forEach(u=>{l=l||u.x===s.x&&u.y===s.y}),r.some(u=>u.x===s.x&&u.y===s.y)?ht.warn("abc88 no intersect",s,r):r.push(s),i=!0}else ht.warn("abc88 outside",o,n),n=o,i||r.push(o)}),ht.debug("returning points",r),r},"cutPathAtIntersect");function QL(e){const t=[],r=[];for(let n=1;n<e.length-1;n++){const i=e[n-1],o=e[n],s=e[n+1];(i.x===o.x&&o.y===s.y&&Math.abs(o.x-s.x)>5&&Math.abs(o.y-i.y)>5||i.y===o.y&&o.x===s.x&&Math.abs(o.x-i.x)>5&&Math.abs(o.y-s.y)>5)&&(t.push(o),r.push(n))}return{cornerPoints:t,cornerPointPositions:r}}S(QL,"extractCornerPoints");var Xb=S(function(e,t,r){const n=t.x-e.x,i=t.y-e.y,o=Math.sqrt(n*n+i*i),s=r/o;return{x:t.x-s*n,y:t.y-s*i}},"findAdjacentPoint"),EW=S(function(e){const{cornerPointPositions:t}=QL(e),r=[];for(let n=0;n<e.length;n++)if(t.includes(n)){const i=e[n-1],o=e[n+1],s=e[n],l=Xb(i,s,5),u=Xb(o,s,5),h=u.x-l.x,d=u.y-l.y;r.push(l);const f=Math.sqrt(2)*2;let m={x:s.x,y:s.y};if(Math.abs(o.x-i.x)>10&&Math.abs(o.y-i.y)>=10){ht.debug("Corner point fixing",Math.abs(o.x-i.x),Math.abs(o.y-i.y));const g=5;s.x===l.x?m={x:h<0?l.x-g+f:l.x+g-f,y:d<0?l.y-f:l.y+f}:m={x:h<0?l.x-f:l.x+f,y:d<0?l.y-g+f:l.y+g-f}}else ht.debug("Corner point skipping fixing",Math.abs(o.x-i.x),Math.abs(o.y-i.y));r.push(m,u)}else r.push(e[n]);return r},"fixCorners"),LW=S((e,t,r)=>{const n=e-t-r,i=2,o=2,s=i+o,l=Math.floor(n/s),u=Array(l).fill(`${i} ${o}`).join(" ");return`0 ${t} ${u} ${r}`},"generateDashArray"),BW=S(function(e,t,r,n,i,o,s,l=!1){var G;if(!s)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:u}=ue();let h=t.points,d=!1;const f=i;var m=o;const g=[];for(const $ in t.cssCompiledStyles)K_($)||g.push(t.cssCompiledStyles[$]);ht.debug("UIO intersect check",t.points,m.x,f.x),m.intersect&&f.intersect&&!l&&(h=h.slice(1,t.points.length-1),h.unshift(f.intersect(h[0])),ht.debug("Last point UIO",t.start,"-->",t.end,h[h.length-1],m,m.intersect(h[h.length-1])),h.push(m.intersect(h[h.length-1])));const x=btoa(JSON.stringify(h));t.toCluster&&(ht.info("to cluster abc88",r.get(t.toCluster)),h=Gb(t.points,r.get(t.toCluster).node),d=!0),t.fromCluster&&(ht.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(h,null,2)),h=Gb(h.reverse(),r.get(t.fromCluster).node).reverse(),d=!0);let C=h.filter($=>!Number.isNaN($.y));const k=vW(t.curve);k!=="rounded"&&(C=EW(C));let v=Wl;switch(k){case"linear":v=Wl;break;case"basis":v=_m;break;case"cardinal":v=AS;break;case"bumpX":v=TS;break;case"bumpY":v=_S;break;case"catmullRom":v=IS;break;case"monotoneX":v=DS;break;case"monotoneY":v=$S;break;case"natural":v=zS;break;case"step":v=qS;break;case"stepAfter":v=HS;break;case"stepBefore":v=WS;break;case"rounded":v=Wl;break;default:v=_m}const{x:w,y:_}=wj(t),A=a8().x(w).y(_).curve(v);let F;switch(t.thickness){case"normal":F="edge-thickness-normal";break;case"thick":F="edge-thickness-thick";break;case"invisible":F="edge-thickness-invisible";break;default:F="edge-thickness-normal"}switch(t.pattern){case"solid":F+=" edge-pattern-solid";break;case"dotted":F+=" edge-pattern-dotted";break;case"dashed":F+=" edge-pattern-dashed";break;default:F+=" edge-pattern-solid"}let E,B=k==="rounded"?ZL(JL(C,t),5):A(C);const N=Array.isArray(t.style)?t.style:[t.style];let q=N.find($=>$==null?void 0:$.startsWith("stroke:")),O="";t.animate&&(O="edge-animation-fast"),t.animation&&(O="edge-animation-"+t.animation);let D=!1;if(t.look==="handDrawn"){const $=Bt.svg(e);Object.assign([],C);const Z=$.path(B,{roughness:.3,seed:u});F+=" transition",E=Zt(Z).select("path").attr("id",`${s}-${t.id}`).attr("class"," "+F+(t.classes?" "+t.classes:"")+(O?" "+O:"")).attr("style",N?N.reduce((j,J)=>j+";"+J,""):"");let R=E.attr("d");E.attr("d",R),e.node().appendChild(E.node())}else{const $=g.join(";"),Z=N?N.reduce((lt,mt)=>lt+mt+";",""):"",R=($?$+";"+Z+";":Z)+";"+(N?N.reduce((lt,mt)=>lt+";"+mt,""):"");E=e.append("path").attr("d",B).attr("id",`${s}-${t.id}`).attr("class"," "+F+(t.classes?" "+t.classes:"")+(O?" "+O:"")).attr("style",R),q=(G=R.match(/stroke:([^;]+)/))==null?void 0:G[1],D=t.animate===!0||!!t.animation||$.includes("animation");const j=E.node(),J=typeof j.getTotalLength=="function"?j.getTotalLength():0,P=Jk[t.arrowTypeStart]||0,ct=Jk[t.arrowTypeEnd]||0;if(t.look==="neo"&&!D){const mt=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?LW(J,P,ct):`0 ${P} ${J-P-ct} ${ct}`}; stroke-dashoffset: 0;`;E.attr("style",mt+E.attr("style"))}}E.attr("data-edge",!0),E.attr("data-et","edge"),E.attr("data-id",t.id),E.attr("data-points",x),E.attr("data-look",cr(t.look)),t.showPoints&&C.forEach($=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",$.x).attr("cy",$.y)});let K="";(ue().flowchart.arrowMarkerAbsolute||ue().state.arrowMarkerAbsolute)&&(K=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,K=K.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),ht.info("arrowTypeStart",t.arrowTypeStart),ht.info("arrowTypeEnd",t.arrowTypeEnd);const tt=!D&&(t==null?void 0:t.look)==="neo";CW(E,t,K,s,n,tt,q);const U=Math.floor(h.length/2),W=h[U];$n.isLabelCoordinateInPath(W,E.attr("d"))||(d=!0);let H={};return d&&(H.updatedPath=h),H.originalPath=t.points,H},"insertEdge");function ZL(e,t){if(e.length<2)return"";let r="";const n=e.length,i=1e-5;for(let o=0;o<n;o++){const s=e[o],l=e[o-1],u=e[o+1];if(o===0)r+=`M${s.x},${s.y}`;else if(o===n-1)r+=`L${s.x},${s.y}`;else{const h=s.x-l.x,d=s.y-l.y,f=u.x-s.x,m=u.y-s.y,g=Math.hypot(h,d),x=Math.hypot(f,m);if(g<i||x<i){r+=`L${s.x},${s.y}`;continue}const C=h/g,k=d/g,v=f/x,w=m/x,_=C*v+k*w,A=Math.max(-1,Math.min(1,_)),F=Math.acos(A);if(F<i||Math.abs(Math.PI-F)<i){r+=`L${s.x},${s.y}`;continue}const E=Math.min(t/Math.sin(F/2),g/2,x/2),B=s.x-C*E,N=s.y-k*E,q=s.x+v*E,O=s.y+w*E;r+=`L${B},${N}`,r+=`Q${s.x},${s.y} ${q},${O}`}}return r}S(ZL,"generateRoundedPath");function ry(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,n=t.y-e.y;return{angle:Math.atan2(n,r),deltaX:r,deltaY:n}}S(ry,"calculateDeltaAndAngle");function JL(e,t){const r=e.map(i=>({...i}));if(e.length>=2&&Sr[t.arrowTypeStart]){const i=Sr[t.arrowTypeStart],o=e[0],s=e[1],{angle:l}=ry(o,s),u=i*Math.cos(l),h=i*Math.sin(l);r[0].x=o.x+u,r[0].y=o.y+h}const n=e.length;if(n>=2&&Sr[t.arrowTypeEnd]){const i=Sr[t.arrowTypeEnd],o=e[n-1],s=e[n-2],{angle:l}=ry(s,o),u=i*Math.cos(l),h=i*Math.sin(l);r[n-1].x=o.x-u,r[n-1].y=o.y-h}return r}S(JL,"applyMarkerOffsetsToPoints");var AW=S((e,t,r,n)=>{t.forEach(i=>{JW[i](e,r,n)})},"insertMarkers"),FW=S((e,t,r)=>{ht.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("marker").attr("id",r+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),IW=S((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),MW=S((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),OW=S((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),RW=S((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),PW=S((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),NW=S((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),DW=S((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",r+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),$W=S((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"),jW=S((e,t,r)=>{const n=Re(),{themeVariables:i}=n,{transitionColor:o}=i;e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${o}`)},"barbNeo"),zW=S((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"),qW=S((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),WW=S((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"),HW=S((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),UW=S((e,t,r)=>{const n=Re(),{themeVariables:i}=n,{strokeWidth:o}=i;e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${o}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${o}`)},"only_one_neo"),VW=S((e,t,r)=>{const n=Re(),{themeVariables:i}=n,{strokeWidth:o,mainBkg:s}=i,l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",s??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),l.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${o}`);const u=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");u.append("circle").attr("fill",s??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),u.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${o}`)},"zero_or_one_neo"),YW=S((e,t,r)=>{const n=Re(),{themeVariables:i}=n,{strokeWidth:o}=i;e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${o}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${o}`)},"one_or_more_neo"),GW=S((e,t,r)=>{const n=Re(),{themeVariables:i}=n,{strokeWidth:o,mainBkg:s}=i,l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",s??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),l.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${o}`);const u=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");u.append("circle").attr("fill",s??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),u.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${o}`)},"zero_or_more_neo"),XW=S((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
|
|
448
|
+
L20,10
|
|
449
|
+
M20,10
|
|
450
|
+
L0,20`)},"requirement_arrow"),KW=S((e,t,r)=>{const n=Re(),{themeVariables:i}=n,{strokeWidth:o}=i;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${o}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
451
|
+
L20,10
|
|
452
|
+
M20,10
|
|
453
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),QW=S((e,t,r)=>{const n=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),ZW=S((e,t,r)=>{const n=Re(),{themeVariables:i}=n,{strokeWidth:o}=i,s=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),s.selectAll("*").attr("stroke-width",`${o}`)},"requirement_contains_neo"),JW={extension:FW,composition:IW,aggregation:MW,dependency:OW,lollipop:RW,point:PW,circle:NW,cross:DW,barb:$W,barbNeo:jW,only_one:zW,zero_or_one:qW,one_or_more:WW,zero_or_more:HW,only_one_neo:UW,zero_or_one_neo:VW,one_or_more_neo:YW,zero_or_more_neo:GW,requirement_arrow:XW,requirement_contains:QW,requirement_arrow_neo:KW,requirement_contains_neo:ZW},tH=AW,eH={common:fc,getConfig:Re,insertCluster:Z7,insertEdge:BW,insertEdgeLabel:wW,insertMarkers:tH,insertNode:KL,interpolateToCurve:px,labelHelper:Ht,log:ht,positionEdgeLabel:SW},ac={},tB=S(e=>{for(const t of e)ac[t.name]=t},"registerLayoutLoaders"),rH=S(()=>{tB([{name:"dagre",loader:S(async()=>await oe(()=>import("./dagre-KV5264BT-DW4sXVyq.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")},{name:"cose-bilkent",loader:S(async()=>await oe(()=>import("./cose-bilkent-S5V4N54A-x2mi929v.js"),__vite__mapDeps([6,7])),"loader")}])},"registerDefaultLayoutLoaders");rH();var nJ=S(async(e,t)=>{if(!(e.layoutAlgorithm in ac))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const d of e.nodes){const f=d.domId||d.id;d.domId=`${e.diagramId}-${f}`}const r=ac[e.layoutAlgorithm],n=await r.loader(),{theme:i,themeVariables:o}=e.config,{useGradient:s,gradientStart:l,gradientStop:u}=o,h=t.attr("id");if(t.append("defs").append("filter").attr("id",`${h}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i!=null&&i.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${h}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${i!=null&&i.includes("dark")?"#FFFFFF":"#000000"}`),s){const d=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");d.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),d.append("svg:stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}return n.render(e,t,eH,{algorithm:r.algorithm})},"render"),iJ=S((e="",{fallback:t="dagre"}={})=>{if(e in ac)return e;if(t in ac)return ht.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"),eB="comm",rB="rule",nB="decl",nH="@import",iH="@namespace",oH="@keyframes",aH="@layer",iB=Math.abs,Rx=String.fromCharCode;function oB(e){return e.trim()}function hh(e,t,r){return e.replace(t,r)}function sH(e,t,r){return e.indexOf(t,r)}function Ga(e,t){return e.charCodeAt(t)|0}function ms(e,t,r){return e.slice(t,r)}function ii(e){return e.length}function lH(e){return e.length}function Yu(e,t){return t.push(e),e}var Ed=1,ys=1,aB=0,Tn=0,Qe=0,Ss="";function Px(e,t,r,n,i,o,s,l){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ed,column:ys,length:s,return:"",siblings:l}}function cH(){return Qe}function uH(){return Qe=Tn>0?Ga(Ss,--Tn):0,ys--,Qe===10&&(ys=1,Ed--),Qe}function qn(){return Qe=Tn<aB?Ga(Ss,Tn++):0,ys++,Qe===10&&(ys=1,Ed++),Qe}function lo(){return Ga(Ss,Tn)}function dh(){return Tn}function Ld(e,t){return ms(Ss,e,t)}function sc(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 hH(e){return Ed=ys=1,aB=ii(Ss=e),Tn=0,[]}function dH(e){return Ss="",e}function Jp(e){return oB(Ld(Tn-1,ny(e===91?e+2:e===40?e+1:e)))}function fH(e){for(;(Qe=lo())&&Qe<33;)qn();return sc(e)>2||sc(Qe)>3?"":" "}function pH(e,t){for(;--t&&qn()&&!(Qe<48||Qe>102||Qe>57&&Qe<65||Qe>70&&Qe<97););return Ld(e,dh()+(t<6&&lo()==32&&qn()==32))}function ny(e){for(;qn();)switch(Qe){case e:return Tn;case 34:case 39:e!==34&&e!==39&&ny(Qe);break;case 40:e===41&&ny(e);break;case 92:qn();break}return Tn}function gH(e,t){for(;qn()&&e+Qe!==57;)if(e+Qe===84&&lo()===47)break;return"/*"+Ld(t,Tn-1)+"*"+Rx(e===47?e:qn())}function mH(e){for(;!sc(lo());)qn();return Ld(e,Tn)}function yH(e){return dH(fh("",null,null,null,[""],e=hH(e),0,[0],e))}function fh(e,t,r,n,i,o,s,l,u){for(var h=0,d=0,f=s,m=0,g=0,x=0,C=1,k=1,v=1,w=0,_="",A=i,F=o,E=n,B=_;k;)switch(x=w,w=qn()){case 40:if(x!=108&&Ga(B,f-1)==58){sH(B+=hh(Jp(w),"&","&\f"),"&\f",iB(h?l[h-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:B+=Jp(w);break;case 9:case 10:case 13:case 32:B+=fH(x);break;case 92:B+=pH(dh()-1,7);continue;case 47:switch(lo()){case 42:case 47:Yu(xH(gH(qn(),dh()),t,r,u),u),(sc(x||1)==5||sc(lo()||1)==5)&&ii(B)&&ms(B,-1,void 0)!==" "&&(B+=" ");break;default:B+="/"}break;case 123*C:l[h++]=ii(B)*v;case 125*C:case 59:case 0:switch(w){case 0:case 125:k=0;case 59+d:v==-1&&(B=hh(B,/\f/g,"")),g>0&&(ii(B)-f||C===0&&x===47)&&Yu(g>32?Qb(B+";",n,r,f-1,u):Qb(hh(B," ","")+";",n,r,f-2,u),u);break;case 59:B+=";";default:if(Yu(E=Kb(B,t,r,h,d,i,l,_,A=[],F=[],f,o),o),w===123)if(d===0)fh(B,t,E,E,A,o,f,l,F);else{switch(m){case 99:if(Ga(B,3)===110)break;case 108:if(Ga(B,2)===97)break;default:d=0;case 100:case 109:case 115:}d?fh(e,E,E,n&&Yu(Kb(e,E,E,0,0,i,l,_,i,A=[],f,F),F),i,F,f,l,n?A:F):fh(B,E,E,E,[""],F,0,l,F)}}h=d=g=0,C=v=1,_=B="",f=s;break;case 58:f=1+ii(B),g=x;default:if(C<1){if(w==123)--C;else if(w==125&&C++==0&&uH()==125)continue}switch(B+=Rx(w),w*C){case 38:v=d>0?1:(B+="\f",-1);break;case 44:l[h++]=(ii(B)-1)*v,v=1;break;case 64:lo()===45&&(B+=Jp(qn())),m=lo(),d=f=ii(_=B+=mH(dh())),w++;break;case 45:x===45&&ii(B)==2&&(C=0)}}return o}function Kb(e,t,r,n,i,o,s,l,u,h,d,f){for(var m=i-1,g=i===0?o:[""],x=lH(g),C=0,k=0,v=0;C<n;++C)for(var w=0,_=ms(e,m+1,m=iB(k=s[C])),A=e;w<x;++w)(A=oB(k>0?g[w]+" "+_:hh(_,/&\f/g,g[w])))&&(u[v++]=A);return Px(e,t,r,i===0?rB:l,u,h,d,f)}function xH(e,t,r,n){return Px(e,t,r,eB,Rx(cH()),ms(e,2,-2),0,n)}function Qb(e,t,r,n,i){return Px(e,t,r,nB,ms(e,0,n),ms(e,n+1,-1),n,i)}function iy(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function CH(e,t,r,n){switch(e.type){case aH:if(e.children.length)break;case nH:case iH:case nB:return e.return=e.return||e.value;case eB:return"";case oH:return e.return=e.value+"{"+iy(e.children,n)+"}";case rB:if(!ii(e.value=e.props.join(",")))return""}return ii(r=iy(e.children,n))?e.return=e.value+"{"+r+"}":""}var kH=B_(Object.keys,Object),bH=Object.prototype,vH=bH.hasOwnProperty;function wH(e){if(!xd(e))return kH(e);var t=[];for(var r in Object(e))vH.call(e,r)&&r!="constructor"&&t.push(r);return t}var oy=aa(di,"DataView"),ay=aa(di,"Promise"),sy=aa(di,"Set"),ly=aa(di,"WeakMap"),Zb="[object Map]",SH="[object Object]",Jb="[object Promise]",tv="[object Set]",ev="[object WeakMap]",rv="[object DataView]",TH=oa(oy),_H=oa(ic),EH=oa(ay),LH=oa(sy),BH=oa(ly),zo=ks;(oy&&zo(new oy(new ArrayBuffer(1)))!=rv||ic&&zo(new ic)!=Zb||ay&&zo(ay.resolve())!=Jb||sy&&zo(new sy)!=tv||ly&&zo(new ly)!=ev)&&(zo=function(e){var t=ks(e),r=t==SH?e.constructor:void 0,n=r?oa(r):"";if(n)switch(n){case TH:return rv;case _H:return Zb;case EH:return Jb;case LH:return tv;case BH:return ev}return t});var AH="[object Map]",FH="[object Set]",IH=Object.prototype,MH=IH.hasOwnProperty;function nv(e){if(e==null)return!0;if(Cd(e)&&(Wh(e)||typeof e=="string"||typeof e.splice=="function"||dx(e)||fx(e)||qh(e)))return!e.length;var t=zo(e);if(t==AH||t==FH)return!e.size;if(xd(e))return!wH(e).length;for(var r in e)if(MH.call(e,r))return!1;return!0}var sB="c4",OH=S(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),RH=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./c4Diagram-AHTNJAMY-E--r_ULO.js");return{diagram:t}},__vite__mapDeps([8,9]));return{id:sB,diagram:e}},"loader"),PH={id:sB,detector:OH,loader:RH},NH=PH,lB="flowchart",DH=S((e,t)=>{var r,n;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),$H=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-fW85OwTQ.js");return{diagram:t}},__vite__mapDeps([10,11,9,12,13,14]));return{id:lB,diagram:e}},"loader"),jH={id:lB,detector:DH,loader:$H},zH=jH,cB="flowchart-v2",qH=S((e,t)=>{var r,n,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),WH=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-fW85OwTQ.js");return{diagram:t}},__vite__mapDeps([10,11,9,12,13,14]));return{id:cB,diagram:e}},"loader"),HH={id:cB,detector:qH,loader:WH},UH=HH,uB="er",VH=S(e=>/^\s*erDiagram/.test(e),"detector"),YH=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./erDiagram-SMLLAGMA-BDUL-kJe.js");return{diagram:t}},__vite__mapDeps([15,12,13,14]));return{id:uB,diagram:e}},"loader"),GH={id:uB,detector:VH,loader:YH},XH=GH,hB="gitGraph",KH=S(e=>/^\s*gitGraph/.test(e),"detector"),QH=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./gitGraphDiagram-UUTBAWPF-K-paV9xZ.js");return{diagram:t}},__vite__mapDeps([16,17,18,19,4,2]));return{id:hB,diagram:e}},"loader"),ZH={id:hB,detector:KH,loader:QH},JH=ZH,dB="gantt",tU=S(e=>/^\s*gantt/.test(e),"detector"),eU=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./ganttDiagram-T4ZO3ILL-83CRb1AY.js");return{diagram:t}},__vite__mapDeps([20,21,22,23]));return{id:dB,diagram:e}},"loader"),rU={id:dB,detector:tU,loader:eU},nU=rU,fB="info",iU=S(e=>/^\s*info/.test(e),"detector"),oU=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./infoDiagram-42DDH7IO-Cc_oSQnw.js");return{diagram:t}},__vite__mapDeps([24,19,4,2]));return{id:fB,diagram:e}},"loader"),aU={id:fB,detector:iU,loader:oU},pB="pie",sU=S(e=>/^\s*pie/.test(e),"detector"),lU=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./pieDiagram-DEJITSTG-CCncK7Ae.js");return{diagram:t}},__vite__mapDeps([25,17,19,4,2,26,27,22]));return{id:pB,diagram:e}},"loader"),cU={id:pB,detector:sU,loader:lU},gB="quadrantChart",uU=S(e=>/^\s*quadrantChart/.test(e),"detector"),hU=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./quadrantDiagram-34T5L4WZ-CU7mok4R.js");return{diagram:t}},__vite__mapDeps([28,21,22,23]));return{id:gB,diagram:e}},"loader"),dU={id:gB,detector:uU,loader:hU},fU=dU,mB="xychart",pU=S(e=>/^\s*xychart(-beta)?/.test(e),"detector"),gU=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./xychartDiagram-5P7HB3ND-C1yPAyO7.js");return{diagram:t}},__vite__mapDeps([29,22,27,21,23]));return{id:mB,diagram:e}},"loader"),mU={id:mB,detector:pU,loader:gU},yU=mU,yB="requirement",xU=S(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),CU=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./requirementDiagram-MS252O5E-SMauWCw5.js");return{diagram:t}},__vite__mapDeps([30,12,13]));return{id:yB,diagram:e}},"loader"),kU={id:yB,detector:xU,loader:CU},bU=kU,xB="sequence",vU=S(e=>/^\s*sequenceDiagram/.test(e),"detector"),wU=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./sequenceDiagram-FGHM5R23-MHYTBnOl.js");return{diagram:t}},__vite__mapDeps([31,9,18]));return{id:xB,diagram:e}},"loader"),SU={id:xB,detector:vU,loader:wU},TU=SU,CB="class",_U=S((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"),EU=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./classDiagram-6PBFFD2Q-Cxwtyyun.js");return{diagram:t}},__vite__mapDeps([32,33,11,9,12,13]));return{id:CB,diagram:e}},"loader"),LU={id:CB,detector:_U,loader:EU},BU=LU,kB="classDiagram",AU=S((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"),FU=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./classDiagram-v2-HSJHXN6E-Cxwtyyun.js");return{diagram:t}},__vite__mapDeps([34,33,11,9,12,13]));return{id:kB,diagram:e}},"loader"),IU={id:kB,detector:AU,loader:FU},MU=IU,bB="state",OU=S((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"),RU=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./stateDiagram-FHFEXIEX-CsMKsb6o.js");return{diagram:t}},__vite__mapDeps([35,36,12,13,1,2,3,4]));return{id:bB,diagram:e}},"loader"),PU={id:bB,detector:OU,loader:RU},NU=PU,vB="stateDiagram",DU=S((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"),$U=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./stateDiagram-v2-QKLJ7IA2-DbLe4kPp.js");return{diagram:t}},__vite__mapDeps([37,36,12,13]));return{id:vB,diagram:e}},"loader"),jU={id:vB,detector:DU,loader:$U},zU=jU,wB="journey",qU=S(e=>/^\s*journey/.test(e),"detector"),WU=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./journeyDiagram-VCZTEJTY-CCc0_QKG.js");return{diagram:t}},__vite__mapDeps([38,11,9,26]));return{id:wB,diagram:e}},"loader"),HU={id:wB,detector:qU,loader:WU},UU=HU,VU=S((e,t,r)=>{ht.debug(`rendering svg for syntax error
|
|
454
|
+
`);const n=g8(t),i=n.append("g");n.attr("viewBox","0 0 2412 512"),Gw(n,100,512,!0),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),i.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"),SB={draw:VU},YU=SB,GU={db:{},renderer:SB,parser:{parse:S(()=>{},"parse")}},XU=GU,TB="flowchart-elk",KU=S((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"),QU=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./flowDiagram-DWJPFMVM-fW85OwTQ.js");return{diagram:t}},__vite__mapDeps([10,11,9,12,13,14]));return{id:TB,diagram:e}},"loader"),ZU={id:TB,detector:KU,loader:QU},JU=ZU,_B="timeline",tV=S(e=>/^\s*timeline/.test(e),"detector"),eV=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./timeline-definition-GMOUNBTQ-DlIXJ2pA.js");return{diagram:t}},__vite__mapDeps([39,26]));return{id:_B,diagram:e}},"loader"),rV={id:_B,detector:tV,loader:eV},nV=rV,EB="mindmap",iV=S(e=>/^\s*mindmap/.test(e),"detector"),oV=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./mindmap-definition-QFDTVHPH-CP-B1JEE.js");return{diagram:t}},__vite__mapDeps([40,12,13]));return{id:EB,diagram:e}},"loader"),aV={id:EB,detector:iV,loader:oV},sV=aV,LB="kanban",lV=S(e=>/^\s*kanban/.test(e),"detector"),cV=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./kanban-definition-6JOO6SKY-1-l-PeYn.js");return{diagram:t}},__vite__mapDeps([41,11]));return{id:LB,diagram:e}},"loader"),uV={id:LB,detector:lV,loader:cV},hV=uV,BB="sankey",dV=S(e=>/^\s*sankey(-beta)?/.test(e),"detector"),fV=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./sankeyDiagram-XADWPNL6-DW_mPG89.js");return{diagram:t}},__vite__mapDeps([42,27,22]));return{id:BB,diagram:e}},"loader"),pV={id:BB,detector:dV,loader:fV},gV=pV,AB="packet",mV=S(e=>/^\s*packet(-beta)?/.test(e),"detector"),yV=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./diagram-TYMM5635-DSg8dR3C.js");return{diagram:t}},__vite__mapDeps([43,17,19,4,2]));return{id:AB,diagram:e}},"loader"),xV={id:AB,detector:mV,loader:yV},FB="radar",CV=S(e=>/^\s*radar-beta/.test(e),"detector"),kV=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./diagram-MMDJMWI5-CBr4DHvV.js");return{diagram:t}},__vite__mapDeps([44,17,19,4,2]));return{id:FB,diagram:e}},"loader"),bV={id:FB,detector:CV,loader:kV},IB="block",vV=S(e=>/^\s*block(-beta)?/.test(e),"detector"),wV=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./blockDiagram-DXYQGD6D-U4fM5gAX.js");return{diagram:t}},__vite__mapDeps([45,11,5,1,2,14]));return{id:IB,diagram:e}},"loader"),SV={id:IB,detector:vV,loader:wV},TV=SV,MB="treeView",_V=S(e=>/^\s*treeView-beta/.test(e),"detector"),EV=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./diagram-5BDNPKRD-DLo4oBM2.js");return{diagram:t}},__vite__mapDeps([46,17,18,19,4,2]));return{id:MB,diagram:e}},"loader"),LV={id:MB,detector:_V,loader:EV},BV=LV,OB="architecture",AV=S(e=>/^\s*architecture/.test(e),"detector"),FV=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./architectureDiagram-Q4EWVU46-C5MrjkS7.js");return{diagram:t}},__vite__mapDeps([47,17,19,4,2,7]));return{id:OB,diagram:e}},"loader"),IV={id:OB,detector:AV,loader:FV},MV=IV,RB="ishikawa",OV=S(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),RV=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./ishikawaDiagram-UXIWVN3A-Cxv3ZU_a.js");return{diagram:t}},[]);return{id:RB,diagram:e}},"loader"),PV={id:RB,detector:OV,loader:RV},PB="venn",NV=S(e=>/^\s*venn-beta/.test(e),"detector"),DV=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./vennDiagram-DHZGUBPP-C_foI3w6.js");return{diagram:t}},[]);return{id:PB,diagram:e}},"loader"),$V={id:PB,detector:NV,loader:DV},jV=$V,NB="treemap",zV=S(e=>/^\s*treemap/.test(e),"detector"),qV=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./diagram-G4DWMVQ6-BNRv_j23.js");return{diagram:t}},__vite__mapDeps([48,13,17,19,4,2,23,27,22]));return{id:NB,diagram:e}},"loader"),WV={id:NB,detector:zV,loader:qV},DB="wardley-beta",HV=S(e=>/^\s*wardley-beta/i.test(e),"detector"),UV=S(async()=>{const{diagram:e}=await oe(async()=>{const{diagram:t}=await import("./wardleyDiagram-NUSXRM2D--Uc3JizG.js");return{diagram:t}},__vite__mapDeps([49,17,19,4,2]));return{id:DB,diagram:e}},"loader"),VV={id:DB,detector:HV,loader:UV},YV=VV,iv=!1,Bd=S(()=>{iv||(iv=!0,Sh("error",XU,e=>e.toLowerCase().trim()==="error"),Sh("---",{db:{clear:S(()=>{},"clear")},styles:{},renderer:{draw:S(()=>{},"draw")},parser:{parse:S(()=>{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:S(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),dm(JU,sV,MV),dm(NH,hV,MU,BU,XH,nU,aU,cU,bU,TU,UH,zH,nV,JH,zU,NU,UU,fU,gV,xV,yU,TV,BV,bV,PV,WV,jV,YV))},"addDiagrams"),GV=S(async()=>{ht.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Xo).map(async([r,{detector:n,loader:i}])=>{if(i)try{mm(r)}catch{try{const{diagram:o,id:s}=await i();Sh(s,o,n)}catch(o){throw ht.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Xo[r],o}}}))).filter(r=>r.status==="rejected");if(t.length>0){ht.error(`Failed to load ${t.length} external diagrams`);for(const r of t)ht.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),XV="graphics-document document";function $B(e,t){e.attr("role",XV),t!==""&&e.attr("aria-roledescription",t)}S($B,"setA11yDiagramInfo");function jB(e,t,r,n){if(e.insert!==void 0){if(r){const i=`chart-desc-${n}`;e.attr("aria-describedby",i),e.insert("desc",":first-child").attr("id",i).text(r)}if(t){const i=`chart-title-${n}`;e.attr("aria-labelledby",i),e.insert("title",":first-child").attr("id",i).text(t)}}}S(jB,"addSVGa11yTitleDescription");var Yo,cy=(Yo=class{constructor(t,r,n,i,o){this.type=t,this.text=r,this.db=n,this.parser=i,this.renderer=o}static async fromText(t,r={}){var h,d;const n=Re(),i=Dy(t,n);t=xq(t)+`
|
|
455
|
+
`;try{mm(i)}catch{const f=OP(i);if(!f)throw new Ow(`Diagram ${i} not found.`);const{id:m,diagram:g}=await f();Sh(m,g)}const{db:o,parser:s,renderer:l,init:u}=mm(i);return s.parser&&(s.parser.yy=o),(h=o.clear)==null||h.call(o),u==null||u(n),r.title&&((d=o.setDiagramTitle)==null||d.call(o,r.title)),await s.parse(t),new Yo(i,t,o,s,l)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},S(Yo,"Diagram"),Yo),ov=[],KV=S(()=>{ov.forEach(e=>{e()}),ov=[]},"attachFunctions"),QV=S(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function zB(e){const t=e.match(Mw);if(!t)return{text:e,metadata:{}};let r=vj(t[1],{schema:bj})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:e.slice(t[0].length),metadata:n}}S(zB,"extractFrontMatter");var ZV=S(e=>e.replace(/\r\n?/g,`
|
|
456
|
+
`).replace(/<(\w+)([^>]*)>/g,(t,r,n)=>"<"+r+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),JV=S(e=>{const{text:t,metadata:r}=zB(e),{displayMode:n,title:i,config:o={}}=r;return n&&(o.gantt||(o.gantt={}),o.gantt.displayMode=n),{title:i,config:o,text:t}},"processFrontmatter"),tY=S(e=>{const t=$n.detectInit(e)??{},r=$n.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:n})=>n==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:oq(e),directive:t}},"processDirectives");function Nx(e){const t=ZV(e),r=JV(t),n=tY(r.text),i=Cx(r.config,n.directive);return e=QV(n.text),{code:e,title:r.title,config:i}}S(Nx,"preprocessDiagram");function qB(e){const t=new TextEncoder().encode(e),r=Array.from(t,n=>String.fromCodePoint(n)).join("");return btoa(r)}S(qB,"toBase64");var eY=5e4,rY="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",nY="sandbox",iY="loose",oY="http://www.w3.org/2000/svg",aY="http://www.w3.org/1999/xlink",sY="http://www.w3.org/1999/xhtml",lY="100%",cY="100%",uY="border:0;margin:0;",hY="margin:0",dY="allow-top-navigation-by-user-activation allow-popups",fY='The "iframe" tag is not supported by your browser.',pY=["foreignobject"],gY=["dominant-baseline"];function Dx(e){const t=Nx(e);return vh(),lN(t.config??{}),t}S(Dx,"processAndSetConfigs");async function WB(e,t){Bd();try{const{code:r,config:n}=Dx(e);return{diagramType:(await UB(r)).type,config:n}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}S(WB,"parse");var av=S((e,t,r=[])=>`
|
|
457
|
+
.${e} ${t} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),mY=S((e,t=new Map)=>{let r="";if(e.themeCSS!==void 0&&(r+=`
|
|
458
|
+
${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
|
|
459
|
+
:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
|
|
460
|
+
:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const s=$r(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(l=>{nv(l.styles)||s.forEach(u=>{r+=av(l.id,u,l.styles)}),nv(l.textStyles)||(r+=av(l.id,"tspan",((l==null?void 0:l.textStyles)||[]).map(u=>u.replace("color","fill"))))})}return r},"createCssStyles"),yY=S((e,t,r,n)=>{const i=mY(e,r),o=EN(t,i,{...e.themeVariables,theme:e.theme,look:e.look},n);return iy(yH(`${n}{${o}}`),CH)},"createUserStyles"),xY=S((e="",t,r)=>{let n=e;return!r&&!t&&(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=ta(n),n=n.replace(/<br>/g,"<br/>"),n},"cleanUpSvgCode"),CY=S((e="",t)=>{var i,o;const r=(o=(i=t==null?void 0:t.viewBox)==null?void 0:i.baseVal)!=null&&o.height?t.viewBox.baseVal.height+"px":cY,n=qB(`<body style="${hY}">${e}</body>`);return`<iframe style="width:${lY};height:${r};${uY}" src="data:text/html;charset=UTF-8;base64,${n}" sandbox="${dY}">
|
|
461
|
+
${fY}
|
|
462
|
+
</iframe>`},"putIntoIFrame"),sv=S((e,t,r,n,i)=>{const o=e.append("div");o.attr("id",r),n&&o.attr("style",n);const s=o.append("svg").attr("id",t).attr("width","100%").attr("xmlns",oY);return i&&s.attr("xmlns:xlink",i),s.append("g"),e},"appendDivSvgG");function uy(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}S(uy,"sandboxedIframe");var kY=S((e,t,r,n)=>{var i,o,s;(i=e.getElementById(t))==null||i.remove(),(o=e.getElementById(r))==null||o.remove(),(s=e.getElementById(n))==null||s.remove()},"removeExistingElements"),bY=S(async function(e,t,r){var K,tt,U,W,H,G;Bd();const n=Dx(t);t=n.code;const i=Re();ht.debug(i),t.length>((i==null?void 0:i.maxTextSize)??eY)&&(t=rY);const o="#"+e,s="i"+e,l="#"+s,u="d"+e,h="#"+u,d=S(()=>{const Z=Zt(m?l:h).node();Z&&"remove"in Z&&Z.remove()},"removeTempElements");let f=Zt("body");const m=i.securityLevel===nY,g=i.securityLevel===iY,x=i.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),m){const $=uy(Zt(r),s);f=Zt($.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=Zt(r);sv(f,e,u,`font-family: ${x}`,aY)}else{if(kY(document,e,u,s),m){const $=uy(Zt("body"),s);f=Zt($.nodes()[0].contentDocument.body),f.node().style.margin=0}else f=Zt("body");sv(f,e,u)}let C,k;try{C=await cy.fromText(t,{title:n.title})}catch($){if(i.suppressErrorRendering)throw d(),$;C=await cy.fromText("error"),k=$}const v=f.select(h).node(),w=C.type,_=v.firstChild,A=_.firstChild,F=(tt=(K=C.renderer).getClasses)==null?void 0:tt.call(K,t,C),E=yY(i,w,F,o),B=document.createElement("style");B.innerHTML=E,_.insertBefore(B,A);try{await C.renderer.draw(t,e,"11.14.0",C)}catch($){throw i.suppressErrorRendering?d():YU.draw(t,e,"11.14.0"),$}const N=f.select(`${h} svg`),q=(W=(U=C.db).getAccTitle)==null?void 0:W.call(U),O=(G=(H=C.db).getAccDescription)==null?void 0:G.call(H);VB(w,N,q,O),f.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",sY);let D=f.select(h).node().innerHTML;if(ht.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),D=xY(D,m,Mi(i.arrowMarkerAbsolute)),m){const $=f.select(h+" svg").node();D=CY(D,$)}else g||(D=us.sanitize(D,{ADD_TAGS:pY,ADD_ATTR:gY,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(KV(),k)throw k;return d(),{diagramType:w,svg:D,bindFunctions:C.db.bindFunctions}},"render");function HB(e={}){var n;const t=rr({},e);t!=null&&t.fontFamily&&!((n=t.themeVariables)!=null&&n.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),aN(t),t!=null&&t.theme&&t.theme in Li?t.themeVariables=Li[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Li.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?oN(t):$w();Ny(r.logLevel),Bd()}S(HB,"initialize");var UB=S((e,t={})=>{const{code:r}=Nx(e);return cy.fromText(r,t)},"getDiagramFromText");function VB(e,t,r,n){$B(t,e),jB(t,r,n,t.attr("id"))}S(VB,"addA11yInfo");var ra=Object.freeze({render:bY,parse:WB,getDiagramFromText:UB,initialize:HB,getConfig:Re,setConfig:jw,getSiteConfig:$w,updateSiteConfig:sN,reset:S(()=>{vh()},"reset"),globalReset:S(()=>{vh(hs)},"globalReset"),defaultConfig:hs});Ny(Re().logLevel);vh(Re());var vY=S((e,t,r)=>{ht.warn(e),xx(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"),YB=S(async function(e={querySelector:".mermaid"}){try{await wY(e)}catch(t){if(xx(t)&&ht.error(t.str),dn.parseError&&dn.parseError(t),!e.suppressErrors)throw ht.error("Use the suppressErrors option to suppress these errors"),t}},"run"),wY=S(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const n=ra.getConfig();ht.debug(`${e?"":"No "}Callback function found`);let i;if(r)i=r;else if(t)i=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");ht.debug(`Found ${i.length} diagrams`),(n==null?void 0:n.startOnLoad)!==void 0&&(ht.debug("Start On Load: "+(n==null?void 0:n.startOnLoad)),ra.updateSiteConfig({startOnLoad:n==null?void 0:n.startOnLoad}));const o=new $n.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed);let s;const l=[];for(const u of Array.from(i)){if(ht.info("Rendering diagram: "+u.id),u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");const h=`mermaid-${o.next()}`;s=u.innerHTML,s=cE($n.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const d=$n.detectInit(s);d&&ht.debug("Detected early reinit: ",d);try{const{svg:f,bindFunctions:m}=await QB(h,s,u);u.innerHTML=f,e&&await e(h),m&&m(u)}catch(f){vY(f,l,dn.parseError)}}if(l.length>0)throw l[0]},"runThrowsErrors"),GB=S(function(e){ra.initialize(e)},"initialize"),SY=S(async function(e,t,r){ht.warn("mermaid.init is deprecated. Please use run instead."),e&&GB(e);const n={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?n.querySelector=t:t&&(t instanceof HTMLElement?n.nodes=[t]:n.nodes=t),await YB(n)},"init"),TY=S(async(e,{lazyLoad:t=!0}={})=>{Bd(),dm(...e),t===!1&&await GV()},"registerExternalDiagrams"),XB=S(function(){if(dn.startOnLoad){const{startOnLoad:e}=ra.getConfig();e&&dn.run().catch(t=>ht.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",XB,!1);var _Y=S(function(e){dn.parseError=e},"setParseErrorHandler"),td=[],tg=!1,KB=S(async()=>{if(!tg){for(tg=!0;td.length>0;){const e=td.shift();if(e)try{await e()}catch(t){ht.error("Error executing queue",t)}}tg=!1}},"executeQueue"),EY=S(async(e,t)=>new Promise((r,n)=>{const i=S(()=>new Promise((o,s)=>{ra.parse(e,t).then(l=>{o(l),r(l)},l=>{var u;ht.error("Error parsing",l),(u=dn.parseError)==null||u.call(dn,l),s(l),n(l)})}),"performCall");td.push(i),KB().catch(n)}),"parse"),QB=S((e,t,r)=>new Promise((n,i)=>{const o=S(()=>new Promise((s,l)=>{ra.render(e,t,r).then(u=>{s(u),n(u)},u=>{var h;ht.error("Error parsing",u),(h=dn.parseError)==null||h.call(dn,u),l(u),i(u)})}),"performCall");td.push(o),KB().catch(i)}),"render"),LY=S(()=>Object.keys(Xo).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),dn={startOnLoad:!0,mermaidAPI:ra,parse:EY,render:QB,init:SY,run:YB,registerExternalDiagrams:TY,registerLayoutLoaders:tB,initialize:GB,parseError:void 0,contentLoaded:XB,setParseErrorHandler:_Y,detectType:Dy,registerIconPacks:T7,getRegisteredDiagramsMetadata:LY},eg=dn;/*! Check if previously processed *//*!
|
|
463
|
+
* Wait for document loaded before starting the execution
|
|
464
|
+
*/async function $x(e){var t;if((t=navigator.clipboard)!=null&&t.writeText)try{return await navigator.clipboard.writeText(e),!0}catch{}try{const r=document.createElement("textarea");r.value=e,r.style.position="fixed",r.style.left="-9999px",r.style.top="-9999px",r.style.opacity="0",document.body.appendChild(r),r.select();const n=document.execCommand("copy");return document.body.removeChild(r),n}catch{return!1}}const BY=({size:e=14})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),L.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),AY=({size:e=14})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("polyline",{points:"20 6 9 17 4 12"})}),FY=({size:e=14})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("polyline",{points:"15 3 21 3 21 9"}),L.jsx("polyline",{points:"9 21 3 21 3 15"}),L.jsx("line",{x1:"21",y1:"3",x2:"14",y2:"10"}),L.jsx("line",{x1:"3",y1:"21",x2:"10",y2:"14"})]});let lv=!1,IY=0;function cv(){return document.documentElement.getAttribute("data-theme")==="dark"?"dark":"default"}const uv=({chart:e})=>{const t=st.useRef(null),[r,n]=st.useState(null),[i,o]=st.useState(""),[s,l]=st.useState(!1),[u,h]=st.useState(!1),d=Rt(g=>g.openMermaidViewer);st.useEffect(()=>{lv||(eg.initialize({startOnLoad:!1,theme:cv(),securityLevel:"loose",fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',flowchart:{useMaxWidth:!0,htmlLabels:!0,curve:"basis"},sequence:{useMaxWidth:!0,diagramMarginX:10,diagramMarginY:10},gantt:{useMaxWidth:!0}}),lv=!0);let g=!1;async function x(){try{const C=`mermaid-${++IY}`,k=cv();eg.initialize({startOnLoad:!1,theme:k,securityLevel:"loose",fontFamily:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',flowchart:{useMaxWidth:!0,htmlLabels:!0,curve:"basis"},sequence:{useMaxWidth:!0,diagramMarginX:10,diagramMarginY:10},gantt:{useMaxWidth:!0}});const{svg:v}=await eg.render(C,e.trim());g||(o(v),n(null))}catch(C){g||(n(C instanceof Error?C.message:"Mermaid rendering failed"),o(""))}}return x(),()=>{g=!0}},[e]);const f=st.useCallback(async()=>{await $x(e.trim())&&(l(!0),setTimeout(()=>l(!1),2e3))},[e]),m=st.useCallback(()=>{i&&d(i,e.trim())},[i,e,d]);return r?L.jsx("div",{className:"mermaid-error",children:r}):L.jsxs("div",{className:"mermaid-container",ref:t,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),style:{position:"relative"},children:[L.jsxs("div",{className:"mermaid-actions",style:{position:"absolute",top:8,right:8,display:"flex",gap:4,opacity:u?1:0,transition:"opacity 0.15s ease",zIndex:10},children:[L.jsx("button",{onClick:g=>{g.stopPropagation(),f()},className:"mermaid-action-btn",title:"复制 Mermaid 代码",children:s?L.jsx(AY,{size:12}):L.jsx(BY,{size:12})}),L.jsx("button",{onClick:g=>{g.stopPropagation(),m()},className:"mermaid-action-btn",title:"查看大图",children:L.jsx(FY,{size:12})})]}),L.jsx("div",{onClick:m,style:{cursor:"pointer",userSelect:"none"},title:"点击查看大图",children:i&&L.jsx("div",{className:"mermaid-svg-wrapper",dangerouslySetInnerHTML:{__html:i}})})]})},MY=({size:e=14})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),L.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),OY=({size:e=14})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("polyline",{points:"20 6 9 17 4 12"})});function hy(e){return typeof e=="string"?e:typeof e=="number"?String(e):e?Array.isArray(e)?e.map(hy).join(""):typeof e=="object"&&"props"in e?hy(e.props.children):"":""}const RY=({children:e,rawCode:t})=>{const[r,n]=st.useState(!1),[i,o]=st.useState(!1),s=st.useRef(null),l=st.useCallback(async()=>{const u=t??hy(e);await $x(u.replace(/\n$/,""))&&(n(!0),setTimeout(()=>n(!1),2e3))},[e,t]);return L.jsxs("div",{ref:s,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),className:"relative",children:[L.jsx("button",{onClick:l,className:`
|
|
465
|
+
absolute top-2 right-2 p-1 rounded
|
|
466
|
+
cursor-pointer flex items-center justify-center
|
|
467
|
+
transition-all duration-150 z-10
|
|
468
|
+
${r?"bg-success text-white":"bg-surface-secondary border border-edge text-content hover:bg-surface-hover"}
|
|
469
|
+
${i?"opacity-100":"opacity-0"}
|
|
470
|
+
`,title:r?"已复制":"复制代码",children:r?L.jsx(OY,{size:14}):L.jsx(MY,{size:14})}),e]})};function PY(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function NY(e,t){if(e==null)return{};var r,n,i=PY(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function dy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function DY(e){if(Array.isArray(e))return dy(e)}function $Y(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jY(e,t){if(e){if(typeof e=="string")return dy(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dy(e,t):void 0}}function zY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
471
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fy(e){return DY(e)||$Y(e)||jY(e)||zY()}function lc(e){"@babel/helpers - typeof";return lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(e)}function qY(e,t){if(lc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WY(e){var t=qY(e,"string");return lc(t)=="symbol"?t:t+""}function ZB(e,t,r){return(t=WY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function py(){return py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},py.apply(null,arguments)}function hv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ha(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hv(Object(r),!0).forEach(function(n){ZB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HY(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var rg={};function UY(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return rg[t]||(rg[t]=HY(e)),rg[t]}function VY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(o){return o!=="token"}),i=UY(n);return i.reduce(function(o,s){return Ha(Ha({},o),r[s])},t)}function dv(e){return e.join(" ")}function YY(e,t){var r=0;return function(n){return r+=1,n.map(function(i,o){return JB({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(o)})})}}function JB(e){var t=e.node,r=e.stylesheet,n=e.style,i=n===void 0?{}:n,o=e.useInlineStyles,s=e.key,l=t.properties,u=t.type,h=t.tagName,d=t.value;if(u==="text")return d;if(h){var f=YY(r,o),m;if(!o)m=Ha(Ha({},l),{},{className:dv(l.className)});else{var g=Object.keys(r).reduce(function(v,w){return w.split(".").forEach(function(_){v.includes(_)||v.push(_)}),v},[]),x=l.className&&l.className.includes("token")?["token"]:[],C=l.className&&x.concat(l.className.filter(function(v){return!g.includes(v)}));m=Ha(Ha({},l),{},{className:dv(C)||void 0,style:VY(l.className,Object.assign({},l.style,i),r)})}var k=f(t.children);return lr.createElement(h,py({key:s},m),k)}}const GY=(function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1});var XY=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function fv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function co(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fv(Object(r),!0).forEach(function(n){ZB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var KY=/\n/g;function QY(e){return e.match(KY)}function ZY(e){var t=e.lines,r=e.startingLineNumber,n=e.style;return t.map(function(i,o){var s=o+r;return lr.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(s):n},"".concat(s,`
|
|
472
|
+
`))})}function JY(e){var t=e.codeString,r=e.codeStyle,n=e.containerStyle,i=n===void 0?{float:"left",paddingRight:"10px"}:n,o=e.numberStyle,s=o===void 0?{}:o,l=e.startingLineNumber;return lr.createElement("code",{style:Object.assign({},r,i)},ZY({lines:t.replace(/\n$/,"").split(`
|
|
473
|
+
`),style:s,startingLineNumber:l}))}function tG(e){return"".concat(e.toString().length,".25em")}function tA(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function eA(e,t,r){var n={display:"inline-block",minWidth:tG(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,o=co(co({},n),i);return o}function ph(e){var t=e.children,r=e.lineNumber,n=e.lineNumberStyle,i=e.largestLineNumber,o=e.showInlineLineNumbers,s=e.lineProps,l=s===void 0?{}:s,u=e.className,h=u===void 0?[]:u,d=e.showLineNumbers,f=e.wrapLongLines,m=e.wrapLines,g=m===void 0?!1:m,x=g?co({},typeof l=="function"?l(r):l):{};if(x.className=x.className?[].concat(fy(x.className.trim().split(/\s+/)),fy(h)):h,r&&o){var C=eA(n,r,i);t.unshift(tA(r,C))}return f&d&&(x.style=co({display:"flex"},x.style)),{type:"element",tagName:"span",properties:x,children:t}}function rA(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n<e.length;n++){var i=e[n];if(i.type==="text")r.push(ph({children:[i],className:fy(new Set(t))}));else if(i.children){var o=t.concat(i.properties.className);rA(i.children,o).forEach(function(s){return r.push(s)})}}return r}function eG(e,t,r,n,i,o,s,l,u){var h,d=rA(e.value),f=[],m=-1,g=0;function x(F,E){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return ph({children:F,lineNumber:E,lineNumberStyle:l,largestLineNumber:s,showInlineLineNumbers:i,lineProps:r,className:B,showLineNumbers:n,wrapLongLines:u,wrapLines:t})}function C(F,E){if(n&&E&&i){var B=eA(l,E,s);F.unshift(tA(E,B))}return F}function k(F,E){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||B.length>0?x(F,E,B):C(F,E)}for(var v=function(){var E=d[g],B=E.children[0].value,N=QY(B);if(N){var q=B.split(`
|
|
474
|
+
`);q.forEach(function(O,D){var K=n&&f.length+o,tt={type:"text",value:"".concat(O,`
|
|
475
|
+
`)};if(D===0){var U=d.slice(m+1,g).concat(ph({children:[tt],className:E.properties.className})),W=k(U,K);f.push(W)}else if(D===q.length-1){var H=d[g+1]&&d[g+1].children&&d[g+1].children[0],G={type:"text",value:"".concat(O)};if(H){var $=ph({children:[G],className:E.properties.className});d.splice(g+1,0,$)}else{var Z=[G],R=k(Z,K,E.properties.className);f.push(R)}}else{var j=[tt],J=k(j,K,E.properties.className);f.push(J)}}),m=g}g++};g<d.length;)v();if(m!==d.length-1){var w=d.slice(m+1,d.length);if(w&&w.length){var _=n&&f.length+o,A=k(w,_);f.push(A)}}return t?f:(h=[]).concat.apply(h,f)}function rG(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map(function(i,o){return JB({node:i,stylesheet:r,useInlineStyles:n,key:"code-segment-".concat(o)})})}function nA(e){return e&&typeof e.highlightAuto<"u"}function nG(e){var t=e.astGenerator,r=e.language,n=e.code,i=e.defaultCodeValue;if(nA(t)){var o=GY(t,r);return r==="text"?{value:i,language:"text"}:o?t.highlight(r,n):t.highlightAuto(n)}try{return r&&r!=="text"?{value:t.highlight(n,r)}:{value:i}}catch{return{value:i}}}function iG(e,t){return function(n){var i,o,s=n.language,l=n.children,u=n.style,h=u===void 0?t:u,d=n.customStyle,f=d===void 0?{}:d,m=n.codeTagProps,g=m===void 0?{className:s?"language-".concat(s):void 0,style:co(co({},h['code[class*="language-"]']),h['code[class*="language-'.concat(s,'"]')])}:m,x=n.useInlineStyles,C=x===void 0?!0:x,k=n.showLineNumbers,v=k===void 0?!1:k,w=n.showInlineLineNumbers,_=w===void 0?!0:w,A=n.startingLineNumber,F=A===void 0?1:A,E=n.lineNumberContainerStyle,B=n.lineNumberStyle,N=B===void 0?{}:B,q=n.wrapLines,O=n.wrapLongLines,D=O===void 0?!1:O,K=n.lineProps,tt=K===void 0?{}:K,U=n.renderer,W=n.PreTag,H=W===void 0?"pre":W,G=n.CodeTag,$=G===void 0?"code":G,Z=n.code,R=Z===void 0?(Array.isArray(l)?l[0]:l)||"":Z,j=n.astGenerator,J=NY(n,XY);j=j||e;var P=v?lr.createElement(JY,{containerStyle:E,codeStyle:g.style||{},numberStyle:N,startingLineNumber:F,codeString:R}):null,ct=h.hljs||h['pre[class*="language-"]']||{backgroundColor:"#fff"},lt=nA(j)?"hljs":"prismjs",mt=C?Object.assign({},J,{style:Object.assign({},ct,f)}):Object.assign({},J,{className:J.className?"".concat(lt," ").concat(J.className):lt,style:Object.assign({},f)});if(D?g.style=co({whiteSpace:"pre-wrap"},g.style):g.style=co({whiteSpace:"pre"},g.style),!j)return lr.createElement(H,mt,P,lr.createElement($,g,R));(q===void 0&&U||D)&&(q=!0),U=U||rG;var wt=[{type:"text",value:R}],St=nG({astGenerator:j,language:s,code:R,defaultCodeValue:wt});St.language===null&&(St.value=wt);var Dt=(i=(o=R.match(/\n/g))===null||o===void 0?void 0:o.length)!==null&&i!==void 0?i:0,xt=F+Dt,_t=eG(St,q,tt,v,_,F,xt,N,D);return lr.createElement(H,mt,lr.createElement($,g,!_&&P,U({rows:_t,stylesheet:h,useInlineStyles:C})))}}var ng,pv;function oG(){if(pv)return ng;pv=1,ng=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},n=0;n<arguments.length;n++){var i=arguments[n];for(var o in i)e.call(i,o)&&(r[o]=i[o])}return r}return ng}var ig,gv;function iA(){if(gv)return ig;gv=1,ig=t;var e=t.prototype;e.space=null,e.normal={},e.property={};function t(r,n,i){this.property=r,this.normal=n,i&&(this.space=i)}return ig}var og,mv;function aG(){if(mv)return og;mv=1;var e=oG(),t=iA();og=r;function r(n){for(var i=n.length,o=[],s=[],l=-1,u,h;++l<i;)u=n[l],o.push(u.property),s.push(u.normal),h=u.space;return new t(e.apply(null,o),e.apply(null,s),h)}return og}var ag,yv;function jx(){if(yv)return ag;yv=1,ag=e;function e(t){return t.toLowerCase()}return ag}var sg,xv;function oA(){if(xv)return sg;xv=1,sg=t;var e=t.prototype;e.space=null,e.attribute=null,e.property=null,e.boolean=!1,e.booleanish=!1,e.overloadedBoolean=!1,e.number=!1,e.commaSeparated=!1,e.spaceSeparated=!1,e.commaOrSpaceSeparated=!1,e.mustUseProperty=!1,e.defined=!1;function t(r,n){this.property=r,this.attribute=n}return sg}var Ti={},Cv;function zx(){if(Cv)return Ti;Cv=1;var e=0;Ti.boolean=t(),Ti.booleanish=t(),Ti.overloadedBoolean=t(),Ti.number=t(),Ti.spaceSeparated=t(),Ti.commaSeparated=t(),Ti.commaOrSpaceSeparated=t();function t(){return Math.pow(2,++e)}return Ti}var lg,kv;function aA(){if(kv)return lg;kv=1;var e=oA(),t=zx();lg=i,i.prototype=new e,i.prototype.defined=!0;var r=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],n=r.length;function i(s,l,u,h){var d=-1,f;for(o(this,"space",h),e.call(this,s,l);++d<n;)f=r[d],o(this,f,(u&t[f])===t[f])}function o(s,l,u){u&&(s[l]=u)}return lg}var cg,bv;function wc(){if(bv)return cg;bv=1;var e=jx(),t=iA(),r=aA();cg=n;function n(i){var o=i.space,s=i.mustUseProperty||[],l=i.attributes||{},u=i.properties,h=i.transform,d={},f={},m,g;for(m in u)g=new r(m,h(l,m),u[m],o),s.indexOf(m)!==-1&&(g.mustUseProperty=!0),d[m]=g,f[e(m)]=m,f[e(g.attribute)]=m;return new t(d,f,o)}return cg}var ug,vv;function sG(){if(vv)return ug;vv=1;var e=wc();ug=e({space:"xlink",transform:t,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function t(r,n){return"xlink:"+n.slice(5).toLowerCase()}return ug}var hg,wv;function lG(){if(wv)return hg;wv=1;var e=wc();hg=e({space:"xml",transform:t,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function t(r,n){return"xml:"+n.slice(3).toLowerCase()}return hg}var dg,Sv;function cG(){if(Sv)return dg;Sv=1,dg=e;function e(t,r){return r in t?t[r]:r}return dg}var fg,Tv;function sA(){if(Tv)return fg;Tv=1;var e=cG();fg=t;function t(r,n){return e(r,n.toLowerCase())}return fg}var pg,_v;function uG(){if(_v)return pg;_v=1;var e=wc(),t=sA();return pg=e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t,properties:{xmlns:null,xmlnsXLink:null}}),pg}var gg,Ev;function hG(){if(Ev)return gg;Ev=1;var e=zx(),t=wc(),r=e.booleanish,n=e.number,i=e.spaceSeparated;gg=t({transform:o,properties:{ariaActiveDescendant:null,ariaAtomic:r,ariaAutoComplete:null,ariaBusy:r,ariaChecked:r,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:i,ariaCurrent:null,ariaDescribedBy:i,ariaDetails:null,ariaDisabled:r,ariaDropEffect:i,ariaErrorMessage:null,ariaExpanded:r,ariaFlowTo:i,ariaGrabbed:r,ariaHasPopup:null,ariaHidden:r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:i,ariaLevel:n,ariaLive:null,ariaModal:r,ariaMultiLine:r,ariaMultiSelectable:r,ariaOrientation:null,ariaOwns:i,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:r,ariaReadOnly:r,ariaRelevant:null,ariaRequired:r,ariaRoleDescription:i,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:r,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null}});function o(s,l){return l==="role"?l:"aria-"+l.slice(4).toLowerCase()}return gg}var mg,Lv;function dG(){if(Lv)return mg;Lv=1;var e=zx(),t=wc(),r=sA(),n=e.boolean,i=e.overloadedBoolean,o=e.booleanish,s=e.number,l=e.spaceSeparated,u=e.commaSeparated;return mg=t({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:r,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:u,acceptCharset:l,accessKey:l,action:null,allow:null,allowFullScreen:n,allowPaymentRequest:n,allowUserMedia:n,alt:null,as:null,async:n,autoCapitalize:null,autoComplete:l,autoFocus:n,autoPlay:n,capture:n,charSet:null,checked:n,cite:null,className:l,cols:s,colSpan:null,content:null,contentEditable:o,controls:n,controlsList:l,coords:s|u,crossOrigin:null,data:null,dateTime:null,decoding:null,default:n,defer:n,dir:null,dirName:null,disabled:n,download:i,draggable:o,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:n,formTarget:null,headers:l,height:s,hidden:n,high:s,href:null,hrefLang:null,htmlFor:l,httpEquiv:l,id:null,imageSizes:null,imageSrcSet:u,inputMode:null,integrity:null,is:null,isMap:n,itemId:null,itemProp:l,itemRef:l,itemScope:n,itemType:l,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:n,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:n,muted:n,name:null,nonce:null,noModule:n,noValidate:n,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:n,optimum:s,pattern:null,ping:l,placeholder:null,playsInline:n,poster:null,preload:null,readOnly:n,referrerPolicy:null,rel:l,required:n,reversed:n,rows:s,rowSpan:s,sandbox:l,scope:null,scoped:n,seamless:n,selected:n,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:o,src:null,srcDoc:null,srcLang:null,srcSet:u,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:n,useMap:null,value:o,width:s,wrap:null,align:null,aLink:null,archive:l,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:n,declare:n,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:n,noHref:n,noShade:n,noWrap:n,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:o,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:n,disableRemotePlayback:n,prefix:null,property:null,results:s,security:null,unselectable:null}}),mg}var yg,Bv;function fG(){if(Bv)return yg;Bv=1;var e=aG(),t=sG(),r=lG(),n=uG(),i=hG(),o=dG();return yg=e([r,t,n,i,o]),yg}var xg,Av;function pG(){if(Av)return xg;Av=1;var e=jx(),t=aA(),r=oA(),n="data";xg=l;var i=/^data[-\w.:]+$/i,o=/-[a-z]/g,s=/[A-Z]/g;function l(m,g){var x=e(g),C=g,k=r;return x in m.normal?m.property[m.normal[x]]:(x.length>4&&x.slice(0,4)===n&&i.test(g)&&(g.charAt(4)==="-"?C=u(g):g=h(g),k=t),new k(C,g))}function u(m){var g=m.slice(5).replace(o,f);return n+g.charAt(0).toUpperCase()+g.slice(1)}function h(m){var g=m.slice(4);return o.test(g)?m:(g=g.replace(s,d),g.charAt(0)!=="-"&&(g="-"+g),n+g)}function d(m){return"-"+m.toLowerCase()}function f(m){return m.charAt(1).toUpperCase()}return xg}var Cg,Fv;function gG(){if(Fv)return Cg;Fv=1,Cg=t;var e=/[#.]/g;function t(r,n){for(var i=r||"",o=n||"div",s={},l=0,u,h,d;l<i.length;)e.lastIndex=l,d=e.exec(i),u=i.slice(l,d?d.index:i.length),u&&(h?h==="#"?s.id=u:s.className?s.className.push(u):s.className=[u]:o=u,l+=u.length),d&&(h=d[0],l++);return{type:"element",tagName:o,properties:s,children:[]}}return Cg}var Gu={},Iv;function mG(){if(Iv)return Gu;Iv=1,Gu.parse=n,Gu.stringify=i;var e="",t=" ",r=/[ \t\n\r\f]+/g;function n(o){var s=String(o||e).trim();return s===e?[]:s.split(r)}function i(o){return o.join(t).trim()}return Gu}var Xu={},Mv;function yG(){if(Mv)return Xu;Mv=1,Xu.parse=n,Xu.stringify=i;var e=",",t=" ",r="";function n(o){for(var s=[],l=String(o||r),u=l.indexOf(e),h=0,d=!1,f;!d;)u===-1&&(u=l.length,d=!0),f=l.slice(h,u).trim(),(f||!d)&&s.push(f),h=u+1,u=l.indexOf(e,h);return s}function i(o,s){var l=s||{},u=l.padLeft===!1?r:t,h=l.padRight?t:r;return o[o.length-1]===r&&(o=o.concat(r)),o.join(h+e+u).trim()}return Xu}var kg,Ov;function xG(){if(Ov)return kg;Ov=1;var e=pG(),t=jx(),r=gG(),n=mG().parse,i=yG().parse;kg=s;var o={}.hasOwnProperty;function s(x,C,k){var v=k?g(k):null;return w;function w(A,F){var E=r(A,C),B=Array.prototype.slice.call(arguments,2),N=E.tagName.toLowerCase(),q;if(E.tagName=v&&o.call(v,N)?v[N]:N,F&&l(F,E)&&(B.unshift(F),F=null),F)for(q in F)_(E.properties,q,F[q]);return h(E.children,B),E.tagName==="template"&&(E.content={type:"root",children:E.children},E.children=[]),E}function _(A,F,E){var B,N,q;E==null||E!==E||(B=e(x,F),N=B.property,q=E,typeof q=="string"&&(B.spaceSeparated?q=n(q):B.commaSeparated?q=i(q):B.commaOrSpaceSeparated&&(q=n(i(q).join(" ")))),N==="style"&&typeof E!="string"&&(q=m(q)),N==="className"&&A.className&&(q=A.className.concat(q)),A[N]=d(B,N,q))}}function l(x,C){return typeof x=="string"||"length"in x||u(C.tagName,x)}function u(x,C){var k=C.type;return x==="input"||!k||typeof k!="string"?!1:typeof C.children=="object"&&"length"in C.children?!0:(k=k.toLowerCase(),x==="button"?k!=="menu"&&k!=="submit"&&k!=="reset"&&k!=="button":"value"in C)}function h(x,C){var k,v;if(typeof C=="string"||typeof C=="number"){x.push({type:"text",value:String(C)});return}if(typeof C=="object"&&"length"in C){for(k=-1,v=C.length;++k<v;)h(x,C[k]);return}if(typeof C!="object"||!("type"in C))throw new Error("Expected node, nodes, or string, got `"+C+"`");x.push(C)}function d(x,C,k){var v,w,_;if(typeof k!="object"||!("length"in k))return f(x,C,k);for(w=k.length,v=-1,_=[];++v<w;)_[v]=f(x,C,k[v]);return _}function f(x,C,k){var v=k;return x.number||x.positiveNumber?!isNaN(v)&&v!==""&&(v=Number(v)):(x.boolean||x.overloadedBoolean)&&typeof v=="string"&&(v===""||t(k)===t(C))&&(v=!0),v}function m(x){var C=[],k;for(k in x)C.push([k,x[k]].join(": "));return C.join("; ")}function g(x){for(var C=x.length,k=-1,v={},w;++k<C;)w=x[k],v[w.toLowerCase()]=w;return v}return kg}var bg,Rv;function CG(){if(Rv)return bg;Rv=1;var e=fG(),t=xG(),r=t(e,"div");return r.displayName="html",bg=r,bg}var vg,Pv;function kG(){return Pv||(Pv=1,vg=CG()),vg}const bG="Æ",vG="&",wG="Á",SG="Â",TG="À",_G="Å",EG="Ã",LG="Ä",BG="©",AG="Ç",FG="Ð",IG="É",MG="Ê",OG="È",RG="Ë",PG=">",NG="Í",DG="Î",$G="Ì",jG="Ï",zG="<",qG="Ñ",WG="Ó",HG="Ô",UG="Ò",VG="Ø",YG="Õ",GG="Ö",XG='"',KG="®",QG="Þ",ZG="Ú",JG="Û",tX="Ù",eX="Ü",rX="Ý",nX="á",iX="â",oX="´",aX="æ",sX="à",lX="&",cX="å",uX="ã",hX="ä",dX="¦",fX="ç",pX="¸",gX="¢",mX="©",yX="¤",xX="°",CX="÷",kX="é",bX="ê",vX="è",wX="ð",SX="ë",TX="½",_X="¼",EX="¾",LX=">",BX="í",AX="î",FX="¡",IX="ì",MX="¿",OX="ï",RX="«",PX="<",NX="¯",DX="µ",$X="·",jX=" ",zX="¬",qX="ñ",WX="ó",HX="ô",UX="ò",VX="ª",YX="º",GX="ø",XX="õ",KX="ö",QX="¶",ZX="±",JX="£",tK='"',eK="»",rK="®",nK="§",iK="",oK="¹",aK="²",sK="³",lK="ß",cK="þ",uK="×",hK="ú",dK="û",fK="ù",pK="¨",gK="ü",mK="ý",yK="¥",xK="ÿ",CK={AElig:bG,AMP:vG,Aacute:wG,Acirc:SG,Agrave:TG,Aring:_G,Atilde:EG,Auml:LG,COPY:BG,Ccedil:AG,ETH:FG,Eacute:IG,Ecirc:MG,Egrave:OG,Euml:RG,GT:PG,Iacute:NG,Icirc:DG,Igrave:$G,Iuml:jG,LT:zG,Ntilde:qG,Oacute:WG,Ocirc:HG,Ograve:UG,Oslash:VG,Otilde:YG,Ouml:GG,QUOT:XG,REG:KG,THORN:QG,Uacute:ZG,Ucirc:JG,Ugrave:tX,Uuml:eX,Yacute:rX,aacute:nX,acirc:iX,acute:oX,aelig:aX,agrave:sX,amp:lX,aring:cX,atilde:uX,auml:hX,brvbar:dX,ccedil:fX,cedil:pX,cent:gX,copy:mX,curren:yX,deg:xX,divide:CX,eacute:kX,ecirc:bX,egrave:vX,eth:wX,euml:SX,frac12:TX,frac14:_X,frac34:EX,gt:LX,iacute:BX,icirc:AX,iexcl:FX,igrave:IX,iquest:MX,iuml:OX,laquo:RX,lt:PX,macr:NX,micro:DX,middot:$X,nbsp:jX,not:zX,ntilde:qX,oacute:WX,ocirc:HX,ograve:UX,ordf:VX,ordm:YX,oslash:GX,otilde:XX,ouml:KX,para:QX,plusmn:ZX,pound:JX,quot:tK,raquo:eK,reg:rK,sect:nK,shy:iK,sup1:oK,sup2:aK,sup3:sK,szlig:lK,thorn:cK,times:uK,uacute:hK,ucirc:dK,ugrave:fK,uml:pK,uuml:gK,yacute:mK,yen:yK,yuml:xK},kK={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var wg,Nv;function lA(){if(Nv)return wg;Nv=1,wg=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=48&&r<=57}return wg}var Sg,Dv;function bK(){if(Dv)return Sg;Dv=1,Sg=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}return Sg}var Tg,$v;function vK(){if($v)return Tg;$v=1,Tg=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=122||r>=65&&r<=90}return Tg}var _g,jv;function wK(){if(jv)return _g;jv=1;var e=vK(),t=lA();_g=r;function r(n){return e(n)||t(n)}return _g}var Eg,zv;function SK(){if(zv)return Eg;zv=1;var e,t=59;Eg=r;function r(n){var i="&"+n+";",o;return e=e||document.createElement("i"),e.innerHTML=i,o=e.textContent,o.charCodeAt(o.length-1)===t&&n!=="semi"||o===i?!1:o}return Eg}var Lg,qv;function TK(){if(qv)return Lg;qv=1;var e=CK,t=kK,r=lA(),n=bK(),i=wK(),o=SK();Lg=Z;var s={}.hasOwnProperty,l=String.fromCharCode,u=Function.prototype,h={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},d=9,f=10,m=12,g=32,x=38,C=59,k=60,v=61,w=35,_=88,A=120,F=65533,E="named",B="hexadecimal",N="decimal",q={};q[B]=16,q[N]=10;var O={};O[E]=i,O[N]=r,O[B]=n;var D=1,K=2,tt=3,U=4,W=5,H=6,G=7,$={};$[D]="Named character references must be terminated by a semicolon",$[K]="Numeric character references must be terminated by a semicolon",$[tt]="Named character references cannot be empty",$[U]="Numeric character references cannot be empty",$[W]="Named character references must be known",$[H]="Numeric character references cannot be disallowed",$[G]="Numeric character references cannot be outside the permissible Unicode range";function Z(P,ct){var lt={},mt,wt;ct||(ct={});for(wt in h)mt=ct[wt],lt[wt]=mt??h[wt];return(lt.position.indent||lt.position.start)&&(lt.indent=lt.position.indent||[],lt.position=lt.position.start),R(P,lt)}function R(P,ct){var lt=ct.additional,mt=ct.nonTerminated,wt=ct.text,St=ct.reference,Dt=ct.warning,xt=ct.textContext,_t=ct.referenceContext,re=ct.warningContext,Qt=ct.position,Ue=ct.indent||[],Ce=P.length,je=0,jr=-1,Fe=Qt.column||1,zr=Qt.line||1,ze="",Br=[],Ar,Yn,mr,Le,ot,ut,kt,$t,Xt,Se,Ve,Ie,qe,ge,me,Ye,Pe,yr,ye;for(typeof lt=="string"&&(lt=lt.charCodeAt(0)),Ye=ur(),$t=Dt?Gn:u,je--,Ce++;++je<Ce;)if(ot===f&&(Fe=Ue[jr]||1),ot=P.charCodeAt(je),ot===x){if(kt=P.charCodeAt(je+1),kt===d||kt===f||kt===m||kt===g||kt===x||kt===k||kt!==kt||lt&&kt===lt){ze+=l(ot),Fe++;continue}for(qe=je+1,Ie=qe,ye=qe,kt===w?(ye=++Ie,kt=P.charCodeAt(ye),kt===_||kt===A?(ge=B,ye=++Ie):ge=N):ge=E,Ar="",Ve="",Le="",me=O[ge],ye--;++ye<Ce&&(kt=P.charCodeAt(ye),!!me(kt));)Le+=l(kt),ge===E&&s.call(e,Le)&&(Ar=Le,Ve=e[Le]);mr=P.charCodeAt(ye)===C,mr&&(ye++,Yn=ge===E?o(Le):!1,Yn&&(Ar=Le,Ve=Yn)),yr=1+ye-qe,!mr&&!mt||(Le?ge===E?(mr&&!Ve?$t(W,1):(Ar!==Le&&(ye=Ie+Ar.length,yr=1+ye-Ie,mr=!1),mr||(Xt=Ar?D:tt,ct.attribute?(kt=P.charCodeAt(ye),kt===v?($t(Xt,yr),Ve=null):i(kt)?Ve=null:$t(Xt,yr)):$t(Xt,yr))),ut=Ve):(mr||$t(K,yr),ut=parseInt(Le,q[ge]),j(ut)?($t(G,yr),ut=l(F)):ut in t?($t(H,yr),ut=t[ut]):(Se="",J(ut)&&$t(H,yr),ut>65535&&(ut-=65536,Se+=l(ut>>>10|55296),ut=56320|ut&1023),ut=Se+l(ut))):ge!==E&&$t(U,yr)),ut?(_n(),Ye=ur(),je=ye-1,Fe+=ye-qe+1,Br.push(ut),Pe=ur(),Pe.offset++,St&&St.call(_t,ut,{start:Ye,end:Pe},P.slice(qe-1,ye)),Ye=Pe):(Le=P.slice(qe-1,ye),ze+=Le,Fe+=Le.length,je=ye-1)}else ot===10&&(zr++,jr++,Fe=0),ot===ot?(ze+=l(ot),Fe++):_n();return Br.join("");function ur(){return{line:zr,column:Fe,offset:je+(Qt.offset||0)}}function Gn(ko,bo){var ke=ur();ke.column+=bo,ke.offset+=bo,Dt.call(re,$[ko],ke,ko)}function _n(){ze&&(Br.push(ze),wt&&wt.call(xt,ze,{start:Ye,end:ur()}),ze="")}}function j(P){return P>=55296&&P<=57343||P>1114111}function J(P){return P>=1&&P<=8||P===11||P>=13&&P<=31||P>=127&&P<=159||P>=64976&&P<=65007||(P&65535)===65535||(P&65535)===65534}return Lg}var Bg={exports:{}},Wv;function _K(){return Wv||(Wv=1,(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
476
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
477
|
+
*
|
|
478
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
479
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
480
|
+
* @namespace
|
|
481
|
+
* @public
|
|
482
|
+
*/var r=(function(n){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,s={},l={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function w(_){return _ instanceof u?new u(_.type,w(_.content),_.alias):Array.isArray(_)?_.map(w):_.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(w){return Object.prototype.toString.call(w).slice(8,-1)},objId:function(w){return w.__id||Object.defineProperty(w,"__id",{value:++o}),w.__id},clone:function w(_,A){A=A||{};var F,E;switch(l.util.type(_)){case"Object":if(E=l.util.objId(_),A[E])return A[E];F={},A[E]=F;for(var B in _)_.hasOwnProperty(B)&&(F[B]=w(_[B],A));return F;case"Array":return E=l.util.objId(_),A[E]?A[E]:(F=[],A[E]=F,_.forEach(function(N,q){F[q]=w(N,A)}),F);default:return _}},getLanguage:function(w){for(;w;){var _=i.exec(w.className);if(_)return _[1].toLowerCase();w=w.parentElement}return"none"},setLanguage:function(w,_){w.className=w.className.replace(RegExp(i,"gi"),""),w.classList.add("language-"+_)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(F){var w=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(F.stack)||[])[1];if(w){var _=document.getElementsByTagName("script");for(var A in _)if(_[A].src==w)return _[A]}return null}},isActive:function(w,_,A){for(var F="no-"+_;w;){var E=w.classList;if(E.contains(_))return!0;if(E.contains(F))return!1;w=w.parentElement}return!!A}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(w,_){var A=l.util.clone(l.languages[w]);for(var F in _)A[F]=_[F];return A},insertBefore:function(w,_,A,F){F=F||l.languages;var E=F[w],B={};for(var N in E)if(E.hasOwnProperty(N)){if(N==_)for(var q in A)A.hasOwnProperty(q)&&(B[q]=A[q]);A.hasOwnProperty(N)||(B[N]=E[N])}var O=F[w];return F[w]=B,l.languages.DFS(l.languages,function(D,K){K===O&&D!=w&&(this[D]=B)}),B},DFS:function w(_,A,F,E){E=E||{};var B=l.util.objId;for(var N in _)if(_.hasOwnProperty(N)){A.call(_,N,_[N],F||N);var q=_[N],O=l.util.type(q);O==="Object"&&!E[B(q)]?(E[B(q)]=!0,w(q,A,null,E)):O==="Array"&&!E[B(q)]&&(E[B(q)]=!0,w(q,A,N,E))}}},plugins:{},highlightAll:function(w,_){l.highlightAllUnder(document,w,_)},highlightAllUnder:function(w,_,A){var F={callback:A,container:w,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",F),F.elements=Array.prototype.slice.apply(F.container.querySelectorAll(F.selector)),l.hooks.run("before-all-elements-highlight",F);for(var E=0,B;B=F.elements[E++];)l.highlightElement(B,_===!0,F.callback)},highlightElement:function(w,_,A){var F=l.util.getLanguage(w),E=l.languages[F];l.util.setLanguage(w,F);var B=w.parentElement;B&&B.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(B,F);var N=w.textContent,q={element:w,language:F,grammar:E,code:N};function O(K){q.highlightedCode=K,l.hooks.run("before-insert",q),q.element.innerHTML=q.highlightedCode,l.hooks.run("after-highlight",q),l.hooks.run("complete",q),A&&A.call(q.element)}if(l.hooks.run("before-sanity-check",q),B=q.element.parentElement,B&&B.nodeName.toLowerCase()==="pre"&&!B.hasAttribute("tabindex")&&B.setAttribute("tabindex","0"),!q.code){l.hooks.run("complete",q),A&&A.call(q.element);return}if(l.hooks.run("before-highlight",q),!q.grammar){O(l.util.encode(q.code));return}if(_&&n.Worker){var D=new Worker(l.filename);D.onmessage=function(K){O(K.data)},D.postMessage(JSON.stringify({language:q.language,code:q.code,immediateClose:!0}))}else O(l.highlight(q.code,q.grammar,q.language))},highlight:function(w,_,A){var F={code:w,grammar:_,language:A};if(l.hooks.run("before-tokenize",F),!F.grammar)throw new Error('The language "'+F.language+'" has no grammar.');return F.tokens=l.tokenize(F.code,F.grammar),l.hooks.run("after-tokenize",F),u.stringify(l.util.encode(F.tokens),F.language)},tokenize:function(w,_){var A=_.rest;if(A){for(var F in A)_[F]=A[F];delete _.rest}var E=new f;return m(E,E.head,w),d(w,E,_,E.head,0),x(E)},hooks:{all:{},add:function(w,_){var A=l.hooks.all;A[w]=A[w]||[],A[w].push(_)},run:function(w,_){var A=l.hooks.all[w];if(!(!A||!A.length))for(var F=0,E;E=A[F++];)E(_)}},Token:u};n.Prism=l;function u(w,_,A,F){this.type=w,this.content=_,this.alias=A,this.length=(F||"").length|0}u.stringify=function w(_,A){if(typeof _=="string")return _;if(Array.isArray(_)){var F="";return _.forEach(function(O){F+=w(O,A)}),F}var E={type:_.type,content:w(_.content,A),tag:"span",classes:["token",_.type],attributes:{},language:A},B=_.alias;B&&(Array.isArray(B)?Array.prototype.push.apply(E.classes,B):E.classes.push(B)),l.hooks.run("wrap",E);var N="";for(var q in E.attributes)N+=" "+q+'="'+(E.attributes[q]||"").replace(/"/g,""")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+N+">"+E.content+"</"+E.tag+">"};function h(w,_,A,F){w.lastIndex=_;var E=w.exec(A);if(E&&F&&E[1]){var B=E[1].length;E.index+=B,E[0]=E[0].slice(B)}return E}function d(w,_,A,F,E,B){for(var N in A)if(!(!A.hasOwnProperty(N)||!A[N])){var q=A[N];q=Array.isArray(q)?q:[q];for(var O=0;O<q.length;++O){if(B&&B.cause==N+","+O)return;var D=q[O],K=D.inside,tt=!!D.lookbehind,U=!!D.greedy,W=D.alias;if(U&&!D.pattern.global){var H=D.pattern.toString().match(/[imsuy]*$/)[0];D.pattern=RegExp(D.pattern.source,H+"g")}for(var G=D.pattern||D,$=F.next,Z=E;$!==_.tail&&!(B&&Z>=B.reach);Z+=$.value.length,$=$.next){var R=$.value;if(_.length>w.length)return;if(!(R instanceof u)){var j=1,J;if(U){if(J=h(G,Z,w,tt),!J||J.index>=w.length)break;var mt=J.index,P=J.index+J[0].length,ct=Z;for(ct+=$.value.length;mt>=ct;)$=$.next,ct+=$.value.length;if(ct-=$.value.length,Z=ct,$.value instanceof u)continue;for(var lt=$;lt!==_.tail&&(ct<P||typeof lt.value=="string");lt=lt.next)j++,ct+=lt.value.length;j--,R=w.slice(Z,ct),J.index-=Z}else if(J=h(G,0,R,tt),!J)continue;var mt=J.index,wt=J[0],St=R.slice(0,mt),Dt=R.slice(mt+wt.length),xt=Z+R.length;B&&xt>B.reach&&(B.reach=xt);var _t=$.prev;St&&(_t=m(_,_t,St),Z+=St.length),g(_,_t,j);var re=new u(N,K?l.tokenize(wt,K):wt,W,wt);if($=m(_,_t,re),Dt&&m(_,$,Dt),j>1){var Qt={cause:N+","+O,reach:xt};d(w,_,A,$.prev,Z,Qt),B&&Qt.reach>B.reach&&(B.reach=Qt.reach)}}}}}}function f(){var w={value:null,prev:null,next:null},_={value:null,prev:w,next:null};w.next=_,this.head=w,this.tail=_,this.length=0}function m(w,_,A){var F=_.next,E={value:A,prev:_,next:F};return _.next=E,F.prev=E,w.length++,E}function g(w,_,A){for(var F=_.next,E=0;E<A&&F!==w.tail;E++)F=F.next;_.next=F,F.prev=_,w.length-=E}function x(w){for(var _=[],A=w.head.next;A!==w.tail;)_.push(A.value),A=A.next;return _}if(!n.document)return n.addEventListener&&(l.disableWorkerMessageHandler||n.addEventListener("message",function(w){var _=JSON.parse(w.data),A=_.language,F=_.code,E=_.immediateClose;n.postMessage(l.highlight(F,l.languages[A],A)),E&&n.close()},!1)),l;var C=l.util.currentScript();C&&(l.filename=C.src,C.hasAttribute("data-manual")&&(l.manual=!0));function k(){l.manual||l.highlightAll()}if(!l.manual){var v=document.readyState;v==="loading"||v==="interactive"&&C&&C.defer?document.addEventListener("DOMContentLoaded",k):window.requestAnimationFrame?window.requestAnimationFrame(k):window.setTimeout(k,16)}return l})(t);e.exports&&(e.exports=r),typeof gh<"u"&&(gh.Prism=r)})(Bg)),Bg.exports}var Ag,Hv;function EK(){if(Hv)return Ag;Hv=1,Ag=e,e.displayName="markup",e.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function e(t){t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.value.replace(/&/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(n,i){var o={};o["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[i]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};s["language-"+i]={pattern:/[\s\S]+/,inside:t.languages[i]};var l={};l[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:s},t.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(r,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml}return Ag}var Fg,Uv;function cA(){if(Uv)return Fg;Uv=1,Fg=e,e.displayName="css",e.aliases=[];function e(t){(function(r){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var i=r.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(t)}return Fg}var Ig,Vv;function LK(){if(Vv)return Ig;Vv=1,Ig=e,e.displayName="clike",e.aliases=[];function e(t){t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}return Ig}var Mg,Yv;function uA(){if(Yv)return Mg;Yv=1,Mg=e,e.displayName="javascript",e.aliases=["js"];function e(t){t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),t.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript}return Mg}var Og,Gv;function BK(){if(Gv)return Og;Gv=1;var e=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof gh=="object"?gh:{},t=F();e.Prism={manual:!0,disableWorkerMessageHandler:!0};var r=kG(),n=TK(),i=_K(),o=EK(),s=cA(),l=LK(),u=uA();t();var h={}.hasOwnProperty;function d(){}d.prototype=i;var f=new d;Og=f,f.highlight=x,f.register=m,f.alias=g,f.registered=C,f.listLanguages=k,m(o),m(s),m(l),m(u),f.util.encode=_,f.Token.stringify=v;function m(E){if(typeof E!="function"||!E.displayName)throw new Error("Expected `function` for `grammar`, got `"+E+"`");f.languages[E.displayName]===void 0&&E(f)}function g(E,B){var N=f.languages,q=E,O,D,K,tt;B&&(q={},q[E]=B);for(O in q)for(D=q[O],D=typeof D=="string"?[D]:D,K=D.length,tt=-1;++tt<K;)N[D[tt]]=N[O]}function x(E,B){var N=i.highlight,q;if(typeof E!="string")throw new Error("Expected `string` for `value`, got `"+E+"`");if(f.util.type(B)==="Object")q=B,B=null;else{if(typeof B!="string")throw new Error("Expected `string` for `name`, got `"+B+"`");if(h.call(f.languages,B))q=f.languages[B];else throw new Error("Unknown language: `"+B+"` is not registered")}return N.call(this,E,q,B)}function C(E){if(typeof E!="string")throw new Error("Expected `string` for `language`, got `"+E+"`");return h.call(f.languages,E)}function k(){var E=f.languages,B=[],N;for(N in E)h.call(E,N)&&typeof E[N]=="object"&&B.push(N);return B}function v(E,B,N){var q;return typeof E=="string"?{type:"text",value:E}:f.util.type(E)==="Array"?w(E,B):(q={type:E.type,content:f.Token.stringify(E.content,B,N),tag:"span",classes:["token",E.type],attributes:{},language:B,parent:N},E.alias&&(q.classes=q.classes.concat(E.alias)),f.hooks.run("wrap",q),r(q.tag+"."+q.classes.join("."),A(q.attributes),q.content))}function w(E,B){for(var N=[],q=E.length,O=-1,D;++O<q;)D=E[O],D!==""&&D!==null&&D!==void 0&&N.push(D);for(O=-1,q=N.length;++O<q;)D=N[O],N[O]=f.Token.stringify(D,B,N);return N}function _(E){return E}function A(E){var B;for(B in E)E[B]=n(E[B]);return E}function F(){var E="Prism"in e,B=E?e.Prism:void 0;return N;function N(){E?e.Prism=B:delete e.Prism,E=void 0,B=void 0}}return Og}var AK=BK();const qx=Ze(AK);var gr=iG(qx,{});gr.registerLanguage=function(e,t){return qx.register(t)};gr.alias=function(e,t){return qx.alias(e,t)};const FK={'code[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{background:"hsl(220, 13%, 18%)",color:"hsl(220, 14%, 71%)",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:'"Fira Code", "Fira Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"2",OTabSize:"2",tabSize:"2",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:"0.5em 0",overflow:"auto",borderRadius:"0.3em"},'code[class*="language-"]::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::-moz-selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"]::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'code[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},'pre[class*="language-"] *::selection':{background:"hsl(220, 13%, 28%)",color:"inherit",textShadow:"none"},':not(pre) > code[class*="language-"]':{padding:"0.2em 0.3em",borderRadius:"0.3em",whiteSpace:"normal"},comment:{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},prolog:{color:"hsl(220, 10%, 40%)"},cdata:{color:"hsl(220, 10%, 40%)"},doctype:{color:"hsl(220, 14%, 71%)"},punctuation:{color:"hsl(220, 14%, 71%)"},entity:{color:"hsl(220, 14%, 71%)",cursor:"help"},"attr-name":{color:"hsl(29, 54%, 61%)"},"class-name":{color:"hsl(29, 54%, 61%)"},boolean:{color:"hsl(29, 54%, 61%)"},constant:{color:"hsl(29, 54%, 61%)"},number:{color:"hsl(29, 54%, 61%)"},atrule:{color:"hsl(29, 54%, 61%)"},keyword:{color:"hsl(286, 60%, 67%)"},property:{color:"hsl(355, 65%, 65%)"},tag:{color:"hsl(355, 65%, 65%)"},symbol:{color:"hsl(355, 65%, 65%)"},deleted:{color:"hsl(355, 65%, 65%)"},important:{color:"hsl(355, 65%, 65%)"},selector:{color:"hsl(95, 38%, 62%)"},string:{color:"hsl(95, 38%, 62%)"},char:{color:"hsl(95, 38%, 62%)"},builtin:{color:"hsl(95, 38%, 62%)"},inserted:{color:"hsl(95, 38%, 62%)"},regex:{color:"hsl(95, 38%, 62%)"},"attr-value":{color:"hsl(95, 38%, 62%)"},"attr-value > .token.punctuation":{color:"hsl(95, 38%, 62%)"},variable:{color:"hsl(207, 82%, 66%)"},operator:{color:"hsl(207, 82%, 66%)"},function:{color:"hsl(207, 82%, 66%)"},url:{color:"hsl(187, 47%, 55%)"},"attr-value > .token.punctuation.attr-equals":{color:"hsl(220, 14%, 71%)"},"special-attr > .token.attr-value > .token.value.css":{color:"hsl(220, 14%, 71%)"},".language-css .token.selector":{color:"hsl(355, 65%, 65%)"},".language-css .token.property":{color:"hsl(220, 14%, 71%)"},".language-css .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.function":{color:"hsl(187, 47%, 55%)"},".language-css .token.url > .token.string.url":{color:"hsl(95, 38%, 62%)"},".language-css .token.important":{color:"hsl(286, 60%, 67%)"},".language-css .token.atrule .token.rule":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.operator":{color:"hsl(286, 60%, 67%)"},".language-javascript .token.template-string > .token.interpolation > .token.interpolation-punctuation.punctuation":{color:"hsl(5, 48%, 51%)"},".language-json .token.operator":{color:"hsl(220, 14%, 71%)"},".language-json .token.null.keyword":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.url":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.operator":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url-reference.url > .token.string":{color:"hsl(220, 14%, 71%)"},".language-markdown .token.url > .token.content":{color:"hsl(207, 82%, 66%)"},".language-markdown .token.url > .token.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.url-reference.url":{color:"hsl(187, 47%, 55%)"},".language-markdown .token.blockquote.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.hr.punctuation":{color:"hsl(220, 10%, 40%)",fontStyle:"italic"},".language-markdown .token.code-snippet":{color:"hsl(95, 38%, 62%)"},".language-markdown .token.bold .token.content":{color:"hsl(29, 54%, 61%)"},".language-markdown .token.italic .token.content":{color:"hsl(286, 60%, 67%)"},".language-markdown .token.strike .token.content":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.strike .token.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.list.punctuation":{color:"hsl(355, 65%, 65%)"},".language-markdown .token.title.important > .token.punctuation":{color:"hsl(355, 65%, 65%)"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},namespace:{Opacity:"0.8"},"token.tab:not(:empty):before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.cr:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.lf:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"token.space:before":{color:"hsla(220, 14%, 71%, 0.15)",textShadow:"none"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item":{marginRight:"0.4em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 9%, 55%)",padding:"0.1em 0.4em",borderRadius:"0.3em"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},"div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus":{background:"hsl(220, 13%, 28%)",color:"hsl(220, 14%, 71%)"},".line-highlight.line-highlight":{background:"hsla(220, 100%, 80%, 0.04)"},".line-highlight.line-highlight:before":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},".line-highlight.line-highlight[data-end]:after":{background:"hsl(220, 13%, 26%)",color:"hsl(220, 14%, 71%)",padding:"0.1em 0.6em",borderRadius:"0.3em",boxShadow:"0 2px 0 0 rgba(0, 0, 0, 0.2)"},"pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before":{backgroundColor:"hsla(220, 100%, 80%, 0.04)"},".line-numbers.line-numbers .line-numbers-rows":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".command-line .command-line-prompt":{borderRightColor:"hsla(220, 14%, 71%, 0.15)"},".line-numbers .line-numbers-rows > span:before":{color:"hsl(220, 14%, 45%)"},".command-line .command-line-prompt > span:before":{color:"hsl(220, 14%, 45%)"},".rainbow-braces .token.token.punctuation.brace-level-1":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-5":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-9":{color:"hsl(355, 65%, 65%)"},".rainbow-braces .token.token.punctuation.brace-level-2":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-6":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-10":{color:"hsl(95, 38%, 62%)"},".rainbow-braces .token.token.punctuation.brace-level-3":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-7":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-11":{color:"hsl(207, 82%, 66%)"},".rainbow-braces .token.token.punctuation.brace-level-4":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-8":{color:"hsl(286, 60%, 67%)"},".rainbow-braces .token.token.punctuation.brace-level-12":{color:"hsl(286, 60%, 67%)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)":{backgroundColor:"hsla(353, 100%, 66%, 0.15)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix)::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre > code.diff-highlight .token.token.deleted:not(.prefix) *::selection":{backgroundColor:"hsla(353, 95%, 66%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)":{backgroundColor:"hsla(137, 100%, 55%, 0.15)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::-moz-selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre.diff-highlight > code .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix)::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},"pre > code.diff-highlight .token.token.inserted:not(.prefix) *::selection":{backgroundColor:"hsla(135, 73%, 55%, 0.25)"},".prism-previewer.prism-previewer:before":{borderColor:"hsl(224, 13%, 17%)"},".prism-previewer-gradient.prism-previewer-gradient div":{borderColor:"hsl(224, 13%, 17%)",borderRadius:"0.3em"},".prism-previewer-color.prism-previewer-color:before":{borderRadius:"0.3em"},".prism-previewer-easing.prism-previewer-easing:before":{borderRadius:"0.3em"},".prism-previewer.prism-previewer:after":{borderTopColor:"hsl(224, 13%, 17%)"},".prism-previewer-flipped.prism-previewer-flipped.after":{borderBottomColor:"hsl(224, 13%, 17%)"},".prism-previewer-angle.prism-previewer-angle:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-time.prism-previewer-time:before":{background:"hsl(219, 13%, 22%)"},".prism-previewer-easing.prism-previewer-easing":{background:"hsl(219, 13%, 22%)"},".prism-previewer-angle.prism-previewer-angle circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-time.prism-previewer-time circle":{stroke:"hsl(220, 14%, 71%)",strokeOpacity:"1"},".prism-previewer-easing.prism-previewer-easing circle":{stroke:"hsl(220, 14%, 71%)",fill:"transparent"},".prism-previewer-easing.prism-previewer-easing path":{stroke:"hsl(220, 14%, 71%)"},".prism-previewer-easing.prism-previewer-easing line":{stroke:"hsl(220, 14%, 71%)"}};var Rg,Xv;function hA(){if(Xv)return Rg;Xv=1,Rg=e,e.displayName="typescript",e.aliases=["ts"];function e(t){(function(r){r.languages.typescript=r.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),r.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete r.languages.typescript.parameter,delete r.languages.typescript["literal-property"];var n=r.languages.extend("typescript",{});delete n["class-name"],r.languages.typescript["class-name"].inside=n,r.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),r.languages.ts=r.languages.typescript})(t)}return Rg}var IK=hA();const MK=Ze(IK);var OK=uA();const RK=Ze(OK);var Pg,Kv;function PK(){if(Kv)return Pg;Kv=1,Pg=e,e.displayName="python",e.aliases=["py"];function e(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return Pg}var NK=PK();const DK=Ze(NK);var Ng,Qv;function $K(){if(Qv)return Ng;Qv=1,Ng=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}return Ng}var jK=$K();const zK=Ze(jK);var Dg,Zv;function qK(){if(Zv)return Dg;Zv=1,Dg=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(r){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",i={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},o={bash:i,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};r.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:o},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:i}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:o},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:o.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:o.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},i.inside=r.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],l=o.variable[1].inside,u=0;u<s.length;u++)l[s[u]]=r.languages.bash[s[u]];r.languages.shell=r.languages.bash})(t)}return Dg}var WK=qK();const HK=Ze(WK);var UK=cA();const VK=Ze(UK);var $g,Jv;function YK(){if(Jv)return $g;Jv=1,$g=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return $g}var GK=YK();const XK=Ze(GK);var jg,t2;function KK(){if(t2)return jg;t2=1,jg=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(r){var n=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,o="(?:"+i.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+i.source+")?)",s=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),l=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function u(h,d){d=(d||"").replace(/m/g,"")+"m";var f=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<value>>/g,function(){return h});return RegExp(f,d)}r.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return o})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return o}).replace(/<<key>>/g,function(){return"(?:"+s+"|"+l+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:u(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:u(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:u(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:u(l),lookbehind:!0,greedy:!0},number:{pattern:u(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},r.languages.yml=r.languages.yaml})(t)}return jg}var QK=KK();const ZK=Ze(QK);var zg,e2;function JK(){if(e2)return zg;e2=1,zg=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(r){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function i(m){return m=m.replace(/<inner>/g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+m+")")}var o=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return o}),l=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;r.languages.markdown=r.languages.extend("markup",{}),r.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:r.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+s+l+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+l+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(o),inside:r.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+l+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),inside:{"table-header":{pattern:RegExp(o),alias:"important",inside:r.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:i(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:i(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:i(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:i(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(m){["url","bold","italic","strike","code-snippet"].forEach(function(g){m!==g&&(r.languages.markdown[m].inside.content.inside[g]=r.languages.markdown[g])})}),r.hooks.add("after-tokenize",function(m){if(m.language!=="markdown"&&m.language!=="md")return;function g(x){if(!(!x||typeof x=="string"))for(var C=0,k=x.length;C<k;C++){var v=x[C];if(v.type!=="code"){g(v.content);continue}var w=v.content[1],_=v.content[3];if(w&&_&&w.type==="code-language"&&_.type==="code-block"&&typeof w.content=="string"){var A=w.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");A=(/[a-z][\w-]*/i.exec(A)||[""])[0].toLowerCase();var F="language-"+A;_.alias?typeof _.alias=="string"?_.alias=[_.alias,F]:_.alias.push(F):_.alias=[F]}}}g(m.tokens)}),r.hooks.add("wrap",function(m){if(m.type==="code-block"){for(var g="",x=0,C=m.classes.length;x<C;x++){var k=m.classes[x],v=/language-(.+)/.exec(k);if(v){g=v[1];break}}var w=r.languages[g];if(w)m.content=r.highlight(f(m.content.value),w,g);else if(g&&g!=="none"&&r.plugins.autoloader){var _="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);m.attributes.id=_,r.plugins.autoloader.loadLanguages(g,function(){var A=document.getElementById(_);A&&(A.innerHTML=r.highlight(A.textContent,r.languages[g],g))})}}});var u=RegExp(r.languages.markup.tag.pattern.source,"gi"),h={amp:"&",lt:"<",gt:">",quot:'"'},d=String.fromCodePoint||String.fromCharCode;function f(m){var g=m.replace(u,"");return g=g.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(x,C){if(C=C.toLowerCase(),C[0]==="#"){var k;return C[1]==="x"?k=parseInt(C.slice(2),16):k=Number(C.slice(1)),d(k)}else{var v=h[C];return v||x}}),g}r.languages.md=r.languages.markdown})(t)}return zg}var tQ=JK();const eQ=Ze(tQ);var qg,r2;function rQ(){if(r2)return qg;r2=1,qg=e,e.displayName="java",e.aliases=[];function e(t){(function(r){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,i=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,o={pattern:RegExp(i+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};r.languages.java=r.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[o,{pattern:RegExp(i+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:o.inside}],keyword:n,function:[r.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),r.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),r.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":o,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return qg}var nQ=rQ();const iQ=Ze(nQ);var Wg,n2;function oQ(){if(n2)return Wg;n2=1,Wg=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return Wg}var Hg,i2;function aQ(){if(i2)return Hg;i2=1;var e=oQ();Hg=t,t.displayName="cpp",t.aliases=[];function t(r){r.register(e),(function(n){var i=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,o=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return i.source});n.languages.cpp=n.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return i.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:i,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),n.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return o})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),n.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n.languages.cpp}}}}),n.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:n.languages.extend("cpp",{})}}),n.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},n.languages.cpp["base-clause"])})(r)}return Hg}var sQ=aQ();const lQ=Ze(sQ);var Ug,o2;function cQ(){if(o2)return Ug;o2=1,Ug=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return Ug}var uQ=cQ();const hQ=Ze(uQ);var Vg,a2;function dQ(){if(a2)return Vg;a2=1,Vg=e,e.displayName="rust",e.aliases=[];function e(t){(function(r){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,i=0;i<2;i++)n=n.replace(/<self>/g,function(){return n});n=n.replace(/<self>/g,function(){return/[^\s\S]/.source}),r.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},r.languages.rust["closure-params"].inside.rest=r.languages.rust,r.languages.rust.attribute.inside.string=r.languages.rust.string})(t)}return Vg}var fQ=dQ();const pQ=Ze(fQ);var Yg,s2;function gQ(){if(s2)return Yg;s2=1,Yg=e,e.displayName="jsx",e.aliases=[];function e(t){(function(r){var n=r.util.clone(r.languages.javascript),i=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,o=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function l(d,f){return d=d.replace(/<S>/g,function(){return i}).replace(/<BRACES>/g,function(){return o}).replace(/<SPREAD>/g,function(){return s}),RegExp(d,f)}s=l(s).source,r.languages.jsx=r.languages.extend("markup",n),r.languages.jsx.tag.pattern=l(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=n.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:l(/<SPREAD>/.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:l(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);var u=function(d){return d?typeof d=="string"?d:typeof d.content=="string"?d.content:d.content.map(u).join(""):""},h=function(d){for(var f=[],m=0;m<d.length;m++){var g=d[m],x=!1;if(typeof g!="string"&&(g.type==="tag"&&g.content[0]&&g.content[0].type==="tag"?g.content[0].content[0].content==="</"?f.length>0&&f[f.length-1].tagName===u(g.content[0].content[1])&&f.pop():g.content[g.content.length-1].content==="/>"||f.push({tagName:u(g.content[0].content[1]),openedBraces:0}):f.length>0&&g.type==="punctuation"&&g.content==="{"?f[f.length-1].openedBraces++:f.length>0&&f[f.length-1].openedBraces>0&&g.type==="punctuation"&&g.content==="}"?f[f.length-1].openedBraces--:x=!0),(x||typeof g=="string")&&f.length>0&&f[f.length-1].openedBraces===0){var C=u(g);m<d.length-1&&(typeof d[m+1]=="string"||d[m+1].type==="plain-text")&&(C+=u(d[m+1]),d.splice(m+1,1)),m>0&&(typeof d[m-1]=="string"||d[m-1].type==="plain-text")&&(C=u(d[m-1])+C,d.splice(m-1,1),m--),d[m]=new r.Token("plain-text",C,null,C)}g.content&&typeof g.content!="string"&&h(g.content)}};r.hooks.add("after-tokenize",function(d){d.language!=="jsx"&&d.language!=="tsx"||h(d.tokens)})})(t)}return Yg}var Gg,l2;function mQ(){if(l2)return Gg;l2=1;var e=gQ(),t=hA();Gg=r,r.displayName="tsx",r.aliases=[];function r(n){n.register(e),n.register(t),(function(i){var o=i.util.clone(i.languages.typescript);i.languages.tsx=i.languages.extend("jsx",o),delete i.languages.tsx.parameter,delete i.languages.tsx["literal-property"];var s=i.languages.tsx.tag;s.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+s.pattern.source+")",s.pattern.flags),s.lookbehind=!0})(n)}return Gg}var yQ=mQ();const xQ=Ze(yQ);gr.registerLanguage("typescript",MK);gr.registerLanguage("javascript",RK);gr.registerLanguage("python",DK);gr.registerLanguage("json",zK);gr.registerLanguage("bash",HK);gr.registerLanguage("css",VK);gr.registerLanguage("sql",XK);gr.registerLanguage("yaml",ZK);gr.registerLanguage("markdown",eQ);gr.registerLanguage("java",iQ);gr.registerLanguage("cpp",lQ);gr.registerLanguage("go",hQ);gr.registerLanguage("rust",pQ);gr.registerLanguage("tsx",xQ);function CQ(e){return e.toLowerCase().replace(/[^\w\u4e00-\u9fff]+/g,"-").replace(/^-|-$/g,"")||"heading"}function gy(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(gy).join(""):lr.isValidElement(e)&&e.props.children?gy(e.props.children):""}function Na(e){const t=({children:r})=>{const n=gy(r),i=CQ(n);return lr.createElement(e,{id:i},r)};return t.displayName=`Heading_${e}`,t}async function kQ(e,t){t.preventDefault();const{currentView:r,projects:n,setCurrentView:i,setLoadingPage:o,openReference:s}=Rt.getState(),l=e.match(/^(.+?)(?:#L(\d+)(?:-L(\d+))?)?$/);if(!l){window.open(e,"_blank");return}const[,u,h,d]=l;if(/^https?:\/\//.test(u)){window.open(u,"_blank");return}let f=u;for(;f.startsWith("./");)f=f.slice(2);if(f.includes("../")&&(f=f.split("/").pop()||f),/^[A-Za-z]:\\/.test(f)){s(f,h?parseInt(h,10):void 0,d?parseInt(d,10):void 0);return}const m=/\.[^/.\\]+$/.test(f),g=f.endsWith(".md");if(m&&!g){if(!r)return;const C=n.find(v=>v.id===r.projectId);if(!C)return;const k=f.startsWith("/")?f:`${C.path}/${u}`;s(k,h?parseInt(h,10):void 0,d?parseInt(d,10):void 0);return}if(!r){console.warn("No current view");return}let x=f;x.startsWith("/")&&(x=x.slice(1)),g&&(x=x.slice(0,-3)),o(!0);try{const C=await xy(r.projectId,r.version,x);i({...r,slug:x,content:C.content});return}catch{if(g){const C=n.find(k=>k.id===r.projectId);if(C){const k=f.startsWith("/")?f:`${C.path}/${u}`;s(k,h?parseInt(h,10):void 0,d?parseInt(d,10):void 0)}}}finally{o(!1)}}const dA=({content:e})=>{const t=st.useMemo(()=>({h1:Na("h1"),h2:Na("h2"),h3:Na("h3"),h4:Na("h4"),h5:Na("h5"),h6:Na("h6"),code({className:r,children:n,...i}){const o=/language-(\w+)/.exec(r||""),s=o?o[1]:"",l=String(n).replace(/\n$/,"");return s==="mermaid"?L.jsx(uv,{chart:l}):s||l.includes(`
|
|
483
|
+
`)?L.jsx(gr,{language:s||"text",style:FK,customStyle:{margin:0,padding:"20px",borderRadius:"12px",fontSize:"0.9em",lineHeight:"1.625",backgroundColor:"#2d2d2d"},showLineNumbers:!1,children:l}):L.jsx("code",{className:r,...i,children:n})},pre({children:r}){var i;if(lr.isValidElement(r)&&r.type===uv)return r;const n=lr.isValidElement(r)&&typeof((i=r.props)==null?void 0:i.children)=="string"?r.props.children:void 0;return L.jsx(RY,{rawCode:n,children:r})},a({href:r,children:n}){return L.jsx("a",{href:r,onClick:i=>{r&&kQ(r,i)},className:"text-accent no-underline cursor-pointer",children:n})}}),[]);return e?L.jsx("div",{className:"markdown-body",children:L.jsx(jO,{remarkPlugins:[JR],components:t,children:e})}):null};function bQ(e,t){return e.toLowerCase().replace(/[^\w\u4e00-\u9fff]+/g,"-").replace(/^-|-$/g,"")||`heading-${t}`}function vQ(e){var n;const t=e.split(`
|
|
484
|
+
`),r=[];for(let i=0;i<t.length;i++){const o=t[i].match(/^(#{1,6})\s+(.+?)\r?$/);if(o){const s=o[1].length,l=o[2].trim(),u=bQ(l,r.length);r.push({id:u,text:l,level:s,position:i,contentLength:0})}}for(let i=0;i<r.length;i++){const o=((n=r[i+1])==null?void 0:n.position)??t.length;r[i].contentLength=o-r[i].position}return r}function wQ(e){const[t,r]=st.useState(null);return st.useEffect(()=>{if(e.length===0)return;const n=new IntersectionObserver(i=>{const o=i.filter(s=>s.isIntersecting);if(o.length>0){const s=o.sort((l,u)=>l.boundingClientRect.top-u.boundingClientRect.top)[0];r(s.target.id)}},{rootMargin:"-20% 0px -70% 0px"});return e.forEach(i=>{const o=document.getElementById(i);o&&n.observe(o)}),()=>n.disconnect()},[e]),t}function SQ(e){const t=st.useMemo(()=>vQ(e),[e]),r=st.useMemo(()=>t.map(o=>o.id),[t]),n=wQ(r),i=st.useCallback(o=>{const s=document.getElementById(o);s&&s.scrollIntoView({behavior:"smooth",block:"start"})},[]);return{items:t,activeId:n,scrollToHeading:i}}const TQ=({content:e})=>{const{items:t,activeId:r,scrollToHeading:n}=SQ(e);return t.length===0?null:L.jsxs("aside",{className:"w-[200px] h-full shrink-0 border-l border-edge bg-surface overflow-y-auto py-5 px-3",children:[L.jsx("h3",{className:"text-[11px] font-semibold uppercase tracking-wider text-content-muted mb-3 select-none",children:"目录"}),L.jsx("nav",{className:"flex flex-col gap-0.5",children:t.map(i=>L.jsx("a",{href:`#${i.id}`,title:i.text,className:`
|
|
485
|
+
block py-1 text-[12px] leading-snug truncate
|
|
486
|
+
transition-colors duration-150
|
|
487
|
+
hover:text-content
|
|
488
|
+
${i.id===r?"text-accent font-medium":"text-content-tertiary"}
|
|
489
|
+
`,style:{paddingLeft:`${(i.level-1)*12}px`},onClick:o=>{o.preventDefault(),n(i.id)},children:i.text},i.id))})]})},_Q=({size:e=32})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M4 19.5A2.5 2.5 0 0 1 6.5 17H20"}),L.jsx("path",{d:"M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"})]}),EQ=()=>{const e=Rt(o=>o.currentView),t=Rt(o=>o.currentWiki),r=ie(o=>o.aiPanelOpen),n=t==null?void 0:t.pages.find(o=>o.slug===(e==null?void 0:e.slug)),i=(n==null?void 0:n.level)==="Beginner"?"bg-accent-light text-accent-text border-accent/15":(n==null?void 0:n.level)==="Intermediate"?"bg-warning-light text-[#92400e] border-warning/15":"bg-danger-light text-[#991b1b] border-danger/15";return e?e.loading?L.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-4 text-content-tertiary",children:[L.jsx("div",{className:"w-8 h-8 rounded-full border-2 border-edge border-t-accent animate-spin"}),L.jsx("p",{className:"text-[13px]",children:"加载中..."})]}):e.error?L.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-4 p-10",children:[L.jsx("div",{className:"w-14 h-14 rounded-[14px] bg-danger-light text-danger flex items-center justify-center text-2xl font-bold",children:"!"}),L.jsx("p",{className:"text-base font-semibold text-content",children:"加载失败"}),L.jsx("p",{className:"text-[13px] text-content-secondary max-w-md text-center leading-relaxed",children:e.error})]}):L.jsxs("div",{className:"flex-1 min-w-0 flex overflow-hidden",children:[L.jsxs("div",{className:"flex-1 overflow-y-auto flex flex-col",children:[n&&L.jsxs("div",{className:"px-12 pt-7 pb-0 border-b border-edge-light bg-surface",children:[L.jsx("h1",{className:"text-[26px] font-bold text-content leading-snug tracking-tight mb-2",children:n.title}),L.jsxs("div",{className:"flex items-center gap-3 pb-4 text-xs text-content-tertiary flex-wrap",children:[L.jsx("span",{children:n.section}),n.group&&L.jsxs(L.Fragment,{children:[L.jsx("span",{className:"text-edge",children:"·"}),L.jsx("span",{children:n.group})]}),L.jsx("span",{className:`inline-flex items-center px-2 py-0.5 rounded-full text-[11px] font-medium leading-snug border ${i}`,children:n.level})]})]}),L.jsx("div",{className:"flex-1 px-12 pt-8 pb-20 max-w-[860px] mx-auto overflow-x-hidden",children:L.jsx(dA,{content:e.content})})]}),e.content&&!r&&L.jsx(TQ,{content:e.content})]}):L.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-5 text-content-tertiary",children:[L.jsx("div",{className:"w-16 h-16 rounded-2xl bg-surface-tertiary flex items-center justify-center text-content-muted",children:L.jsx(_Q,{size:32})}),L.jsxs("div",{className:"text-center",children:[L.jsx("p",{className:"text-base font-semibold text-content mb-1",children:"开始阅读"}),L.jsxs("p",{className:"text-[13px] text-content-tertiary",children:["从左侧导航选择一个页面,或按",L.jsx("kbd",{className:"text-[11px] px-1.5 py-0.5 mx-1 rounded bg-surface-tertiary border border-edge-light font-mono",children:"⌘K"}),"搜索"]})]})]})};function LQ(e,t,r,n){var i=this,o=st.useRef(null),s=st.useRef(0),l=st.useRef(0),u=st.useRef(null),h=st.useRef([]),d=st.useRef(),f=st.useRef(),m=st.useRef(e),g=st.useRef(!0),x=st.useRef(),C=st.useRef();m.current=e;var k=typeof window<"u",v=!t&&t!==0&&k;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var w=!!(r=r||{}).leading,_=!("trailing"in r)||!!r.trailing,A=!!r.flushOnExit&&_,F="maxWait"in r,E="debounceOnServer"in r&&!!r.debounceOnServer,B=F?Math.max(+r.maxWait||0,t):null,N=st.useMemo(function(){var q=function(H){var G=h.current,$=d.current;return h.current=d.current=null,s.current=H,l.current=l.current||H,f.current=m.current.apply($,G)},O=function(H,G){v&&cancelAnimationFrame(u.current),u.current=v?requestAnimationFrame(H):setTimeout(H,G)},D=function(H){if(!g.current)return!1;var G=H-o.current;return!o.current||G>=t||G<0||F&&H-s.current>=B},K=function(H){return u.current=null,_&&h.current?q(H):(h.current=d.current=null,f.current)},tt=function H(){var G=Date.now();if(w&&l.current===s.current&&U(),D(G))return K(G);if(g.current){var $=t-(G-o.current),Z=F?Math.min($,B-(G-s.current)):$;O(H,Z)}},U=function(){},W=function(){if(k||E){var H,G=Date.now(),$=D(G);if(h.current=[].slice.call(arguments),d.current=i,o.current=G,A&&!x.current&&(x.current=function(){var Z;((Z=globalThis.document)==null?void 0:Z.visibilityState)==="hidden"&&C.current.flush()},(H=globalThis.document)==null||H.addEventListener==null||H.addEventListener("visibilitychange",x.current)),$){if(!u.current&&g.current)return s.current=o.current,O(tt,t),w?q(o.current):f.current;if(F)return O(tt,t),q(o.current)}return u.current||O(tt,t),f.current}};return W.cancel=function(){var H=u.current;H&&(v?cancelAnimationFrame(u.current):clearTimeout(u.current)),s.current=0,h.current=o.current=d.current=u.current=null},W.isPending=function(){return!!u.current},W.flush=function(){return u.current?K(Date.now()):f.current},W},[w,F,t,B,_,A,v,k,E,n]);return C.current=N,st.useEffect(function(){return g.current=!0,function(){var q;A&&C.current.flush(),x.current&&((q=globalThis.document)==null||q.removeEventListener==null||q.removeEventListener("visibilitychange",x.current),x.current=null),g.current=!1}},[A]),N}const BQ=({size:e=16})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("circle",{cx:"11",cy:"11",r:"8"}),L.jsx("path",{d:"M21 21l-4.35-4.35"})]}),AQ=({size:e=18})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M18 6L6 18"}),L.jsx("path",{d:"M6 6l12 12"})]}),FQ=({size:e=14})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),L.jsx("polyline",{points:"14 2 14 8 20 8"})]}),IQ=({result:e,onClick:t})=>{const r=e.page.level==="Beginner"?"badge-beginner":e.page.level==="Intermediate"?"badge-intermediate":"badge-advanced";return L.jsxs("button",{onClick:t,className:`
|
|
490
|
+
flex items-start gap-2.5 w-full px-3.5 py-2.5
|
|
491
|
+
border-none bg-transparent text-content
|
|
492
|
+
cursor-pointer text-left rounded-md
|
|
493
|
+
transition-colors duration-150
|
|
494
|
+
hover:bg-surface-hover
|
|
495
|
+
`,children:[L.jsx(FQ,{size:16}),L.jsxs("div",{className:"flex-1 min-w-0",children:[L.jsxs("div",{className:"flex items-center gap-2 mb-0.5",children:[L.jsx("span",{className:"font-medium text-[13px] truncate",children:e.page.title}),L.jsx("span",{className:`badge ${r}`,children:e.page.level})]}),L.jsxs("div",{className:"text-[12px] text-content-tertiary truncate",children:[e.page.section,e.page.group?` / ${e.page.group}`:""]}),e.content&&L.jsx("div",{className:"text-[12px] text-content-secondary mt-1 truncate max-w-full",children:e.content})]})]})},MQ=()=>{const e=Rt(x=>x.searchOpen),t=Rt(x=>x.searchQuery),r=Rt(x=>x.searchResults),n=Rt(x=>x.config),i=Rt(x=>x.setSearchOpen),o=Rt(x=>x.setSearchQuery),s=Rt(x=>x.setSearchResults),l=Rt(x=>x.setCurrentProject),u=Rt(x=>x.setCurrentView),h=st.useRef(null);st.useEffect(()=>{e&&setTimeout(()=>{var x;(x=h.current)==null||x.focus()},50)},[e]);const d=LQ(async x=>{if(!x.trim()){s([]);return}const C=n==null?void 0:n.lastOpenedProject;if(!C){s([]);return}try{const k=await p2(C,x);s(k)}catch(k){console.error("Search failed:",k),s([])}},200),f=st.useCallback(x=>{const C=x.target.value;o(C),d(C)},[o,d]),m=st.useCallback(x=>{x.projectId!==(n==null?void 0:n.lastOpenedProject)&&l(x.projectId);const C=Rt.getState().projects.find(v=>v.id===x.projectId),k=(C==null?void 0:C.currentVersion)||"latest";u({projectId:x.projectId,version:k,slug:x.page.slug,content:"",loading:!0}),oe(async()=>{const{getPage:v}=await Promise.resolve().then(()=>C2);return{getPage:v}},void 0).then(({getPage:v})=>{v(x.projectId,k,x.page.slug).then(w=>{u({projectId:x.projectId,version:k,slug:x.page.slug,content:w.content,loading:!1})}).catch(w=>{u({projectId:x.projectId,version:k,slug:x.page.slug,content:"",loading:!1,error:w instanceof Error?w.message:"Failed to load page"})})}),i(!1)},[n==null?void 0:n.lastOpenedProject,l,u,i]),g=st.useCallback(x=>{x.target===x.currentTarget&&i(!1)},[i]);return e?L.jsx("div",{className:"overlay overlay-centered",onClick:g,children:L.jsxs("div",{className:`
|
|
496
|
+
modal w-[560px] max-h-[70vh]
|
|
497
|
+
bg-surface-secondary border border-edge
|
|
498
|
+
rounded-xl shadow-lg
|
|
499
|
+
flex flex-col overflow-hidden
|
|
500
|
+
`,children:[L.jsxs("div",{className:"flex items-center gap-2.5 px-4 py-3.5 border-b border-edge",children:[L.jsx(BQ,{size:18}),L.jsx("input",{ref:h,type:"text",value:t,onChange:f,placeholder:"搜索文档...",className:`
|
|
501
|
+
flex-1 border-none outline-none bg-transparent
|
|
502
|
+
text-content text-[15px]
|
|
503
|
+
`}),L.jsx("button",{onClick:()=>i(!1),className:`
|
|
504
|
+
flex items-center justify-center
|
|
505
|
+
w-7 h-7 border border-edge rounded-md
|
|
506
|
+
bg-surface-tertiary text-content-tertiary
|
|
507
|
+
cursor-pointer text-[11px]
|
|
508
|
+
hover:bg-surface-hover hover:text-content
|
|
509
|
+
transition-colors duration-150
|
|
510
|
+
`,title:"关闭 (Esc)",children:L.jsx(AQ,{size:14})})]}),L.jsx("div",{className:"flex-1 overflow-y-auto p-2",children:t&&r.length===0?L.jsx("div",{className:"py-6 px-4 text-center text-content-tertiary text-[13px]",children:"没有找到相关结果"}):t?r.map((x,C)=>L.jsx(IQ,{result:x,onClick:()=>m(x)},`${x.projectId}-${x.page.slug}-${C}`)):L.jsx("div",{className:"py-6 px-4 text-center text-content-tertiary text-[13px]",children:"输入关键词开始搜索"})}),r.length>0&&L.jsxs("div",{className:"px-4 py-2 border-t border-edge text-[11px] text-content-tertiary text-center",children:["找到 ",r.length," 个结果"]})]})}):null},OQ=({size:e=18})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M18 6L6 18"}),L.jsx("path",{d:"M6 6l12 12"})]}),c2=({size:e=16})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M12 5v14"}),L.jsx("path",{d:"M5 12h14"})]}),u2=({size:e=14})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("polyline",{points:"3 6 5 6 21 6"}),L.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})]}),RQ=({size:e=16})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("polyline",{points:"23 4 23 10 17 10"}),L.jsx("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})]}),PQ=({size:e=18})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("circle",{cx:"12",cy:"12",r:"5"}),L.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"3"}),L.jsx("line",{x1:"12",y1:"21",x2:"12",y2:"23"}),L.jsx("line",{x1:"4.22",y1:"4.22",x2:"5.64",y2:"5.64"}),L.jsx("line",{x1:"18.36",y1:"18.36",x2:"19.78",y2:"19.78"}),L.jsx("line",{x1:"1",y1:"12",x2:"3",y2:"12"}),L.jsx("line",{x1:"21",y1:"12",x2:"23",y2:"12"}),L.jsx("line",{x1:"4.22",y1:"19.78",x2:"5.64",y2:"18.36"}),L.jsx("line",{x1:"18.36",y1:"5.64",x2:"19.78",y2:"4.22"})]}),NQ=({size:e=18})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}),h2=({size:e=14})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"})}),DQ=()=>{const e=Rt(O=>O.settingsOpen),t=Rt(O=>O.config),r=Rt(O=>O.projects),n=Rt(O=>O.setSettingsOpen),i=Rt(O=>O.setConfig),o=Rt(O=>O.setProjects),[s,l]=st.useState(""),[u,h]=st.useState(""),[d,f]=st.useState(null),[m,g]=st.useState(!1),[x,C]=st.useState(null),[k,v]=st.useState("general");st.useEffect(()=>{e&&Zg().then(f).catch(()=>{})},[e]);const w=st.useCallback(O=>{O.target===O.currentTarget&&n(!1)},[n]),_=st.useCallback(async()=>{if(!t)return;const O=t.theme==="dark"?"light":"dark";try{const D=await Qu({theme:O});i(D)}catch(D){console.error("Failed to update theme:",D)}},[t,i]),A=st.useCallback(async()=>{if(s.trim()){C(null);try{const O=await Qu({scanPaths:[...(t==null?void 0:t.scanPaths)||[],s.trim()]});i(O),l("")}catch(O){C(O instanceof Error?O.message:"Failed to add scan path")}}},[s,t,i]),F=st.useCallback(async O=>{if(t){C(null);try{const D=await Qu({scanPaths:t.scanPaths.filter(K=>K!==O)});i(D)}catch(D){C(D instanceof Error?D.message:"Failed to remove scan path")}}},[t,i]),E=st.useCallback(async()=>{if(u.trim()){C(null);try{const O=await g2(u.trim());o([...r,O]),h("");const D=await Pl();i(D)}catch(O){C(O instanceof Error?O.message:"Failed to add project")}}},[u,r,o,i]),B=st.useCallback(async O=>{C(null);try{await m2(O),o(r.filter(K=>K.id!==O));const D=await Pl();i(D)}catch(D){C(D instanceof Error?D.message:"Failed to delete project")}},[r,o,i]),N=st.useCallback(async()=>{g(!0),C(null),y2().catch(D=>{C(D instanceof Error?D.message:"Scan failed")});const O=setInterval(async()=>{try{const D=await Zg();if(f(D),!D.scanning&&D.lastScanAt){clearInterval(O),g(!1);const K=await Pl();i(K),o(K.projects)}}catch(D){console.error("Failed to get scan status:",D)}},500);return()=>clearInterval(O)},[i,o]);if(!e)return null;const q=(t==null?void 0:t.theme)==="dark";return L.jsx("div",{className:"overlay overlay-centered",onClick:w,children:L.jsxs("div",{className:`
|
|
511
|
+
modal w-[640px] max-h-[80vh]
|
|
512
|
+
bg-surface-secondary border border-edge
|
|
513
|
+
rounded-xl shadow-lg
|
|
514
|
+
flex flex-col overflow-hidden
|
|
515
|
+
`,children:[L.jsxs("div",{className:"flex items-center justify-between px-5 py-4 border-b border-edge",children:[L.jsx("h2",{className:"text-[16px] font-semibold text-content m-0",children:"设置"}),L.jsx("button",{onClick:()=>n(!1),className:`
|
|
516
|
+
flex items-center justify-center
|
|
517
|
+
w-8 h-8 border-none rounded-md
|
|
518
|
+
bg-transparent text-content-secondary
|
|
519
|
+
cursor-pointer
|
|
520
|
+
hover:bg-surface-hover hover:text-content
|
|
521
|
+
transition-colors duration-150
|
|
522
|
+
`,children:L.jsx(OQ,{size:18})})]}),L.jsx("div",{className:"flex border-b border-edge px-5",children:[{key:"general",label:"通用"},{key:"projects",label:"项目管理"},{key:"scan",label:"扫描"}].map(O=>L.jsx("button",{onClick:()=>v(O.key),className:`
|
|
523
|
+
px-4 py-2.5 border-none bg-transparent cursor-pointer text-[13px]
|
|
524
|
+
transition-colors duration-150
|
|
525
|
+
${k===O.key?"border-b-2 border-accent text-accent font-medium":"border-b-2 border-transparent text-content-secondary font-normal hover:text-content"}
|
|
526
|
+
`,children:O.label},O.key))}),x&&L.jsx("div",{className:"mx-5 mt-3 px-3 py-2 rounded-md bg-danger-light border border-danger text-danger text-[13px]",children:x}),L.jsxs("div",{className:"flex-1 overflow-y-auto p-5",children:[k==="general"&&L.jsx("div",{children:L.jsxs("div",{className:"flex items-center justify-between px-4 py-3 rounded-lg bg-surface-tertiary mb-4",children:[L.jsxs("div",{className:"flex items-center gap-2.5",children:[q?L.jsx(NQ,{size:18}):L.jsx(PQ,{size:18}),L.jsxs("div",{children:[L.jsx("div",{className:"text-[14px] font-medium text-content",children:"主题"}),L.jsx("div",{className:"text-[12px] text-content-tertiary",children:q?"暗色模式":"浅色模式"})]})]}),L.jsx("button",{onClick:_,className:`
|
|
527
|
+
relative w-11 h-6 rounded-full border-none
|
|
528
|
+
cursor-pointer transition-colors duration-200 p-0
|
|
529
|
+
`,style:{background:q?"var(--accent)":"var(--surface-hover)"},children:L.jsx("div",{className:"absolute top-[3px] w-[18px] h-[18px] rounded-full bg-white transition-all duration-200 shadow-sm",style:{left:q?"23px":"3px"}})})]})}),k==="projects"&&L.jsxs("div",{children:[L.jsxs("div",{className:"mb-5",children:[L.jsx("label",{className:"block text-[13px] font-medium text-content mb-1.5",children:"手动添加项目"}),L.jsxs("div",{className:"flex gap-2",children:[L.jsx("input",{type:"text",className:"input",value:u,onChange:O=>h(O.target.value),placeholder:"输入项目路径...",onKeyDown:O=>{O.key==="Enter"&&E()}}),L.jsxs("button",{className:"btn btn-primary",onClick:E,children:[L.jsx(c2,{size:14}),"添加"]})]})]}),L.jsxs("div",{children:[L.jsxs("label",{className:"block text-[13px] font-medium text-content mb-2",children:["已发现的项目 (",r.length,")"]}),r.length===0?L.jsx("div",{className:"py-5 px-4 text-center text-content-tertiary text-[13px] bg-surface-tertiary rounded-lg",children:"暂无项目,请手动添加或扫描发现"}):L.jsx("div",{className:"flex flex-col gap-1.5",children:r.map(O=>L.jsxs("div",{className:"flex items-center gap-2.5 px-3.5 py-2.5 rounded-lg bg-surface-tertiary border border-edge-light",children:[L.jsx(h2,{size:16}),L.jsxs("div",{className:"flex-1 min-w-0",children:[L.jsx("div",{className:"text-[13px] font-medium text-content truncate",children:O.name}),L.jsx("div",{className:"text-[11px] text-content-tertiary truncate",children:O.path})]}),L.jsx("button",{className:"btn btn-icon",onClick:()=>B(O.id),title:"删除项目",style:{color:"var(--danger)",flexShrink:0},children:L.jsx(u2,{size:14})})]},O.id))})]})]}),k==="scan"&&L.jsxs("div",{children:[L.jsxs("div",{className:"mb-5",children:[L.jsx("label",{className:"block text-[13px] font-medium text-content mb-1.5",children:"扫描路径"}),L.jsxs("div",{className:"flex gap-2 mb-2",children:[L.jsx("input",{type:"text",className:"input",value:s,onChange:O=>l(O.target.value),placeholder:"输入要扫描的目录路径...",onKeyDown:O=>{O.key==="Enter"&&A()}}),L.jsxs("button",{className:"btn btn-primary",onClick:A,children:[L.jsx(c2,{size:14}),"添加"]})]}),((t==null?void 0:t.scanPaths)||[]).length===0?L.jsx("div",{className:"p-3 text-center text-content-tertiary text-[13px] bg-surface-tertiary rounded-md",children:"暂无扫描路径"}):L.jsx("div",{className:"flex flex-col gap-1",children:((t==null?void 0:t.scanPaths)||[]).map(O=>L.jsxs("div",{className:"flex items-center gap-2 px-3 py-2 rounded-md bg-surface-tertiary border border-edge-light text-[13px] text-content-secondary",children:[L.jsx(h2,{size:13}),L.jsx("span",{className:"flex-1 truncate",children:O}),L.jsx("button",{className:"btn btn-icon",onClick:()=>F(O),style:{color:"var(--danger)"},children:L.jsx(u2,{size:12})})]},O))})]}),L.jsxs("div",{children:[L.jsxs("button",{className:"btn btn-primary mb-3",onClick:N,disabled:m,style:{opacity:m?.7:1,cursor:m?"not-allowed":"pointer"},children:[L.jsx(RQ,{size:14}),m?"扫描中...":"开始扫描"]}),d&&L.jsxs("div",{className:"px-4 py-3 rounded-lg bg-surface-tertiary border border-edge-light text-[13px]",children:[L.jsxs("div",{className:"text-content mb-1",children:["状态:",d.scanning?"扫描中":"空闲"]}),d.progress&&L.jsxs("div",{className:"text-content-secondary text-[12px]",children:["已扫描 ",d.progress.scanned,"/",d.progress.total,", 发现 ",d.progress.found," 个项目"]}),d.lastScanAt&&L.jsxs("div",{className:"text-content-tertiary text-[11px] mt-1",children:["上次扫描:",new Date(d.lastScanAt).toLocaleString("zh-CN")]})]})]})]})]})]})})},$Q=({size:e=14})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),L.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),jQ=({size:e=14})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("polyline",{points:"20 6 9 17 4 12"})}),zQ=({size:e=20})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M18 6L6 18"}),L.jsx("path",{d:"M6 6l12 12"})]}),qQ=()=>{const e=Rt(g=>g.referenceOpen),t=Rt(g=>g.referenceData),r=Rt(g=>g.closeReference),[n,i]=st.useState([]),[o,s]=st.useState(!1),[l,u]=st.useState(null),[h,d]=st.useState(!1);st.useEffect(()=>{e&&t&&f()},[e,t]);const f=async()=>{if(t){s(!0),u(null);try{const g=await x2(t.filePath,t.startLine,t.endLine);i(g.lines)}catch(g){u(g instanceof Error?g.message:"Failed to load file")}finally{s(!1)}}},m=st.useCallback(async()=>{if(n.length===0)return;const g=n.map(C=>C.content).join(`
|
|
530
|
+
`);await $x(g)&&(d(!0),setTimeout(()=>d(!1),2e3))},[n]);return e?L.jsx("div",{className:"overlay overlay-centered",onClick:r,children:L.jsxs("div",{className:"modal",style:{width:"800px",maxHeight:"70vh",background:"#1e1e2e",borderRadius:"12px",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.4)",display:"flex",flexDirection:"column",overflow:"hidden"},onClick:g=>g.stopPropagation(),children:[L.jsxs("div",{style:{padding:"16px 20px",borderBottom:"1px solid #333",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[L.jsxs("div",{children:[L.jsx("div",{style:{color:"#fff",fontSize:"14px",fontWeight:500},children:t==null?void 0:t.filePath}),(t==null?void 0:t.startLine)&&(t==null?void 0:t.endLine)&&L.jsxs("div",{style:{color:"#888",fontSize:"12px",marginTop:"4px"},children:["L",t.startLine,"-L",t.endLine]})]}),L.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[L.jsxs("button",{onClick:m,disabled:o||l!==null||n.length===0,style:{padding:"6px 12px",background:h?"#4ade80":"transparent",border:`1px solid ${h?"#4ade80":"#444"}`,borderRadius:"6px",color:h?"#fff":"#888",cursor:o||l!==null||n.length===0?"not-allowed":"pointer",fontSize:"13px",display:"flex",alignItems:"center",gap:6,transition:"all 0.15s ease",opacity:o||l!==null||n.length===0?.5:1},title:"复制内容",children:[h?L.jsx(jQ,{size:14}):L.jsx($Q,{size:14}),h?"已复制":"复制"]}),L.jsx("button",{onClick:r,style:{background:"transparent",border:"none",color:"#888",cursor:"pointer",fontSize:"20px",lineHeight:1,padding:"4px 8px",display:"flex",alignItems:"center"},title:"关闭",children:L.jsx(zQ,{size:20})})]})]}),L.jsx("div",{style:{flex:1,overflow:"auto",padding:"16px 0",fontFamily:"'SF Mono', Monaco, 'Cascadia Code', monospace",fontSize:"13px",lineHeight:"1.6"},children:o?L.jsx("div",{style:{color:"#888",textAlign:"center",padding:"40px"},children:"加载中..."}):l?L.jsx("div",{style:{color:"#ff6b6b",textAlign:"center",padding:"40px"},children:l}):L.jsx("table",{style:{width:"100%",borderCollapse:"collapse"},children:L.jsx("tbody",{children:n.map(g=>L.jsxs("tr",{style:{background:g.highlighted?"#0d3d3d":"transparent"},children:[L.jsx("td",{style:{padding:"2px 12px 2px 20px",color:"#666",textAlign:"right",userSelect:"none",width:"50px"},children:g.lineNumber}),L.jsx("td",{style:{padding:"2px 20px 2px 12px",color:g.highlighted?"#e4e4e4":"#a0a0a0",whiteSpace:"pre"},children:g.content||" "})]},g.lineNumber))})})})]})}):null},WQ=({size:e=18})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M18 6L6 18"}),L.jsx("path",{d:"M6 6l12 12"})]}),HQ=({size:e=16})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("circle",{cx:"11",cy:"11",r:"8"}),L.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),L.jsx("line",{x1:"11",y1:"8",x2:"11",y2:"14"}),L.jsx("line",{x1:"8",y1:"11",x2:"14",y2:"11"})]}),UQ=({size:e=16})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("circle",{cx:"11",cy:"11",r:"8"}),L.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}),L.jsx("line",{x1:"8",y1:"11",x2:"14",y2:"11"})]}),VQ=({size:e=16})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"})}),YQ=()=>{const e=Rt(_=>_.mermaidViewerOpen),t=Rt(_=>_.mermaidViewerData),r=Rt(_=>_.closeMermaidViewer),[n,i]=st.useState(1),[o,s]=st.useState(!1),[l,u]=st.useState({x:0,y:0}),[h,d]=st.useState({x:0,y:0}),f=st.useRef(null),m=st.useCallback(()=>{i(_=>Math.min(_*1.2,5))},[]),g=st.useCallback(()=>{i(_=>Math.max(_/1.2,.3))},[]),x=st.useCallback(()=>{i(1),u({x:0,y:0})},[]),C=st.useCallback(_=>{_.button===0&&(s(!0),d({x:_.clientX-l.x,y:_.clientY-l.y}))},[l]),k=st.useCallback(_=>{o&&u({x:_.clientX-h.x,y:_.clientY-h.y})},[o,h]),v=st.useCallback(()=>{s(!1)},[]),w=st.useCallback(_=>{_.preventDefault();const A=_.deltaY>0?.9:1.1;i(F=>Math.max(.3,Math.min(5,F*A)))},[]);return!e||!t?null:L.jsxs("div",{className:"fixed inset-0 z-[1000] flex flex-col animate-fade-in",style:{background:"rgba(0, 0, 0, 0.75)",backdropFilter:"blur(4px)"},onClick:r,children:[L.jsxs("div",{className:`
|
|
531
|
+
flex items-center justify-between
|
|
532
|
+
px-4 py-3
|
|
533
|
+
bg-surface-secondary border-b border-edge
|
|
534
|
+
shrink-0
|
|
535
|
+
`,onClick:_=>_.stopPropagation(),children:[L.jsxs("div",{className:"flex items-center gap-2",children:[L.jsx("span",{className:"text-content text-[15px] font-semibold",children:"图表预览"}),L.jsxs("span",{className:"text-content-tertiary text-[13px] font-medium px-2 py-0.5 bg-surface-tertiary rounded",children:[Math.round(n*100),"%"]})]}),L.jsxs("div",{className:"flex items-center gap-1.5",children:[L.jsxs("div",{className:"flex items-center gap-px bg-surface-tertiary rounded-lg p-0.5",children:[L.jsx(Xg,{onClick:g,title:"缩小 (-)",children:L.jsx(UQ,{size:16})}),L.jsx(Xg,{onClick:x,title:"适应屏幕 (0)",children:L.jsx(VQ,{size:16})}),L.jsx(Xg,{onClick:m,title:"放大 (+)",children:L.jsx(HQ,{size:16})})]}),L.jsx("div",{className:"w-px h-5 bg-edge mx-1"}),L.jsx("button",{onClick:r,className:`
|
|
536
|
+
p-2 border-none rounded-lg
|
|
537
|
+
text-content-secondary cursor-pointer
|
|
538
|
+
hover:bg-surface-tertiary hover:text-content
|
|
539
|
+
transition-colors duration-150
|
|
540
|
+
`,title:"关闭 (Esc)",children:L.jsx(WQ,{size:18})})]})]}),L.jsx("div",{ref:f,className:`
|
|
541
|
+
flex-1 overflow-hidden
|
|
542
|
+
flex items-center justify-center
|
|
543
|
+
p-10
|
|
544
|
+
`,style:{cursor:o?"grabbing":"grab"},onMouseDown:C,onMouseMove:k,onMouseUp:v,onMouseLeave:v,onWheel:w,children:L.jsx("div",{style:{transform:`translate(${l.x}px, ${l.y}px) scale(${n})`,transition:o?"none":"transform 0.15s cubic-bezier(0.4, 0, 0.2, 1)"},className:`
|
|
545
|
+
bg-surface-secondary rounded-xl p-8
|
|
546
|
+
max-w-[calc(100vw-80px)] max-h-[calc(100vh-160px)]
|
|
547
|
+
overflow-auto
|
|
548
|
+
`,onClick:_=>_.stopPropagation(),dangerouslySetInnerHTML:{__html:t.svg}})}),L.jsxs("div",{className:`
|
|
549
|
+
absolute bottom-5 left-1/2 -translate-x-1/2
|
|
550
|
+
px-4 py-2 rounded-full
|
|
551
|
+
bg-black/60 backdrop-blur-sm
|
|
552
|
+
text-white/90 text-[12px]
|
|
553
|
+
pointer-events-none
|
|
554
|
+
flex items-center gap-3
|
|
555
|
+
`,children:[L.jsx(Kg,{children:"滚轮缩放"}),L.jsx(d2,{}),L.jsx(Kg,{children:"拖拽移动"}),L.jsx(d2,{}),L.jsx(Kg,{children:"点击背景关闭"})]})]})},Xg=({onClick:e,title:t,children:r})=>L.jsx("button",{onClick:e,title:t,className:`
|
|
556
|
+
p-1.5 px-2.5 border-none rounded-md
|
|
557
|
+
bg-transparent text-content-secondary
|
|
558
|
+
cursor-pointer
|
|
559
|
+
hover:bg-surface-secondary hover:text-content
|
|
560
|
+
transition-colors duration-150
|
|
561
|
+
flex items-center justify-center
|
|
562
|
+
`,children:r}),Kg=({children:e})=>L.jsx("span",{className:"whitespace-nowrap",children:e}),d2=()=>L.jsx("span",{className:"w-1 h-1 rounded-full bg-white/40"});function GQ(e){const{minWidth:t,maxWidth:r,initialWidth:n,onResize:i}=e,[o,s]=st.useState(n),[l,u]=st.useState(!1),h=st.useRef(null),d=st.useRef(0),f=st.useRef(0),m=st.useCallback(v=>Math.min(r,Math.max(t,v)),[t,r]),g=st.useCallback(v=>{h.current!==null&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(()=>{const w=m(window.innerWidth-v);s(w),i(w)})},[m,i]),x=st.useCallback(()=>{u(!1),h.current!==null&&(cancelAnimationFrame(h.current),h.current=null),document.body.style.cursor="",document.body.style.userSelect=""},[]),C=st.useCallback(v=>{v.preventDefault(),u(!0),d.current=v.clientX,f.current=o,document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[o]);return st.useEffect(()=>{if(!l)return;const v=_=>{g(_.clientX)},w=()=>{x()};return window.addEventListener("mousemove",v),window.addEventListener("mouseup",w),()=>{window.removeEventListener("mousemove",v),window.removeEventListener("mouseup",w)}},[l,g,x]),st.useEffect(()=>{if(!l)return;const v=_=>{_.touches.length>0&&g(_.touches[0].clientX)},w=()=>{x()};return window.addEventListener("touchmove",v),window.addEventListener("touchend",w),()=>{window.removeEventListener("touchmove",v),window.removeEventListener("touchend",w)}},[l,g,x]),st.useEffect(()=>{s(m(n))},[n,m]),{width:o,dragHandleProps:{onMouseDown:C,onTouchStart:v=>{u(!0),f.current=o,document.body.style.cursor="col-resize",document.body.style.userSelect="none"}},isDragging:l}}const fA="/api/ai";async function io(e,t){var i;const n=await(await fetch(`${fA}${e}`,{headers:{"Content-Type":"application/json",...t==null?void 0:t.headers},...t})).json();if(!n.success)throw new Error(((i=n.error)==null?void 0:i.message)||"AI API Error");return n.data}class XQ{constructor(){this.eventSource=null,this.reconnectAttempts=0,this.maxReconnectAttempts=3,this.reconnectTimer=null,this.currentSessionId=null,this.currentCallbacks=null}async getStatus(){return io("/status")}async listSessions(t){return io(`/sessions?projectId=${encodeURIComponent(t)}`)}async createSession(t,r){return io("/sessions",{method:"POST",body:JSON.stringify({projectId:t,projectPath:r})})}async getSessionDetail(t){return io(`/sessions/${encodeURIComponent(t)}`)}async sendPrompt(t,r){console.log(`[AI API] sendPrompt called: sessionId=${t}, message="${r.substring(0,50)}..."`);try{await io(`/sessions/${encodeURIComponent(t)}/prompt`,{method:"POST",body:JSON.stringify({message:r})}),console.log("[AI API] sendPrompt succeeded")}catch(n){throw console.error("[AI API] sendPrompt FAILED:",n),n}}async respondApproval(t,r,n){await io(`/sessions/${encodeURIComponent(t)}/approve`,{method:"POST",body:JSON.stringify({requestId:r,response:n})})}async cancelGeneration(t){await io(`/sessions/${encodeURIComponent(t)}/cancel`,{method:"POST"})}async deleteSession(t){await io(`/sessions/${encodeURIComponent(t)}`,{method:"DELETE"})}connectEvents(t,r){console.log(`[AI API] connectEvents called for session ${t}`),this.disconnectEvents(),this.currentSessionId=t,this.currentCallbacks=r,this.reconnectAttempts=0,this.createEventSource(t,r)}createEventSource(t,r){const n=`${fA}/sessions/${encodeURIComponent(t)}/events`;console.log(`[AI API] Creating EventSource: ${n}`),this.eventSource=new EventSource(n),this.eventSource.addEventListener("message",i=>{try{const o=JSON.parse(i.data);console.log(`[AI API] SSE event received: type=${o.type}`),r.onEvent(o)}catch(o){console.error("[AI API] SSE message parse error:",o)}}),this.eventSource.addEventListener("request",i=>{try{const o=JSON.parse(i.data);r.onRequest(o)}catch{}}),this.eventSource.addEventListener("close",i=>{try{const o=JSON.parse(i.data);r.onError(o)}catch{}this.disconnectEvents()}),this.eventSource.addEventListener("done",()=>{r.onDone()}),this.eventSource.onerror=()=>{this.handleReconnect()},this.eventSource.onopen=()=>{var i;this.reconnectAttempts=0,(i=r.onOpen)==null||i.call(r)}}handleReconnect(){var r;if(this.reconnectAttempts>=this.maxReconnectAttempts){(r=this.currentCallbacks)==null||r.onError({message:"连接已断开,请刷新页面重试",code:"MAX_RECONNECT_EXCEEDED"}),this.disconnectEvents();return}this.reconnectAttempts++;const t=Math.pow(2,this.reconnectAttempts-1)*1e3;this.reconnectTimer&&clearTimeout(this.reconnectTimer),this.reconnectTimer=setTimeout(()=>{this.currentSessionId&&this.currentCallbacks&&(this.eventSource&&(this.eventSource.close(),this.eventSource=null),this.createEventSource(this.currentSessionId,this.currentCallbacks))},t)}disconnectEvents(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.eventSource&&(this.eventSource.close(),this.eventSource=null),this.currentSessionId=null,this.currentCallbacks=null,this.reconnectAttempts=0}}const Qr=new XQ;function KQ(e){const r=Date.now()-e,n=Math.floor(r/6e4),i=Math.floor(r/36e5),o=Math.floor(r/864e5);return n<1?"刚刚":n<60?`${n} 分钟前`:i<24?`${i} 小时前`:o<7?`${o} 天前`:new Date(e).toLocaleDateString()}const QQ=({size:e=14})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"M12 5v14M5 12h14"})}),ZQ=({size:e=14})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"M3 6h18M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})}),JQ=({size:e=14})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}),tZ=({size:e=12,open:t})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`transition-transform duration-200 ${t?"rotate-180":""}`,children:L.jsx("path",{d:"M6 9l6 6 6-6"})}),eZ=()=>{const e=ie(w=>w.aiSessions),t=ie(w=>w.activeSessionId),r=ie(w=>w.setActiveSession),n=ie(w=>w.setAIPanelOpen),i=ie(w=>w.setAISessions),o=ie(w=>w.setAIMessages),s=ie(w=>w.aiStreaming),l=Rt(w=>w.config),u=Rt(w=>w.projects),[h,d]=st.useState(!1),f=st.useRef(null);st.useEffect(()=>{function w(_){f.current&&!f.current.contains(_.target)&&d(!1)}return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[]);const m=l==null?void 0:l.lastOpenedProject,g=u.find(w=>w.id===m),x=e.find(w=>w.id===t),C=st.useCallback(async()=>{if(!(!g||s)){try{const w=await Qr.createSession(g.id,g.path),_={id:w.id,projectId:g.id,projectPath:g.path,title:"新对话",status:"active",createdAt:Date.now(),updatedAt:Date.now()};i([...e,_]),r(w.id),o([])}catch(w){console.error("Failed to create session:",w)}d(!1)}},[g,s,e,i,r,o]),k=st.useCallback(async w=>{if(!(w.id===t||s)){try{r(w.id);const _=await Qr.getSessionDetail(w.id);o(_.messages)}catch(_){console.error("Failed to switch session:",_)}d(!1)}},[t,s,r,o]),v=st.useCallback(async()=>{if(!(!t||s)&&window.confirm("确定删除这个对话?此操作不可撤销。"))try{if(await Qr.deleteSession(t),g){const w=await Qr.listSessions(g.id);if(i(w),w.length>0){const _=w[w.length-1];r(_.id);const A=await Qr.getSessionDetail(_.id);o(A.messages)}else r(null),o([])}}catch(w){console.error("Failed to delete session:",w)}},[t,s,g,i,r,o]);return L.jsxs("div",{className:"flex items-center gap-2 px-3.5 py-2.5 border-b border-edge bg-surface-secondary shrink-0",children:[L.jsxs("div",{ref:f,className:"relative flex-1 min-w-0",children:[L.jsxs("button",{onClick:()=>d(!h),className:"flex items-center gap-1.5 w-full px-2.5 py-1.5 border border-edge rounded-md bg-surface text-content text-[13px] font-medium transition-colors duration-150 hover:border-content-tertiary",children:[L.jsx("span",{className:"flex-1 text-left truncate",children:(x==null?void 0:x.title)||"新对话"}),L.jsx(tZ,{open:h})]}),h&&L.jsx("div",{className:"absolute top-full left-0 right-0 mt-1 bg-surface border border-edge rounded-lg shadow-lg z-50 max-h-[240px] overflow-auto animate-fade-in",children:e.length===0?L.jsx("div",{className:"px-3 py-3 text-[13px] text-content-tertiary text-center",children:"暂无历史对话"}):e.map(w=>L.jsxs("button",{onClick:()=>k(w),className:`
|
|
563
|
+
flex flex-col gap-0.5 w-full px-3 py-2 text-left
|
|
564
|
+
text-[13px] transition-colors duration-150
|
|
565
|
+
hover:bg-surface-hover
|
|
566
|
+
${w.id===t?"bg-accent-light text-accent-text":"text-content"}
|
|
567
|
+
`,children:[L.jsx("span",{className:"font-medium truncate",children:w.title||"新对话"}),L.jsx("span",{className:"text-[11px] text-content-tertiary",children:KQ(w.updatedAt)})]},w.id))})]}),L.jsx("button",{onClick:C,disabled:s,title:"新建对话",className:"p-1.5 rounded-md text-content-tertiary hover:bg-surface-hover hover:text-content transition-colors duration-150 disabled:opacity-40 disabled:cursor-not-allowed shrink-0",children:L.jsx(QQ,{})}),L.jsx("button",{onClick:v,disabled:!t||s,title:"删除当前对话",className:"p-1.5 rounded-md text-content-tertiary hover:bg-surface-hover hover:text-danger transition-colors duration-150 disabled:opacity-40 disabled:cursor-not-allowed shrink-0",children:L.jsx(ZQ,{})}),L.jsx("button",{onClick:()=>n(!1),disabled:s,title:"关闭 AI 面板",className:"p-1.5 rounded-md text-content-tertiary hover:bg-surface-hover hover:text-danger transition-colors duration-150 disabled:opacity-40 disabled:cursor-not-allowed shrink-0",children:L.jsx(JQ,{})})]})},rZ=({size:e=12})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),L.jsx("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})]}),nZ=({size:e=12})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("polyline",{points:"20 6 9 17 4 12"})}),iZ=({content:e,streaming:t})=>{const[r,n]=st.useState(!1),[i,o]=st.useState(!1),s=st.useCallback(async()=>{if(e.text)try{await navigator.clipboard.writeText(e.text),n(!0),setTimeout(()=>n(!1),2e3)}catch(l){console.error("Failed to copy message:",l)}},[e.text]);return L.jsxs("div",{className:"relative flex flex-col items-start gap-1.5 animate-fade-up",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:[L.jsxs("div",{className:"max-w-[92%] px-3.5 py-3 bg-surface-secondary border border-edge-light rounded-xl rounded-bl-sm text-[14px] leading-[1.7] text-content break-words",children:[e.text&&L.jsx(dA,{content:e.text}),t&&L.jsx("span",{className:"inline-block w-0.5 h-[1em] bg-content ml-0.5 align-text-bottom animate-pulse-soft"})]}),!t&&e.text&&L.jsx("button",{onClick:s,className:`
|
|
568
|
+
absolute -top-1 -right-1 p-1 rounded-md
|
|
569
|
+
cursor-pointer flex items-center justify-center
|
|
570
|
+
transition-all duration-150 z-10
|
|
571
|
+
${r?"bg-success text-white":"bg-surface-secondary border border-edge text-content-tertiary hover:bg-surface-hover hover:text-content"}
|
|
572
|
+
${i?"opacity-100":"opacity-0"}
|
|
573
|
+
`,title:r?"已复制":"复制",children:r?L.jsx(nZ,{size:10}):L.jsx(rZ,{size:10})})]})},oZ=({size:e=12,rotated:t,className:r})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`transition-transform duration-150 ${t?"rotate-90":""} ${r||""}`,children:L.jsx("path",{d:"M9 18l6-6-6-6"})}),aZ=({content:e,streaming:t})=>{const[r,n]=st.useState(!1);return st.useEffect(()=>{t&&e.think&&n(!0)},[t,e.think]),L.jsxs("div",{className:"my-2 rounded-xl border border-edge-light bg-surface-tertiary overflow-hidden",children:[L.jsxs("button",{onClick:()=>n(!r),className:"flex items-center gap-2 w-full px-3.5 py-2.5 text-[12px] font-medium text-content-secondary hover:bg-surface-hover transition-colors duration-150",children:[L.jsx("span",{children:"💭"}),L.jsx("span",{children:t?"思考中...":"思考过程"}),L.jsx(oZ,{size:12,rotated:r,className:"ml-auto"})]}),r&&e.think&&L.jsxs("div",{className:"px-3.5 py-3 text-[13px] text-content-tertiary leading-relaxed border-t border-edge-light whitespace-pre-wrap break-words",children:[e.think,t&&L.jsx("span",{className:"inline-block w-0.5 h-[1em] bg-content ml-0.5 align-text-bottom animate-pulse-soft"})]})]})};function sZ(e){try{const t=JSON.parse(e);return t.file_path?t.file_path:t.path?t.path:t.filename?t.filename:t.command?`$ ${t.command}`:""}catch{return e.length>50?e.slice(0,50)+"...":e}}function lZ(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function cZ(e,t=500){return e.length<=t?e:e.slice(0,t)+`
|
|
574
|
+
... (输出已截断)`}const uZ=({size:e=12,rotated:t})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:`transition-transform duration-150 ${t?"rotate-90":""}`,children:L.jsx("path",{d:"M9 18l6-6-6-6"})}),hZ=({content:e,result:t})=>{const[r,n]=st.useState(!1),i=sZ(e.arguments),o=t?t.isError?"error":"success":"running";return L.jsxs("div",{className:"my-2 rounded-xl border border-edge bg-surface-secondary overflow-hidden",children:[L.jsxs("button",{onClick:()=>n(!r),className:"flex items-center gap-2 w-full px-3.5 py-2.5 bg-surface-tertiary text-[13px] font-medium text-content hover:bg-surface-hover transition-colors duration-150",children:[L.jsx("span",{className:"text-accent shrink-0",children:"🔧"}),L.jsx("span",{className:"flex-1 truncate",children:e.functionName}),i&&L.jsx("span",{className:"text-[11px] text-content-tertiary truncate hidden sm:inline",children:i}),L.jsx("span",{className:`
|
|
575
|
+
text-[11px] font-medium px-2 py-0.5 rounded-full shrink-0
|
|
576
|
+
${o==="success"?"bg-success-light text-success":""}
|
|
577
|
+
${o==="error"?"bg-danger-light text-danger":""}
|
|
578
|
+
${o==="running"?"bg-accent-light text-accent":""}
|
|
579
|
+
`,children:o==="running"?"执行中":o==="success"?"完成":"失败"}),L.jsx(uZ,{size:12,rotated:r})]}),r&&L.jsxs("div",{className:"px-3.5 py-3 border-t border-edge space-y-2",children:[L.jsx("pre",{className:"p-3 rounded-lg text-[11px] leading-relaxed font-mono max-h-[200px] overflow-y-auto whitespace-pre-wrap break-all",style:{background:"#1e1e2e",color:"#cdd6f4"},children:lZ(e.arguments)}),t&&L.jsx("pre",{className:`
|
|
580
|
+
p-3 rounded-lg text-[11px] leading-relaxed font-mono max-h-[200px] overflow-y-auto whitespace-pre-wrap break-all
|
|
581
|
+
${t.isError?"bg-danger-light text-danger border border-danger/20":"bg-surface-tertiary text-content-secondary"}
|
|
582
|
+
`,children:cZ(t.output)})]})]})},dZ=({display:e})=>e.type==="diff"?L.jsx("pre",{className:"p-3 rounded-lg text-[11px] leading-relaxed font-mono max-h-[200px] overflow-y-auto whitespace-pre-wrap break-all",style:{background:"#1e1e2e",color:"#cdd6f4"},children:e.content&&fZ(e.content)}):L.jsx("div",{className:"text-[13px] text-content-secondary whitespace-pre-wrap",children:e.content?String(e.content):JSON.stringify(e,null,2)});function fZ(e){return e.split(`
|
|
583
|
+
`).map((r,n)=>{let i="";return r.startsWith("+")&&!r.startsWith("+++")?i="text-success":r.startsWith("-")&&!r.startsWith("---")&&(i="text-danger"),L.jsx("div",{className:i,children:r},n)})}const pZ=({messageId:e,content:t})=>{const[r,n]=st.useState(!1),i=ie(u=>u.activeSessionId),o=ie(u=>u.updateMessage),s=t.responded,l=async u=>{if(!(s||r||!i)){n(!0);try{await Qr.respondApproval(i,t.requestId,u),o(e,{content:{...t,responded:!0,response:u}})}catch(h){console.error("Failed to respond to approval:",h)}finally{n(!1)}}};return L.jsxs("div",{className:"my-2 rounded-xl border-2 border-warning overflow-hidden bg-surface-secondary",children:[L.jsxs("div",{className:"flex items-center gap-2 px-3.5 py-2.5 bg-warning/8",children:[L.jsx("span",{className:"text-warning shrink-0",children:"⚠️"}),L.jsxs("span",{className:"text-[13px] font-semibold text-content",children:["需要审批:",t.action]}),s&&L.jsx("span",{className:`ml-auto text-[12px] ${t.response==="approve"?"text-success":"text-danger"}`,children:t.response==="approve"?"已批准":"已拒绝"})]}),L.jsx("p",{className:"px-3.5 py-3 text-[13px] text-content-secondary leading-relaxed",children:t.description}),t.display&&t.display.length>0&&L.jsx("div",{className:"px-3.5 pb-3 flex flex-col gap-2",children:t.display.map((u,h)=>L.jsx(dZ,{display:u},h))}),L.jsxs("div",{className:"flex gap-2 px-3.5 py-2.5 border-t border-edge",children:[L.jsx("button",{onClick:()=>l("approve"),disabled:s||r,className:"flex-1 flex items-center justify-center gap-1.5 py-2 rounded-lg bg-success text-white text-[13px] font-medium hover:bg-[#15803d] transition-colors duration-150 disabled:opacity-50 disabled:cursor-not-allowed",children:"批准"}),L.jsx("button",{onClick:()=>l("reject"),disabled:s||r,className:"flex-1 flex items-center justify-center gap-1.5 py-2 rounded-lg bg-surface-secondary text-danger border border-danger text-[13px] font-medium hover:bg-danger hover:text-white transition-colors duration-150 disabled:opacity-50 disabled:cursor-not-allowed",children:"拒绝"})]})]})},gZ=({content:e})=>L.jsx("div",{className:"flex flex-col items-end gap-1 animate-fade-up",children:L.jsx("p",{className:"max-w-[85%] px-3.5 py-2.5 bg-accent/15 border-l-2 border-accent text-content rounded-xl rounded-br-sm text-[14px] leading-relaxed break-words select-text",children:e.text})});function Da(e){return e.content}const mZ=()=>{const e=ie(o=>o.aiMessages),t=ie(o=>o.aiStreaming),r=st.useRef(null);st.useEffect(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},[e]);const n=new Map;for(const o of e)if(o.type==="tool_result"){const s=o.content;n.set(s.toolCallId,o)}const i=e.filter(o=>o.type!=="tool_result");return i.length===0?L.jsxs("div",{className:"flex-1 overflow-y-auto flex flex-col items-center justify-center gap-4 text-content-tertiary p-6",children:[L.jsx("div",{className:"text-4xl mb-3",children:"💬"}),L.jsx("p",{className:"text-[14px]",children:"开始与 AI 对话"}),L.jsx("p",{className:"text-[12px]",children:"输入问题,AI 将基于当前项目上下文回答"})]}):L.jsx("div",{ref:r,className:"flex-1 overflow-y-auto p-4 flex flex-col gap-5 bg-surface",children:i.map((o,s)=>{const l=s===i.length-1;if(o.role==="user")return L.jsx("div",{children:L.jsx(gZ,{content:Da(o)})},o.id);switch(o.type){case"text":{const u=Da(o);return L.jsx("div",{children:L.jsx(iZ,{content:u,streaming:t&&l})},o.id)}case"think":{const u=Da(o);return L.jsx("div",{children:L.jsx(aZ,{content:u,streaming:t&&l})},o.id)}case"tool_call":{const u=Da(o),h=n.get(u.toolCallId),d=h?Da(h):void 0;return L.jsx("div",{children:L.jsx(hZ,{content:u,result:d})},o.id)}case"approval":{const u=Da(o);return L.jsx("div",{children:L.jsx(pZ,{messageId:o.id,content:u})},o.id)}default:return null}})})},yZ=({size:e=16})=>L.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[L.jsx("path",{d:"M22 2L11 13"}),L.jsx("path",{d:"M22 2L15 22L11 13L2 9L22 2Z"})]}),xZ=({size:e=16})=>L.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",children:L.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})}),CZ=()=>{const[e,t]=st.useState(""),r=st.useRef(null),n=ie(m=>m.activeSessionId),i=ie(m=>m.aiStreaming),o=ie(m=>m.setStreaming),s=ie(m=>m.addMessage),l=ie(m=>m.setAIError),u=st.useCallback(async()=>{var g;const m=e.trim();if(!(!m||!n||i)){console.log(`[AIInputBar] Sending message: sessionId=${n}, msg="${m.substring(0,50)}..."`),t(""),o(!0),l(null),s({id:`user-${Date.now()}`,sessionId:n,role:"user",type:"text",content:{text:m},timestamp:Date.now()});try{await Qr.sendPrompt(n,m),console.log("[AIInputBar] sendPrompt returned successfully")}catch(x){console.error("[AIInputBar] Failed to send prompt:",x),l("发送消息失败,请重试"),o(!1)}(g=r.current)==null||g.focus()}},[e,n,i,o,s,l]),h=st.useCallback(async()=>{if(n)try{await Qr.cancelGeneration(n),o(!1)}catch(m){console.error("Failed to cancel generation:",m)}},[n,o]),d=st.useCallback(m=>{m.key==="Enter"&&!m.shiftKey&&(m.preventDefault(),u())},[u]),f=st.useCallback(m=>{t(m.target.value);const g=m.target;g.style.height="auto",g.style.height=Math.min(g.scrollHeight,150)+"px"},[]);return L.jsxs("div",{className:"border-t border-edge bg-surface-secondary shrink-0 px-3.5 pt-3 pb-2.5",children:[L.jsxs("div",{className:"flex items-end gap-2",children:[L.jsx("div",{className:"flex-1 relative",children:L.jsx("textarea",{ref:r,value:e,onChange:f,onKeyDown:d,placeholder:"输入消息...",disabled:i,rows:1,className:"w-full resize-none px-3.5 py-2.5 pr-2 border border-edge rounded-xl bg-surface text-content text-[14px] leading-relaxed font-sans outline-none max-h-[150px] min-h-[40px] transition-all duration-150 focus:border-accent focus:ring-[3px] focus:ring-accent/15 placeholder:text-content-muted"})}),i?L.jsx("button",{onClick:h,title:"停止生成",className:"w-10 h-10 shrink-0 rounded-xl flex items-center justify-center bg-danger text-white hover:opacity-85 transition-all duration-150",children:L.jsx(xZ,{size:14})}):L.jsx("button",{onClick:u,disabled:!e.trim()||!n,title:"发送消息",className:"w-10 h-10 shrink-0 rounded-xl flex items-center justify-center bg-accent text-white hover:bg-accent-hover transition-all duration-150 active:scale-95 disabled:opacity-40 disabled:cursor-not-allowed",children:L.jsx(yZ,{size:14})})]}),L.jsx("div",{className:"text-[11px] text-content-muted mt-1.5 text-center",children:"Enter 发送 / Shift+Enter 换行"})]})},kZ=()=>{const e=ie(t=>t.setAIPanelOpen);return L.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-4 p-8 text-center",children:[L.jsx("div",{className:"text-5xl mb-4",children:"🤖"}),L.jsx("h3",{className:"text-lg font-semibold text-content",children:"Ask AI 需要 Kimi-CLI"}),L.jsx("p",{className:"text-[14px] text-content-secondary leading-relaxed max-w-[300px]",children:"请先安装 Kimi-CLI 以使用 AI 对话功能。"}),L.jsxs("p",{className:"text-[13px] text-content-tertiary leading-relaxed max-w-[300px]",children:["安装指南:",L.jsx("a",{href:"https://moonshotai.github.io/kimi-cli",target:"_blank",rel:"noopener noreferrer",className:"text-accent no-underline",children:"https://moonshotai.github.io/kimi-cli"})]}),L.jsxs("div",{className:"flex gap-3 mt-4",children:[L.jsx("button",{onClick:()=>window.open("https://moonshotai.github.io/kimi-cli","_blank"),className:"inline-flex items-center gap-1.5 px-5 py-2 rounded-lg bg-accent text-white text-[14px] font-medium hover:bg-accent-hover transition-colors duration-150",children:"打开安装指南"}),L.jsx("button",{onClick:()=>e(!1),className:"inline-flex items-center px-5 py-2 rounded-lg bg-surface-secondary text-content-secondary border border-edge text-[14px] hover:bg-surface-hover transition-colors duration-150",children:"关闭"})]})]})},bZ=420,vZ=320,wZ=520,SZ=()=>{const e=ie(v=>v.aiPanelOpen),t=ie(v=>v.aiStatus),r=ie(v=>v.setAIStatus),n=ie(v=>v.setAISessions),i=ie(v=>v.setActiveSession),o=ie(v=>v.setAIMessages),s=ie(v=>v.setConnected);ie(v=>v.setStreaming);const l=ie(v=>v.setAIPanelWidth),u=Rt(v=>v.config),h=Rt(v=>v.projects),d=ie(v=>v.activeSessionId),f=u==null?void 0:u.lastOpenedProject,m=h.find(v=>v.id===f),{width:g,dragHandleProps:x,isDragging:C}=GQ({minWidth:vZ,maxWidth:wZ,initialWidth:bZ,onResize:l});if(st.useEffect(()=>{if(!e)return;let v=!1;async function w(){var _;try{console.log("[AIPanel] Init started");const A=await Qr.getStatus();if(v||(r(A),console.log(`[AIPanel] AI status: available=${A.available}, version=${A.version}`),!A.available)||!f||!m)return;const F=await Qr.listSessions(f);if(v)return;if(n(F),console.log(`[AIPanel] Found ${F.length} sessions for project ${f}`),F.length>0){const E=F[F.length-1];console.log(`[AIPanel] Selecting latest session: ${E.id}`),i(E.id);const B=await Qr.getSessionDetail(E.id);if(v)return;o(B.messages),console.log(`[AIPanel] Session detail loaded: ${((_=B.messages)==null?void 0:_.length)||0} messages`)}else{console.log("[AIPanel] No sessions found, creating new one...");const E=await Qr.createSession(f,m.path);if(v)return;console.log(`[AIPanel] New session created: ${E.id}`),i(E.id),o([]),n([{id:E.id,projectId:f,projectPath:m.path,title:"新对话",status:"active",createdAt:Date.now(),updatedAt:Date.now()}])}console.log("[AIPanel] Init completed")}catch(A){console.error("[AIPanel] Init failed:",A)}}return w(),()=>{v=!0}},[e]),st.useEffect(()=>{if(!e||!d)return;console.log(`[AIPanel] Setting up SSE for session ${d}`),s(!1);let v={},w=0;const _={onEvent:A=>{var B,N,q,O,D;const F=ie.getState(),E=F.activeSessionId;switch(console.log(`[AIPanel] SSE onEvent: type=${A.type}`),A.type){case"TurnBegin":v={},F.setStreaming(!0);break;case"StepBegin":v={};break;case"ContentPart":{const K=(B=A.payload)==null?void 0:B.type;if(K==="text"){const tt=v.text;if(tt)F.appendToMessage(tt,"text",A.payload.text||"");else{const U=`ai-text-${Date.now()}-${++w}`;F.addMessage({id:U,sessionId:E,role:"assistant",type:"text",content:{text:A.payload.text||""},timestamp:Date.now()}),v.text=U}}else if(K==="think"){const tt=v.think;if(tt)F.appendToMessage(tt,"think",A.payload.think||"");else{const U=`ai-think-${Date.now()}-${++w}`;F.addMessage({id:U,sessionId:E,role:"assistant",type:"think",content:{think:A.payload.think||""},timestamp:Date.now()}),v.think=U}}break}case"TextPart":{const K=v.text;if(K)F.appendToMessage(K,"text",A.payload.text||"");else{const tt=`ai-text-${Date.now()}-${++w}`;F.addMessage({id:tt,sessionId:E,role:"assistant",type:"text",content:{text:A.payload.text||""},timestamp:Date.now()}),v.text=tt}break}case"ThinkPart":{const K=v.think;if(K)F.appendToMessage(K,"think",A.payload.think||"");else{const tt=`ai-think-${Date.now()}-${++w}`;F.addMessage({id:tt,sessionId:E,role:"assistant",type:"think",content:{think:A.payload.think||""},timestamp:Date.now()}),v.think=tt}break}case"ToolCall":F.addMessage({id:`ai-tool-${Date.now()}`,sessionId:E,role:"assistant",type:"tool_call",content:{toolCallId:A.payload.id,functionName:((N=A.payload.function)==null?void 0:N.name)||"",arguments:((q=A.payload.function)==null?void 0:q.arguments)||""},timestamp:Date.now()});break;case"ToolResult":F.addMessage({id:`ai-result-${Date.now()}`,sessionId:E,role:"assistant",type:"tool_result",content:{toolCallId:A.payload.tool_call_id,isError:((O=A.payload.return_value)==null?void 0:O.is_error)||!1,output:((D=A.payload.return_value)==null?void 0:D.output)||""},timestamp:Date.now()});break;case"TurnEnd":F.setStreaming(!1);break}},onRequest:A=>{const F=ie.getState();A.type==="ApprovalRequest"&&F.addMessage({id:`ai-approval-${Date.now()}`,sessionId:F.activeSessionId,role:"assistant",type:"approval",content:{requestId:A.payload.id,toolCallId:A.payload.tool_call_id||"",action:A.payload.action||"",description:A.payload.description||"",display:A.payload.display||[],responded:!1},timestamp:Date.now()})},onError:A=>{console.error("[AIPanel] SSE onError:",A),ie.getState().setConnected(!1)},onDone:()=>{console.log("[AIPanel] SSE onDone"),ie.getState().setStreaming(!1)},onOpen:()=>{console.log("[AIPanel] SSE onOpen - connection established"),ie.getState().setConnected(!0)}};return Qr.connectEvents(d,_),()=>{Qr.disconnectEvents(),s(!1)}},[e,d]),st.useEffect(()=>{},[e]),!e)return null;const k=(t==null?void 0:t.available)!==!1;return L.jsxs("div",{className:"relative h-full shrink-0 flex flex-col border-l border-edge bg-surface animate-slide-in-right",style:{width:`${g}px`,userSelect:C?"none":"auto"},children:[L.jsx("div",{...x,className:"absolute left-0 top-0 bottom-0 w-1.5 cursor-col-resize z-10 hover:bg-accent/30 active:bg-accent/50 transition-colors duration-150"}),k?L.jsxs(L.Fragment,{children:[L.jsx(eZ,{}),L.jsx(mZ,{}),L.jsx(CZ,{})]}):L.jsx(kZ,{})]})};function TZ(){const e=Rt(t=>t.config);st.useEffect(()=>{const t=(e==null?void 0:e.theme)||"light";document.documentElement.setAttribute("data-theme",t)},[e==null?void 0:e.theme])}function _Z(){const e=Rt(o=>o.toggleSearch),t=Rt(o=>o.setSearchOpen),r=Rt(o=>o.setSettingsOpen),n=Rt(o=>o.searchOpen),i=Rt(o=>o.settingsOpen);st.useEffect(()=>{function o(s){if((s.ctrlKey||s.metaKey)&&s.key==="k"){s.preventDefault(),e();return}s.key==="Escape"&&(n?t(!1):i&&r(!1))}return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[e,t,r,n,i])}const EZ=()=>{const e=Rt(i=>i.setConfig),t=Rt(i=>i.setProjects),r=Rt(i=>i.setCurrentWiki);Rt(i=>i.setCurrentView),Rt(i=>i.setCurrentProject);const n=ie(i=>i.aiPanelOpen);return TZ(),_Z(),st.useEffect(()=>{let i=!1;async function o(){try{const s=await Pl();if(i)return;if(e(s),t(s.projects),s.lastOpenedProject)try{const l=await yy(s.lastOpenedProject);if(i)return;r(l)}catch(l){console.error("Failed to load last opened project wiki:",l)}}catch(s){console.error("Failed to initialize app:",s)}}return o(),()=>{i=!0}},[e,t,r]),L.jsxs(d5,{children:[L.jsxs("div",{className:"flex h-screen bg-surface text-content overflow-hidden",children:[L.jsx(B5,{}),L.jsxs("main",{className:"flex-1 flex flex-col min-w-0",children:[L.jsx(w5,{}),L.jsx(EQ,{})]}),n&&L.jsx(SZ,{})]}),L.jsx(MQ,{}),L.jsx(DQ,{}),L.jsx(qQ,{}),L.jsx(YQ,{})]})},pA=document.getElementById("root");if(!pA)throw new Error("Root element not found");h5.createRoot(pA).render(L.jsx(lr.StrictMode,{children:L.jsx(EZ,{})}));export{Xw as $,MZ as A,uo as B,iP as C,Re as D,PN as E,Cx as F,Dw as G,uq as H,g8 as I,bj as J,jP as K,Gl as L,FZ as M,kd as N,mN as O,Yw as P,_k as Q,a8 as R,_m as S,cq as T,dc as U,Un as V,at as W,it as X,SN as Y,eq as Z,S as _,AN as a,db as a$,r8 as a0,Vk as a1,Uk as a2,qZ as a3,NZ as a4,jZ as a5,$Z as a6,RZ as a7,Qy as a8,zZ as a9,SW as aA,wW as aB,E7 as aC,Lw as aD,n8 as aE,AZ as aF,Cd as aG,Wh as aH,$_ as aI,Ze as aJ,kc as aK,T7 as aL,S7 as aM,Yy as aN,ao as aO,Ql as aP,$k as aQ,P$ as aR,B9 as aS,N_ as aT,A_ as aU,Mz as aV,jh as aW,Oz as aX,xc as aY,zo as aZ,S9 as a_,PZ as aa,Oa as ab,HZ as ac,WZ as ad,DZ as ae,Z7 as af,KL as ag,eJ as ah,wj as ai,$r as aj,Ri as ak,bl as al,kx as am,U_ as an,ta as ao,X_ as ap,Gt as aq,ai as ar,Bt as as,tH as at,tJ as au,rJ as av,ZZ as aw,Mt as ax,JZ as ay,BW as az,BN as b,ia as b0,Rz as b1,dx as b2,Iz as b3,Dz as b4,bs as b5,L9 as b6,Q9 as b7,Wz as b8,H9 as b9,sb as bA,fx as bB,I_ as bC,sy as bD,BZ as bE,oe as bF,ux as ba,nv as bb,It as bc,K_ as bd,Jr as be,B$ as bf,Vy as bg,cS as bh,gc as bi,dS as bj,OZ as bk,nP as bl,K9 as bm,W9 as bn,Z9 as bo,gd as bp,Az as bq,hx as br,P_ as bs,tq as bt,ks as bu,R9 as bv,wH as bw,yc as bx,qh as by,xo as bz,ue as c,Zt as d,Gw as e,rr as f,IN as g,Fi as h,Wn as i,_j as j,fc as k,ht as l,Y_ as m,IZ as n,iJ as o,MN as p,ON as q,nJ as r,FN as s,vj as t,$n as u,xW as v,fq as w,UZ as x,us as y,LN as z};
|