md-review-server 0.1.3 → 0.1.4
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/assets/{_baseUniq-BtqrRblU.js → _baseUniq-DB8TI-5m.js} +1 -1
- package/dist/assets/{arc-DYLWUs9a.js → arc-DdZ0nXCv.js} +1 -1
- package/dist/assets/{architectureDiagram-VXUJARFQ-D6qlN2-o.js → architectureDiagram-VXUJARFQ-CpfdK-tM.js} +1 -1
- package/dist/assets/{blockDiagram-VD42YOAC-DYwXxiWE.js → blockDiagram-VD42YOAC-XdvlyZ7N.js} +1 -1
- package/dist/assets/{c4Diagram-YG6GDRKO-BkX5Nh_r.js → c4Diagram-YG6GDRKO-lEuiY0SL.js} +1 -1
- package/dist/assets/channel-El_Xn8mh.js +1 -0
- package/dist/assets/{chunk-4BX2VUAB-BVS8BUrO.js → chunk-4BX2VUAB-Bg3tfFin.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-D0VSlUME.js → chunk-55IACEB6-BKMySPzf.js} +1 -1
- package/dist/assets/{chunk-B4BG7PRW-CTbGViQg.js → chunk-B4BG7PRW-DOWj2Slb.js} +1 -1
- package/dist/assets/{chunk-DI55MBZ5-DZZ8VuIT.js → chunk-DI55MBZ5-ByhN8Kb_.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-Cejd2Qga.js → chunk-FMBD7UC4-ulqmu4g7.js} +1 -1
- package/dist/assets/{chunk-QN33PNHL-CSYbobj9.js → chunk-QN33PNHL-DrF5OScT.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-DTYL7itM.js → chunk-QZHKN3VN-ByJUsxaJ.js} +1 -1
- package/dist/assets/{chunk-TZMSLE5B-CB26Um_S.js → chunk-TZMSLE5B-B4d7_-Fp.js} +1 -1
- package/dist/assets/classDiagram-2ON5EDUG-7U4rCohT.js +1 -0
- package/dist/assets/classDiagram-v2-WZHVMYZB-7U4rCohT.js +1 -0
- package/dist/assets/clone-B3pgUSfP.js +1 -0
- package/dist/assets/{cose-bilkent-S5V4N54A-DJZQhu6B.js → cose-bilkent-S5V4N54A-9WVDCK6U.js} +1 -1
- package/dist/assets/{dagre-6UL2VRFP-BIJxtntA.js → dagre-6UL2VRFP--e0xiEXF.js} +1 -1
- package/dist/assets/{diagram-PSM6KHXK-BaKSafBV.js → diagram-PSM6KHXK-CS-BHPX7.js} +1 -1
- package/dist/assets/{diagram-QEK2KX5R-DP04tSss.js → diagram-QEK2KX5R-H5L9-KVG.js} +1 -1
- package/dist/assets/{diagram-S2PKOQOG-DvAywjcf.js → diagram-S2PKOQOG-DhXpPYNY.js} +1 -1
- package/dist/assets/{erDiagram-Q2GNP2WA-BzPG-mA4.js → erDiagram-Q2GNP2WA-BVcjcuuk.js} +1 -1
- package/dist/assets/{flowDiagram-NV44I4VS-Bg7K4ofb.js → flowDiagram-NV44I4VS-D37-At88.js} +1 -1
- package/dist/assets/{ganttDiagram-JELNMOA3-CUVnLJVA.js → ganttDiagram-JELNMOA3-quhE1UqX.js} +1 -1
- package/dist/assets/{gitGraphDiagram-NY62KEGX-D4v4IMg3.js → gitGraphDiagram-NY62KEGX-BMKxpPqN.js} +1 -1
- package/dist/assets/{graph-BY0lo9mk.js → graph-CQ-s0rCx.js} +1 -1
- package/dist/assets/index-CLneYKld.js +415 -0
- package/dist/assets/index-CjRkYqDt.css +19 -0
- package/dist/assets/{infoDiagram-WHAUD3N6-BkDjJjcL.js → infoDiagram-WHAUD3N6-4xKLgSTQ.js} +1 -1
- package/dist/assets/{journeyDiagram-XKPGCS4Q-88A7UWEC.js → journeyDiagram-XKPGCS4Q-DHejZ0NY.js} +1 -1
- package/dist/assets/{kanban-definition-3W4ZIXB7-Dwb0ibd7.js → kanban-definition-3W4ZIXB7-PHbzshGp.js} +1 -1
- package/dist/assets/{layout-8a74uiju.js → layout-J_cB854J.js} +1 -1
- package/dist/assets/{linear-CPWCLHud.js → linear-B75YF8Ml.js} +1 -1
- package/dist/assets/{min-CqBum7ZI.js → min-Cx-agucr.js} +1 -1
- package/dist/assets/{mindmap-definition-VGOIOE7T-Dwgu9T2u.js → mindmap-definition-VGOIOE7T-BVSx8QkU.js} +1 -1
- package/dist/assets/{pieDiagram-ADFJNKIX-Ban3Hxk-.js → pieDiagram-ADFJNKIX-U7hwtC4F.js} +1 -1
- package/dist/assets/{quadrantDiagram-AYHSOK5B-DsjCsrlw.js → quadrantDiagram-AYHSOK5B-c7Xg0Ogc.js} +1 -1
- package/dist/assets/{requirementDiagram-UZGBJVZJ-BRvX4zCO.js → requirementDiagram-UZGBJVZJ-Bfi-FbJv.js} +1 -1
- package/dist/assets/{sankeyDiagram-TZEHDZUN-DHn2OBLn.js → sankeyDiagram-TZEHDZUN-BA4CTB_A.js} +1 -1
- package/dist/assets/{sequenceDiagram-WL72ISMW-CummwZV_.js → sequenceDiagram-WL72ISMW-e05HuYf-.js} +1 -1
- package/dist/assets/{stateDiagram-FKZM4ZOC-IuG47RUM.js → stateDiagram-FKZM4ZOC-C1HQRb62.js} +1 -1
- package/dist/assets/stateDiagram-v2-4FDKWEC3-dfD-mdkt.js +1 -0
- package/dist/assets/{timeline-definition-IT6M3QCI-DrEsI2Bt.js → timeline-definition-IT6M3QCI-BH_IFFY3.js} +1 -1
- package/dist/assets/{treemap-KMMF4GRG-CpGxyb0v.js → treemap-KMMF4GRG-CTlyJ6RY.js} +1 -1
- package/dist/assets/workerBundle-DGWlUuev.js +72 -0
- package/dist/assets/{xychartDiagram-PRI3JC2R-DZ2Ig9GW.js → xychartDiagram-PRI3JC2R-CjH_M-NJ.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +2 -1
- package/dist/assets/channel-DEOuUvLR.js +0 -1
- package/dist/assets/classDiagram-2ON5EDUG-COuYCe8Y.js +0 -1
- package/dist/assets/classDiagram-v2-WZHVMYZB-COuYCe8Y.js +0 -1
- package/dist/assets/clone-Dp52nPJ3.js +0 -1
- package/dist/assets/index-BcvRuFYs.js +0 -346
- package/dist/assets/index-Db98Ybtz.css +0 -19
- package/dist/assets/stateDiagram-v2-4FDKWEC3-CtbaykL5.js +0 -1
|
@@ -0,0 +1,415 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-6UL2VRFP--e0xiEXF.js","assets/graph-CQ-s0rCx.js","assets/_baseUniq-DB8TI-5m.js","assets/layout-J_cB854J.js","assets/min-Cx-agucr.js","assets/clone-B3pgUSfP.js","assets/cose-bilkent-S5V4N54A-9WVDCK6U.js","assets/cytoscape.esm-BQaXIfA_.js","assets/c4Diagram-YG6GDRKO-lEuiY0SL.js","assets/chunk-TZMSLE5B-B4d7_-Fp.js","assets/flowDiagram-NV44I4VS-D37-At88.js","assets/chunk-FMBD7UC4-ulqmu4g7.js","assets/chunk-55IACEB6-BKMySPzf.js","assets/chunk-QN33PNHL-DrF5OScT.js","assets/channel-El_Xn8mh.js","assets/erDiagram-Q2GNP2WA-BVcjcuuk.js","assets/gitGraphDiagram-NY62KEGX-BMKxpPqN.js","assets/chunk-4BX2VUAB-Bg3tfFin.js","assets/chunk-QZHKN3VN-ByJUsxaJ.js","assets/treemap-KMMF4GRG-CTlyJ6RY.js","assets/ganttDiagram-JELNMOA3-quhE1UqX.js","assets/linear-B75YF8Ml.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-C4B-KCzX.js","assets/infoDiagram-WHAUD3N6-4xKLgSTQ.js","assets/pieDiagram-ADFJNKIX-U7hwtC4F.js","assets/arc-DdZ0nXCv.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-AYHSOK5B-c7Xg0Ogc.js","assets/xychartDiagram-PRI3JC2R-CjH_M-NJ.js","assets/requirementDiagram-UZGBJVZJ-Bfi-FbJv.js","assets/sequenceDiagram-WL72ISMW-e05HuYf-.js","assets/classDiagram-2ON5EDUG-7U4rCohT.js","assets/chunk-B4BG7PRW-DOWj2Slb.js","assets/classDiagram-v2-WZHVMYZB-7U4rCohT.js","assets/stateDiagram-FKZM4ZOC-C1HQRb62.js","assets/chunk-DI55MBZ5-ByhN8Kb_.js","assets/stateDiagram-v2-4FDKWEC3-dfD-mdkt.js","assets/journeyDiagram-XKPGCS4Q-DHejZ0NY.js","assets/timeline-definition-IT6M3QCI-BH_IFFY3.js","assets/mindmap-definition-VGOIOE7T-BVSx8QkU.js","assets/kanban-definition-3W4ZIXB7-PHbzshGp.js","assets/sankeyDiagram-TZEHDZUN-BA4CTB_A.js","assets/diagram-S2PKOQOG-DhXpPYNY.js","assets/diagram-QEK2KX5R-H5L9-KVG.js","assets/blockDiagram-VD42YOAC-XdvlyZ7N.js","assets/architectureDiagram-VXUJARFQ-CpfdK-tM.js","assets/diagram-PSM6KHXK-CS-BHPX7.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var m3=Object.defineProperty;var y3=(e,t,n)=>t in e?m3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var He=(e,t,n)=>y3(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const l of r)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const l={};return r.integrity&&(l.integrity=r.integrity),r.referrerPolicy&&(l.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?l.credentials="include":r.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(r){if(r.ep)return;r.ep=!0;const l=n(r);fetch(r.href,l)}})();function lh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l0={exports:{}},Kc={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and 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 jw;function b3(){if(jw)return Kc;jw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,r,l){var s=null;if(l!==void 0&&(s=""+l),r.key!==void 0&&(s=""+r.key),"key"in r){l={};for(var c in r)c!=="key"&&(l[c]=r[c])}else l=r;return r=l.ref,{$$typeof:e,type:i,key:s,ref:r!==void 0?r:null,props:l}}return Kc.Fragment=t,Kc.jsx=n,Kc.jsxs=n,Kc}var Gw;function x3(){return Gw||(Gw=1,l0.exports=b3()),l0.exports}var $=x3(),s0={exports:{}},nt={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and 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 Ww;function _3(){if(Ww)return nt;Ww=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),y=Symbol.iterator;function m(I){return I===null||typeof I!="object"?null:(I=y&&I[y]||I["@@iterator"],typeof I=="function"?I:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,w={};function S(I,Q,D){this.props=I,this.context=Q,this.refs=w,this.updater=D||x}S.prototype.isReactComponent={},S.prototype.setState=function(I,Q){if(typeof I!="object"&&typeof I!="function"&&I!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,I,Q,"setState")},S.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function C(){}C.prototype=S.prototype;function E(I,Q,D){this.props=I,this.context=Q,this.refs=w,this.updater=D||x}var N=E.prototype=new C;N.constructor=E,_(N,S.prototype),N.isPureReactComponent=!0;var M=Array.isArray;function A(){}var O={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function j(I,Q,D){var he=D.ref;return{$$typeof:e,type:I,key:Q,ref:he!==void 0?he:null,props:D}}function F(I,Q){return j(I.type,Q,I.props)}function H(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function Z(I){var Q={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(D){return Q[D]})}var V=/\/+/g;function P(I,Q){return typeof I=="object"&&I!==null&&I.key!=null?Z(""+I.key):Q.toString(36)}function z(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(A,A):(I.status="pending",I.then(function(Q){I.status==="pending"&&(I.status="fulfilled",I.value=Q)},function(Q){I.status==="pending"&&(I.status="rejected",I.reason=Q)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function L(I,Q,D,he,xe){var de=typeof I;(de==="undefined"||de==="boolean")&&(I=null);var we=!1;if(I===null)we=!0;else switch(de){case"bigint":case"string":case"number":we=!0;break;case"object":switch(I.$$typeof){case e:case t:we=!0;break;case d:return we=I._init,L(we(I._payload),Q,D,he,xe)}}if(we)return xe=xe(I),we=he===""?"."+P(I,0):he,M(xe)?(D="",we!=null&&(D=we.replace(V,"$&/")+"/"),L(xe,Q,D,"",function(Qe){return Qe})):xe!=null&&(H(xe)&&(xe=F(xe,D+(xe.key==null||I&&I.key===xe.key?"":(""+xe.key).replace(V,"$&/")+"/")+we)),Q.push(xe)),1;we=0;var Le=he===""?".":he+":";if(M(I))for(var ze=0;ze<I.length;ze++)he=I[ze],de=Le+P(he,ze),we+=L(he,Q,D,de,xe);else if(ze=m(I),typeof ze=="function")for(I=ze.call(I),ze=0;!(he=I.next()).done;)he=he.value,de=Le+P(he,ze++),we+=L(he,Q,D,de,xe);else if(de==="object"){if(typeof I.then=="function")return L(z(I),Q,D,he,xe);throw Q=String(I),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return we}function U(I,Q,D){if(I==null)return I;var he=[],xe=0;return L(I,he,"","",function(de){return Q.call(D,de,xe++)}),he}function G(I){if(I._status===-1){var Q=I._result;Q=Q(),Q.then(function(D){(I._status===0||I._status===-1)&&(I._status=1,I._result=D)},function(D){(I._status===0||I._status===-1)&&(I._status=2,I._result=D)}),I._status===-1&&(I._status=0,I._result=Q)}if(I._status===1)return I._result.default;throw I._result}var le=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)},B={map:U,forEach:function(I,Q,D){U(I,function(){Q.apply(this,arguments)},D)},count:function(I){var Q=0;return U(I,function(){Q++}),Q},toArray:function(I){return U(I,function(Q){return Q})||[]},only:function(I){if(!H(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return nt.Activity=p,nt.Children=B,nt.Component=S,nt.Fragment=n,nt.Profiler=r,nt.PureComponent=E,nt.StrictMode=i,nt.Suspense=u,nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,nt.__COMPILER_RUNTIME={__proto__:null,c:function(I){return O.H.useMemoCache(I)}},nt.cache=function(I){return function(){return I.apply(null,arguments)}},nt.cacheSignal=function(){return null},nt.cloneElement=function(I,Q,D){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var he=_({},I.props),xe=I.key;if(Q!=null)for(de in Q.key!==void 0&&(xe=""+Q.key),Q)!q.call(Q,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&Q.ref===void 0||(he[de]=Q[de]);var de=arguments.length-2;if(de===1)he.children=D;else if(1<de){for(var we=Array(de),Le=0;Le<de;Le++)we[Le]=arguments[Le+2];he.children=we}return j(I.type,xe,he)},nt.createContext=function(I){return I={$$typeof:s,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:l,_context:I},I},nt.createElement=function(I,Q,D){var he,xe={},de=null;if(Q!=null)for(he in Q.key!==void 0&&(de=""+Q.key),Q)q.call(Q,he)&&he!=="key"&&he!=="__self"&&he!=="__source"&&(xe[he]=Q[he]);var we=arguments.length-2;if(we===1)xe.children=D;else if(1<we){for(var Le=Array(we),ze=0;ze<we;ze++)Le[ze]=arguments[ze+2];xe.children=Le}if(I&&I.defaultProps)for(he in we=I.defaultProps,we)xe[he]===void 0&&(xe[he]=we[he]);return j(I,de,xe)},nt.createRef=function(){return{current:null}},nt.forwardRef=function(I){return{$$typeof:c,render:I}},nt.isValidElement=H,nt.lazy=function(I){return{$$typeof:d,_payload:{_status:-1,_result:I},_init:G}},nt.memo=function(I,Q){return{$$typeof:h,type:I,compare:Q===void 0?null:Q}},nt.startTransition=function(I){var Q=O.T,D={};O.T=D;try{var he=I(),xe=O.S;xe!==null&&xe(D,he),typeof he=="object"&&he!==null&&typeof he.then=="function"&&he.then(A,le)}catch(de){le(de)}finally{Q!==null&&D.types!==null&&(Q.types=D.types),O.T=Q}},nt.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},nt.use=function(I){return O.H.use(I)},nt.useActionState=function(I,Q,D){return O.H.useActionState(I,Q,D)},nt.useCallback=function(I,Q){return O.H.useCallback(I,Q)},nt.useContext=function(I){return O.H.useContext(I)},nt.useDebugValue=function(){},nt.useDeferredValue=function(I,Q){return O.H.useDeferredValue(I,Q)},nt.useEffect=function(I,Q){return O.H.useEffect(I,Q)},nt.useEffectEvent=function(I){return O.H.useEffectEvent(I)},nt.useId=function(){return O.H.useId()},nt.useImperativeHandle=function(I,Q,D){return O.H.useImperativeHandle(I,Q,D)},nt.useInsertionEffect=function(I,Q){return O.H.useInsertionEffect(I,Q)},nt.useLayoutEffect=function(I,Q){return O.H.useLayoutEffect(I,Q)},nt.useMemo=function(I,Q){return O.H.useMemo(I,Q)},nt.useOptimistic=function(I,Q){return O.H.useOptimistic(I,Q)},nt.useReducer=function(I,Q,D){return O.H.useReducer(I,Q,D)},nt.useRef=function(I){return O.H.useRef(I)},nt.useState=function(I){return O.H.useState(I)},nt.useSyncExternalStore=function(I,Q,D){return O.H.useSyncExternalStore(I,Q,D)},nt.useTransition=function(){return O.H.useTransition()},nt.version="19.2.0",nt}var Yw;function Bb(){return Yw||(Yw=1,s0.exports=_3()),s0.exports}var ge=Bb(),o0={exports:{}},Zc={},c0={exports:{}},u0={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and 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 Vw;function v3(){return Vw||(Vw=1,(function(e){function t(L,U){var G=L.length;L.push(U);e:for(;0<G;){var le=G-1>>>1,B=L[le];if(0<r(B,U))L[le]=U,L[G]=B,G=le;else break e}}function n(L){return L.length===0?null:L[0]}function i(L){if(L.length===0)return null;var U=L[0],G=L.pop();if(G!==U){L[0]=G;e:for(var le=0,B=L.length,I=B>>>1;le<I;){var Q=2*(le+1)-1,D=L[Q],he=Q+1,xe=L[he];if(0>r(D,G))he<B&&0>r(xe,D)?(L[le]=xe,L[he]=G,le=he):(L[le]=D,L[Q]=G,le=Q);else if(he<B&&0>r(xe,G))L[le]=xe,L[he]=G,le=he;else break e}}return U}function r(L,U){var G=L.sortIndex-U.sortIndex;return G!==0?G:L.id-U.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,c=s.now();e.unstable_now=function(){return s.now()-c}}var u=[],h=[],d=1,p=null,y=3,m=!1,x=!1,_=!1,w=!1,S=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function N(L){for(var U=n(h);U!==null;){if(U.callback===null)i(h);else if(U.startTime<=L)i(h),U.sortIndex=U.expirationTime,t(u,U);else break;U=n(h)}}function M(L){if(_=!1,N(L),!x)if(n(u)!==null)x=!0,A||(A=!0,Z());else{var U=n(h);U!==null&&z(M,U.startTime-L)}}var A=!1,O=-1,q=5,j=-1;function F(){return w?!0:!(e.unstable_now()-j<q)}function H(){if(w=!1,A){var L=e.unstable_now();j=L;var U=!0;try{e:{x=!1,_&&(_=!1,C(O),O=-1),m=!0;var G=y;try{t:{for(N(L),p=n(u);p!==null&&!(p.expirationTime>L&&F());){var le=p.callback;if(typeof le=="function"){p.callback=null,y=p.priorityLevel;var B=le(p.expirationTime<=L);if(L=e.unstable_now(),typeof B=="function"){p.callback=B,N(L),U=!0;break t}p===n(u)&&i(u),N(L)}else i(u);p=n(u)}if(p!==null)U=!0;else{var I=n(h);I!==null&&z(M,I.startTime-L),U=!1}}break e}finally{p=null,y=G,m=!1}U=void 0}}finally{U?Z():A=!1}}}var Z;if(typeof E=="function")Z=function(){E(H)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,P=V.port2;V.port1.onmessage=H,Z=function(){P.postMessage(null)}}else Z=function(){S(H,0)};function z(L,U){O=S(function(){L(e.unstable_now())},U)}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(L){L.callback=null},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(L){switch(y){case 1:case 2:case 3:var U=3;break;default:U=y}var G=y;y=U;try{return L()}finally{y=G}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(L,U){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var G=y;y=L;try{return U()}finally{y=G}},e.unstable_scheduleCallback=function(L,U,G){var le=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?le+G:le):G=le,L){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=G+B,L={id:d++,callback:U,priorityLevel:L,startTime:G,expirationTime:B,sortIndex:-1},G>le?(L.sortIndex=G,t(h,L),n(u)===null&&L===n(h)&&(_?(C(O),O=-1):_=!0,z(M,G-le))):(L.sortIndex=B,t(u,L),x||m||(x=!0,A||(A=!0,Z()))),L},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(L){var U=y;return function(){var G=y;y=U;try{return L.apply(this,arguments)}finally{y=G}}}})(u0)),u0}var Xw;function w3(){return Xw||(Xw=1,c0.exports=v3()),c0.exports}var h0={exports:{}},ni={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and 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 Kw;function S3(){if(Kw)return ni;Kw=1;var e=Bb();function t(u){var h="https://react.dev/errors/"+u;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)h+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+u+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},r=Symbol.for("react.portal");function l(u,h,d){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:p==null?null:""+p,children:u,containerInfo:h,implementation:d}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(u,h){if(u==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return ni.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,ni.createPortal=function(u,h){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(u,h,null,d)},ni.flushSync=function(u){var h=s.T,d=i.p;try{if(s.T=null,i.p=2,u)return u()}finally{s.T=h,i.p=d,i.d.f()}},ni.preconnect=function(u,h){typeof u=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(u,h))},ni.prefetchDNS=function(u){typeof u=="string"&&i.d.D(u)},ni.preinit=function(u,h){if(typeof u=="string"&&h&&typeof h.as=="string"){var d=h.as,p=c(d,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,m=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;d==="style"?i.d.S(u,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:m}):d==="script"&&i.d.X(u,{crossOrigin:p,integrity:y,fetchPriority:m,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},ni.preinitModule=function(u,h){if(typeof u=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var d=c(h.as,h.crossOrigin);i.d.M(u,{crossOrigin:d,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(u)},ni.preload=function(u,h){if(typeof u=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var d=h.as,p=c(d,h.crossOrigin);i.d.L(u,d,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},ni.preloadModule=function(u,h){if(typeof u=="string")if(h){var d=c(h.as,h.crossOrigin);i.d.m(u,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:d,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(u)},ni.requestFormReset=function(u){i.d.r(u)},ni.unstable_batchedUpdates=function(u,h){return u(h)},ni.useFormState=function(u,h,d){return s.H.useFormState(u,h,d)},ni.useFormStatus=function(){return s.H.useHostTransitionStatus()},ni.version="19.2.0",ni}var Zw;function C3(){if(Zw)return h0.exports;Zw=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(),h0.exports=S3(),h0.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var Qw;function k3(){if(Qw)return Zc;Qw=1;var e=w3(),t=Bb(),n=C3();function i(a){var o="https://react.dev/errors/"+a;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)o+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+a+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function l(a){var o=a,f=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,(o.flags&4098)!==0&&(f=o.return),a=o.return;while(a)}return o.tag===3?f:null}function s(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function c(a){if(a.tag===31){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function u(a){if(l(a)!==a)throw Error(i(188))}function h(a){var o=a.alternate;if(!o){if(o=l(a),o===null)throw Error(i(188));return o!==a?null:a}for(var f=a,g=o;;){var b=f.return;if(b===null)break;var v=b.alternate;if(v===null){if(g=b.return,g!==null){f=g;continue}break}if(b.child===v.child){for(v=b.child;v;){if(v===f)return u(b),a;if(v===g)return u(b),o;v=v.sibling}throw Error(i(188))}if(f.return!==g.return)f=b,g=v;else{for(var T=!1,R=b.child;R;){if(R===f){T=!0,f=b,g=v;break}if(R===g){T=!0,g=b,f=v;break}R=R.sibling}if(!T){for(R=v.child;R;){if(R===f){T=!0,f=v,g=b;break}if(R===g){T=!0,g=v,f=b;break}R=R.sibling}if(!T)throw Error(i(189))}}if(f.alternate!==g)throw Error(i(190))}if(f.tag!==3)throw Error(i(188));return f.stateNode.current===f?a:o}function d(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a;for(a=a.child;a!==null;){if(o=d(a),o!==null)return o;a=a.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function Z(a){return a===null||typeof a!="object"?null:(a=H&&a[H]||a["@@iterator"],typeof a=="function"?a:null)}var V=Symbol.for("react.client.reference");function P(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===V?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case _:return"Fragment";case S:return"Profiler";case w:return"StrictMode";case M:return"Suspense";case A:return"SuspenseList";case j:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case x:return"Portal";case E:return a.displayName||"Context";case C:return(a._context.displayName||"Context")+".Consumer";case N:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case O:return o=a.displayName||null,o!==null?o:P(a.type)||"Memo";case q:o=a._payload,a=a._init;try{return P(a(o))}catch{}}return null}var z=Array.isArray,L=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},le=[],B=-1;function I(a){return{current:a}}function Q(a){0>B||(a.current=le[B],le[B]=null,B--)}function D(a,o){B++,le[B]=a.current,a.current=o}var he=I(null),xe=I(null),de=I(null),we=I(null);function Le(a,o){switch(D(de,o),D(xe,a),D(he,null),o.nodeType){case 9:case 11:a=(a=o.documentElement)&&(a=a.namespaceURI)?dw(a):0;break;default:if(a=o.tagName,o=o.namespaceURI)o=dw(o),a=pw(o,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}Q(he),D(he,a)}function ze(){Q(he),Q(xe),Q(de)}function Qe(a){a.memoizedState!==null&&D(we,a);var o=he.current,f=pw(o,a.type);o!==f&&(D(xe,a),D(he,f))}function it(a){xe.current===a&&(Q(he),Q(xe)),we.current===a&&(Q(we),Wc._currentValue=G)}var gn,mn;function hn(a){if(gn===void 0)try{throw Error()}catch(f){var o=f.stack.trim().match(/\n( *(at )?)/);gn=o&&o[1]||"",mn=-1<f.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<f.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+gn+a+mn}var Hn=!1;function ht(a,o){if(!a||Hn)return"";Hn=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(o){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(re){var ie=re}Reflect.construct(a,[],ue)}else{try{ue.call()}catch(re){ie=re}a.call(ue.prototype)}}else{try{throw Error()}catch(re){ie=re}(ue=a())&&typeof ue.catch=="function"&&ue.catch(function(){})}}catch(re){if(re&&ie&&typeof re.stack=="string")return[re.stack,ie.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=g.DetermineComponentFrameRoot(),T=v[0],R=v[1];if(T&&R){var W=T.split(`
|
|
45
|
+
`),ne=R.split(`
|
|
46
|
+
`);for(b=g=0;g<W.length&&!W[g].includes("DetermineComponentFrameRoot");)g++;for(;b<ne.length&&!ne[b].includes("DetermineComponentFrameRoot");)b++;if(g===W.length||b===ne.length)for(g=W.length-1,b=ne.length-1;1<=g&&0<=b&&W[g]!==ne[b];)b--;for(;1<=g&&0<=b;g--,b--)if(W[g]!==ne[b]){if(g!==1||b!==1)do if(g--,b--,0>b||W[g]!==ne[b]){var se=`
|
|
47
|
+
`+W[g].replace(" at new "," at ");return a.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",a.displayName)),se}while(1<=g&&0<=b);break}}}finally{Hn=!1,Error.prepareStackTrace=f}return(f=a?a.displayName||a.name:"")?hn(f):""}function pi(a,o){switch(a.tag){case 26:case 27:case 5:return hn(a.type);case 16:return hn("Lazy");case 13:return a.child!==o&&o!==null?hn("Suspense Fallback"):hn("Suspense");case 19:return hn("SuspenseList");case 0:case 15:return ht(a.type,!1);case 11:return ht(a.type.render,!1);case 1:return ht(a.type,!0);case 31:return hn("Activity");default:return""}}function On(a){try{var o="",f=null;do o+=pi(a,f),f=a,a=a.return;while(a);return o}catch(g){return`
|
|
48
|
+
Error generating stack: `+g.message+`
|
|
49
|
+
`+g.stack}}var gi=Object.prototype.hasOwnProperty,Ei=e.unstable_scheduleCallback,Hr=e.unstable_cancelCallback,qa=e.unstable_shouldYield,ja=e.unstable_requestPaint,Gt=e.unstable_now,cr=e.unstable_getCurrentPriorityLevel,ae=e.unstable_ImmediatePriority,me=e.unstable_UserBlockingPriority,qe=e.unstable_NormalPriority,at=e.unstable_LowPriority,vt=e.unstable_IdlePriority,Ln=e.log,Ti=e.unstable_setDisableYieldValue,fn=null,Wt=null;function Zt(a){if(typeof Ln=="function"&&Ti(a),Wt&&typeof Wt.setStrictMode=="function")try{Wt.setStrictMode(fn,a)}catch{}}var yt=Math.clz32?Math.clz32:Ts,Ai=Math.log,Rn=Math.LN2;function Ts(a){return a>>>=0,a===0?32:31-(Ai(a)/Rn|0)|0}var ur=256,Er=262144,oa=4194304;function vn(a){var o=a&42;if(o!==0)return o;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Y(a,o,f){var g=a.pendingLanes;if(g===0)return 0;var b=0,v=a.suspendedLanes,T=a.pingedLanes;a=a.warmLanes;var R=g&134217727;return R!==0?(g=R&~v,g!==0?b=vn(g):(T&=R,T!==0?b=vn(T):f||(f=R&~a,f!==0&&(b=vn(f))))):(R=g&~v,R!==0?b=vn(R):T!==0?b=vn(T):f||(f=g&~a,f!==0&&(b=vn(f)))),b===0?0:o!==0&&o!==b&&(o&v)===0&&(v=b&-b,f=o&-o,v>=f||v===32&&(f&4194048)!==0)?o:b}function oe(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function ye(a,o){switch(a){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32: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 o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function We(){var a=oa;return oa<<=1,(oa&62914560)===0&&(oa=4194304),a}function Yt(a){for(var o=[],f=0;31>f;f++)o.push(a);return o}function Bt(a,o){a.pendingLanes|=o,o!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Ae(a,o,f,g,b,v){var T=a.pendingLanes;a.pendingLanes=f,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=f,a.entangledLanes&=f,a.errorRecoveryDisabledLanes&=f,a.shellSuspendCounter=0;var R=a.entanglements,W=a.expirationTimes,ne=a.hiddenUpdates;for(f=T&~f;0<f;){var se=31-yt(f),ue=1<<se;R[se]=0,W[se]=-1;var ie=ne[se];if(ie!==null)for(ne[se]=null,se=0;se<ie.length;se++){var re=ie[se];re!==null&&(re.lane&=-536870913)}f&=~ue}g!==0&&ke(a,g,0),v!==0&&b===0&&a.tag!==0&&(a.suspendedLanes|=v&~(T&~o))}function ke(a,o,f){a.pendingLanes|=o,a.suspendedLanes&=~o;var g=31-yt(o);a.entangledLanes|=o,a.entanglements[g]=a.entanglements[g]|1073741824|f&261930}function Ve(a,o){var f=a.entangledLanes|=o;for(a=a.entanglements;f;){var g=31-yt(f),b=1<<g;b&o|a[g]&o&&(a[g]|=o),f&=~b}}function cn(a,o){var f=o&-o;return f=(f&42)!==0?1:wt(f),(f&(a.suspendedLanes|o))!==0?0:f}function wt(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function qn(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function ca(){var a=U.p;return a!==0?a:(a=window.event,a===void 0?32:$w(a.type))}function ua(a,o){var f=U.p;try{return U.p=a,o()}finally{U.p=f}}var Mi=Math.random().toString(36).slice(2),ln="__reactFiber$"+Mi,Qt="__reactProps$"+Mi,Tr="__reactContainer$"+Mi,Ga="__reactEvents$"+Mi,Bl="__reactListeners$"+Mi,ha="__reactHandles$"+Mi,As="__reactResources$"+Mi,Re="__reactMarker$"+Mi;function X(a){delete a[ln],delete a[Qt],delete a[Ga],delete a[Bl],delete a[ha]}function pe(a){var o=a[ln];if(o)return o;for(var f=a.parentNode;f;){if(o=f[Tr]||f[ln]){if(f=o.alternate,o.child!==null||f!==null&&f.child!==null)for(a=vw(a);a!==null;){if(f=a[ln])return f;a=vw(a)}return o}a=f,f=a.parentNode}return null}function Ee(a){if(a=a[ln]||a[Tr]){var o=a.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return a}return null}function Et(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a.stateNode;throw Error(i(33))}function tn(a){var o=a[As];return o||(o=a[As]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function st(a){a[Re]=!0}var Dn=new Set,jn={};function ei(a,o){be(a,o),be(a+"Capture",o)}function be(a,o){for(jn[a]=o,a=0;a<o.length;a++)Dn.add(o[a])}var Ce=RegExp("^[: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]*$"),ot={},Tt={};function yn(a){return gi.call(Tt,a)?!0:gi.call(ot,a)?!1:Ce.test(a)?Tt[a]=!0:(ot[a]=!0,!1)}function ti(a,o,f){if(yn(o))if(f===null)a.removeAttribute(o);else{switch(typeof f){case"undefined":case"function":case"symbol":a.removeAttribute(o);return;case"boolean":var g=o.toLowerCase().slice(0,5);if(g!=="data-"&&g!=="aria-"){a.removeAttribute(o);return}}a.setAttribute(o,""+f)}}function Yi(a,o,f){if(f===null)a.removeAttribute(o);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(o);return}a.setAttribute(o,""+f)}}function Ni(a,o,f,g){if(g===null)a.removeAttribute(f);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(f);return}a.setAttributeNS(o,f,""+g)}}function Jt(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Vi(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function wh(a,o,f){var g=Object.getOwnPropertyDescriptor(a.constructor.prototype,o);if(!a.hasOwnProperty(o)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var b=g.get,v=g.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return b.call(this)},set:function(T){f=""+T,v.call(this,T)}}),Object.defineProperty(a,o,{enumerable:g.enumerable}),{getValue:function(){return f},setValue:function(T){f=""+T},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function Ms(a){if(!a._valueTracker){var o=Vi(a)?"checked":"value";a._valueTracker=wh(a,o,""+a[o])}}function ac(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var f=o.getValue(),g="";return a&&(g=Vi(a)?a.checked?"true":"false":a.value),a=g,a!==f?(o.setValue(a),!0):!1}function Ns(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}}var ag=/[\n"\\]/g;function Oi(a){return a.replace(ag,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function lc(a,o,f,g,b,v,T,R){a.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?a.type=T:a.removeAttribute("type"),o!=null?T==="number"?(o===0&&a.value===""||a.value!=o)&&(a.value=""+Jt(o)):a.value!==""+Jt(o)&&(a.value=""+Jt(o)):T!=="submit"&&T!=="reset"||a.removeAttribute("value"),o!=null?Os(a,T,Jt(o)):f!=null?Os(a,T,Jt(f)):g!=null&&a.removeAttribute("value"),b==null&&v!=null&&(a.defaultChecked=!!v),b!=null&&(a.checked=b&&typeof b!="function"&&typeof b!="symbol"),R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?a.name=""+Jt(R):a.removeAttribute("name")}function Il(a,o,f,g,b,v,T,R){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(a.type=v),o!=null||f!=null){if(!(v!=="submit"&&v!=="reset"||o!=null)){Ms(a);return}f=f!=null?""+Jt(f):"",o=o!=null?""+Jt(o):f,R||o===a.value||(a.value=o),a.defaultValue=o}g=g??b,g=typeof g!="function"&&typeof g!="symbol"&&!!g,a.checked=R?a.checked:!!g,a.defaultChecked=!!g,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(a.name=T),Ms(a)}function Os(a,o,f){o==="number"&&Ns(a.ownerDocument)===a||a.defaultValue===""+f||(a.defaultValue=""+f)}function Gn(a,o,f,g){if(a=a.options,o){o={};for(var b=0;b<f.length;b++)o["$"+f[b]]=!0;for(f=0;f<a.length;f++)b=o.hasOwnProperty("$"+a[f].value),a[f].selected!==b&&(a[f].selected=b),b&&g&&(a[f].defaultSelected=!0)}else{for(f=""+Jt(f),o=null,b=0;b<a.length;b++){if(a[b].value===f){a[b].selected=!0,g&&(a[b].defaultSelected=!0);return}o!==null||a[b].disabled||(o=a[b])}o!==null&&(o.selected=!0)}}function Sh(a,o,f){if(o!=null&&(o=""+Jt(o),o!==a.value&&(a.value=o),f==null)){a.defaultValue!==o&&(a.defaultValue=o);return}a.defaultValue=f!=null?""+Jt(f):""}function Ls(a,o,f,g){if(o==null){if(g!=null){if(f!=null)throw Error(i(92));if(z(g)){if(1<g.length)throw Error(i(93));g=g[0]}f=g}f==null&&(f=""),o=f}f=Jt(o),a.defaultValue=f,g=a.textContent,g===f&&g!==""&&g!==null&&(a.value=g),Ms(a)}function Je(a,o){if(o){var f=a.firstChild;if(f&&f===a.lastChild&&f.nodeType===3){f.nodeValue=o;return}}a.textContent=o}var Ch=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function wn(a,o,f){var g=o.indexOf("--")===0;f==null||typeof f=="boolean"||f===""?g?a.setProperty(o,""):o==="float"?a.cssFloat="":a[o]="":g?a.setProperty(o,f):typeof f!="number"||f===0||Ch.has(o)?o==="float"?a.cssFloat=f:a[o]=(""+f).trim():a[o]=f+"px"}function Ft(a,o,f){if(o!=null&&typeof o!="object")throw Error(i(62));if(a=a.style,f!=null){for(var g in f)!f.hasOwnProperty(g)||o!=null&&o.hasOwnProperty(g)||(g.indexOf("--")===0?a.setProperty(g,""):g==="float"?a.cssFloat="":a[g]="");for(var b in o)g=o[b],o.hasOwnProperty(b)&&f[b]!==g&&wn(a,b,g)}else for(var v in o)o.hasOwnProperty(v)&&wn(a,v,o[v])}function Wa(a){if(a.indexOf("-")===-1)return!1;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 fa=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),sc=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ya(a){return sc.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function ve(){}var $e=null;function rt(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var bt=null,un=null;function hr(a){var o=Ee(a);if(o&&(a=o.stateNode)){var f=a[Qt]||null;e:switch(a=o.stateNode,o.type){case"input":if(lc(a,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name),o=f.name,f.type==="radio"&&o!=null){for(f=a;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll('input[name="'+Oi(""+o)+'"][type="radio"]'),o=0;o<f.length;o++){var g=f[o];if(g!==a&&g.form===a.form){var b=g[Qt]||null;if(!b)throw Error(i(90));lc(g,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(o=0;o<f.length;o++)g=f[o],g.form===a.form&&ac(g)}break e;case"textarea":Sh(a,f.value,f.defaultValue);break e;case"select":o=f.value,o!=null&&Gn(a,!!f.multiple,o,!1)}}}var oc=!1;function kh(a,o,f){if(oc)return a(o,f);oc=!0;try{var g=a(o);return g}finally{if(oc=!1,(bt!==null||un!==null)&&(df(),bt&&(o=bt,a=un,un=bt=null,hr(o),a)))for(o=0;o<a.length;o++)hr(a[o])}}function cc(a,o){var f=a.stateNode;if(f===null)return null;var g=f[Qt]||null;if(g===null)return null;f=g[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(g=!g.disabled)||(a=a.type,g=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!g;break e;default:a=!1}if(a)return null;if(f&&typeof f!="function")throw Error(i(231,o,typeof f));return f}var da=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lg=!1;if(da)try{var uc={};Object.defineProperty(uc,"passive",{get:function(){lg=!0}}),window.addEventListener("test",uc,uc),window.removeEventListener("test",uc,uc)}catch{lg=!1}var Va=null,sg=null,Eh=null;function p1(){if(Eh)return Eh;var a,o=sg,f=o.length,g,b="value"in Va?Va.value:Va.textContent,v=b.length;for(a=0;a<f&&o[a]===b[a];a++);var T=f-a;for(g=1;g<=T&&o[f-g]===b[v-g];g++);return Eh=b.slice(a,1<g?1-g:void 0)}function Th(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function Ah(){return!0}function g1(){return!1}function Li(a){function o(f,g,b,v,T){this._reactName=f,this._targetInst=b,this.type=g,this.nativeEvent=v,this.target=T,this.currentTarget=null;for(var R in a)a.hasOwnProperty(R)&&(f=a[R],this[R]=f?f(v):v[R]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Ah:g1,this.isPropagationStopped=g1,this}return p(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=Ah)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=Ah)},persist:function(){},isPersistent:Ah}),o}var $l={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mh=Li($l),hc=p({},$l,{view:0,detail:0}),pD=Li(hc),og,cg,fc,Nh=p({},hc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hg,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!==fc&&(fc&&a.type==="mousemove"?(og=a.screenX-fc.screenX,cg=a.screenY-fc.screenY):cg=og=0,fc=a),og)},movementY:function(a){return"movementY"in a?a.movementY:cg}}),m1=Li(Nh),gD=p({},Nh,{dataTransfer:0}),mD=Li(gD),yD=p({},hc,{relatedTarget:0}),ug=Li(yD),bD=p({},$l,{animationName:0,elapsedTime:0,pseudoElement:0}),xD=Li(bD),_D=p({},$l,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),vD=Li(_D),wD=p({},$l,{data:0}),y1=Li(wD),SD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},CD={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"},kD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ED(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=kD[a])?!!o[a]:!1}function hg(){return ED}var TD=p({},hc,{key:function(a){if(a.key){var o=SD[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=Th(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?CD[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hg,charCode:function(a){return a.type==="keypress"?Th(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Th(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),AD=Li(TD),MD=p({},Nh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),b1=Li(MD),ND=p({},hc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hg}),OD=Li(ND),LD=p({},$l,{propertyName:0,elapsedTime:0,pseudoElement:0}),RD=Li(LD),DD=p({},Nh,{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}),BD=Li(DD),ID=p({},$l,{newState:0,oldState:0}),$D=Li(ID),FD=[9,13,27,32],fg=da&&"CompositionEvent"in window,dc=null;da&&"documentMode"in document&&(dc=document.documentMode);var zD=da&&"TextEvent"in window&&!dc,x1=da&&(!fg||dc&&8<dc&&11>=dc),_1=" ",v1=!1;function w1(a,o){switch(a){case"keyup":return FD.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function S1(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Rs=!1;function PD(a,o){switch(a){case"compositionend":return S1(o);case"keypress":return o.which!==32?null:(v1=!0,_1);case"textInput":return a=o.data,a===_1&&v1?null:a;default:return null}}function HD(a,o){if(Rs)return a==="compositionend"||!fg&&w1(a,o)?(a=p1(),Eh=sg=Va=null,Rs=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return x1&&o.locale!=="ko"?null:o.data;default:return null}}var UD={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 C1(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!UD[a.type]:o==="textarea"}function k1(a,o,f,g){bt?un?un.push(g):un=[g]:bt=g,o=_f(o,"onChange"),0<o.length&&(f=new Mh("onChange","change",null,f,g),a.push({event:f,listeners:o}))}var pc=null,gc=null;function qD(a){sw(a,0)}function Oh(a){var o=Et(a);if(ac(o))return a}function E1(a,o){if(a==="change")return o}var T1=!1;if(da){var dg;if(da){var pg="oninput"in document;if(!pg){var A1=document.createElement("div");A1.setAttribute("oninput","return;"),pg=typeof A1.oninput=="function"}dg=pg}else dg=!1;T1=dg&&(!document.documentMode||9<document.documentMode)}function M1(){pc&&(pc.detachEvent("onpropertychange",N1),gc=pc=null)}function N1(a){if(a.propertyName==="value"&&Oh(gc)){var o=[];k1(o,gc,a,rt(a)),kh(qD,o)}}function jD(a,o,f){a==="focusin"?(M1(),pc=o,gc=f,pc.attachEvent("onpropertychange",N1)):a==="focusout"&&M1()}function GD(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Oh(gc)}function WD(a,o){if(a==="click")return Oh(o)}function YD(a,o){if(a==="input"||a==="change")return Oh(o)}function VD(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var Xi=typeof Object.is=="function"?Object.is:VD;function mc(a,o){if(Xi(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var f=Object.keys(a),g=Object.keys(o);if(f.length!==g.length)return!1;for(g=0;g<f.length;g++){var b=f[g];if(!gi.call(o,b)||!Xi(a[b],o[b]))return!1}return!0}function O1(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function L1(a,o){var f=O1(a);a=0;for(var g;f;){if(f.nodeType===3){if(g=a+f.textContent.length,a<=o&&g>=o)return{node:f,offset:o-a};a=g}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=O1(f)}}function R1(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?R1(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function D1(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=Ns(a.document);o instanceof a.HTMLIFrameElement;){try{var f=typeof o.contentWindow.location.href=="string"}catch{f=!1}if(f)a=o.contentWindow;else break;o=Ns(a.document)}return o}function gg(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}var XD=da&&"documentMode"in document&&11>=document.documentMode,Ds=null,mg=null,yc=null,yg=!1;function B1(a,o,f){var g=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;yg||Ds==null||Ds!==Ns(g)||(g=Ds,"selectionStart"in g&&gg(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),yc&&mc(yc,g)||(yc=g,g=_f(mg,"onSelect"),0<g.length&&(o=new Mh("onSelect","select",null,o,f),a.push({event:o,listeners:g}),o.target=Ds)))}function Fl(a,o){var f={};return f[a.toLowerCase()]=o.toLowerCase(),f["Webkit"+a]="webkit"+o,f["Moz"+a]="moz"+o,f}var Bs={animationend:Fl("Animation","AnimationEnd"),animationiteration:Fl("Animation","AnimationIteration"),animationstart:Fl("Animation","AnimationStart"),transitionrun:Fl("Transition","TransitionRun"),transitionstart:Fl("Transition","TransitionStart"),transitioncancel:Fl("Transition","TransitionCancel"),transitionend:Fl("Transition","TransitionEnd")},bg={},I1={};da&&(I1=document.createElement("div").style,"AnimationEvent"in window||(delete Bs.animationend.animation,delete Bs.animationiteration.animation,delete Bs.animationstart.animation),"TransitionEvent"in window||delete Bs.transitionend.transition);function zl(a){if(bg[a])return bg[a];if(!Bs[a])return a;var o=Bs[a],f;for(f in o)if(o.hasOwnProperty(f)&&f in I1)return bg[a]=o[f];return a}var $1=zl("animationend"),F1=zl("animationiteration"),z1=zl("animationstart"),KD=zl("transitionrun"),ZD=zl("transitionstart"),QD=zl("transitioncancel"),P1=zl("transitionend"),H1=new Map,xg="abort auxClick beforeToggle 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(" ");xg.push("scrollEnd");function Ar(a,o){H1.set(a,o),ei(o,[a])}var Lh=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},fr=[],Is=0,_g=0;function Rh(){for(var a=Is,o=_g=Is=0;o<a;){var f=fr[o];fr[o++]=null;var g=fr[o];fr[o++]=null;var b=fr[o];fr[o++]=null;var v=fr[o];if(fr[o++]=null,g!==null&&b!==null){var T=g.pending;T===null?b.next=b:(b.next=T.next,T.next=b),g.pending=b}v!==0&&U1(f,b,v)}}function Dh(a,o,f,g){fr[Is++]=a,fr[Is++]=o,fr[Is++]=f,fr[Is++]=g,_g|=g,a.lanes|=g,a=a.alternate,a!==null&&(a.lanes|=g)}function vg(a,o,f,g){return Dh(a,o,f,g),Bh(a)}function Pl(a,o){return Dh(a,null,null,o),Bh(a)}function U1(a,o,f){a.lanes|=f;var g=a.alternate;g!==null&&(g.lanes|=f);for(var b=!1,v=a.return;v!==null;)v.childLanes|=f,g=v.alternate,g!==null&&(g.childLanes|=f),v.tag===22&&(a=v.stateNode,a===null||a._visibility&1||(b=!0)),a=v,v=v.return;return a.tag===3?(v=a.stateNode,b&&o!==null&&(b=31-yt(f),a=v.hiddenUpdates,g=a[b],g===null?a[b]=[o]:g.push(o),o.lane=f|536870912),v):null}function Bh(a){if(50<zc)throw zc=0,Nm=null,Error(i(185));for(var o=a.return;o!==null;)a=o,o=a.return;return a.tag===3?a.stateNode:null}var $s={};function JD(a,o,f,g){this.tag=a,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=g,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ki(a,o,f,g){return new JD(a,o,f,g)}function wg(a){return a=a.prototype,!(!a||!a.isReactComponent)}function pa(a,o){var f=a.alternate;return f===null?(f=Ki(a.tag,o,a.key,a.mode),f.elementType=a.elementType,f.type=a.type,f.stateNode=a.stateNode,f.alternate=a,a.alternate=f):(f.pendingProps=o,f.type=a.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=a.flags&65011712,f.childLanes=a.childLanes,f.lanes=a.lanes,f.child=a.child,f.memoizedProps=a.memoizedProps,f.memoizedState=a.memoizedState,f.updateQueue=a.updateQueue,o=a.dependencies,f.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},f.sibling=a.sibling,f.index=a.index,f.ref=a.ref,f.refCleanup=a.refCleanup,f}function q1(a,o){a.flags&=65011714;var f=a.alternate;return f===null?(a.childLanes=0,a.lanes=o,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=f.childLanes,a.lanes=f.lanes,a.child=f.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=f.memoizedProps,a.memoizedState=f.memoizedState,a.updateQueue=f.updateQueue,a.type=f.type,o=f.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),a}function Ih(a,o,f,g,b,v){var T=0;if(g=a,typeof a=="function")wg(a)&&(T=1);else if(typeof a=="string")T=r3(a,f,he.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case j:return a=Ki(31,f,o,b),a.elementType=j,a.lanes=v,a;case _:return Hl(f.children,b,v,o);case w:T=8,b|=24;break;case S:return a=Ki(12,f,o,b|2),a.elementType=S,a.lanes=v,a;case M:return a=Ki(13,f,o,b),a.elementType=M,a.lanes=v,a;case A:return a=Ki(19,f,o,b),a.elementType=A,a.lanes=v,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case E:T=10;break e;case C:T=9;break e;case N:T=11;break e;case O:T=14;break e;case q:T=16,g=null;break e}T=29,f=Error(i(130,a===null?"null":typeof a,"")),g=null}return o=Ki(T,f,o,b),o.elementType=a,o.type=g,o.lanes=v,o}function Hl(a,o,f,g){return a=Ki(7,a,g,o),a.lanes=f,a}function Sg(a,o,f){return a=Ki(6,a,null,o),a.lanes=f,a}function j1(a){var o=Ki(18,null,null,0);return o.stateNode=a,o}function Cg(a,o,f){return o=Ki(4,a.children!==null?a.children:[],a.key,o),o.lanes=f,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}var G1=new WeakMap;function dr(a,o){if(typeof a=="object"&&a!==null){var f=G1.get(a);return f!==void 0?f:(o={value:a,source:o,stack:On(o)},G1.set(a,o),o)}return{value:a,source:o,stack:On(o)}}var Fs=[],zs=0,$h=null,bc=0,pr=[],gr=0,Xa=null,Ur=1,qr="";function ga(a,o){Fs[zs++]=bc,Fs[zs++]=$h,$h=a,bc=o}function W1(a,o,f){pr[gr++]=Ur,pr[gr++]=qr,pr[gr++]=Xa,Xa=a;var g=Ur;a=qr;var b=32-yt(g)-1;g&=~(1<<b),f+=1;var v=32-yt(o)+b;if(30<v){var T=b-b%5;v=(g&(1<<T)-1).toString(32),g>>=T,b-=T,Ur=1<<32-yt(o)+b|f<<b|g,qr=v+a}else Ur=1<<v|f<<b|g,qr=a}function kg(a){a.return!==null&&(ga(a,1),W1(a,1,0))}function Eg(a){for(;a===$h;)$h=Fs[--zs],Fs[zs]=null,bc=Fs[--zs],Fs[zs]=null;for(;a===Xa;)Xa=pr[--gr],pr[gr]=null,qr=pr[--gr],pr[gr]=null,Ur=pr[--gr],pr[gr]=null}function Y1(a,o){pr[gr++]=Ur,pr[gr++]=qr,pr[gr++]=Xa,Ur=o.id,qr=o.overflow,Xa=a}var Wn=null,nn=null,St=!1,Ka=null,mr=!1,Tg=Error(i(519));function Za(a){var o=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xc(dr(o,a)),Tg}function V1(a){var o=a.stateNode,f=a.type,g=a.memoizedProps;switch(o[ln]=a,o[Qt]=g,f){case"dialog":pt("cancel",o),pt("close",o);break;case"iframe":case"object":case"embed":pt("load",o);break;case"video":case"audio":for(f=0;f<Hc.length;f++)pt(Hc[f],o);break;case"source":pt("error",o);break;case"img":case"image":case"link":pt("error",o),pt("load",o);break;case"details":pt("toggle",o);break;case"input":pt("invalid",o),Il(o,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0);break;case"select":pt("invalid",o);break;case"textarea":pt("invalid",o),Ls(o,g.value,g.defaultValue,g.children)}f=g.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||o.textContent===""+f||g.suppressHydrationWarning===!0||hw(o.textContent,f)?(g.popover!=null&&(pt("beforetoggle",o),pt("toggle",o)),g.onScroll!=null&&pt("scroll",o),g.onScrollEnd!=null&&pt("scrollend",o),g.onClick!=null&&(o.onclick=ve),o=!0):o=!1,o||Za(a,!0)}function X1(a){for(Wn=a.return;Wn;)switch(Wn.tag){case 5:case 31:case 13:mr=!1;return;case 27:case 3:mr=!0;return;default:Wn=Wn.return}}function Ps(a){if(a!==Wn)return!1;if(!St)return X1(a),St=!0,!1;var o=a.tag,f;if((f=o!==3&&o!==27)&&((f=o===5)&&(f=a.type,f=!(f!=="form"&&f!=="button")||Gm(a.type,a.memoizedProps)),f=!f),f&&nn&&Za(a),X1(a),o===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(317));nn=_w(a)}else if(o===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(317));nn=_w(a)}else o===27?(o=nn,hl(a.type)?(a=Km,Km=null,nn=a):nn=o):nn=Wn?br(a.stateNode.nextSibling):null;return!0}function Ul(){nn=Wn=null,St=!1}function Ag(){var a=Ka;return a!==null&&(Ii===null?Ii=a:Ii.push.apply(Ii,a),Ka=null),a}function xc(a){Ka===null?Ka=[a]:Ka.push(a)}var Mg=I(null),ql=null,ma=null;function Qa(a,o,f){D(Mg,o._currentValue),o._currentValue=f}function ya(a){a._currentValue=Mg.current,Q(Mg)}function Ng(a,o,f){for(;a!==null;){var g=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,g!==null&&(g.childLanes|=o)):g!==null&&(g.childLanes&o)!==o&&(g.childLanes|=o),a===f)break;a=a.return}}function Og(a,o,f,g){var b=a.child;for(b!==null&&(b.return=a);b!==null;){var v=b.dependencies;if(v!==null){var T=b.child;v=v.firstContext;e:for(;v!==null;){var R=v;v=b;for(var W=0;W<o.length;W++)if(R.context===o[W]){v.lanes|=f,R=v.alternate,R!==null&&(R.lanes|=f),Ng(v.return,f,a),g||(T=null);break e}v=R.next}}else if(b.tag===18){if(T=b.return,T===null)throw Error(i(341));T.lanes|=f,v=T.alternate,v!==null&&(v.lanes|=f),Ng(T,f,a),T=null}else T=b.child;if(T!==null)T.return=b;else for(T=b;T!==null;){if(T===a){T=null;break}if(b=T.sibling,b!==null){b.return=T.return,T=b;break}T=T.return}b=T}}function Hs(a,o,f,g){a=null;for(var b=o,v=!1;b!==null;){if(!v){if((b.flags&524288)!==0)v=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var T=b.alternate;if(T===null)throw Error(i(387));if(T=T.memoizedProps,T!==null){var R=b.type;Xi(b.pendingProps.value,T.value)||(a!==null?a.push(R):a=[R])}}else if(b===we.current){if(T=b.alternate,T===null)throw Error(i(387));T.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(a!==null?a.push(Wc):a=[Wc])}b=b.return}a!==null&&Og(o,a,f,g),o.flags|=262144}function Fh(a){for(a=a.firstContext;a!==null;){if(!Xi(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function jl(a){ql=a,ma=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Yn(a){return K1(ql,a)}function zh(a,o){return ql===null&&jl(a),K1(a,o)}function K1(a,o){var f=o._currentValue;if(o={context:o,memoizedValue:f,next:null},ma===null){if(a===null)throw Error(i(308));ma=o,a.dependencies={lanes:0,firstContext:o},a.flags|=524288}else ma=ma.next=o;return f}var eB=typeof AbortController<"u"?AbortController:function(){var a=[],o=this.signal={aborted:!1,addEventListener:function(f,g){a.push(g)}};this.abort=function(){o.aborted=!0,a.forEach(function(f){return f()})}},tB=e.unstable_scheduleCallback,nB=e.unstable_NormalPriority,Sn={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lg(){return{controller:new eB,data:new Map,refCount:0}}function _c(a){a.refCount--,a.refCount===0&&tB(nB,function(){a.controller.abort()})}var vc=null,Rg=0,Us=0,qs=null;function iB(a,o){if(vc===null){var f=vc=[];Rg=0,Us=Im(),qs={status:"pending",value:void 0,then:function(g){f.push(g)}}}return Rg++,o.then(Z1,Z1),o}function Z1(){if(--Rg===0&&vc!==null){qs!==null&&(qs.status="fulfilled");var a=vc;vc=null,Us=0,qs=null;for(var o=0;o<a.length;o++)(0,a[o])()}}function rB(a,o){var f=[],g={status:"pending",value:null,reason:null,then:function(b){f.push(b)}};return a.then(function(){g.status="fulfilled",g.value=o;for(var b=0;b<f.length;b++)(0,f[b])(o)},function(b){for(g.status="rejected",g.reason=b,b=0;b<f.length;b++)(0,f[b])(void 0)}),g}var Q1=L.S;L.S=function(a,o){Bv=Gt(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&iB(a,o),Q1!==null&&Q1(a,o)};var Gl=I(null);function Dg(){var a=Gl.current;return a!==null?a:Vt.pooledCache}function Ph(a,o){o===null?D(Gl,Gl.current):D(Gl,o.pool)}function J1(){var a=Dg();return a===null?null:{parent:Sn._currentValue,pool:a}}var js=Error(i(460)),Bg=Error(i(474)),Hh=Error(i(542)),Uh={then:function(){}};function e_(a){return a=a.status,a==="fulfilled"||a==="rejected"}function t_(a,o,f){switch(f=a[f],f===void 0?a.push(o):f!==o&&(o.then(ve,ve),o=f),o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,i_(a),a;default:if(typeof o.status=="string")o.then(ve,ve);else{if(a=Vt,a!==null&&100<a.shellSuspendCounter)throw Error(i(482));a=o,a.status="pending",a.then(function(g){if(o.status==="pending"){var b=o;b.status="fulfilled",b.value=g}},function(g){if(o.status==="pending"){var b=o;b.status="rejected",b.reason=g}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,i_(a),a}throw Yl=o,js}}function Wl(a){try{var o=a._init;return o(a._payload)}catch(f){throw f!==null&&typeof f=="object"&&typeof f.then=="function"?(Yl=f,js):f}}var Yl=null;function n_(){if(Yl===null)throw Error(i(459));var a=Yl;return Yl=null,a}function i_(a){if(a===js||a===Hh)throw Error(i(483))}var Gs=null,wc=0;function qh(a){var o=wc;return wc+=1,Gs===null&&(Gs=[]),t_(Gs,a,o)}function Sc(a,o){o=o.props.ref,a.ref=o!==void 0?o:null}function jh(a,o){throw o.$$typeof===y?Error(i(525)):(a=Object.prototype.toString.call(o),Error(i(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a)))}function r_(a){function o(J,K){if(a){var te=J.deletions;te===null?(J.deletions=[K],J.flags|=16):te.push(K)}}function f(J,K){if(!a)return null;for(;K!==null;)o(J,K),K=K.sibling;return null}function g(J){for(var K=new Map;J!==null;)J.key!==null?K.set(J.key,J):K.set(J.index,J),J=J.sibling;return K}function b(J,K){return J=pa(J,K),J.index=0,J.sibling=null,J}function v(J,K,te){return J.index=te,a?(te=J.alternate,te!==null?(te=te.index,te<K?(J.flags|=67108866,K):te):(J.flags|=67108866,K)):(J.flags|=1048576,K)}function T(J){return a&&J.alternate===null&&(J.flags|=67108866),J}function R(J,K,te,ce){return K===null||K.tag!==6?(K=Sg(te,J.mode,ce),K.return=J,K):(K=b(K,te),K.return=J,K)}function W(J,K,te,ce){var je=te.type;return je===_?se(J,K,te.props.children,ce,te.key):K!==null&&(K.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===q&&Wl(je)===K.type)?(K=b(K,te.props),Sc(K,te),K.return=J,K):(K=Ih(te.type,te.key,te.props,null,J.mode,ce),Sc(K,te),K.return=J,K)}function ne(J,K,te,ce){return K===null||K.tag!==4||K.stateNode.containerInfo!==te.containerInfo||K.stateNode.implementation!==te.implementation?(K=Cg(te,J.mode,ce),K.return=J,K):(K=b(K,te.children||[]),K.return=J,K)}function se(J,K,te,ce,je){return K===null||K.tag!==7?(K=Hl(te,J.mode,ce,je),K.return=J,K):(K=b(K,te),K.return=J,K)}function ue(J,K,te){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return K=Sg(""+K,J.mode,te),K.return=J,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case m:return te=Ih(K.type,K.key,K.props,null,J.mode,te),Sc(te,K),te.return=J,te;case x:return K=Cg(K,J.mode,te),K.return=J,K;case q:return K=Wl(K),ue(J,K,te)}if(z(K)||Z(K))return K=Hl(K,J.mode,te,null),K.return=J,K;if(typeof K.then=="function")return ue(J,qh(K),te);if(K.$$typeof===E)return ue(J,zh(J,K),te);jh(J,K)}return null}function ie(J,K,te,ce){var je=K!==null?K.key:null;if(typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint")return je!==null?null:R(J,K,""+te,ce);if(typeof te=="object"&&te!==null){switch(te.$$typeof){case m:return te.key===je?W(J,K,te,ce):null;case x:return te.key===je?ne(J,K,te,ce):null;case q:return te=Wl(te),ie(J,K,te,ce)}if(z(te)||Z(te))return je!==null?null:se(J,K,te,ce,null);if(typeof te.then=="function")return ie(J,K,qh(te),ce);if(te.$$typeof===E)return ie(J,K,zh(J,te),ce);jh(J,te)}return null}function re(J,K,te,ce,je){if(typeof ce=="string"&&ce!==""||typeof ce=="number"||typeof ce=="bigint")return J=J.get(te)||null,R(K,J,""+ce,je);if(typeof ce=="object"&&ce!==null){switch(ce.$$typeof){case m:return J=J.get(ce.key===null?te:ce.key)||null,W(K,J,ce,je);case x:return J=J.get(ce.key===null?te:ce.key)||null,ne(K,J,ce,je);case q:return ce=Wl(ce),re(J,K,te,ce,je)}if(z(ce)||Z(ce))return J=J.get(te)||null,se(K,J,ce,je,null);if(typeof ce.then=="function")return re(J,K,te,qh(ce),je);if(ce.$$typeof===E)return re(J,K,te,zh(K,ce),je);jh(K,ce)}return null}function Me(J,K,te,ce){for(var je=null,At=null,Fe=K,ct=K=0,_t=null;Fe!==null&&ct<te.length;ct++){Fe.index>ct?(_t=Fe,Fe=null):_t=Fe.sibling;var Mt=ie(J,Fe,te[ct],ce);if(Mt===null){Fe===null&&(Fe=_t);break}a&&Fe&&Mt.alternate===null&&o(J,Fe),K=v(Mt,K,ct),At===null?je=Mt:At.sibling=Mt,At=Mt,Fe=_t}if(ct===te.length)return f(J,Fe),St&&ga(J,ct),je;if(Fe===null){for(;ct<te.length;ct++)Fe=ue(J,te[ct],ce),Fe!==null&&(K=v(Fe,K,ct),At===null?je=Fe:At.sibling=Fe,At=Fe);return St&&ga(J,ct),je}for(Fe=g(Fe);ct<te.length;ct++)_t=re(Fe,J,ct,te[ct],ce),_t!==null&&(a&&_t.alternate!==null&&Fe.delete(_t.key===null?ct:_t.key),K=v(_t,K,ct),At===null?je=_t:At.sibling=_t,At=_t);return a&&Fe.forEach(function(ml){return o(J,ml)}),St&&ga(J,ct),je}function Ke(J,K,te,ce){if(te==null)throw Error(i(151));for(var je=null,At=null,Fe=K,ct=K=0,_t=null,Mt=te.next();Fe!==null&&!Mt.done;ct++,Mt=te.next()){Fe.index>ct?(_t=Fe,Fe=null):_t=Fe.sibling;var ml=ie(J,Fe,Mt.value,ce);if(ml===null){Fe===null&&(Fe=_t);break}a&&Fe&&ml.alternate===null&&o(J,Fe),K=v(ml,K,ct),At===null?je=ml:At.sibling=ml,At=ml,Fe=_t}if(Mt.done)return f(J,Fe),St&&ga(J,ct),je;if(Fe===null){for(;!Mt.done;ct++,Mt=te.next())Mt=ue(J,Mt.value,ce),Mt!==null&&(K=v(Mt,K,ct),At===null?je=Mt:At.sibling=Mt,At=Mt);return St&&ga(J,ct),je}for(Fe=g(Fe);!Mt.done;ct++,Mt=te.next())Mt=re(Fe,J,ct,Mt.value,ce),Mt!==null&&(a&&Mt.alternate!==null&&Fe.delete(Mt.key===null?ct:Mt.key),K=v(Mt,K,ct),At===null?je=Mt:At.sibling=Mt,At=Mt);return a&&Fe.forEach(function(g3){return o(J,g3)}),St&&ga(J,ct),je}function qt(J,K,te,ce){if(typeof te=="object"&&te!==null&&te.type===_&&te.key===null&&(te=te.props.children),typeof te=="object"&&te!==null){switch(te.$$typeof){case m:e:{for(var je=te.key;K!==null;){if(K.key===je){if(je=te.type,je===_){if(K.tag===7){f(J,K.sibling),ce=b(K,te.props.children),ce.return=J,J=ce;break e}}else if(K.elementType===je||typeof je=="object"&&je!==null&&je.$$typeof===q&&Wl(je)===K.type){f(J,K.sibling),ce=b(K,te.props),Sc(ce,te),ce.return=J,J=ce;break e}f(J,K);break}else o(J,K);K=K.sibling}te.type===_?(ce=Hl(te.props.children,J.mode,ce,te.key),ce.return=J,J=ce):(ce=Ih(te.type,te.key,te.props,null,J.mode,ce),Sc(ce,te),ce.return=J,J=ce)}return T(J);case x:e:{for(je=te.key;K!==null;){if(K.key===je)if(K.tag===4&&K.stateNode.containerInfo===te.containerInfo&&K.stateNode.implementation===te.implementation){f(J,K.sibling),ce=b(K,te.children||[]),ce.return=J,J=ce;break e}else{f(J,K);break}else o(J,K);K=K.sibling}ce=Cg(te,J.mode,ce),ce.return=J,J=ce}return T(J);case q:return te=Wl(te),qt(J,K,te,ce)}if(z(te))return Me(J,K,te,ce);if(Z(te)){if(je=Z(te),typeof je!="function")throw Error(i(150));return te=je.call(te),Ke(J,K,te,ce)}if(typeof te.then=="function")return qt(J,K,qh(te),ce);if(te.$$typeof===E)return qt(J,K,zh(J,te),ce);jh(J,te)}return typeof te=="string"&&te!==""||typeof te=="number"||typeof te=="bigint"?(te=""+te,K!==null&&K.tag===6?(f(J,K.sibling),ce=b(K,te),ce.return=J,J=ce):(f(J,K),ce=Sg(te,J.mode,ce),ce.return=J,J=ce),T(J)):f(J,K)}return function(J,K,te,ce){try{wc=0;var je=qt(J,K,te,ce);return Gs=null,je}catch(Fe){if(Fe===js||Fe===Hh)throw Fe;var At=Ki(29,Fe,null,J.mode);return At.lanes=ce,At.return=J,At}finally{}}}var Vl=r_(!0),a_=r_(!1),Ja=!1;function Ig(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $g(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function el(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function tl(a,o,f){var g=a.updateQueue;if(g===null)return null;if(g=g.shared,(Ot&2)!==0){var b=g.pending;return b===null?o.next=o:(o.next=b.next,b.next=o),g.pending=o,o=Bh(a),U1(a,null,f),o}return Dh(a,g,o,f),Bh(a)}function Cc(a,o,f){if(o=o.updateQueue,o!==null&&(o=o.shared,(f&4194048)!==0)){var g=o.lanes;g&=a.pendingLanes,f|=g,o.lanes=f,Ve(a,f)}}function Fg(a,o){var f=a.updateQueue,g=a.alternate;if(g!==null&&(g=g.updateQueue,f===g)){var b=null,v=null;if(f=f.firstBaseUpdate,f!==null){do{var T={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};v===null?b=v=T:v=v.next=T,f=f.next}while(f!==null);v===null?b=v=o:v=v.next=o}else b=v=o;f={baseState:g.baseState,firstBaseUpdate:b,lastBaseUpdate:v,shared:g.shared,callbacks:g.callbacks},a.updateQueue=f;return}a=f.lastBaseUpdate,a===null?f.firstBaseUpdate=o:a.next=o,f.lastBaseUpdate=o}var zg=!1;function kc(){if(zg){var a=qs;if(a!==null)throw a}}function Ec(a,o,f,g){zg=!1;var b=a.updateQueue;Ja=!1;var v=b.firstBaseUpdate,T=b.lastBaseUpdate,R=b.shared.pending;if(R!==null){b.shared.pending=null;var W=R,ne=W.next;W.next=null,T===null?v=ne:T.next=ne,T=W;var se=a.alternate;se!==null&&(se=se.updateQueue,R=se.lastBaseUpdate,R!==T&&(R===null?se.firstBaseUpdate=ne:R.next=ne,se.lastBaseUpdate=W))}if(v!==null){var ue=b.baseState;T=0,se=ne=W=null,R=v;do{var ie=R.lane&-536870913,re=ie!==R.lane;if(re?(xt&ie)===ie:(g&ie)===ie){ie!==0&&ie===Us&&(zg=!0),se!==null&&(se=se.next={lane:0,tag:R.tag,payload:R.payload,callback:null,next:null});e:{var Me=a,Ke=R;ie=o;var qt=f;switch(Ke.tag){case 1:if(Me=Ke.payload,typeof Me=="function"){ue=Me.call(qt,ue,ie);break e}ue=Me;break e;case 3:Me.flags=Me.flags&-65537|128;case 0:if(Me=Ke.payload,ie=typeof Me=="function"?Me.call(qt,ue,ie):Me,ie==null)break e;ue=p({},ue,ie);break e;case 2:Ja=!0}}ie=R.callback,ie!==null&&(a.flags|=64,re&&(a.flags|=8192),re=b.callbacks,re===null?b.callbacks=[ie]:re.push(ie))}else re={lane:ie,tag:R.tag,payload:R.payload,callback:R.callback,next:null},se===null?(ne=se=re,W=ue):se=se.next=re,T|=ie;if(R=R.next,R===null){if(R=b.shared.pending,R===null)break;re=R,R=re.next,re.next=null,b.lastBaseUpdate=re,b.shared.pending=null}}while(!0);se===null&&(W=ue),b.baseState=W,b.firstBaseUpdate=ne,b.lastBaseUpdate=se,v===null&&(b.shared.lanes=0),ll|=T,a.lanes=T,a.memoizedState=ue}}function l_(a,o){if(typeof a!="function")throw Error(i(191,a));a.call(o)}function s_(a,o){var f=a.callbacks;if(f!==null)for(a.callbacks=null,a=0;a<f.length;a++)l_(f[a],o)}var Ws=I(null),Gh=I(0);function o_(a,o){a=Ea,D(Gh,a),D(Ws,o),Ea=a|o.baseLanes}function Pg(){D(Gh,Ea),D(Ws,Ws.current)}function Hg(){Ea=Gh.current,Q(Ws),Q(Gh)}var Zi=I(null),yr=null;function nl(a){var o=a.alternate;D(bn,bn.current&1),D(Zi,a),yr===null&&(o===null||Ws.current!==null||o.memoizedState!==null)&&(yr=a)}function Ug(a){D(bn,bn.current),D(Zi,a),yr===null&&(yr=a)}function c_(a){a.tag===22?(D(bn,bn.current),D(Zi,a),yr===null&&(yr=a)):il()}function il(){D(bn,bn.current),D(Zi,Zi.current)}function Qi(a){Q(Zi),yr===a&&(yr=null),Q(bn)}var bn=I(0);function Wh(a){for(var o=a;o!==null;){if(o.tag===13){var f=o.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||Vm(f)||Xm(f)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var ba=0,lt=null,Ht=null,Cn=null,Yh=!1,Ys=!1,Xl=!1,Vh=0,Tc=0,Vs=null,aB=0;function dn(){throw Error(i(321))}function qg(a,o){if(o===null)return!1;for(var f=0;f<o.length&&f<a.length;f++)if(!Xi(a[f],o[f]))return!1;return!0}function jg(a,o,f,g,b,v){return ba=v,lt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,L.H=a===null||a.memoizedState===null?W_:am,Xl=!1,v=f(g,b),Xl=!1,Ys&&(v=h_(o,f,g,b)),u_(a),v}function u_(a){L.H=Nc;var o=Ht!==null&&Ht.next!==null;if(ba=0,Cn=Ht=lt=null,Yh=!1,Tc=0,Vs=null,o)throw Error(i(300));a===null||kn||(a=a.dependencies,a!==null&&Fh(a)&&(kn=!0))}function h_(a,o,f,g){lt=a;var b=0;do{if(Ys&&(Vs=null),Tc=0,Ys=!1,25<=b)throw Error(i(301));if(b+=1,Cn=Ht=null,a.updateQueue!=null){var v=a.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}L.H=Y_,v=o(f,g)}while(Ys);return v}function lB(){var a=L.H,o=a.useState()[0];return o=typeof o.then=="function"?Ac(o):o,a=a.useState()[0],(Ht!==null?Ht.memoizedState:null)!==a&&(lt.flags|=1024),o}function Gg(){var a=Vh!==0;return Vh=0,a}function Wg(a,o,f){o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~f}function Yg(a){if(Yh){for(a=a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}Yh=!1}ba=0,Cn=Ht=lt=null,Ys=!1,Tc=Vh=0,Vs=null}function mi(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cn===null?lt.memoizedState=Cn=a:Cn=Cn.next=a,Cn}function xn(){if(Ht===null){var a=lt.alternate;a=a!==null?a.memoizedState:null}else a=Ht.next;var o=Cn===null?lt.memoizedState:Cn.next;if(o!==null)Cn=o,Ht=a;else{if(a===null)throw lt.alternate===null?Error(i(467)):Error(i(310));Ht=a,a={memoizedState:Ht.memoizedState,baseState:Ht.baseState,baseQueue:Ht.baseQueue,queue:Ht.queue,next:null},Cn===null?lt.memoizedState=Cn=a:Cn=Cn.next=a}return Cn}function Xh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ac(a){var o=Tc;return Tc+=1,Vs===null&&(Vs=[]),a=t_(Vs,a,o),o=lt,(Cn===null?o.memoizedState:Cn.next)===null&&(o=o.alternate,L.H=o===null||o.memoizedState===null?W_:am),a}function Kh(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Ac(a);if(a.$$typeof===E)return Yn(a)}throw Error(i(438,String(a)))}function Vg(a){var o=null,f=lt.updateQueue;if(f!==null&&(o=f.memoCache),o==null){var g=lt.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(o={data:g.data.map(function(b){return b.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),f===null&&(f=Xh(),lt.updateQueue=f),f.memoCache=o,f=o.data[o.index],f===void 0)for(f=o.data[o.index]=Array(a),g=0;g<a;g++)f[g]=F;return o.index++,f}function xa(a,o){return typeof o=="function"?o(a):o}function Zh(a){var o=xn();return Xg(o,Ht,a)}function Xg(a,o,f){var g=a.queue;if(g===null)throw Error(i(311));g.lastRenderedReducer=f;var b=a.baseQueue,v=g.pending;if(v!==null){if(b!==null){var T=b.next;b.next=v.next,v.next=T}o.baseQueue=b=v,g.pending=null}if(v=a.baseState,b===null)a.memoizedState=v;else{o=b.next;var R=T=null,W=null,ne=o,se=!1;do{var ue=ne.lane&-536870913;if(ue!==ne.lane?(xt&ue)===ue:(ba&ue)===ue){var ie=ne.revertLane;if(ie===0)W!==null&&(W=W.next={lane:0,revertLane:0,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null}),ue===Us&&(se=!0);else if((ba&ie)===ie){ne=ne.next,ie===Us&&(se=!0);continue}else ue={lane:0,revertLane:ne.revertLane,gesture:null,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},W===null?(R=W=ue,T=v):W=W.next=ue,lt.lanes|=ie,ll|=ie;ue=ne.action,Xl&&f(v,ue),v=ne.hasEagerState?ne.eagerState:f(v,ue)}else ie={lane:ue,revertLane:ne.revertLane,gesture:ne.gesture,action:ne.action,hasEagerState:ne.hasEagerState,eagerState:ne.eagerState,next:null},W===null?(R=W=ie,T=v):W=W.next=ie,lt.lanes|=ue,ll|=ue;ne=ne.next}while(ne!==null&&ne!==o);if(W===null?T=v:W.next=R,!Xi(v,a.memoizedState)&&(kn=!0,se&&(f=qs,f!==null)))throw f;a.memoizedState=v,a.baseState=T,a.baseQueue=W,g.lastRenderedState=v}return b===null&&(g.lanes=0),[a.memoizedState,g.dispatch]}function Kg(a){var o=xn(),f=o.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=a;var g=f.dispatch,b=f.pending,v=o.memoizedState;if(b!==null){f.pending=null;var T=b=b.next;do v=a(v,T.action),T=T.next;while(T!==b);Xi(v,o.memoizedState)||(kn=!0),o.memoizedState=v,o.baseQueue===null&&(o.baseState=v),f.lastRenderedState=v}return[v,g]}function f_(a,o,f){var g=lt,b=xn(),v=St;if(v){if(f===void 0)throw Error(i(407));f=f()}else f=o();var T=!Xi((Ht||b).memoizedState,f);if(T&&(b.memoizedState=f,kn=!0),b=b.queue,Jg(g_.bind(null,g,b,a),[a]),b.getSnapshot!==o||T||Cn!==null&&Cn.memoizedState.tag&1){if(g.flags|=2048,Xs(9,{destroy:void 0},p_.bind(null,g,b,f,o),null),Vt===null)throw Error(i(349));v||(ba&127)!==0||d_(g,o,f)}return f}function d_(a,o,f){a.flags|=16384,a={getSnapshot:o,value:f},o=lt.updateQueue,o===null?(o=Xh(),lt.updateQueue=o,o.stores=[a]):(f=o.stores,f===null?o.stores=[a]:f.push(a))}function p_(a,o,f,g){o.value=f,o.getSnapshot=g,m_(o)&&y_(a)}function g_(a,o,f){return f(function(){m_(o)&&y_(a)})}function m_(a){var o=a.getSnapshot;a=a.value;try{var f=o();return!Xi(a,f)}catch{return!0}}function y_(a){var o=Pl(a,2);o!==null&&$i(o,a,2)}function Zg(a){var o=mi();if(typeof a=="function"){var f=a;if(a=f(),Xl){Zt(!0);try{f()}finally{Zt(!1)}}}return o.memoizedState=o.baseState=a,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:a},o}function b_(a,o,f,g){return a.baseState=f,Xg(a,Ht,typeof g=="function"?g:xa)}function sB(a,o,f,g,b){if(ef(a))throw Error(i(485));if(a=o.action,a!==null){var v={payload:b,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){v.listeners.push(T)}};L.T!==null?f(!0):v.isTransition=!1,g(v),f=o.pending,f===null?(v.next=o.pending=v,x_(o,v)):(v.next=f.next,o.pending=f.next=v)}}function x_(a,o){var f=o.action,g=o.payload,b=a.state;if(o.isTransition){var v=L.T,T={};L.T=T;try{var R=f(b,g),W=L.S;W!==null&&W(T,R),__(a,o,R)}catch(ne){Qg(a,o,ne)}finally{v!==null&&T.types!==null&&(v.types=T.types),L.T=v}}else try{v=f(b,g),__(a,o,v)}catch(ne){Qg(a,o,ne)}}function __(a,o,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(g){v_(a,o,g)},function(g){return Qg(a,o,g)}):v_(a,o,f)}function v_(a,o,f){o.status="fulfilled",o.value=f,w_(o),a.state=f,o=a.pending,o!==null&&(f=o.next,f===o?a.pending=null:(f=f.next,o.next=f,x_(a,f)))}function Qg(a,o,f){var g=a.pending;if(a.pending=null,g!==null){g=g.next;do o.status="rejected",o.reason=f,w_(o),o=o.next;while(o!==g)}a.action=null}function w_(a){a=a.listeners;for(var o=0;o<a.length;o++)(0,a[o])()}function S_(a,o){return o}function C_(a,o){if(St){var f=Vt.formState;if(f!==null){e:{var g=lt;if(St){if(nn){t:{for(var b=nn,v=mr;b.nodeType!==8;){if(!v){b=null;break t}if(b=br(b.nextSibling),b===null){b=null;break t}}v=b.data,b=v==="F!"||v==="F"?b:null}if(b){nn=br(b.nextSibling),g=b.data==="F!";break e}}Za(g)}g=!1}g&&(o=f[0])}}return f=mi(),f.memoizedState=f.baseState=o,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:S_,lastRenderedState:o},f.queue=g,f=q_.bind(null,lt,g),g.dispatch=f,g=Zg(!1),v=rm.bind(null,lt,!1,g.queue),g=mi(),b={state:o,dispatch:null,action:a,pending:null},g.queue=b,f=sB.bind(null,lt,b,v,f),b.dispatch=f,g.memoizedState=a,[o,f,!1]}function k_(a){var o=xn();return E_(o,Ht,a)}function E_(a,o,f){if(o=Xg(a,o,S_)[0],a=Zh(xa)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var g=Ac(o)}catch(T){throw T===js?Hh:T}else g=o;o=xn();var b=o.queue,v=b.dispatch;return f!==o.memoizedState&&(lt.flags|=2048,Xs(9,{destroy:void 0},oB.bind(null,b,f),null)),[g,v,a]}function oB(a,o){a.action=o}function T_(a){var o=xn(),f=Ht;if(f!==null)return E_(o,f,a);xn(),o=o.memoizedState,f=xn();var g=f.queue.dispatch;return f.memoizedState=a,[o,g,!1]}function Xs(a,o,f,g){return a={tag:a,create:f,deps:g,inst:o,next:null},o=lt.updateQueue,o===null&&(o=Xh(),lt.updateQueue=o),f=o.lastEffect,f===null?o.lastEffect=a.next=a:(g=f.next,f.next=a,a.next=g,o.lastEffect=a),a}function A_(){return xn().memoizedState}function Qh(a,o,f,g){var b=mi();lt.flags|=a,b.memoizedState=Xs(1|o,{destroy:void 0},f,g===void 0?null:g)}function Jh(a,o,f,g){var b=xn();g=g===void 0?null:g;var v=b.memoizedState.inst;Ht!==null&&g!==null&&qg(g,Ht.memoizedState.deps)?b.memoizedState=Xs(o,v,f,g):(lt.flags|=a,b.memoizedState=Xs(1|o,v,f,g))}function M_(a,o){Qh(8390656,8,a,o)}function Jg(a,o){Jh(2048,8,a,o)}function cB(a){lt.flags|=4;var o=lt.updateQueue;if(o===null)o=Xh(),lt.updateQueue=o,o.events=[a];else{var f=o.events;f===null?o.events=[a]:f.push(a)}}function N_(a){var o=xn().memoizedState;return cB({ref:o,nextImpl:a}),function(){if((Ot&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}function O_(a,o){return Jh(4,2,a,o)}function L_(a,o){return Jh(4,4,a,o)}function R_(a,o){if(typeof o=="function"){a=a();var f=o(a);return function(){typeof f=="function"?f():o(null)}}if(o!=null)return a=a(),o.current=a,function(){o.current=null}}function D_(a,o,f){f=f!=null?f.concat([a]):null,Jh(4,4,R_.bind(null,o,a),f)}function em(){}function B_(a,o){var f=xn();o=o===void 0?null:o;var g=f.memoizedState;return o!==null&&qg(o,g[1])?g[0]:(f.memoizedState=[a,o],a)}function I_(a,o){var f=xn();o=o===void 0?null:o;var g=f.memoizedState;if(o!==null&&qg(o,g[1]))return g[0];if(g=a(),Xl){Zt(!0);try{a()}finally{Zt(!1)}}return f.memoizedState=[g,o],g}function tm(a,o,f){return f===void 0||(ba&1073741824)!==0&&(xt&261930)===0?a.memoizedState=o:(a.memoizedState=f,a=$v(),lt.lanes|=a,ll|=a,f)}function $_(a,o,f,g){return Xi(f,o)?f:Ws.current!==null?(a=tm(a,f,g),Xi(a,o)||(kn=!0),a):(ba&42)===0||(ba&1073741824)!==0&&(xt&261930)===0?(kn=!0,a.memoizedState=f):(a=$v(),lt.lanes|=a,ll|=a,o)}function F_(a,o,f,g,b){var v=U.p;U.p=v!==0&&8>v?v:8;var T=L.T,R={};L.T=R,rm(a,!1,o,f);try{var W=b(),ne=L.S;if(ne!==null&&ne(R,W),W!==null&&typeof W=="object"&&typeof W.then=="function"){var se=rB(W,g);Mc(a,o,se,tr(a))}else Mc(a,o,g,tr(a))}catch(ue){Mc(a,o,{then:function(){},status:"rejected",reason:ue},tr())}finally{U.p=v,T!==null&&R.types!==null&&(T.types=R.types),L.T=T}}function uB(){}function nm(a,o,f,g){if(a.tag!==5)throw Error(i(476));var b=z_(a).queue;F_(a,b,o,G,f===null?uB:function(){return P_(a),f(g)})}function z_(a){var o=a.memoizedState;if(o!==null)return o;o={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:G},next:null};var f={};return o.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:f},next:null},a.memoizedState=o,a=a.alternate,a!==null&&(a.memoizedState=o),o}function P_(a){var o=z_(a);o.next===null&&(o=a.alternate.memoizedState),Mc(a,o.next.queue,{},tr())}function im(){return Yn(Wc)}function H_(){return xn().memoizedState}function U_(){return xn().memoizedState}function hB(a){for(var o=a.return;o!==null;){switch(o.tag){case 24:case 3:var f=tr();a=el(f);var g=tl(o,a,f);g!==null&&($i(g,o,f),Cc(g,o,f)),o={cache:Lg()},a.payload=o;return}o=o.return}}function fB(a,o,f){var g=tr();f={lane:g,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},ef(a)?j_(o,f):(f=vg(a,o,f,g),f!==null&&($i(f,a,g),G_(f,o,g)))}function q_(a,o,f){var g=tr();Mc(a,o,f,g)}function Mc(a,o,f,g){var b={lane:g,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null};if(ef(a))j_(o,b);else{var v=a.alternate;if(a.lanes===0&&(v===null||v.lanes===0)&&(v=o.lastRenderedReducer,v!==null))try{var T=o.lastRenderedState,R=v(T,f);if(b.hasEagerState=!0,b.eagerState=R,Xi(R,T))return Dh(a,o,b,0),Vt===null&&Rh(),!1}catch{}finally{}if(f=vg(a,o,b,g),f!==null)return $i(f,a,g),G_(f,o,g),!0}return!1}function rm(a,o,f,g){if(g={lane:2,revertLane:Im(),gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},ef(a)){if(o)throw Error(i(479))}else o=vg(a,f,g,2),o!==null&&$i(o,a,2)}function ef(a){var o=a.alternate;return a===lt||o!==null&&o===lt}function j_(a,o){Ys=Yh=!0;var f=a.pending;f===null?o.next=o:(o.next=f.next,f.next=o),a.pending=o}function G_(a,o,f){if((f&4194048)!==0){var g=o.lanes;g&=a.pendingLanes,f|=g,o.lanes=f,Ve(a,f)}}var Nc={readContext:Yn,use:Kh,useCallback:dn,useContext:dn,useEffect:dn,useImperativeHandle:dn,useLayoutEffect:dn,useInsertionEffect:dn,useMemo:dn,useReducer:dn,useRef:dn,useState:dn,useDebugValue:dn,useDeferredValue:dn,useTransition:dn,useSyncExternalStore:dn,useId:dn,useHostTransitionStatus:dn,useFormState:dn,useActionState:dn,useOptimistic:dn,useMemoCache:dn,useCacheRefresh:dn};Nc.useEffectEvent=dn;var W_={readContext:Yn,use:Kh,useCallback:function(a,o){return mi().memoizedState=[a,o===void 0?null:o],a},useContext:Yn,useEffect:M_,useImperativeHandle:function(a,o,f){f=f!=null?f.concat([a]):null,Qh(4194308,4,R_.bind(null,o,a),f)},useLayoutEffect:function(a,o){return Qh(4194308,4,a,o)},useInsertionEffect:function(a,o){Qh(4,2,a,o)},useMemo:function(a,o){var f=mi();o=o===void 0?null:o;var g=a();if(Xl){Zt(!0);try{a()}finally{Zt(!1)}}return f.memoizedState=[g,o],g},useReducer:function(a,o,f){var g=mi();if(f!==void 0){var b=f(o);if(Xl){Zt(!0);try{f(o)}finally{Zt(!1)}}}else b=o;return g.memoizedState=g.baseState=b,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b},g.queue=a,a=a.dispatch=fB.bind(null,lt,a),[g.memoizedState,a]},useRef:function(a){var o=mi();return a={current:a},o.memoizedState=a},useState:function(a){a=Zg(a);var o=a.queue,f=q_.bind(null,lt,o);return o.dispatch=f,[a.memoizedState,f]},useDebugValue:em,useDeferredValue:function(a,o){var f=mi();return tm(f,a,o)},useTransition:function(){var a=Zg(!1);return a=F_.bind(null,lt,a.queue,!0,!1),mi().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,o,f){var g=lt,b=mi();if(St){if(f===void 0)throw Error(i(407));f=f()}else{if(f=o(),Vt===null)throw Error(i(349));(xt&127)!==0||d_(g,o,f)}b.memoizedState=f;var v={value:f,getSnapshot:o};return b.queue=v,M_(g_.bind(null,g,v,a),[a]),g.flags|=2048,Xs(9,{destroy:void 0},p_.bind(null,g,v,f,o),null),f},useId:function(){var a=mi(),o=Vt.identifierPrefix;if(St){var f=qr,g=Ur;f=(g&~(1<<32-yt(g)-1)).toString(32)+f,o="_"+o+"R_"+f,f=Vh++,0<f&&(o+="H"+f.toString(32)),o+="_"}else f=aB++,o="_"+o+"r_"+f.toString(32)+"_";return a.memoizedState=o},useHostTransitionStatus:im,useFormState:C_,useActionState:C_,useOptimistic:function(a){var o=mi();o.memoizedState=o.baseState=a;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=f,o=rm.bind(null,lt,!0,f),f.dispatch=o,[a,o]},useMemoCache:Vg,useCacheRefresh:function(){return mi().memoizedState=hB.bind(null,lt)},useEffectEvent:function(a){var o=mi(),f={impl:a};return o.memoizedState=f,function(){if((Ot&2)!==0)throw Error(i(440));return f.impl.apply(void 0,arguments)}}},am={readContext:Yn,use:Kh,useCallback:B_,useContext:Yn,useEffect:Jg,useImperativeHandle:D_,useInsertionEffect:O_,useLayoutEffect:L_,useMemo:I_,useReducer:Zh,useRef:A_,useState:function(){return Zh(xa)},useDebugValue:em,useDeferredValue:function(a,o){var f=xn();return $_(f,Ht.memoizedState,a,o)},useTransition:function(){var a=Zh(xa)[0],o=xn().memoizedState;return[typeof a=="boolean"?a:Ac(a),o]},useSyncExternalStore:f_,useId:H_,useHostTransitionStatus:im,useFormState:k_,useActionState:k_,useOptimistic:function(a,o){var f=xn();return b_(f,Ht,a,o)},useMemoCache:Vg,useCacheRefresh:U_};am.useEffectEvent=N_;var Y_={readContext:Yn,use:Kh,useCallback:B_,useContext:Yn,useEffect:Jg,useImperativeHandle:D_,useInsertionEffect:O_,useLayoutEffect:L_,useMemo:I_,useReducer:Kg,useRef:A_,useState:function(){return Kg(xa)},useDebugValue:em,useDeferredValue:function(a,o){var f=xn();return Ht===null?tm(f,a,o):$_(f,Ht.memoizedState,a,o)},useTransition:function(){var a=Kg(xa)[0],o=xn().memoizedState;return[typeof a=="boolean"?a:Ac(a),o]},useSyncExternalStore:f_,useId:H_,useHostTransitionStatus:im,useFormState:T_,useActionState:T_,useOptimistic:function(a,o){var f=xn();return Ht!==null?b_(f,Ht,a,o):(f.baseState=a,[a,f.queue.dispatch])},useMemoCache:Vg,useCacheRefresh:U_};Y_.useEffectEvent=N_;function lm(a,o,f,g){o=a.memoizedState,f=f(g,o),f=f==null?o:p({},o,f),a.memoizedState=f,a.lanes===0&&(a.updateQueue.baseState=f)}var sm={enqueueSetState:function(a,o,f){a=a._reactInternals;var g=tr(),b=el(g);b.payload=o,f!=null&&(b.callback=f),o=tl(a,b,g),o!==null&&($i(o,a,g),Cc(o,a,g))},enqueueReplaceState:function(a,o,f){a=a._reactInternals;var g=tr(),b=el(g);b.tag=1,b.payload=o,f!=null&&(b.callback=f),o=tl(a,b,g),o!==null&&($i(o,a,g),Cc(o,a,g))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var f=tr(),g=el(f);g.tag=2,o!=null&&(g.callback=o),o=tl(a,g,f),o!==null&&($i(o,a,f),Cc(o,a,f))}};function V_(a,o,f,g,b,v,T){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(g,v,T):o.prototype&&o.prototype.isPureReactComponent?!mc(f,g)||!mc(b,v):!0}function X_(a,o,f,g){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(f,g),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(f,g),o.state!==a&&sm.enqueueReplaceState(o,o.state,null)}function Kl(a,o){var f=o;if("ref"in o){f={};for(var g in o)g!=="ref"&&(f[g]=o[g])}if(a=a.defaultProps){f===o&&(f=p({},f));for(var b in a)f[b]===void 0&&(f[b]=a[b])}return f}function K_(a){Lh(a)}function Z_(a){console.error(a)}function Q_(a){Lh(a)}function tf(a,o){try{var f=a.onUncaughtError;f(o.value,{componentStack:o.stack})}catch(g){setTimeout(function(){throw g})}}function J_(a,o,f){try{var g=a.onCaughtError;g(f.value,{componentStack:f.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function om(a,o,f){return f=el(f),f.tag=3,f.payload={element:null},f.callback=function(){tf(a,o)},f}function ev(a){return a=el(a),a.tag=3,a}function tv(a,o,f,g){var b=f.type.getDerivedStateFromError;if(typeof b=="function"){var v=g.value;a.payload=function(){return b(v)},a.callback=function(){J_(o,f,g)}}var T=f.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(a.callback=function(){J_(o,f,g),typeof b!="function"&&(sl===null?sl=new Set([this]):sl.add(this));var R=g.stack;this.componentDidCatch(g.value,{componentStack:R!==null?R:""})})}function dB(a,o,f,g,b){if(f.flags|=32768,g!==null&&typeof g=="object"&&typeof g.then=="function"){if(o=f.alternate,o!==null&&Hs(o,f,b,!0),f=Zi.current,f!==null){switch(f.tag){case 31:case 13:return yr===null?pf():f.alternate===null&&pn===0&&(pn=3),f.flags&=-257,f.flags|=65536,f.lanes=b,g===Uh?f.flags|=16384:(o=f.updateQueue,o===null?f.updateQueue=new Set([g]):o.add(g),Rm(a,g,b)),!1;case 22:return f.flags|=65536,g===Uh?f.flags|=16384:(o=f.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([g])},f.updateQueue=o):(f=o.retryQueue,f===null?o.retryQueue=new Set([g]):f.add(g)),Rm(a,g,b)),!1}throw Error(i(435,f.tag))}return Rm(a,g,b),pf(),!1}if(St)return o=Zi.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=b,g!==Tg&&(a=Error(i(422),{cause:g}),xc(dr(a,f)))):(g!==Tg&&(o=Error(i(423),{cause:g}),xc(dr(o,f))),a=a.current.alternate,a.flags|=65536,b&=-b,a.lanes|=b,g=dr(g,f),b=om(a.stateNode,g,b),Fg(a,b),pn!==4&&(pn=2)),!1;var v=Error(i(520),{cause:g});if(v=dr(v,f),Fc===null?Fc=[v]:Fc.push(v),pn!==4&&(pn=2),o===null)return!0;g=dr(g,f),f=o;do{switch(f.tag){case 3:return f.flags|=65536,a=b&-b,f.lanes|=a,a=om(f.stateNode,g,a),Fg(f,a),!1;case 1:if(o=f.type,v=f.stateNode,(f.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(sl===null||!sl.has(v))))return f.flags|=65536,b&=-b,f.lanes|=b,b=ev(b),tv(b,a,f,g),Fg(f,b),!1}f=f.return}while(f!==null);return!1}var cm=Error(i(461)),kn=!1;function Vn(a,o,f,g){o.child=a===null?a_(o,null,f,g):Vl(o,a.child,f,g)}function nv(a,o,f,g,b){f=f.render;var v=o.ref;if("ref"in g){var T={};for(var R in g)R!=="ref"&&(T[R]=g[R])}else T=g;return jl(o),g=jg(a,o,f,T,v,b),R=Gg(),a!==null&&!kn?(Wg(a,o,b),_a(a,o,b)):(St&&R&&kg(o),o.flags|=1,Vn(a,o,g,b),o.child)}function iv(a,o,f,g,b){if(a===null){var v=f.type;return typeof v=="function"&&!wg(v)&&v.defaultProps===void 0&&f.compare===null?(o.tag=15,o.type=v,rv(a,o,v,g,b)):(a=Ih(f.type,null,g,o,o.mode,b),a.ref=o.ref,a.return=o,o.child=a)}if(v=a.child,!ym(a,b)){var T=v.memoizedProps;if(f=f.compare,f=f!==null?f:mc,f(T,g)&&a.ref===o.ref)return _a(a,o,b)}return o.flags|=1,a=pa(v,g),a.ref=o.ref,a.return=o,o.child=a}function rv(a,o,f,g,b){if(a!==null){var v=a.memoizedProps;if(mc(v,g)&&a.ref===o.ref)if(kn=!1,o.pendingProps=g=v,ym(a,b))(a.flags&131072)!==0&&(kn=!0);else return o.lanes=a.lanes,_a(a,o,b)}return um(a,o,f,g,b)}function av(a,o,f,g){var b=g.children,v=a!==null?a.memoizedState:null;if(a===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),g.mode==="hidden"){if((o.flags&128)!==0){if(v=v!==null?v.baseLanes|f:f,a!==null){for(g=o.child=a.child,b=0;g!==null;)b=b|g.lanes|g.childLanes,g=g.sibling;g=b&~v}else g=0,o.child=null;return lv(a,o,v,f,g)}if((f&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&Ph(o,v!==null?v.cachePool:null),v!==null?o_(o,v):Pg(),c_(o);else return g=o.lanes=536870912,lv(a,o,v!==null?v.baseLanes|f:f,f,g)}else v!==null?(Ph(o,v.cachePool),o_(o,v),il(),o.memoizedState=null):(a!==null&&Ph(o,null),Pg(),il());return Vn(a,o,b,f),o.child}function Oc(a,o){return a!==null&&a.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function lv(a,o,f,g,b){var v=Dg();return v=v===null?null:{parent:Sn._currentValue,pool:v},o.memoizedState={baseLanes:f,cachePool:v},a!==null&&Ph(o,null),Pg(),c_(o),a!==null&&Hs(a,o,g,!0),o.childLanes=b,null}function nf(a,o){return o=af({mode:o.mode,children:o.children},a.mode),o.ref=a.ref,a.child=o,o.return=a,o}function sv(a,o,f){return Vl(o,a.child,null,f),a=nf(o,o.pendingProps),a.flags|=2,Qi(o),o.memoizedState=null,a}function pB(a,o,f){var g=o.pendingProps,b=(o.flags&128)!==0;if(o.flags&=-129,a===null){if(St){if(g.mode==="hidden")return a=nf(o,g),o.lanes=536870912,Oc(null,a);if(Ug(o),(a=nn)?(a=xw(a,mr),a=a!==null&&a.data==="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:Xa!==null?{id:Ur,overflow:qr}:null,retryLane:536870912,hydrationErrors:null},f=j1(a),f.return=o,o.child=f,Wn=o,nn=null)):a=null,a===null)throw Za(o);return o.lanes=536870912,null}return nf(o,g)}var v=a.memoizedState;if(v!==null){var T=v.dehydrated;if(Ug(o),b)if(o.flags&256)o.flags&=-257,o=sv(a,o,f);else if(o.memoizedState!==null)o.child=a.child,o.flags|=128,o=null;else throw Error(i(558));else if(kn||Hs(a,o,f,!1),b=(f&a.childLanes)!==0,kn||b){if(g=Vt,g!==null&&(T=cn(g,f),T!==0&&T!==v.retryLane))throw v.retryLane=T,Pl(a,T),$i(g,a,T),cm;pf(),o=sv(a,o,f)}else a=v.treeContext,nn=br(T.nextSibling),Wn=o,St=!0,Ka=null,mr=!1,a!==null&&Y1(o,a),o=nf(o,g),o.flags|=4096;return o}return a=pa(a.child,{mode:g.mode,children:g.children}),a.ref=o.ref,o.child=a,a.return=o,a}function rf(a,o){var f=o.ref;if(f===null)a!==null&&a.ref!==null&&(o.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(i(284));(a===null||a.ref!==f)&&(o.flags|=4194816)}}function um(a,o,f,g,b){return jl(o),f=jg(a,o,f,g,void 0,b),g=Gg(),a!==null&&!kn?(Wg(a,o,b),_a(a,o,b)):(St&&g&&kg(o),o.flags|=1,Vn(a,o,f,b),o.child)}function ov(a,o,f,g,b,v){return jl(o),o.updateQueue=null,f=h_(o,g,f,b),u_(a),g=Gg(),a!==null&&!kn?(Wg(a,o,v),_a(a,o,v)):(St&&g&&kg(o),o.flags|=1,Vn(a,o,f,v),o.child)}function cv(a,o,f,g,b){if(jl(o),o.stateNode===null){var v=$s,T=f.contextType;typeof T=="object"&&T!==null&&(v=Yn(T)),v=new f(g,v),o.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=sm,o.stateNode=v,v._reactInternals=o,v=o.stateNode,v.props=g,v.state=o.memoizedState,v.refs={},Ig(o),T=f.contextType,v.context=typeof T=="object"&&T!==null?Yn(T):$s,v.state=o.memoizedState,T=f.getDerivedStateFromProps,typeof T=="function"&&(lm(o,f,T,g),v.state=o.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(T=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),T!==v.state&&sm.enqueueReplaceState(v,v.state,null),Ec(o,g,v,b),kc(),v.state=o.memoizedState),typeof v.componentDidMount=="function"&&(o.flags|=4194308),g=!0}else if(a===null){v=o.stateNode;var R=o.memoizedProps,W=Kl(f,R);v.props=W;var ne=v.context,se=f.contextType;T=$s,typeof se=="object"&&se!==null&&(T=Yn(se));var ue=f.getDerivedStateFromProps;se=typeof ue=="function"||typeof v.getSnapshotBeforeUpdate=="function",R=o.pendingProps!==R,se||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(R||ne!==T)&&X_(o,v,g,T),Ja=!1;var ie=o.memoizedState;v.state=ie,Ec(o,g,v,b),kc(),ne=o.memoizedState,R||ie!==ne||Ja?(typeof ue=="function"&&(lm(o,f,ue,g),ne=o.memoizedState),(W=Ja||V_(o,f,W,g,ie,ne,T))?(se||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(o.flags|=4194308)):(typeof v.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=g,o.memoizedState=ne),v.props=g,v.state=ne,v.context=T,g=W):(typeof v.componentDidMount=="function"&&(o.flags|=4194308),g=!1)}else{v=o.stateNode,$g(a,o),T=o.memoizedProps,se=Kl(f,T),v.props=se,ue=o.pendingProps,ie=v.context,ne=f.contextType,W=$s,typeof ne=="object"&&ne!==null&&(W=Yn(ne)),R=f.getDerivedStateFromProps,(ne=typeof R=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(T!==ue||ie!==W)&&X_(o,v,g,W),Ja=!1,ie=o.memoizedState,v.state=ie,Ec(o,g,v,b),kc();var re=o.memoizedState;T!==ue||ie!==re||Ja||a!==null&&a.dependencies!==null&&Fh(a.dependencies)?(typeof R=="function"&&(lm(o,f,R,g),re=o.memoizedState),(se=Ja||V_(o,f,se,g,ie,re,W)||a!==null&&a.dependencies!==null&&Fh(a.dependencies))?(ne||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(g,re,W),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(g,re,W)),typeof v.componentDidUpdate=="function"&&(o.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof v.componentDidUpdate!="function"||T===a.memoizedProps&&ie===a.memoizedState||(o.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||T===a.memoizedProps&&ie===a.memoizedState||(o.flags|=1024),o.memoizedProps=g,o.memoizedState=re),v.props=g,v.state=re,v.context=W,g=se):(typeof v.componentDidUpdate!="function"||T===a.memoizedProps&&ie===a.memoizedState||(o.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||T===a.memoizedProps&&ie===a.memoizedState||(o.flags|=1024),g=!1)}return v=g,rf(a,o),g=(o.flags&128)!==0,v||g?(v=o.stateNode,f=g&&typeof f.getDerivedStateFromError!="function"?null:v.render(),o.flags|=1,a!==null&&g?(o.child=Vl(o,a.child,null,b),o.child=Vl(o,null,f,b)):Vn(a,o,f,b),o.memoizedState=v.state,a=o.child):a=_a(a,o,b),a}function uv(a,o,f,g){return Ul(),o.flags|=256,Vn(a,o,f,g),o.child}var hm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fm(a){return{baseLanes:a,cachePool:J1()}}function dm(a,o,f){return a=a!==null?a.childLanes&~f:0,o&&(a|=er),a}function hv(a,o,f){var g=o.pendingProps,b=!1,v=(o.flags&128)!==0,T;if((T=v)||(T=a!==null&&a.memoizedState===null?!1:(bn.current&2)!==0),T&&(b=!0,o.flags&=-129),T=(o.flags&32)!==0,o.flags&=-33,a===null){if(St){if(b?nl(o):il(),(a=nn)?(a=xw(a,mr),a=a!==null&&a.data!=="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:Xa!==null?{id:Ur,overflow:qr}:null,retryLane:536870912,hydrationErrors:null},f=j1(a),f.return=o,o.child=f,Wn=o,nn=null)):a=null,a===null)throw Za(o);return Xm(a)?o.lanes=32:o.lanes=536870912,null}var R=g.children;return g=g.fallback,b?(il(),b=o.mode,R=af({mode:"hidden",children:R},b),g=Hl(g,b,f,null),R.return=o,g.return=o,R.sibling=g,o.child=R,g=o.child,g.memoizedState=fm(f),g.childLanes=dm(a,T,f),o.memoizedState=hm,Oc(null,g)):(nl(o),pm(o,R))}var W=a.memoizedState;if(W!==null&&(R=W.dehydrated,R!==null)){if(v)o.flags&256?(nl(o),o.flags&=-257,o=gm(a,o,f)):o.memoizedState!==null?(il(),o.child=a.child,o.flags|=128,o=null):(il(),R=g.fallback,b=o.mode,g=af({mode:"visible",children:g.children},b),R=Hl(R,b,f,null),R.flags|=2,g.return=o,R.return=o,g.sibling=R,o.child=g,Vl(o,a.child,null,f),g=o.child,g.memoizedState=fm(f),g.childLanes=dm(a,T,f),o.memoizedState=hm,o=Oc(null,g));else if(nl(o),Xm(R)){if(T=R.nextSibling&&R.nextSibling.dataset,T)var ne=T.dgst;T=ne,g=Error(i(419)),g.stack="",g.digest=T,xc({value:g,source:null,stack:null}),o=gm(a,o,f)}else if(kn||Hs(a,o,f,!1),T=(f&a.childLanes)!==0,kn||T){if(T=Vt,T!==null&&(g=cn(T,f),g!==0&&g!==W.retryLane))throw W.retryLane=g,Pl(a,g),$i(T,a,g),cm;Vm(R)||pf(),o=gm(a,o,f)}else Vm(R)?(o.flags|=192,o.child=a.child,o=null):(a=W.treeContext,nn=br(R.nextSibling),Wn=o,St=!0,Ka=null,mr=!1,a!==null&&Y1(o,a),o=pm(o,g.children),o.flags|=4096);return o}return b?(il(),R=g.fallback,b=o.mode,W=a.child,ne=W.sibling,g=pa(W,{mode:"hidden",children:g.children}),g.subtreeFlags=W.subtreeFlags&65011712,ne!==null?R=pa(ne,R):(R=Hl(R,b,f,null),R.flags|=2),R.return=o,g.return=o,g.sibling=R,o.child=g,Oc(null,g),g=o.child,R=a.child.memoizedState,R===null?R=fm(f):(b=R.cachePool,b!==null?(W=Sn._currentValue,b=b.parent!==W?{parent:W,pool:W}:b):b=J1(),R={baseLanes:R.baseLanes|f,cachePool:b}),g.memoizedState=R,g.childLanes=dm(a,T,f),o.memoizedState=hm,Oc(a.child,g)):(nl(o),f=a.child,a=f.sibling,f=pa(f,{mode:"visible",children:g.children}),f.return=o,f.sibling=null,a!==null&&(T=o.deletions,T===null?(o.deletions=[a],o.flags|=16):T.push(a)),o.child=f,o.memoizedState=null,f)}function pm(a,o){return o=af({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function af(a,o){return a=Ki(22,a,null,o),a.lanes=0,a}function gm(a,o,f){return Vl(o,a.child,null,f),a=pm(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function fv(a,o,f){a.lanes|=o;var g=a.alternate;g!==null&&(g.lanes|=o),Ng(a.return,o,f)}function mm(a,o,f,g,b,v){var T=a.memoizedState;T===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:g,tail:f,tailMode:b,treeForkCount:v}:(T.isBackwards=o,T.rendering=null,T.renderingStartTime=0,T.last=g,T.tail=f,T.tailMode=b,T.treeForkCount=v)}function dv(a,o,f){var g=o.pendingProps,b=g.revealOrder,v=g.tail;g=g.children;var T=bn.current,R=(T&2)!==0;if(R?(T=T&1|2,o.flags|=128):T&=1,D(bn,T),Vn(a,o,g,f),g=St?bc:0,!R&&a!==null&&(a.flags&128)!==0)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&fv(a,f,o);else if(a.tag===19)fv(a,f,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(b){case"forwards":for(f=o.child,b=null;f!==null;)a=f.alternate,a!==null&&Wh(a)===null&&(b=f),f=f.sibling;f=b,f===null?(b=o.child,o.child=null):(b=f.sibling,f.sibling=null),mm(o,!1,b,f,v,g);break;case"backwards":case"unstable_legacy-backwards":for(f=null,b=o.child,o.child=null;b!==null;){if(a=b.alternate,a!==null&&Wh(a)===null){o.child=b;break}a=b.sibling,b.sibling=f,f=b,b=a}mm(o,!0,f,null,v,g);break;case"together":mm(o,!1,null,null,void 0,g);break;default:o.memoizedState=null}return o.child}function _a(a,o,f){if(a!==null&&(o.dependencies=a.dependencies),ll|=o.lanes,(f&o.childLanes)===0)if(a!==null){if(Hs(a,o,f,!1),(f&o.childLanes)===0)return null}else return null;if(a!==null&&o.child!==a.child)throw Error(i(153));if(o.child!==null){for(a=o.child,f=pa(a,a.pendingProps),o.child=f,f.return=o;a.sibling!==null;)a=a.sibling,f=f.sibling=pa(a,a.pendingProps),f.return=o;f.sibling=null}return o.child}function ym(a,o){return(a.lanes&o)!==0?!0:(a=a.dependencies,!!(a!==null&&Fh(a)))}function gB(a,o,f){switch(o.tag){case 3:Le(o,o.stateNode.containerInfo),Qa(o,Sn,a.memoizedState.cache),Ul();break;case 27:case 5:Qe(o);break;case 4:Le(o,o.stateNode.containerInfo);break;case 10:Qa(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,Ug(o),null;break;case 13:var g=o.memoizedState;if(g!==null)return g.dehydrated!==null?(nl(o),o.flags|=128,null):(f&o.child.childLanes)!==0?hv(a,o,f):(nl(o),a=_a(a,o,f),a!==null?a.sibling:null);nl(o);break;case 19:var b=(a.flags&128)!==0;if(g=(f&o.childLanes)!==0,g||(Hs(a,o,f,!1),g=(f&o.childLanes)!==0),b){if(g)return dv(a,o,f);o.flags|=128}if(b=o.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),D(bn,bn.current),g)break;return null;case 22:return o.lanes=0,av(a,o,f,o.pendingProps);case 24:Qa(o,Sn,a.memoizedState.cache)}return _a(a,o,f)}function pv(a,o,f){if(a!==null)if(a.memoizedProps!==o.pendingProps)kn=!0;else{if(!ym(a,f)&&(o.flags&128)===0)return kn=!1,gB(a,o,f);kn=(a.flags&131072)!==0}else kn=!1,St&&(o.flags&1048576)!==0&&W1(o,bc,o.index);switch(o.lanes=0,o.tag){case 16:e:{var g=o.pendingProps;if(a=Wl(o.elementType),o.type=a,typeof a=="function")wg(a)?(g=Kl(a,g),o.tag=1,o=cv(null,o,a,g,f)):(o.tag=0,o=um(null,o,a,g,f));else{if(a!=null){var b=a.$$typeof;if(b===N){o.tag=11,o=nv(null,o,a,g,f);break e}else if(b===O){o.tag=14,o=iv(null,o,a,g,f);break e}}throw o=P(a)||a,Error(i(306,o,""))}}return o;case 0:return um(a,o,o.type,o.pendingProps,f);case 1:return g=o.type,b=Kl(g,o.pendingProps),cv(a,o,g,b,f);case 3:e:{if(Le(o,o.stateNode.containerInfo),a===null)throw Error(i(387));g=o.pendingProps;var v=o.memoizedState;b=v.element,$g(a,o),Ec(o,g,null,f);var T=o.memoizedState;if(g=T.cache,Qa(o,Sn,g),g!==v.cache&&Og(o,[Sn],f,!0),kc(),g=T.element,v.isDehydrated)if(v={element:g,isDehydrated:!1,cache:T.cache},o.updateQueue.baseState=v,o.memoizedState=v,o.flags&256){o=uv(a,o,g,f);break e}else if(g!==b){b=dr(Error(i(424)),o),xc(b),o=uv(a,o,g,f);break e}else{switch(a=o.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(nn=br(a.firstChild),Wn=o,St=!0,Ka=null,mr=!0,f=a_(o,null,g,f),o.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling}else{if(Ul(),g===b){o=_a(a,o,f);break e}Vn(a,o,g,f)}o=o.child}return o;case 26:return rf(a,o),a===null?(f=kw(o.type,null,o.pendingProps,null))?o.memoizedState=f:St||(f=o.type,a=o.pendingProps,g=vf(de.current).createElement(f),g[ln]=o,g[Qt]=a,Xn(g,f,a),st(g),o.stateNode=g):o.memoizedState=kw(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return Qe(o),a===null&&St&&(g=o.stateNode=ww(o.type,o.pendingProps,de.current),Wn=o,mr=!0,b=nn,hl(o.type)?(Km=b,nn=br(g.firstChild)):nn=b),Vn(a,o,o.pendingProps.children,f),rf(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&St&&((b=g=nn)&&(g=GB(g,o.type,o.pendingProps,mr),g!==null?(o.stateNode=g,Wn=o,nn=br(g.firstChild),mr=!1,b=!0):b=!1),b||Za(o)),Qe(o),b=o.type,v=o.pendingProps,T=a!==null?a.memoizedProps:null,g=v.children,Gm(b,v)?g=null:T!==null&&Gm(b,T)&&(o.flags|=32),o.memoizedState!==null&&(b=jg(a,o,lB,null,null,f),Wc._currentValue=b),rf(a,o),Vn(a,o,g,f),o.child;case 6:return a===null&&St&&((a=f=nn)&&(f=WB(f,o.pendingProps,mr),f!==null?(o.stateNode=f,Wn=o,nn=null,a=!0):a=!1),a||Za(o)),null;case 13:return hv(a,o,f);case 4:return Le(o,o.stateNode.containerInfo),g=o.pendingProps,a===null?o.child=Vl(o,null,g,f):Vn(a,o,g,f),o.child;case 11:return nv(a,o,o.type,o.pendingProps,f);case 7:return Vn(a,o,o.pendingProps,f),o.child;case 8:return Vn(a,o,o.pendingProps.children,f),o.child;case 12:return Vn(a,o,o.pendingProps.children,f),o.child;case 10:return g=o.pendingProps,Qa(o,o.type,g.value),Vn(a,o,g.children,f),o.child;case 9:return b=o.type._context,g=o.pendingProps.children,jl(o),b=Yn(b),g=g(b),o.flags|=1,Vn(a,o,g,f),o.child;case 14:return iv(a,o,o.type,o.pendingProps,f);case 15:return rv(a,o,o.type,o.pendingProps,f);case 19:return dv(a,o,f);case 31:return pB(a,o,f);case 22:return av(a,o,f,o.pendingProps);case 24:return jl(o),g=Yn(Sn),a===null?(b=Dg(),b===null&&(b=Vt,v=Lg(),b.pooledCache=v,v.refCount++,v!==null&&(b.pooledCacheLanes|=f),b=v),o.memoizedState={parent:g,cache:b},Ig(o),Qa(o,Sn,b)):((a.lanes&f)!==0&&($g(a,o),Ec(o,null,null,f),kc()),b=a.memoizedState,v=o.memoizedState,b.parent!==g?(b={parent:g,cache:g},o.memoizedState=b,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=b),Qa(o,Sn,g)):(g=v.cache,Qa(o,Sn,g),g!==b.cache&&Og(o,[Sn],f,!0))),Vn(a,o,o.pendingProps.children,f),o.child;case 29:throw o.pendingProps}throw Error(i(156,o.tag))}function va(a){a.flags|=4}function bm(a,o,f,g,b){if((o=(a.mode&32)!==0)&&(o=!1),o){if(a.flags|=16777216,(b&335544128)===b)if(a.stateNode.complete)a.flags|=8192;else if(Hv())a.flags|=8192;else throw Yl=Uh,Bg}else a.flags&=-16777217}function gv(a,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!Nw(o))if(Hv())a.flags|=8192;else throw Yl=Uh,Bg}function lf(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?We():536870912,a.lanes|=o,Js|=o)}function Lc(a,o){if(!St)switch(a.tailMode){case"hidden":o=a.tail;for(var f=null;o!==null;)o.alternate!==null&&(f=o),o=o.sibling;f===null?a.tail=null:f.sibling=null;break;case"collapsed":f=a.tail;for(var g=null;f!==null;)f.alternate!==null&&(g=f),f=f.sibling;g===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:g.sibling=null}}function rn(a){var o=a.alternate!==null&&a.alternate.child===a.child,f=0,g=0;if(o)for(var b=a.child;b!==null;)f|=b.lanes|b.childLanes,g|=b.subtreeFlags&65011712,g|=b.flags&65011712,b.return=a,b=b.sibling;else for(b=a.child;b!==null;)f|=b.lanes|b.childLanes,g|=b.subtreeFlags,g|=b.flags,b.return=a,b=b.sibling;return a.subtreeFlags|=g,a.childLanes=f,o}function mB(a,o,f){var g=o.pendingProps;switch(Eg(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return rn(o),null;case 1:return rn(o),null;case 3:return f=o.stateNode,g=null,a!==null&&(g=a.memoizedState.cache),o.memoizedState.cache!==g&&(o.flags|=2048),ya(Sn),ze(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(a===null||a.child===null)&&(Ps(o)?va(o):a===null||a.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Ag())),rn(o),null;case 26:var b=o.type,v=o.memoizedState;return a===null?(va(o),v!==null?(rn(o),gv(o,v)):(rn(o),bm(o,b,null,g,f))):v?v!==a.memoizedState?(va(o),rn(o),gv(o,v)):(rn(o),o.flags&=-16777217):(a=a.memoizedProps,a!==g&&va(o),rn(o),bm(o,b,a,g,f)),null;case 27:if(it(o),f=de.current,b=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==g&&va(o);else{if(!g){if(o.stateNode===null)throw Error(i(166));return rn(o),null}a=he.current,Ps(o)?V1(o):(a=ww(b,g,f),o.stateNode=a,va(o))}return rn(o),null;case 5:if(it(o),b=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==g&&va(o);else{if(!g){if(o.stateNode===null)throw Error(i(166));return rn(o),null}if(v=he.current,Ps(o))V1(o);else{var T=vf(de.current);switch(v){case 1:v=T.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:v=T.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":v=T.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":v=T.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":v=T.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof g.is=="string"?T.createElement("select",{is:g.is}):T.createElement("select"),g.multiple?v.multiple=!0:g.size&&(v.size=g.size);break;default:v=typeof g.is=="string"?T.createElement(b,{is:g.is}):T.createElement(b)}}v[ln]=o,v[Qt]=g;e:for(T=o.child;T!==null;){if(T.tag===5||T.tag===6)v.appendChild(T.stateNode);else if(T.tag!==4&&T.tag!==27&&T.child!==null){T.child.return=T,T=T.child;continue}if(T===o)break e;for(;T.sibling===null;){if(T.return===null||T.return===o)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}o.stateNode=v;e:switch(Xn(v,b,g),b){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}g&&va(o)}}return rn(o),bm(o,o.type,a===null?null:a.memoizedProps,o.pendingProps,f),null;case 6:if(a&&o.stateNode!=null)a.memoizedProps!==g&&va(o);else{if(typeof g!="string"&&o.stateNode===null)throw Error(i(166));if(a=de.current,Ps(o)){if(a=o.stateNode,f=o.memoizedProps,g=null,b=Wn,b!==null)switch(b.tag){case 27:case 5:g=b.memoizedProps}a[ln]=o,a=!!(a.nodeValue===f||g!==null&&g.suppressHydrationWarning===!0||hw(a.nodeValue,f)),a||Za(o,!0)}else a=vf(a).createTextNode(g),a[ln]=o,o.stateNode=a}return rn(o),null;case 31:if(f=o.memoizedState,a===null||a.memoizedState!==null){if(g=Ps(o),f!==null){if(a===null){if(!g)throw Error(i(318));if(a=o.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(557));a[ln]=o}else Ul(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;rn(o),a=!1}else f=Ag(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=f),a=!0;if(!a)return o.flags&256?(Qi(o),o):(Qi(o),null);if((o.flags&128)!==0)throw Error(i(558))}return rn(o),null;case 13:if(g=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(b=Ps(o),g!==null&&g.dehydrated!==null){if(a===null){if(!b)throw Error(i(318));if(b=o.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(i(317));b[ln]=o}else Ul(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;rn(o),b=!1}else b=Ag(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=b),b=!0;if(!b)return o.flags&256?(Qi(o),o):(Qi(o),null)}return Qi(o),(o.flags&128)!==0?(o.lanes=f,o):(f=g!==null,a=a!==null&&a.memoizedState!==null,f&&(g=o.child,b=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(b=g.alternate.memoizedState.cachePool.pool),v=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(v=g.memoizedState.cachePool.pool),v!==b&&(g.flags|=2048)),f!==a&&f&&(o.child.flags|=8192),lf(o,o.updateQueue),rn(o),null);case 4:return ze(),a===null&&Pm(o.stateNode.containerInfo),rn(o),null;case 10:return ya(o.type),rn(o),null;case 19:if(Q(bn),g=o.memoizedState,g===null)return rn(o),null;if(b=(o.flags&128)!==0,v=g.rendering,v===null)if(b)Lc(g,!1);else{if(pn!==0||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(v=Wh(a),v!==null){for(o.flags|=128,Lc(g,!1),a=v.updateQueue,o.updateQueue=a,lf(o,a),o.subtreeFlags=0,a=f,f=o.child;f!==null;)q1(f,a),f=f.sibling;return D(bn,bn.current&1|2),St&&ga(o,g.treeForkCount),o.child}a=a.sibling}g.tail!==null&&Gt()>hf&&(o.flags|=128,b=!0,Lc(g,!1),o.lanes=4194304)}else{if(!b)if(a=Wh(v),a!==null){if(o.flags|=128,b=!0,a=a.updateQueue,o.updateQueue=a,lf(o,a),Lc(g,!0),g.tail===null&&g.tailMode==="hidden"&&!v.alternate&&!St)return rn(o),null}else 2*Gt()-g.renderingStartTime>hf&&f!==536870912&&(o.flags|=128,b=!0,Lc(g,!1),o.lanes=4194304);g.isBackwards?(v.sibling=o.child,o.child=v):(a=g.last,a!==null?a.sibling=v:o.child=v,g.last=v)}return g.tail!==null?(a=g.tail,g.rendering=a,g.tail=a.sibling,g.renderingStartTime=Gt(),a.sibling=null,f=bn.current,D(bn,b?f&1|2:f&1),St&&ga(o,g.treeForkCount),a):(rn(o),null);case 22:case 23:return Qi(o),Hg(),g=o.memoizedState!==null,a!==null?a.memoizedState!==null!==g&&(o.flags|=8192):g&&(o.flags|=8192),g?(f&536870912)!==0&&(o.flags&128)===0&&(rn(o),o.subtreeFlags&6&&(o.flags|=8192)):rn(o),f=o.updateQueue,f!==null&&lf(o,f.retryQueue),f=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),g=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(g=o.memoizedState.cachePool.pool),g!==f&&(o.flags|=2048),a!==null&&Q(Gl),null;case 24:return f=null,a!==null&&(f=a.memoizedState.cache),o.memoizedState.cache!==f&&(o.flags|=2048),ya(Sn),rn(o),null;case 25:return null;case 30:return null}throw Error(i(156,o.tag))}function yB(a,o){switch(Eg(o),o.tag){case 1:return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return ya(Sn),ze(),a=o.flags,(a&65536)!==0&&(a&128)===0?(o.flags=a&-65537|128,o):null;case 26:case 27:case 5:return it(o),null;case 31:if(o.memoizedState!==null){if(Qi(o),o.alternate===null)throw Error(i(340));Ul()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 13:if(Qi(o),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(i(340));Ul()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return Q(bn),null;case 4:return ze(),null;case 10:return ya(o.type),null;case 22:case 23:return Qi(o),Hg(),a!==null&&Q(Gl),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 24:return ya(Sn),null;case 25:return null;default:return null}}function mv(a,o){switch(Eg(o),o.tag){case 3:ya(Sn),ze();break;case 26:case 27:case 5:it(o);break;case 4:ze();break;case 31:o.memoizedState!==null&&Qi(o);break;case 13:Qi(o);break;case 19:Q(bn);break;case 10:ya(o.type);break;case 22:case 23:Qi(o),Hg(),a!==null&&Q(Gl);break;case 24:ya(Sn)}}function Rc(a,o){try{var f=o.updateQueue,g=f!==null?f.lastEffect:null;if(g!==null){var b=g.next;f=b;do{if((f.tag&a)===a){g=void 0;var v=f.create,T=f.inst;g=v(),T.destroy=g}f=f.next}while(f!==b)}}catch(R){Pt(o,o.return,R)}}function rl(a,o,f){try{var g=o.updateQueue,b=g!==null?g.lastEffect:null;if(b!==null){var v=b.next;g=v;do{if((g.tag&a)===a){var T=g.inst,R=T.destroy;if(R!==void 0){T.destroy=void 0,b=o;var W=f,ne=R;try{ne()}catch(se){Pt(b,W,se)}}}g=g.next}while(g!==v)}}catch(se){Pt(o,o.return,se)}}function yv(a){var o=a.updateQueue;if(o!==null){var f=a.stateNode;try{s_(o,f)}catch(g){Pt(a,a.return,g)}}}function bv(a,o,f){f.props=Kl(a.type,a.memoizedProps),f.state=a.memoizedState;try{f.componentWillUnmount()}catch(g){Pt(a,o,g)}}function Dc(a,o){try{var f=a.ref;if(f!==null){switch(a.tag){case 26:case 27:case 5:var g=a.stateNode;break;case 30:g=a.stateNode;break;default:g=a.stateNode}typeof f=="function"?a.refCleanup=f(g):f.current=g}}catch(b){Pt(a,o,b)}}function jr(a,o){var f=a.ref,g=a.refCleanup;if(f!==null)if(typeof g=="function")try{g()}catch(b){Pt(a,o,b)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(b){Pt(a,o,b)}else f.current=null}function xv(a){var o=a.type,f=a.memoizedProps,g=a.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":f.autoFocus&&g.focus();break e;case"img":f.src?g.src=f.src:f.srcSet&&(g.srcset=f.srcSet)}}catch(b){Pt(a,a.return,b)}}function xm(a,o,f){try{var g=a.stateNode;zB(g,a.type,f,o),g[Qt]=o}catch(b){Pt(a,a.return,b)}}function _v(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&hl(a.type)||a.tag===4}function _m(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||_v(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.tag===27&&hl(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function vm(a,o,f){var g=a.tag;if(g===5||g===6)a=a.stateNode,o?(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f).insertBefore(a,o):(o=f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,o.appendChild(a),f=f._reactRootContainer,f!=null||o.onclick!==null||(o.onclick=ve));else if(g!==4&&(g===27&&hl(a.type)&&(f=a.stateNode,o=null),a=a.child,a!==null))for(vm(a,o,f),a=a.sibling;a!==null;)vm(a,o,f),a=a.sibling}function sf(a,o,f){var g=a.tag;if(g===5||g===6)a=a.stateNode,o?f.insertBefore(a,o):f.appendChild(a);else if(g!==4&&(g===27&&hl(a.type)&&(f=a.stateNode),a=a.child,a!==null))for(sf(a,o,f),a=a.sibling;a!==null;)sf(a,o,f),a=a.sibling}function vv(a){var o=a.stateNode,f=a.memoizedProps;try{for(var g=a.type,b=o.attributes;b.length;)o.removeAttributeNode(b[0]);Xn(o,g,f),o[ln]=a,o[Qt]=f}catch(v){Pt(a,a.return,v)}}var wa=!1,En=!1,wm=!1,wv=typeof WeakSet=="function"?WeakSet:Set,Un=null;function bB(a,o){if(a=a.containerInfo,qm=Af,a=D1(a),gg(a)){if("selectionStart"in a)var f={start:a.selectionStart,end:a.selectionEnd};else e:{f=(f=a.ownerDocument)&&f.defaultView||window;var g=f.getSelection&&f.getSelection();if(g&&g.rangeCount!==0){f=g.anchorNode;var b=g.anchorOffset,v=g.focusNode;g=g.focusOffset;try{f.nodeType,v.nodeType}catch{f=null;break e}var T=0,R=-1,W=-1,ne=0,se=0,ue=a,ie=null;t:for(;;){for(var re;ue!==f||b!==0&&ue.nodeType!==3||(R=T+b),ue!==v||g!==0&&ue.nodeType!==3||(W=T+g),ue.nodeType===3&&(T+=ue.nodeValue.length),(re=ue.firstChild)!==null;)ie=ue,ue=re;for(;;){if(ue===a)break t;if(ie===f&&++ne===b&&(R=T),ie===v&&++se===g&&(W=T),(re=ue.nextSibling)!==null)break;ue=ie,ie=ue.parentNode}ue=re}f=R===-1||W===-1?null:{start:R,end:W}}else f=null}f=f||{start:0,end:0}}else f=null;for(jm={focusedElem:a,selectionRange:f},Af=!1,Un=o;Un!==null;)if(o=Un,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,Un=a;else for(;Un!==null;){switch(o=Un,v=o.alternate,a=o.flags,o.tag){case 0:if((a&4)!==0&&(a=o.updateQueue,a=a!==null?a.events:null,a!==null))for(f=0;f<a.length;f++)b=a[f],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&v!==null){a=void 0,f=o,b=v.memoizedProps,v=v.memoizedState,g=f.stateNode;try{var Me=Kl(f.type,b);a=g.getSnapshotBeforeUpdate(Me,v),g.__reactInternalSnapshotBeforeUpdate=a}catch(Ke){Pt(f,f.return,Ke)}}break;case 3:if((a&1024)!==0){if(a=o.stateNode.containerInfo,f=a.nodeType,f===9)Ym(a);else if(f===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Ym(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(i(163))}if(a=o.sibling,a!==null){a.return=o.return,Un=a;break}Un=o.return}}function Sv(a,o,f){var g=f.flags;switch(f.tag){case 0:case 11:case 15:Ca(a,f),g&4&&Rc(5,f);break;case 1:if(Ca(a,f),g&4)if(a=f.stateNode,o===null)try{a.componentDidMount()}catch(T){Pt(f,f.return,T)}else{var b=Kl(f.type,o.memoizedProps);o=o.memoizedState;try{a.componentDidUpdate(b,o,a.__reactInternalSnapshotBeforeUpdate)}catch(T){Pt(f,f.return,T)}}g&64&&yv(f),g&512&&Dc(f,f.return);break;case 3:if(Ca(a,f),g&64&&(a=f.updateQueue,a!==null)){if(o=null,f.child!==null)switch(f.child.tag){case 27:case 5:o=f.child.stateNode;break;case 1:o=f.child.stateNode}try{s_(a,o)}catch(T){Pt(f,f.return,T)}}break;case 27:o===null&&g&4&&vv(f);case 26:case 5:Ca(a,f),o===null&&g&4&&xv(f),g&512&&Dc(f,f.return);break;case 12:Ca(a,f);break;case 31:Ca(a,f),g&4&&Ev(a,f);break;case 13:Ca(a,f),g&4&&Tv(a,f),g&64&&(a=f.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(f=TB.bind(null,f),YB(a,f))));break;case 22:if(g=f.memoizedState!==null||wa,!g){o=o!==null&&o.memoizedState!==null||En,b=wa;var v=En;wa=g,(En=o)&&!v?ka(a,f,(f.subtreeFlags&8772)!==0):Ca(a,f),wa=b,En=v}break;case 30:break;default:Ca(a,f)}}function Cv(a){var o=a.alternate;o!==null&&(a.alternate=null,Cv(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&X(o)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var sn=null,Ri=!1;function Sa(a,o,f){for(f=f.child;f!==null;)kv(a,o,f),f=f.sibling}function kv(a,o,f){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(fn,f)}catch{}switch(f.tag){case 26:En||jr(f,o),Sa(a,o,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:En||jr(f,o);var g=sn,b=Ri;hl(f.type)&&(sn=f.stateNode,Ri=!1),Sa(a,o,f),qc(f.stateNode),sn=g,Ri=b;break;case 5:En||jr(f,o);case 6:if(g=sn,b=Ri,sn=null,Sa(a,o,f),sn=g,Ri=b,sn!==null)if(Ri)try{(sn.nodeType===9?sn.body:sn.nodeName==="HTML"?sn.ownerDocument.body:sn).removeChild(f.stateNode)}catch(v){Pt(f,o,v)}else try{sn.removeChild(f.stateNode)}catch(v){Pt(f,o,v)}break;case 18:sn!==null&&(Ri?(a=sn,yw(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,f.stateNode),so(a)):yw(sn,f.stateNode));break;case 4:g=sn,b=Ri,sn=f.stateNode.containerInfo,Ri=!0,Sa(a,o,f),sn=g,Ri=b;break;case 0:case 11:case 14:case 15:rl(2,f,o),En||rl(4,f,o),Sa(a,o,f);break;case 1:En||(jr(f,o),g=f.stateNode,typeof g.componentWillUnmount=="function"&&bv(f,o,g)),Sa(a,o,f);break;case 21:Sa(a,o,f);break;case 22:En=(g=En)||f.memoizedState!==null,Sa(a,o,f),En=g;break;default:Sa(a,o,f)}}function Ev(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{so(a)}catch(f){Pt(o,o.return,f)}}}function Tv(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{so(a)}catch(f){Pt(o,o.return,f)}}function xB(a){switch(a.tag){case 31:case 13:case 19:var o=a.stateNode;return o===null&&(o=a.stateNode=new wv),o;case 22:return a=a.stateNode,o=a._retryCache,o===null&&(o=a._retryCache=new wv),o;default:throw Error(i(435,a.tag))}}function of(a,o){var f=xB(a);o.forEach(function(g){if(!f.has(g)){f.add(g);var b=AB.bind(null,a,g);g.then(b,b)}})}function Di(a,o){var f=o.deletions;if(f!==null)for(var g=0;g<f.length;g++){var b=f[g],v=a,T=o,R=T;e:for(;R!==null;){switch(R.tag){case 27:if(hl(R.type)){sn=R.stateNode,Ri=!1;break e}break;case 5:sn=R.stateNode,Ri=!1;break e;case 3:case 4:sn=R.stateNode.containerInfo,Ri=!0;break e}R=R.return}if(sn===null)throw Error(i(160));kv(v,T,b),sn=null,Ri=!1,v=b.alternate,v!==null&&(v.return=null),b.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)Av(o,a),o=o.sibling}var Mr=null;function Av(a,o){var f=a.alternate,g=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Di(o,a),Bi(a),g&4&&(rl(3,a,a.return),Rc(3,a),rl(5,a,a.return));break;case 1:Di(o,a),Bi(a),g&512&&(En||f===null||jr(f,f.return)),g&64&&wa&&(a=a.updateQueue,a!==null&&(g=a.callbacks,g!==null&&(f=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=f===null?g:f.concat(g))));break;case 26:var b=Mr;if(Di(o,a),Bi(a),g&512&&(En||f===null||jr(f,f.return)),g&4){var v=f!==null?f.memoizedState:null;if(g=a.memoizedState,f===null)if(g===null)if(a.stateNode===null){e:{g=a.type,f=a.memoizedProps,b=b.ownerDocument||b;t:switch(g){case"title":v=b.getElementsByTagName("title")[0],(!v||v[Re]||v[ln]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=b.createElement(g),b.head.insertBefore(v,b.querySelector("head > title"))),Xn(v,g,f),v[ln]=a,st(v),g=v;break e;case"link":var T=Aw("link","href",b).get(g+(f.href||""));if(T){for(var R=0;R<T.length;R++)if(v=T[R],v.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&v.getAttribute("rel")===(f.rel==null?null:f.rel)&&v.getAttribute("title")===(f.title==null?null:f.title)&&v.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){T.splice(R,1);break t}}v=b.createElement(g),Xn(v,g,f),b.head.appendChild(v);break;case"meta":if(T=Aw("meta","content",b).get(g+(f.content||""))){for(R=0;R<T.length;R++)if(v=T[R],v.getAttribute("content")===(f.content==null?null:""+f.content)&&v.getAttribute("name")===(f.name==null?null:f.name)&&v.getAttribute("property")===(f.property==null?null:f.property)&&v.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&v.getAttribute("charset")===(f.charSet==null?null:f.charSet)){T.splice(R,1);break t}}v=b.createElement(g),Xn(v,g,f),b.head.appendChild(v);break;default:throw Error(i(468,g))}v[ln]=a,st(v),g=v}a.stateNode=g}else Mw(b,a.type,a.stateNode);else a.stateNode=Tw(b,g,a.memoizedProps);else v!==g?(v===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):v.count--,g===null?Mw(b,a.type,a.stateNode):Tw(b,g,a.memoizedProps)):g===null&&a.stateNode!==null&&xm(a,a.memoizedProps,f.memoizedProps)}break;case 27:Di(o,a),Bi(a),g&512&&(En||f===null||jr(f,f.return)),f!==null&&g&4&&xm(a,a.memoizedProps,f.memoizedProps);break;case 5:if(Di(o,a),Bi(a),g&512&&(En||f===null||jr(f,f.return)),a.flags&32){b=a.stateNode;try{Je(b,"")}catch(Me){Pt(a,a.return,Me)}}g&4&&a.stateNode!=null&&(b=a.memoizedProps,xm(a,b,f!==null?f.memoizedProps:b)),g&1024&&(wm=!0);break;case 6:if(Di(o,a),Bi(a),g&4){if(a.stateNode===null)throw Error(i(162));g=a.memoizedProps,f=a.stateNode;try{f.nodeValue=g}catch(Me){Pt(a,a.return,Me)}}break;case 3:if(Cf=null,b=Mr,Mr=wf(o.containerInfo),Di(o,a),Mr=b,Bi(a),g&4&&f!==null&&f.memoizedState.isDehydrated)try{so(o.containerInfo)}catch(Me){Pt(a,a.return,Me)}wm&&(wm=!1,Mv(a));break;case 4:g=Mr,Mr=wf(a.stateNode.containerInfo),Di(o,a),Bi(a),Mr=g;break;case 12:Di(o,a),Bi(a);break;case 31:Di(o,a),Bi(a),g&4&&(g=a.updateQueue,g!==null&&(a.updateQueue=null,of(a,g)));break;case 13:Di(o,a),Bi(a),a.child.flags&8192&&a.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(uf=Gt()),g&4&&(g=a.updateQueue,g!==null&&(a.updateQueue=null,of(a,g)));break;case 22:b=a.memoizedState!==null;var W=f!==null&&f.memoizedState!==null,ne=wa,se=En;if(wa=ne||b,En=se||W,Di(o,a),En=se,wa=ne,Bi(a),g&8192)e:for(o=a.stateNode,o._visibility=b?o._visibility&-2:o._visibility|1,b&&(f===null||W||wa||En||Zl(a)),f=null,o=a;;){if(o.tag===5||o.tag===26){if(f===null){W=f=o;try{if(v=W.stateNode,b)T=v.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{R=W.stateNode;var ue=W.memoizedProps.style,ie=ue!=null&&ue.hasOwnProperty("display")?ue.display:null;R.style.display=ie==null||typeof ie=="boolean"?"":(""+ie).trim()}}catch(Me){Pt(W,W.return,Me)}}}else if(o.tag===6){if(f===null){W=o;try{W.stateNode.nodeValue=b?"":W.memoizedProps}catch(Me){Pt(W,W.return,Me)}}}else if(o.tag===18){if(f===null){W=o;try{var re=W.stateNode;b?bw(re,!0):bw(W.stateNode,!1)}catch(Me){Pt(W,W.return,Me)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===a)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;f===o&&(f=null),o=o.return}f===o&&(f=null),o.sibling.return=o.return,o=o.sibling}g&4&&(g=a.updateQueue,g!==null&&(f=g.retryQueue,f!==null&&(g.retryQueue=null,of(a,f))));break;case 19:Di(o,a),Bi(a),g&4&&(g=a.updateQueue,g!==null&&(a.updateQueue=null,of(a,g)));break;case 30:break;case 21:break;default:Di(o,a),Bi(a)}}function Bi(a){var o=a.flags;if(o&2){try{for(var f,g=a.return;g!==null;){if(_v(g)){f=g;break}g=g.return}if(f==null)throw Error(i(160));switch(f.tag){case 27:var b=f.stateNode,v=_m(a);sf(a,v,b);break;case 5:var T=f.stateNode;f.flags&32&&(Je(T,""),f.flags&=-33);var R=_m(a);sf(a,R,T);break;case 3:case 4:var W=f.stateNode.containerInfo,ne=_m(a);vm(a,ne,W);break;default:throw Error(i(161))}}catch(se){Pt(a,a.return,se)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function Mv(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var o=a;Mv(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),a=a.sibling}}function Ca(a,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)Sv(a,o.alternate,o),o=o.sibling}function Zl(a){for(a=a.child;a!==null;){var o=a;switch(o.tag){case 0:case 11:case 14:case 15:rl(4,o,o.return),Zl(o);break;case 1:jr(o,o.return);var f=o.stateNode;typeof f.componentWillUnmount=="function"&&bv(o,o.return,f),Zl(o);break;case 27:qc(o.stateNode);case 26:case 5:jr(o,o.return),Zl(o);break;case 22:o.memoizedState===null&&Zl(o);break;case 30:Zl(o);break;default:Zl(o)}a=a.sibling}}function ka(a,o,f){for(f=f&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var g=o.alternate,b=a,v=o,T=v.flags;switch(v.tag){case 0:case 11:case 15:ka(b,v,f),Rc(4,v);break;case 1:if(ka(b,v,f),g=v,b=g.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(ne){Pt(g,g.return,ne)}if(g=v,b=g.updateQueue,b!==null){var R=g.stateNode;try{var W=b.shared.hiddenCallbacks;if(W!==null)for(b.shared.hiddenCallbacks=null,b=0;b<W.length;b++)l_(W[b],R)}catch(ne){Pt(g,g.return,ne)}}f&&T&64&&yv(v),Dc(v,v.return);break;case 27:vv(v);case 26:case 5:ka(b,v,f),f&&g===null&&T&4&&xv(v),Dc(v,v.return);break;case 12:ka(b,v,f);break;case 31:ka(b,v,f),f&&T&4&&Ev(b,v);break;case 13:ka(b,v,f),f&&T&4&&Tv(b,v);break;case 22:v.memoizedState===null&&ka(b,v,f),Dc(v,v.return);break;case 30:break;default:ka(b,v,f)}o=o.sibling}}function Sm(a,o){var f=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),a=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),a!==f&&(a!=null&&a.refCount++,f!=null&&_c(f))}function Cm(a,o){a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&_c(a))}function Nr(a,o,f,g){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)Nv(a,o,f,g),o=o.sibling}function Nv(a,o,f,g){var b=o.flags;switch(o.tag){case 0:case 11:case 15:Nr(a,o,f,g),b&2048&&Rc(9,o);break;case 1:Nr(a,o,f,g);break;case 3:Nr(a,o,f,g),b&2048&&(a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&_c(a)));break;case 12:if(b&2048){Nr(a,o,f,g),a=o.stateNode;try{var v=o.memoizedProps,T=v.id,R=v.onPostCommit;typeof R=="function"&&R(T,o.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(W){Pt(o,o.return,W)}}else Nr(a,o,f,g);break;case 31:Nr(a,o,f,g);break;case 13:Nr(a,o,f,g);break;case 23:break;case 22:v=o.stateNode,T=o.alternate,o.memoizedState!==null?v._visibility&2?Nr(a,o,f,g):Bc(a,o):v._visibility&2?Nr(a,o,f,g):(v._visibility|=2,Ks(a,o,f,g,(o.subtreeFlags&10256)!==0||!1)),b&2048&&Sm(T,o);break;case 24:Nr(a,o,f,g),b&2048&&Cm(o.alternate,o);break;default:Nr(a,o,f,g)}}function Ks(a,o,f,g,b){for(b=b&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var v=a,T=o,R=f,W=g,ne=T.flags;switch(T.tag){case 0:case 11:case 15:Ks(v,T,R,W,b),Rc(8,T);break;case 23:break;case 22:var se=T.stateNode;T.memoizedState!==null?se._visibility&2?Ks(v,T,R,W,b):Bc(v,T):(se._visibility|=2,Ks(v,T,R,W,b)),b&&ne&2048&&Sm(T.alternate,T);break;case 24:Ks(v,T,R,W,b),b&&ne&2048&&Cm(T.alternate,T);break;default:Ks(v,T,R,W,b)}o=o.sibling}}function Bc(a,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var f=a,g=o,b=g.flags;switch(g.tag){case 22:Bc(f,g),b&2048&&Sm(g.alternate,g);break;case 24:Bc(f,g),b&2048&&Cm(g.alternate,g);break;default:Bc(f,g)}o=o.sibling}}var Ic=8192;function Zs(a,o,f){if(a.subtreeFlags&Ic)for(a=a.child;a!==null;)Ov(a,o,f),a=a.sibling}function Ov(a,o,f){switch(a.tag){case 26:Zs(a,o,f),a.flags&Ic&&a.memoizedState!==null&&a3(f,Mr,a.memoizedState,a.memoizedProps);break;case 5:Zs(a,o,f);break;case 3:case 4:var g=Mr;Mr=wf(a.stateNode.containerInfo),Zs(a,o,f),Mr=g;break;case 22:a.memoizedState===null&&(g=a.alternate,g!==null&&g.memoizedState!==null?(g=Ic,Ic=16777216,Zs(a,o,f),Ic=g):Zs(a,o,f));break;default:Zs(a,o,f)}}function Lv(a){var o=a.alternate;if(o!==null&&(a=o.child,a!==null)){o.child=null;do o=a.sibling,a.sibling=null,a=o;while(a!==null)}}function $c(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var f=0;f<o.length;f++){var g=o[f];Un=g,Dv(g,a)}Lv(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Rv(a),a=a.sibling}function Rv(a){switch(a.tag){case 0:case 11:case 15:$c(a),a.flags&2048&&rl(9,a,a.return);break;case 3:$c(a);break;case 12:$c(a);break;case 22:var o=a.stateNode;a.memoizedState!==null&&o._visibility&2&&(a.return===null||a.return.tag!==13)?(o._visibility&=-3,cf(a)):$c(a);break;default:$c(a)}}function cf(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var f=0;f<o.length;f++){var g=o[f];Un=g,Dv(g,a)}Lv(a)}for(a=a.child;a!==null;){switch(o=a,o.tag){case 0:case 11:case 15:rl(8,o,o.return),cf(o);break;case 22:f=o.stateNode,f._visibility&2&&(f._visibility&=-3,cf(o));break;default:cf(o)}a=a.sibling}}function Dv(a,o){for(;Un!==null;){var f=Un;switch(f.tag){case 0:case 11:case 15:rl(8,f,o);break;case 23:case 22:if(f.memoizedState!==null&&f.memoizedState.cachePool!==null){var g=f.memoizedState.cachePool.pool;g!=null&&g.refCount++}break;case 24:_c(f.memoizedState.cache)}if(g=f.child,g!==null)g.return=f,Un=g;else e:for(f=a;Un!==null;){g=Un;var b=g.sibling,v=g.return;if(Cv(g),g===f){Un=null;break e}if(b!==null){b.return=v,Un=b;break e}Un=v}}}var _B={getCacheForType:function(a){var o=Yn(Sn),f=o.data.get(a);return f===void 0&&(f=a(),o.data.set(a,f)),f},cacheSignal:function(){return Yn(Sn).controller.signal}},vB=typeof WeakMap=="function"?WeakMap:Map,Ot=0,Vt=null,dt=null,xt=0,zt=0,Ji=null,al=!1,Qs=!1,km=!1,Ea=0,pn=0,ll=0,Ql=0,Em=0,er=0,Js=0,Fc=null,Ii=null,Tm=!1,uf=0,Bv=0,hf=1/0,ff=null,sl=null,Bn=0,ol=null,eo=null,Ta=0,Am=0,Mm=null,Iv=null,zc=0,Nm=null;function tr(){return(Ot&2)!==0&&xt!==0?xt&-xt:L.T!==null?Im():ca()}function $v(){if(er===0)if((xt&536870912)===0||St){var a=Er;Er<<=1,(Er&3932160)===0&&(Er=262144),er=a}else er=536870912;return a=Zi.current,a!==null&&(a.flags|=32),er}function $i(a,o,f){(a===Vt&&(zt===2||zt===9)||a.cancelPendingCommit!==null)&&(to(a,0),cl(a,xt,er,!1)),Bt(a,f),((Ot&2)===0||a!==Vt)&&(a===Vt&&((Ot&2)===0&&(Ql|=f),pn===4&&cl(a,xt,er,!1)),Gr(a))}function Fv(a,o,f){if((Ot&6)!==0)throw Error(i(327));var g=!f&&(o&127)===0&&(o&a.expiredLanes)===0||oe(a,o),b=g?CB(a,o):Lm(a,o,!0),v=g;do{if(b===0){Qs&&!g&&cl(a,o,0,!1);break}else{if(f=a.current.alternate,v&&!wB(f)){b=Lm(a,o,!1),v=!1;continue}if(b===2){if(v=o,a.errorRecoveryDisabledLanes&v)var T=0;else T=a.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){o=T;e:{var R=a;b=Fc;var W=R.current.memoizedState.isDehydrated;if(W&&(to(R,T).flags|=256),T=Lm(R,T,!1),T!==2){if(km&&!W){R.errorRecoveryDisabledLanes|=v,Ql|=v,b=4;break e}v=Ii,Ii=b,v!==null&&(Ii===null?Ii=v:Ii.push.apply(Ii,v))}b=T}if(v=!1,b!==2)continue}}if(b===1){to(a,0),cl(a,o,0,!0);break}e:{switch(g=a,v=b,v){case 0:case 1:throw Error(i(345));case 4:if((o&4194048)!==o)break;case 6:cl(g,o,er,!al);break e;case 2:Ii=null;break;case 3:case 5:break;default:throw Error(i(329))}if((o&62914560)===o&&(b=uf+300-Gt(),10<b)){if(cl(g,o,er,!al),Y(g,0,!0)!==0)break e;Ta=o,g.timeoutHandle=gw(zv.bind(null,g,f,Ii,ff,Tm,o,er,Ql,Js,al,v,"Throttled",-0,0),b);break e}zv(g,f,Ii,ff,Tm,o,er,Ql,Js,al,v,null,-0,0)}}break}while(!0);Gr(a)}function zv(a,o,f,g,b,v,T,R,W,ne,se,ue,ie,re){if(a.timeoutHandle=-1,ue=o.subtreeFlags,ue&8192||(ue&16785408)===16785408){ue={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ve},Ov(o,v,ue);var Me=(v&62914560)===v?uf-Gt():(v&4194048)===v?Bv-Gt():0;if(Me=l3(ue,Me),Me!==null){Ta=v,a.cancelPendingCommit=Me(Yv.bind(null,a,o,v,f,g,b,T,R,W,se,ue,null,ie,re)),cl(a,v,T,!ne);return}}Yv(a,o,v,f,g,b,T,R,W)}function wB(a){for(var o=a;;){var f=o.tag;if((f===0||f===11||f===15)&&o.flags&16384&&(f=o.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var g=0;g<f.length;g++){var b=f[g],v=b.getSnapshot;b=b.value;try{if(!Xi(v(),b))return!1}catch{return!1}}if(f=o.child,o.subtreeFlags&16384&&f!==null)f.return=o,o=f;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function cl(a,o,f,g){o&=~Em,o&=~Ql,a.suspendedLanes|=o,a.pingedLanes&=~o,g&&(a.warmLanes|=o),g=a.expirationTimes;for(var b=o;0<b;){var v=31-yt(b),T=1<<v;g[v]=-1,b&=~T}f!==0&&ke(a,f,o)}function df(){return(Ot&6)===0?(Pc(0),!1):!0}function Om(){if(dt!==null){if(zt===0)var a=dt.return;else a=dt,ma=ql=null,Yg(a),Gs=null,wc=0,a=dt;for(;a!==null;)mv(a.alternate,a),a=a.return;dt=null}}function to(a,o){var f=a.timeoutHandle;f!==-1&&(a.timeoutHandle=-1,UB(f)),f=a.cancelPendingCommit,f!==null&&(a.cancelPendingCommit=null,f()),Ta=0,Om(),Vt=a,dt=f=pa(a.current,null),xt=o,zt=0,Ji=null,al=!1,Qs=oe(a,o),km=!1,Js=er=Em=Ql=ll=pn=0,Ii=Fc=null,Tm=!1,(o&8)!==0&&(o|=o&32);var g=a.entangledLanes;if(g!==0)for(a=a.entanglements,g&=o;0<g;){var b=31-yt(g),v=1<<b;o|=a[b],g&=~v}return Ea=o,Rh(),f}function Pv(a,o){lt=null,L.H=Nc,o===js||o===Hh?(o=n_(),zt=3):o===Bg?(o=n_(),zt=4):zt=o===cm?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Ji=o,dt===null&&(pn=1,tf(a,dr(o,a.current)))}function Hv(){var a=Zi.current;return a===null?!0:(xt&4194048)===xt?yr===null:(xt&62914560)===xt||(xt&536870912)!==0?a===yr:!1}function Uv(){var a=L.H;return L.H=Nc,a===null?Nc:a}function qv(){var a=L.A;return L.A=_B,a}function pf(){pn=4,al||(xt&4194048)!==xt&&Zi.current!==null||(Qs=!0),(ll&134217727)===0&&(Ql&134217727)===0||Vt===null||cl(Vt,xt,er,!1)}function Lm(a,o,f){var g=Ot;Ot|=2;var b=Uv(),v=qv();(Vt!==a||xt!==o)&&(ff=null,to(a,o)),o=!1;var T=pn;e:do try{if(zt!==0&&dt!==null){var R=dt,W=Ji;switch(zt){case 8:Om(),T=6;break e;case 3:case 2:case 9:case 6:Zi.current===null&&(o=!0);var ne=zt;if(zt=0,Ji=null,no(a,R,W,ne),f&&Qs){T=0;break e}break;default:ne=zt,zt=0,Ji=null,no(a,R,W,ne)}}SB(),T=pn;break}catch(se){Pv(a,se)}while(!0);return o&&a.shellSuspendCounter++,ma=ql=null,Ot=g,L.H=b,L.A=v,dt===null&&(Vt=null,xt=0,Rh()),T}function SB(){for(;dt!==null;)jv(dt)}function CB(a,o){var f=Ot;Ot|=2;var g=Uv(),b=qv();Vt!==a||xt!==o?(ff=null,hf=Gt()+500,to(a,o)):Qs=oe(a,o);e:do try{if(zt!==0&&dt!==null){o=dt;var v=Ji;t:switch(zt){case 1:zt=0,Ji=null,no(a,o,v,1);break;case 2:case 9:if(e_(v)){zt=0,Ji=null,Gv(o);break}o=function(){zt!==2&&zt!==9||Vt!==a||(zt=7),Gr(a)},v.then(o,o);break e;case 3:zt=7;break e;case 4:zt=5;break e;case 7:e_(v)?(zt=0,Ji=null,Gv(o)):(zt=0,Ji=null,no(a,o,v,7));break;case 5:var T=null;switch(dt.tag){case 26:T=dt.memoizedState;case 5:case 27:var R=dt;if(T?Nw(T):R.stateNode.complete){zt=0,Ji=null;var W=R.sibling;if(W!==null)dt=W;else{var ne=R.return;ne!==null?(dt=ne,gf(ne)):dt=null}break t}}zt=0,Ji=null,no(a,o,v,5);break;case 6:zt=0,Ji=null,no(a,o,v,6);break;case 8:Om(),pn=6;break e;default:throw Error(i(462))}}kB();break}catch(se){Pv(a,se)}while(!0);return ma=ql=null,L.H=g,L.A=b,Ot=f,dt!==null?0:(Vt=null,xt=0,Rh(),pn)}function kB(){for(;dt!==null&&!qa();)jv(dt)}function jv(a){var o=pv(a.alternate,a,Ea);a.memoizedProps=a.pendingProps,o===null?gf(a):dt=o}function Gv(a){var o=a,f=o.alternate;switch(o.tag){case 15:case 0:o=ov(f,o,o.pendingProps,o.type,void 0,xt);break;case 11:o=ov(f,o,o.pendingProps,o.type.render,o.ref,xt);break;case 5:Yg(o);default:mv(f,o),o=dt=q1(o,Ea),o=pv(f,o,Ea)}a.memoizedProps=a.pendingProps,o===null?gf(a):dt=o}function no(a,o,f,g){ma=ql=null,Yg(o),Gs=null,wc=0;var b=o.return;try{if(dB(a,b,o,f,xt)){pn=1,tf(a,dr(f,a.current)),dt=null;return}}catch(v){if(b!==null)throw dt=b,v;pn=1,tf(a,dr(f,a.current)),dt=null;return}o.flags&32768?(St||g===1?a=!0:Qs||(xt&536870912)!==0?a=!1:(al=a=!0,(g===2||g===9||g===3||g===6)&&(g=Zi.current,g!==null&&g.tag===13&&(g.flags|=16384))),Wv(o,a)):gf(o)}function gf(a){var o=a;do{if((o.flags&32768)!==0){Wv(o,al);return}a=o.return;var f=mB(o.alternate,o,Ea);if(f!==null){dt=f;return}if(o=o.sibling,o!==null){dt=o;return}dt=o=a}while(o!==null);pn===0&&(pn=5)}function Wv(a,o){do{var f=yB(a.alternate,a);if(f!==null){f.flags&=32767,dt=f;return}if(f=a.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!o&&(a=a.sibling,a!==null)){dt=a;return}dt=a=f}while(a!==null);pn=6,dt=null}function Yv(a,o,f,g,b,v,T,R,W){a.cancelPendingCommit=null;do mf();while(Bn!==0);if((Ot&6)!==0)throw Error(i(327));if(o!==null){if(o===a.current)throw Error(i(177));if(v=o.lanes|o.childLanes,v|=_g,Ae(a,f,v,T,R,W),a===Vt&&(dt=Vt=null,xt=0),eo=o,ol=a,Ta=f,Am=v,Mm=b,Iv=g,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,MB(qe,function(){return Qv(),null})):(a.callbackNode=null,a.callbackPriority=0),g=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||g){g=L.T,L.T=null,b=U.p,U.p=2,T=Ot,Ot|=4;try{bB(a,o,f)}finally{Ot=T,U.p=b,L.T=g}}Bn=1,Vv(),Xv(),Kv()}}function Vv(){if(Bn===1){Bn=0;var a=ol,o=eo,f=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||f){f=L.T,L.T=null;var g=U.p;U.p=2;var b=Ot;Ot|=4;try{Av(o,a);var v=jm,T=D1(a.containerInfo),R=v.focusedElem,W=v.selectionRange;if(T!==R&&R&&R.ownerDocument&&R1(R.ownerDocument.documentElement,R)){if(W!==null&&gg(R)){var ne=W.start,se=W.end;if(se===void 0&&(se=ne),"selectionStart"in R)R.selectionStart=ne,R.selectionEnd=Math.min(se,R.value.length);else{var ue=R.ownerDocument||document,ie=ue&&ue.defaultView||window;if(ie.getSelection){var re=ie.getSelection(),Me=R.textContent.length,Ke=Math.min(W.start,Me),qt=W.end===void 0?Ke:Math.min(W.end,Me);!re.extend&&Ke>qt&&(T=qt,qt=Ke,Ke=T);var J=L1(R,Ke),K=L1(R,qt);if(J&&K&&(re.rangeCount!==1||re.anchorNode!==J.node||re.anchorOffset!==J.offset||re.focusNode!==K.node||re.focusOffset!==K.offset)){var te=ue.createRange();te.setStart(J.node,J.offset),re.removeAllRanges(),Ke>qt?(re.addRange(te),re.extend(K.node,K.offset)):(te.setEnd(K.node,K.offset),re.addRange(te))}}}}for(ue=[],re=R;re=re.parentNode;)re.nodeType===1&&ue.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof R.focus=="function"&&R.focus(),R=0;R<ue.length;R++){var ce=ue[R];ce.element.scrollLeft=ce.left,ce.element.scrollTop=ce.top}}Af=!!qm,jm=qm=null}finally{Ot=b,U.p=g,L.T=f}}a.current=o,Bn=2}}function Xv(){if(Bn===2){Bn=0;var a=ol,o=eo,f=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||f){f=L.T,L.T=null;var g=U.p;U.p=2;var b=Ot;Ot|=4;try{Sv(a,o.alternate,o)}finally{Ot=b,U.p=g,L.T=f}}Bn=3}}function Kv(){if(Bn===4||Bn===3){Bn=0,ja();var a=ol,o=eo,f=Ta,g=Iv;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?Bn=5:(Bn=0,eo=ol=null,Zv(a,a.pendingLanes));var b=a.pendingLanes;if(b===0&&(sl=null),qn(f),o=o.stateNode,Wt&&typeof Wt.onCommitFiberRoot=="function")try{Wt.onCommitFiberRoot(fn,o,void 0,(o.current.flags&128)===128)}catch{}if(g!==null){o=L.T,b=U.p,U.p=2,L.T=null;try{for(var v=a.onRecoverableError,T=0;T<g.length;T++){var R=g[T];v(R.value,{componentStack:R.stack})}}finally{L.T=o,U.p=b}}(Ta&3)!==0&&mf(),Gr(a),b=a.pendingLanes,(f&261930)!==0&&(b&42)!==0?a===Nm?zc++:(zc=0,Nm=a):zc=0,Pc(0)}}function Zv(a,o){(a.pooledCacheLanes&=o)===0&&(o=a.pooledCache,o!=null&&(a.pooledCache=null,_c(o)))}function mf(){return Vv(),Xv(),Kv(),Qv()}function Qv(){if(Bn!==5)return!1;var a=ol,o=Am;Am=0;var f=qn(Ta),g=L.T,b=U.p;try{U.p=32>f?32:f,L.T=null,f=Mm,Mm=null;var v=ol,T=Ta;if(Bn=0,eo=ol=null,Ta=0,(Ot&6)!==0)throw Error(i(331));var R=Ot;if(Ot|=4,Rv(v.current),Nv(v,v.current,T,f),Ot=R,Pc(0,!1),Wt&&typeof Wt.onPostCommitFiberRoot=="function")try{Wt.onPostCommitFiberRoot(fn,v)}catch{}return!0}finally{U.p=b,L.T=g,Zv(a,o)}}function Jv(a,o,f){o=dr(f,o),o=om(a.stateNode,o,2),a=tl(a,o,2),a!==null&&(Bt(a,2),Gr(a))}function Pt(a,o,f){if(a.tag===3)Jv(a,a,f);else for(;o!==null;){if(o.tag===3){Jv(o,a,f);break}else if(o.tag===1){var g=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(sl===null||!sl.has(g))){a=dr(f,a),f=ev(2),g=tl(o,f,2),g!==null&&(tv(f,g,o,a),Bt(g,2),Gr(g));break}}o=o.return}}function Rm(a,o,f){var g=a.pingCache;if(g===null){g=a.pingCache=new vB;var b=new Set;g.set(o,b)}else b=g.get(o),b===void 0&&(b=new Set,g.set(o,b));b.has(f)||(km=!0,b.add(f),a=EB.bind(null,a,o,f),o.then(a,a))}function EB(a,o,f){var g=a.pingCache;g!==null&&g.delete(o),a.pingedLanes|=a.suspendedLanes&f,a.warmLanes&=~f,Vt===a&&(xt&f)===f&&(pn===4||pn===3&&(xt&62914560)===xt&&300>Gt()-uf?(Ot&2)===0&&to(a,0):Em|=f,Js===xt&&(Js=0)),Gr(a)}function ew(a,o){o===0&&(o=We()),a=Pl(a,o),a!==null&&(Bt(a,o),Gr(a))}function TB(a){var o=a.memoizedState,f=0;o!==null&&(f=o.retryLane),ew(a,f)}function AB(a,o){var f=0;switch(a.tag){case 31:case 13:var g=a.stateNode,b=a.memoizedState;b!==null&&(f=b.retryLane);break;case 19:g=a.stateNode;break;case 22:g=a.stateNode._retryCache;break;default:throw Error(i(314))}g!==null&&g.delete(o),ew(a,f)}function MB(a,o){return Ei(a,o)}var yf=null,io=null,Dm=!1,bf=!1,Bm=!1,ul=0;function Gr(a){a!==io&&a.next===null&&(io===null?yf=io=a:io=io.next=a),bf=!0,Dm||(Dm=!0,OB())}function Pc(a,o){if(!Bm&&bf){Bm=!0;do for(var f=!1,g=yf;g!==null;){if(a!==0){var b=g.pendingLanes;if(b===0)var v=0;else{var T=g.suspendedLanes,R=g.pingedLanes;v=(1<<31-yt(42|a)+1)-1,v&=b&~(T&~R),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(f=!0,rw(g,v))}else v=xt,v=Y(g,g===Vt?v:0,g.cancelPendingCommit!==null||g.timeoutHandle!==-1),(v&3)===0||oe(g,v)||(f=!0,rw(g,v));g=g.next}while(f);Bm=!1}}function NB(){tw()}function tw(){bf=Dm=!1;var a=0;ul!==0&&HB()&&(a=ul);for(var o=Gt(),f=null,g=yf;g!==null;){var b=g.next,v=nw(g,o);v===0?(g.next=null,f===null?yf=b:f.next=b,b===null&&(io=f)):(f=g,(a!==0||(v&3)!==0)&&(bf=!0)),g=b}Bn!==0&&Bn!==5||Pc(a),ul!==0&&(ul=0)}function nw(a,o){for(var f=a.suspendedLanes,g=a.pingedLanes,b=a.expirationTimes,v=a.pendingLanes&-62914561;0<v;){var T=31-yt(v),R=1<<T,W=b[T];W===-1?((R&f)===0||(R&g)!==0)&&(b[T]=ye(R,o)):W<=o&&(a.expiredLanes|=R),v&=~R}if(o=Vt,f=xt,f=Y(a,a===o?f:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),g=a.callbackNode,f===0||a===o&&(zt===2||zt===9)||a.cancelPendingCommit!==null)return g!==null&&g!==null&&Hr(g),a.callbackNode=null,a.callbackPriority=0;if((f&3)===0||oe(a,f)){if(o=f&-f,o===a.callbackPriority)return o;switch(g!==null&&Hr(g),qn(f)){case 2:case 8:f=me;break;case 32:f=qe;break;case 268435456:f=vt;break;default:f=qe}return g=iw.bind(null,a),f=Ei(f,g),a.callbackPriority=o,a.callbackNode=f,o}return g!==null&&g!==null&&Hr(g),a.callbackPriority=2,a.callbackNode=null,2}function iw(a,o){if(Bn!==0&&Bn!==5)return a.callbackNode=null,a.callbackPriority=0,null;var f=a.callbackNode;if(mf()&&a.callbackNode!==f)return null;var g=xt;return g=Y(a,a===Vt?g:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),g===0?null:(Fv(a,g,o),nw(a,Gt()),a.callbackNode!=null&&a.callbackNode===f?iw.bind(null,a):null)}function rw(a,o){if(mf())return null;Fv(a,o,!0)}function OB(){qB(function(){(Ot&6)!==0?Ei(ae,NB):tw()})}function Im(){if(ul===0){var a=Us;a===0&&(a=ur,ur<<=1,(ur&261888)===0&&(ur=256)),ul=a}return ul}function aw(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Ya(""+a)}function lw(a,o){var f=o.ownerDocument.createElement("input");return f.name=o.name,f.value=o.value,a.id&&f.setAttribute("form",a.id),o.parentNode.insertBefore(f,o),a=new FormData(a),f.parentNode.removeChild(f),a}function LB(a,o,f,g,b){if(o==="submit"&&f&&f.stateNode===b){var v=aw((b[Qt]||null).action),T=g.submitter;T&&(o=(o=T[Qt]||null)?aw(o.formAction):T.getAttribute("formAction"),o!==null&&(v=o,T=null));var R=new Mh("action","action",null,g,b);a.push({event:R,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(ul!==0){var W=T?lw(b,T):new FormData(b);nm(f,{pending:!0,data:W,method:b.method,action:v},null,W)}}else typeof v=="function"&&(R.preventDefault(),W=T?lw(b,T):new FormData(b),nm(f,{pending:!0,data:W,method:b.method,action:v},v,W))},currentTarget:b}]})}}for(var $m=0;$m<xg.length;$m++){var Fm=xg[$m],RB=Fm.toLowerCase(),DB=Fm[0].toUpperCase()+Fm.slice(1);Ar(RB,"on"+DB)}Ar($1,"onAnimationEnd"),Ar(F1,"onAnimationIteration"),Ar(z1,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(KD,"onTransitionRun"),Ar(ZD,"onTransitionStart"),Ar(QD,"onTransitionCancel"),Ar(P1,"onTransitionEnd"),be("onMouseEnter",["mouseout","mouseover"]),be("onMouseLeave",["mouseout","mouseover"]),be("onPointerEnter",["pointerout","pointerover"]),be("onPointerLeave",["pointerout","pointerover"]),ei("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ei("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ei("onBeforeInput",["compositionend","keypress","textInput","paste"]),ei("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ei("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ei("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hc="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(" "),BB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hc));function sw(a,o){o=(o&4)!==0;for(var f=0;f<a.length;f++){var g=a[f],b=g.event;g=g.listeners;e:{var v=void 0;if(o)for(var T=g.length-1;0<=T;T--){var R=g[T],W=R.instance,ne=R.currentTarget;if(R=R.listener,W!==v&&b.isPropagationStopped())break e;v=R,b.currentTarget=ne;try{v(b)}catch(se){Lh(se)}b.currentTarget=null,v=W}else for(T=0;T<g.length;T++){if(R=g[T],W=R.instance,ne=R.currentTarget,R=R.listener,W!==v&&b.isPropagationStopped())break e;v=R,b.currentTarget=ne;try{v(b)}catch(se){Lh(se)}b.currentTarget=null,v=W}}}}function pt(a,o){var f=o[Ga];f===void 0&&(f=o[Ga]=new Set);var g=a+"__bubble";f.has(g)||(ow(o,a,2,!1),f.add(g))}function zm(a,o,f){var g=0;o&&(g|=4),ow(f,a,g,o)}var xf="_reactListening"+Math.random().toString(36).slice(2);function Pm(a){if(!a[xf]){a[xf]=!0,Dn.forEach(function(f){f!=="selectionchange"&&(BB.has(f)||zm(f,!1,a),zm(f,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[xf]||(o[xf]=!0,zm("selectionchange",!1,o))}}function ow(a,o,f,g){switch($w(o)){case 2:var b=c3;break;case 8:b=u3;break;default:b=t0}f=b.bind(null,o,f,a),b=void 0,!lg||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(b=!0),g?b!==void 0?a.addEventListener(o,f,{capture:!0,passive:b}):a.addEventListener(o,f,!0):b!==void 0?a.addEventListener(o,f,{passive:b}):a.addEventListener(o,f,!1)}function Hm(a,o,f,g,b){var v=g;if((o&1)===0&&(o&2)===0&&g!==null)e:for(;;){if(g===null)return;var T=g.tag;if(T===3||T===4){var R=g.stateNode.containerInfo;if(R===b)break;if(T===4)for(T=g.return;T!==null;){var W=T.tag;if((W===3||W===4)&&T.stateNode.containerInfo===b)return;T=T.return}for(;R!==null;){if(T=pe(R),T===null)return;if(W=T.tag,W===5||W===6||W===26||W===27){g=v=T;continue e}R=R.parentNode}}g=g.return}kh(function(){var ne=v,se=rt(f),ue=[];e:{var ie=H1.get(a);if(ie!==void 0){var re=Mh,Me=a;switch(a){case"keypress":if(Th(f)===0)break e;case"keydown":case"keyup":re=AD;break;case"focusin":Me="focus",re=ug;break;case"focusout":Me="blur",re=ug;break;case"beforeblur":case"afterblur":re=ug;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":re=m1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=mD;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=OD;break;case $1:case F1:case z1:re=xD;break;case P1:re=RD;break;case"scroll":case"scrollend":re=pD;break;case"wheel":re=BD;break;case"copy":case"cut":case"paste":re=vD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=b1;break;case"toggle":case"beforetoggle":re=$D}var Ke=(o&4)!==0,qt=!Ke&&(a==="scroll"||a==="scrollend"),J=Ke?ie!==null?ie+"Capture":null:ie;Ke=[];for(var K=ne,te;K!==null;){var ce=K;if(te=ce.stateNode,ce=ce.tag,ce!==5&&ce!==26&&ce!==27||te===null||J===null||(ce=cc(K,J),ce!=null&&Ke.push(Uc(K,ce,te))),qt)break;K=K.return}0<Ke.length&&(ie=new re(ie,Me,null,f,se),ue.push({event:ie,listeners:Ke}))}}if((o&7)===0){e:{if(ie=a==="mouseover"||a==="pointerover",re=a==="mouseout"||a==="pointerout",ie&&f!==$e&&(Me=f.relatedTarget||f.fromElement)&&(pe(Me)||Me[Tr]))break e;if((re||ie)&&(ie=se.window===se?se:(ie=se.ownerDocument)?ie.defaultView||ie.parentWindow:window,re?(Me=f.relatedTarget||f.toElement,re=ne,Me=Me?pe(Me):null,Me!==null&&(qt=l(Me),Ke=Me.tag,Me!==qt||Ke!==5&&Ke!==27&&Ke!==6)&&(Me=null)):(re=null,Me=ne),re!==Me)){if(Ke=m1,ce="onMouseLeave",J="onMouseEnter",K="mouse",(a==="pointerout"||a==="pointerover")&&(Ke=b1,ce="onPointerLeave",J="onPointerEnter",K="pointer"),qt=re==null?ie:Et(re),te=Me==null?ie:Et(Me),ie=new Ke(ce,K+"leave",re,f,se),ie.target=qt,ie.relatedTarget=te,ce=null,pe(se)===ne&&(Ke=new Ke(J,K+"enter",Me,f,se),Ke.target=te,Ke.relatedTarget=qt,ce=Ke),qt=ce,re&&Me)t:{for(Ke=IB,J=re,K=Me,te=0,ce=J;ce;ce=Ke(ce))te++;ce=0;for(var je=K;je;je=Ke(je))ce++;for(;0<te-ce;)J=Ke(J),te--;for(;0<ce-te;)K=Ke(K),ce--;for(;te--;){if(J===K||K!==null&&J===K.alternate){Ke=J;break t}J=Ke(J),K=Ke(K)}Ke=null}else Ke=null;re!==null&&cw(ue,ie,re,Ke,!1),Me!==null&&qt!==null&&cw(ue,qt,Me,Ke,!0)}}e:{if(ie=ne?Et(ne):window,re=ie.nodeName&&ie.nodeName.toLowerCase(),re==="select"||re==="input"&&ie.type==="file")var At=E1;else if(C1(ie))if(T1)At=YD;else{At=GD;var Fe=jD}else re=ie.nodeName,!re||re.toLowerCase()!=="input"||ie.type!=="checkbox"&&ie.type!=="radio"?ne&&Wa(ne.elementType)&&(At=E1):At=WD;if(At&&(At=At(a,ne))){k1(ue,At,f,se);break e}Fe&&Fe(a,ie,ne),a==="focusout"&&ne&&ie.type==="number"&&ne.memoizedProps.value!=null&&Os(ie,"number",ie.value)}switch(Fe=ne?Et(ne):window,a){case"focusin":(C1(Fe)||Fe.contentEditable==="true")&&(Ds=Fe,mg=ne,yc=null);break;case"focusout":yc=mg=Ds=null;break;case"mousedown":yg=!0;break;case"contextmenu":case"mouseup":case"dragend":yg=!1,B1(ue,f,se);break;case"selectionchange":if(XD)break;case"keydown":case"keyup":B1(ue,f,se)}var ct;if(fg)e:{switch(a){case"compositionstart":var _t="onCompositionStart";break e;case"compositionend":_t="onCompositionEnd";break e;case"compositionupdate":_t="onCompositionUpdate";break e}_t=void 0}else Rs?w1(a,f)&&(_t="onCompositionEnd"):a==="keydown"&&f.keyCode===229&&(_t="onCompositionStart");_t&&(x1&&f.locale!=="ko"&&(Rs||_t!=="onCompositionStart"?_t==="onCompositionEnd"&&Rs&&(ct=p1()):(Va=se,sg="value"in Va?Va.value:Va.textContent,Rs=!0)),Fe=_f(ne,_t),0<Fe.length&&(_t=new y1(_t,a,null,f,se),ue.push({event:_t,listeners:Fe}),ct?_t.data=ct:(ct=S1(f),ct!==null&&(_t.data=ct)))),(ct=zD?PD(a,f):HD(a,f))&&(_t=_f(ne,"onBeforeInput"),0<_t.length&&(Fe=new y1("onBeforeInput","beforeinput",null,f,se),ue.push({event:Fe,listeners:_t}),Fe.data=ct)),LB(ue,a,ne,f,se)}sw(ue,o)})}function Uc(a,o,f){return{instance:a,listener:o,currentTarget:f}}function _f(a,o){for(var f=o+"Capture",g=[];a!==null;){var b=a,v=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||v===null||(b=cc(a,f),b!=null&&g.unshift(Uc(a,b,v)),b=cc(a,o),b!=null&&g.push(Uc(a,b,v))),a.tag===3)return g;a=a.return}return[]}function IB(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function cw(a,o,f,g,b){for(var v=o._reactName,T=[];f!==null&&f!==g;){var R=f,W=R.alternate,ne=R.stateNode;if(R=R.tag,W!==null&&W===g)break;R!==5&&R!==26&&R!==27||ne===null||(W=ne,b?(ne=cc(f,v),ne!=null&&T.unshift(Uc(f,ne,W))):b||(ne=cc(f,v),ne!=null&&T.push(Uc(f,ne,W)))),f=f.return}T.length!==0&&a.push({event:o,listeners:T})}var $B=/\r\n?/g,FB=/\u0000|\uFFFD/g;function uw(a){return(typeof a=="string"?a:""+a).replace($B,`
|
|
50
|
+
`).replace(FB,"")}function hw(a,o){return o=uw(o),uw(a)===o}function Ut(a,o,f,g,b,v){switch(f){case"children":typeof g=="string"?o==="body"||o==="textarea"&&g===""||Je(a,g):(typeof g=="number"||typeof g=="bigint")&&o!=="body"&&Je(a,""+g);break;case"className":Yi(a,"class",g);break;case"tabIndex":Yi(a,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":Yi(a,f,g);break;case"style":Ft(a,g,v);break;case"data":if(o!=="object"){Yi(a,"data",g);break}case"src":case"href":if(g===""&&(o!=="a"||f!=="href")){a.removeAttribute(f);break}if(g==null||typeof g=="function"||typeof g=="symbol"||typeof g=="boolean"){a.removeAttribute(f);break}g=Ya(""+g),a.setAttribute(f,g);break;case"action":case"formAction":if(typeof g=="function"){a.setAttribute(f,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(f==="formAction"?(o!=="input"&&Ut(a,o,"name",b.name,b,null),Ut(a,o,"formEncType",b.formEncType,b,null),Ut(a,o,"formMethod",b.formMethod,b,null),Ut(a,o,"formTarget",b.formTarget,b,null)):(Ut(a,o,"encType",b.encType,b,null),Ut(a,o,"method",b.method,b,null),Ut(a,o,"target",b.target,b,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){a.removeAttribute(f);break}g=Ya(""+g),a.setAttribute(f,g);break;case"onClick":g!=null&&(a.onclick=ve);break;case"onScroll":g!=null&&pt("scroll",a);break;case"onScrollEnd":g!=null&&pt("scrollend",a);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(i(61));if(f=g.__html,f!=null){if(b.children!=null)throw Error(i(60));a.innerHTML=f}}break;case"multiple":a.multiple=g&&typeof g!="function"&&typeof g!="symbol";break;case"muted":a.muted=g&&typeof g!="function"&&typeof g!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(g==null||typeof g=="function"||typeof g=="boolean"||typeof g=="symbol"){a.removeAttribute("xlink:href");break}f=Ya(""+g),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":g!=null&&typeof g!="function"&&typeof g!="symbol"?a.setAttribute(f,""+g):a.removeAttribute(f);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":g&&typeof g!="function"&&typeof g!="symbol"?a.setAttribute(f,""):a.removeAttribute(f);break;case"capture":case"download":g===!0?a.setAttribute(f,""):g!==!1&&g!=null&&typeof g!="function"&&typeof g!="symbol"?a.setAttribute(f,g):a.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":g!=null&&typeof g!="function"&&typeof g!="symbol"&&!isNaN(g)&&1<=g?a.setAttribute(f,g):a.removeAttribute(f);break;case"rowSpan":case"start":g==null||typeof g=="function"||typeof g=="symbol"||isNaN(g)?a.removeAttribute(f):a.setAttribute(f,g);break;case"popover":pt("beforetoggle",a),pt("toggle",a),ti(a,"popover",g);break;case"xlinkActuate":Ni(a,"http://www.w3.org/1999/xlink","xlink:actuate",g);break;case"xlinkArcrole":Ni(a,"http://www.w3.org/1999/xlink","xlink:arcrole",g);break;case"xlinkRole":Ni(a,"http://www.w3.org/1999/xlink","xlink:role",g);break;case"xlinkShow":Ni(a,"http://www.w3.org/1999/xlink","xlink:show",g);break;case"xlinkTitle":Ni(a,"http://www.w3.org/1999/xlink","xlink:title",g);break;case"xlinkType":Ni(a,"http://www.w3.org/1999/xlink","xlink:type",g);break;case"xmlBase":Ni(a,"http://www.w3.org/XML/1998/namespace","xml:base",g);break;case"xmlLang":Ni(a,"http://www.w3.org/XML/1998/namespace","xml:lang",g);break;case"xmlSpace":Ni(a,"http://www.w3.org/XML/1998/namespace","xml:space",g);break;case"is":ti(a,"is",g);break;case"innerText":case"textContent":break;default:(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=fa.get(f)||f,ti(a,f,g))}}function Um(a,o,f,g,b,v){switch(f){case"style":Ft(a,g,v);break;case"dangerouslySetInnerHTML":if(g!=null){if(typeof g!="object"||!("__html"in g))throw Error(i(61));if(f=g.__html,f!=null){if(b.children!=null)throw Error(i(60));a.innerHTML=f}}break;case"children":typeof g=="string"?Je(a,g):(typeof g=="number"||typeof g=="bigint")&&Je(a,""+g);break;case"onScroll":g!=null&&pt("scroll",a);break;case"onScrollEnd":g!=null&&pt("scrollend",a);break;case"onClick":g!=null&&(a.onclick=ve);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!jn.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(b=f.endsWith("Capture"),o=f.slice(2,b?f.length-7:void 0),v=a[Qt]||null,v=v!=null?v[f]:null,typeof v=="function"&&a.removeEventListener(o,v,b),typeof g=="function")){typeof v!="function"&&v!==null&&(f in a?a[f]=null:a.hasAttribute(f)&&a.removeAttribute(f)),a.addEventListener(o,g,b);break e}f in a?a[f]=g:g===!0?a.setAttribute(f,""):ti(a,f,g)}}}function Xn(a,o,f){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pt("error",a),pt("load",a);var g=!1,b=!1,v;for(v in f)if(f.hasOwnProperty(v)){var T=f[v];if(T!=null)switch(v){case"src":g=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,o));default:Ut(a,o,v,T,f,null)}}b&&Ut(a,o,"srcSet",f.srcSet,f,null),g&&Ut(a,o,"src",f.src,f,null);return;case"input":pt("invalid",a);var R=v=T=b=null,W=null,ne=null;for(g in f)if(f.hasOwnProperty(g)){var se=f[g];if(se!=null)switch(g){case"name":b=se;break;case"type":T=se;break;case"checked":W=se;break;case"defaultChecked":ne=se;break;case"value":v=se;break;case"defaultValue":R=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(i(137,o));break;default:Ut(a,o,g,se,f,null)}}Il(a,v,R,W,ne,T,b,!1);return;case"select":pt("invalid",a),g=T=v=null;for(b in f)if(f.hasOwnProperty(b)&&(R=f[b],R!=null))switch(b){case"value":v=R;break;case"defaultValue":T=R;break;case"multiple":g=R;default:Ut(a,o,b,R,f,null)}o=v,f=T,a.multiple=!!g,o!=null?Gn(a,!!g,o,!1):f!=null&&Gn(a,!!g,f,!0);return;case"textarea":pt("invalid",a),v=b=g=null;for(T in f)if(f.hasOwnProperty(T)&&(R=f[T],R!=null))switch(T){case"value":g=R;break;case"defaultValue":b=R;break;case"children":v=R;break;case"dangerouslySetInnerHTML":if(R!=null)throw Error(i(91));break;default:Ut(a,o,T,R,f,null)}Ls(a,g,b,v);return;case"option":for(W in f)if(f.hasOwnProperty(W)&&(g=f[W],g!=null))switch(W){case"selected":a.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:Ut(a,o,W,g,f,null)}return;case"dialog":pt("beforetoggle",a),pt("toggle",a),pt("cancel",a),pt("close",a);break;case"iframe":case"object":pt("load",a);break;case"video":case"audio":for(g=0;g<Hc.length;g++)pt(Hc[g],a);break;case"image":pt("error",a),pt("load",a);break;case"details":pt("toggle",a);break;case"embed":case"source":case"link":pt("error",a),pt("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ne in f)if(f.hasOwnProperty(ne)&&(g=f[ne],g!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,o));default:Ut(a,o,ne,g,f,null)}return;default:if(Wa(o)){for(se in f)f.hasOwnProperty(se)&&(g=f[se],g!==void 0&&Um(a,o,se,g,f,void 0));return}}for(R in f)f.hasOwnProperty(R)&&(g=f[R],g!=null&&Ut(a,o,R,g,f,null))}function zB(a,o,f,g){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,v=null,T=null,R=null,W=null,ne=null,se=null;for(re in f){var ue=f[re];if(f.hasOwnProperty(re)&&ue!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":W=ue;default:g.hasOwnProperty(re)||Ut(a,o,re,null,g,ue)}}for(var ie in g){var re=g[ie];if(ue=f[ie],g.hasOwnProperty(ie)&&(re!=null||ue!=null))switch(ie){case"type":v=re;break;case"name":b=re;break;case"checked":ne=re;break;case"defaultChecked":se=re;break;case"value":T=re;break;case"defaultValue":R=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,o));break;default:re!==ue&&Ut(a,o,ie,re,g,ue)}}lc(a,T,R,W,ne,se,v,b);return;case"select":re=T=R=ie=null;for(v in f)if(W=f[v],f.hasOwnProperty(v)&&W!=null)switch(v){case"value":break;case"multiple":re=W;default:g.hasOwnProperty(v)||Ut(a,o,v,null,g,W)}for(b in g)if(v=g[b],W=f[b],g.hasOwnProperty(b)&&(v!=null||W!=null))switch(b){case"value":ie=v;break;case"defaultValue":R=v;break;case"multiple":T=v;default:v!==W&&Ut(a,o,b,v,g,W)}o=R,f=T,g=re,ie!=null?Gn(a,!!f,ie,!1):!!g!=!!f&&(o!=null?Gn(a,!!f,o,!0):Gn(a,!!f,f?[]:"",!1));return;case"textarea":re=ie=null;for(R in f)if(b=f[R],f.hasOwnProperty(R)&&b!=null&&!g.hasOwnProperty(R))switch(R){case"value":break;case"children":break;default:Ut(a,o,R,null,g,b)}for(T in g)if(b=g[T],v=f[T],g.hasOwnProperty(T)&&(b!=null||v!=null))switch(T){case"value":ie=b;break;case"defaultValue":re=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(i(91));break;default:b!==v&&Ut(a,o,T,b,g,v)}Sh(a,ie,re);return;case"option":for(var Me in f)if(ie=f[Me],f.hasOwnProperty(Me)&&ie!=null&&!g.hasOwnProperty(Me))switch(Me){case"selected":a.selected=!1;break;default:Ut(a,o,Me,null,g,ie)}for(W in g)if(ie=g[W],re=f[W],g.hasOwnProperty(W)&&ie!==re&&(ie!=null||re!=null))switch(W){case"selected":a.selected=ie&&typeof ie!="function"&&typeof ie!="symbol";break;default:Ut(a,o,W,ie,g,re)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ke in f)ie=f[Ke],f.hasOwnProperty(Ke)&&ie!=null&&!g.hasOwnProperty(Ke)&&Ut(a,o,Ke,null,g,ie);for(ne in g)if(ie=g[ne],re=f[ne],g.hasOwnProperty(ne)&&ie!==re&&(ie!=null||re!=null))switch(ne){case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(i(137,o));break;default:Ut(a,o,ne,ie,g,re)}return;default:if(Wa(o)){for(var qt in f)ie=f[qt],f.hasOwnProperty(qt)&&ie!==void 0&&!g.hasOwnProperty(qt)&&Um(a,o,qt,void 0,g,ie);for(se in g)ie=g[se],re=f[se],!g.hasOwnProperty(se)||ie===re||ie===void 0&&re===void 0||Um(a,o,se,ie,g,re);return}}for(var J in f)ie=f[J],f.hasOwnProperty(J)&&ie!=null&&!g.hasOwnProperty(J)&&Ut(a,o,J,null,g,ie);for(ue in g)ie=g[ue],re=f[ue],!g.hasOwnProperty(ue)||ie===re||ie==null&&re==null||Ut(a,o,ue,ie,g,re)}function fw(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function PB(){if(typeof performance.getEntriesByType=="function"){for(var a=0,o=0,f=performance.getEntriesByType("resource"),g=0;g<f.length;g++){var b=f[g],v=b.transferSize,T=b.initiatorType,R=b.duration;if(v&&R&&fw(T)){for(T=0,R=b.responseEnd,g+=1;g<f.length;g++){var W=f[g],ne=W.startTime;if(ne>R)break;var se=W.transferSize,ue=W.initiatorType;se&&fw(ue)&&(W=W.responseEnd,T+=se*(W<R?1:(R-ne)/(W-ne)))}if(--g,o+=8*(v+T)/(b.duration/1e3),a++,10<a)break}}if(0<a)return o/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var qm=null,jm=null;function vf(a){return a.nodeType===9?a:a.ownerDocument}function dw(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function pw(a,o){if(a===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&o==="foreignObject"?0:a}function Gm(a,o){return a==="textarea"||a==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Wm=null;function HB(){var a=window.event;return a&&a.type==="popstate"?a===Wm?!1:(Wm=a,!0):(Wm=null,!1)}var gw=typeof setTimeout=="function"?setTimeout:void 0,UB=typeof clearTimeout=="function"?clearTimeout:void 0,mw=typeof Promise=="function"?Promise:void 0,qB=typeof queueMicrotask=="function"?queueMicrotask:typeof mw<"u"?function(a){return mw.resolve(null).then(a).catch(jB)}:gw;function jB(a){setTimeout(function(){throw a})}function hl(a){return a==="head"}function yw(a,o){var f=o,g=0;do{var b=f.nextSibling;if(a.removeChild(f),b&&b.nodeType===8)if(f=b.data,f==="/$"||f==="/&"){if(g===0){a.removeChild(b),so(o);return}g--}else if(f==="$"||f==="$?"||f==="$~"||f==="$!"||f==="&")g++;else if(f==="html")qc(a.ownerDocument.documentElement);else if(f==="head"){f=a.ownerDocument.head,qc(f);for(var v=f.firstChild;v;){var T=v.nextSibling,R=v.nodeName;v[Re]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&v.rel.toLowerCase()==="stylesheet"||f.removeChild(v),v=T}}else f==="body"&&qc(a.ownerDocument.body);f=b}while(f);so(o)}function bw(a,o){var f=a;a=0;do{var g=f.nextSibling;if(f.nodeType===1?o?(f._stashedDisplay=f.style.display,f.style.display="none"):(f.style.display=f._stashedDisplay||"",f.getAttribute("style")===""&&f.removeAttribute("style")):f.nodeType===3&&(o?(f._stashedText=f.nodeValue,f.nodeValue=""):f.nodeValue=f._stashedText||""),g&&g.nodeType===8)if(f=g.data,f==="/$"){if(a===0)break;a--}else f!=="$"&&f!=="$?"&&f!=="$~"&&f!=="$!"||a++;f=g}while(f)}function Ym(a){var o=a.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var f=o;switch(o=o.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":Ym(f),X(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}a.removeChild(f)}}function GB(a,o,f,g){for(;a.nodeType===1;){var b=f;if(a.nodeName.toLowerCase()!==o.toLowerCase()){if(!g&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(g){if(!a[Re])switch(o){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(v=a.getAttribute("rel"),v==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(v!==b.rel||a.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||a.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||a.getAttribute("title")!==(b.title==null?null:b.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(v=a.getAttribute("src"),(v!==(b.src==null?null:b.src)||a.getAttribute("type")!==(b.type==null?null:b.type)||a.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&v&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(o==="input"&&a.type==="hidden"){var v=b.name==null?null:""+b.name;if(b.type==="hidden"&&a.getAttribute("name")===v)return a}else return a;if(a=br(a.nextSibling),a===null)break}return null}function WB(a,o,f){if(o==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!f||(a=br(a.nextSibling),a===null))return null;return a}function xw(a,o){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o||(a=br(a.nextSibling),a===null))return null;return a}function Vm(a){return a.data==="$?"||a.data==="$~"}function Xm(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function YB(a,o){var f=a.ownerDocument;if(a.data==="$~")a._reactRetry=o;else if(a.data!=="$?"||f.readyState!=="loading")o();else{var g=function(){o(),f.removeEventListener("DOMContentLoaded",g)};f.addEventListener("DOMContentLoaded",g),a._reactRetry=g}}function br(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return a}var Km=null;function _w(a){a=a.nextSibling;for(var o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="/$"||f==="/&"){if(o===0)return br(a.nextSibling);o--}else f!=="$"&&f!=="$!"&&f!=="$?"&&f!=="$~"&&f!=="&"||o++}a=a.nextSibling}return null}function vw(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var f=a.data;if(f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"){if(o===0)return a;o--}else f!=="/$"&&f!=="/&"||o++}a=a.previousSibling}return null}function ww(a,o,f){switch(o=vf(f),a){case"html":if(a=o.documentElement,!a)throw Error(i(452));return a;case"head":if(a=o.head,!a)throw Error(i(453));return a;case"body":if(a=o.body,!a)throw Error(i(454));return a;default:throw Error(i(451))}}function qc(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);X(a)}var xr=new Map,Sw=new Set;function wf(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Aa=U.d;U.d={f:VB,r:XB,D:KB,C:ZB,L:QB,m:JB,X:t3,S:e3,M:n3};function VB(){var a=Aa.f(),o=df();return a||o}function XB(a){var o=Ee(a);o!==null&&o.tag===5&&o.type==="form"?P_(o):Aa.r(a)}var ro=typeof document>"u"?null:document;function Cw(a,o,f){var g=ro;if(g&&typeof o=="string"&&o){var b=Oi(o);b='link[rel="'+a+'"][href="'+b+'"]',typeof f=="string"&&(b+='[crossorigin="'+f+'"]'),Sw.has(b)||(Sw.add(b),a={rel:a,crossOrigin:f,href:o},g.querySelector(b)===null&&(o=g.createElement("link"),Xn(o,"link",a),st(o),g.head.appendChild(o)))}}function KB(a){Aa.D(a),Cw("dns-prefetch",a,null)}function ZB(a,o){Aa.C(a,o),Cw("preconnect",a,o)}function QB(a,o,f){Aa.L(a,o,f);var g=ro;if(g&&a&&o){var b='link[rel="preload"][as="'+Oi(o)+'"]';o==="image"&&f&&f.imageSrcSet?(b+='[imagesrcset="'+Oi(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(b+='[imagesizes="'+Oi(f.imageSizes)+'"]')):b+='[href="'+Oi(a)+'"]';var v=b;switch(o){case"style":v=ao(a);break;case"script":v=lo(a)}xr.has(v)||(a=p({rel:"preload",href:o==="image"&&f&&f.imageSrcSet?void 0:a,as:o},f),xr.set(v,a),g.querySelector(b)!==null||o==="style"&&g.querySelector(jc(v))||o==="script"&&g.querySelector(Gc(v))||(o=g.createElement("link"),Xn(o,"link",a),st(o),g.head.appendChild(o)))}}function JB(a,o){Aa.m(a,o);var f=ro;if(f&&a){var g=o&&typeof o.as=="string"?o.as:"script",b='link[rel="modulepreload"][as="'+Oi(g)+'"][href="'+Oi(a)+'"]',v=b;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=lo(a)}if(!xr.has(v)&&(a=p({rel:"modulepreload",href:a},o),xr.set(v,a),f.querySelector(b)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(Gc(v)))return}g=f.createElement("link"),Xn(g,"link",a),st(g),f.head.appendChild(g)}}}function e3(a,o,f){Aa.S(a,o,f);var g=ro;if(g&&a){var b=tn(g).hoistableStyles,v=ao(a);o=o||"default";var T=b.get(v);if(!T){var R={loading:0,preload:null};if(T=g.querySelector(jc(v)))R.loading=5;else{a=p({rel:"stylesheet",href:a,"data-precedence":o},f),(f=xr.get(v))&&Zm(a,f);var W=T=g.createElement("link");st(W),Xn(W,"link",a),W._p=new Promise(function(ne,se){W.onload=ne,W.onerror=se}),W.addEventListener("load",function(){R.loading|=1}),W.addEventListener("error",function(){R.loading|=2}),R.loading|=4,Sf(T,o,g)}T={type:"stylesheet",instance:T,count:1,state:R},b.set(v,T)}}}function t3(a,o){Aa.X(a,o);var f=ro;if(f&&a){var g=tn(f).hoistableScripts,b=lo(a),v=g.get(b);v||(v=f.querySelector(Gc(b)),v||(a=p({src:a,async:!0},o),(o=xr.get(b))&&Qm(a,o),v=f.createElement("script"),st(v),Xn(v,"link",a),f.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},g.set(b,v))}}function n3(a,o){Aa.M(a,o);var f=ro;if(f&&a){var g=tn(f).hoistableScripts,b=lo(a),v=g.get(b);v||(v=f.querySelector(Gc(b)),v||(a=p({src:a,async:!0,type:"module"},o),(o=xr.get(b))&&Qm(a,o),v=f.createElement("script"),st(v),Xn(v,"link",a),f.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},g.set(b,v))}}function kw(a,o,f,g){var b=(b=de.current)?wf(b):null;if(!b)throw Error(i(446));switch(a){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(o=ao(f.href),f=tn(b).hoistableStyles,g=f.get(o),g||(g={type:"style",instance:null,count:0,state:null},f.set(o,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){a=ao(f.href);var v=tn(b).hoistableStyles,T=v.get(a);if(T||(b=b.ownerDocument||b,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(a,T),(v=b.querySelector(jc(a)))&&!v._p&&(T.instance=v,T.state.loading=5),xr.has(a)||(f={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},xr.set(a,f),v||i3(b,a,f,T.state))),o&&g===null)throw Error(i(528,""));return T}if(o&&g!==null)throw Error(i(529,""));return null;case"script":return o=f.async,f=f.src,typeof f=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=lo(f),f=tn(b).hoistableScripts,g=f.get(o),g||(g={type:"script",instance:null,count:0,state:null},f.set(o,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,a))}}function ao(a){return'href="'+Oi(a)+'"'}function jc(a){return'link[rel="stylesheet"]['+a+"]"}function Ew(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function i3(a,o,f,g){a.querySelector('link[rel="preload"][as="style"]['+o+"]")?g.loading=1:(o=a.createElement("link"),g.preload=o,o.addEventListener("load",function(){return g.loading|=1}),o.addEventListener("error",function(){return g.loading|=2}),Xn(o,"link",f),st(o),a.head.appendChild(o))}function lo(a){return'[src="'+Oi(a)+'"]'}function Gc(a){return"script[async]"+a}function Tw(a,o,f){if(o.count++,o.instance===null)switch(o.type){case"style":var g=a.querySelector('style[data-href~="'+Oi(f.href)+'"]');if(g)return o.instance=g,st(g),g;var b=p({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return g=(a.ownerDocument||a).createElement("style"),st(g),Xn(g,"style",b),Sf(g,f.precedence,a),o.instance=g;case"stylesheet":b=ao(f.href);var v=a.querySelector(jc(b));if(v)return o.state.loading|=4,o.instance=v,st(v),v;g=Ew(f),(b=xr.get(b))&&Zm(g,b),v=(a.ownerDocument||a).createElement("link"),st(v);var T=v;return T._p=new Promise(function(R,W){T.onload=R,T.onerror=W}),Xn(v,"link",g),o.state.loading|=4,Sf(v,f.precedence,a),o.instance=v;case"script":return v=lo(f.src),(b=a.querySelector(Gc(v)))?(o.instance=b,st(b),b):(g=f,(b=xr.get(v))&&(g=p({},f),Qm(g,b)),a=a.ownerDocument||a,b=a.createElement("script"),st(b),Xn(b,"link",g),a.head.appendChild(b),o.instance=b);case"void":return null;default:throw Error(i(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(g=o.instance,o.state.loading|=4,Sf(g,f.precedence,a));return o.instance}function Sf(a,o,f){for(var g=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=g.length?g[g.length-1]:null,v=b,T=0;T<g.length;T++){var R=g[T];if(R.dataset.precedence===o)v=R;else if(v!==b)break}v?v.parentNode.insertBefore(a,v.nextSibling):(o=f.nodeType===9?f.head:f,o.insertBefore(a,o.firstChild))}function Zm(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function Qm(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}var Cf=null;function Aw(a,o,f){if(Cf===null){var g=new Map,b=Cf=new Map;b.set(f,g)}else b=Cf,g=b.get(f),g||(g=new Map,b.set(f,g));if(g.has(a))return g;for(g.set(a,null),f=f.getElementsByTagName(a),b=0;b<f.length;b++){var v=f[b];if(!(v[Re]||v[ln]||a==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var T=v.getAttribute(o)||"";T=a+T;var R=g.get(T);R?R.push(v):g.set(T,[v])}}return g}function Mw(a,o,f){a=a.ownerDocument||a,a.head.insertBefore(f,o==="title"?a.querySelector("head > title"):null)}function r3(a,o,f){if(f===1||o.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return a=o.disabled,typeof o.precedence=="string"&&a==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function Nw(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function a3(a,o,f,g){if(f.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(f.state.loading&4)===0){if(f.instance===null){var b=ao(g.href),v=o.querySelector(jc(b));if(v){o=v._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(a.count++,a=kf.bind(a),o.then(a,a)),f.state.loading|=4,f.instance=v,st(v);return}v=o.ownerDocument||o,g=Ew(g),(b=xr.get(b))&&Zm(g,b),v=v.createElement("link"),st(v);var T=v;T._p=new Promise(function(R,W){T.onload=R,T.onerror=W}),Xn(v,"link",g),f.instance=v}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(f,o),(o=f.state.preload)&&(f.state.loading&3)===0&&(a.count++,f=kf.bind(a),o.addEventListener("load",f),o.addEventListener("error",f))}}var Jm=0;function l3(a,o){return a.stylesheets&&a.count===0&&Tf(a,a.stylesheets),0<a.count||0<a.imgCount?function(f){var g=setTimeout(function(){if(a.stylesheets&&Tf(a,a.stylesheets),a.unsuspend){var v=a.unsuspend;a.unsuspend=null,v()}},6e4+o);0<a.imgBytes&&Jm===0&&(Jm=62500*PB());var b=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Tf(a,a.stylesheets),a.unsuspend)){var v=a.unsuspend;a.unsuspend=null,v()}},(a.imgBytes>Jm?50:800)+o);return a.unsuspend=f,function(){a.unsuspend=null,clearTimeout(g),clearTimeout(b)}}:null}function kf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Tf(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Ef=null;function Tf(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Ef=new Map,o.forEach(s3,a),Ef=null,kf.call(a))}function s3(a,o){if(!(o.state.loading&4)){var f=Ef.get(a);if(f)var g=f.get(null);else{f=new Map,Ef.set(a,f);for(var b=a.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<b.length;v++){var T=b[v];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(f.set(T.dataset.precedence,T),g=T)}g&&f.set(null,g)}b=o.instance,T=b.getAttribute("data-precedence"),v=f.get(T)||g,v===g&&f.set(null,b),f.set(T,b),this.count++,g=kf.bind(this),b.addEventListener("load",g),b.addEventListener("error",g),v?v.parentNode.insertBefore(b,v.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(b,a.firstChild)),o.state.loading|=4}}var Wc={$$typeof:E,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function o3(a,o,f,g,b,v,T,R,W){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Yt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yt(0),this.hiddenUpdates=Yt(null),this.identifierPrefix=g,this.onUncaughtError=b,this.onCaughtError=v,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=W,this.incompleteTransitions=new Map}function Ow(a,o,f,g,b,v,T,R,W,ne,se,ue){return a=new o3(a,o,f,T,W,ne,se,ue,R),o=1,v===!0&&(o|=24),v=Ki(3,null,null,o),a.current=v,v.stateNode=a,o=Lg(),o.refCount++,a.pooledCache=o,o.refCount++,v.memoizedState={element:g,isDehydrated:f,cache:o},Ig(v),a}function Lw(a){return a?(a=$s,a):$s}function Rw(a,o,f,g,b,v){b=Lw(b),g.context===null?g.context=b:g.pendingContext=b,g=el(o),g.payload={element:f},v=v===void 0?null:v,v!==null&&(g.callback=v),f=tl(a,g,o),f!==null&&($i(f,a,o),Cc(f,a,o))}function Dw(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<o?f:o}}function e0(a,o){Dw(a,o),(a=a.alternate)&&Dw(a,o)}function Bw(a){if(a.tag===13||a.tag===31){var o=Pl(a,67108864);o!==null&&$i(o,a,67108864),e0(a,67108864)}}function Iw(a){if(a.tag===13||a.tag===31){var o=tr();o=wt(o);var f=Pl(a,o);f!==null&&$i(f,a,o),e0(a,o)}}var Af=!0;function c3(a,o,f,g){var b=L.T;L.T=null;var v=U.p;try{U.p=2,t0(a,o,f,g)}finally{U.p=v,L.T=b}}function u3(a,o,f,g){var b=L.T;L.T=null;var v=U.p;try{U.p=8,t0(a,o,f,g)}finally{U.p=v,L.T=b}}function t0(a,o,f,g){if(Af){var b=n0(g);if(b===null)Hm(a,o,g,Mf,f),Fw(a,g);else if(f3(b,a,o,f,g))g.stopPropagation();else if(Fw(a,g),o&4&&-1<h3.indexOf(a)){for(;b!==null;){var v=Ee(b);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var T=vn(v.pendingLanes);if(T!==0){var R=v;for(R.pendingLanes|=2,R.entangledLanes|=2;T;){var W=1<<31-yt(T);R.entanglements[1]|=W,T&=~W}Gr(v),(Ot&6)===0&&(hf=Gt()+500,Pc(0))}}break;case 31:case 13:R=Pl(v,2),R!==null&&$i(R,v,2),df(),e0(v,2)}if(v=n0(g),v===null&&Hm(a,o,g,Mf,f),v===b)break;b=v}b!==null&&g.stopPropagation()}else Hm(a,o,g,null,f)}}function n0(a){return a=rt(a),i0(a)}var Mf=null;function i0(a){if(Mf=null,a=pe(a),a!==null){var o=l(a);if(o===null)a=null;else{var f=o.tag;if(f===13){if(a=s(o),a!==null)return a;a=null}else if(f===31){if(a=c(o),a!==null)return a;a=null}else if(f===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return Mf=a,null}function $w(a){switch(a){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(cr()){case ae:return 2;case me:return 8;case qe:case at:return 32;case vt:return 268435456;default:return 32}default:return 32}}var r0=!1,fl=null,dl=null,pl=null,Yc=new Map,Vc=new Map,gl=[],h3="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".split(" ");function Fw(a,o){switch(a){case"focusin":case"focusout":fl=null;break;case"dragenter":case"dragleave":dl=null;break;case"mouseover":case"mouseout":pl=null;break;case"pointerover":case"pointerout":Yc.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vc.delete(o.pointerId)}}function Xc(a,o,f,g,b,v){return a===null||a.nativeEvent!==v?(a={blockedOn:o,domEventName:f,eventSystemFlags:g,nativeEvent:v,targetContainers:[b]},o!==null&&(o=Ee(o),o!==null&&Bw(o)),a):(a.eventSystemFlags|=g,o=a.targetContainers,b!==null&&o.indexOf(b)===-1&&o.push(b),a)}function f3(a,o,f,g,b){switch(o){case"focusin":return fl=Xc(fl,a,o,f,g,b),!0;case"dragenter":return dl=Xc(dl,a,o,f,g,b),!0;case"mouseover":return pl=Xc(pl,a,o,f,g,b),!0;case"pointerover":var v=b.pointerId;return Yc.set(v,Xc(Yc.get(v)||null,a,o,f,g,b)),!0;case"gotpointercapture":return v=b.pointerId,Vc.set(v,Xc(Vc.get(v)||null,a,o,f,g,b)),!0}return!1}function zw(a){var o=pe(a.target);if(o!==null){var f=l(o);if(f!==null){if(o=f.tag,o===13){if(o=s(f),o!==null){a.blockedOn=o,ua(a.priority,function(){Iw(f)});return}}else if(o===31){if(o=c(f),o!==null){a.blockedOn=o,ua(a.priority,function(){Iw(f)});return}}else if(o===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Nf(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var f=n0(a.nativeEvent);if(f===null){f=a.nativeEvent;var g=new f.constructor(f.type,f);$e=g,f.target.dispatchEvent(g),$e=null}else return o=Ee(f),o!==null&&Bw(o),a.blockedOn=f,!1;o.shift()}return!0}function Pw(a,o,f){Nf(a)&&f.delete(o)}function d3(){r0=!1,fl!==null&&Nf(fl)&&(fl=null),dl!==null&&Nf(dl)&&(dl=null),pl!==null&&Nf(pl)&&(pl=null),Yc.forEach(Pw),Vc.forEach(Pw)}function Of(a,o){a.blockedOn===o&&(a.blockedOn=null,r0||(r0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,d3)))}var Lf=null;function Hw(a){Lf!==a&&(Lf=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Lf===a&&(Lf=null);for(var o=0;o<a.length;o+=3){var f=a[o],g=a[o+1],b=a[o+2];if(typeof g!="function"){if(i0(g||f)===null)continue;break}var v=Ee(f);v!==null&&(a.splice(o,3),o-=3,nm(v,{pending:!0,data:b,method:f.method,action:g},g,b))}}))}function so(a){function o(W){return Of(W,a)}fl!==null&&Of(fl,a),dl!==null&&Of(dl,a),pl!==null&&Of(pl,a),Yc.forEach(o),Vc.forEach(o);for(var f=0;f<gl.length;f++){var g=gl[f];g.blockedOn===a&&(g.blockedOn=null)}for(;0<gl.length&&(f=gl[0],f.blockedOn===null);)zw(f),f.blockedOn===null&&gl.shift();if(f=(a.ownerDocument||a).$$reactFormReplay,f!=null)for(g=0;g<f.length;g+=3){var b=f[g],v=f[g+1],T=b[Qt]||null;if(typeof v=="function")T||Hw(f);else if(T){var R=null;if(v&&v.hasAttribute("formAction")){if(b=v,T=v[Qt]||null)R=T.formAction;else if(i0(b)!==null)continue}else R=T.action;typeof R=="function"?f[g+1]=R:(f.splice(g,3),g-=3),Hw(f)}}}function Uw(){function a(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(T){return b=T})},focusReset:"manual",scroll:"manual"})}function o(){b!==null&&(b(),b=null),g||setTimeout(f,20)}function f(){if(!g&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var g=!1,b=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(f,100),function(){g=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),b!==null&&(b(),b=null)}}}function a0(a){this._internalRoot=a}Rf.prototype.render=a0.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(i(409));var f=o.current,g=tr();Rw(f,g,a,o,null,null)},Rf.prototype.unmount=a0.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;Rw(a.current,2,null,a,null,null),df(),o[Tr]=null}};function Rf(a){this._internalRoot=a}Rf.prototype.unstable_scheduleHydration=function(a){if(a){var o=ca();a={blockedOn:null,target:a,priority:o};for(var f=0;f<gl.length&&o!==0&&o<gl[f].priority;f++);gl.splice(f,0,a),f===0&&zw(a)}};var qw=t.version;if(qw!=="19.2.0")throw Error(i(527,qw,"19.2.0"));U.findDOMNode=function(a){var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(i(188)):(a=Object.keys(a).join(","),Error(i(268,a)));return a=h(o),a=a!==null?d(a):null,a=a===null?null:a.stateNode,a};var p3={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Df=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Df.isDisabled&&Df.supportsFiber)try{fn=Df.inject(p3),Wt=Df}catch{}}return Zc.createRoot=function(a,o){if(!r(a))throw Error(i(299));var f=!1,g="",b=K_,v=Z_,T=Q_;return o!=null&&(o.unstable_strictMode===!0&&(f=!0),o.identifierPrefix!==void 0&&(g=o.identifierPrefix),o.onUncaughtError!==void 0&&(b=o.onUncaughtError),o.onCaughtError!==void 0&&(v=o.onCaughtError),o.onRecoverableError!==void 0&&(T=o.onRecoverableError)),o=Ow(a,1,!1,null,null,f,g,null,b,v,T,Uw),a[Tr]=o.current,Pm(a),new a0(o)},Zc.hydrateRoot=function(a,o,f){if(!r(a))throw Error(i(299));var g=!1,b="",v=K_,T=Z_,R=Q_,W=null;return f!=null&&(f.unstable_strictMode===!0&&(g=!0),f.identifierPrefix!==void 0&&(b=f.identifierPrefix),f.onUncaughtError!==void 0&&(v=f.onUncaughtError),f.onCaughtError!==void 0&&(T=f.onCaughtError),f.onRecoverableError!==void 0&&(R=f.onRecoverableError),f.formState!==void 0&&(W=f.formState)),o=Ow(a,1,!0,o,f??null,g,b,W,v,T,R,Uw),o.context=Lw(null),f=o.current,g=tr(),g=wt(g),b=el(g),b.callback=null,tl(f,b,g),f=g,o.current.lanes=f,Bt(o,f),Gr(o),a[Tr]=o.current,Pm(a),new Rf(o)},Zc.version="19.2.0",Zc}var Jw;function E3(){if(Jw)return o0.exports;Jw=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(),o0.exports=k3(),o0.exports}var T3=E3();const A3="/api/files",ly="file";function M3(){return new URLSearchParams(window.location.search).get(ly)}function eS(e){const t=new URL(window.location.href);e?t.searchParams.set(ly,e):t.searchParams.delete(ly),window.history.replaceState(null,"",`${t.pathname}${t.search}${t.hash}`)}const N3=()=>{const[e,t]=ge.useState([]),[n,i]=ge.useState(null),[r,l]=ge.useState(!0),[s,c]=ge.useState(null),[u,h]=ge.useState(0),d=ge.useRef(null),p=ge.useCallback(m=>{d.current=m||null,h(x=>x+1)},[]),y=ge.useCallback(m=>{eS(m),i(m)},[]);return ge.useEffect(()=>{(async()=>{try{const x=await fetch(A3);if(!x.ok)throw new Error(`API request failed: ${x.status}`);const _=await x.json(),w=_.files||[],S=d.current;d.current=null,t(w),i(C=>{if(S&&w.some(N=>N.path===S))return eS(S),S;if(C&&w.some(N=>N.path===C))return C;const E=M3();return E&&w.some(N=>N.path===E)?E:_.selectedFile||null})}catch(x){c(x instanceof Error?x:new Error("Unknown error"))}finally{l(!1)}})()},[u]),{files:e,selectedFile:n,setSelectedFile:y,reload:p,loading:r,error:s}},tS="/api/markdown",sy=e=>{const[t,n]=ge.useState(null),[i,r]=ge.useState(null),[l,s]=ge.useState(!0),[c,u]=ge.useState(null),[h,d]=ge.useState(0),p=ge.useCallback(()=>{d(y=>y+1)},[]);return ge.useEffect(()=>{(async()=>{if(e===null){s(!1);return}s(!0),u(null);try{const m=e===void 0?tS:`${tS}/${e}`,x=await fetch(m);if(!x.ok)throw new Error(`API request failed: ${x.status}`);const _=await x.json();n(_.content),r(_.filename)}catch(m){u(m instanceof Error?m:new Error("Unknown error")),n(null),r(null)}finally{s(!1)}})()},[e,h]),{content:t,filename:i,loading:l,error:c,reload:p}};async function Qc(e,t){const n=await fetch(e,t);if(!n.ok){const i=await n.json().catch(()=>({}));throw new Error(i.error||`API request failed: ${n.status}`)}return n.json()}const Sk=e=>{const[t,n]=ge.useState([]),[i,r]=ge.useState([]),[l,s]=ge.useState(!1),[c,u]=ge.useState(null),[h,d]=ge.useState(!1),[p,y]=ge.useState(0),m=ge.useCallback(()=>{y(C=>C+1)},[]);ge.useEffect(()=>{(async()=>{if(!e){n([]),r([]),s(!1);return}s(!0),u(null);try{const[E,N,M]=await Promise.all([Qc("/api/session"),Qc(`/api/comments?file=${encodeURIComponent(e)}`),Qc(`/api/comments?targetFile=${encodeURIComponent(e)}`)]);d(!!E.readonly),n(N),r(M.filter(A=>A.status!=="open"&&A.status!=="ignored"&&typeof A.targetStartLine=="number"))}catch(E){u(E instanceof Error?E:new Error("Unknown error")),n([]),r([])}finally{s(!1)}})()},[e,p]);const x=ge.useCallback(async C=>{await Qc("/api/comments",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(C)}),m()},[m]),_=ge.useCallback(async(C,E,N)=>{await Qc(`/api/comments/${C}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({file:E,comment:N})}),m()},[m]),w=ge.useCallback(async(C,E)=>{const N=await fetch(`/api/comments/${C}?file=${encodeURIComponent(E)}`,{method:"DELETE"});if(!N.ok){const M=await N.json().catch(()=>({}));throw new Error(M.error||`API request failed: ${N.status}`)}m()},[m]),S=ge.useCallback(async C=>{await Promise.all(t.map(E=>w(E.id,C))),m()},[t,w,m]);return{comments:t,targetComments:i,loading:l,error:c,readonly:h,reload:m,createComment:x,editComment:_,deleteComment:w,deleteAllComments:S}},Ck=({initialWidth:e,minWidth:t,maxWidth:n,storageKey:i,direction:r="left",collapsible:l=!1,collapseThreshold:s=100,initialCollapsed:c=!1})=>{const[u,h]=ge.useState(()=>{if(i){const C=localStorage.getItem(i);if(C){const E=parseInt(C,10);if(!isNaN(E)&&E>=t&&E<=n)return E}}return e}),[d,p]=ge.useState(c),[y,m]=ge.useState(!1),x=ge.useRef(0),_=ge.useRef(0),w=ge.useCallback(C=>{C.preventDefault(),m(!0),x.current=C.clientX,_.current=u},[u]);ge.useEffect(()=>{if(!y)return;const C=N=>{const M=N.clientX-x.current,A=r==="right"?-M:M,O=_.current+A;if(l&&O<s)p(!0),h(t);else{p(!1);const q=Math.min(n,Math.max(t,O));h(q)}},E=()=>{m(!1),i&&!d&&localStorage.setItem(i,u.toString())};return document.addEventListener("mousemove",C),document.addEventListener("mouseup",E),()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",E)}},[y,n,t,i,u,r,l,s,d]);const S=ge.useCallback(()=>{p(C=>!C)},[]);return{width:u,isResizing:y,isCollapsed:d,setIsCollapsed:p,handleMouseDown:w,toggleCollapse:S}},kk=(e,t)=>{ge.useEffect(()=>{const n=new EventSource("/api/watch");return n.onmessage=i=>{try{const r=JSON.parse(i.data);r.type==="file-changed"&&r.path?e(r.path):r.type==="file-added"&&r.path&&t&&t(r.path)}catch(r){console.error("[FileWatch] Error parsing message:",r)}},n.onerror=i=>{console.error("[FileWatch] Connection error:",i)},()=>{n.close()}},[e,t])},Ek=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",f0=e=>e==="system"?Ek():e,Ib=()=>{const[e,t]=ge.useState(()=>localStorage.getItem("md-review-theme")||"system");ge.useEffect(()=>{const l=document.documentElement;f0(e)==="dark"?l.classList.add("dark-mode"):l.classList.remove("dark-mode")},[e]),ge.useEffect(()=>{if(e!=="system")return;const l=window.matchMedia("(prefers-color-scheme: dark)"),s=()=>{const c=document.documentElement;Ek()==="dark"?c.classList.add("dark-mode"):c.classList.remove("dark-mode")};return l.addEventListener("change",s),()=>l.removeEventListener("change",s)},[e]);const n=()=>{t(l=>{const c=f0(l)==="light"?"dark":"light";return localStorage.setItem("md-review-theme",c),c})},i=()=>{localStorage.removeItem("md-review-theme"),t("system")},r=f0(e);return{theme:e,effectiveTheme:r,toggleTheme:n,resetToSystem:i,isDark:r==="dark",isSystem:e==="system"}},Tk=()=>{const{isDark:e,toggleTheme:t}=Ib();return $.jsx("button",{className:"theme-toggle",onClick:t,title:e?"Switch to light mode":"Switch to dark mode","aria-label":e?"Switch to light mode":"Switch to dark mode",children:e?$.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[$.jsx("circle",{cx:"10",cy:"10",r:"4",stroke:"currentColor",strokeWidth:"1.5"}),$.jsx("path",{d:"M10 2v2M10 16v2M18 10h-2M4 10H2M15.657 4.343l-1.414 1.414M5.757 14.243l-1.414 1.414M15.657 15.657l-1.414-1.414M5.757 5.757L4.343 4.343",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}):$.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:$.jsx("path",{d:"M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})};function O3(e){const t={name:"root",children:new Map,isFile:!1};for(const n of e){const i=n.path.split("/");let r=t;for(let l=0;l<i.length;l++){const s=i[l],c=l===i.length-1;r.children.has(s)||r.children.set(s,{name:s,path:c?n.path:void 0,children:new Map,isFile:c}),r=r.children.get(s)}}return t}function oy({node:e,selectedFile:t,onFileSelect:n,level:i=0}){const[r,l]=ge.useState(i===0||i===1);if(e.isFile)return $.jsxs("div",{className:`tree-item file ${t===e.path?"selected":""}`,style:{paddingLeft:`${i*12+8}px`},onClick:()=>e.path&&n(e.path),children:[$.jsx("span",{className:"file-icon",children:"📄"}),$.jsx("span",{className:"file-name",children:e.name})]});const s=Array.from(e.children.entries()).sort((c,u)=>!c[1].isFile&&u[1].isFile?-1:c[1].isFile&&!u[1].isFile?1:c[0].localeCompare(u[0]));return e.name==="root"?$.jsx($.Fragment,{children:s.map(([,c])=>$.jsx(oy,{node:c,selectedFile:t,onFileSelect:n,level:0},c.path||c.name))}):$.jsxs("div",{children:[$.jsxs("div",{className:"tree-item directory",style:{paddingLeft:`${i*12+8}px`},onClick:()=>l(!r),children:[$.jsx("svg",{className:"chevron-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",style:{transform:r?"rotate(90deg)":"rotate(0deg)"},children:$.jsx("path",{d:"M6 4L10 8L6 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),$.jsx("span",{className:"folder-icon",children:"📁"}),$.jsx("span",{className:"folder-name",children:e.name})]}),r&&$.jsx("div",{className:"tree-children",children:s.map(([,c])=>$.jsx(oy,{node:c,selectedFile:t,onFileSelect:n,level:i+1},c.path||c.name))})]})}const L3=({files:e,selectedFile:t,onFileSelect:n,onToggleSidebar:i,autoFocusSearch:r})=>{const[l,s]=ge.useState(""),c=ge.useRef(null),u=l?e.filter(d=>d.name.toLowerCase().includes(l.toLowerCase())||d.path.toLowerCase().includes(l.toLowerCase())):e,h=O3(u);return ge.useEffect(()=>{var d;r&&((d=c.current)==null||d.focus())},[r]),ge.useEffect(()=>{const d=p=>{var y;p.metaKey&&p.key==="k"&&(p.preventDefault(),(y=c.current)==null||y.focus())};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[]),$.jsxs("div",{className:"file-tree",children:[$.jsxs("div",{className:"file-tree-header",children:[$.jsxs("div",{className:"file-tree-header-content",children:[$.jsx("h3",{children:"Files"}),$.jsxs("span",{className:"file-count",children:[u.length," of ",e.length," files"]})]}),$.jsxs("div",{className:"file-tree-header-actions",children:[$.jsx(Tk,{}),i&&$.jsx("button",{className:"sidebar-collapse-button",onClick:i,"aria-label":"Collapse sidebar",title:"Collapse sidebar",children:$.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:$.jsx("path",{d:"M12 4L6 10L12 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]}),$.jsx("div",{className:"search-container",children:$.jsxs("div",{className:"search-input-wrapper",children:[$.jsx("span",{className:"search-icon",children:"🔍"}),$.jsx("input",{ref:c,type:"text",className:"search-input",placeholder:"Jump to...",value:l,onChange:d=>s(d.target.value)}),l&&$.jsx("button",{className:"search-clear",onClick:()=>s(""),"aria-label":"Clear search",children:"✕"}),$.jsx("kbd",{className:"search-shortcut",children:"⌘K"})]})}),$.jsx("div",{className:"file-tree-content",children:$.jsx(oy,{node:h,selectedFile:t,onFileSelect:n})}),$.jsx("div",{className:"file-tree-footer",children:$.jsx("a",{href:"https://github.com/tracyxiong1/md-review-server",target:"_blank",rel:"noopener noreferrer",className:"github-link","aria-label":"View on GitHub",title:"View on GitHub",children:$.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:$.jsx("path",{d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"})})})})]})};function R3(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const D3=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,B3=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,I3={};function nS(e,t){return(I3.jsx?B3:D3).test(e)}const $3=/[ \t\n\f\r]/g;function F3(e){return typeof e=="object"?e.type==="text"?iS(e.value):!1:iS(e)}function iS(e){return e.replace($3,"")===""}class sh{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}sh.prototype.normal={};sh.prototype.property={};sh.prototype.space=void 0;function Ak(e,t){const n={},i={};for(const r of e)Object.assign(n,r.property),Object.assign(i,r.normal);return new sh(n,i,t)}function cy(e){return e.toLowerCase()}class Wi{constructor(t,n){this.attribute=n,this.property=t}}Wi.prototype.attribute="";Wi.prototype.booleanish=!1;Wi.prototype.boolean=!1;Wi.prototype.commaOrSpaceSeparated=!1;Wi.prototype.commaSeparated=!1;Wi.prototype.defined=!1;Wi.prototype.mustUseProperty=!1;Wi.prototype.number=!1;Wi.prototype.overloadedBoolean=!1;Wi.prototype.property="";Wi.prototype.spaceSeparated=!1;Wi.prototype.space=void 0;let z3=0;const ut=_s(),Tn=_s(),uy=_s(),_e=_s(),en=_s(),ko=_s(),ir=_s();function _s(){return 2**++z3}const hy=Object.freeze(Object.defineProperty({__proto__:null,boolean:ut,booleanish:Tn,commaOrSpaceSeparated:ir,commaSeparated:ko,number:_e,overloadedBoolean:uy,spaceSeparated:en},Symbol.toStringTag,{value:"Module"})),d0=Object.keys(hy);class $b extends Wi{constructor(t,n,i,r){let l=-1;if(super(t,n),rS(this,"space",r),typeof i=="number")for(;++l<d0.length;){const s=d0[l];rS(this,d0[l],(i&hy[s])===hy[s])}}}$b.prototype.defined=!0;function rS(e,t,n){n&&(e[t]=n)}function Ko(e){const t={},n={};for(const[i,r]of Object.entries(e.properties)){const l=new $b(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(l.mustUseProperty=!0),t[i]=l,n[cy(i)]=i,n[cy(l.attribute)]=i}return new sh(t,n,e.space)}const Mk=Ko({properties:{ariaActiveDescendant:null,ariaAtomic:Tn,ariaAutoComplete:null,ariaBusy:Tn,ariaChecked:Tn,ariaColCount:_e,ariaColIndex:_e,ariaColSpan:_e,ariaControls:en,ariaCurrent:null,ariaDescribedBy:en,ariaDetails:null,ariaDisabled:Tn,ariaDropEffect:en,ariaErrorMessage:null,ariaExpanded:Tn,ariaFlowTo:en,ariaGrabbed:Tn,ariaHasPopup:null,ariaHidden:Tn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:en,ariaLevel:_e,ariaLive:null,ariaModal:Tn,ariaMultiLine:Tn,ariaMultiSelectable:Tn,ariaOrientation:null,ariaOwns:en,ariaPlaceholder:null,ariaPosInSet:_e,ariaPressed:Tn,ariaReadOnly:Tn,ariaRelevant:null,ariaRequired:Tn,ariaRoleDescription:en,ariaRowCount:_e,ariaRowIndex:_e,ariaRowSpan:_e,ariaSelected:Tn,ariaSetSize:_e,ariaSort:null,ariaValueMax:_e,ariaValueMin:_e,ariaValueNow:_e,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Nk(e,t){return t in e?e[t]:t}function Ok(e,t){return Nk(e,t.toLowerCase())}const P3=Ko({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ko,acceptCharset:en,accessKey:en,action:null,allow:null,allowFullScreen:ut,allowPaymentRequest:ut,allowUserMedia:ut,alt:null,as:null,async:ut,autoCapitalize:null,autoComplete:en,autoFocus:ut,autoPlay:ut,blocking:en,capture:null,charSet:null,checked:ut,cite:null,className:en,cols:_e,colSpan:null,content:null,contentEditable:Tn,controls:ut,controlsList:en,coords:_e|ko,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ut,defer:ut,dir:null,dirName:null,disabled:ut,download:uy,draggable:Tn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ut,formTarget:null,headers:en,height:_e,hidden:uy,high:_e,href:null,hrefLang:null,htmlFor:en,httpEquiv:en,id:null,imageSizes:null,imageSrcSet:null,inert:ut,inputMode:null,integrity:null,is:null,isMap:ut,itemId:null,itemProp:en,itemRef:en,itemScope:ut,itemType:en,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ut,low:_e,manifest:null,max:null,maxLength:_e,media:null,method:null,min:null,minLength:_e,multiple:ut,muted:ut,name:null,nonce:null,noModule:ut,noValidate:ut,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:ut,optimum:_e,pattern:null,ping:en,placeholder:null,playsInline:ut,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ut,referrerPolicy:null,rel:en,required:ut,reversed:ut,rows:_e,rowSpan:_e,sandbox:en,scope:null,scoped:ut,seamless:ut,selected:ut,shadowRootClonable:ut,shadowRootDelegatesFocus:ut,shadowRootMode:null,shape:null,size:_e,sizes:null,slot:null,span:_e,spellCheck:Tn,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_e,step:null,style:null,tabIndex:_e,target:null,title:null,translate:null,type:null,typeMustMatch:ut,useMap:null,value:Tn,width:_e,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:en,axis:null,background:null,bgColor:null,border:_e,borderColor:null,bottomMargin:_e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ut,declare:ut,event:null,face:null,frame:null,frameBorder:null,hSpace:_e,leftMargin:_e,link:null,longDesc:null,lowSrc:null,marginHeight:_e,marginWidth:_e,noResize:ut,noHref:ut,noShade:ut,noWrap:ut,object:null,profile:null,prompt:null,rev:null,rightMargin:_e,rules:null,scheme:null,scrolling:Tn,standby:null,summary:null,text:null,topMargin:_e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ut,disableRemotePlayback:ut,prefix:null,property:null,results:_e,security:null,unselectable:null},space:"html",transform:Ok}),H3=Ko({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:ir,accentHeight:_e,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_e,amplitude:_e,arabicForm:null,ascent:_e,attributeName:null,attributeType:null,azimuth:_e,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_e,by:null,calcMode:null,capHeight:_e,className:en,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:_e,diffuseConstant:_e,direction:null,display:null,dur:null,divisor:_e,dominantBaseline:null,download:ut,dx:null,dy:null,edgeMode:null,editable:null,elevation:_e,enableBackground:null,end:null,event:null,exponent:_e,externalResourcesRequired:null,fill:null,fillOpacity:_e,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:ko,g2:ko,glyphName:ko,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_e,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_e,horizOriginX:_e,horizOriginY:_e,id:null,ideographic:_e,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_e,k:_e,k1:_e,k2:_e,k3:_e,k4:_e,kernelMatrix:ir,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_e,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:_e,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:_e,overlineThickness:_e,paintOrder:null,panose1:null,path:null,pathLength:_e,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:en,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_e,pointsAtY:_e,pointsAtZ:_e,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ir,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ir,rev:ir,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ir,requiredFeatures:ir,requiredFonts:ir,requiredFormats:ir,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:_e,specularExponent:_e,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_e,strikethroughThickness:_e,string:null,stroke:null,strokeDashArray:ir,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_e,strokeOpacity:_e,strokeWidth:null,style:null,surfaceScale:_e,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ir,tabIndex:_e,tableValues:null,target:null,targetX:_e,targetY:_e,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ir,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_e,underlineThickness:_e,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_e,values:null,vAlphabetic:_e,vMathematical:_e,vectorEffect:null,vHanging:_e,vIdeographic:_e,version:null,vertAdvY:_e,vertOriginX:_e,vertOriginY:_e,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_e,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Nk}),Lk=Ko({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()}}),Rk=Ko({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ok}),Dk=Ko({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),U3={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"},q3=/[A-Z]/g,aS=/-[a-z]/g,j3=/^data[-\w.:]+$/i;function G3(e,t){const n=cy(t);let i=t,r=Wi;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&j3.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(aS,Y3);i="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!aS.test(l)){let s=l.replace(q3,W3);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}r=$b}return new r(i,t)}function W3(e){return"-"+e.toLowerCase()}function Y3(e){return e.charAt(1).toUpperCase()}const V3=Ak([Mk,P3,Lk,Rk,Dk],"html"),Fb=Ak([Mk,H3,Lk,Rk,Dk],"svg");function X3(e){return e.join(" ").trim()}var oo={},p0,lS;function K3(){if(lS)return p0;lS=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,c=/^\s+|\s+$/g,u=`
|
|
51
|
+
`,h="/",d="*",p="",y="comment",m="declaration";function x(w,S){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];S=S||{};var C=1,E=1;function N(P){var z=P.match(t);z&&(C+=z.length);var L=P.lastIndexOf(u);E=~L?P.length-L:E+P.length}function M(){var P={line:C,column:E};return function(z){return z.position=new A(P),j(),z}}function A(P){this.start=P,this.end={line:C,column:E},this.source=S.source}A.prototype.content=w;function O(P){var z=new Error(S.source+":"+C+":"+E+": "+P);if(z.reason=P,z.filename=S.source,z.line=C,z.column=E,z.source=w,!S.silent)throw z}function q(P){var z=P.exec(w);if(z){var L=z[0];return N(L),w=w.slice(L.length),z}}function j(){q(n)}function F(P){var z;for(P=P||[];z=H();)z!==!1&&P.push(z);return P}function H(){var P=M();if(!(h!=w.charAt(0)||d!=w.charAt(1))){for(var z=2;p!=w.charAt(z)&&(d!=w.charAt(z)||h!=w.charAt(z+1));)++z;if(z+=2,p===w.charAt(z-1))return O("End of comment missing");var L=w.slice(2,z-2);return E+=2,N(L),w=w.slice(z),E+=2,P({type:y,comment:L})}}function Z(){var P=M(),z=q(i);if(z){if(H(),!q(r))return O("property missing ':'");var L=q(l),U=P({type:m,property:_(z[0].replace(e,p)),value:L?_(L[0].replace(e,p)):p});return q(s),U}}function V(){var P=[];F(P);for(var z;z=Z();)z!==!1&&(P.push(z),F(P));return P}return j(),V()}function _(w){return w?w.replace(c,p):p}return p0=x,p0}var sS;function Z3(){if(sS)return oo;sS=1;var e=oo&&oo.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=n;const t=e(K3());function n(i,r){let l=null;if(!i||typeof i!="string")return l;const s=(0,t.default)(i),c=typeof r=="function";return s.forEach(u=>{if(u.type!=="declaration")return;const{property:h,value:d}=u;c?r(h,d,u):d&&(l=l||{},l[h]=d)}),l}return oo}var Jc={},oS;function Q3(){if(oS)return Jc;oS=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,l=function(h){return!h||n.test(h)||e.test(h)},s=function(h,d){return d.toUpperCase()},c=function(h,d){return"".concat(d,"-")},u=function(h,d){return d===void 0&&(d={}),l(h)?h:(h=h.toLowerCase(),d.reactCompat?h=h.replace(r,c):h=h.replace(i,c),h.replace(t,s))};return Jc.camelCase=u,Jc}var eu,cS;function J3(){if(cS)return eu;cS=1;var e=eu&&eu.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},t=e(Z3()),n=Q3();function i(r,l){var s={};return!r||typeof r!="string"||(0,t.default)(r,function(c,u){c&&u&&(s[(0,n.camelCase)(c,l)]=u)}),s}return i.default=i,eu=i,eu}var e5=J3();const t5=lh(e5),Bk=Ik("end"),zb=Ik("start");function Ik(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function n5(e){const t=zb(e),n=Bk(e);if(t&&n)return{start:t,end:n}}function Mu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?uS(e.position):"start"in e||"end"in e?uS(e):"line"in e||"column"in e?fy(e):""}function fy(e){return hS(e&&e.line)+":"+hS(e&&e.column)}function uS(e){return fy(e&&e.start)+"-"+fy(e&&e.end)}function hS(e){return e&&typeof e=="number"?e:1}class hi extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",l={},s=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?r=t:!l.cause&&t&&(s=!0,r=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof i=="string"){const u=i.indexOf(":");u===-1?l.ruleId=i:(l.source=i.slice(0,u),l.ruleId=i.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){const u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}const c=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=c?c.line:void 0,this.name=Mu(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=s&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}hi.prototype.file="";hi.prototype.name="";hi.prototype.reason="";hi.prototype.message="";hi.prototype.stack="";hi.prototype.column=void 0;hi.prototype.line=void 0;hi.prototype.ancestors=void 0;hi.prototype.cause=void 0;hi.prototype.fatal=void 0;hi.prototype.place=void 0;hi.prototype.ruleId=void 0;hi.prototype.source=void 0;const Pb={}.hasOwnProperty,i5=new Map,r5=/[A-Z]/g,a5=new Set(["table","tbody","thead","tfoot","tr"]),l5=new Set(["td","th"]),$k="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function s5(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=g5(n,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");i=p5(n,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Fb:V3,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=Fk(r,e,void 0);return l&&typeof l!="string"?l:r.create(e,r.Fragment,{children:l||void 0},void 0)}function Fk(e,t,n){if(t.type==="element")return o5(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return c5(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return h5(e,t,n);if(t.type==="mdxjsEsm")return u5(e,t);if(t.type==="root")return f5(e,t,n);if(t.type==="text")return d5(e,t)}function o5(e,t,n){const i=e.schema;let r=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=Fb,e.schema=r),e.ancestors.push(t);const l=Pk(e,t.tagName,!1),s=m5(e,t);let c=Ub(e,t);return a5.has(t.tagName)&&(c=c.filter(function(u){return typeof u=="string"?!F3(u):!0})),zk(e,s,l,t),Hb(s,c),e.ancestors.pop(),e.schema=i,e.create(t,l,s,n)}function c5(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}zu(e,t.position)}function u5(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);zu(e,t.position)}function h5(e,t,n){const i=e.schema;let r=i;t.name==="svg"&&i.space==="html"&&(r=Fb,e.schema=r),e.ancestors.push(t);const l=t.name===null?e.Fragment:Pk(e,t.name,!0),s=y5(e,t),c=Ub(e,t);return zk(e,s,l,t),Hb(s,c),e.ancestors.pop(),e.schema=i,e.create(t,l,s,n)}function f5(e,t,n){const i={};return Hb(i,Ub(e,t)),e.create(t,e.Fragment,i,n)}function d5(e,t){return t.value}function zk(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function Hb(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function p5(e,t,n){return i;function i(r,l,s,c){const h=Array.isArray(s.children)?n:t;return c?h(l,s,c):h(l,s)}}function g5(e,t){return n;function n(i,r,l,s){const c=Array.isArray(l.children),u=zb(i);return t(r,l,s,c,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function m5(e,t){const n={};let i,r;for(r in t.properties)if(r!=="children"&&Pb.call(t.properties,r)){const l=b5(e,r,t.properties[r]);if(l){const[s,c]=l;e.tableCellAlignToStyle&&s==="align"&&typeof c=="string"&&l5.has(t.tagName)?i=c:n[s]=c}}if(i){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function y5(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const l=i.data.estree.body[0];l.type;const s=l.expression;s.type;const c=s.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else zu(e,t.position);else{const r=i.name;let l;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const c=i.value.data.estree.body[0];c.type,l=e.evaluater.evaluateExpression(c.expression)}else zu(e,t.position);else l=i.value===null?!0:i.value;n[r]=l}return n}function Ub(e,t){const n=[];let i=-1;const r=e.passKeys?new Map:i5;for(;++i<t.children.length;){const l=t.children[i];let s;if(e.passKeys){const u=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(u){const h=r.get(u)||0;s=u+"-"+h,r.set(u,h+1)}}const c=Fk(e,l,s);c!==void 0&&n.push(c)}return n}function b5(e,t,n){const i=G3(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?R3(n):X3(n)),i.property==="style"){let r=typeof n=="object"?n:x5(e,String(n));return e.stylePropertyNameCase==="css"&&(r=_5(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&i.space?U3[i.property]||i.property:i.attribute,n]}}function x5(e,t){try{return t5(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,r=new hi("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=$k+"#cannot-parse-style-attribute",r}}function Pk(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const r=t.split(".");let l=-1,s;for(;++l<r.length;){const c=nS(r[l])?{type:"Identifier",name:r[l]}:{type:"Literal",value:r[l]};s=s?{type:"MemberExpression",object:s,property:c,computed:!!(l&&c.type==="Literal"),optional:!1}:c}i=s}else i=nS(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const r=i.value;return Pb.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(i);zu(e)}function zu(e,t){const n=new hi("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=$k+"#cannot-handle-mdx-estrees-without-createevaluater",n}function _5(e){const t={};let n;for(n in e)Pb.call(e,n)&&(t[v5(n)]=e[n]);return t}function v5(e){let t=e.replace(r5,w5);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function w5(e){return"-"+e.toLowerCase()}const g0={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"]},S5={};function qb(e,t){const n=S5,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Hk(e,i,r)}function Hk(e,t,n){if(C5(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return fS(e.children,t,n)}return Array.isArray(e)?fS(e,t,n):""}function fS(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=Hk(e[r],t,n);return i.join("")}function C5(e){return!!(e&&typeof e=="object")}const dS=document.createElement("i");function jb(e){const t="&"+e+";";dS.innerHTML=t;const n=dS.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ar(e,t,n,i){const r=e.length;let l=0,s;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)s=Array.from(i),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);l<i.length;)s=i.slice(l,l+1e4),s.unshift(t,0),e.splice(...s),l+=1e4,t+=1e4}function vr(e,t){return e.length>0?(ar(e,e.length,0,t),e):t}const pS={}.hasOwnProperty;function Uk(e){const t={};let n=-1;for(;++n<e.length;)k5(t,e[n]);return t}function k5(e,t){let n;for(n in t){const r=(pS.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];let s;if(l)for(s in l){pS.call(r,s)||(r[s]=[]);const c=l[s];E5(r[s],Array.isArray(c)?c:c?[c]:[])}}}function E5(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);ar(e,0,0,i)}function qk(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function $r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const _i=Nl(/[A-Za-z]/),li=Nl(/[\dA-Za-z]/),T5=Nl(/[#-'*+\--9=?A-Z^-~]/);function Cd(e){return e!==null&&(e<32||e===127)}const dy=Nl(/\d/),A5=Nl(/[\dA-Fa-f]/),M5=Nl(/[!-/:-@[-`{-~]/);function Xe(e){return e!==null&&e<-2}function Kt(e){return e!==null&&(e<0||e===32)}function gt(e){return e===-2||e===-1||e===32}const Sp=Nl(new RegExp("\\p{P}|\\p{S}","u")),fs=Nl(/\s/);function Nl(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Zo(e){const t=[];let n=-1,i=0,r=0;for(;++n<e.length;){const l=e.charCodeAt(n);let s="";if(l===37&&li(e.charCodeAt(n+1))&&li(e.charCodeAt(n+2)))r=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(s=String.fromCharCode(l));else if(l>55295&&l<57344){const c=e.charCodeAt(n+1);l<56320&&c>56319&&c<57344?(s=String.fromCharCode(l,c),r=1):s="�"}else s=String.fromCharCode(l);s&&(t.push(e.slice(i,n),encodeURIComponent(s)),i=n+r+1,s=""),r&&(n+=r,r=0)}return t.join("")+e.slice(i)}function kt(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let l=0;return s;function s(u){return gt(u)?(e.enter(n),c(u)):t(u)}function c(u){return gt(u)&&l++<r?(e.consume(u),c):(e.exit(n),t(u))}}const N5={tokenize:O5};function O5(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),kt(e,t,"linePrefix")}function r(c){return e.enter("paragraph"),l(c)}function l(c){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,s(c)}function s(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return Xe(c)?(e.consume(c),e.exit("chunkText"),l):(e.consume(c),s)}}const L5={tokenize:R5},gS={tokenize:D5};function R5(e){const t=this,n=[];let i=0,r,l,s;return c;function c(E){if(i<n.length){const N=n[i];return t.containerState=N[1],e.attempt(N[0].continuation,u,h)(E)}return h(E)}function u(E){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&C();const N=t.events.length;let M=N,A;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){A=t.events[M][1].end;break}S(i);let O=N;for(;O<t.events.length;)t.events[O][1].end={...A},O++;return ar(t.events,M+1,0,t.events.slice(N)),t.events.length=O,h(E)}return c(E)}function h(E){if(i===n.length){if(!r)return y(E);if(r.currentConstruct&&r.currentConstruct.concrete)return x(E);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(gS,d,p)(E)}function d(E){return r&&C(),S(i),y(E)}function p(E){return t.parser.lazy[t.now().line]=i!==n.length,s=t.now().offset,x(E)}function y(E){return t.containerState={},e.attempt(gS,m,x)(E)}function m(E){return i++,n.push([t.currentConstruct,t.containerState]),y(E)}function x(E){if(E===null){r&&C(),S(0),e.consume(E);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:l}),_(E)}function _(E){if(E===null){w(e.exit("chunkFlow"),!0),S(0),e.consume(E);return}return Xe(E)?(e.consume(E),w(e.exit("chunkFlow")),i=0,t.interrupt=void 0,c):(e.consume(E),_)}function w(E,N){const M=t.sliceStream(E);if(N&&M.push(null),E.previous=l,l&&(l.next=E),l=E,r.defineSkip(E.start),r.write(M),t.parser.lazy[E.start.line]){let A=r.events.length;for(;A--;)if(r.events[A][1].start.offset<s&&(!r.events[A][1].end||r.events[A][1].end.offset>s))return;const O=t.events.length;let q=O,j,F;for(;q--;)if(t.events[q][0]==="exit"&&t.events[q][1].type==="chunkFlow"){if(j){F=t.events[q][1].end;break}j=!0}for(S(i),A=O;A<t.events.length;)t.events[A][1].end={...F},A++;ar(t.events,q+1,0,t.events.slice(O)),t.events.length=A}}function S(E){let N=n.length;for(;N-- >E;){const M=n[N];t.containerState=M[1],M[0].exit.call(t,e)}n.length=E}function C(){r.write([null]),l=void 0,r=void 0,t.containerState._closeFlow=void 0}}function D5(e,t,n){return kt(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Fo(e){if(e===null||Kt(e)||fs(e))return 1;if(Sp(e))return 2}function Cp(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const l=e[r].resolveAll;l&&!i.includes(l)&&(t=l(t,n),i.push(l))}return t}const py={name:"attention",resolveAll:B5,tokenize:I5};function B5(e,t){let n=-1,i,r,l,s,c,u,h,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[i][1].end},y={...e[n][1].start};mS(p,-u),mS(y,u),s={type:u>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},c={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:y},l={type:u>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:u>1?"strong":"emphasis",start:{...s.start},end:{...c.end}},e[i][1].end={...s.start},e[n][1].start={...c.end},h=[],e[i][1].end.offset-e[i][1].start.offset&&(h=vr(h,[["enter",e[i][1],t],["exit",e[i][1],t]])),h=vr(h,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",l,t]]),h=vr(h,Cp(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),h=vr(h,[["exit",l,t],["enter",c,t],["exit",c,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,h=vr(h,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,ar(e,i-1,n-i+3,h),n=i+h.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function I5(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=Fo(i);let l;return s;function s(u){return l=u,e.enter("attentionSequence"),c(u)}function c(u){if(u===l)return e.consume(u),c;const h=e.exit("attentionSequence"),d=Fo(u),p=!d||d===2&&r||n.includes(u),y=!r||r===2&&d||n.includes(i);return h._open=!!(l===42?p:p&&(r||!y)),h._close=!!(l===42?y:y&&(d||!p)),t(u)}}function mS(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const $5={name:"autolink",tokenize:F5};function F5(e,t,n){let i=0;return r;function r(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(m){return _i(m)?(e.consume(m),s):m===64?n(m):h(m)}function s(m){return m===43||m===45||m===46||li(m)?(i=1,c(m)):h(m)}function c(m){return m===58?(e.consume(m),i=0,u):(m===43||m===45||m===46||li(m))&&i++<32?(e.consume(m),c):(i=0,h(m))}function u(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||Cd(m)?n(m):(e.consume(m),u)}function h(m){return m===64?(e.consume(m),d):T5(m)?(e.consume(m),h):n(m)}function d(m){return li(m)?p(m):n(m)}function p(m){return m===46?(e.consume(m),i=0,d):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):y(m)}function y(m){if((m===45||li(m))&&i++<63){const x=m===45?y:p;return e.consume(m),x}return n(m)}}const oh={partial:!0,tokenize:z5};function z5(e,t,n){return i;function i(l){return gt(l)?kt(e,r,"linePrefix")(l):r(l)}function r(l){return l===null||Xe(l)?t(l):n(l)}}const jk={continuation:{tokenize:H5},exit:U5,name:"blockQuote",tokenize:P5};function P5(e,t,n){const i=this;return r;function r(s){if(s===62){const c=i.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),l}return n(s)}function l(s){return gt(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function H5(e,t,n){const i=this;return r;function r(s){return gt(s)?kt(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):l(s)}function l(s){return e.attempt(jk,t,n)(s)}}function U5(e){e.exit("blockQuote")}const Gk={name:"characterEscape",tokenize:q5};function q5(e,t,n){return i;function i(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),r}function r(l){return M5(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(l)}}const Wk={name:"characterReference",tokenize:j5};function j5(e,t,n){const i=this;let r=0,l,s;return c;function c(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),u}function u(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),l=31,s=li,d(p))}function h(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,s=A5,d):(e.enter("characterReferenceValue"),l=7,s=dy,d(p))}function d(p){if(p===59&&r){const y=e.exit("characterReferenceValue");return s===li&&!jb(i.sliceSerialize(y))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(p)&&r++<l?(e.consume(p),d):n(p)}}const yS={partial:!0,tokenize:W5},bS={concrete:!0,name:"codeFenced",tokenize:G5};function G5(e,t,n){const i=this,r={partial:!0,tokenize:M};let l=0,s=0,c;return u;function u(A){return h(A)}function h(A){const O=i.events[i.events.length-1];return l=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,c=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(A)}function d(A){return A===c?(s++,e.consume(A),d):s<3?n(A):(e.exit("codeFencedFenceSequence"),gt(A)?kt(e,p,"whitespace")(A):p(A))}function p(A){return A===null||Xe(A)?(e.exit("codeFencedFence"),i.interrupt?t(A):e.check(yS,_,N)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(A))}function y(A){return A===null||Xe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(A)):gt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),kt(e,m,"whitespace")(A)):A===96&&A===c?n(A):(e.consume(A),y)}function m(A){return A===null||Xe(A)?p(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(A))}function x(A){return A===null||Xe(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(A)):A===96&&A===c?n(A):(e.consume(A),x)}function _(A){return e.attempt(r,N,w)(A)}function w(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),S}function S(A){return l>0&>(A)?kt(e,C,"linePrefix",l+1)(A):C(A)}function C(A){return A===null||Xe(A)?e.check(yS,_,N)(A):(e.enter("codeFlowValue"),E(A))}function E(A){return A===null||Xe(A)?(e.exit("codeFlowValue"),C(A)):(e.consume(A),E)}function N(A){return e.exit("codeFenced"),t(A)}function M(A,O,q){let j=0;return F;function F(z){return A.enter("lineEnding"),A.consume(z),A.exit("lineEnding"),H}function H(z){return A.enter("codeFencedFence"),gt(z)?kt(A,Z,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):Z(z)}function Z(z){return z===c?(A.enter("codeFencedFenceSequence"),V(z)):q(z)}function V(z){return z===c?(j++,A.consume(z),V):j>=s?(A.exit("codeFencedFenceSequence"),gt(z)?kt(A,P,"whitespace")(z):P(z)):q(z)}function P(z){return z===null||Xe(z)?(A.exit("codeFencedFence"),O(z)):q(z)}}}function W5(e,t,n){const i=this;return r;function r(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l)}function l(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}const m0={name:"codeIndented",tokenize:V5},Y5={partial:!0,tokenize:X5};function V5(e,t,n){const i=this;return r;function r(h){return e.enter("codeIndented"),kt(e,l,"linePrefix",5)(h)}function l(h){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(h):n(h)}function s(h){return h===null?u(h):Xe(h)?e.attempt(Y5,s,u)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||Xe(h)?(e.exit("codeFlowValue"),s(h)):(e.consume(h),c)}function u(h){return e.exit("codeIndented"),t(h)}}function X5(e,t,n){const i=this;return r;function r(s){return i.parser.lazy[i.now().line]?n(s):Xe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),r):kt(e,l,"linePrefix",5)(s)}function l(s){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(s):Xe(s)?r(s):n(s)}}const K5={name:"codeText",previous:Q5,resolve:Z5,tokenize:J5};function Z5(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function Q5(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function J5(e,t,n){let i=0,r,l;return s;function s(p){return e.enter("codeText"),e.enter("codeTextSequence"),c(p)}function c(p){return p===96?(e.consume(p),i++,c):(e.exit("codeTextSequence"),u(p))}function u(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),u):p===96?(l=e.enter("codeTextSequence"),r=0,d(p)):Xe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("codeTextData"),h(p))}function h(p){return p===null||p===32||p===96||Xe(p)?(e.exit("codeTextData"),u(p)):(e.consume(p),h)}function d(p){return p===96?(e.consume(p),r++,d):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(l.type="codeTextData",h(p))}}class eI{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,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&tu(this.left,i),l.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),tu(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),tu(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 n=this.left.splice(t,Number.POSITIVE_INFINITY);tu(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);tu(this.left,n.reverse())}}}function tu(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Yk(e){const t={};let n=-1,i,r,l,s,c,u,h;const d=new eI(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(i=d.get(n),n&&i[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(u=i[1]._tokenizer.events,l=0,l<u.length&&u[l][1].type==="lineEndingBlank"&&(l+=2),l<u.length&&u[l][1].type==="content"))for(;++l<u.length&&u[l][1].type!=="content";)u[l][1].type==="chunkText"&&(u[l][1]._isInFirstContentOfListItem=!0,l++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,tI(d,n)),n=t[n],h=!0);else if(i[1]._container){for(l=n,r=void 0;l--;)if(s=d.get(l),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(r&&(d.get(r)[1].type="lineEndingBlank"),s[1].type="lineEnding",r=l);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;r&&(i[1].end={...d.get(r)[1].start},c=d.slice(r,n),c.unshift(i),d.splice(r,n-r+1,c))}}return ar(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!h}function tI(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const l=[];let s=n._tokenizer;s||(s=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const c=s.events,u=[],h={};let d,p,y=-1,m=n,x=0,_=0;const w=[_];for(;m;){for(;e.get(++r)[1]!==m;);l.push(r),m._tokenizer||(d=i.sliceStream(m),m.next||d.push(null),p&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),p=m,m=m.next}for(m=n;++y<c.length;)c[y][0]==="exit"&&c[y-1][0]==="enter"&&c[y][1].type===c[y-1][1].type&&c[y][1].start.line!==c[y][1].end.line&&(_=y+1,w.push(_),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):w.pop(),y=w.length;y--;){const S=c.slice(w[y],w[y+1]),C=l.pop();u.push([C,C+S.length-1]),e.splice(C,2,S)}for(u.reverse(),y=-1;++y<u.length;)h[x+u[y][0]]=x+u[y][1],x+=u[y][1]-u[y][0]-1;return h}const nI={resolve:rI,tokenize:aI},iI={partial:!0,tokenize:lI};function rI(e){return Yk(e),e}function aI(e,t){let n;return i;function i(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(c)}function r(c){return c===null?l(c):Xe(c)?e.check(iI,s,l)(c):(e.consume(c),r)}function l(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function s(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function lI(e,t,n){const i=this;return r;function r(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),kt(e,l,"linePrefix")}function l(s){if(s===null||Xe(s))return n(s);const c=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(s):e.interrupt(i.parser.constructs.flow,n,t)(s)}}function Vk(e,t,n,i,r,l,s,c,u){const h=u||Number.POSITIVE_INFINITY;let d=0;return p;function p(S){return S===60?(e.enter(i),e.enter(r),e.enter(l),e.consume(S),e.exit(l),y):S===null||S===32||S===41||Cd(S)?n(S):(e.enter(i),e.enter(s),e.enter(c),e.enter("chunkString",{contentType:"string"}),_(S))}function y(S){return S===62?(e.enter(l),e.consume(S),e.exit(l),e.exit(r),e.exit(i),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===62?(e.exit("chunkString"),e.exit(c),y(S)):S===null||S===60||Xe(S)?n(S):(e.consume(S),S===92?x:m)}function x(S){return S===60||S===62||S===92?(e.consume(S),m):m(S)}function _(S){return!d&&(S===null||S===41||Kt(S))?(e.exit("chunkString"),e.exit(c),e.exit(s),e.exit(i),t(S)):d<h&&S===40?(e.consume(S),d++,_):S===41?(e.consume(S),d--,_):S===null||S===32||S===40||Cd(S)?n(S):(e.consume(S),S===92?w:_)}function w(S){return S===40||S===41||S===92?(e.consume(S),_):_(S)}}function Xk(e,t,n,i,r,l){const s=this;let c=0,u;return h;function h(m){return e.enter(i),e.enter(r),e.consume(m),e.exit(r),e.enter(l),d}function d(m){return c>999||m===null||m===91||m===93&&!u||m===94&&!c&&"_hiddenFootnoteSupport"in s.parser.constructs?n(m):m===93?(e.exit(l),e.enter(r),e.consume(m),e.exit(r),e.exit(i),t):Xe(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===null||m===91||m===93||Xe(m)||c++>999?(e.exit("chunkString"),d(m)):(e.consume(m),u||(u=!gt(m)),m===92?y:p)}function y(m){return m===91||m===92||m===93?(e.consume(m),c++,p):p(m)}}function Kk(e,t,n,i,r,l){let s;return c;function c(y){return y===34||y===39||y===40?(e.enter(i),e.enter(r),e.consume(y),e.exit(r),s=y===40?41:y,u):n(y)}function u(y){return y===s?(e.enter(r),e.consume(y),e.exit(r),e.exit(i),t):(e.enter(l),h(y))}function h(y){return y===s?(e.exit(l),u(s)):y===null?n(y):Xe(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),kt(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===s||y===null||Xe(y)?(e.exit("chunkString"),h(y)):(e.consume(y),y===92?p:d)}function p(y){return y===s||y===92?(e.consume(y),d):d(y)}}function Nu(e,t){let n;return i;function i(r){return Xe(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):gt(r)?kt(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}const sI={name:"definition",tokenize:cI},oI={partial:!0,tokenize:uI};function cI(e,t,n){const i=this;let r;return l;function l(m){return e.enter("definition"),s(m)}function s(m){return Xk.call(i,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function c(m){return r=$r(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),u):n(m)}function u(m){return Kt(m)?Nu(e,h)(m):h(m)}function h(m){return Vk(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function d(m){return e.attempt(oI,p,p)(m)}function p(m){return gt(m)?kt(e,y,"whitespace")(m):y(m)}function y(m){return m===null||Xe(m)?(e.exit("definition"),i.parser.defined.push(r),t(m)):n(m)}}function uI(e,t,n){return i;function i(c){return Kt(c)?Nu(e,r)(c):n(c)}function r(c){return Kk(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function l(c){return gt(c)?kt(e,s,"whitespace")(c):s(c)}function s(c){return c===null||Xe(c)?t(c):n(c)}}const hI={name:"hardBreakEscape",tokenize:fI};function fI(e,t,n){return i;function i(l){return e.enter("hardBreakEscape"),e.consume(l),r}function r(l){return Xe(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const dI={name:"headingAtx",resolve:pI,tokenize:gI};function pI(e,t){let n=e.length-2,i=3,r,l;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},l={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},ar(e,i,n-i+1,[["enter",r,t],["enter",l,t],["exit",l,t],["exit",r,t]])),e}function gI(e,t,n){let i=0;return r;function r(d){return e.enter("atxHeading"),l(d)}function l(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&i++<6?(e.consume(d),s):d===null||Kt(d)?(e.exit("atxHeadingSequence"),c(d)):n(d)}function c(d){return d===35?(e.enter("atxHeadingSequence"),u(d)):d===null||Xe(d)?(e.exit("atxHeading"),t(d)):gt(d)?kt(e,c,"whitespace")(d):(e.enter("atxHeadingText"),h(d))}function u(d){return d===35?(e.consume(d),u):(e.exit("atxHeadingSequence"),c(d))}function h(d){return d===null||d===35||Kt(d)?(e.exit("atxHeadingText"),c(d)):(e.consume(d),h)}}const mI=["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"],xS=["pre","script","style","textarea"],yI={concrete:!0,name:"htmlFlow",resolveTo:_I,tokenize:vI},bI={partial:!0,tokenize:SI},xI={partial:!0,tokenize:wI};function _I(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 vI(e,t,n){const i=this;let r,l,s,c,u;return h;function h(D){return d(D)}function d(D){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(D),p}function p(D){return D===33?(e.consume(D),y):D===47?(e.consume(D),l=!0,_):D===63?(e.consume(D),r=3,i.interrupt?t:B):_i(D)?(e.consume(D),s=String.fromCharCode(D),w):n(D)}function y(D){return D===45?(e.consume(D),r=2,m):D===91?(e.consume(D),r=5,c=0,x):_i(D)?(e.consume(D),r=4,i.interrupt?t:B):n(D)}function m(D){return D===45?(e.consume(D),i.interrupt?t:B):n(D)}function x(D){const he="CDATA[";return D===he.charCodeAt(c++)?(e.consume(D),c===he.length?i.interrupt?t:Z:x):n(D)}function _(D){return _i(D)?(e.consume(D),s=String.fromCharCode(D),w):n(D)}function w(D){if(D===null||D===47||D===62||Kt(D)){const he=D===47,xe=s.toLowerCase();return!he&&!l&&xS.includes(xe)?(r=1,i.interrupt?t(D):Z(D)):mI.includes(s.toLowerCase())?(r=6,he?(e.consume(D),S):i.interrupt?t(D):Z(D)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(D):l?C(D):E(D))}return D===45||li(D)?(e.consume(D),s+=String.fromCharCode(D),w):n(D)}function S(D){return D===62?(e.consume(D),i.interrupt?t:Z):n(D)}function C(D){return gt(D)?(e.consume(D),C):F(D)}function E(D){return D===47?(e.consume(D),F):D===58||D===95||_i(D)?(e.consume(D),N):gt(D)?(e.consume(D),E):F(D)}function N(D){return D===45||D===46||D===58||D===95||li(D)?(e.consume(D),N):M(D)}function M(D){return D===61?(e.consume(D),A):gt(D)?(e.consume(D),M):E(D)}function A(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),u=D,O):gt(D)?(e.consume(D),A):q(D)}function O(D){return D===u?(e.consume(D),u=null,j):D===null||Xe(D)?n(D):(e.consume(D),O)}function q(D){return D===null||D===34||D===39||D===47||D===60||D===61||D===62||D===96||Kt(D)?M(D):(e.consume(D),q)}function j(D){return D===47||D===62||gt(D)?E(D):n(D)}function F(D){return D===62?(e.consume(D),H):n(D)}function H(D){return D===null||Xe(D)?Z(D):gt(D)?(e.consume(D),H):n(D)}function Z(D){return D===45&&r===2?(e.consume(D),L):D===60&&r===1?(e.consume(D),U):D===62&&r===4?(e.consume(D),I):D===63&&r===3?(e.consume(D),B):D===93&&r===5?(e.consume(D),le):Xe(D)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(bI,Q,V)(D)):D===null||Xe(D)?(e.exit("htmlFlowData"),V(D)):(e.consume(D),Z)}function V(D){return e.check(xI,P,Q)(D)}function P(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),z}function z(D){return D===null||Xe(D)?V(D):(e.enter("htmlFlowData"),Z(D))}function L(D){return D===45?(e.consume(D),B):Z(D)}function U(D){return D===47?(e.consume(D),s="",G):Z(D)}function G(D){if(D===62){const he=s.toLowerCase();return xS.includes(he)?(e.consume(D),I):Z(D)}return _i(D)&&s.length<8?(e.consume(D),s+=String.fromCharCode(D),G):Z(D)}function le(D){return D===93?(e.consume(D),B):Z(D)}function B(D){return D===62?(e.consume(D),I):D===45&&r===2?(e.consume(D),B):Z(D)}function I(D){return D===null||Xe(D)?(e.exit("htmlFlowData"),Q(D)):(e.consume(D),I)}function Q(D){return e.exit("htmlFlow"),t(D)}}function wI(e,t,n){const i=this;return r;function r(s){return Xe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),l):n(s)}function l(s){return i.parser.lazy[i.now().line]?n(s):t(s)}}function SI(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(oh,t,n)}}const CI={name:"htmlText",tokenize:kI};function kI(e,t,n){const i=this;let r,l,s;return c;function c(B){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(B),u}function u(B){return B===33?(e.consume(B),h):B===47?(e.consume(B),M):B===63?(e.consume(B),E):_i(B)?(e.consume(B),q):n(B)}function h(B){return B===45?(e.consume(B),d):B===91?(e.consume(B),l=0,x):_i(B)?(e.consume(B),C):n(B)}function d(B){return B===45?(e.consume(B),m):n(B)}function p(B){return B===null?n(B):B===45?(e.consume(B),y):Xe(B)?(s=p,U(B)):(e.consume(B),p)}function y(B){return B===45?(e.consume(B),m):p(B)}function m(B){return B===62?L(B):B===45?y(B):p(B)}function x(B){const I="CDATA[";return B===I.charCodeAt(l++)?(e.consume(B),l===I.length?_:x):n(B)}function _(B){return B===null?n(B):B===93?(e.consume(B),w):Xe(B)?(s=_,U(B)):(e.consume(B),_)}function w(B){return B===93?(e.consume(B),S):_(B)}function S(B){return B===62?L(B):B===93?(e.consume(B),S):_(B)}function C(B){return B===null||B===62?L(B):Xe(B)?(s=C,U(B)):(e.consume(B),C)}function E(B){return B===null?n(B):B===63?(e.consume(B),N):Xe(B)?(s=E,U(B)):(e.consume(B),E)}function N(B){return B===62?L(B):E(B)}function M(B){return _i(B)?(e.consume(B),A):n(B)}function A(B){return B===45||li(B)?(e.consume(B),A):O(B)}function O(B){return Xe(B)?(s=O,U(B)):gt(B)?(e.consume(B),O):L(B)}function q(B){return B===45||li(B)?(e.consume(B),q):B===47||B===62||Kt(B)?j(B):n(B)}function j(B){return B===47?(e.consume(B),L):B===58||B===95||_i(B)?(e.consume(B),F):Xe(B)?(s=j,U(B)):gt(B)?(e.consume(B),j):L(B)}function F(B){return B===45||B===46||B===58||B===95||li(B)?(e.consume(B),F):H(B)}function H(B){return B===61?(e.consume(B),Z):Xe(B)?(s=H,U(B)):gt(B)?(e.consume(B),H):j(B)}function Z(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),r=B,V):Xe(B)?(s=Z,U(B)):gt(B)?(e.consume(B),Z):(e.consume(B),P)}function V(B){return B===r?(e.consume(B),r=void 0,z):B===null?n(B):Xe(B)?(s=V,U(B)):(e.consume(B),V)}function P(B){return B===null||B===34||B===39||B===60||B===61||B===96?n(B):B===47||B===62||Kt(B)?j(B):(e.consume(B),P)}function z(B){return B===47||B===62||Kt(B)?j(B):n(B)}function L(B){return B===62?(e.consume(B),e.exit("htmlTextData"),e.exit("htmlText"),t):n(B)}function U(B){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),G}function G(B){return gt(B)?kt(e,le,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):le(B)}function le(B){return e.enter("htmlTextData"),s(B)}}const Gb={name:"labelEnd",resolveAll:MI,resolveTo:NI,tokenize:OI},EI={tokenize:LI},TI={tokenize:RI},AI={tokenize:DI};function MI(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&ar(e,0,e.length,n),e}function NI(e,t){let n=e.length,i=0,r,l,s,c;for(;n--;)if(r=e[n][1],l){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(l=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(s=n);const u={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[l][1].start},end:{...e[s][1].end}},d={type:"labelText",start:{...e[l+i+2][1].end},end:{...e[s-2][1].start}};return c=[["enter",u,t],["enter",h,t]],c=vr(c,e.slice(l+1,l+i+3)),c=vr(c,[["enter",d,t]]),c=vr(c,Cp(t.parser.constructs.insideSpan.null,e.slice(l+i+4,s-3),t)),c=vr(c,[["exit",d,t],e[s-2],e[s-1],["exit",h,t]]),c=vr(c,e.slice(s+1)),c=vr(c,[["exit",u,t]]),ar(e,l,e.length,c),e}function OI(e,t,n){const i=this;let r=i.events.length,l,s;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){l=i.events[r][1];break}return c;function c(y){return l?l._inactive?p(y):(s=i.parser.defined.includes($r(i.sliceSerialize({start:l.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),u):n(y)}function u(y){return y===40?e.attempt(EI,d,s?d:p)(y):y===91?e.attempt(TI,d,s?h:p)(y):s?d(y):p(y)}function h(y){return e.attempt(AI,d,p)(y)}function d(y){return t(y)}function p(y){return l._balanced=!0,n(y)}}function LI(e,t,n){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),r}function r(p){return Kt(p)?Nu(e,l)(p):l(p)}function l(p){return p===41?d(p):Vk(e,s,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function s(p){return Kt(p)?Nu(e,u)(p):d(p)}function c(p){return n(p)}function u(p){return p===34||p===39||p===40?Kk(e,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):d(p)}function h(p){return Kt(p)?Nu(e,d)(p):d(p)}function d(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function RI(e,t,n){const i=this;return r;function r(c){return Xk.call(i,e,l,s,"reference","referenceMarker","referenceString")(c)}function l(c){return i.parser.defined.includes($r(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function s(c){return n(c)}}function DI(e,t,n){return i;function i(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),r}function r(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),t):n(l)}}const BI={name:"labelStartImage",resolveAll:Gb.resolveAll,tokenize:II};function II(e,t,n){const i=this;return r;function r(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),l}function l(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),s):n(c)}function s(c){return c===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(c):t(c)}}const $I={name:"labelStartLink",resolveAll:Gb.resolveAll,tokenize:FI};function FI(e,t,n){const i=this;return r;function r(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),l}function l(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(s):t(s)}}const y0={name:"lineEnding",tokenize:zI};function zI(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),kt(e,t,"linePrefix")}}const ad={name:"thematicBreak",tokenize:PI};function PI(e,t,n){let i=0,r;return l;function l(h){return e.enter("thematicBreak"),s(h)}function s(h){return r=h,c(h)}function c(h){return h===r?(e.enter("thematicBreakSequence"),u(h)):i>=3&&(h===null||Xe(h))?(e.exit("thematicBreak"),t(h)):n(h)}function u(h){return h===r?(e.consume(h),i++,u):(e.exit("thematicBreakSequence"),gt(h)?kt(e,c,"whitespace")(h):c(h))}}const zi={continuation:{tokenize:jI},exit:WI,name:"list",tokenize:qI},HI={partial:!0,tokenize:YI},UI={partial:!0,tokenize:GI};function qI(e,t,n){const i=this,r=i.events[i.events.length-1];let l=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,s=0;return c;function c(m){const x=i.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!i.containerState.marker||m===i.containerState.marker:dy(m)){if(i.containerState.type||(i.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(ad,n,h)(m):h(m);if(!i.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(m)}return n(m)}function u(m){return dy(m)&&++s<10?(e.consume(m),u):(!i.interrupt||s<2)&&(i.containerState.marker?m===i.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),h(m)):n(m)}function h(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||m,e.check(oh,i.interrupt?n:d,e.attempt(HI,y,p))}function d(m){return i.containerState.initialBlankLine=!0,l++,y(m)}function p(m){return gt(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),y):n(m)}function y(m){return i.containerState.size=l+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function jI(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(oh,r,l);function r(c){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,kt(e,t,"listItemIndent",i.containerState.size+1)(c)}function l(c){return i.containerState.furtherBlankLines||!gt(c)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(c)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(UI,t,s)(c))}function s(c){return i.containerState._closeFlow=!0,i.interrupt=void 0,kt(e,e.attempt(zi,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function GI(e,t,n){const i=this;return kt(e,r,"listItemIndent",i.containerState.size+1);function r(l){const s=i.events[i.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===i.containerState.size?t(l):n(l)}}function WI(e){e.exit(this.containerState.type)}function YI(e,t,n){const i=this;return kt(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(l){const s=i.events[i.events.length-1];return!gt(l)&&s&&s[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const _S={name:"setextUnderline",resolveTo:VI,tokenize:XI};function VI(e,t){let n=e.length,i,r,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",l?(e.splice(r,0,["enter",s,t]),e.splice(l+1,0,["exit",e[i][1],t]),e[i][1].end={...e[l][1].end}):e[i][1]=s,e.push(["exit",s,t]),e}function XI(e,t,n){const i=this;let r;return l;function l(h){let d=i.events.length,p;for(;d--;)if(i.events[d][1].type!=="lineEnding"&&i.events[d][1].type!=="linePrefix"&&i.events[d][1].type!=="content"){p=i.events[d][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),r=h,s(h)):n(h)}function s(h){return e.enter("setextHeadingLineSequence"),c(h)}function c(h){return h===r?(e.consume(h),c):(e.exit("setextHeadingLineSequence"),gt(h)?kt(e,u,"lineSuffix")(h):u(h))}function u(h){return h===null||Xe(h)?(e.exit("setextHeadingLine"),t(h)):n(h)}}const KI={tokenize:ZI};function ZI(e){const t=this,n=e.attempt(oh,i,e.attempt(this.parser.constructs.flowInitial,r,kt(e,e.attempt(this.parser.constructs.flow,r,e.attempt(nI,r)),"linePrefix")));return n;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const QI={resolveAll:Qk()},JI=Zk("string"),e$=Zk("text");function Zk(e){return{resolveAll:Qk(e==="text"?t$:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],l=n.attempt(r,s,c);return s;function s(d){return h(d)?l(d):c(d)}function c(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),u}function u(d){return h(d)?(n.exit("data"),l(d)):(n.consume(d),u)}function h(d){if(d===null)return!0;const p=r[d];let y=-1;if(p)for(;++y<p.length;){const m=p[y];if(!m.previous||m.previous.call(i,i.previous))return!0}return!1}}}function Qk(e){return t;function t(n,i){let r=-1,l;for(;++r<=n.length;)l===void 0?n[r]&&n[r][1].type==="data"&&(l=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==l+2&&(n[l][1].end=n[r-1][1].end,n.splice(l+2,r-l-2),r=l+2),l=void 0);return e?e(n,i):n}}function t$(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],r=t.sliceStream(i);let l=r.length,s=-1,c=0,u;for(;l--;){const h=r[l];if(typeof h=="string"){for(s=h.length;h.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(h===-2)u=!0,c++;else if(h!==-1){l++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const h={type:n===e.length||u||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?s:i.start._bufferIndex+s,_index:i.start._index+l,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(e.splice(n,0,["enter",h,t],["exit",h,t]),n+=2)}n++}return e}const n$={42:zi,43:zi,45:zi,48:zi,49:zi,50:zi,51:zi,52:zi,53:zi,54:zi,55:zi,56:zi,57:zi,62:jk},i$={91:sI},r$={[-2]:m0,[-1]:m0,32:m0},a$={35:dI,42:ad,45:[_S,ad],60:yI,61:_S,95:ad,96:bS,126:bS},l$={38:Wk,92:Gk},s$={[-5]:y0,[-4]:y0,[-3]:y0,33:BI,38:Wk,42:py,60:[$5,CI],91:$I,92:[hI,Gk],93:Gb,95:py,96:K5},o$={null:[py,QI]},c$={null:[42,95]},u$={null:[]},h$=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:c$,contentInitial:i$,disable:u$,document:n$,flow:a$,flowInitial:r$,insideSpan:o$,string:l$,text:s$},Symbol.toStringTag,{value:"Module"}));function f$(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},l=[];let s=[],c=[];const u={attempt:O(M),check:O(A),consume:C,enter:E,exit:N,interrupt:O(A,{interrupt:!0})},h={code:null,containerState:{},defineSkip:_,events:[],now:x,parser:e,previous:null,sliceSerialize:y,sliceStream:m,write:p};let d=t.tokenize.call(h,u);return t.resolveAll&&l.push(t),h;function p(H){return s=vr(s,H),w(),s[s.length-1]!==null?[]:(q(t,0),h.events=Cp(l,h.events,h),h.events)}function y(H,Z){return p$(m(H),Z)}function m(H){return d$(s,H)}function x(){const{_bufferIndex:H,_index:Z,line:V,column:P,offset:z}=i;return{_bufferIndex:H,_index:Z,line:V,column:P,offset:z}}function _(H){r[H.line]=H.column,F()}function w(){let H;for(;i._index<s.length;){const Z=s[i._index];if(typeof Z=="string")for(H=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===H&&i._bufferIndex<Z.length;)S(Z.charCodeAt(i._bufferIndex));else S(Z)}}function S(H){d=d(H)}function C(H){Xe(H)?(i.line++,i.column=1,i.offset+=H===-3?2:1,F()):H!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=H}function E(H,Z){const V=Z||{};return V.type=H,V.start=x(),h.events.push(["enter",V,h]),c.push(V),V}function N(H){const Z=c.pop();return Z.end=x(),h.events.push(["exit",Z,h]),Z}function M(H,Z){q(H,Z.from)}function A(H,Z){Z.restore()}function O(H,Z){return V;function V(P,z,L){let U,G,le,B;return Array.isArray(P)?Q(P):"tokenize"in P?Q([P]):I(P);function I(de){return we;function we(Le){const ze=Le!==null&&de[Le],Qe=Le!==null&&de.null,it=[...Array.isArray(ze)?ze:ze?[ze]:[],...Array.isArray(Qe)?Qe:Qe?[Qe]:[]];return Q(it)(Le)}}function Q(de){return U=de,G=0,de.length===0?L:D(de[G])}function D(de){return we;function we(Le){return B=j(),le=de,de.partial||(h.currentConstruct=de),de.name&&h.parser.constructs.disable.null.includes(de.name)?xe():de.tokenize.call(Z?Object.assign(Object.create(h),Z):h,u,he,xe)(Le)}}function he(de){return H(le,B),z}function xe(de){return B.restore(),++G<U.length?D(U[G]):L}}}function q(H,Z){H.resolveAll&&!l.includes(H)&&l.push(H),H.resolve&&ar(h.events,Z,h.events.length-Z,H.resolve(h.events.slice(Z),h)),H.resolveTo&&(h.events=H.resolveTo(h.events,h))}function j(){const H=x(),Z=h.previous,V=h.currentConstruct,P=h.events.length,z=Array.from(c);return{from:P,restore:L};function L(){i=H,h.previous=Z,h.currentConstruct=V,h.events.length=P,c=z,F()}}function F(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function d$(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,l=t.end._bufferIndex;let s;if(n===r)s=[e[n].slice(i,l)];else{if(s=e.slice(n,r),i>-1){const c=s[0];typeof c=="string"?s[0]=c.slice(i):s.shift()}l>0&&s.push(e[r].slice(0,l))}return s}function p$(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const l=e[n];let s;if(typeof l=="string")s=l;else switch(l){case-5:{s="\r";break}case-4:{s=`
|
|
52
|
+
`;break}case-3:{s=`\r
|
|
53
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&r)continue;s=" ";break}default:s=String.fromCharCode(l)}r=l===-2,i.push(s)}return i.join("")}function g$(e){const i={constructs:Uk([h$,...(e||{}).extensions||[]]),content:r(N5),defined:[],document:r(L5),flow:r(KI),lazy:{},string:r(JI),text:r(e$)};return i;function r(l){return s;function s(c){return f$(i,l,c)}}}function m$(e){for(;!Yk(e););return e}const vS=/[\0\t\n\r]/g;function y$(){let e=1,t="",n=!0,i;return r;function r(l,s,c){const u=[];let h,d,p,y,m;for(l=t+(typeof l=="string"?l.toString():new TextDecoder(s||void 0).decode(l)),p=0,t="",n&&(l.charCodeAt(0)===65279&&p++,n=void 0);p<l.length;){if(vS.lastIndex=p,h=vS.exec(l),y=h&&h.index!==void 0?h.index:l.length,m=l.charCodeAt(y),!h){t=l.slice(p);break}if(m===10&&p===y&&i)u.push(-3),i=void 0;else switch(i&&(u.push(-5),i=void 0),p<y&&(u.push(l.slice(p,y)),e+=y-p),m){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:i=!0,e=1}p=y+1}return c&&(i&&u.push(-5),t&&u.push(t),u.push(null)),u}}const b$=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function x$(e){return e.replace(b$,_$)}function _$(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),l=r===120||r===88;return qk(n.slice(l?2:1),l?16:10)}return jb(n)||e}const Jk={}.hasOwnProperty;function v$(e,t,n){return typeof t!="string"&&(n=t,t=void 0),w$(n)(m$(g$(n).document().write(y$()(e,t,!0))))}function w$(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(gi),autolinkProtocol:j,autolinkEmail:j,atxHeading:l(Hn),blockQuote:l(Qe),characterEscape:j,characterReference:j,codeFenced:l(it),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:l(it,s),codeText:l(gn,s),codeTextData:j,data:j,codeFlowValue:j,definition:l(mn),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:l(hn),hardBreakEscape:l(ht),hardBreakTrailing:l(ht),htmlFlow:l(pi,s),htmlFlowData:j,htmlText:l(pi,s),htmlTextData:j,image:l(On),label:s,link:l(gi),listItem:l(Hr),listItemValue:y,listOrdered:l(Ei,p),listUnordered:l(Ei),paragraph:l(qa),reference:D,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:l(Hn),strong:l(ja),thematicBreak:l(cr)},exit:{atxHeading:u(),atxHeadingSequence:M,autolink:u(),autolinkEmail:ze,autolinkProtocol:Le,blockQuote:u(),characterEscapeValue:F,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:de,characterReference:we,codeFenced:u(w),codeFencedFence:_,codeFencedFenceInfo:m,codeFencedFenceMeta:x,codeFlowValue:F,codeIndented:u(S),codeText:u(z),codeTextData:F,data:F,definition:u(),definitionDestinationString:N,definitionLabelString:C,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(Z),hardBreakTrailing:u(Z),htmlFlow:u(V),htmlFlowData:F,htmlText:u(P),htmlTextData:F,image:u(U),label:le,labelText:G,lineEnding:H,link:u(L),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:he,resourceDestinationString:B,resourceTitleString:I,resource:Q,setextHeading:u(q),setextHeadingLineSequence:O,setextHeadingText:A,strong:u(),thematicBreak:u()}};eE(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(ae){let me={type:"root",children:[]};const qe={stack:[me],tokenStack:[],config:t,enter:c,exit:h,buffer:s,resume:d,data:n},at=[];let vt=-1;for(;++vt<ae.length;)if(ae[vt][1].type==="listOrdered"||ae[vt][1].type==="listUnordered")if(ae[vt][0]==="enter")at.push(vt);else{const Ln=at.pop();vt=r(ae,Ln,vt)}for(vt=-1;++vt<ae.length;){const Ln=t[ae[vt][0]];Jk.call(Ln,ae[vt][1].type)&&Ln[ae[vt][1].type].call(Object.assign({sliceSerialize:ae[vt][2].sliceSerialize},qe),ae[vt][1])}if(qe.tokenStack.length>0){const Ln=qe.tokenStack[qe.tokenStack.length-1];(Ln[1]||wS).call(qe,void 0,Ln[0])}for(me.position={start:yl(ae.length>0?ae[0][1].start:{line:1,column:1,offset:0}),end:yl(ae.length>0?ae[ae.length-2][1].end:{line:1,column:1,offset:0})},vt=-1;++vt<t.transforms.length;)me=t.transforms[vt](me)||me;return me}function r(ae,me,qe){let at=me-1,vt=-1,Ln=!1,Ti,fn,Wt,Zt;for(;++at<=qe;){const yt=ae[at];switch(yt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{yt[0]==="enter"?vt++:vt--,Zt=void 0;break}case"lineEndingBlank":{yt[0]==="enter"&&(Ti&&!Zt&&!vt&&!Wt&&(Wt=at),Zt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Zt=void 0}if(!vt&&yt[0]==="enter"&&yt[1].type==="listItemPrefix"||vt===-1&&yt[0]==="exit"&&(yt[1].type==="listUnordered"||yt[1].type==="listOrdered")){if(Ti){let Ai=at;for(fn=void 0;Ai--;){const Rn=ae[Ai];if(Rn[1].type==="lineEnding"||Rn[1].type==="lineEndingBlank"){if(Rn[0]==="exit")continue;fn&&(ae[fn][1].type="lineEndingBlank",Ln=!0),Rn[1].type="lineEnding",fn=Ai}else if(!(Rn[1].type==="linePrefix"||Rn[1].type==="blockQuotePrefix"||Rn[1].type==="blockQuotePrefixWhitespace"||Rn[1].type==="blockQuoteMarker"||Rn[1].type==="listItemIndent"))break}Wt&&(!fn||Wt<fn)&&(Ti._spread=!0),Ti.end=Object.assign({},fn?ae[fn][1].start:yt[1].end),ae.splice(fn||at,0,["exit",Ti,yt[2]]),at++,qe++}if(yt[1].type==="listItemPrefix"){const Ai={type:"listItem",_spread:!1,start:Object.assign({},yt[1].start),end:void 0};Ti=Ai,ae.splice(at,0,["enter",Ai,yt[2]]),at++,qe++,Wt=void 0,Zt=!0}}}return ae[me][1]._spread=Ln,qe}function l(ae,me){return qe;function qe(at){c.call(this,ae(at),at),me&&me.call(this,at)}}function s(){this.stack.push({type:"fragment",children:[]})}function c(ae,me,qe){this.stack[this.stack.length-1].children.push(ae),this.stack.push(ae),this.tokenStack.push([me,qe||void 0]),ae.position={start:yl(me.start),end:void 0}}function u(ae){return me;function me(qe){ae&&ae.call(this,qe),h.call(this,qe)}}function h(ae,me){const qe=this.stack.pop(),at=this.tokenStack.pop();if(at)at[0].type!==ae.type&&(me?me.call(this,ae,at[0]):(at[1]||wS).call(this,ae,at[0]));else throw new Error("Cannot close `"+ae.type+"` ("+Mu({start:ae.start,end:ae.end})+"): it’s not open");qe.position.end=yl(ae.end)}function d(){return qb(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function y(ae){if(this.data.expectingFirstListItemValue){const me=this.stack[this.stack.length-2];me.start=Number.parseInt(this.sliceSerialize(ae),10),this.data.expectingFirstListItemValue=void 0}}function m(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.lang=ae}function x(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.meta=ae}function _(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.value=ae.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.value=ae.replace(/(\r?\n|\r)$/g,"")}function C(ae){const me=this.resume(),qe=this.stack[this.stack.length-1];qe.label=me,qe.identifier=$r(this.sliceSerialize(ae)).toLowerCase()}function E(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.title=ae}function N(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.url=ae}function M(ae){const me=this.stack[this.stack.length-1];if(!me.depth){const qe=this.sliceSerialize(ae).length;me.depth=qe}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function O(ae){const me=this.stack[this.stack.length-1];me.depth=this.sliceSerialize(ae).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function j(ae){const qe=this.stack[this.stack.length-1].children;let at=qe[qe.length-1];(!at||at.type!=="text")&&(at=Gt(),at.position={start:yl(ae.start),end:void 0},qe.push(at)),this.stack.push(at)}function F(ae){const me=this.stack.pop();me.value+=this.sliceSerialize(ae),me.position.end=yl(ae.end)}function H(ae){const me=this.stack[this.stack.length-1];if(this.data.atHardBreak){const qe=me.children[me.children.length-1];qe.position.end=yl(ae.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(me.type)&&(j.call(this,ae),F.call(this,ae))}function Z(){this.data.atHardBreak=!0}function V(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.value=ae}function P(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.value=ae}function z(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.value=ae}function L(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=me,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function U(){const ae=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";ae.type+="Reference",ae.referenceType=me,delete ae.url,delete ae.title}else delete ae.identifier,delete ae.label;this.data.referenceType=void 0}function G(ae){const me=this.sliceSerialize(ae),qe=this.stack[this.stack.length-2];qe.label=x$(me),qe.identifier=$r(me).toLowerCase()}function le(){const ae=this.stack[this.stack.length-1],me=this.resume(),qe=this.stack[this.stack.length-1];if(this.data.inReference=!0,qe.type==="link"){const at=ae.children;qe.children=at}else qe.alt=me}function B(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.url=ae}function I(){const ae=this.resume(),me=this.stack[this.stack.length-1];me.title=ae}function Q(){this.data.inReference=void 0}function D(){this.data.referenceType="collapsed"}function he(ae){const me=this.resume(),qe=this.stack[this.stack.length-1];qe.label=me,qe.identifier=$r(this.sliceSerialize(ae)).toLowerCase(),this.data.referenceType="full"}function xe(ae){this.data.characterReferenceType=ae.type}function de(ae){const me=this.sliceSerialize(ae),qe=this.data.characterReferenceType;let at;qe?(at=qk(me,qe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):at=jb(me);const vt=this.stack[this.stack.length-1];vt.value+=at}function we(ae){const me=this.stack.pop();me.position.end=yl(ae.end)}function Le(ae){F.call(this,ae);const me=this.stack[this.stack.length-1];me.url=this.sliceSerialize(ae)}function ze(ae){F.call(this,ae);const me=this.stack[this.stack.length-1];me.url="mailto:"+this.sliceSerialize(ae)}function Qe(){return{type:"blockquote",children:[]}}function it(){return{type:"code",lang:null,meta:null,value:""}}function gn(){return{type:"inlineCode",value:""}}function mn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function hn(){return{type:"emphasis",children:[]}}function Hn(){return{type:"heading",depth:0,children:[]}}function ht(){return{type:"break"}}function pi(){return{type:"html",value:""}}function On(){return{type:"image",title:null,url:"",alt:null}}function gi(){return{type:"link",title:null,url:"",children:[]}}function Ei(ae){return{type:"list",ordered:ae.type==="listOrdered",start:null,spread:ae._spread,children:[]}}function Hr(ae){return{type:"listItem",spread:ae._spread,checked:null,children:[]}}function qa(){return{type:"paragraph",children:[]}}function ja(){return{type:"strong",children:[]}}function Gt(){return{type:"text",value:""}}function cr(){return{type:"thematicBreak"}}}function yl(e){return{line:e.line,column:e.column,offset:e.offset}}function eE(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?eE(e,i):S$(e,i)}}function S$(e,t){let n;for(n in t)if(Jk.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function wS(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Mu({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Mu({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Mu({start:t.start,end:t.end})+") is still open")}function C$(e){const t=this;t.parser=n;function n(i){return v$(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function k$(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function E$(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
54
|
+
`}]}function T$(e,t){const n=t.value?t.value+`
|
|
55
|
+
`:"",i={};t.lang&&(i.className=["language-"+t.lang]);let r={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(r.data={meta:t.meta}),e.patch(t,r),r=e.applyData(t,r),r={type:"element",tagName:"pre",properties:{},children:[r]},e.patch(t,r),r}function A$(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function M$(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function N$(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),r=Zo(i.toLowerCase()),l=e.footnoteOrder.indexOf(i);let s,c=e.footnoteCounts.get(i);c===void 0?(c=0,e.footnoteOrder.push(i),s=e.footnoteOrder.length):s=l+1,c+=1,e.footnoteCounts.set(i,c);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(c>1?"-"+c:""),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 O$(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function L$(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function tE(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const r=e.all(t),l=r[0];l&&l.type==="text"?l.value="["+l.value:r.unshift({type:"text",value:"["});const s=r[r.length-1];return s&&s.type==="text"?s.value+=i:r.push({type:"text",value:i}),r}function R$(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return tE(e,t);const r={src:Zo(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const l={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,l),e.applyData(t,l)}function D$(e,t){const n={src:Zo(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function B$(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function I$(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return tE(e,t);const r={href:Zo(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const l={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function $$(e,t){const n={href:Zo(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function F$(e,t,n){const i=e.all(t),r=n?z$(n):nE(t),l={},s=[];if(typeof t.checked=="boolean"){const d=i[0];let p;d&&d.type==="element"&&d.tagName==="p"?p=d:(p={type:"element",tagName:"p",properties:{},children:[]},i.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let c=-1;for(;++c<i.length;){const d=i[c];(r||c!==0||d.type!=="element"||d.tagName!=="p")&&s.push({type:"text",value:`
|
|
56
|
+
`}),d.type==="element"&&d.tagName==="p"&&!r?s.push(...d.children):s.push(d)}const u=i[i.length-1];u&&(r||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
|
|
57
|
+
`});const h={type:"element",tagName:"li",properties:l,children:s};return e.patch(t,h),e.applyData(t,h)}function z$(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=nE(n[i])}return t}function nE(e){const t=e.spread;return t??e.children.length>1}function P$(e,t){const n={},i=e.all(t);let r=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++r<i.length;){const s=i[r];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function H$(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function U$(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function q$(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function j$(e,t){const n=e.all(t),i=n.shift(),r=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],s),r.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=zb(t.children[1]),u=Bk(t.children[t.children.length-1]);c&&u&&(s.position={start:c,end:u}),r.push(s)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function G$(e,t,n){const i=n?n.children:void 0,l=(i?i.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,c=s?s.length:t.children.length;let u=-1;const h=[];for(;++u<c;){const p=t.children[u],y={},m=s?s[u]:void 0;m&&(y.align=m);let x={type:"element",tagName:l,properties:y,children:[]};p&&(x.children=e.all(p),e.patch(p,x),x=e.applyData(p,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 W$(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const SS=9,CS=32;function Y$(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),r=0;const l=[];for(;i;)l.push(kS(t.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=n.exec(t);return l.push(kS(t.slice(r),r>0,!1)),l.join("")}function kS(e,t,n){let i=0,r=e.length;if(t){let l=e.codePointAt(i);for(;l===SS||l===CS;)i++,l=e.codePointAt(i)}if(n){let l=e.codePointAt(r-1);for(;l===SS||l===CS;)r--,l=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}function V$(e,t){const n={type:"text",value:Y$(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function X$(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const K$={blockquote:k$,break:E$,code:T$,delete:A$,emphasis:M$,footnoteReference:N$,heading:O$,html:L$,imageReference:R$,image:D$,inlineCode:B$,linkReference:I$,link:$$,listItem:F$,list:P$,paragraph:H$,root:U$,strong:q$,table:j$,tableCell:W$,tableRow:G$,text:V$,thematicBreak:X$,toml:Bf,yaml:Bf,definition:Bf,footnoteDefinition:Bf};function Bf(){}const iE=-1,kp=0,Ou=1,kd=2,Wb=3,Yb=4,Vb=5,Xb=6,rE=7,aE=8,ES=typeof self=="object"?self:globalThis,Z$=(e,t)=>{const n=(r,l)=>(e.set(l,r),r),i=r=>{if(e.has(r))return e.get(r);const[l,s]=t[r];switch(l){case kp:case iE:return n(s,r);case Ou:{const c=n([],r);for(const u of s)c.push(i(u));return c}case kd:{const c=n({},r);for(const[u,h]of s)c[i(u)]=i(h);return c}case Wb:return n(new Date(s),r);case Yb:{const{source:c,flags:u}=s;return n(new RegExp(c,u),r)}case Vb:{const c=n(new Map,r);for(const[u,h]of s)c.set(i(u),i(h));return c}case Xb:{const c=n(new Set,r);for(const u of s)c.add(i(u));return c}case rE:{const{name:c,message:u}=s;return n(new ES[c](u),r)}case aE:return n(BigInt(s),r);case"BigInt":return n(Object(BigInt(s)),r);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:c}=new Uint8Array(s);return n(new DataView(c),s)}}return n(new ES[l](s),r)};return i},TS=e=>Z$(new Map,e)(0),co="",{toString:Q$}={},{keys:J$}=Object,nu=e=>{const t=typeof e;if(t!=="object"||!e)return[kp,t];const n=Q$.call(e).slice(8,-1);switch(n){case"Array":return[Ou,co];case"Object":return[kd,co];case"Date":return[Wb,co];case"RegExp":return[Yb,co];case"Map":return[Vb,co];case"Set":return[Xb,co];case"DataView":return[Ou,n]}return n.includes("Array")?[Ou,n]:n.includes("Error")?[rE,n]:[kd,n]},If=([e,t])=>e===kp&&(t==="function"||t==="symbol"),eF=(e,t,n,i)=>{const r=(s,c)=>{const u=i.push(s)-1;return n.set(c,u),u},l=s=>{if(n.has(s))return n.get(s);let[c,u]=nu(s);switch(c){case kp:{let d=s;switch(u){case"bigint":c=aE,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);d=null;break;case"undefined":return r([iE],s)}return r([c,d],s)}case Ou:{if(u){let y=s;return u==="DataView"?y=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(y=new Uint8Array(s)),r([u,[...y]],s)}const d=[],p=r([c,d],s);for(const y of s)d.push(l(y));return p}case kd:{if(u)switch(u){case"BigInt":return r([u,s.toString()],s);case"Boolean":case"Number":case"String":return r([u,s.valueOf()],s)}if(t&&"toJSON"in s)return l(s.toJSON());const d=[],p=r([c,d],s);for(const y of J$(s))(e||!If(nu(s[y])))&&d.push([l(y),l(s[y])]);return p}case Wb:return r([c,s.toISOString()],s);case Yb:{const{source:d,flags:p}=s;return r([c,{source:d,flags:p}],s)}case Vb:{const d=[],p=r([c,d],s);for(const[y,m]of s)(e||!(If(nu(y))||If(nu(m))))&&d.push([l(y),l(m)]);return p}case Xb:{const d=[],p=r([c,d],s);for(const y of s)(e||!If(nu(y)))&&d.push(l(y));return p}}const{message:h}=s;return r([c,{name:u,message:h}],s)};return l},AS=(e,{json:t,lossy:n}={})=>{const i=[];return eF(!(t||n),!!t,new Map,i)(e),i},Ed=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?TS(AS(e,t)):structuredClone(e):(e,t)=>TS(AS(e,t));function tF(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function nF(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function iF(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tF,i=e.options.footnoteBackLabel||nF,r=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let u=-1;for(;++u<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[u]);if(!h)continue;const d=e.all(h),p=String(h.identifier).toUpperCase(),y=Zo(p.toLowerCase());let m=0;const x=[],_=e.footnoteCounts.get(p);for(;_!==void 0&&++m<=_;){x.length>0&&x.push({type:"text",value:" "});let C=typeof n=="string"?n:n(u,m);typeof C=="string"&&(C={type:"text",value:C}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+y+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(u,m),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const w=d[d.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const C=w.children[w.children.length-1];C&&C.type==="text"?C.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...x)}else d.push(...x);const S={type:"element",tagName:"li",properties:{id:t+"fn-"+y},children:e.wrap(d,!0)};e.patch(h,S),c.push(S)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Ed(s),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
|
|
58
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
|
|
59
|
+
`}]}}const ch=(function(e){if(e==null)return sF;if(typeof e=="function")return Ep(e);if(typeof e=="object")return Array.isArray(e)?rF(e):aF(e);if(typeof e=="string")return lF(e);throw new Error("Expected function, string, or object as test")});function rF(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=ch(e[n]);return Ep(i);function i(...r){let l=-1;for(;++l<t.length;)if(t[l].apply(this,r))return!0;return!1}}function aF(e){const t=e;return Ep(n);function n(i){const r=i;let l;for(l in e)if(r[l]!==t[l])return!1;return!0}}function lF(e){return Ep(t);function t(n){return n&&n.type===e}}function Ep(e){return t;function t(n,i,r){return!!(oF(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function sF(){return!0}function oF(e){return e!==null&&typeof e=="object"&&"type"in e}const lE=[],cF=!0,gy=!1,uF="skip";function sE(e,t,n,i){let r;typeof t=="function"&&typeof n!="function"?(i=n,n=t):r=t;const l=ch(r),s=i?-1:1;c(e,void 0,[])();function c(u,h,d){const p=u&&typeof u=="object"?u:{};if(typeof p.type=="string"){const m=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(y,"name",{value:"node ("+(u.type+(m?"<"+m+">":""))+")"})}return y;function y(){let m=lE,x,_,w;if((!t||l(u,h,d[d.length-1]||void 0))&&(m=hF(n(u,d)),m[0]===gy))return m;if("children"in u&&u.children){const S=u;if(S.children&&m[0]!==uF)for(_=(i?S.children.length:-1)+s,w=d.concat(S);_>-1&&_<S.children.length;){const C=S.children[_];if(x=c(C,_,w)(),x[0]===gy)return x;_=typeof x[1]=="number"?x[1]:_+s}}return m}}}function hF(e){return Array.isArray(e)?e:typeof e=="number"?[cF,e]:e==null?lE:[e]}function Tp(e,t,n,i){let r,l,s;typeof t=="function"&&typeof n!="function"?(l=void 0,s=t,r=n):(l=t,s=n,r=i),sE(e,l,c,r);function c(u,h){const d=h[h.length-1],p=d?d.children.indexOf(u):void 0;return s(u,p,d)}}const my={}.hasOwnProperty,fF={};function dF(e,t){const n=t||fF,i=new Map,r=new Map,l=new Map,s={...K$,...n.handlers},c={all:h,applyData:gF,definitionById:i,footnoteById:r,footnoteCounts:l,footnoteOrder:[],handlers:s,one:u,options:n,patch:pF,wrap:yF};return Tp(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const p=d.type==="definition"?i:r,y=String(d.identifier).toUpperCase();p.has(y)||p.set(y,d)}}),c;function u(d,p){const y=d.type,m=c.handlers[y];if(my.call(c.handlers,y)&&m)return m(c,d,p);if(c.options.passThrough&&c.options.passThrough.includes(y)){if("children"in d){const{children:_,...w}=d,S=Ed(w);return S.children=c.all(d),S}return Ed(d)}return(c.options.unknownHandler||mF)(c,d,p)}function h(d){const p=[];if("children"in d){const y=d.children;let m=-1;for(;++m<y.length;){const x=c.one(y[m],d);if(x){if(m&&y[m-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=MS(x.value)),!Array.isArray(x)&&x.type==="element")){const _=x.children[0];_&&_.type==="text"&&(_.value=MS(_.value))}Array.isArray(x)?p.push(...x):p.push(x)}}}return p}}function pF(e,t){e.position&&(t.position=n5(e))}function gF(e,t){let n=t;if(e&&e.data){const i=e.data.hName,r=e.data.hChildren,l=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const s="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:s}}n.type==="element"&&l&&Object.assign(n.properties,Ed(l)),"children"in n&&n.children&&r!==null&&r!==void 0&&(n.children=r)}return n}function mF(e,t){const n=t.data||{},i="value"in t&&!(my.call(n,"hProperties")||my.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function yF(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
|
|
60
|
+
`});++i<e.length;)i&&n.push({type:"text",value:`
|
|
61
|
+
`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
62
|
+
`}),n}function MS(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function NS(e,t){const n=dF(e,t),i=n.one(e,void 0),r=iF(n),l=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&l.children.push({type:"text",value:`
|
|
63
|
+
`},r),l}function bF(e,t){return e&&"run"in e?async function(n,i){const r=NS(n,{file:i,...t});await e.run(r,i)}:function(n,i){return NS(n,{file:i,...e||t})}}function OS(e){if(e)throw e}var b0,LS;function xF(){if(LS)return b0;LS=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},l=function(h){if(!h||t.call(h)!=="[object Object]")return!1;var d=e.call(h,"constructor"),p=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!d&&!p)return!1;var y;for(y in h);return typeof y>"u"||e.call(h,y)},s=function(h,d){n&&d.name==="__proto__"?n(h,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):h[d.name]=d.newValue},c=function(h,d){if(d==="__proto__")if(e.call(h,d)){if(i)return i(h,d).value}else return;return h[d]};return b0=function u(){var h,d,p,y,m,x,_=arguments[0],w=1,S=arguments.length,C=!1;for(typeof _=="boolean"&&(C=_,_=arguments[1]||{},w=2),(_==null||typeof _!="object"&&typeof _!="function")&&(_={});w<S;++w)if(h=arguments[w],h!=null)for(d in h)p=c(_,d),y=c(h,d),_!==y&&(C&&y&&(l(y)||(m=r(y)))?(m?(m=!1,x=p&&r(p)?p:[]):x=p&&l(p)?p:{},s(_,{name:d,newValue:u(C,x,y)})):typeof y<"u"&&s(_,{name:d,newValue:y}));return _},b0}var _F=xF();const x0=lh(_F);function yy(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 vF(){const e=[],t={run:n,use:i};return t;function n(...r){let l=-1;const s=r.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);c(null,...r);function c(u,...h){const d=e[++l];let p=-1;if(u){s(u);return}for(;++p<r.length;)(h[p]===null||h[p]===void 0)&&(h[p]=r[p]);r=h,d?wF(d,c)(...h):s(null,...h)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function wF(e,t){let n;return i;function i(...s){const c=e.length>s.length;let u;c&&s.push(r);try{u=e.apply(this,s)}catch(h){const d=h;if(c&&n)throw d;return r(d)}c||(u&&u.then&&typeof u.then=="function"?u.then(l,r):u instanceof Error?r(u):l(u))}function r(s,...c){n||(n=!0,t(s,...c))}function l(s){r(null,s)}}const Zr={basename:SF,dirname:CF,extname:kF,join:EF,sep:"/"};function SF(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');uh(e);let n=0,i=-1,r=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(l){n=r+1;break}}else i<0&&(l=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let s=-1,c=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(l){n=r+1;break}}else s<0&&(l=!0,s=r+1),c>-1&&(e.codePointAt(r)===t.codePointAt(c--)?c<0&&(i=r):(c=-1,i=s));return n===i?i=s:i<0&&(i=e.length),e.slice(n,i)}function CF(e){if(uh(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function kF(e){uh(e);let t=e.length,n=-1,i=0,r=-1,l=0,s;for(;t--;){const c=e.codePointAt(t);if(c===47){if(s){i=t+1;break}continue}n<0&&(s=!0,n=t+1),c===46?r<0?r=t:l!==1&&(l=1):r>-1&&(l=-1)}return r<0||n<0||l===0||l===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function EF(...e){let t=-1,n;for(;++t<e.length;)uh(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":TF(n)}function TF(e){uh(e);const t=e.codePointAt(0)===47;let n=AF(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function AF(e,t){let n="",i=0,r=-1,l=0,s=-1,c,u;for(;++s<=e.length;){if(s<e.length)c=e.codePointAt(s);else{if(c===47)break;c=47}if(c===47){if(!(r===s-1||l===1))if(r!==s-1&&l===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",i=0):(n=n.slice(0,u),i=n.length-1-n.lastIndexOf("/")),r=s,l=0;continue}}else if(n.length>0){n="",i=0,r=s,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,s):n=e.slice(r+1,s),i=s-r-1;r=s,l=0}else c===46&&l>-1?l++:l=-1}return n}function uh(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const MF={cwd:NF};function NF(){return"/"}function by(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function OF(e){if(typeof e=="string")e=new URL(e);else if(!by(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 LF(e)}function LF(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const _0=["history","path","basename","stem","extname","dirname"];class oE{constructor(t){let n;t?by(t)?n={path:t}:typeof t=="string"||RF(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":MF.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<_0.length;){const l=_0[i];l in n&&n[l]!==void 0&&n[l]!==null&&(this[l]=l==="history"?[...n[l]]:n[l])}let r;for(r in n)_0.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?Zr.basename(this.path):void 0}set basename(t){w0(t,"basename"),v0(t,"basename"),this.path=Zr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Zr.dirname(this.path):void 0}set dirname(t){RS(this.basename,"dirname"),this.path=Zr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Zr.extname(this.path):void 0}set extname(t){if(v0(t,"extname"),RS(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=Zr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){by(t)&&(t=OF(t)),w0(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Zr.basename(this.path,this.extname):void 0}set stem(t){w0(t,"stem"),v0(t,"stem"),this.path=Zr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new hi(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function v0(e,t){if(e&&e.includes(Zr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Zr.sep+"`")}function w0(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function RS(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function RF(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const DF=(function(e){const i=this.constructor.prototype,r=i[e],l=function(){return r.apply(l,arguments)};return Object.setPrototypeOf(l,i),l}),BF={}.hasOwnProperty;class Kb extends DF{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=vF()}copy(){const t=new Kb;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(x0(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(k0("data",this.frozen),this.namespace[t]=n,this):BF.call(this.namespace,t)&&this.namespace[t]||void 0:t?(k0("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[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=$f(t),i=this.parser||this.Parser;return S0("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),S0("process",this.parser||this.Parser),C0("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(l,s){const c=$f(t),u=i.parse(c);i.run(u,c,function(d,p,y){if(d||!p||!y)return h(d);const m=p,x=i.stringify(m,y);FF(x)?y.value=x:y.result=x,h(d,y)});function h(d,p){d||!p?s(d):l?l(p):n(void 0,p)}}}processSync(t){let n=!1,i;return this.freeze(),S0("processSync",this.parser||this.Parser),C0("processSync",this.compiler||this.Compiler),this.process(t,r),BS("processSync","process",n),i;function r(l,s){n=!0,OS(l),i=s}}run(t,n,i){DS(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?l(void 0,i):new Promise(l);function l(s,c){const u=$f(n);r.run(t,u,h);function h(d,p,y){const m=p||t;d?c(d):s?s(m):i(void 0,m,y)}}}runSync(t,n){let i=!1,r;return this.run(t,n,l),BS("runSync","run",i),r;function l(s,c){OS(s),r=c,i=!0}}stringify(t,n){this.freeze();const i=$f(n),r=this.compiler||this.Compiler;return C0("stringify",r),DS(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(k0("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function l(h){if(typeof h=="function")u(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[d,...p]=h;u(d,p)}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");c(h.plugins),h.settings&&(r.settings=x0(!0,r.settings,h.settings))}function c(h){let d=-1;if(h!=null)if(Array.isArray(h))for(;++d<h.length;){const p=h[d];l(p)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function u(h,d){let p=-1,y=-1;for(;++p<i.length;)if(i[p][0]===h){y=p;break}if(y===-1)i.push([h,...d]);else if(d.length>0){let[m,...x]=d;const _=i[y][1];yy(_)&&yy(m)&&(m=x0(!0,_,m)),i[y]=[h,m,...x]}}}}const IF=new Kb().freeze();function S0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function C0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function k0(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 DS(e){if(!yy(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function BS(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function $f(e){return $F(e)?e:new oE(e)}function $F(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function FF(e){return typeof e=="string"||zF(e)}function zF(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const PF="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",IS=[],$S={allowDangerousHtml:!0},HF=/^(https?|ircs?|mailto|xmpp)$/i,UF=[{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:"className",id:"remove-classname"},{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 qF(e){const t=jF(e),n=GF(e);return WF(t.runSync(t.parse(n),n),e)}function jF(e){const t=e.rehypePlugins||IS,n=e.remarkPlugins||IS,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...$S}:$S;return IF().use(C$).use(n).use(bF,i).use(t)}function GF(e){const t=e.children||"",n=new oE;return typeof t=="string"&&(n.value=t),n}function WF(e,t){const n=t.allowedElements,i=t.allowElement,r=t.components,l=t.disallowedElements,s=t.skipHtml,c=t.unwrapDisallowed,u=t.urlTransform||YF;for(const d of UF)Object.hasOwn(t,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+PF+d.id,void 0);return Tp(e,h),s5(e,{Fragment:$.Fragment,components:r,ignoreInvalidStyle:!0,jsx:$.jsx,jsxs:$.jsxs,passKeys:!0,passNode:!0});function h(d,p,y){if(d.type==="raw"&&y&&typeof p=="number")return s?y.children.splice(p,1):y.children[p]={type:"text",value:d.value},p;if(d.type==="element"){let m;for(m in g0)if(Object.hasOwn(g0,m)&&Object.hasOwn(d.properties,m)){const x=d.properties[m],_=g0[m];(_===null||_.includes(d.tagName))&&(d.properties[m]=u(String(x||""),m,d))}}if(d.type==="element"){let m=n?!n.includes(d.tagName):l?l.includes(d.tagName):!1;if(!m&&i&&typeof p=="number"&&(m=!i(d,p,y)),m&&y&&typeof p=="number")return c&&d.children?y.children.splice(p,1,...d.children):y.children.splice(p,1),p}}}function YF(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||n!==-1&&t>n||i!==-1&&t>i||HF.test(e.slice(0,t))?e:""}var E0={exports:{}};/*!
|
|
64
|
+
Copyright (c) 2018 Jed Watson.
|
|
65
|
+
Licensed under the MIT License (MIT), see
|
|
66
|
+
http://jedwatson.github.io/classnames
|
|
67
|
+
*/var FS;function VF(){return FS||(FS=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var l="",s=0;s<arguments.length;s++){var c=arguments[s];c&&(l=r(l,i(c)))}return l}function i(l){if(typeof l=="string"||typeof l=="number")return l;if(typeof l!="object")return"";if(Array.isArray(l))return n.apply(null,l);if(l.toString!==Object.prototype.toString&&!l.toString.toString().includes("[native code]"))return l.toString();var s="";for(var c in l)t.call(l,c)&&l[c]&&(s=r(s,c));return s}function r(l,s){return s?l?l+" "+s:l+s:l}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(E0)),E0.exports}var XF=VF();const Or=lh(XF);var zS=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function KF(e,t){return!!(e===t||zS(e)&&zS(t))}function ZF(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!KF(e[n],t[n]))return!1;return!0}function QF(e,t){t===void 0&&(t=ZF);var n=null;function i(){for(var r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var s=e.apply(this,r);return n={lastResult:s,lastArgs:r,lastThis:this},s}return i.clear=function(){n=null},i}function JF(e,t,n){let i=0,r;const l={},s=[];return e.forEach((c,u)=>{const h=t.some(d=>d>=u-n&&d<=u+n);!h&&r===void 0?(r={index:i,startLine:u,endLine:u,lines:1},s.push(r),l[u]=r.index,i++):!h&&r?(r.endLine=u,r.lines++,l[u]=r.index):r=void 0}),{lineBlocks:l,blocks:s}}const e4="modulepreload",t4=function(e){return"/"+e},PS={},Dt=function(t,n,i){let r=Promise.resolve();if(n&&n.length>0){let s=function(h){return Promise.all(h.map(d=>Promise.resolve(d).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),u=(c==null?void 0:c.nonce)||(c==null?void 0:c.getAttribute("nonce"));r=s(n.map(h=>{if(h=t4(h),h in PS)return;PS[h]=!0;const d=h.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const y=document.createElement("link");if(y.rel=d?"stylesheet":e4,d||(y.as="script"),y.crossOrigin="",y.href=h,u&&y.setAttribute("nonce",u),document.head.appendChild(y),d)return new Promise((m,x)=>{y.addEventListener("load",m),y.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${h}`)))})}))}function l(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return r.then(s=>{for(const c of s||[])c.status==="rejected"&&l(c.reason);return t().catch(l)})};class Pa{diff(t,n,i={}){let r;typeof i=="function"?(r=i,i={}):"callback"in i&&(r=i.callback);const l=this.castInput(t,i),s=this.castInput(n,i),c=this.removeEmpty(this.tokenize(l,i)),u=this.removeEmpty(this.tokenize(s,i));return this.diffWithOptionsObj(c,u,i,r)}diffWithOptionsObj(t,n,i,r){var l;const s=C=>{if(C=this.postProcess(C,i),r){setTimeout(function(){r(C)},0);return}else return C},c=n.length,u=t.length;let h=1,d=c+u;i.maxEditLength!=null&&(d=Math.min(d,i.maxEditLength));const p=(l=i.timeout)!==null&&l!==void 0?l:1/0,y=Date.now()+p,m=[{oldPos:-1,lastComponent:void 0}];let x=this.extractCommon(m[0],n,t,0,i);if(m[0].oldPos+1>=u&&x+1>=c)return s(this.buildValues(m[0].lastComponent,n,t));let _=-1/0,w=1/0;const S=()=>{for(let C=Math.max(_,-h);C<=Math.min(w,h);C+=2){let E;const N=m[C-1],M=m[C+1];N&&(m[C-1]=void 0);let A=!1;if(M){const q=M.oldPos-C;A=M&&0<=q&&q<c}const O=N&&N.oldPos+1<u;if(!A&&!O){m[C]=void 0;continue}if(!O||A&&N.oldPos<M.oldPos?E=this.addToPath(M,!0,!1,0,i):E=this.addToPath(N,!1,!0,1,i),x=this.extractCommon(E,n,t,C,i),E.oldPos+1>=u&&x+1>=c)return s(this.buildValues(E.lastComponent,n,t))||!0;m[C]=E,E.oldPos+1>=u&&(w=Math.min(w,C-1)),x+1>=c&&(_=Math.max(_,C+1))}h++};if(r)(function C(){setTimeout(function(){if(h>d||Date.now()>y)return r(void 0);S()||C()},0)})();else for(;h<=d&&Date.now()<=y;){const C=S();if(C)return C}}addToPath(t,n,i,r,l){const s=t.lastComponent;return s&&!l.oneChangePerToken&&s.added===n&&s.removed===i?{oldPos:t.oldPos+r,lastComponent:{count:s.count+1,added:n,removed:i,previousComponent:s.previousComponent}}:{oldPos:t.oldPos+r,lastComponent:{count:1,added:n,removed:i,previousComponent:s}}}extractCommon(t,n,i,r,l){const s=n.length,c=i.length;let u=t.oldPos,h=u-r,d=0;for(;h+1<s&&u+1<c&&this.equals(i[u+1],n[h+1],l);)h++,u++,d++,l.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return d&&!l.oneChangePerToken&&(t.lastComponent={count:d,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=u,h}equals(t,n,i){return i.comparator?i.comparator(t,n):t===n||!!i.ignoreCase&&t.toLowerCase()===n.toLowerCase()}removeEmpty(t){const n=[];for(let i=0;i<t.length;i++)t[i]&&n.push(t[i]);return n}castInput(t,n){return t}tokenize(t,n){return Array.from(t)}join(t){return t.join("")}postProcess(t,n){return t}get useLongestToken(){return!1}buildValues(t,n,i){const r=[];let l;for(;t;)r.push(t),l=t.previousComponent,delete t.previousComponent,t=l;r.reverse();const s=r.length;let c=0,u=0,h=0;for(;c<s;c++){const d=r[c];if(d.removed)d.value=this.join(i.slice(h,h+d.count)),h+=d.count;else{if(!d.added&&this.useLongestToken){let p=n.slice(u,u+d.count);p=p.map(function(y,m){const x=i[h+m];return x.length>y.length?x:y}),d.value=this.join(p)}else d.value=this.join(n.slice(u,u+d.count));u+=d.count,d.added||(h+=d.count)}}return r}}class n4 extends Pa{}const cE=new n4;function i4(e,t,n){return cE.diff(e,t,n)}function HS(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function US(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return"";for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function xy(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function _y(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function iu(e,t){return xy(e,t,"")}function Ff(e,t){return _y(e,t,"")}function qS(e,t){return t.slice(0,r4(e,t))}function r4(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let i=t.length;e.length<t.length&&(i=e.length);const r=Array(i);let l=0;r[0]=0;for(let s=1;s<i;s++){for(t[s]==t[l]?r[s]=r[l]:r[s]=l;l>0&&t[s]!=t[l];)l=r[l];t[s]==t[l]&&l++}l=0;for(let s=n;s<e.length;s++){for(;l>0&&e[s]!=t[l];)l=r[l];e[s]==t[l]&&l++}return l}function a4(e){return e.includes(`\r
|
|
68
|
+
`)&&!e.startsWith(`
|
|
69
|
+
`)&&!e.match(/[^\r]\n/)}function l4(e){return!e.includes(`\r
|
|
70
|
+
`)&&e.includes(`
|
|
71
|
+
`)}function uE(e,t){const n=[];for(const i of Array.from(t.segment(e))){const r=i.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(r)?n[n.length-1]+=r:n.push(r)}return n}function vy(e,t){if(t)return Lu(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function po(e,t){if(t)return Lu(e,t)[0];const n=e.match(/^\s*/);return n?n[0]:""}function Lu(e,t){if(!t)return[po(e),vy(e)];if(t.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');const n=uE(e,t),i=n[0],r=n[n.length-1],l=/\s/.test(i)?i:"",s=/\s/.test(r)?r:"";return[l,s]}const Td="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",s4=new RegExp(`[${Td}]+|\\s+|[^${Td}]`,"ug");class o4 extends Pa{equals(t,n,i){return i.ignoreCase&&(t=t.toLowerCase(),n=n.toLowerCase()),t.trim()===n.trim()}tokenize(t,n={}){let i;if(n.intlSegmenter){const s=n.intlSegmenter;if(s.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');i=uE(t,s)}else i=t.match(s4)||[];const r=[];let l=null;return i.forEach(s=>{/\s/.test(s)?l==null?r.push(s):r.push(r.pop()+s):l!=null&&/\s/.test(l)?r[r.length-1]==l?r.push(r.pop()+s):r.push(l+s):r.push(s),l=s}),r}join(t){return t.map((n,i)=>i==0?n:n.replace(/^\s+/,"")).join("")}postProcess(t,n){if(!t||n.oneChangePerToken)return t;let i=null,r=null,l=null;return t.forEach(s=>{s.added?r=s:s.removed?l=s:((r||l)&&jS(i,l,r,s,n.intlSegmenter),i=s,r=null,l=null)}),(r||l)&&jS(i,l,r,null,n.intlSegmenter),t}}const hE=new o4;function c4(e,t,n){return(n==null?void 0:n.ignoreWhitespace)!=null&&!n.ignoreWhitespace?dE(e,t,n):hE.diff(e,t,n)}function jS(e,t,n,i,r){if(t&&n){const[l,s]=Lu(t.value,r),[c,u]=Lu(n.value,r);if(e){const h=HS(l,c);e.value=_y(e.value,c,h),t.value=iu(t.value,h),n.value=iu(n.value,h)}if(i){const h=US(s,u);i.value=xy(i.value,u,h),t.value=Ff(t.value,h),n.value=Ff(n.value,h)}}else if(n){if(e){const l=po(n.value,r);n.value=n.value.substring(l.length)}if(i){const l=po(i.value,r);i.value=i.value.substring(l.length)}}else if(e&&i){const l=po(i.value,r),[s,c]=Lu(t.value,r),u=HS(l,s);t.value=iu(t.value,u);const h=US(iu(l,u),c);t.value=Ff(t.value,h),i.value=xy(i.value,l,h),e.value=_y(e.value,l,l.slice(0,l.length-h.length))}else if(i){const l=po(i.value,r),s=vy(t.value,r),c=qS(s,l);t.value=Ff(t.value,c)}else if(e){const l=vy(e.value,r),s=po(t.value,r),c=qS(l,s);t.value=iu(t.value,c)}}class u4 extends Pa{tokenize(t){const n=new RegExp(`(\\r?\\n)|[${Td}]+|[^\\S\\n\\r]+|[^${Td}]`,"ug");return t.match(n)||[]}}const fE=new u4;function dE(e,t,n){return fE.diff(e,t,n)}function h4(e,t){if(typeof e=="function")t.callback=e;else if(e)for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}class f4 extends Pa{constructor(){super(...arguments),this.tokenize=pE}equals(t,n,i){return i.ignoreWhitespace?((!i.newlineIsToken||!t.includes(`
|
|
72
|
+
`))&&(t=t.trim()),(!i.newlineIsToken||!n.includes(`
|
|
73
|
+
`))&&(n=n.trim())):i.ignoreNewlineAtEof&&!i.newlineIsToken&&(t.endsWith(`
|
|
74
|
+
`)&&(t=t.slice(0,-1)),n.endsWith(`
|
|
75
|
+
`)&&(n=n.slice(0,-1))),super.equals(t,n,i)}}const Zb=new f4;function Ia(e,t,n){return Zb.diff(e,t,n)}function d4(e,t,n){return n=h4(n,{ignoreWhitespace:!0}),Zb.diff(e,t,n)}function pE(e,t){t.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
76
|
+
`));const n=[],i=e.split(/(\n|\r\n)/);i[i.length-1]||i.pop();for(let r=0;r<i.length;r++){const l=i[r];r%2&&!t.newlineIsToken?n[n.length-1]+=l:n.push(l)}return n}function p4(e){return e=="."||e=="!"||e=="?"}class g4 extends Pa{tokenize(t){var n;const i=[];let r=0;for(let l=0;l<t.length;l++){if(l==t.length-1){i.push(t.slice(r));break}if(p4(t[l])&&t[l+1].match(/\s/)){for(i.push(t.slice(r,l+1)),l=r=l+1;!((n=t[l+1])===null||n===void 0)&&n.match(/\s/);)l++;i.push(t.slice(r,l+1)),r=l+1}}return i}}const gE=new g4;function m4(e,t,n){return gE.diff(e,t,n)}class y4 extends Pa{tokenize(t){return t.split(/([{}:;,]|\s+)/)}}const mE=new y4;function b4(e,t,n){return mE.diff(e,t,n)}class x4 extends Pa{constructor(){super(...arguments),this.tokenize=pE}get useLongestToken(){return!0}castInput(t,n){const{undefinedReplacement:i,stringifyReplacer:r=(l,s)=>typeof s>"u"?i:s}=n;return typeof t=="string"?t:JSON.stringify(Ad(t,null,null,r),null," ")}equals(t,n,i){return super.equals(t.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"),i)}}const yE=new x4;function _4(e,t,n){return yE.diff(e,t,n)}function Ad(e,t,n,i,r){t=t||[],n=n||[],i&&(e=i(r===void 0?"":r,e));let l;for(l=0;l<t.length;l+=1)if(t[l]===e)return n[l];let s;if(Object.prototype.toString.call(e)==="[object Array]"){for(t.push(e),s=new Array(e.length),n.push(s),l=0;l<e.length;l+=1)s[l]=Ad(e[l],t,n,i,String(l));return t.pop(),n.pop(),s}if(e&&e.toJSON&&(e=e.toJSON()),typeof e=="object"&&e!==null){t.push(e),s={},n.push(s);const c=[];let u;for(u in e)Object.prototype.hasOwnProperty.call(e,u)&&c.push(u);for(c.sort(),l=0;l<c.length;l+=1)u=c[l],s[u]=Ad(e[u],t,n,i,u);t.pop(),n.pop()}else s=e;return s}class v4 extends Pa{tokenize(t){return t.slice()}join(t){return t}removeEmpty(t){return t}}const bE=new v4;function w4(e,t,n){return bE.diff(e,t,n)}function xE(e){return Array.isArray(e)?e.map(t=>xE(t)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(t=>Object.assign(Object.assign({},t),{lines:t.lines.map((n,i)=>{var r;return n.startsWith("\\")||n.endsWith("\r")||!((r=t.lines[i+1])===null||r===void 0)&&r.startsWith("\\")?n:n+"\r"})}))})}function _E(e){return Array.isArray(e)?e.map(t=>_E(t)):Object.assign(Object.assign({},e),{hunks:e.hunks.map(t=>Object.assign(Object.assign({},t),{lines:t.lines.map(n=>n.endsWith("\r")?n.substring(0,n.length-1):n)}))})}function S4(e){return Array.isArray(e)||(e=[e]),!e.some(t=>t.hunks.some(n=>n.lines.some(i=>!i.startsWith("\\")&&i.endsWith("\r"))))}function C4(e){return Array.isArray(e)||(e=[e]),e.some(t=>t.hunks.some(n=>n.lines.some(i=>i.endsWith("\r"))))&&e.every(t=>t.hunks.every(n=>n.lines.every((i,r)=>{var l;return i.startsWith("\\")||i.endsWith("\r")||((l=n.lines[r+1])===null||l===void 0?void 0:l.startsWith("\\"))})))}function Qb(e){const t=e.split(/\n/),n=[];let i=0;function r(x){return/^diff --git /.test(x)}function l(x){return r(x)||/^Index:\s/.test(x)||/^diff(?: -r \w+)+\s/.test(x)}function s(x){return/^(---|\+\+\+)\s/.test(x)}function c(x){return/^@@\s/.test(x)}function u(){var x;const _={};_.hunks=[],n.push(_);let w=!1;for(;i<t.length;){const S=t[i];if(s(S)||c(S))break;if(r(S)){if(w)return;w=!0,_.isGit=!0;const C=h(S);for(C&&(_.oldFileName=C.oldFileName,_.newFileName=C.newFileName),i++;i<t.length;){const E=t[i];if(s(E)||c(E)||l(E))break;const N=/^rename from (.*)/.exec(E);N&&(_.oldFileName="a/"+d(N[1]),_.isRename=!0);const M=/^rename to (.*)/.exec(E);M&&(_.newFileName="b/"+d(M[1]),_.isRename=!0);const A=/^copy from (.*)/.exec(E);A&&(_.oldFileName="a/"+d(A[1]),_.isCopy=!0);const O=/^copy to (.*)/.exec(E);O&&(_.newFileName="b/"+d(O[1]),_.isCopy=!0);const q=/^new file mode (\d+)/.exec(E);q&&(_.isCreate=!0,_.newMode=q[1]);const j=/^deleted file mode (\d+)/.exec(E);j&&(_.isDelete=!0,_.oldMode=j[1]);const F=/^old mode (\d+)/.exec(E);F&&(_.oldMode=F[1]);const H=/^new mode (\d+)/.exec(E);H&&(_.newMode=H[1]),/^Binary files /.test(E)&&(_.isBinary=!0),i++}continue}else if(l(S)){if(w)return;w=!0;const C=/^(?:Index:|diff(?: -r \w+)+)\s+/.exec(S);C&&(_.index=S.substring(C[0].length).trim())}i++}if(y(_),y(_),_.oldFileName===void 0!=(_.newFileName===void 0))throw new Error("Missing "+(_.oldFileName!==void 0?'"+++ ..."':'"--- ..."')+" file header for "+((x=_.oldFileName)!==null&&x!==void 0?x:_.newFileName));for(;i<t.length;){const S=t[i];if(l(S)||s(S)||/^===================================================================/.test(S))break;c(S)?_.hunks.push(m()):i++}}function h(x){const _=x.substring(11);if(_.startsWith('"')){const S=p(_);if(S===null)return null;const C=_.substring(S.rawLength+1);let E;if(C.startsWith('"')){const N=p(C);if(N===null)return null;E=N.fileName}else E=C;return{oldFileName:S.fileName,newFileName:E}}const w=_.indexOf('"');if(w>0){const S=_.substring(0,w-1),C=p(_.substring(w));return C===null?null:{oldFileName:S,newFileName:C.fileName}}if(_.startsWith("a/")){const S=[];let C=0;for(;C=_.indexOf(" b/",C+1),C!==-1;)S.push(C);if(S.length>0){const E=S[Math.floor(S.length/2)];return{oldFileName:_.substring(0,E),newFileName:_.substring(E+1)}}}return null}function d(x){if(x.startsWith('"')){const _=p(x);if(_)return _.fileName}return x}function p(x){if(!x.startsWith('"'))return null;let _="",w=1;for(;w<x.length;){if(x[w]==='"')return{fileName:_,rawLength:w+1};if(x[w]==="\\"&&w+1<x.length)switch(w++,x[w]){case"a":_+="\x07";break;case"b":_+="\b";break;case"f":_+="\f";break;case"n":_+=`
|
|
77
|
+
`;break;case"r":_+="\r";break;case"t":_+=" ";break;case"v":_+="\v";break;case"\\":_+="\\";break;case'"':_+='"';break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{if(w+2>=x.length||x[w+1]<"0"||x[w+1]>"7"||x[w+2]<"0"||x[w+2]>"7")return null;const S=[parseInt(x.substring(w,w+3),8)];for(w+=3;x[w]==="\\"&&x[w+1]>="0"&&x[w+1]<="7";){if(w+3>=x.length||x[w+2]<"0"||x[w+2]>"7"||x[w+3]<"0"||x[w+3]>"7")return null;S.push(parseInt(x.substring(w+1,w+4),8)),w+=4}_+=new TextDecoder("utf-8").decode(new Uint8Array(S));continue}default:return null}else _+=x[w];w++}return null}function y(x){const _=/^(---|\+\+\+)\s+/.exec(t[i]);if(_){const w=_[1],S=t[i].substring(3).trim().split(" ",2),C=(S[1]||"").trim();let E=S[0];E.startsWith('"')?E=d(E):E=E.replace(/\\\\/g,"\\"),w==="---"?(x.oldFileName=E,x.oldHeader=C):(x.newFileName=E,x.newHeader=C),i++}}function m(){var x;const _=i,w=t[i++],S=w.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),C={oldStart:+S[1],oldLines:typeof S[2]>"u"?1:+S[2],newStart:+S[3],newLines:typeof S[4]>"u"?1:+S[4],lines:[]};C.oldLines===0&&(C.oldStart+=1),C.newLines===0&&(C.newStart+=1);let E=0,N=0;for(;i<t.length&&(N<C.oldLines||E<C.newLines||!((x=t[i])===null||x===void 0)&&x.startsWith("\\"));i++){const M=t[i].length==0&&i!=t.length-1?" ":t[i][0];if(M==="+"||M==="-"||M===" "||M==="\\")C.lines.push(t[i]),M==="+"?E++:M==="-"?N++:M===" "&&(E++,N++);else throw new Error(`Hunk at line ${_+1} contained invalid line ${t[i]}`)}if(!E&&C.newLines===1&&(C.newLines=0),!N&&C.oldLines===1&&(C.oldLines=0),E!==C.newLines)throw new Error("Added line count did not match for hunk at line "+(_+1));if(N!==C.oldLines)throw new Error("Removed line count did not match for hunk at line "+(_+1));if(i<t.length&&t[i]&&/^[+ -]/.test(t[i])&&!s(t[i]))throw new Error("Hunk at line "+(_+1)+" has more lines than expected (expected "+C.oldLines+" old lines and "+C.newLines+" new lines)");return C}for(;i<t.length;)u();return n}function k4(e,t,n){let i=!0,r=!1,l=!1,s=1;return function c(){if(i&&!l){if(r?s++:i=!1,e+s<=n)return e+s;l=!0}if(!r)return l||(i=!0),t<=e-s?e-s++:(r=!0,c())}}function vE(e,t,n={}){let i;if(typeof t=="string"?i=Qb(t):Array.isArray(t)?i=t:i=[t],i.length>1)throw new Error("applyPatch only works with a single input.");return E4(e,i[0],n)}function E4(e,t,n={}){(n.autoConvertLineEndings||n.autoConvertLineEndings==null)&&(a4(e)&&S4(t)?t=xE(t):l4(e)&&C4(t)&&(t=_E(t)));const i=e.split(`
|
|
78
|
+
`),r=t.hunks,l=n.compareLine||((x,_,w,S)=>_===S),s=n.fuzzFactor||0;let c=0;if(s<0||!Number.isInteger(s))throw new Error("fuzzFactor must be a non-negative integer");if(!r.length)return e;let u="",h=!1,d=!1;for(let x=0;x<r[r.length-1].lines.length;x++){const _=r[r.length-1].lines[x];_[0]=="\\"&&(u[0]=="+"?h=!0:u[0]=="-"&&(d=!0)),u=_}if(h){if(d){if(!s&&i[i.length-1]=="")return!1}else if(i[i.length-1]=="")i.pop();else if(!s)return!1}else if(d){if(i[i.length-1]!="")i.push("");else if(!s)return!1}function p(x,_,w,S=0,C=!0,E=[],N=0){let M=0,A=!1;for(;S<x.length;S++){const O=x[S],q=O.length>0?O[0]:" ",j=O.length>0?O.substr(1):O;if(q==="-")if(l(_+1,i[_],q,j))_++,M=0;else return!w||i[_]==null?null:(E[N]=i[_],p(x,_+1,w-1,S,!1,E,N+1));if(q==="+"){if(!C)return null;E[N]=j,N++,M=0,A=!0}if(q===" ")if(M++,E[N]=i[_],l(_+1,i[_],q,j))N++,C=!0,A=!1,_++;else return A||!w?null:i[_]&&(p(x,_+1,w-1,S+1,!1,E,N+1)||p(x,_+1,w-1,S,!1,E,N+1))||p(x,_,w-1,S+1,!1,E,N)}return N-=M,_-=M,E.length=N,{patchedLines:E,oldLineLastI:_-1}}const y=[];let m=0;for(let x=0;x<r.length;x++){const _=r[x];let w;const S=i.length-_.oldLines+s;let C;for(let E=0;E<=s;E++){C=_.oldStart+m-1;const N=k4(C,c,S);for(;C!==void 0&&(w=p(_.lines,C,E),!w);C=N());if(w)break}if(!w)return!1;for(let E=c;E<C;E++)y.push(i[E]);for(let E=0;E<w.patchedLines.length;E++){const N=w.patchedLines[E];y.push(N)}c=w.oldLineLastI+1,m=C+1-_.oldStart}for(let x=c;x<i.length;x++)y.push(i[x]);return y.join(`
|
|
79
|
+
`)}function T4(e,t){const n=typeof e=="string"?Qb(e):e;let i=0;function r(){const l=n[i++];if(!l)return t.complete();t.loadFile(l,function(s,c){if(s)return t.complete(s);const u=vE(c,l,t);t.patched(l,u,function(h){if(h)return t.complete(h);r()})})}r()}function GS(e){return e===void 0||e==="/dev/null"?e:e.startsWith("a/")?"b/"+e.slice(2):e.startsWith("b/")?"a/"+e.slice(2):e}function wE(e){if(Array.isArray(e))return e.map(n=>wE(n)).reverse();const t=Object.assign(Object.assign({},e),{oldFileName:e.isGit?GS(e.newFileName):e.newFileName,oldHeader:e.newHeader,newFileName:e.isGit?GS(e.oldFileName):e.oldFileName,newHeader:e.oldHeader,oldMode:e.newMode,newMode:e.oldMode,isCreate:e.isDelete,isDelete:e.isCreate,hunks:e.hunks.map(n=>({oldLines:n.newLines,oldStart:n.newStart,newLines:n.oldLines,newStart:n.oldStart,lines:n.lines.map(i=>i.startsWith("-")?`+${i.slice(1)}`:i.startsWith("+")?`-${i.slice(1)}`:i)}))});return e.isCopy&&(t.newFileName="/dev/null",t.newHeader=void 0,t.isDelete=!0,delete t.isCreate,delete t.isCopy,delete t.isRename,t.hunks=[]),t}function A4(e){for(let t=0;t<e.length;t++)if(e[t]<" "||e[t]>"~"||e[t]==='"'||e[t]==="\\")return!0;return!1}function bl(e){if(!A4(e))return e;let t='"';const n=new TextEncoder().encode(e);let i=0;for(;i<n.length;){const r=n[i];r===7?t+="\\a":r===8?t+="\\b":r===9?t+="\\t":r===10?t+="\\n":r===11?t+="\\v":r===12?t+="\\f":r===13?t+="\\r":r===34?t+='\\"':r===92?t+="\\\\":r>=32&&r<=126?t+=String.fromCharCode(r):t+="\\"+r.toString(8).padStart(3,"0"),i++}return t+='"',t}const wy={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0},M4={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!0},N4={includeIndex:!1,includeUnderline:!1,includeFileHeaders:!1};function Sy(e,t,n,i,r,l,s){let c;s?typeof s=="function"?c={callback:s}:c=s:c={},typeof c.context>"u"&&(c.context=4);const u=c.context;if(c.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(c.callback){const{callback:d}=c;Ia(n,i,Object.assign(Object.assign({},c),{callback:p=>{const y=h(p);d(y)}}))}else return h(Ia(n,i,c));function h(d){if(!d)return;d.push({value:"",lines:[]});function p(C){return C.map(function(E){return" "+E})}const y=[];let m=0,x=0,_=[],w=1,S=1;for(let C=0;C<d.length;C++){const E=d[C],N=E.lines||L4(E.value);if(E.lines=N,E.added||E.removed){if(!m){const M=d[C-1];m=w,x=S,M&&(_=u>0?p(M.lines.slice(-u)):[],m-=_.length,x-=_.length)}for(const M of N)_.push((E.added?"+":"-")+M);E.added?S+=N.length:w+=N.length}else{if(m)if(N.length<=u*2&&C<d.length-2)for(const M of p(N))_.push(M);else{const M=Math.min(N.length,u);for(const O of p(N.slice(0,M)))_.push(O);const A={oldStart:m,oldLines:w-m+M,newStart:x,newLines:S-x+M,lines:_};y.push(A),m=0,x=0,_=[]}w+=N.length,S+=N.length}}for(const C of y)for(let E=0;E<C.lines.length;E++)C.lines[E].endsWith(`
|
|
80
|
+
`)?C.lines[E]=C.lines[E].slice(0,-1):(C.lines.splice(E+1,0,"\"),E++);return{oldFileName:e,newFileName:t,oldHeader:r,newHeader:l,hunks:y}}}function Md(e,t){var n,i,r,l,s,c;if(t||(t=wy),Array.isArray(e)){if(e.length>1&&!t.includeFileHeaders&&!e.every(d=>d.isGit))throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map(d=>Md(d,t)).join(`
|
|
81
|
+
`)}const u=[];if(e.isGit){if(t=wy,!e.oldFileName)throw new Error("oldFileName must be specified for Git patches");if(!e.newFileName)throw new Error("newFileName must be specified for Git patches");let d=e.oldFileName,p=e.newFileName;e.isCreate&&d==="/dev/null"?d=p.replace(/^b\//,"a/"):e.isDelete&&p==="/dev/null"&&(p=d.replace(/^a\//,"b/")),u.push("diff --git "+bl(d)+" "+bl(p)),e.isDelete&&u.push("deleted file mode "+((n=e.oldMode)!==null&&n!==void 0?n:"100644")),e.isCreate&&u.push("new file mode "+((i=e.newMode)!==null&&i!==void 0?i:"100644")),e.oldMode&&e.newMode&&!e.isDelete&&!e.isCreate&&(u.push("old mode "+e.oldMode),u.push("new mode "+e.newMode)),e.isRename&&(u.push("rename from "+bl(((r=e.oldFileName)!==null&&r!==void 0?r:"").replace(/^a\//,""))),u.push("rename to "+bl(((l=e.newFileName)!==null&&l!==void 0?l:"").replace(/^b\//,"")))),e.isCopy&&(u.push("copy from "+bl(((s=e.oldFileName)!==null&&s!==void 0?s:"").replace(/^a\//,""))),u.push("copy to "+bl(((c=e.newFileName)!==null&&c!==void 0?c:"").replace(/^b\//,""))))}else t.includeIndex&&e.oldFileName==e.newFileName&&e.oldFileName!==void 0&&u.push("Index: "+e.oldFileName),t.includeUnderline&&u.push("===================================================================");const h=e.hunks.length>0;t.includeFileHeaders&&e.oldFileName!==void 0&&e.newFileName!==void 0&&(!e.isGit||h)&&(u.push("--- "+bl(e.oldFileName)+(e.oldHeader?" "+e.oldHeader:"")),u.push("+++ "+bl(e.newFileName)+(e.newHeader?" "+e.newHeader:"")));for(let d=0;d<e.hunks.length;d++){const p=e.hunks[d],y=p.oldLines===0?p.oldStart-1:p.oldStart,m=p.newLines===0?p.newStart-1:p.newStart;u.push("@@ -"+y+","+p.oldLines+" +"+m+","+p.newLines+" @@");for(const x of p.lines)u.push(x)}return u.join(`
|
|
82
|
+
`)+`
|
|
83
|
+
`}function SE(e,t,n,i,r,l,s){if(typeof s=="function"&&(s={callback:s}),s!=null&&s.callback){const{callback:c}=s;Sy(e,t,n,i,r,l,Object.assign(Object.assign({},s),{callback:u=>{c(u?Md(u,s.headerOptions):void 0)}}))}else{const c=Sy(e,t,n,i,r,l,s);return c?Md(c,s==null?void 0:s.headerOptions):void 0}}function O4(e,t,n,i,r,l){return SE(e,e,t,n,i,r,l)}function L4(e){const t=e.endsWith(`
|
|
84
|
+
`),n=e.split(`
|
|
85
|
+
`).map(i=>i+`
|
|
86
|
+
`);return t?n.pop():n.push(n.pop().slice(0,-1)),n}function R4(e){const t=[];let n,i;for(let r=0;r<e.length;r++)n=e[r],n.added?i=1:n.removed?i=-1:i=0,t.push([i,n.value]);return t}function D4(e){const t=[];for(let n=0;n<e.length;n++){const i=e[n];i.added?t.push("<ins>"):i.removed&&t.push("<del>"),t.push(B4(i.value)),i.added?t.push("</ins>"):i.removed&&t.push("</del>")}return t.join("")}function B4(e){let t=e;return t=t.replace(/&/g,"&"),t=t.replace(/</g,"<"),t=t.replace(/>/g,">"),t=t.replace(/"/g,"""),t}const I4=Object.freeze(Object.defineProperty({__proto__:null,Diff:Pa,FILE_HEADERS_ONLY:M4,INCLUDE_HEADERS:wy,OMIT_HEADERS:N4,applyPatch:vE,applyPatches:T4,arrayDiff:bE,canonicalize:Ad,characterDiff:cE,convertChangesToDMP:R4,convertChangesToXML:D4,createPatch:O4,createTwoFilesPatch:SE,cssDiff:mE,diffArrays:w4,diffChars:i4,diffCss:b4,diffJson:_4,diffLines:Ia,diffSentences:m4,diffTrimmedLines:d4,diffWords:c4,diffWordsWithSpace:dE,formatPatch:Md,jsonDiff:yE,lineDiff:Zb,parsePatch:Qb,reversePatch:wE,sentenceDiff:gE,structuredPatch:Sy,wordDiff:hE,wordsWithSpaceDiff:fE},Symbol.toStringTag,{value:"Module"}));/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function CE(e){return typeof e>"u"||e===null}function $4(e){return typeof e=="object"&&e!==null}function F4(e){return Array.isArray(e)?e:CE(e)?[]:[e]}function z4(e,t){var n,i,r,l;if(t)for(l=Object.keys(t),n=0,i=l.length;n<i;n+=1)r=l[n],e[r]=t[r];return e}function P4(e,t){var n="",i;for(i=0;i<t;i+=1)n+=e;return n}function H4(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var U4=CE,q4=$4,j4=F4,G4=P4,W4=H4,Y4=z4,$n={isNothing:U4,isObject:q4,toArray:j4,repeat:G4,isNegativeZero:W4,extend:Y4};function kE(e,t){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
87
|
+
|
|
88
|
+
`+e.mark.snippet),i+" "+n):i}function Pu(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=kE(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Pu.prototype=Object.create(Error.prototype);Pu.prototype.constructor=Pu;Pu.prototype.toString=function(t){return this.name+": "+kE(this,t)};var Hi=Pu;function T0(e,t,n,i,r){var l="",s="",c=Math.floor(r/2)-1;return i-t>c&&(l=" ... ",t=i-c+l.length),n-i>c&&(s=" ...",n=i+c-s.length),{str:l+e.slice(t,n).replace(/\t/g,"→")+s,pos:i-t+l.length}}function A0(e,t){return $n.repeat(" ",t-e.length)+e}function V4(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 n=/\r?\n|\r|\0/g,i=[0],r=[],l,s=-1;l=n.exec(e.buffer);)r.push(l.index),i.push(l.index+l[0].length),e.position<=l.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var c="",u,h,d=Math.min(e.line+t.linesAfter,r.length).toString().length,p=t.maxLength-(t.indent+d+3);for(u=1;u<=t.linesBefore&&!(s-u<0);u++)h=T0(e.buffer,i[s-u],r[s-u],e.position-(i[s]-i[s-u]),p),c=$n.repeat(" ",t.indent)+A0((e.line-u+1).toString(),d)+" | "+h.str+`
|
|
89
|
+
`+c;for(h=T0(e.buffer,i[s],r[s],e.position,p),c+=$n.repeat(" ",t.indent)+A0((e.line+1).toString(),d)+" | "+h.str+`
|
|
90
|
+
`,c+=$n.repeat("-",t.indent+d+3+h.pos)+`^
|
|
91
|
+
`,u=1;u<=t.linesAfter&&!(s+u>=r.length);u++)h=T0(e.buffer,i[s+u],r[s+u],e.position-(i[s]-i[s+u]),p),c+=$n.repeat(" ",t.indent)+A0((e.line+u+1).toString(),d)+" | "+h.str+`
|
|
92
|
+
`;return c.replace(/\n$/,"")}var X4=V4,K4=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Z4=["scalar","sequence","mapping"];function Q4(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(i){t[String(i)]=n})}),t}function J4(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(K4.indexOf(n)===-1)throw new Hi('Unknown option "'+n+'" 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(n){return n},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=Q4(t.styleAliases||null),Z4.indexOf(this.kind)===-1)throw new Hi('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var si=J4;function WS(e,t){var n=[];return e[t].forEach(function(i){var r=n.length;n.forEach(function(l,s){l.tag===i.tag&&l.kind===i.kind&&l.multi===i.multi&&(r=s)}),n[r]=i}),n}function ez(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function i(r){r.multi?(e.multi[r.kind].push(r),e.multi.fallback.push(r)):e[r.kind][r.tag]=e.fallback[r.tag]=r}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(i);return e}function Cy(e){return this.extend(e)}Cy.prototype.extend=function(t){var n=[],i=[];if(t instanceof si)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new Hi("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(l){if(!(l instanceof si))throw new Hi("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(l.loadKind&&l.loadKind!=="scalar")throw new Hi("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(l.multi)throw new Hi("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(l){if(!(l instanceof si))throw new Hi("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(Cy.prototype);return r.implicit=(this.implicit||[]).concat(n),r.explicit=(this.explicit||[]).concat(i),r.compiledImplicit=WS(r,"implicit"),r.compiledExplicit=WS(r,"explicit"),r.compiledTypeMap=ez(r.compiledImplicit,r.compiledExplicit),r};var tz=Cy,nz=new si("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),iz=new si("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),rz=new si("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),az=new tz({explicit:[nz,iz,rz]});function lz(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function sz(){return null}function oz(e){return e===null}var cz=new si("tag:yaml.org,2002:null",{kind:"scalar",resolve:lz,construct:sz,predicate:oz,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function uz(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")}function hz(e){return e==="true"||e==="True"||e==="TRUE"}function fz(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var dz=new si("tag:yaml.org,2002:bool",{kind:"scalar",resolve:uz,construct:hz,predicate:fz,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function pz(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function gz(e){return 48<=e&&e<=55}function mz(e){return 48<=e&&e<=57}function yz(e){if(e===null)return!1;var t=e.length,n=0,i=!1,r;if(!t)return!1;if(r=e[n],(r==="-"||r==="+")&&(r=e[++n]),r==="0"){if(n+1===t)return!0;if(r=e[++n],r==="b"){for(n++;n<t;n++)if(r=e[n],r!=="_"){if(r!=="0"&&r!=="1")return!1;i=!0}return i&&r!=="_"}if(r==="x"){for(n++;n<t;n++)if(r=e[n],r!=="_"){if(!pz(e.charCodeAt(n)))return!1;i=!0}return i&&r!=="_"}if(r==="o"){for(n++;n<t;n++)if(r=e[n],r!=="_"){if(!gz(e.charCodeAt(n)))return!1;i=!0}return i&&r!=="_"}}if(r==="_")return!1;for(;n<t;n++)if(r=e[n],r!=="_"){if(!mz(e.charCodeAt(n)))return!1;i=!0}return!(!i||r==="_")}function bz(e){var t=e,n=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(n=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function xz(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!$n.isNegativeZero(e)}var _z=new si("tag:yaml.org,2002:int",{kind:"scalar",resolve:yz,construct:bz,predicate:xz,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),vz=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function wz(e){return!(e===null||!vz.test(e)||e[e.length-1]==="_")}function Sz(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var Cz=/^[-+]?[0-9]+e/;function kz(e,t){var n;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($n.isNegativeZero(e))return"-0.0";return n=e.toString(10),Cz.test(n)?n.replace("e",".e"):n}function Ez(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||$n.isNegativeZero(e))}var Tz=new si("tag:yaml.org,2002:float",{kind:"scalar",resolve:wz,construct:Sz,predicate:Ez,represent:kz,defaultStyle:"lowercase"}),Az=az.extend({implicit:[cz,dz,_z,Tz]}),Mz=Az,EE=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),TE=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 Nz(e){return e===null?!1:EE.exec(e)!==null||TE.exec(e)!==null}function Oz(e){var t,n,i,r,l,s,c,u=0,h=null,d,p,y;if(t=EE.exec(e),t===null&&(t=TE.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(l=+t[4],s=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(d=+t[10],p=+(t[11]||0),h=(d*60+p)*6e4,t[9]==="-"&&(h=-h)),y=new Date(Date.UTC(n,i,r,l,s,c,u)),h&&y.setTime(y.getTime()-h),y}function Lz(e){return e.toISOString()}var Rz=new si("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Nz,construct:Oz,instanceOf:Date,represent:Lz});function Dz(e){return e==="<<"||e===null}var Bz=new si("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Dz}),Jb=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
93
|
+
\r`;function Iz(e){if(e===null)return!1;var t,n,i=0,r=e.length,l=Jb;for(n=0;n<r;n++)if(t=l.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function $z(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,l=Jb,s=0,c=[];for(t=0;t<r;t++)t%4===0&&t&&(c.push(s>>16&255),c.push(s>>8&255),c.push(s&255)),s=s<<6|l.indexOf(i.charAt(t));return n=r%4*6,n===0?(c.push(s>>16&255),c.push(s>>8&255),c.push(s&255)):n===18?(c.push(s>>10&255),c.push(s>>2&255)):n===12&&c.push(s>>4&255),new Uint8Array(c)}function Fz(e){var t="",n=0,i,r,l=e.length,s=Jb;for(i=0;i<l;i++)i%3===0&&i&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[i];return r=l%3,r===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):r===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):r===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function zz(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Pz=new si("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Iz,construct:$z,predicate:zz,represent:Fz}),Hz=Object.prototype.hasOwnProperty,Uz=Object.prototype.toString;function qz(e){if(e===null)return!0;var t=[],n,i,r,l,s,c=e;for(n=0,i=c.length;n<i;n+=1){if(r=c[n],s=!1,Uz.call(r)!=="[object Object]")return!1;for(l in r)if(Hz.call(r,l))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(l)===-1)t.push(l);else return!1}return!0}function jz(e){return e!==null?e:[]}var Gz=new si("tag:yaml.org,2002:omap",{kind:"sequence",resolve:qz,construct:jz}),Wz=Object.prototype.toString;function Yz(e){if(e===null)return!0;var t,n,i,r,l,s=e;for(l=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(i=s[t],Wz.call(i)!=="[object Object]"||(r=Object.keys(i),r.length!==1))return!1;l[t]=[r[0],i[r[0]]]}return!0}function Vz(e){if(e===null)return[];var t,n,i,r,l,s=e;for(l=new Array(s.length),t=0,n=s.length;t<n;t+=1)i=s[t],r=Object.keys(i),l[t]=[r[0],i[r[0]]];return l}var Xz=new si("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Yz,construct:Vz}),Kz=Object.prototype.hasOwnProperty;function Zz(e){if(e===null)return!0;var t,n=e;for(t in n)if(Kz.call(n,t)&&n[t]!==null)return!1;return!0}function Qz(e){return e!==null?e:{}}var Jz=new si("tag:yaml.org,2002:set",{kind:"mapping",resolve:Zz,construct:Qz}),AE=Mz.extend({implicit:[Rz,Bz],explicit:[Pz,Gz,Xz,Jz]}),kl=Object.prototype.hasOwnProperty,Nd=1,ME=2,NE=3,Od=4,M0=1,e6=2,YS=3,t6=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,n6=/[\x85\u2028\u2029]/,i6=/[,\[\]\{\}]/,OE=/^(?:!|!!|![a-z\-]+!)$/i,LE=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function VS(e){return Object.prototype.toString.call(e)}function ea(e){return e===10||e===13}function cs(e){return e===9||e===32}function qi(e){return e===9||e===32||e===10||e===13}function vo(e){return e===44||e===91||e===93||e===123||e===125}function r6(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function a6(e){return e===120?2:e===117?4:e===85?8:0}function l6(e){return 48<=e&&e<=57?e-48:-1}function XS(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
94
|
+
`: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":""}function s6(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function RE(e,t,n){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}var DE=new Array(256),BE=new Array(256);for(var uo=0;uo<256;uo++)DE[uo]=XS(uo)?1:0,BE[uo]=XS(uo);function o6(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||AE,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function IE(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=X4(n),new Hi(t,n)}function Ue(e,t){throw IE(e,t)}function Ld(e,t){e.onWarning&&e.onWarning.call(null,IE(e,t))}var KS={YAML:function(t,n,i){var r,l,s;t.version!==null&&Ue(t,"duplication of %YAML directive"),i.length!==1&&Ue(t,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),r===null&&Ue(t,"ill-formed argument of the YAML directive"),l=parseInt(r[1],10),s=parseInt(r[2],10),l!==1&&Ue(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Ld(t,"unsupported YAML version of the document")},TAG:function(t,n,i){var r,l;i.length!==2&&Ue(t,"TAG directive accepts exactly two arguments"),r=i[0],l=i[1],OE.test(r)||Ue(t,"ill-formed tag handle (first argument) of the TAG directive"),kl.call(t.tagMap,r)&&Ue(t,'there is a previously declared suffix for "'+r+'" tag handle'),LE.test(l)||Ue(t,"ill-formed tag prefix (second argument) of the TAG directive");try{l=decodeURIComponent(l)}catch{Ue(t,"tag prefix is malformed: "+l)}t.tagMap[r]=l}};function Sl(e,t,n,i){var r,l,s,c;if(t<n){if(c=e.input.slice(t,n),i)for(r=0,l=c.length;r<l;r+=1)s=c.charCodeAt(r),s===9||32<=s&&s<=1114111||Ue(e,"expected valid JSON character");else t6.test(c)&&Ue(e,"the stream contains non-printable characters");e.result+=c}}function ZS(e,t,n,i){var r,l,s,c;for($n.isObject(n)||Ue(e,"cannot merge mappings; the provided source object is unacceptable"),r=Object.keys(n),s=0,c=r.length;s<c;s+=1)l=r[s],kl.call(t,l)||(RE(t,l,n[l]),i[l]=!0)}function wo(e,t,n,i,r,l,s,c,u){var h,d;if(Array.isArray(r))for(r=Array.prototype.slice.call(r),h=0,d=r.length;h<d;h+=1)Array.isArray(r[h])&&Ue(e,"nested arrays are not supported inside keys"),typeof r=="object"&&VS(r[h])==="[object Object]"&&(r[h]="[object Object]");if(typeof r=="object"&&VS(r)==="[object Object]"&&(r="[object Object]"),r=String(r),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(l))for(h=0,d=l.length;h<d;h+=1)ZS(e,t,l[h],n);else ZS(e,t,l,n);else!e.json&&!kl.call(n,r)&&kl.call(t,r)&&(e.line=s||e.line,e.lineStart=c||e.lineStart,e.position=u||e.position,Ue(e,"duplicated mapping key")),RE(t,r,l),delete n[r];return t}function ex(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++):Ue(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Nn(e,t,n){for(var i=0,r=e.input.charCodeAt(e.position);r!==0;){for(;cs(r);)r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&r===35)do r=e.input.charCodeAt(++e.position);while(r!==10&&r!==13&&r!==0);if(ea(r))for(ex(e),r=e.input.charCodeAt(e.position),i++,e.lineIndent=0;r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return n!==-1&&i!==0&&e.lineIndent<n&&Ld(e,"deficient indentation"),i}function Ap(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||qi(n)))}function tx(e,t){t===1?e.result+=" ":t>1&&(e.result+=$n.repeat(`
|
|
95
|
+
`,t-1))}function c6(e,t,n){var i,r,l,s,c,u,h,d,p=e.kind,y=e.result,m;if(m=e.input.charCodeAt(e.position),qi(m)||vo(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(r=e.input.charCodeAt(e.position+1),qi(r)||n&&vo(r)))return!1;for(e.kind="scalar",e.result="",l=s=e.position,c=!1;m!==0;){if(m===58){if(r=e.input.charCodeAt(e.position+1),qi(r)||n&&vo(r))break}else if(m===35){if(i=e.input.charCodeAt(e.position-1),qi(i))break}else{if(e.position===e.lineStart&&Ap(e)||n&&vo(m))break;if(ea(m))if(u=e.line,h=e.lineStart,d=e.lineIndent,Nn(e,!1,-1),e.lineIndent>=t){c=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=u,e.lineStart=h,e.lineIndent=d;break}}c&&(Sl(e,l,s,!1),tx(e,e.line-u),l=s=e.position,c=!1),cs(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position)}return Sl(e,l,s,!1),e.result?!0:(e.kind=p,e.result=y,!1)}function u6(e,t){var n,i,r;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Sl(e,i,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)i=e.position,e.position++,r=e.position;else return!0;else ea(n)?(Sl(e,i,r,!0),tx(e,Nn(e,!1,t)),i=r=e.position):e.position===e.lineStart&&Ap(e)?Ue(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);Ue(e,"unexpected end of the stream within a single quoted scalar")}function h6(e,t){var n,i,r,l,s,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Sl(e,n,e.position,!0),e.position++,!0;if(c===92){if(Sl(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),ea(c))Nn(e,!1,t);else if(c<256&&DE[c])e.result+=BE[c],e.position++;else if((s=a6(c))>0){for(r=s,l=0;r>0;r--)c=e.input.charCodeAt(++e.position),(s=r6(c))>=0?l=(l<<4)+s:Ue(e,"expected hexadecimal character");e.result+=s6(l),e.position++}else Ue(e,"unknown escape sequence");n=i=e.position}else ea(c)?(Sl(e,n,i,!0),tx(e,Nn(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Ap(e)?Ue(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}Ue(e,"unexpected end of the stream within a double quoted scalar")}function f6(e,t){var n=!0,i,r,l,s=e.tag,c,u=e.anchor,h,d,p,y,m,x=Object.create(null),_,w,S,C;if(C=e.input.charCodeAt(e.position),C===91)d=93,m=!1,c=[];else if(C===123)d=125,m=!0,c={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),C=e.input.charCodeAt(++e.position);C!==0;){if(Nn(e,!0,t),C=e.input.charCodeAt(e.position),C===d)return e.position++,e.tag=s,e.anchor=u,e.kind=m?"mapping":"sequence",e.result=c,!0;n?C===44&&Ue(e,"expected the node content, but found ','"):Ue(e,"missed comma between flow collection entries"),w=_=S=null,p=y=!1,C===63&&(h=e.input.charCodeAt(e.position+1),qi(h)&&(p=y=!0,e.position++,Nn(e,!0,t))),i=e.line,r=e.lineStart,l=e.position,zo(e,t,Nd,!1,!0),w=e.tag,_=e.result,Nn(e,!0,t),C=e.input.charCodeAt(e.position),(y||e.line===i)&&C===58&&(p=!0,C=e.input.charCodeAt(++e.position),Nn(e,!0,t),zo(e,t,Nd,!1,!0),S=e.result),m?wo(e,c,x,w,_,S,i,r,l):p?c.push(wo(e,null,x,w,_,S,i,r,l)):c.push(_),Nn(e,!0,t),C=e.input.charCodeAt(e.position),C===44?(n=!0,C=e.input.charCodeAt(++e.position)):n=!1}Ue(e,"unexpected end of the stream within a flow collection")}function d6(e,t){var n,i,r=M0,l=!1,s=!1,c=t,u=0,h=!1,d,p;if(p=e.input.charCodeAt(e.position),p===124)i=!1;else if(p===62)i=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)M0===r?r=p===43?YS:e6:Ue(e,"repeat of a chomping mode identifier");else if((d=l6(p))>=0)d===0?Ue(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Ue(e,"repeat of an indentation width identifier"):(c=t+d-1,s=!0);else break;if(cs(p)){do p=e.input.charCodeAt(++e.position);while(cs(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!ea(p)&&p!==0)}for(;p!==0;){for(ex(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!s||e.lineIndent<c)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>c&&(c=e.lineIndent),ea(p)){u++;continue}if(e.lineIndent<c){r===YS?e.result+=$n.repeat(`
|
|
96
|
+
`,l?1+u:u):r===M0&&l&&(e.result+=`
|
|
97
|
+
`);break}for(i?cs(p)?(h=!0,e.result+=$n.repeat(`
|
|
98
|
+
`,l?1+u:u)):h?(h=!1,e.result+=$n.repeat(`
|
|
99
|
+
`,u+1)):u===0?l&&(e.result+=" "):e.result+=$n.repeat(`
|
|
100
|
+
`,u):e.result+=$n.repeat(`
|
|
101
|
+
`,l?1+u:u),l=!0,s=!0,u=0,n=e.position;!ea(p)&&p!==0;)p=e.input.charCodeAt(++e.position);Sl(e,n,e.position,!1)}return!0}function QS(e,t){var n,i=e.tag,r=e.anchor,l=[],s,c=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Ue(e,"tab characters must not be used in indentation")),!(u!==45||(s=e.input.charCodeAt(e.position+1),!qi(s))));){if(c=!0,e.position++,Nn(e,!0,-1)&&e.lineIndent<=t){l.push(null),u=e.input.charCodeAt(e.position);continue}if(n=e.line,zo(e,t,NE,!1,!0),l.push(e.result),Nn(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&u!==0)Ue(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=i,e.anchor=r,e.kind="sequence",e.result=l,!0):!1}function p6(e,t,n){var i,r,l,s,c,u,h=e.tag,d=e.anchor,p={},y=Object.create(null),m=null,x=null,_=null,w=!1,S=!1,C;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),C=e.input.charCodeAt(e.position);C!==0;){if(!w&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Ue(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),l=e.line,(C===63||C===58)&&qi(i))C===63?(w&&(wo(e,p,y,m,x,null,s,c,u),m=x=_=null),S=!0,w=!0,r=!0):w?(w=!1,r=!0):Ue(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,C=i;else{if(s=e.line,c=e.lineStart,u=e.position,!zo(e,n,ME,!1,!0))break;if(e.line===l){for(C=e.input.charCodeAt(e.position);cs(C);)C=e.input.charCodeAt(++e.position);if(C===58)C=e.input.charCodeAt(++e.position),qi(C)||Ue(e,"a whitespace character is expected after the key-value separator within a block mapping"),w&&(wo(e,p,y,m,x,null,s,c,u),m=x=_=null),S=!0,w=!1,r=!1,m=e.tag,x=e.result;else if(S)Ue(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=h,e.anchor=d,!0}else if(S)Ue(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===l||e.lineIndent>t)&&(w&&(s=e.line,c=e.lineStart,u=e.position),zo(e,t,Od,!0,r)&&(w?x=e.result:_=e.result),w||(wo(e,p,y,m,x,_,s,c,u),m=x=_=null),Nn(e,!0,-1),C=e.input.charCodeAt(e.position)),(e.line===l||e.lineIndent>t)&&C!==0)Ue(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return w&&wo(e,p,y,m,x,null,s,c,u),S&&(e.tag=h,e.anchor=d,e.kind="mapping",e.result=p),S}function g6(e){var t,n=!1,i=!1,r,l,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&Ue(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(i=!0,r="!!",s=e.input.charCodeAt(++e.position)):r="!",t=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(l=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Ue(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!qi(s);)s===33&&(i?Ue(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),OE.test(r)||Ue(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);l=e.input.slice(t,e.position),i6.test(l)&&Ue(e,"tag suffix cannot contain flow indicator characters")}l&&!LE.test(l)&&Ue(e,"tag name cannot contain such characters: "+l);try{l=decodeURIComponent(l)}catch{Ue(e,"tag name is malformed: "+l)}return n?e.tag=l:kl.call(e.tagMap,r)?e.tag=e.tagMap[r]+l:r==="!"?e.tag="!"+l:r==="!!"?e.tag="tag:yaml.org,2002:"+l:Ue(e,'undeclared tag handle "'+r+'"'),!0}function m6(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&Ue(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!qi(n)&&!vo(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Ue(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function y6(e){var t,n,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!qi(i)&&!vo(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&Ue(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),kl.call(e.anchorMap,n)||Ue(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Nn(e,!0,-1),!0}function zo(e,t,n,i,r){var l,s,c,u=1,h=!1,d=!1,p,y,m,x,_,w;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,l=s=c=Od===n||NE===n,i&&Nn(e,!0,-1)&&(h=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;g6(e)||m6(e);)Nn(e,!0,-1)?(h=!0,c=l,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=h||r),(u===1||Od===n)&&(Nd===n||ME===n?_=t:_=t+1,w=e.position-e.lineStart,u===1?c&&(QS(e,w)||p6(e,w,_))||f6(e,_)?d=!0:(s&&d6(e,_)||u6(e,_)||h6(e,_)?d=!0:y6(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&Ue(e,"alias node should not have any properties")):c6(e,_,Nd===n)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(d=c&&QS(e,w))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Ue(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,y=e.implicitTypes.length;p<y;p+=1)if(x=e.implicitTypes[p],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(kl.call(e.typeMap[e.kind||"fallback"],e.tag))x=e.typeMap[e.kind||"fallback"][e.tag];else for(x=null,m=e.typeMap.multi[e.kind||"fallback"],p=0,y=m.length;p<y;p+=1)if(e.tag.slice(0,m[p].tag.length)===m[p].tag){x=m[p];break}x||Ue(e,"unknown tag !<"+e.tag+">"),e.result!==null&&x.kind!==e.kind&&Ue(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)):Ue(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}function b6(e){var t=e.position,n,i,r,l=!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&&(Nn(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(l=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!qi(s);)s=e.input.charCodeAt(++e.position);for(i=e.input.slice(n,e.position),r=[],i.length<1&&Ue(e,"directive name must not be less than one character in length");s!==0;){for(;cs(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!ea(s));break}if(ea(s))break;for(n=e.position;s!==0&&!qi(s);)s=e.input.charCodeAt(++e.position);r.push(e.input.slice(n,e.position))}s!==0&&ex(e),kl.call(KS,i)?KS[i](e,i,r):Ld(e,'unknown document directive "'+i+'"')}if(Nn(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,Nn(e,!0,-1)):l&&Ue(e,"directives end mark is expected"),zo(e,e.lineIndent-1,Od,!1,!0),Nn(e,!0,-1),e.checkLineBreaks&&n6.test(e.input.slice(t,e.position))&&Ld(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ap(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Nn(e,!0,-1));return}if(e.position<e.length-1)Ue(e,"end of the stream or a document separator is expected");else return}function x6(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
102
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new o6(e,t),i=e.indexOf("\0");for(i!==-1&&(n.position=i,Ue(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)b6(n);return n.documents}function _6(e,t){var n=x6(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Hi("expected a single document in the stream, but found more")}}var v6=_6,w6={load:v6},$E=Object.prototype.toString,FE=Object.prototype.hasOwnProperty,nx=65279,S6=9,Hu=10,C6=13,k6=32,E6=33,T6=34,ky=35,A6=37,M6=38,N6=39,O6=42,zE=44,L6=45,Rd=58,R6=61,D6=62,B6=63,I6=64,PE=91,HE=93,$6=96,UE=123,F6=124,qE=125,fi={};fi[0]="\\0";fi[7]="\\a";fi[8]="\\b";fi[9]="\\t";fi[10]="\\n";fi[11]="\\v";fi[12]="\\f";fi[13]="\\r";fi[27]="\\e";fi[34]='\\"';fi[92]="\\\\";fi[133]="\\N";fi[160]="\\_";fi[8232]="\\L";fi[8233]="\\P";var z6=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],P6=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function H6(e,t){var n,i,r,l,s,c,u;if(t===null)return{};for(n={},i=Object.keys(t),r=0,l=i.length;r<l;r+=1)s=i[r],c=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),u=e.compiledTypeMap.fallback[s],u&&FE.call(u.styleAliases,c)&&(c=u.styleAliases[c]),n[s]=c;return n}function U6(e){var t,n,i;if(t=e.toString(16).toUpperCase(),e<=255)n="x",i=2;else if(e<=65535)n="u",i=4;else if(e<=4294967295)n="U",i=8;else throw new Hi("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+$n.repeat("0",i-t.length)+t}var q6=1,Uu=2;function j6(e){this.schema=e.schema||AE,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=$n.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=H6(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==='"'?Uu:q6,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}function JS(e,t){for(var n=$n.repeat(" ",t),i=0,r=-1,l="",s,c=e.length;i<c;)r=e.indexOf(`
|
|
103
|
+
`,i),r===-1?(s=e.slice(i),i=c):(s=e.slice(i,r+1),i=r+1),s.length&&s!==`
|
|
104
|
+
`&&(l+=n),l+=s;return l}function Ey(e,t){return`
|
|
105
|
+
`+$n.repeat(" ",e.indent*t)}function G6(e,t){var n,i,r;for(n=0,i=e.implicitTypes.length;n<i;n+=1)if(r=e.implicitTypes[n],r.resolve(t))return!0;return!1}function Dd(e){return e===k6||e===S6}function qu(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==nx||65536<=e&&e<=1114111}function eC(e){return qu(e)&&e!==nx&&e!==C6&&e!==Hu}function tC(e,t,n){var i=eC(e),r=i&&!Dd(e);return(n?i:i&&e!==zE&&e!==PE&&e!==HE&&e!==UE&&e!==qE)&&e!==ky&&!(t===Rd&&!r)||eC(t)&&!Dd(t)&&e===ky||t===Rd&&r}function W6(e){return qu(e)&&e!==nx&&!Dd(e)&&e!==L6&&e!==B6&&e!==Rd&&e!==zE&&e!==PE&&e!==HE&&e!==UE&&e!==qE&&e!==ky&&e!==M6&&e!==O6&&e!==E6&&e!==F6&&e!==R6&&e!==D6&&e!==N6&&e!==T6&&e!==A6&&e!==I6&&e!==$6}function Y6(e){return!Dd(e)&&e!==Rd}function xu(e,t){var n=e.charCodeAt(t),i;return n>=55296&&n<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function jE(e){var t=/^\n* /;return t.test(e)}var GE=1,Ty=2,WE=3,YE=4,go=5;function V6(e,t,n,i,r,l,s,c){var u,h=0,d=null,p=!1,y=!1,m=i!==-1,x=-1,_=W6(xu(e,0))&&Y6(xu(e,e.length-1));if(t||s)for(u=0;u<e.length;h>=65536?u+=2:u++){if(h=xu(e,u),!qu(h))return go;_=_&&tC(h,d,c),d=h}else{for(u=0;u<e.length;h>=65536?u+=2:u++){if(h=xu(e,u),h===Hu)p=!0,m&&(y=y||u-x-1>i&&e[x+1]!==" ",x=u);else if(!qu(h))return go;_=_&&tC(h,d,c),d=h}y=y||m&&u-x-1>i&&e[x+1]!==" "}return!p&&!y?_&&!s&&!r(e)?GE:l===Uu?go:Ty:n>9&&jE(e)?go:s?l===Uu?go:Ty:y?YE:WE}function X6(e,t,n,i,r){e.dump=(function(){if(t.length===0)return e.quotingType===Uu?'""':"''";if(!e.noCompatMode&&(z6.indexOf(t)!==-1||P6.test(t)))return e.quotingType===Uu?'"'+t+'"':"'"+t+"'";var l=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-l),c=i||e.flowLevel>-1&&n>=e.flowLevel;function u(h){return G6(e,h)}switch(V6(t,c,e.indent,s,u,e.quotingType,e.forceQuotes&&!i,r)){case GE:return t;case Ty:return"'"+t.replace(/'/g,"''")+"'";case WE:return"|"+nC(t,e.indent)+iC(JS(t,l));case YE:return">"+nC(t,e.indent)+iC(JS(K6(t,s),l));case go:return'"'+Z6(t)+'"';default:throw new Hi("impossible error: invalid scalar style")}})()}function nC(e,t){var n=jE(e)?String(t):"",i=e[e.length-1]===`
|
|
106
|
+
`,r=i&&(e[e.length-2]===`
|
|
107
|
+
`||e===`
|
|
108
|
+
`),l=r?"+":i?"":"-";return n+l+`
|
|
109
|
+
`}function iC(e){return e[e.length-1]===`
|
|
110
|
+
`?e.slice(0,-1):e}function K6(e,t){for(var n=/(\n+)([^\n]*)/g,i=(function(){var h=e.indexOf(`
|
|
111
|
+
`);return h=h!==-1?h:e.length,n.lastIndex=h,rC(e.slice(0,h),t)})(),r=e[0]===`
|
|
112
|
+
`||e[0]===" ",l,s;s=n.exec(e);){var c=s[1],u=s[2];l=u[0]===" ",i+=c+(!r&&!l&&u!==""?`
|
|
113
|
+
`:"")+rC(u,t),r=l}return i}function rC(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,i,r=0,l,s=0,c=0,u="";i=n.exec(e);)c=i.index,c-r>t&&(l=s>r?s:c,u+=`
|
|
114
|
+
`+e.slice(r,l),r=l+1),s=c;return u+=`
|
|
115
|
+
`,e.length-r>t&&s>r?u+=e.slice(r,s)+`
|
|
116
|
+
`+e.slice(s+1):u+=e.slice(r),u.slice(1)}function Z6(e){for(var t="",n=0,i,r=0;r<e.length;n>=65536?r+=2:r++)n=xu(e,r),i=fi[n],!i&&qu(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||U6(n);return t}function Q6(e,t,n){var i="",r=e.tag,l,s,c;for(l=0,s=n.length;l<s;l+=1)c=n[l],e.replacer&&(c=e.replacer.call(n,String(l),c)),($a(e,t,c,!1,!1)||typeof c>"u"&&$a(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=r,e.dump="["+i+"]"}function aC(e,t,n,i){var r="",l=e.tag,s,c,u;for(s=0,c=n.length;s<c;s+=1)u=n[s],e.replacer&&(u=e.replacer.call(n,String(s),u)),($a(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&$a(e,t+1,null,!0,!0,!1,!0))&&((!i||r!=="")&&(r+=Ey(e,t)),e.dump&&Hu===e.dump.charCodeAt(0)?r+="-":r+="- ",r+=e.dump);e.tag=l,e.dump=r||"[]"}function J6(e,t,n){var i="",r=e.tag,l=Object.keys(n),s,c,u,h,d;for(s=0,c=l.length;s<c;s+=1)d="",i!==""&&(d+=", "),e.condenseFlow&&(d+='"'),u=l[s],h=n[u],e.replacer&&(h=e.replacer.call(n,u,h)),$a(e,t,u,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),$a(e,t,h,!1,!1)&&(d+=e.dump,i+=d));e.tag=r,e.dump="{"+i+"}"}function e9(e,t,n,i){var r="",l=e.tag,s=Object.keys(n),c,u,h,d,p,y;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Hi("sortKeys must be a boolean or a function");for(c=0,u=s.length;c<u;c+=1)y="",(!i||r!=="")&&(y+=Ey(e,t)),h=s[c],d=n[h],e.replacer&&(d=e.replacer.call(n,h,d)),$a(e,t+1,h,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&Hu===e.dump.charCodeAt(0)?y+="?":y+="? "),y+=e.dump,p&&(y+=Ey(e,t)),$a(e,t+1,d,!0,p)&&(e.dump&&Hu===e.dump.charCodeAt(0)?y+=":":y+=": ",y+=e.dump,r+=y));e.tag=l,e.dump=r||"{}"}function lC(e,t,n){var i,r,l,s,c,u;for(r=n?e.explicitTypes:e.implicitTypes,l=0,s=r.length;l<s;l+=1)if(c=r[l],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(n?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag="?",c.represent){if(u=e.styleMap[c.tag]||c.defaultStyle,$E.call(c.represent)==="[object Function]")i=c.represent(t,u);else if(FE.call(c.represent,u))i=c.represent[u](t,u);else throw new Hi("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=i}return!0}return!1}function $a(e,t,n,i,r,l,s){e.tag=null,e.dump=n,lC(e,n,!1)||lC(e,n,!0);var c=$E.call(e.dump),u=i,h;i&&(i=e.flowLevel<0||e.flowLevel>t);var d=c==="[object Object]"||c==="[object Array]",p,y;if(d&&(p=e.duplicates.indexOf(n),y=p!==-1),(e.tag!==null&&e.tag!=="?"||y||e.indent!==2&&t>0)&&(r=!1),y&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&y&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),c==="[object Object]")i&&Object.keys(e.dump).length!==0?(e9(e,t,e.dump,r),y&&(e.dump="&ref_"+p+e.dump)):(J6(e,t,e.dump),y&&(e.dump="&ref_"+p+" "+e.dump));else if(c==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?aC(e,t-1,e.dump,r):aC(e,t,e.dump,r),y&&(e.dump="&ref_"+p+e.dump)):(Q6(e,t,e.dump),y&&(e.dump="&ref_"+p+" "+e.dump));else if(c==="[object String]")e.tag!=="?"&&X6(e,e.dump,t,l,u);else{if(c==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Hi("unacceptable kind of an object to dump "+c)}e.tag!==null&&e.tag!=="?"&&(h=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?h="!"+h:h.slice(0,18)==="tag:yaml.org,2002:"?h="!!"+h.slice(18):h="!<"+h+">",e.dump=h+" "+e.dump)}return!0}function t9(e,t){var n=[],i=[],r,l;for(Ay(e,n,i),r=0,l=i.length;r<l;r+=1)t.duplicates.push(n[i[r]]);t.usedDuplicates=new Array(l)}function Ay(e,t,n){var i,r,l;if(e!==null&&typeof e=="object")if(r=t.indexOf(e),r!==-1)n.indexOf(r)===-1&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,l=e.length;r<l;r+=1)Ay(e[r],t,n);else for(i=Object.keys(e),r=0,l=i.length;r<l;r+=1)Ay(e[i[r]],t,n)}function n9(e,t){t=t||{};var n=new j6(t);n.noRefs||t9(e,n);var i=e;return n.replacer&&(i=n.replacer.call({"":i},"",i)),$a(n,0,i,!0,!0)?n.dump+`
|
|
117
|
+
`:""}var i9=n9,r9={dump:i9},sC=w6.load,My=r9.dump;const a9=I4;var Xt;(function(e){e[e.DEFAULT=0]="DEFAULT",e[e.ADDED=1]="ADDED",e[e.REMOVED=2]="REMOVED",e[e.CHANGED=3]="CHANGED"})(Xt||(Xt={}));function wr(e,t){return t==="yaml"?My(e,{indent:2,lineWidth:-1,noRefs:!0}).trimEnd():JSON.stringify(e,null,2)}function l9(e,t,n="json"){const i=wr(e,n),r=wr(t,n);return i===r?[{value:i}]:ix(e,t,0,n)}function s9(e,t){return l9(e,t,"json")}function o9(e,t){try{const n=JSON.parse(e),i=JSON.parse(t),r=JSON.stringify(n),l=JSON.stringify(i);return r===l?[{value:e}]:Ia(e,t,{newlineIsToken:!1})}catch{return Ia(e,t,{newlineIsToken:!1})}}function c9(e,t){const n=sC(e),i=sC(t),r=My(n,{indent:2,lineWidth:-1,noRefs:!0}),l=My(i,{indent:2,lineWidth:-1,noRefs:!0});return r===l?[{value:e}]:Ia(e,t,{newlineIsToken:!1})}function ix(e,t,n,i="json"){const r=wr(e,i),l=wr(t,i);return r===l?[{value:Ra(r,n,i)}]:typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&!Array.isArray(e)&&!Array.isArray(t)?u9(e,t,n,i):Array.isArray(e)&&Array.isArray(t)?h9(e,t,n,i):f9(r,l,n,i)}function u9(e,t,n,i="json"){const r=[],l=" ".repeat(n),s=" ".repeat(n+1),c=new Set(Object.keys(e)),u=Object.keys(t),h=[...c].filter(p=>!(p in t)),d=[...u,...h];r.push({value:`{
|
|
118
|
+
`});for(let p=0;p<d.length;p++){const y=d[p],x=p===d.length-1?"":",",_=y in e,w=y in t;if(_&&w){const S=wr(e[y],i),C=wr(t[y],i);if(S===C){const E=Ra(S,n+1);r.push({value:s+JSON.stringify(y)+": "+E+x+`
|
|
119
|
+
`})}else{const E=s+JSON.stringify(y)+": ",N=ix(e[y],t[y],n+1,i);if(N.length>0)if(!N[0].removed&&!N[0].added)N[0].value=E+N[0].value;else{const M=N.find(O=>O.removed),A=N.find(O=>O.added);M&&(M.value=E+M.value),A&&(A.value=E+A.value)}if(x&&N.length>0){const M=N[N.length-1];M.value=M.value.replace(/\n$/,x+`
|
|
120
|
+
`)}r.push(...N)}}else if(_){const S=Ra(wr(e[y],i),n+1);r.push({removed:!0,value:s+JSON.stringify(y)+": "+S+x+`
|
|
121
|
+
`})}else{const S=Ra(wr(t[y],i),n+1);r.push({added:!0,value:s+JSON.stringify(y)+": "+S+x+`
|
|
122
|
+
`})}}return r.push({value:l+`}
|
|
123
|
+
`}),r}function h9(e,t,n,i="json"){const r=[],l=" ".repeat(n),s=" ".repeat(n+1);r.push({value:`[
|
|
124
|
+
`});const c=Math.max(e.length,t.length);for(let u=0;u<c;u++){const d=u===c-1?"":",";if(u>=e.length){const p=Ra(wr(t[u],i),n+1);r.push({added:!0,value:s+p+d+`
|
|
125
|
+
`})}else if(u>=t.length){const p=Ra(wr(e[u],i),n+1);r.push({removed:!0,value:s+p+d+`
|
|
126
|
+
`})}else{const p=wr(e[u],i),y=wr(t[u],i);if(p===y){const m=Ra(p,n+1);r.push({value:s+m+d+`
|
|
127
|
+
`})}else{const m=ix(e[u],t[u],n+1,i);if(m.length>0&&(m[0].value=s+m[0].value),d&&m.length>0){const x=m[m.length-1];x.value=x.value.replace(/\n$/,d+`
|
|
128
|
+
`)}r.push(...m)}}}return r.push({value:l+`]
|
|
129
|
+
`}),r}function f9(e,t,n,i="json"){const r=Ra(e,n),l=Ra(t,n);return Ia(r,l).map(c=>({value:c.value,added:c.added,removed:c.removed}))}function Ra(e,t,n="json"){if(t===0)return e;const i=" ".repeat(t);return e.split(`
|
|
130
|
+
`).map((r,l)=>l===0?r:i+r).join(`
|
|
131
|
+
`)}var Qn;(function(e){e.CHARS="diffChars",e.WORDS="diffWords",e.WORDS_WITH_SPACE="diffWordsWithSpace",e.LINES="diffLines",e.TRIMMED_LINES="diffTrimmedLines",e.SENTENCES="diffSentences",e.CSS="diffCss",e.JSON="diffJson",e.YAML="diffYaml"})(Qn||(Qn={}));const oC=e=>e===""?[]:e.replace(/\n$/,"").split(`
|
|
132
|
+
`),VE=(e,t,n=Qn.CHARS)=>{const r=(typeof n=="string"?a9[n]:n)(e,t),l={left:[],right:[]};return r.forEach(({added:s,removed:c,value:u})=>{if(s)l.right.push({type:Xt.ADDED,value:u});else if(c)l.left.push({type:Xt.REMOVED,value:u});else{const h={type:Xt.DEFAULT,value:u};l.right.push(h),l.left.push(h)}}),l},d9=(e,t,n=!1,i=Qn.CHARS,r=0,l=[],s=!1)=>{let c=[];if(typeof e=="string"&&typeof t=="string")if(i===Qn.JSON)c=o9(e,t);else if(i===Qn.YAML)try{c=c9(e,t)}catch{c=Ia(e,t,{newlineIsToken:!1})}else c=Ia(e,t,{newlineIsToken:!1});else c=s9(e,t);let u=r,h=r,d=[],p=0;const y=[],m=[],x=(_,w,S,C,E)=>oC(_).map((M,A)=>{const O={},q={};if(!(m.includes(`${w}-${A}`)||E&&A!==0)){if(S||C){let j=!0;if(C){h+=1,O.lineNumber=h,O.type=Xt.REMOVED,O.value=M||" ";const F=c[w+1];if(F!=null&&F.added){const H=oC(F.value)[A];if(H){const Z=x(H,w,!0,!1,!0),{value:V,lineNumber:P,type:z}=Z[0].right;if(m.push(`${w+1}-${A}`),q.lineNumber=P,O.value===V)j=!1,q.type=0,O.type=0,q.value=V;else{q.type=z;const L=500,U=M.length>L||V.length>L;if(n||U)q.value=V;else if(s)O.rawValue=M,O.value=M,q.rawValue=V,q.value=V;else{const G=VE(M,V,i);q.value=G.right,O.value=G.left}}}}}else u+=1,q.lineNumber=u,q.type=Xt.ADDED,q.value=M;j&&!E&&(y.includes(p)||y.push(p))}else h+=1,u+=1,O.lineNumber=h,O.type=Xt.DEFAULT,O.value=M,q.lineNumber=u,q.type=Xt.DEFAULT,q.value=M;return(l!=null&&l.includes(`L-${O.lineNumber}`)||l!=null&&l.includes(`R-${q.lineNumber}`)&&!y.includes(p))&&y.push(p),E||(p+=1),{right:q,left:O}}}).filter(M=>M!=null);return c.forEach(({added:_,removed:w,value:S},C)=>{d=[...d,...x(S,C,_,w)]}),{lineInformation:d,diffLines:y}};let ru=null,So=null;const p9=async()=>{if(ru!==null)return ru;if(So===!1)return null;if(typeof Worker>"u"||typeof Blob>"u"||typeof URL>"u")return So=!1,null;try{const{WORKER_CODE:e}=await Dt(async()=>{const{WORKER_CODE:n}=await import("./workerBundle-DGWlUuev.js");return{WORKER_CODE:n}},[]),t=new Blob([e],{type:"application/javascript"});ru=URL.createObjectURL(t),So=!0}catch{So=!1,ru=null}return ru},g9=async(e,t,n=!1,i=Qn.CHARS,r=0,l=[],s=!1,c=!1)=>{const u=()=>d9(e,t,n,i,r,l,s);if(c)return Promise.resolve(u());const h=await p9();return h?new Promise(d=>{let p;try{p=new Worker(h)}catch{So=!1,d(u());return}p.onmessage=y=>{d(y.data),p.terminate()},p.onerror=()=>{So=!1,p.terminate(),d(u())},p.postMessage({oldString:e,newString:t,disableWordDiff:n,lineCompareMethod:i,linesOffset:r,showLines:l,deferWordDiff:s})}):Promise.resolve(u())};function cC(){return $.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[$.jsx("title",{children:"expand"}),$.jsx("path",{d:"m8.177.677 2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25a.75.75 0 0 1-1.5 0V4H5.104a.25.25 0 0 1-.177-.427L7.823.677a.25.25 0 0 1 .354 0ZM7.25 10.75a.75.75 0 0 1 1.5 0V12h2.146a.25.25 0 0 1 .177.427l-2.896 2.896a.25.25 0 0 1-.354 0l-2.896-2.896A.25.25 0 0 1 5.104 12H7.25v-1.25Zm-5-2a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"})]})}function m9(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function y9(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var b9=(function(){function e(n){var i=this;this._insertTag=function(r){var l;i.tags.length===0?i.insertionPoint?l=i.insertionPoint.nextSibling:i.prepend?l=i.container.firstChild:l=i.before:l=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,l),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(i){i.forEach(this._insertTag)},t.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(y9(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var l=m9(r);try{l.insertRule(i,l.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},t.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},e})(),ii="-ms-",Bd="-moz-",Lt="-webkit-",XE="comm",rx="rule",ax="decl",x9="@import",KE="@keyframes",_9="@layer",v9=Math.abs,Mp=String.fromCharCode,w9=Object.assign;function S9(e,t){return Jn(e,0)^45?(((t<<2^Jn(e,0))<<2^Jn(e,1))<<2^Jn(e,2))<<2^Jn(e,3):0}function ZE(e){return e.trim()}function C9(e,t){return(e=t.exec(e))?e[0]:e}function Rt(e,t,n){return e.replace(t,n)}function Ny(e,t){return e.indexOf(t)}function Jn(e,t){return e.charCodeAt(t)|0}function ju(e,t,n){return e.slice(t,n)}function Jr(e){return e.length}function lx(e){return e.length}function zf(e,t){return t.push(e),e}function k9(e,t){return e.map(t).join("")}var Np=1,Po=1,QE=0,Gi=0,An=0,Qo="";function Op(e,t,n,i,r,l,s){return{value:e,root:t,parent:n,type:i,props:r,children:l,line:Np,column:Po,length:s,return:""}}function au(e,t){return w9(Op("",null,null,"",null,null,0),e,{length:-e.length},t)}function E9(){return An}function T9(){return An=Gi>0?Jn(Qo,--Gi):0,Po--,An===10&&(Po=1,Np--),An}function lr(){return An=Gi<QE?Jn(Qo,Gi++):0,Po++,An===10&&(Po=1,Np++),An}function ta(){return Jn(Qo,Gi)}function ld(){return Gi}function hh(e,t){return ju(Qo,e,t)}function Gu(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 JE(e){return Np=Po=1,QE=Jr(Qo=e),Gi=0,[]}function eT(e){return Qo="",e}function sd(e){return ZE(hh(Gi-1,Oy(e===91?e+2:e===40?e+1:e)))}function A9(e){for(;(An=ta())&&An<33;)lr();return Gu(e)>2||Gu(An)>3?"":" "}function M9(e,t){for(;--t&&lr()&&!(An<48||An>102||An>57&&An<65||An>70&&An<97););return hh(e,ld()+(t<6&&ta()==32&&lr()==32))}function Oy(e){for(;lr();)switch(An){case e:return Gi;case 34:case 39:e!==34&&e!==39&&Oy(An);break;case 40:e===41&&Oy(e);break;case 92:lr();break}return Gi}function N9(e,t){for(;lr()&&e+An!==57;)if(e+An===84&&ta()===47)break;return"/*"+hh(t,Gi-1)+"*"+Mp(e===47?e:lr())}function O9(e){for(;!Gu(ta());)lr();return hh(e,Gi)}function L9(e){return eT(od("",null,null,null,[""],e=JE(e),0,[0],e))}function od(e,t,n,i,r,l,s,c,u){for(var h=0,d=0,p=s,y=0,m=0,x=0,_=1,w=1,S=1,C=0,E="",N=r,M=l,A=i,O=E;w;)switch(x=C,C=lr()){case 40:if(x!=108&&Jn(O,p-1)==58){Ny(O+=Rt(sd(C),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:O+=sd(C);break;case 9:case 10:case 13:case 32:O+=A9(x);break;case 92:O+=M9(ld()-1,7);continue;case 47:switch(ta()){case 42:case 47:zf(R9(N9(lr(),ld()),t,n),u);break;default:O+="/"}break;case 123*_:c[h++]=Jr(O)*S;case 125*_:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+d:S==-1&&(O=Rt(O,/\f/g,"")),m>0&&Jr(O)-p&&zf(m>32?hC(O+";",i,n,p-1):hC(Rt(O," ","")+";",i,n,p-2),u);break;case 59:O+=";";default:if(zf(A=uC(O,t,n,h,d,r,c,E,N=[],M=[],p),l),C===123)if(d===0)od(O,t,A,A,N,l,p,c,M);else switch(y===99&&Jn(O,3)===110?100:y){case 100:case 108:case 109:case 115:od(e,A,A,i&&zf(uC(e,A,A,0,0,r,c,E,r,N=[],p),M),r,M,p,c,i?N:M);break;default:od(O,A,A,A,[""],M,0,c,M)}}h=d=m=0,_=S=1,E=O="",p=s;break;case 58:p=1+Jr(O),m=x;default:if(_<1){if(C==123)--_;else if(C==125&&_++==0&&T9()==125)continue}switch(O+=Mp(C),C*_){case 38:S=d>0?1:(O+="\f",-1);break;case 44:c[h++]=(Jr(O)-1)*S,S=1;break;case 64:ta()===45&&(O+=sd(lr())),y=ta(),d=p=Jr(E=O+=O9(ld())),C++;break;case 45:x===45&&Jr(O)==2&&(_=0)}}return l}function uC(e,t,n,i,r,l,s,c,u,h,d){for(var p=r-1,y=r===0?l:[""],m=lx(y),x=0,_=0,w=0;x<i;++x)for(var S=0,C=ju(e,p+1,p=v9(_=s[x])),E=e;S<m;++S)(E=ZE(_>0?y[S]+" "+C:Rt(C,/&\f/g,y[S])))&&(u[w++]=E);return Op(e,t,n,r===0?rx:c,u,h,d)}function R9(e,t,n){return Op(e,t,n,XE,Mp(E9()),ju(e,2,-2),0)}function hC(e,t,n,i){return Op(e,t,n,ax,ju(e,0,i),ju(e,i+1,-1),i)}function Eo(e,t){for(var n="",i=lx(e),r=0;r<i;r++)n+=t(e[r],r,e,t)||"";return n}function D9(e,t,n,i){switch(e.type){case _9:if(e.children.length)break;case x9:case ax:return e.return=e.return||e.value;case XE:return"";case KE:return e.return=e.value+"{"+Eo(e.children,i)+"}";case rx:e.value=e.props.join(",")}return Jr(n=Eo(e.children,i))?e.return=e.value+"{"+n+"}":""}function B9(e){var t=lx(e);return function(n,i,r,l){for(var s="",c=0;c<t;c++)s+=e[c](n,i,r,l)||"";return s}}function I9(e){return function(t){t.root||(t=t.return)&&e(t)}}function $9(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var F9=function(t,n,i){for(var r=0,l=0;r=l,l=ta(),r===38&&l===12&&(n[i]=1),!Gu(l);)lr();return hh(t,Gi)},z9=function(t,n){var i=-1,r=44;do switch(Gu(r)){case 0:r===38&&ta()===12&&(n[i]=1),t[i]+=F9(Gi-1,n,i);break;case 2:t[i]+=sd(r);break;case 4:if(r===44){t[++i]=ta()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=Mp(r)}while(r=lr());return t},P9=function(t,n){return eT(z9(JE(t),n))},fC=new WeakMap,H9=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,i=t.parent,r=t.column===i.column&&t.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!fC.get(i))&&!r){fC.set(t,!0);for(var l=[],s=P9(n,l),c=i.props,u=0,h=0;u<s.length;u++)for(var d=0;d<c.length;d++,h++)t.props[h]=l[u]?s[u].replace(/&\f/g,c[d]):c[d]+" "+s[u]}}},U9=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function tT(e,t){switch(S9(e,t)){case 5103:return Lt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Lt+e+Bd+e+ii+e+e;case 6828:case 4268:return Lt+e+ii+e+e;case 6165:return Lt+e+ii+"flex-"+e+e;case 5187:return Lt+e+Rt(e,/(\w+).+(:[^]+)/,Lt+"box-$1$2"+ii+"flex-$1$2")+e;case 5443:return Lt+e+ii+"flex-item-"+Rt(e,/flex-|-self/,"")+e;case 4675:return Lt+e+ii+"flex-line-pack"+Rt(e,/align-content|flex-|-self/,"")+e;case 5548:return Lt+e+ii+Rt(e,"shrink","negative")+e;case 5292:return Lt+e+ii+Rt(e,"basis","preferred-size")+e;case 6060:return Lt+"box-"+Rt(e,"-grow","")+Lt+e+ii+Rt(e,"grow","positive")+e;case 4554:return Lt+Rt(e,/([^-])(transform)/g,"$1"+Lt+"$2")+e;case 6187:return Rt(Rt(Rt(e,/(zoom-|grab)/,Lt+"$1"),/(image-set)/,Lt+"$1"),e,"")+e;case 5495:case 3959:return Rt(e,/(image-set\([^]*)/,Lt+"$1$`$1");case 4968:return Rt(Rt(e,/(.+:)(flex-)?(.*)/,Lt+"box-pack:$3"+ii+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Lt+e+e;case 4095:case 3583:case 4068:case 2532:return Rt(e,/(.+)-inline(.+)/,Lt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Jr(e)-1-t>6)switch(Jn(e,t+1)){case 109:if(Jn(e,t+4)!==45)break;case 102:return Rt(e,/(.+:)(.+)-([^]+)/,"$1"+Lt+"$2-$3$1"+Bd+(Jn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ny(e,"stretch")?tT(Rt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Jn(e,t+1)!==115)break;case 6444:switch(Jn(e,Jr(e)-3-(~Ny(e,"!important")&&10))){case 107:return Rt(e,":",":"+Lt)+e;case 101:return Rt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Lt+(Jn(e,14)===45?"inline-":"")+"box$3$1"+Lt+"$2$3$1"+ii+"$2box$3")+e}break;case 5936:switch(Jn(e,t+11)){case 114:return Lt+e+ii+Rt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Lt+e+ii+Rt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Lt+e+ii+Rt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Lt+e+ii+e+e}return e}var q9=function(t,n,i,r){if(t.length>-1&&!t.return)switch(t.type){case ax:t.return=tT(t.value,t.length);break;case KE:return Eo([au(t,{value:Rt(t.value,"@","@"+Lt)})],r);case rx:if(t.length)return k9(t.props,function(l){switch(C9(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Eo([au(t,{props:[Rt(l,/:(read-\w+)/,":"+Bd+"$1")]})],r);case"::placeholder":return Eo([au(t,{props:[Rt(l,/:(plac\w+)/,":"+Lt+"input-$1")]}),au(t,{props:[Rt(l,/:(plac\w+)/,":"+Bd+"$1")]}),au(t,{props:[Rt(l,/:(plac\w+)/,ii+"input-$1")]})],r)}return""})}},j9=[q9],G9=function(t){var n=t.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(_){var w=_.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var r=t.stylisPlugins||j9,l={},s,c=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(_){for(var w=_.getAttribute("data-emotion").split(" "),S=1;S<w.length;S++)l[w[S]]=!0;c.push(_)});var u,h=[H9,U9];{var d,p=[D9,I9(function(_){d.insert(_)})],y=B9(h.concat(r,p)),m=function(w){return Eo(L9(w),y)};u=function(w,S,C,E){d=C,m(w?w+"{"+S.styles+"}":S.styles),E&&(x.inserted[S.name]=!0)}}var x={key:n,sheet:new b9({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:l,registered:{},insert:u};return x.sheet.hydrate(c),x};function W9(e){for(var t=0,n,i=0,r=e.length;r>=4;++i,r-=4)n=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Y9={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},V9=/[A-Z]|^ms/g,X9=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nT=function(t){return t.charCodeAt(1)===45},dC=function(t){return t!=null&&typeof t!="boolean"},N0=$9(function(e){return nT(e)?e:e.replace(V9,"-$&").toLowerCase()}),pC=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(X9,function(i,r,l){return vl={name:r,styles:l,next:vl},r})}return Y9[t]!==1&&!nT(t)&&typeof n=="number"&&n!==0?n+"px":n};function Id(e,t,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return vl={name:r.name,styles:r.styles,next:vl},r.name;var l=n;if(l.styles!==void 0){var s=l.next;if(s!==void 0)for(;s!==void 0;)vl={name:s.name,styles:s.styles,next:vl},s=s.next;var c=l.styles+";";return c}return K9(e,t,n)}}var u=n;if(t==null)return u;var h=t[u];return h!==void 0?h:u}function K9(e,t,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=Id(e,t,n[r])+";";else for(var l in n){var s=n[l];if(typeof s!="object"){var c=s;t!=null&&t[c]!==void 0?i+=l+"{"+t[c]+"}":dC(c)&&(i+=N0(l)+":"+pC(l,c)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var u=0;u<s.length;u++)dC(s[u])&&(i+=N0(l)+":"+pC(l,s[u])+";");else{var h=Id(e,t,s);switch(l){case"animation":case"animationName":{i+=N0(l)+":"+h+";";break}default:i+=l+"{"+h+"}"}}}return i}var gC=/label:\s*([^\s;{]+)\s*(;|$)/g,vl;function O0(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,r="";vl=void 0;var l=e[0];if(l==null||l.raw===void 0)i=!1,r+=Id(n,t,l);else{var s=l;r+=s[0]}for(var c=1;c<e.length;c++)if(r+=Id(n,t,e[c]),i){var u=l;r+=u[c]}gC.lastIndex=0;for(var h="",d;(d=gC.exec(r))!==null;)h+="-"+d[1];var p=W9(r)+h;return{name:p,styles:r,next:vl}}function iT(e,t,n){var i="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(i+=r+" ")}),i}var Z9=function(t,n,i){var r=t.key+"-"+n.name;t.registered[r]===void 0&&(t.registered[r]=n.styles)},Q9=function(t,n,i){Z9(t,n);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var l=n;do t.insert(n===l?"."+r:"",l,t.sheet,!0),l=l.next;while(l!==void 0)}};function mC(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function yC(e,t,n){var i=[],r=iT(e,i,n);return i.length<2?n:r+t(i)}var J9=function(t){var n=G9(t);n.sheet.speedy=function(c){this.isSpeedy=c},n.compat=!0;var i=function(){for(var u=arguments.length,h=new Array(u),d=0;d<u;d++)h[d]=arguments[d];var p=O0(h,n.registered,void 0);return Q9(n,p),n.key+"-"+p.name},r=function(){for(var u=arguments.length,h=new Array(u),d=0;d<u;d++)h[d]=arguments[d];var p=O0(h,n.registered),y="animation-"+p.name;return mC(n,{name:p.name,styles:"@keyframes "+y+"{"+p.styles+"}"}),y},l=function(){for(var u=arguments.length,h=new Array(u),d=0;d<u;d++)h[d]=arguments[d];var p=O0(h,n.registered);mC(n,p)},s=function(){for(var u=arguments.length,h=new Array(u),d=0;d<u;d++)h[d]=arguments[d];return yC(n.registered,i,e8(h))};return{css:i,cx:s,injectGlobal:l,keyframes:r,hydrate:function(u){u.forEach(function(h){n.inserted[h]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:iT.bind(null,n.registered),merge:yC.bind(null,n.registered,i)}},e8=function e(t){for(var n="",i=0;i<t.length;i++){var r=t[i];if(r!=null){var l=void 0;switch(typeof r){case"boolean":break;case"object":{if(Array.isArray(r))l=e(r);else{l="";for(var s in r)r[s]&&s&&(l&&(l+=" "),l+=s)}break}default:l=r}l&&(n&&(n+=" "),n+=l)}}return n};const t8=(e,t=!1,n="")=>{const{variables:i={},...r}=e,l={light:{diffViewerBackground:"#fff",diffViewerColor:"#212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",changedBackground:"#fffbdd",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",codeFoldGutterBackground:"#dbedff",codeFoldBackground:"#f1f8ff",emptyLineBackground:"#fafbfc",gutterColor:"#212529",addedGutterColor:"#212529",removedGutterColor:"#212529",codeFoldContentColor:"#212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleColor:"#212529",diffViewerTitleBorderColor:"#eee",...i.light||{}},dark:{diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",addedBackground:"#2ea04326",addedColor:"white",removedBackground:"#f851491a",removedColor:"white",changedBackground:"#3e302c",wordAddedBackground:"#2ea04366",wordRemovedBackground:"#f8514966",addedGutterBackground:"#3fb9504d",removedGutterBackground:"#f851494d",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",highlightBackground:"#2a3967",highlightGutterBackground:"#2d4077",codeFoldGutterBackground:"#262831",codeFoldBackground:"#262831",emptyLineBackground:"#363946",gutterColor:"#f0f6fc",addedGutterColor:"#f0f6fc",removedGutterColor:"#f0f6fc",codeFoldContentColor:"#9198a1",diffViewerTitleBackground:"#2f323e",diffViewerTitleColor:"#f0f6fc",diffViewerTitleBorderColor:"#353846",...i.dark||{}}},s=t?l.dark:l.light,{css:c,cx:u}=J9({key:"react-diff",nonce:n}),h=c({width:"auto",overflow:"hidden",label:"content"}),d=c({label:"split-view"}),p=c({position:"sticky",top:0,zIndex:2,label:"sticky-header"}),y=c({background:s.diffViewerTitleBackground,color:s.diffViewerTitleColor,padding:"0.5em 1em",display:"flex",alignItems:"center",gap:"0.5em",fontFamily:"monospace",fontSize:12,fill:s.diffViewerTitleColor}),m=c({display:"flex",label:"column-headers"}),x=c({width:"100%",minWidth:"1000px",overflowX:"auto",tableLayout:"fixed",fontSize:12,background:s.diffViewerBackground,pre:{margin:0,whiteSpace:"pre-wrap",lineHeight:"1.6em",width:"fit-content"},label:"diff-container",borderCollapse:"collapse","@media (max-width: 768px)":{minWidth:"unset"}}),_=c({overflow:"hidden",width:"100%"}),w=c({color:s.diffViewerColor,whiteSpace:"pre-wrap",fontFamily:"monospace",lineBreak:"anywhere",textDecoration:"none",label:"content-text"}),S=c({userSelect:"none",label:"unselectable"}),C=c({label:"no-wrap",pre:{whiteSpace:"pre"},[`.${w}`]:{whiteSpace:"pre",lineBreak:"auto"}}),E=c({background:"transparent",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",margin:0,label:"all-expand-button",":hover":{fill:s.addedGutterColor},":focus":{outline:`1px ${s.addedGutterColor} solid`}}),N=c({background:s.diffViewerTitleBackground,padding:"0.5em",lineHeight:"1.4em",height:"2.4em",overflow:"hidden",width:"50%",borderBottom:`1px solid ${s.diffViewerTitleBorderColor}`,boxSizing:"border-box",fontSize:12,label:"title-block",":only-child":{width:"100%"},":last-child:not(:only-child)":{borderLeft:`1px solid ${s.diffViewerTitleBorderColor}`},[`.${w}`]:{color:s.diffViewerTitleColor}}),M=c({color:s.gutterColor,label:"line-number"}),A=c({background:s.removedBackground,color:s.removedColor,pre:{color:s.removedColor},[`.${M}`]:{color:s.removedGutterColor},label:"diff-removed"}),O=c({background:s.addedBackground,color:s.addedColor,pre:{color:s.addedColor},[`.${M}`]:{color:s.addedGutterColor},label:"diff-added"}),q=c({background:s.changedBackground,[`.${M}`]:{color:s.gutterColor},label:"diff-changed"}),j=c({display:"inline",textDecoration:"none",label:"word-diff"}),F=c({background:s.wordAddedBackground,label:"word-added"}),H=c({background:s.wordRemovedBackground,label:"word-removed"}),Z=c({backgroundColor:s.codeFoldGutterBackground,label:"code-fold-gutter",minWidth:"50px",width:"50px",textAlign:"center",fill:s.codeFoldContentColor}),V=c({padding:""}),P=c({background:s.codeFoldBackground,cursor:"pointer",display:"inline",margin:0,border:"none",fill:s.codeFoldContentColor,label:"code-fold-expand-button"}),z=c({color:s.codeFoldContentColor,fontFamily:"monospace",label:"code-fold-content"}),L=c({display:"block",width:"10px",height:"10px",backgroundColor:"#ddd",borderWidth:"1px",borderStyle:"solid",borderColor:s.diffViewerTitleBorderColor}),U=c({backgroundColor:s.wordAddedBackground}),G=c({backgroundColor:s.wordRemovedBackground}),le=c({backgroundColor:s.codeFoldBackground,fontSize:12,alignItems:"center",userSelect:"none",fontWeight:700,cursor:"pointer",label:"code-fold","&:hover":{color:s.diffViewerColor,fill:s.diffViewerColor,"& *":{color:s.diffViewerColor,fill:s.diffViewerColor}},a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),B=c({backgroundColor:s.emptyLineBackground,label:"empty-line"}),I=c({width:28,paddingLeft:10,paddingRight:10,userSelect:"none",label:"marker",[`&.${O}`]:{pre:{color:s.addedColor}},[`&.${A}`]:{pre:{color:s.removedColor}}}),Q=c({background:s.highlightBackground,label:"highlighted-line",[`.${F}, .${H}`]:{backgroundColor:"initial"}}),D=c({label:"highlighted-gutter"}),he=c({userSelect:"none",minWidth:50,width:"50px",padding:"0 10px",whiteSpace:"nowrap",label:"gutter",textAlign:"center",color:s.gutterColor,background:s.gutterBackground,"&:hover":{cursor:"pointer",background:s.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5,textAlign:"center",width:"100%"},[`&.${O}`]:{background:s.addedGutterBackground},[`&.${A}`]:{background:s.removedGutterBackground},[`&.${D}`]:{background:s.highlightGutterBackground,"&:hover":{background:s.highlightGutterBackground}}}),xe=c({"&:hover":{background:s.gutterBackground,cursor:"initial"},label:"empty-gutter"}),de=c({verticalAlign:"baseline",label:"line",textDecoration:"none"}),we=c({}),Le={diffContainer:x,diffRemoved:A,diffAdded:O,diffChanged:q,splitView:d,marker:I,highlightedGutter:D,highlightedLine:Q,gutter:he,line:de,lineContent:_,wordDiff:j,wordAdded:F,summary:y,block:L,blockAddition:U,blockDeletion:G,wordRemoved:H,noSelect:S,noWrap:C,codeFoldGutter:Z,codeFoldExpandButton:P,codeFoldContentContainer:V,codeFold:le,emptyGutter:xe,emptyLine:B,lineNumber:M,contentText:w,content:h,column:we,codeFoldContent:z,stickyHeader:p,columnHeaders:m,titleBlock:N,allExpandButton:E},ze=Object.keys(r).reduce((Qe,it)=>({...Qe,[it]:c(r[it])}),{});return Object.keys(Le).reduce((Qe,it)=>({...Qe,[it]:ze[it]?u(Le[it],ze[it]):Le[it]}),{})};function n8(){return $.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16",children:[$.jsx("title",{children:"fold"}),$.jsx("path",{d:"M10.896 2H8.75V.75a.75.75 0 0 0-1.5 0V2H5.104a.25.25 0 0 0-.177.427l2.896 2.896a.25.25 0 0 0 .354 0l2.896-2.896A.25.25 0 0 0 10.896 2ZM8.75 15.25a.75.75 0 0 1-1.5 0V14H5.104a.25.25 0 0 1-.177-.427l2.896-2.896a.25.25 0 0 1 .354 0l2.896 2.896a.25.25 0 0 1-.177.427H8.75v1.25Zm-6.5-6.5a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM6 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 6 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5ZM12 8a.75.75 0 0 1-.75.75h-.5a.75.75 0 0 1 0-1.5h.5A.75.75 0 0 1 12 8Zm2.25.75a.75.75 0 0 0 0-1.5h-.5a.75.75 0 0 0 0 1.5h.5Z"})]})}function i8(e,t,n){const i=[];let r=0;for(const p of t){const y=typeof p.value=="string"?p.value:"";y.length>0&&(i.push({start:r,end:r+y.length,type:p.type??Xt.DEFAULT}),r+=y.length)}const l=[];let s=0;for(;s<e.length;)if(e[s]==="<"){const p=e.indexOf(">",s);if(p===-1){l.push({type:"text",content:e.slice(s)});break}l.push({type:"tag",content:e.slice(s,p+1)}),s=p+1}else{let p=e.indexOf("<",s);p===-1&&(p=e.length),l.push({type:"text",content:e.slice(s,p)}),s=p}function c(p){return p.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/'/g,"'").replace(/ /g," ")}function u(p){return p===Xt.ADDED?{open:`<ins class="${n.wordDiff} ${n.wordAdded}">`,close:"</ins>"}:p===Xt.REMOVED?{open:`<del class="${n.wordDiff} ${n.wordRemoved}">`,close:"</del>"}:{open:`<span class="${n.wordDiff}">`,close:"</span>"}}let h=0,d="";for(const p of l)if(p.type==="tag")d+=p.content;else{const y=p.content,m=c(y);let x=0,_=0;for(;x<m.length;){const w=h+x,S=i.find(j=>w>=j.start&&w<j.end);if(!S){const j=y[_];d+=j,_++,x++;continue}const C=S.end-w,E=m.length-x,N=Math.min(C,E);let M=_,A=0;for(;A<N&&M<y.length;){if(y[M]==="&"){const j=y.indexOf(";",M);j!==-1&&j-M<10?M=j+1:M++}else M++;A++}const O=y.slice(_,M),q=u(S.type);q?d+=q.open+O+q.close:d+=O,_=M,x+=N}h+=m.length}return d}var bi;(function(e){e.LEFT="L",e.RIGHT="R"})(bi||(bi={}));const rr=class rr extends ge.Component{constructor(n){super(n);He(this,"styles");He(this,"wordDiffCache",new Map);He(this,"contentColumnRef",ge.createRef());He(this,"charMeasureRef",ge.createRef());He(this,"stickyHeaderRef",ge.createRef());He(this,"resizeObserver",null);He(this,"scrollDebounceTimer",null);He(this,"lastRenderedRange",{start:0,end:1/0});He(this,"getWordDiffValues",(n,i,r)=>{if(!n||!i)return{leftValue:n==null?void 0:n.value,rightValue:i==null?void 0:i.value};if(n.rawValue===void 0||i.rawValue===void 0)return{leftValue:n.value,rightValue:i.value};const l=`${r}-${n.rawValue}-${i.rawValue}`;let s=this.wordDiffCache.get(l);if(!s){const c=this.props.compareMethod===Qn.JSON||this.props.compareMethod===Qn.YAML?Qn.CHARS:this.props.compareMethod,u=VE(n.rawValue,i.rawValue,c);s={left:u.left??[],right:u.right??[]},this.wordDiffCache.set(l,s)}return{leftValue:s.left,rightValue:s.right}});He(this,"resetCodeBlocks",()=>this.state.expandedBlocks.length>0?(this.setState({expandedBlocks:[]}),!0):!1);He(this,"onBlockExpand",n=>{const i=this.state.expandedBlocks.slice();i.push(n),this.setState({expandedBlocks:i},()=>this.recalculateOffsets())});He(this,"recalculateOffsets",()=>{if(!this.props.infiniteLoading)return;const n=this.measureContentColumnWidth(),i=this.measureCharWidth();if(!n)return;const r=this.getMemoisedKey(),{lineInformation:l,lineBlocks:s,blocks:c}=this.state.computedDiffResult[r]??{};if(!l)return;const u=this.buildCumulativeOffsets(l,s,c,this.state.expandedBlocks,this.props.showDiffOnly??!0,i,n,this.props.splitView??!0);this.setState({cumulativeOffsets:u,contentColumnWidth:n,charWidth:i},()=>{this.onScroll()})});He(this,"computeStyles",QF(t8));He(this,"onLineNumberClickProxy",n=>this.props.onLineNumberClick?i=>this.props.onLineNumberClick(n,i):()=>{});He(this,"shouldHighlightWordDiff",()=>{const{compareMethod:n}=this.props;return n===Qn.CHARS||n===Qn.WORDS||n===Qn.WORDS_WITH_SPACE||n===Qn.JSON||n===Qn.YAML});He(this,"renderWordDiff",(n,i)=>{var c,u;const r=this.shouldHighlightWordDiff(),l=n.map(h=>typeof h.value=="string"?h.value:"").join("");if(l.length>500)return[$.jsx("span",{children:l},"long-line")];if(i){const h=i(l),d=(u=(c=h==null?void 0:h.props)==null?void 0:c.dangerouslySetInnerHTML)==null?void 0:u.__html;if(typeof d=="string"){const p=i8(d,n,{wordDiff:this.styles.wordDiff,wordAdded:r?this.styles.wordAdded:"",wordRemoved:r?this.styles.wordRemoved:""});return[ge.cloneElement(h,{key:"highlighted-diff",dangerouslySetInnerHTML:{__html:p}})]}}return n.map((h,d)=>{let p;return typeof h.value=="string"?p=h.value:p=void 0,h.type===Xt.ADDED?$.jsx("ins",{className:Or(this.styles.wordDiff,{[this.styles.wordAdded]:r}),children:p},d):h.type===Xt.REMOVED?$.jsx("del",{className:Or(this.styles.wordDiff,{[this.styles.wordRemoved]:r}),children:p},d):$.jsx("span",{className:Or(this.styles.wordDiff),children:p},d)})});He(this,"renderLine",(n,i,r,l,s,c)=>{const u=`${r}-${n}`,h=`${c}-${s}`,d=this.props.highlightLines??[],p=d.includes(u)||d.includes(h),y=i===Xt.ADDED,m=i===Xt.REMOVED,x=i===Xt.CHANGED;let _;const w=Array.isArray(l);w?_=this.renderWordDiff(l,this.props.renderContent):this.props.renderContent&&typeof l=="string"?_=this.props.renderContent(l):_=l;let S="div";return y&&!w?S="ins":m&&!w&&(S="del"),$.jsxs($.Fragment,{children:[!this.props.hideLineNumbers&&$.jsx("td",{onClick:n&&this.onLineNumberClickProxy(u),className:Or(this.styles.gutter,{[this.styles.emptyGutter]:!n,[this.styles.diffAdded]:y,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:x,[this.styles.highlightedGutter]:p}),children:$.jsx("pre",{className:this.styles.lineNumber,children:n})}),!this.props.splitView&&!this.props.hideLineNumbers&&$.jsx("td",{onClick:s&&this.onLineNumberClickProxy(h),className:Or(this.styles.gutter,{[this.styles.emptyGutter]:!s,[this.styles.diffAdded]:y,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:x,[this.styles.highlightedGutter]:p}),children:$.jsx("pre",{className:this.styles.lineNumber,children:s})}),this.props.renderGutter?this.props.renderGutter({lineNumber:n??0,type:i??Xt.DEFAULT,prefix:r,value:l??"",additionalLineNumber:s??void 0,additionalPrefix:c,styles:this.styles}):null,$.jsx("td",{className:Or(this.styles.marker,{[this.styles.emptyLine]:!_,[this.styles.diffAdded]:y,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:x,[this.styles.highlightedLine]:p}),children:$.jsxs("pre",{children:[y&&"+",m&&"-"]})}),$.jsx("td",{ref:r===bi.LEFT&&!this.state.cumulativeOffsets?this.contentColumnRef:void 0,className:Or(this.styles.content,{[this.styles.emptyLine]:!_,[this.styles.diffAdded]:y,[this.styles.diffRemoved]:m,[this.styles.diffChanged]:x,[this.styles.highlightedLine]:p,left:r===bi.LEFT,right:r===bi.RIGHT}),onMouseDown:()=>{var M,A,O;const C=document.getElementsByClassName("right");for(let q=0;q<C.length;q++)(M=C[q])==null||M.classList.remove(this.styles.noSelect);const E=document.getElementsByClassName("left");for(let q=0;q<E.length;q++)(A=E[q])==null||A.classList.remove(this.styles.noSelect);const N=document.getElementsByClassName(r===bi.LEFT?"right":"left");for(let q=0;q<N.length;q++)(O=N[q])==null||O.classList.add(this.styles.noSelect)},title:y&&!w?"Added line":m&&!w?"Removed line":void 0,children:$.jsx(S,{className:this.styles.contentText,children:_})})]})});He(this,"renderSplitView",({left:n,right:i},r)=>{const{leftValue:l,rightValue:s}=this.getWordDiffValues(n,i,r);return $.jsxs("tr",{className:this.styles.line,children:[this.renderLine(n.lineNumber,n.type,bi.LEFT,l),this.renderLine(i.lineNumber,i.type,bi.RIGHT,s)]},r)});He(this,"renderInlineView",({left:n,right:i},r)=>{const{leftValue:l,rightValue:s}=this.getWordDiffValues(n,i,r);let c;return n.type===Xt.REMOVED&&i.type===Xt.ADDED?$.jsxs(ge.Fragment,{children:[$.jsx("tr",{className:this.styles.line,children:this.renderLine(n.lineNumber,n.type,bi.LEFT,l,null)}),$.jsx("tr",{className:this.styles.line,children:this.renderLine(null,i.type,bi.RIGHT,s,i.lineNumber,bi.RIGHT)})]},r):(n.type===Xt.REMOVED&&(c=this.renderLine(n.lineNumber,n.type,bi.LEFT,l,null)),n.type===Xt.DEFAULT&&(c=this.renderLine(n.lineNumber,n.type,bi.LEFT,l,i.lineNumber,bi.RIGHT)),i.type===Xt.ADDED&&(c=this.renderLine(null,i.type,bi.RIGHT,s,i.lineNumber)),$.jsx("tr",{className:this.styles.line,children:c},r))});He(this,"onBlockClickProxy",n=>()=>this.onBlockExpand(n));He(this,"renderSkippedLineIndicator",(n,i,r,l)=>{const{hideLineNumbers:s,splitView:c}=this.props,u=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(n,r,l):$.jsxs("span",{className:this.styles.codeFoldContent,children:["@@ -",r-n,",",n," +",l-n,",",n," @@"]}),h=$.jsx("td",{className:this.styles.codeFoldContentContainer,children:$.jsx("button",{type:"button",className:this.styles.codeFoldExpandButton,onClick:this.onBlockClickProxy(i),tabIndex:0,children:u})}),d=!c&&!s,p=$.jsx("td",{className:this.styles.codeFoldGutter,children:$.jsx(cC,{})});return $.jsxs("tr",{className:this.styles.codeFold,onClick:this.onBlockClickProxy(i),role:"button",tabIndex:0,children:[!s&&p,this.props.renderGutter?$.jsx("td",{className:this.styles.codeFoldGutter}):null,$.jsx("td",{className:Or({[this.styles.codeFoldGutter]:d})}),d?$.jsxs(ge.Fragment,{children:[$.jsx("td",{}),h]}):$.jsxs(ge.Fragment,{children:[h,this.props.renderGutter?$.jsx("td",{}):null,$.jsx("td",{}),$.jsx("td",{}),s?null:$.jsx("td",{})]})]},`${r}-${l}`)});He(this,"getMemoisedKey",()=>{const{oldValue:n,newValue:i,disableWordDiff:r,compareMethod:l,linesOffset:s,alwaysShowLines:c,extraLinesSurroundingDiff:u}=this.props;return JSON.stringify({oldValue:n,newValue:i,disableWordDiff:r,compareMethod:l,linesOffset:s,alwaysShowLines:c,extraLinesSurroundingDiff:u})});He(this,"memoisedCompute",async()=>{var S;const{oldValue:n,newValue:i,disableWordDiff:r,compareMethod:l,linesOffset:s}=this.props,c=this.getMemoisedKey();if(this.state.computedDiffResult[c]){this.setState(C=>({...C,isLoading:!1}));return}const u=(S=this.props.infiniteLoading)==null?void 0:S.containerHeight,h=u?typeof u=="number"?u:parseInt(u,10)||0:0,d=!r&&!!this.props.infiniteLoading&&h>0&&h<2e3,{lineInformation:p,diffLines:y}=await g9(n,i,r,l,s,this.props.alwaysShowLines,d,this.props.disableWorker),m=this.props.extraLinesSurroundingDiff??3,x=m<0?0:Math.round(m),{lineBlocks:_,blocks:w}=JF(p,y,x);this.state.computedDiffResult[c]={lineInformation:p,lineBlocks:_,blocks:w},this.setState(C=>({...C,computedDiffResult:this.state.computedDiffResult,isLoading:!1}),()=>{this.props.infiniteLoading&&requestAnimationFrame(()=>this.recalculateOffsets())})});He(this,"onScroll",()=>{const n=this.state.scrollableContainerRef.current;if(!n||!this.props.infiniteLoading)return;const i=this.getStickyHeaderHeight(),r=Math.max(0,n.scrollTop-i),{cumulativeOffsets:l}=this.state,s=l?this.findLineAtOffset(r,l):Math.floor(r/rr.ESTIMATED_ROW_HEIGHT),c=Math.ceil(n.clientHeight/rr.ESTIMATED_ROW_HEIGHT),u=s+c,h=s<this.lastRenderedRange.start||u>this.lastRenderedRange.end;this.scrollDebounceTimer&&clearTimeout(this.scrollDebounceTimer);const d={};s!==this.state.visibleStartRow&&(d.visibleStartRow=s),h&&!this.state.isScrolling&&(d.isScrolling=!0),Object.keys(d).length>0&&this.setState(d),(this.state.isScrolling||h)&&(this.scrollDebounceTimer=setTimeout(()=>{this.setState({isScrolling:!1})},150))});He(this,"renderDiff",()=>{var H,Z;const{splitView:n,infiniteLoading:i,showDiffOnly:r}=this.props,{computedDiffResult:l,expandedBlocks:s,visibleStartRow:c,scrollableContainerRef:u,cumulativeOffsets:h}=this.state,d=this.getMemoisedKey(),{lineInformation:p=[],lineBlocks:y=[],blocks:m=[]}=l[d]??{};let x=0,_=1/0;const w=(i==null?void 0:i.overscan)??20;if(i&&u.current){const V=u.current,P=this.getStickyHeaderHeight(),z=Math.max(0,V.scrollTop-P);if(h){const L=h[h.length-1]||0,U=h.length-2;x=Math.max(0,this.findLineAtOffset(z,h)-w),_=this.findLineAtOffset(z+V.clientHeight,h)+w;const G=Math.ceil(V.clientHeight/rr.ESTIMATED_ROW_HEIGHT);_=Math.max(_,x+G+w),z+V.clientHeight>=L-w*rr.ESTIMATED_ROW_HEIGHT&&(_=U+w)}else{const L=Math.ceil(V.clientHeight/rr.ESTIMATED_ROW_HEIGHT);x=Math.max(0,c-w),_=c+L+w}}const S=new Map,C=new Set;let E=0;for(let V=0;V<p.length;V++){const P=y[V];if(r&&P!==void 0)if(s.includes(P))S.set(V,E),E++;else{const z=m[P].endLine===V;!C.has(P)&&z&&(C.add(P),S.set(V,E),E++)}else S.set(V,E),E++}const N=E,M=[];let A=0,O=!1,q=-1;C.clear();for(let V=0;V<p.length;V++){const P=p[V],z=S.get(V);if(z!==void 0&&!(z<x)){if(z>_)break;if(O||(A=h?h[z]||0:z*rr.ESTIMATED_ROW_HEIGHT,O=!0),q=z,r){const L=y[V];if(L!==void 0){const U=m[L].endLine===V;if(!s.includes(L)&&U){M.push($.jsx(ge.Fragment,{children:this.renderSkippedLineIndicator(m[L].lines,L,P.left.lineNumber??0,P.right.lineNumber??0)},V));continue}if(!s.includes(L))continue}}M.push(n?this.renderSplitView(P,V):this.renderInlineView(P,V))}}const j=h?h[h.length-1]||0:N*rr.ESTIMATED_ROW_HEIGHT,F=h&&q>=0?j-(h[q+1]||j):0;return this.lastRenderedRange={start:x,end:_},{diffNodes:M,blocks:m,lineInformation:p,totalRenderedRows:N,topPadding:A,bottomPadding:F,totalContentHeight:j,renderedCount:M.length,debug:{visibleRowStart:x,visibleRowEnd:_,totalRows:N,offsetsLength:(h==null?void 0:h.length)??0,renderedCount:M.length,scrollTop:((H=u.current)==null?void 0:H.scrollTop)??0,headerHeight:this.getStickyHeaderHeight(),contentScrollTop:u.current?Math.max(0,u.current.scrollTop-this.getStickyHeaderHeight()):0,clientHeight:((Z=u.current)==null?void 0:Z.clientHeight)??0}}});He(this,"render",()=>{var O,q,j,F,H,Z,V;const{oldValue:n,newValue:i,useDarkTheme:r,leftTitle:l,rightTitle:s,splitView:c,compareMethod:u,hideLineNumbers:h,nonce:d}=this.props;if(typeof u=="string"&&u!==Qn.JSON&&(typeof n!="string"||typeof i!="string"))throw Error('"oldValue" and "newValue" should be strings');this.styles=this.computeStyles(this.props.styles??{},r??!1,d??"");const p=this.renderDiff();this.props.renderGutter;let y=0,m=0;for(const P of p.lineInformation)P.left.type===Xt.ADDED&&m++,P.right.type===Xt.ADDED&&m++,P.left.type===Xt.REMOVED&&y++,P.right.type===Xt.REMOVED&&y++;const x=y+m,_=Math.round(m/x*100),w=[];for(let P=0;P<5;P++)_>P*20?w.push($.jsx("span",{className:Or(this.styles.block,this.styles.blockAddition)},P)):w.push($.jsx("span",{className:Or(this.styles.block,this.styles.blockDeletion)},P));const S=this.state.expandedBlocks.length===p.blocks.length,C=this.props.loadingElement,E=this.props.infiniteLoading?{overflowY:"scroll",overflowX:"hidden",height:this.props.infiniteLoading.containerHeight}:{},N=!!this.props.infiniteLoading&&!this.state.cumulativeOffsets,M=$.jsxs("table",{className:Or(this.styles.diffContainer,{[this.styles.splitView]:c,[this.styles.noWrap]:N}),onMouseUp:()=>{},children:[$.jsxs("colgroup",{children:[!this.props.hideLineNumbers&&$.jsx("col",{width:"50px"}),!c&&!this.props.hideLineNumbers&&$.jsx("col",{width:"50px"}),this.props.renderGutter&&$.jsx("col",{width:"50px"}),$.jsx("col",{width:"28px"}),$.jsx("col",{width:"auto"}),c&&$.jsxs($.Fragment,{children:[!this.props.hideLineNumbers&&$.jsx("col",{width:"50px"}),this.props.renderGutter&&$.jsx("col",{width:"50px"}),$.jsx("col",{width:"28px"}),$.jsx("col",{width:"auto"})]})]}),$.jsx("tbody",{children:p.diffNodes})]}),A=(this.state.isLoading||this.state.isScrolling)&&!!C;return $.jsxs("div",{style:{position:"relative"},children:[A&&$.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:3},children:$.jsx(C,{})}),$.jsxs("div",{style:{...E,position:"relative"},onScroll:this.onScroll,ref:this.state.scrollableContainerRef,children:[(!this.props.hideSummary||l||s)&&$.jsxs("div",{ref:this.stickyHeaderRef,className:this.styles.stickyHeader,children:[!this.props.hideSummary&&$.jsxs("div",{className:this.styles.summary,role:"banner",children:[$.jsx("button",{type:"button",className:this.styles.allExpandButton,onClick:()=>{this.setState({expandedBlocks:S?[]:p.blocks.map(P=>P.index)},()=>this.recalculateOffsets())},children:S?$.jsx(n8,{}):$.jsx(cC,{})})," ",x,$.jsx("div",{style:{display:"flex",gap:"1px"},children:w}),this.props.summary?$.jsx("span",{children:this.props.summary}):null]}),(l||s)&&$.jsxs("div",{className:this.styles.columnHeaders,children:[$.jsx("div",{className:this.styles.titleBlock,children:l?$.jsx("pre",{className:this.styles.contentText,children:l}):null}),c&&$.jsx("div",{className:this.styles.titleBlock,children:s?$.jsx("pre",{className:this.styles.contentText,children:s}):null})]})]}),this.props.infiniteLoading?$.jsx("div",{style:{height:p.totalContentHeight,position:"relative"},children:$.jsx("div",{style:{position:"absolute",top:p.topPadding,left:0,right:0,visibility:this.state.isScrolling?"hidden":"visible"},children:M})}):M,$.jsx("span",{ref:this.charMeasureRef,style:{position:"absolute",top:0,left:"-9999px",visibility:"hidden",whiteSpace:"pre",fontFamily:"monospace",fontSize:12},"aria-hidden":"true",children:"M"}),this.props.infiniteLoading&&this.props.showDebugInfo&&$.jsxs("div",{style:{position:"fixed",top:10,right:10,background:"rgba(0,0,0,0.85)",color:"#0f0",padding:"10px",fontFamily:"monospace",fontSize:"11px",zIndex:9999,borderRadius:"4px",maxWidth:"300px",lineHeight:1.4},children:[$.jsx("div",{style:{fontWeight:"bold",marginBottom:"5px",color:"#fff"},children:"Debug Info"}),$.jsxs("div",{children:["scrollTop: ",p.debug.scrollTop]}),$.jsxs("div",{children:["headerHeight: ",p.debug.headerHeight]}),$.jsxs("div",{children:["contentScrollTop: ",p.debug.contentScrollTop]}),$.jsxs("div",{children:["clientHeight: ",p.debug.clientHeight]}),$.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[$.jsxs("div",{children:["visibleRowStart: ",p.debug.visibleRowStart]}),$.jsxs("div",{children:["visibleRowEnd: ",p.debug.visibleRowEnd]})]}),$.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[$.jsxs("div",{children:["totalRows: ",p.debug.totalRows]}),$.jsxs("div",{children:["offsetsLength: ",p.debug.offsetsLength]}),$.jsxs("div",{children:["renderedCount: ",p.debug.renderedCount]})]}),$.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px"},children:[$.jsxs("div",{children:["topPadding: ",p.topPadding.toFixed(0)]}),$.jsxs("div",{children:["bottomPadding: ",p.bottomPadding.toFixed(0)]}),$.jsxs("div",{children:["totalContentHeight: ",p.totalContentHeight.toFixed(0)]})]}),$.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px",color:"#ff0"},children:[$.jsxs("div",{children:["cumulativeOffsets: ",this.state.cumulativeOffsets?"SET":"NULL"]}),$.jsxs("div",{children:["columnWidth: ",((O=this.state.contentColumnWidth)==null?void 0:O.toFixed(0))??"N/A","px"]}),$.jsxs("div",{children:["charWidth: ",((q=this.state.charWidth)==null?void 0:q.toFixed(2))??"N/A","px"]}),$.jsxs("div",{children:["charsPerRow: ",this.state.contentColumnWidth&&this.state.charWidth?Math.floor(this.state.contentColumnWidth/this.state.charWidth):"N/A"]})]}),this.state.cumulativeOffsets&&$.jsxs("div",{style:{marginTop:"5px",borderTop:"1px solid #444",paddingTop:"5px",color:"#0ff",fontSize:"10px"},children:[$.jsxs("div",{children:["offsets[",p.debug.visibleRowEnd,"]: ",((j=this.state.cumulativeOffsets[p.debug.visibleRowEnd])==null?void 0:j.toFixed(0))??"N/A"]}),$.jsxs("div",{children:["offsets[",p.debug.totalRows-1,"]: ",((F=this.state.cumulativeOffsets[p.debug.totalRows-1])==null?void 0:F.toFixed(0))??"N/A"]}),$.jsxs("div",{children:["offsets[",p.debug.totalRows,"]: ",((H=this.state.cumulativeOffsets[p.debug.totalRows])==null?void 0:H.toFixed(0))??"N/A"]}),$.jsxs("div",{style:{marginTop:"3px"},children:["viewportEnd: ",(p.debug.contentScrollTop+p.debug.clientHeight).toFixed(0)]}),$.jsxs("div",{style:{marginTop:"3px",color:"#f0f"},children:["scrollHeight: ",((Z=this.state.scrollableContainerRef.current)==null?void 0:Z.scrollHeight)??"N/A"]}),$.jsxs("div",{children:["maxScrollTop: ",(((V=this.state.scrollableContainerRef.current)==null?void 0:V.scrollHeight)??0)-p.debug.clientHeight]})]})]})]})]})});this.state={expandedBlocks:[],noSelect:void 0,scrollableContainerRef:ge.createRef(),computedDiffResult:{},isLoading:!1,visibleStartRow:0,contentColumnWidth:null,charWidth:null,cumulativeOffsets:null,isScrolling:!1}}getStickyHeaderHeight(){var n;return((n=this.stickyHeaderRef.current)==null?void 0:n.offsetHeight)||0}measureCharWidth(){const n=this.charMeasureRef.current;return n&&n.getBoundingClientRect().width||7.2}measureContentColumnWidth(){const n=this.contentColumnRef.current;if(n&&n.clientWidth>0){const y=window.getComputedStyle(n),m=parseFloat(y.paddingLeft)+parseFloat(y.paddingRight),x=n.clientWidth-m;if(x>0)return x}const i=this.state.scrollableContainerRef.current;if(!i||i.clientWidth<=0)return null;const r=i.clientWidth,l=this.props.hideLineNumbers?0:50,s=28,c=(this.props.splitView,2),u=this.props.splitView?2:1,h=this.props.splitView?2:1,d=c*l+u*s,p=r-d;return Math.max(100,p/h)}getTextLength(n){return n?typeof n=="string"?n.length:n.reduce((i,r)=>i+(typeof r.value=="string"?r.value.length:0),0):0}buildCumulativeOffsets(n,i,r,l,s,c,u,h){var y,m;const d=[0],p=new Set;for(let x=0;x<n.length;x++){const _=n[x];if(s){const M=i[x];if(M!==void 0&&!l.includes(M)){const A=r[M].endLine===x;!p.has(M)&&A&&(p.add(M),d.push(d[d.length-1]+rr.ESTIMATED_ROW_HEIGHT));continue}}const w=(y=_.left)!=null&&y.value?this.getTextLength(_.left.value):0,S=(m=_.right)!=null&&m.value?this.getTextLength(_.right.value):0,C=h?Math.max(w,S):w||S,E=Math.floor(u/c),N=E>0?Math.max(1,Math.ceil(C/E)):1;d.push(d[d.length-1]+N*rr.ESTIMATED_ROW_HEIGHT)}return d}findLineAtOffset(n,i){let r=0,l=i.length-2;for(;r<l;){const s=Math.floor((r+l+1)/2);i[s]<=n?r=s:l=s-1}return r}componentDidUpdate(n){if(n.oldValue!==this.props.oldValue||n.newValue!==this.props.newValue||n.compareMethod!==this.props.compareMethod||n.disableWordDiff!==this.props.disableWordDiff||n.linesOffset!==this.props.linesOffset){this.wordDiffCache.clear();const i=this.state.scrollableContainerRef.current;i&&(i.scrollTop=0),this.setState(r=>({...r,isLoading:!0,visibleStartRow:0,cumulativeOffsets:null})),this.memoisedCompute()}}componentDidMount(){if(this.setState(n=>({...n,isLoading:!0})),this.memoisedCompute(),typeof ResizeObserver<"u"&&this.props.infiniteLoading){this.resizeObserver=new ResizeObserver(()=>{requestAnimationFrame(()=>this.recalculateOffsets())});const n=this.state.scrollableContainerRef.current;n&&this.resizeObserver.observe(n)}}componentWillUnmount(){var n;(n=this.resizeObserver)==null||n.disconnect(),this.scrollDebounceTimer&&clearTimeout(this.scrollDebounceTimer)}};He(rr,"defaultProps",{oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:Qn.CHARS,styles:{},hideLineNumbers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:""}),He(rr,"ESTIMATED_ROW_HEIGHT",19);let Ly=rr;function bC(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,r=n.indexOf(t);for(;r!==-1;)i++,r=n.indexOf(t,r+t.length);return i}function r8(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function rT(e,t,n){const r=ch((n||{}).ignore||[]),l=a8(t);let s=-1;for(;++s<l.length;)sE(e,"text",c);function c(h,d){let p=-1,y;for(;++p<d.length;){const m=d[p],x=y?y.children:void 0;if(r(m,x?x.indexOf(m):void 0,y))return;y=m}if(y)return u(h,d)}function u(h,d){const p=d[d.length-1],y=l[s][0],m=l[s][1];let x=0;const w=p.children.indexOf(h);let S=!1,C=[];y.lastIndex=0;let E=y.exec(h.value);for(;E;){const N=E.index,M={index:E.index,input:E.input,stack:[...d,h]};let A=m(...E,M);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?y.lastIndex=N+1:(x!==N&&C.push({type:"text",value:h.value.slice(x,N)}),Array.isArray(A)?C.push(...A):A&&C.push(A),x=N+E[0].length,S=!0),!y.global)break;E=y.exec(h.value)}return S?(x<h.value.length&&C.push({type:"text",value:h.value.slice(x)}),p.children.splice(w,1,...C)):C=[h],w+C.length}}function a8(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const r=n[i];t.push([l8(r[0]),s8(r[1])])}return t}function l8(e){return typeof e=="string"?new RegExp(r8(e),"g"):e}function s8(e){return typeof e=="function"?e:function(){return e}}const L0="phrasing",R0=["autolink","link","image","label"];function o8(){return{transforms:[g8],enter:{literalAutolink:u8,literalAutolinkEmail:D0,literalAutolinkHttp:D0,literalAutolinkWww:D0},exit:{literalAutolink:p8,literalAutolinkEmail:d8,literalAutolinkHttp:h8,literalAutolinkWww:f8}}}function c8(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:L0,notInConstruct:R0},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:L0,notInConstruct:R0},{character:":",before:"[ps]",after:"\\/",inConstruct:L0,notInConstruct:R0}]}}function u8(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function D0(e){this.config.enter.autolinkProtocol.call(this,e)}function h8(e){this.config.exit.autolinkProtocol.call(this,e)}function f8(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 d8(e){this.config.exit.autolinkEmail.call(this,e)}function p8(e){this.exit(e)}function g8(e){rT(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,m8],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),y8]],{ignore:["link","linkReference"]})}function m8(e,t,n,i,r){let l="";if(!aT(r)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!b8(n)))return!1;const s=x8(n+i);if(!s[0])return!1;const c={type:"link",title:null,url:l+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[c,{type:"text",value:s[1]}]:c}function y8(e,t,n,i){return!aT(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function b8(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 x8(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const r=bC(e,"(");let l=bC(e,")");for(;i!==-1&&r>l;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),l++;return[e,n]}function aT(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||fs(n)||Sp(n))&&(!t||n!==47)}lT.peek=A8;function _8(){this.buffer()}function v8(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function w8(){this.buffer()}function S8(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function C8(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=$r(this.sliceSerialize(e)).toLowerCase(),n.label=t}function k8(e){this.exit(e)}function E8(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=$r(this.sliceSerialize(e)).toLowerCase(),n.label=t}function T8(e){this.exit(e)}function A8(){return"["}function lT(e,t,n,i){const r=n.createTracker(i);let l=r.move("[^");const s=n.enter("footnoteReference"),c=n.enter("reference");return l+=r.move(n.safe(n.associationId(e),{after:"]",before:l})),c(),s(),l+=r.move("]"),l}function M8(){return{enter:{gfmFootnoteCallString:_8,gfmFootnoteCall:v8,gfmFootnoteDefinitionLabelString:w8,gfmFootnoteDefinition:S8},exit:{gfmFootnoteCallString:C8,gfmFootnoteCall:k8,gfmFootnoteDefinitionLabelString:E8,gfmFootnoteDefinition:T8}}}function N8(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:lT},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,r,l,s){const c=l.createTracker(s);let u=c.move("[^");const h=l.enter("footnoteDefinition"),d=l.enter("label");return u+=c.move(l.safe(l.associationId(i),{before:u,after:"]"})),d(),u+=c.move("]:"),i.children&&i.children.length>0&&(c.shift(4),u+=c.move((t?`
|
|
133
|
+
`:" ")+l.indentLines(l.containerFlow(i,c.current()),t?sT:O8))),h(),u}}function O8(e,t,n){return t===0?e:sT(e,t,n)}function sT(e,t,n){return(n?"":" ")+e}const L8=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];oT.peek=$8;function R8(){return{canContainEols:["delete"],enter:{strikethrough:B8},exit:{strikethrough:I8}}}function D8(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:L8}],handlers:{delete:oT}}}function B8(e){this.enter({type:"delete",children:[]},e)}function I8(e){this.exit(e)}function oT(e,t,n,i){const r=n.createTracker(i),l=n.enter("strikethrough");let s=r.move("~~");return s+=n.containerPhrasing(e,{...r.current(),before:s,after:"~"}),s+=r.move("~~"),l(),s}function $8(){return"~"}function F8(e){return e.length}function z8(e,t){const n=t||{},i=(n.align||[]).concat(),r=n.stringLength||F8,l=[],s=[],c=[],u=[];let h=0,d=-1;for(;++d<e.length;){const _=[],w=[];let S=-1;for(e[d].length>h&&(h=e[d].length);++S<e[d].length;){const C=P8(e[d][S]);if(n.alignDelimiters!==!1){const E=r(C);w[S]=E,(u[S]===void 0||E>u[S])&&(u[S]=E)}_.push(C)}s[d]=_,c[d]=w}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<h;)l[p]=xC(i[p]);else{const _=xC(i);for(;++p<h;)l[p]=_}p=-1;const y=[],m=[];for(;++p<h;){const _=l[p];let w="",S="";_===99?(w=":",S=":"):_===108?w=":":_===114&&(S=":");let C=n.alignDelimiters===!1?1:Math.max(1,u[p]-w.length-S.length);const E=w+"-".repeat(C)+S;n.alignDelimiters!==!1&&(C=w.length+C+S.length,C>u[p]&&(u[p]=C),m[p]=C),y[p]=E}s.splice(1,0,y),c.splice(1,0,m),d=-1;const x=[];for(;++d<s.length;){const _=s[d],w=c[d];p=-1;const S=[];for(;++p<h;){const C=_[p]||"";let E="",N="";if(n.alignDelimiters!==!1){const M=u[p]-(w[p]||0),A=l[p];A===114?E=" ".repeat(M):A===99?M%2?(E=" ".repeat(M/2+.5),N=" ".repeat(M/2-.5)):(E=" ".repeat(M/2),N=E):N=" ".repeat(M)}n.delimiterStart!==!1&&!p&&S.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&C==="")&&(n.delimiterStart!==!1||p)&&S.push(" "),n.alignDelimiters!==!1&&S.push(E),S.push(C),n.alignDelimiters!==!1&&S.push(N),n.padding!==!1&&S.push(" "),(n.delimiterEnd!==!1||p!==h-1)&&S.push("|")}x.push(n.delimiterEnd===!1?S.join("").replace(/ +$/,""):S.join(""))}return x.join(`
|
|
134
|
+
`)}function P8(e){return e==null?"":String(e)}function xC(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 H8(e,t,n,i){const r=n.enter("blockquote"),l=n.createTracker(i);l.move("> "),l.shift(2);const s=n.indentLines(n.containerFlow(e,l.current()),U8);return r(),s}function U8(e,t,n){return">"+(n?"":" ")+e}function q8(e,t){return _C(e,t.inConstruct,!0)&&!_C(e,t.notInConstruct,!1)}function _C(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function vC(e,t,n,i){let r=-1;for(;++r<n.unsafe.length;)if(n.unsafe[r].character===`
|
|
135
|
+
`&&q8(n.stack,n.unsafe[r]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
136
|
+
`}function j8(e,t){const n=String(e);let i=n.indexOf(t),r=i,l=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===r?++l>s&&(s=l):l=1,r=i+t.length,i=n.indexOf(t,r);return s}function G8(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 W8(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 Y8(e,t,n,i){const r=W8(n),l=e.value||"",s=r==="`"?"GraveAccent":"Tilde";if(G8(e,n)){const p=n.enter("codeIndented"),y=n.indentLines(l,V8);return p(),y}const c=n.createTracker(i),u=r.repeat(Math.max(j8(l,r)+1,3)),h=n.enter("codeFenced");let d=c.move(u);if(e.lang){const p=n.enter(`codeFencedLang${s}`);d+=c.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...c.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${s}`);d+=c.move(" "),d+=c.move(n.safe(e.meta,{before:d,after:`
|
|
137
|
+
`,encode:["`"],...c.current()})),p()}return d+=c.move(`
|
|
138
|
+
`),l&&(d+=c.move(l+`
|
|
139
|
+
`)),d+=c.move(u),h(),d}function V8(e,t,n){return(n?"":" ")+e}function sx(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 X8(e,t,n,i){const r=sx(n),l=r==='"'?"Quote":"Apostrophe",s=n.enter("definition");let c=n.enter("label");const u=n.createTracker(i);let h=u.move("[");return h+=u.move(n.safe(n.associationId(e),{before:h,after:"]",...u.current()})),h+=u.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(n.safe(e.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(c=n.enter("destinationRaw"),h+=u.move(n.safe(e.url,{before:h,after:e.title?" ":`
|
|
140
|
+
`,...u.current()}))),c(),e.title&&(c=n.enter(`title${l}`),h+=u.move(" "+r),h+=u.move(n.safe(e.title,{before:h,after:r,...u.current()})),h+=u.move(r),c()),s(),h}function K8(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 Wu(e){return"&#x"+e.toString(16).toUpperCase()+";"}function $d(e,t,n){const i=Fo(e),r=Fo(t);return i===void 0?r===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}cT.peek=Z8;function cT(e,t,n,i){const r=K8(n),l=n.enter("emphasis"),s=n.createTracker(i),c=s.move(r);let u=s.move(n.containerPhrasing(e,{after:r,before:c,...s.current()}));const h=u.charCodeAt(0),d=$d(i.before.charCodeAt(i.before.length-1),h,r);d.inside&&(u=Wu(h)+u.slice(1));const p=u.charCodeAt(u.length-1),y=$d(i.after.charCodeAt(0),p,r);y.inside&&(u=u.slice(0,-1)+Wu(p));const m=s.move(r);return l(),n.attentionEncodeSurroundingInfo={after:y.outside,before:d.outside},c+u+m}function Z8(e,t,n){return n.options.emphasis||"*"}function Q8(e,t){let n=!1;return Tp(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,gy}),!!((!e.depth||e.depth<3)&&qb(e)&&(t.options.setext||n))}function J8(e,t,n,i){const r=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(i);if(Q8(e,n)){const d=n.enter("headingSetext"),p=n.enter("phrasing"),y=n.containerPhrasing(e,{...l.current(),before:`
|
|
141
|
+
`,after:`
|
|
142
|
+
`});return p(),d(),y+`
|
|
143
|
+
`+(r===1?"=":"-").repeat(y.length-(Math.max(y.lastIndexOf("\r"),y.lastIndexOf(`
|
|
144
|
+
`))+1))}const s="#".repeat(r),c=n.enter("headingAtx"),u=n.enter("phrasing");l.move(s+" ");let h=n.containerPhrasing(e,{before:"# ",after:`
|
|
145
|
+
`,...l.current()});return/^[\t ]/.test(h)&&(h=Wu(h.charCodeAt(0))+h.slice(1)),h=h?s+" "+h:s,n.options.closeAtx&&(h+=" "+s),u(),c(),h}uT.peek=eP;function uT(e){return e.value||""}function eP(){return"<"}hT.peek=tP;function hT(e,t,n,i){const r=sx(n),l=r==='"'?"Quote":"Apostrophe",s=n.enter("image");let c=n.enter("label");const u=n.createTracker(i);let h=u.move("![");return h+=u.move(n.safe(e.alt,{before:h,after:"]",...u.current()})),h+=u.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),h+=u.move("<"),h+=u.move(n.safe(e.url,{before:h,after:">",...u.current()})),h+=u.move(">")):(c=n.enter("destinationRaw"),h+=u.move(n.safe(e.url,{before:h,after:e.title?" ":")",...u.current()}))),c(),e.title&&(c=n.enter(`title${l}`),h+=u.move(" "+r),h+=u.move(n.safe(e.title,{before:h,after:r,...u.current()})),h+=u.move(r),c()),h+=u.move(")"),s(),h}function tP(){return"!"}fT.peek=nP;function fT(e,t,n,i){const r=e.referenceType,l=n.enter("imageReference");let s=n.enter("label");const c=n.createTracker(i);let u=c.move("![");const h=n.safe(e.alt,{before:u,after:"]",...c.current()});u+=c.move(h+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const p=n.safe(n.associationId(e),{before:u,after:"]",...c.current()});return s(),n.stack=d,l(),r==="full"||!h||h!==p?u+=c.move(p+"]"):r==="shortcut"?u=u.slice(0,-1):u+=c.move("]"),u}function nP(){return"!"}dT.peek=iP;function dT(e,t,n){let i=e.value||"",r="`",l=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++l<n.unsafe.length;){const s=n.unsafe[l],c=n.compilePattern(s);let u;if(s.atBreak)for(;u=c.exec(i);){let h=u.index;i.charCodeAt(h)===10&&i.charCodeAt(h-1)===13&&h--,i=i.slice(0,h)+" "+i.slice(u.index+1)}}return r+i+r}function iP(){return"`"}function pT(e,t){const n=qb(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}gT.peek=rP;function gT(e,t,n,i){const r=sx(n),l=r==='"'?"Quote":"Apostrophe",s=n.createTracker(i);let c,u;if(pT(e,n)){const d=n.stack;n.stack=[],c=n.enter("autolink");let p=s.move("<");return p+=s.move(n.containerPhrasing(e,{before:p,after:">",...s.current()})),p+=s.move(">"),c(),n.stack=d,p}c=n.enter("link"),u=n.enter("label");let h=s.move("[");return h+=s.move(n.containerPhrasing(e,{before:h,after:"](",...s.current()})),h+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),h+=s.move("<"),h+=s.move(n.safe(e.url,{before:h,after:">",...s.current()})),h+=s.move(">")):(u=n.enter("destinationRaw"),h+=s.move(n.safe(e.url,{before:h,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${l}`),h+=s.move(" "+r),h+=s.move(n.safe(e.title,{before:h,after:r,...s.current()})),h+=s.move(r),u()),h+=s.move(")"),c(),h}function rP(e,t,n){return pT(e,n)?"<":"["}mT.peek=aP;function mT(e,t,n,i){const r=e.referenceType,l=n.enter("linkReference");let s=n.enter("label");const c=n.createTracker(i);let u=c.move("[");const h=n.containerPhrasing(e,{before:u,after:"]",...c.current()});u+=c.move(h+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const p=n.safe(n.associationId(e),{before:u,after:"]",...c.current()});return s(),n.stack=d,l(),r==="full"||!h||h!==p?u+=c.move(p+"]"):r==="shortcut"?u=u.slice(0,-1):u+=c.move("]"),u}function aP(){return"["}function ox(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 lP(e){const t=ox(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function sP(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 yT(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 oP(e,t,n,i){const r=n.enter("list"),l=n.bulletCurrent;let s=e.ordered?sP(n):ox(n);const c=e.ordered?s==="."?")":".":lP(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),yT(n)===s&&d){let p=-1;for(;++p<e.children.length;){const y=e.children[p];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(s=c),n.bulletCurrent=s;const h=n.containerFlow(e,i);return n.bulletLastUsed=s,n.bulletCurrent=l,r(),h}function cP(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 uP(e,t,n,i){const r=cP(n);let l=n.bulletCurrent||ox(n);t&&t.type==="list"&&t.ordered&&(l=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let s=l.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const c=n.createTracker(i);c.move(l+" ".repeat(s-l.length)),c.shift(s);const u=n.enter("listItem"),h=n.indentLines(n.containerFlow(e,c.current()),d);return u(),h;function d(p,y,m){return y?(m?"":" ".repeat(s))+p:(m?l:l+" ".repeat(s-l.length))+p}}function hP(e,t,n,i){const r=n.enter("paragraph"),l=n.enter("phrasing"),s=n.containerPhrasing(e,i);return l(),r(),s}const fP=ch(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function dP(e,t,n,i){return(e.children.some(function(s){return fP(s)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function pP(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}bT.peek=gP;function bT(e,t,n,i){const r=pP(n),l=n.enter("strong"),s=n.createTracker(i),c=s.move(r+r);let u=s.move(n.containerPhrasing(e,{after:r,before:c,...s.current()}));const h=u.charCodeAt(0),d=$d(i.before.charCodeAt(i.before.length-1),h,r);d.inside&&(u=Wu(h)+u.slice(1));const p=u.charCodeAt(u.length-1),y=$d(i.after.charCodeAt(0),p,r);y.inside&&(u=u.slice(0,-1)+Wu(p));const m=s.move(r+r);return l(),n.attentionEncodeSurroundingInfo={after:y.outside,before:d.outside},c+u+m}function gP(e,t,n){return n.options.strong||"*"}function mP(e,t,n,i){return n.safe(e.value,i)}function yP(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 bP(e,t,n){const i=(yT(n)+(n.options.ruleSpaces?" ":"")).repeat(yP(n));return n.options.ruleSpaces?i.slice(0,-1):i}const xT={blockquote:H8,break:vC,code:Y8,definition:X8,emphasis:cT,hardBreak:vC,heading:J8,html:uT,image:hT,imageReference:fT,inlineCode:dT,link:gT,linkReference:mT,list:oP,listItem:uP,paragraph:hP,root:dP,strong:bT,text:mP,thematicBreak:bP};function xP(){return{enter:{table:_P,tableData:wC,tableHeader:wC,tableRow:wP},exit:{codeText:SP,table:vP,tableData:B0,tableHeader:B0,tableRow:B0}}}function _P(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function vP(e){this.exit(e),this.data.inTable=void 0}function wP(e){this.enter({type:"tableRow",children:[]},e)}function B0(e){this.exit(e)}function wC(e){this.enter({type:"tableCell",children:[]},e)}function SP(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,CP));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function CP(e,t){return t==="|"?t:e}function kP(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,r=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
146
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:s,tableCell:u,tableRow:c}};function s(m,x,_,w){return h(d(m,_,w),m.align)}function c(m,x,_,w){const S=p(m,_,w),C=h([S]);return C.slice(0,C.indexOf(`
|
|
147
|
+
`))}function u(m,x,_,w){const S=_.enter("tableCell"),C=_.enter("phrasing"),E=_.containerPhrasing(m,{...w,before:l,after:l});return C(),S(),E}function h(m,x){return z8(m,{align:x,alignDelimiters:i,padding:n,stringLength:r})}function d(m,x,_){const w=m.children;let S=-1;const C=[],E=x.enter("table");for(;++S<w.length;)C[S]=p(w[S],x,_);return E(),C}function p(m,x,_){const w=m.children;let S=-1;const C=[],E=x.enter("tableRow");for(;++S<w.length;)C[S]=u(w[S],m,x,_);return E(),C}function y(m,x,_){let w=xT.inlineCode(m,x,_);return _.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function EP(){return{exit:{taskListCheckValueChecked:SC,taskListCheckValueUnchecked:SC,paragraph:AP}}}function TP(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:MP}}}function SC(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function AP(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const r=t.children;let l=-1,s;for(;++l<r.length;){const c=r[l];if(c.type==="paragraph"){s=c;break}}s===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function MP(e,t,n,i){const r=e.children[0],l=typeof e.checked=="boolean"&&r&&r.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",c=n.createTracker(i);l&&c.move(s);let u=xT.listItem(e,t,n,{...i,...c.current()});return l&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),u;function h(d){return d+s}}function NP(){return[o8(),M8(),R8(),xP(),EP()]}function OP(e){return{extensions:[c8(),N8(e),D8(),kP(e),TP()]}}const LP={tokenize:FP,partial:!0},_T={tokenize:zP,partial:!0},vT={tokenize:PP,partial:!0},wT={tokenize:HP,partial:!0},RP={tokenize:UP,partial:!0},ST={name:"wwwAutolink",tokenize:IP,previous:kT},CT={name:"protocolAutolink",tokenize:$P,previous:ET},Ha={name:"emailAutolink",tokenize:BP,previous:TT},aa={};function DP(){return{text:aa}}let Jl=48;for(;Jl<123;)aa[Jl]=Ha,Jl++,Jl===58?Jl=65:Jl===91&&(Jl=97);aa[43]=Ha;aa[45]=Ha;aa[46]=Ha;aa[95]=Ha;aa[72]=[Ha,CT];aa[104]=[Ha,CT];aa[87]=[Ha,ST];aa[119]=[Ha,ST];function BP(e,t,n){const i=this;let r,l;return s;function s(p){return!Ry(p)||!TT.call(i,i.previous)||cx(i.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(p))}function c(p){return Ry(p)?(e.consume(p),c):p===64?(e.consume(p),u):n(p)}function u(p){return p===46?e.check(RP,d,h)(p):p===45||p===95||li(p)?(l=!0,e.consume(p),u):d(p)}function h(p){return e.consume(p),r=!0,u}function d(p){return l&&r&&_i(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function IP(e,t,n){const i=this;return r;function r(s){return s!==87&&s!==119||!kT.call(i,i.previous)||cx(i.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(LP,e.attempt(_T,e.attempt(vT,l),n),n)(s))}function l(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function $P(e,t,n){const i=this;let r="",l=!1;return s;function s(p){return(p===72||p===104)&&ET.call(i,i.previous)&&!cx(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(p),e.consume(p),c):n(p)}function c(p){if(_i(p)&&r.length<5)return r+=String.fromCodePoint(p),e.consume(p),c;if(p===58){const y=r.toLowerCase();if(y==="http"||y==="https")return e.consume(p),u}return n(p)}function u(p){return p===47?(e.consume(p),l?h:(l=!0,u)):n(p)}function h(p){return p===null||Cd(p)||Kt(p)||fs(p)||Sp(p)?n(p):e.attempt(_T,e.attempt(vT,d),n)(p)}function d(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function FP(e,t,n){let i=0;return r;function r(s){return(s===87||s===119)&&i<3?(i++,e.consume(s),r):s===46&&i===3?(e.consume(s),l):n(s)}function l(s){return s===null?n(s):t(s)}}function zP(e,t,n){let i,r,l;return s;function s(h){return h===46||h===95?e.check(wT,u,c)(h):h===null||Kt(h)||fs(h)||h!==45&&Sp(h)?u(h):(l=!0,e.consume(h),s)}function c(h){return h===95?i=!0:(r=i,i=void 0),e.consume(h),s}function u(h){return r||i||!l?n(h):t(h)}}function PP(e,t){let n=0,i=0;return r;function r(s){return s===40?(n++,e.consume(s),r):s===41&&i<n?l(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(wT,t,l)(s):s===null||Kt(s)||fs(s)?t(s):(e.consume(s),r)}function l(s){return s===41&&i++,e.consume(s),r}}function HP(e,t,n){return i;function i(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),i):c===38?(e.consume(c),l):c===93?(e.consume(c),r):c===60||c===null||Kt(c)||fs(c)?t(c):n(c)}function r(c){return c===null||c===40||c===91||Kt(c)||fs(c)?t(c):i(c)}function l(c){return _i(c)?s(c):n(c)}function s(c){return c===59?(e.consume(c),i):_i(c)?(e.consume(c),s):n(c)}}function UP(e,t,n){return i;function i(l){return e.consume(l),r}function r(l){return li(l)?n(l):t(l)}}function kT(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Kt(e)}function ET(e){return!_i(e)}function TT(e){return!(e===47||Ry(e))}function Ry(e){return e===43||e===45||e===46||e===95||li(e)}function cx(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const qP={tokenize:ZP,partial:!0};function jP(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:VP,continuation:{tokenize:XP},exit:KP}},text:{91:{name:"gfmFootnoteCall",tokenize:YP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:GP,resolveTo:WP}}}}function GP(e,t,n){const i=this;let r=i.events.length;const l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s;for(;r--;){const u=i.events[r][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 c;function c(u){if(!s||!s._balanced)return n(u);const h=$r(i.sliceSerialize({start:s.end,end:i.now()}));return h.codePointAt(0)!==94||!l.includes(h.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function WP(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},c=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",l,t],["enter",s,t],["exit",s,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...c),e}function YP(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let l=0,s;return c;function c(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),u}function u(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(p){if(l>999||p===93&&!s||p===null||p===91||Kt(p))return n(p);if(p===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return r.includes($r(i.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return Kt(p)||(s=!0),l++,e.consume(p),p===92?d:h}function d(p){return p===91||p===92||p===93?(e.consume(p),l++,h):h(p)}}function VP(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let l,s=0,c;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):n(x)}function d(x){if(s>999||x===93&&!c||x===null||x===91||Kt(x))return n(x);if(x===93){e.exit("chunkString");const _=e.exit("gfmFootnoteDefinitionLabelString");return l=$r(i.sliceSerialize(_)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return Kt(x)||(c=!0),s++,e.consume(x),x===92?p:d}function p(x){return x===91||x===92||x===93?(e.consume(x),s++,d):d(x)}function y(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),r.includes(l)||r.push(l),kt(e,m,"gfmFootnoteDefinitionWhitespace")):n(x)}function m(x){return t(x)}}function XP(e,t,n){return e.check(oh,t,e.attempt(qP,t,n))}function KP(e){e.exit("gfmFootnoteDefinition")}function ZP(e,t,n){const i=this;return kt(e,r,"gfmFootnoteDefinitionIndent",5);function r(l){const s=i.events[i.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(l):n(l)}}function QP(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:l,resolveAll:r};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(s,c){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)},p={type:"strikethroughText",start:Object.assign({},s[h][1].end),end:Object.assign({},s[u][1].start)},y=[["enter",d,c],["enter",s[h][1],c],["exit",s[h][1],c],["enter",p,c]],m=c.parser.constructs.insideSpan.null;m&&ar(y,y.length,0,Cp(m,s.slice(h+1,u),c)),ar(y,y.length,0,[["exit",p,c],["enter",s[u][1],c],["exit",s[u][1],c],["exit",d,c]]),ar(s,h-1,u-h+3,y),u=h+y.length-2;break}}for(u=-1;++u<s.length;)s[u][1].type==="strikethroughSequenceTemporary"&&(s[u][1].type="data");return s}function l(s,c,u){const h=this.previous,d=this.events;let p=0;return y;function y(x){return h===126&&d[d.length-1][1].type!=="characterEscape"?u(x):(s.enter("strikethroughSequenceTemporary"),m(x))}function m(x){const _=Fo(h);if(x===126)return p>1?u(x):(s.consume(x),p++,m);if(p<2&&!n)return u(x);const w=s.exit("strikethroughSequenceTemporary"),S=Fo(x);return w._open=!S||S===2&&!!_,w._close=!_||_===2&&!!S,c(x)}}}class JP{constructor(){this.map=[]}add(t,n,i){eH(this,t,n,i)}consume(t){if(this.map.sort(function(l,s){return l[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let r=i.pop();for(;r;){for(const l of r)t.push(l);r=i.pop()}this.map.length=0}}function eH(e,t,n,i){let r=0;if(!(n===0&&i.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...i);return}r+=1}e.map.push([t,n,i])}}function tH(e,t){let n=!1;const i=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const l=i.length-1;i[l]=i[l]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function nH(){return{flow:{null:{name:"table",tokenize:iH,resolveAll:rH}}}}function iH(e,t,n){const i=this;let r=0,l=0,s;return c;function c(F){let H=i.events.length-1;for(;H>-1;){const P=i.events[H][1].type;if(P==="lineEnding"||P==="linePrefix")H--;else break}const Z=H>-1?i.events[H][1].type:null,V=Z==="tableHead"||Z==="tableRow"?A:u;return V===A&&i.parser.lazy[i.now().line]?n(F):V(F)}function u(F){return e.enter("tableHead"),e.enter("tableRow"),h(F)}function h(F){return F===124||(s=!0,l+=1),d(F)}function d(F){return F===null?n(F):Xe(F)?l>1?(l=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),m):n(F):gt(F)?kt(e,d,"whitespace")(F):(l+=1,s&&(s=!1,r+=1),F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),p(F)))}function p(F){return F===null||F===124||Kt(F)?(e.exit("data"),d(F)):(e.consume(F),F===92?y:p)}function y(F){return F===92||F===124?(e.consume(F),p):p(F)}function m(F){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(F):(e.enter("tableDelimiterRow"),s=!1,gt(F)?kt(e,x,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):x(F))}function x(F){return F===45||F===58?w(F):F===124?(s=!0,e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),_):M(F)}function _(F){return gt(F)?kt(e,w,"whitespace")(F):w(F)}function w(F){return F===58?(l+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),S):F===45?(l+=1,S(F)):F===null||Xe(F)?N(F):M(F)}function S(F){return F===45?(e.enter("tableDelimiterFiller"),C(F)):M(F)}function C(F){return F===45?(e.consume(F),C):F===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(F))}function E(F){return gt(F)?kt(e,N,"whitespace")(F):N(F)}function N(F){return F===124?x(F):F===null||Xe(F)?!s||r!==l?M(F):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(F)):M(F)}function M(F){return n(F)}function A(F){return e.enter("tableRow"),O(F)}function O(F){return F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),O):F===null||Xe(F)?(e.exit("tableRow"),t(F)):gt(F)?kt(e,O,"whitespace")(F):(e.enter("data"),q(F))}function q(F){return F===null||F===124||Kt(F)?(e.exit("data"),O(F)):(e.consume(F),F===92?j:q)}function j(F){return F===92||F===124?(e.consume(F),q):q(F)}}function rH(e,t){let n=-1,i=!0,r=0,l=[0,0,0,0],s=[0,0,0,0],c=!1,u=0,h,d,p;const y=new JP;for(;++n<e.length;){const m=e[n],x=m[1];m[0]==="enter"?x.type==="tableHead"?(c=!1,u!==0&&(CC(y,t,u,h,d),d=void 0,u=0),h={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},y.add(n,0,[["enter",h,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(i=!0,p=void 0,l=[0,0,0,0],s=[0,n+1,0,0],c&&(c=!1,d={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},y.add(n,0,[["enter",d,t]])),r=x.type==="tableDelimiterRow"?2:d?3:1):r&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(l[1]!==0&&(s[0]=s[1],p=Pf(y,t,l,r,void 0,p),l=[0,0,0,0]),s[2]=n)):x.type==="tableCellDivider"&&(i?i=!1:(l[1]!==0&&(s[0]=s[1],p=Pf(y,t,l,r,void 0,p)),l=s,s=[l[1],n,0,0])):x.type==="tableHead"?(c=!0,u=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(u=n,l[1]!==0?(s[0]=s[1],p=Pf(y,t,l,r,n,p)):s[1]!==0&&(p=Pf(y,t,s,r,n,p)),r=0):r&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(s[3]=n)}for(u!==0&&CC(y,t,u,h,d),y.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=tH(t.events,n))}return e}function Pf(e,t,n,i,r,l){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(l.end=Object.assign({},mo(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));const u=mo(t.events,n[1]);if(l={type:s,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",l,t]]),n[2]!==0){const h=mo(t.events,n[2]),d=mo(t.events,n[3]),p={type:c,start:Object.assign({},h),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",p,t]]),i!==2){const y=t.events[n[2]],m=t.events[n[3]];if(y[1].end=Object.assign({},m[1].end),y[1].type="chunkText",y[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,_=n[3]-n[2]-1;e.add(x,_,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return r!==void 0&&(l.end=Object.assign({},mo(t.events,r)),e.add(r,0,[["exit",l,t]]),l=void 0),l}function CC(e,t,n,i,r){const l=[],s=mo(t.events,n);r&&(r.end=Object.assign({},s),l.push(["exit",r,t])),i.end=Object.assign({},s),l.push(["exit",i,t]),e.add(n+1,0,l)}function mo(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const aH={name:"tasklistCheck",tokenize:sH};function lH(){return{text:{91:aH}}}function sH(e,t,n){const i=this;return r;function r(u){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),l)}function l(u){return Kt(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):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(u)}function c(u){return Xe(u)?t(u):gt(u)?e.check({tokenize:oH},t,n)(u):n(u)}}function oH(e,t,n){return kt(e,i,"whitespace");function i(r){return r===null?n(r):t(r)}}function cH(e){return Uk([DP(),jP(),QP(e),nH(),lH()])}const uH={};function hH(e){const t=this,n=e||uH,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),l=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(cH(n)),l.push(NP()),s.push(OP(n))}function fH(e){rT(e,[/\r?\n|\r/g,dH])}function dH(){return{type:"break"}}function pH(){return function(e){fH(e)}}const kC=(function(e,t,n){const i=ch(n);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(i(e.children[t],t,e))return e.children[t]}),vs=(function(e){if(e==null)return yH;if(typeof e=="string")return mH(e);if(typeof e=="object")return gH(e);if(typeof e=="function")return ux(e);throw new Error("Expected function, string, or array as `test`")});function gH(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=vs(e[n]);return ux(i);function i(...r){let l=-1;for(;++l<t.length;)if(t[l].apply(this,r))return!0;return!1}}function mH(e){return ux(t);function t(n){return n.tagName===e}}function ux(e){return t;function t(n,i,r){return!!(bH(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function yH(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function bH(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const EC=/\n/g,TC=/[\t ]+/g,Dy=vs("br"),AC=vs(EH),xH=vs("p"),MC=vs("tr"),_H=vs(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",kH,TH]),AT=vs(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function vH(e,t){const n=t||{},i="children"in e?e.children:[],r=AT(e),l=OT(e,{whitespace:n.whitespace||"normal"}),s=[];(e.type==="text"||e.type==="comment")&&s.push(...NT(e,{breakBefore:!0,breakAfter:!0}));let c=-1;for(;++c<i.length;)s.push(...MT(i[c],e,{whitespace:l,breakBefore:c?void 0:r,breakAfter:c<i.length-1?Dy(i[c+1]):r}));const u=[];let h;for(c=-1;++c<s.length;){const d=s[c];typeof d=="number"?h!==void 0&&d>h&&(h=d):d&&(h!==void 0&&h>-1&&u.push(`
|
|
148
|
+
`.repeat(h)||" "),h=-1,u.push(d))}return u.join("")}function MT(e,t,n){return e.type==="element"?wH(e,t,n):e.type==="text"?n.whitespace==="normal"?NT(e,n):SH(e):[]}function wH(e,t,n){const i=OT(e,n),r=e.children||[];let l=-1,s=[];if(_H(e))return s;let c,u;for(Dy(e)||MC(e)&&kC(t,e,MC)?u=`
|
|
149
|
+
`:xH(e)?(c=2,u=2):AT(e)&&(c=1,u=1);++l<r.length;)s=s.concat(MT(r[l],e,{whitespace:i,breakBefore:l?void 0:c,breakAfter:l<r.length-1?Dy(r[l+1]):u}));return AC(e)&&kC(t,e,AC)&&s.push(" "),c&&s.unshift(c),u&&s.push(u),s}function NT(e,t){const n=String(e.value),i=[],r=[];let l=0;for(;l<=n.length;){EC.lastIndex=l;const u=EC.exec(n),h=u&&"index"in u?u.index:n.length;i.push(CH(n.slice(l,h).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),l===0?t.breakBefore:!0,h===n.length?t.breakAfter:!0)),l=h+1}let s=-1,c;for(;++s<i.length;)i[s].charCodeAt(i[s].length-1)===8203||s<i.length-1&&i[s+1].charCodeAt(0)===8203?(r.push(i[s]),c=void 0):i[s]?(typeof c=="number"&&r.push(c),r.push(i[s]),c=0):(s===0||s===i.length-1)&&r.push(0);return r}function SH(e){return[String(e.value)]}function CH(e,t,n){const i=[];let r=0,l;for(;r<e.length;){TC.lastIndex=r;const s=TC.exec(e);l=s?s.index:e.length,!r&&!l&&s&&!t&&i.push(""),r!==l&&i.push(e.slice(r,l)),r=s?l+s[0].length:l}return r!==l&&!n&&i.push(""),i.join(" ")}function OT(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function kH(e){return!!(e.properties||{}).hidden}function EH(e){return e.tagName==="td"||e.tagName==="th"}function TH(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function AH(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",s="(?!struct)("+i+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},y={className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0},m=t.optional(r)+e.IDENT_RE+"\\s*\\(",x=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],_=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],w=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],S=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],N={type:_,keyword:x,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:w},M={className:"function.dispatch",relevance:0,keywords:{_hint:S},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},A=[M,p,c,n,e.C_BLOCK_COMMENT_MODE,d,h],O={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:N,contains:A.concat([{begin:/\(/,end:/\)/,keywords:N,contains:A.concat(["self"]),relevance:0}]),relevance:0},q={className:"function",begin:"("+s+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:N,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:N,relevance:0},{begin:m,returnBegin:!0,contains:[y],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:N,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,h,d,c,{begin:/\(/,end:/\)/,keywords:N,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,h,d,c]}]},c,n,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:N,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(O,q,M,A,[p,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:N,contains:["self",c]},{begin:e.IDENT_RE+"::",keywords:N},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function MH(e){const t={type:["boolean","byte","word","String"],built_in:["KeyboardController","MouseController","SoftwareSerial","EthernetServer","EthernetClient","LiquidCrystal","RobotControl","GSMVoiceCall","EthernetUDP","EsploraTFT","HttpClient","RobotMotor","WiFiClient","GSMScanner","FileSystem","Scheduler","GSMServer","YunClient","YunServer","IPAddress","GSMClient","GSMModem","Keyboard","Ethernet","Console","GSMBand","Esplora","Stepper","Process","WiFiUDP","GSM_SMS","Mailbox","USBHost","Firmata","PImage","Client","Server","GSMPIN","FileIO","Bridge","Serial","EEPROM","Stream","Mouse","Audio","Servo","File","Task","GPRS","WiFi","Wire","TFT","GSM","SPI","SD"],_hints:["setup","loop","runShellCommandAsynchronously","analogWriteResolution","retrieveCallingNumber","printFirmwareVersion","analogReadResolution","sendDigitalPortPair","noListenOnLocalhost","readJoystickButton","setFirmwareVersion","readJoystickSwitch","scrollDisplayRight","getVoiceCallStatus","scrollDisplayLeft","writeMicroseconds","delayMicroseconds","beginTransmission","getSignalStrength","runAsynchronously","getAsynchronously","listenOnLocalhost","getCurrentCarrier","readAccelerometer","messageAvailable","sendDigitalPorts","lineFollowConfig","countryNameWrite","runShellCommand","readStringUntil","rewindDirectory","readTemperature","setClockDivider","readLightSensor","endTransmission","analogReference","detachInterrupt","countryNameRead","attachInterrupt","encryptionType","readBytesUntil","robotNameWrite","readMicrophone","robotNameRead","cityNameWrite","userNameWrite","readJoystickY","readJoystickX","mouseReleased","openNextFile","scanNetworks","noInterrupts","digitalWrite","beginSpeaker","mousePressed","isActionDone","mouseDragged","displayLogos","noAutoscroll","addParameter","remoteNumber","getModifiers","keyboardRead","userNameRead","waitContinue","processInput","parseCommand","printVersion","readNetworks","writeMessage","blinkVersion","cityNameRead","readMessage","setDataMode","parsePacket","isListening","setBitOrder","beginPacket","isDirectory","motorsWrite","drawCompass","digitalRead","clearScreen","serialEvent","rightToLeft","setTextSize","leftToRight","requestFrom","keyReleased","compassRead","analogWrite","interrupts","WiFiServer","disconnect","playMelody","parseFloat","autoscroll","getPINUsed","setPINUsed","setTimeout","sendAnalog","readSlider","analogRead","beginWrite","createChar","motorsStop","keyPressed","tempoWrite","readButton","subnetMask","debugPrint","macAddress","writeGreen","randomSeed","attachGPRS","readString","sendString","remotePort","releaseAll","mouseMoved","background","getXChange","getYChange","answerCall","getResult","voiceCall","endPacket","constrain","getSocket","writeJSON","getButton","available","connected","findUntil","readBytes","exitValue","readGreen","writeBlue","startLoop","IPAddress","isPressed","sendSysex","pauseMode","gatewayIP","setCursor","getOemKey","tuneWrite","noDisplay","loadImage","switchPIN","onRequest","onReceive","changePIN","playFile","noBuffer","parseInt","overflow","checkPIN","knobRead","beginTFT","bitClear","updateIR","bitWrite","position","writeRGB","highByte","writeRed","setSpeed","readBlue","noStroke","remoteIP","transfer","shutdown","hangCall","beginSMS","endWrite","attached","maintain","noCursor","checkReg","checkPUK","shiftOut","isValid","shiftIn","pulseIn","connect","println","localIP","pinMode","getIMEI","display","noBlink","process","getBand","running","beginSD","drawBMP","lowByte","setBand","release","bitRead","prepare","pointTo","readRed","setMode","noFill","remove","listen","stroke","detach","attach","noTone","exists","buffer","height","bitSet","circle","config","cursor","random","IRread","setDNS","endSMS","getKey","micros","millis","begin","print","write","ready","flush","width","isPIN","blink","clear","press","mkdir","rmdir","close","point","yield","image","BSSID","click","delay","read","text","move","peek","beep","rect","line","open","seek","fill","size","turn","stop","home","find","step","tone","sqrt","RSSI","SSID","end","bit","tan","cos","sin","pow","map","abs","max","min","get","run","put"],literal:["DIGITAL_MESSAGE","FIRMATA_STRING","ANALOG_MESSAGE","REPORT_DIGITAL","REPORT_ANALOG","INPUT_PULLUP","SET_PIN_MODE","INTERNAL2V56","SYSTEM_RESET","LED_BUILTIN","INTERNAL1V1","SYSEX_START","INTERNAL","EXTERNAL","DEFAULT","OUTPUT","INPUT","HIGH","LOW"]},n=AH(e),i=n.keywords;return i.type=[...i.type,...t.type],i.literal=[...i.literal,...t.literal],i.built_in=[...i.built_in,...t.built_in],i._hints=t._hints,n.name="Arduino",n.aliases=["ino"],n.supersetOf="cpp",n}function NH(e){const t=e.regex,n={},i={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},i]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},l=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),s={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},c={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,r]};r.contains.push(c);const u={match:/\\"/},h={className:"string",begin:/'/,end:/'/},d={match:/\\'/},p={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},y=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],m=e.SHEBANG({binary:`(${y.join("|")})`,relevance:10}),x={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},_=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],w=["true","false"],S={match:/(\/[a-z._-]+)+/},C=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],E=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],N=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],M=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:_,literal:w,built_in:[...C,...E,"set","shopt",...N,...M]},contains:[m,e.SHEBANG(),x,p,l,s,S,c,u,h,d,n]}}function OH(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",s="("+i+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},y={className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0},m=t.optional(r)+e.IDENT_RE+"\\s*\\(",w={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},S=[p,c,n,e.C_BLOCK_COMMENT_MODE,d,h],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:S.concat([{begin:/\(/,end:/\)/,keywords:w,contains:S.concat(["self"]),relevance:0}]),relevance:0},E={begin:"("+s+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:w,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:w,relevance:0},{begin:m,returnBegin:!0,contains:[e.inherit(y,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,h,d,c,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,h,d,c]}]},c,n,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C",aliases:["h"],keywords:w,disableAutodetect:!0,illegal:"</",contains:[].concat(C,E,S,[p,{begin:e.IDENT_RE+"::",keywords:w},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:p,strings:h,keywords:w}}}function LH(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),i="decltype\\(auto\\)",r="[a-zA-Z_]\\w*::",s="(?!struct)("+i+"|"+t.optional(r)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",c={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},h={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},d={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},p={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(h,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},y={className:"title",begin:t.optional(r)+e.IDENT_RE,relevance:0},m=t.optional(r)+e.IDENT_RE+"\\s*\\(",x=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],_=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],w=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],S=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],N={type:_,keyword:x,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:w},M={className:"function.dispatch",relevance:0,keywords:{_hint:S},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},A=[M,p,c,n,e.C_BLOCK_COMMENT_MODE,d,h],O={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:N,contains:A.concat([{begin:/\(/,end:/\)/,keywords:N,contains:A.concat(["self"]),relevance:0}]),relevance:0},q={className:"function",begin:"("+s+"[\\*&\\s]+)+"+m,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:N,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:i,keywords:N,relevance:0},{begin:m,returnBegin:!0,contains:[y],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[h,d]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:N,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,h,d,c,{begin:/\(/,end:/\)/,keywords:N,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,h,d,c]}]},c,n,e.C_BLOCK_COMMENT_MODE,p]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:N,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(O,q,M,A,[p,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:N,contains:["self",c]},{begin:e.IDENT_RE+"::",keywords:N},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function RH(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],i=["default","false","null","true"],r=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],l=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],s={keyword:r.concat(l),built_in:t,literal:i},c=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},h={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},d={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},p=e.inherit(d,{illegal:/\n/}),y={className:"subst",begin:/\{/,end:/\}/,keywords:s},m=e.inherit(y,{illegal:/\n/}),x={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,m]},_={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},y]},w=e.inherit(_,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},m]});y.contains=[_,x,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_BLOCK_COMMENT_MODE],m.contains=[w,x,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const S={variants:[h,_,x,d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},C={begin:"<",end:">",contains:[{beginKeywords:"in out"},c]},E=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",N={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:s,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},S,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},c,C,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[c,C,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+E+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:s,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,C],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,relevance:0,contains:[S,u,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},N]}}const DH=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),BH=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],IH=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],$H=[...BH,...IH],FH=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),zH=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),PH=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),HH=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function UH(e){const t=e.regex,n=DH(e),i={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},r="and or not only",l=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",c=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,i,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+zH.join("|")+")"},{begin:":(:)?("+PH.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+HH.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...c,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...c,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:l},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:r,attribute:FH.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...c,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+$H.join("|")+")\\b"}]}}function qH(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function jH(e){const l={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:l,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:l,illegal:/["']/}]}]}}function GH(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function WH(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},i=e.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const r={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},l={className:"literal",begin:/\bon|off|true|false|yes|no\b/},s={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[i,l,r,s,n,"self"],relevance:0},u=/[A-Za-z0-9_-]+/,h=/"(\\"|[^"])*"/,d=/'[^']*'/,p=t.either(u,h,d),y=t.concat(p,"(\\s*\\.\\s*",p,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:y,className:"attr",starts:{end:/$/,contains:[i,c,l,r,s,n]}}]}}var yo="[0-9](_*[0-9])*",Hf=`\\.(${yo})`,Uf="[0-9a-fA-F](_*[0-9a-fA-F])*",NC={className:"number",variants:[{begin:`(\\b(${yo})((${Hf})|\\.)?|(${Hf}))[eE][+-]?(${yo})[fFdD]?\\b`},{begin:`\\b(${yo})((${Hf})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Hf})[fFdD]?\\b`},{begin:`\\b(${yo})[fFdD]\\b`},{begin:`\\b0[xX]((${Uf})\\.?|(${Uf})?\\.(${Uf}))[pP][+-]?(${yo})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Uf})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function LT(e,t,n){return n===-1?"":e.replace(t,i=>LT(e,t,n-1))}function YH(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",i=n+LT("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),u={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},h={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},d={className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:u,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[d,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+i+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:u,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[h,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,NC,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},NC,h]}}const OC="[A-Za-z$_][0-9A-Za-z$_]*",VH=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],XH=["true","false","null","undefined","NaN","Infinity"],RT=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],DT=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],BT=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],KH=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ZH=[].concat(BT,RT,DT);function QH(e){const t=e.regex,n=(G,{after:le})=>{const B="</"+G[0].slice(1);return G.input.indexOf(B,le)!==-1},i=OC,r={begin:"<>",end:"</>"},l=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(G,le)=>{const B=G[0].length+G.index,I=G.input[B];if(I==="<"||I===","){le.ignoreMatch();return}I===">"&&(n(G,{after:B})||le.ignoreMatch());let Q;const D=G.input.substring(B);if(Q=D.match(/^\s*=/)){le.ignoreMatch();return}if((Q=D.match(/^\s+extends\s+/))&&Q.index===0){le.ignoreMatch();return}}},c={$pattern:OC,keyword:VH,literal:XH,built_in:ZH,"variable.language":KH},u="[0-9](_?[0-9])*",h=`\\.(${u})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${d})((${h})|\\.)?|(${h}))[eE][+-]?(${u})\\b`},{begin:`\\b(${d})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},y={className:"subst",begin:"\\$\\{",end:"\\}",keywords:c,contains:[]},m={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},x={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"css"}},_={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},w={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,y]},C={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},E=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,x,_,w,{match:/\$\d+/},p];y.contains=E.concat({begin:/\{/,end:/\}/,keywords:c,contains:["self"].concat(E)});const N=[].concat(C,y.contains),M=N.concat([{begin:/(\s*)\(/,end:/\)/,keywords:c,contains:["self"].concat(N)}]),A={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:M},O={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,t.concat(i,"(",t.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},q={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...RT,...DT]}},j={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},F={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[A],illegal:/%/},H={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Z(G){return t.concat("(?!",G.join("|"),")")}const V={match:t.concat(/\b/,Z([...BT,"super","import"].map(G=>`${G}\\s*\\(`)),i,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},P={begin:t.concat(/\./,t.lookahead(t.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},z={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},A]},L="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",U={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(L)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[A]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:c,exports:{PARAMS_CONTAINS:M,CLASS_REFERENCE:q},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),j,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,x,_,w,C,{match:/\$\d+/},p,q,{scope:"attr",match:i+t.lookahead(":"),relevance:0},U,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,e.REGEXP_MODE,{className:"function",begin:L,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:M}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:l},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},F,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[A,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},P,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[A]},V,H,O,z,{match:/\$[(.]/}]}}function JH(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],r={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:i},contains:[t,n,e.QUOTE_STRING_MODE,r,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}var bo="[0-9](_*[0-9])*",qf=`\\.(${bo})`,jf="[0-9a-fA-F](_*[0-9a-fA-F])*",eU={className:"number",variants:[{begin:`(\\b(${bo})((${qf})|\\.)?|(${qf}))[eE][+-]?(${bo})[fFdD]?\\b`},{begin:`\\b(${bo})((${qf})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${qf})[fFdD]?\\b`},{begin:`\\b(${bo})[fFdD]\\b`},{begin:`\\b0[xX]((${jf})\\.?|(${jf})?\\.(${jf}))[pP][+-]?(${bo})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${jf})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function tU(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},i={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},r={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},l={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},s={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[l,r]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,l,r]}]};r.contains.push(s);const c={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},u={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:"string"}),"self"]}]},h=eU,d=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),p={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},y=p;return y.variants[1].contains=[p],p.variants[1].contains=[y],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,d,n,i,c,u,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[p,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,c,u,s,e.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},c,u]},s,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
|
|
150
|
+
`},h]}}const nU=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),iU=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],rU=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],aU=[...iU,...rU],lU=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),IT=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),$T=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),sU=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),oU=IT.concat($T).sort().reverse();function cU(e){const t=nU(e),n=oU,i="and or not only",r="[\\w-]+",l="("+r+"|@\\{"+r+"\\})",s=[],c=[],u=function(E){return{className:"string",begin:"~?"+E+".*?"+E}},h=function(E,N,M){return{className:E,begin:N,relevance:M}},d={$pattern:/[a-z-]+/,keyword:i,attribute:lU.join(" ")},p={begin:"\\(",end:"\\)",contains:c,keywords:d,relevance:0};c.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,u("'"),u('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,p,h("variable","@@?"+r,10),h("variable","@\\{"+r+"\\}"),h("built_in","~?`[^`]*?`"),{className:"attribute",begin:r+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const y=c.concat({begin:/\{/,end:/\}/,contains:s}),m={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(c)},x={begin:l+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+sU.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:c}}]},_={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:d,returnEnd:!0,contains:c,relevance:0}},w={className:"variable",variants:[{begin:"@"+r+"\\s*:",relevance:15},{begin:"@"+r}],starts:{end:"[;}]",returnEnd:!0,contains:y}},S={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:l,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m,h("keyword","all\\b"),h("variable","@\\{"+r+"\\}"),{begin:"\\b("+aU.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,h("selector-tag",l,0),h("selector-id","#"+l),h("selector-class","\\."+l,0),h("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+IT.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+$T.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:y},{begin:"!important"},t.FUNCTION_DISPATCH]},C={begin:r+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[S]};return s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,_,w,C,x,S,m,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:s}}function uU(e){const t="\\[=*\\[",n="\\]=*\\]",i={begin:t,end:n,contains:["self"]},r=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[i],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:r.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:r}].concat(r)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[i],relevance:5}])}}function hU(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},i={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},r={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},l={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},s={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,i,r,l,s]}}function fU(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},r={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},l={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},s={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},c=/[A-Za-z][A-Za-z0-9+.-]*/,u={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,c,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},h={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},d={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},p=e.inherit(h,{contains:[]}),y=e.inherit(d,{contains:[]});h.contains.push(y),d.contains.push(p);let m=[n,u];return[h,d,p,y].forEach(S=>{S.contains=S.contains.concat(m)}),m=m.concat(h,d),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:m},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:m}]}]},n,l,h,d,{className:"quote",begin:"^>\\s+",contains:m,end:"$"},r,i,u,s,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function dU(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,c={"variable.language":["this","super"],$pattern:n,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},u={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:c,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+u.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:u,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}function pU(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],i=/[dualxmsipngr]{0,12}/,r={$pattern:/[\w.]+/,keyword:n.join(" ")},l={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:r},s={begin:/->\{/,end:/\}/},c={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},u={scope:"variable",variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[c]},h={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},d=[e.BACKSLASH_ESCAPE,l,u],p=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],y=(_,w,S="\\1")=>{const C=S==="\\1"?S:t.concat(S,w);return t.concat(t.concat("(?:",_,")"),w,/(?:\\.|[^\\\/])*?/,C,/(?:\\.|[^\\\/])*?/,S,i)},m=(_,w,S)=>t.concat(t.concat("(?:",_,")"),w,/(?:\\.|[^\\\/])*?/,S,i),x=[u,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),s,{className:"string",contains:d,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},h,{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:y("s|tr|y",t.either(...p,{capture:!0}))},{begin:y("s|tr|y","\\(","\\)")},{begin:y("s|tr|y","\\[","\\]")},{begin:y("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:m("(?:m|qr)?",/\//,/\//)},{begin:m("m|qr",t.either(...p,{capture:!0}),/\1/)},{begin:m("m|qr",/\(/,/\)/)},{begin:m("m|qr",/\[/,/\]/)},{begin:m("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE,c,h]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return l.contains=x,s.contains=x,{name:"Perl",aliases:["pl","pm"],keywords:r,contains:x}}function gU(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,i=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),r=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),l=t.concat(/[A-Z]+/,n),s={scope:"variable",match:"\\$+"+i},c={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},u={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},h=e.inherit(e.APOS_STRING_MODE,{illegal:null}),d=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(u)}),p={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(u),"on:begin":(P,z)=>{z.data._beginMatch=P[1]||P[2]},"on:end":(P,z)=>{z.data._beginMatch!==P[1]&&z.ignoreMatch()}},y=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),m=`[
|
|
151
|
+
]`,x={scope:"string",variants:[d,h,p,y]},_={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},w=["false","null","true"],S=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],C=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],N={keyword:S,literal:(P=>{const z=[];return P.forEach(L=>{z.push(L),L.toLowerCase()===L?z.push(L.toUpperCase()):z.push(L.toLowerCase())}),z})(w),built_in:C},M=P=>P.map(z=>z.replace(/\|\d+$/,"")),A={variants:[{match:[/new/,t.concat(m,"+"),t.concat("(?!",M(C).join("\\b|"),"\\b)"),r],scope:{1:"keyword",4:"title.class"}}]},O=t.concat(i,"\\b(?!\\()"),q={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),O],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[r,t.concat(/::/,t.lookahead(/(?!class\b)/)),O],scope:{1:"title.class",3:"variable.constant"}},{match:[r,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[r,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},j={scope:"attr",match:t.concat(i,t.lookahead(":"),t.lookahead(/(?!::)/))},F={relevance:0,begin:/\(/,end:/\)/,keywords:N,contains:[j,s,q,e.C_BLOCK_COMMENT_MODE,x,_,A]},H={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",M(S).join("\\b|"),"|",M(C).join("\\b|"),"\\b)"),i,t.concat(m,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[F]};F.contains.push(H);const Z=[j,q,e.C_BLOCK_COMMENT_MODE,x,_,A],V={begin:t.concat(/#\[\s*\\?/,t.either(r,l)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:w,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:w,keyword:["new","array"]},contains:["self",...Z]},...Z,{scope:"meta",variants:[{match:r},{match:l}]}]};return{case_insensitive:!1,keywords:N,contains:[V,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},c,{scope:"variable.language",match:/\$this\b/},s,H,q,{match:[/const/,/\s/,i],scope:{1:"keyword",3:"variable.constant"}},A,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:N,contains:["self",V,s,q,e.C_BLOCK_COMMENT_MODE,x,_]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},x,_]}}function mU(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function yU(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function bU(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],c={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},h={className:"subst",begin:/\{/,end:/\}/,keywords:c,illegal:/#/},d={begin:/\{\{/,relevance:0},p={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u,d,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u,d,h]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,d,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,d,h]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},y="[0-9](_?[0-9])*",m=`(\\b(${y}))?\\.(${y})|\\b(${y})\\.`,x=`\\b|${i.join("|")}`,_={className:"number",relevance:0,variants:[{begin:`(\\b(${y})|(${m}))[eE][+-]?(${y})[jJ]?(?=${x})`},{begin:`(${m})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${x})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${x})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${x})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${x})`},{begin:`\\b(${y})[jJ](?=${x})`}]},w={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:c,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},S={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",u,_,p,e.HASH_COMMENT_MODE]}]};return h.contains=[p,_,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:c,illegal:/(<\/|\?)|=>/,contains:[u,_,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},p,w,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[S]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[_,S,p]}]}}function xU(e){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function _U(e){const t=e.regex,n=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,i=t.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),r=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,l=t.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:n,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[e.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:t.lookahead(t.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:n},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{scope:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[r,i]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,i]},{scope:{1:"punctuation",2:"number"},match:[l,i]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,i]}]},{scope:{3:"operator"},match:[n,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:r},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:l},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function vU(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",i=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),r=t.concat(i,/(::\w+)*/),s={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},c={className:"doctag",begin:"@[A-Za-z]+"},u={begin:"#<",end:">"},h=[e.COMMENT("#","$",{contains:[c]}),e.COMMENT("^=begin","^=end",{contains:[c],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],d={className:"subst",begin:/#\{/,end:/\}/,keywords:s},p={className:"string",contains:[e.BACKSLASH_ESCAPE,d],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,d]})]}]},y="[1-9](_?[0-9])*|0",m="[0-9](_?[0-9])*",x={className:"number",relevance:0,variants:[{begin:`\\b(${y})(\\.(${m}))?([eE][+-]?(${m})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},_={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:s}]},A=[p,{variants:[{match:[/class\s+/,r,/\s+<\s+/,r]},{match:[/\b(class|module)\s+/,r]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:s},{match:[/(include|extend)\s+/,r],scope:{2:"title.class"},keywords:s},{relevance:0,match:[r,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:i,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[_]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[p,{begin:n}],relevance:0},x,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:s},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,d],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(u,h),relevance:0}].concat(u,h);d.contains=A,_.contains=A;const F=[{begin:/^\s*=>/,starts:{end:"$",contains:A}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:s,contains:A}}];return h.unshift(u),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:s,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(F).concat(h).concat(A)}}function wU(e){const t=e.regex,n=/(r#)?/,i=t.concat(n,e.UNDERSCORE_IDENT_RE),r=t.concat(n,e.IDENT_RE),l={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,r,t.lookahead(/\s*\(/))},s="([ui](8|16|32|64|128|size)|f(32|64))?",c=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],u=["true","false","Some","None","Ok","Err"],h=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],d=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:d,keyword:c,literal:u,built_in:h},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+s},{begin:"\\b0o([0-7_]+)"+s},{begin:"\\b0x([A-Fa-f0-9_]+)"+s},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+s}],relevance:0},{begin:[/fn/,/\s+/,i],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,i],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,i,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,i],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:h,type:d}},{className:"punctuation",begin:"->"},l]}}const SU=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),CU=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],kU=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],EU=[...CU,...kU],TU=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),AU=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),MU=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),NU=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function OU(e){const t=SU(e),n=MU,i=AU,r="@[a-z-]+",l="and or not only",c={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+EU.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},c,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+NU.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,c,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:r,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:l,attribute:TU.join(" ")},contains:[{begin:r,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},c,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}function LU(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function RU(e){const t=e.regex,n=e.COMMENT("--","$"),i={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},r={begin:/"/,end:/"/,contains:[{match:/""/}]},l=["true","false","unknown"],s=["double precision","large object","with timezone","without timezone"],c=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],u=["add","asc","collation","desc","final","first","last","view"],h=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],d=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],p=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],y=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],m=d,x=[...h,...u].filter(M=>!d.includes(M)),_={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},w={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},S={match:t.concat(/\b/,t.either(...m),/\s*\(/),relevance:0,keywords:{built_in:m}};function C(M){return t.concat(/\b/,t.either(...M.map(A=>A.replace(/\s+/,"\\s+"))),/\b/)}const E={scope:"keyword",match:C(y),relevance:0};function N(M,{exceptions:A,when:O}={}){const q=O;return A=A||[],M.map(j=>j.match(/\|\d+$/)||A.includes(j)?j:q(j)?`${j}|0`:j)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:N(x,{when:M=>M.length<3}),literal:l,type:c,built_in:p},contains:[{scope:"type",match:C(s)},E,S,_,i,r,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,w]}}function FT(e){return e?typeof e=="string"?e:e.source:null}function lu(e){return jt("(?=",e,")")}function jt(...e){return e.map(n=>FT(n)).join("")}function DU(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function xi(...e){return"("+(DU(e).capture?"":"?:")+e.map(i=>FT(i)).join("|")+")"}const hx=e=>jt(/\b/,e,/\w$/.test(e)?/\b/:/\B/),BU=["Protocol","Type"].map(hx),LC=["init","self"].map(hx),IU=["Any","Self"],I0=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],RC=["false","nil","true"],$U=["assignment","associativity","higherThan","left","lowerThan","none","right"],FU=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],DC=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],zT=xi(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),PT=xi(zT,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),$0=jt(zT,PT,"*"),HT=xi(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Fd=xi(HT,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Yr=jt(HT,Fd,"*"),Gf=jt(/[A-Z]/,Fd,"*"),zU=["attached","autoclosure",jt(/convention\(/,xi("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",jt(/objc\(/,Yr,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],PU=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function HU(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),i=[e.C_LINE_COMMENT_MODE,n],r={match:[/\./,xi(...BU,...LC)],className:{2:"keyword"}},l={match:jt(/\./,xi(...I0)),relevance:0},s=I0.filter(ht=>typeof ht=="string").concat(["_|0"]),c=I0.filter(ht=>typeof ht!="string").concat(IU).map(hx),u={variants:[{className:"keyword",match:xi(...c,...LC)}]},h={$pattern:xi(/\b\w+/,/#\w+/),keyword:s.concat(FU),literal:RC},d=[r,l,u],p={match:jt(/\./,xi(...DC)),relevance:0},y={className:"built_in",match:jt(/\b/,xi(...DC),/(?=\()/)},m=[p,y],x={match:/->/,relevance:0},_={className:"operator",relevance:0,variants:[{match:$0},{match:`\\.(\\.|${PT})+`}]},w=[x,_],S="([0-9]_*)+",C="([0-9a-fA-F]_*)+",E={className:"number",relevance:0,variants:[{match:`\\b(${S})(\\.(${S}))?([eE][+-]?(${S}))?\\b`},{match:`\\b0x(${C})(\\.(${C}))?([pP][+-]?(${S}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},N=(ht="")=>({className:"subst",variants:[{match:jt(/\\/,ht,/[0\\tnr"']/)},{match:jt(/\\/,ht,/u\{[0-9a-fA-F]{1,8}\}/)}]}),M=(ht="")=>({className:"subst",match:jt(/\\/,ht,/[\t ]*(?:[\r\n]|\r\n)/)}),A=(ht="")=>({className:"subst",label:"interpol",begin:jt(/\\/,ht,/\(/),end:/\)/}),O=(ht="")=>({begin:jt(ht,/"""/),end:jt(/"""/,ht),contains:[N(ht),M(ht),A(ht)]}),q=(ht="")=>({begin:jt(ht,/"/),end:jt(/"/,ht),contains:[N(ht),A(ht)]}),j={className:"string",variants:[O(),O("#"),O("##"),O("###"),q(),q("#"),q("##"),q("###")]},F=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],H={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:F},Z=ht=>{const pi=jt(ht,/\//),On=jt(/\//,ht);return{begin:pi,end:On,contains:[...F,{scope:"comment",begin:`#(?!.*${On})`,end:/$/}]}},V={scope:"regexp",variants:[Z("###"),Z("##"),Z("#"),H]},P={match:jt(/`/,Yr,/`/)},z={className:"variable",match:/\$\d+/},L={className:"variable",match:`\\$${Fd}+`},U=[P,z,L],G={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:PU,contains:[...w,E,j]}]}},le={scope:"keyword",match:jt(/@/,xi(...zU),lu(xi(/\(/,/\s+/)))},B={scope:"meta",match:jt(/@/,Yr)},I=[G,le,B],Q={match:lu(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:jt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Fd,"+")},{className:"type",match:Gf,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:jt(/\s+&\s+/,lu(Gf)),relevance:0}]},D={begin:/</,end:/>/,keywords:h,contains:[...i,...d,...I,x,Q]};Q.contains.push(D);const he={match:jt(Yr,/\s*:/),keywords:"_|0",relevance:0},xe={begin:/\(/,end:/\)/,relevance:0,keywords:h,contains:["self",he,...i,V,...d,...m,...w,E,j,...U,...I,Q]},de={begin:/</,end:/>/,keywords:"repeat each",contains:[...i,Q]},we={begin:xi(lu(jt(Yr,/\s*:/)),lu(jt(Yr,/\s+/,Yr,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Yr}]},Le={begin:/\(/,end:/\)/,keywords:h,contains:[we,...i,...d,...w,E,j,...I,Q,xe],endsParent:!0,illegal:/["']/},ze={match:[/(func|macro)/,/\s+/,xi(P.match,Yr,$0)],className:{1:"keyword",3:"title.function"},contains:[de,Le,t],illegal:[/\[/,/%/]},Qe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[de,Le,t],illegal:/\[|%/},it={match:[/operator/,/\s+/,$0],className:{1:"keyword",3:"title"}},gn={begin:[/precedencegroup/,/\s+/,Gf],className:{1:"keyword",3:"title"},contains:[Q],keywords:[...$U,...RC],end:/}/},mn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},hn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Hn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Yr,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:h,contains:[de,...d,{begin:/:/,end:/\{/,keywords:h,contains:[{scope:"title.class.inherited",match:Gf},...d],relevance:0}]};for(const ht of j.variants){const pi=ht.contains.find(gi=>gi.label==="interpol");pi.keywords=h;const On=[...d,...m,...w,E,j,...U];pi.contains=[...On,{begin:/\(/,end:/\)/,contains:["self",...On]}]}return{name:"Swift",keywords:h,contains:[...i,ze,Qe,mn,hn,Hn,it,gn,{beginKeywords:"import",end:/$/,contains:[...i],relevance:0},V,...d,...m,...w,E,j,...U,...I,Q,xe]}}const zd="[A-Za-z$_][0-9A-Za-z$_]*",UT=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],qT=["true","false","null","undefined","NaN","Infinity"],jT=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],GT=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],WT=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],YT=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],VT=[].concat(WT,jT,GT);function UU(e){const t=e.regex,n=(G,{after:le})=>{const B="</"+G[0].slice(1);return G.input.indexOf(B,le)!==-1},i=zd,r={begin:"<>",end:"</>"},l=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(G,le)=>{const B=G[0].length+G.index,I=G.input[B];if(I==="<"||I===","){le.ignoreMatch();return}I===">"&&(n(G,{after:B})||le.ignoreMatch());let Q;const D=G.input.substring(B);if(Q=D.match(/^\s*=/)){le.ignoreMatch();return}if((Q=D.match(/^\s+extends\s+/))&&Q.index===0){le.ignoreMatch();return}}},c={$pattern:zd,keyword:UT,literal:qT,built_in:VT,"variable.language":YT},u="[0-9](_?[0-9])*",h=`\\.(${u})`,d="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${d})((${h})|\\.)?|(${h}))[eE][+-]?(${u})\\b`},{begin:`\\b(${d})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},y={className:"subst",begin:"\\$\\{",end:"\\}",keywords:c,contains:[]},m={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"xml"}},x={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"css"}},_={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,y],subLanguage:"graphql"}},w={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,y]},C={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},E=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,x,_,w,{match:/\$\d+/},p];y.contains=E.concat({begin:/\{/,end:/\}/,keywords:c,contains:["self"].concat(E)});const N=[].concat(C,y.contains),M=N.concat([{begin:/(\s*)\(/,end:/\)/,keywords:c,contains:["self"].concat(N)}]),A={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:M},O={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,t.concat(i,"(",t.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},q={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...jT,...GT]}},j={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},F={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[A],illegal:/%/},H={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Z(G){return t.concat("(?!",G.join("|"),")")}const V={match:t.concat(/\b/,Z([...WT,"super","import"].map(G=>`${G}\\s*\\(`)),i,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},P={begin:t.concat(/\./,t.lookahead(t.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},z={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},A]},L="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",U={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(L)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[A]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:c,exports:{PARAMS_CONTAINS:M,CLASS_REFERENCE:q},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),j,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,x,_,w,C,{match:/\$\d+/},p,q,{scope:"attr",match:i+t.lookahead(":"),relevance:0},U,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[C,e.REGEXP_MODE,{className:"function",begin:L,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:M}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:r.begin,end:r.end},{match:l},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},F,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[A,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},P,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[A]},V,H,O,z,{match:/\$[(.]/}]}}function qU(e){const t=e.regex,n=UU(e),i=zd,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],l={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[n.exports.CLASS_REFERENCE]},c={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},u=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:zd,keyword:UT.concat(u),literal:qT,built_in:VT.concat(r),"variable.language":YT},d={className:"meta",begin:"@"+i},p=(_,w,S)=>{const C=_.contains.findIndex(E=>E.label===w);if(C===-1)throw new Error("can not find mode to replace");_.contains.splice(C,1,S)};Object.assign(n.keywords,h),n.exports.PARAMS_CONTAINS.push(d);const y=n.contains.find(_=>_.scope==="attr"),m=Object.assign({},y,{match:t.concat(i,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,y,m]),n.contains=n.contains.concat([d,l,s,m]),p(n,"shebang",e.SHEBANG()),p(n,"use_strict",c);const x=n.contains.find(_=>_.label==="func.def");return x.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}function jU(e){const t=e.regex,n={className:"string",begin:/"(""|[^/n])"C\b/},i={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},r=/\d{1,2}\/\d{1,2}\/\d{4}/,l=/\d{4}-\d{1,2}-\d{1,2}/,s=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,c=/\d{1,2}(:\d{1,2}){1,2}/,u={className:"literal",variants:[{begin:t.concat(/# */,t.either(l,r),/ *#/)},{begin:t.concat(/# */,c,/ *#/)},{begin:t.concat(/# */,s,/ *#/)},{begin:t.concat(/# */,t.either(l,r),/ +/,t.either(s,c),/ *#/)}]},h={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},d={className:"label",begin:/^\w+:/},p=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),y=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[n,i,u,h,d,p,y,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[y]}]}}function GU(e){e.regex;const t=e.COMMENT(/\(;/,/;\)/);t.contains.push("self");const n=e.COMMENT(/;;/,/$/),i=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],r={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},l={className:"variable",begin:/\$[\w_]+/},s={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},c={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},u={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},h={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:i},contains:[n,t,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},l,s,r,e.QUOTE_STRING_MODE,u,h,c]}}function WU(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),i=/[\p{L}0-9._:-]+/u,r={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},l={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=e.inherit(l,{begin:/\(/,end:/\)/}),c=e.inherit(e.APOS_STRING_MODE,{className:"string"}),u=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:i,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[r]},{begin:/'/,end:/'/,contains:[r]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[l,u,c,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[l,s,u,c]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},r,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[u]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:h}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function YU(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},l={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},s={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,r]},c=e.inherit(s,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),y={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},m={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},x={begin:/\{/,end:/\}/,contains:[m],illegal:"\\n",relevance:0},_={begin:"\\[",end:"\\]",contains:[m],illegal:"\\n",relevance:0},w=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},y,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},x,_,l,s],S=[...w];return S.pop(),S.push(c),m.contains=S,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:w}}const VU={arduino:MH,bash:NH,c:OH,cpp:LH,csharp:RH,css:UH,diff:qH,go:jH,graphql:GH,ini:WH,java:YH,javascript:QH,json:JH,kotlin:tU,less:cU,lua:uU,makefile:hU,markdown:fU,objectivec:dU,perl:pU,php:gU,"php-template":mU,plaintext:yU,python:bU,"python-repl":xU,r:_U,ruby:vU,rust:wU,scss:OU,shell:LU,sql:RU,swift:HU,typescript:qU,vbnet:jU,wasm:GU,xml:WU,yaml:YU};var F0,BC;function XU(){if(BC)return F0;BC=1;function e(Y){return Y instanceof Map?Y.clear=Y.delete=Y.set=function(){throw new Error("map is read-only")}:Y instanceof Set&&(Y.add=Y.clear=Y.delete=function(){throw new Error("set is read-only")}),Object.freeze(Y),Object.getOwnPropertyNames(Y).forEach(oe=>{const ye=Y[oe],We=typeof ye;(We==="object"||We==="function")&&!Object.isFrozen(ye)&&e(ye)}),Y}class t{constructor(oe){oe.data===void 0&&(oe.data={}),this.data=oe.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function n(Y){return Y.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function i(Y,...oe){const ye=Object.create(null);for(const We in Y)ye[We]=Y[We];return oe.forEach(function(We){for(const Yt in We)ye[Yt]=We[Yt]}),ye}const r="</span>",l=Y=>!!Y.scope,s=(Y,{prefix:oe})=>{if(Y.startsWith("language:"))return Y.replace("language:","language-");if(Y.includes(".")){const ye=Y.split(".");return[`${oe}${ye.shift()}`,...ye.map((We,Yt)=>`${We}${"_".repeat(Yt+1)}`)].join(" ")}return`${oe}${Y}`};class c{constructor(oe,ye){this.buffer="",this.classPrefix=ye.classPrefix,oe.walk(this)}addText(oe){this.buffer+=n(oe)}openNode(oe){if(!l(oe))return;const ye=s(oe.scope,{prefix:this.classPrefix});this.span(ye)}closeNode(oe){l(oe)&&(this.buffer+=r)}value(){return this.buffer}span(oe){this.buffer+=`<span class="${oe}">`}}const u=(Y={})=>{const oe={children:[]};return Object.assign(oe,Y),oe};class h{constructor(){this.rootNode=u(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(oe){this.top.children.push(oe)}openNode(oe){const ye=u({scope:oe});this.add(ye),this.stack.push(ye)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(oe){return this.constructor._walk(oe,this.rootNode)}static _walk(oe,ye){return typeof ye=="string"?oe.addText(ye):ye.children&&(oe.openNode(ye),ye.children.forEach(We=>this._walk(oe,We)),oe.closeNode(ye)),oe}static _collapse(oe){typeof oe!="string"&&oe.children&&(oe.children.every(ye=>typeof ye=="string")?oe.children=[oe.children.join("")]:oe.children.forEach(ye=>{h._collapse(ye)}))}}class d extends h{constructor(oe){super(),this.options=oe}addText(oe){oe!==""&&this.add(oe)}startScope(oe){this.openNode(oe)}endScope(){this.closeNode()}__addSublanguage(oe,ye){const We=oe.root;ye&&(We.scope=`language:${ye}`),this.add(We)}toHTML(){return new c(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function p(Y){return Y?typeof Y=="string"?Y:Y.source:null}function y(Y){return _("(?=",Y,")")}function m(Y){return _("(?:",Y,")*")}function x(Y){return _("(?:",Y,")?")}function _(...Y){return Y.map(ye=>p(ye)).join("")}function w(Y){const oe=Y[Y.length-1];return typeof oe=="object"&&oe.constructor===Object?(Y.splice(Y.length-1,1),oe):{}}function S(...Y){return"("+(w(Y).capture?"":"?:")+Y.map(We=>p(We)).join("|")+")"}function C(Y){return new RegExp(Y.toString()+"|").exec("").length-1}function E(Y,oe){const ye=Y&&Y.exec(oe);return ye&&ye.index===0}const N=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function M(Y,{joinWith:oe}){let ye=0;return Y.map(We=>{ye+=1;const Yt=ye;let Bt=p(We),Ae="";for(;Bt.length>0;){const ke=N.exec(Bt);if(!ke){Ae+=Bt;break}Ae+=Bt.substring(0,ke.index),Bt=Bt.substring(ke.index+ke[0].length),ke[0][0]==="\\"&&ke[1]?Ae+="\\"+String(Number(ke[1])+Yt):(Ae+=ke[0],ke[0]==="("&&ye++)}return Ae}).map(We=>`(${We})`).join(oe)}const A=/\b\B/,O="[a-zA-Z]\\w*",q="[a-zA-Z_]\\w*",j="\\b\\d+(\\.\\d+)?",F="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",H="\\b(0b[01]+)",Z="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",V=(Y={})=>{const oe=/^#![ ]*\//;return Y.binary&&(Y.begin=_(oe,/.*\b/,Y.binary,/\b.*/)),i({scope:"meta",begin:oe,end:/$/,relevance:0,"on:begin":(ye,We)=>{ye.index!==0&&We.ignoreMatch()}},Y)},P={begin:"\\\\[\\s\\S]",relevance:0},z={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[P]},L={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[P]},U={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},G=function(Y,oe,ye={}){const We=i({scope:"comment",begin:Y,end:oe,contains:[]},ye);We.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const Yt=S("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return We.contains.push({begin:_(/[ ]+/,"(",Yt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),We},le=G("//","$"),B=G("/\\*","\\*/"),I=G("#","$"),Q={scope:"number",begin:j,relevance:0},D={scope:"number",begin:F,relevance:0},he={scope:"number",begin:H,relevance:0},xe={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[P,{begin:/\[/,end:/\]/,relevance:0,contains:[P]}]},de={scope:"title",begin:O,relevance:0},we={scope:"title",begin:q,relevance:0},Le={begin:"\\.\\s*"+q,relevance:0};var Qe=Object.freeze({__proto__:null,APOS_STRING_MODE:z,BACKSLASH_ESCAPE:P,BINARY_NUMBER_MODE:he,BINARY_NUMBER_RE:H,COMMENT:G,C_BLOCK_COMMENT_MODE:B,C_LINE_COMMENT_MODE:le,C_NUMBER_MODE:D,C_NUMBER_RE:F,END_SAME_AS_BEGIN:function(Y){return Object.assign(Y,{"on:begin":(oe,ye)=>{ye.data._beginMatch=oe[1]},"on:end":(oe,ye)=>{ye.data._beginMatch!==oe[1]&&ye.ignoreMatch()}})},HASH_COMMENT_MODE:I,IDENT_RE:O,MATCH_NOTHING_RE:A,METHOD_GUARD:Le,NUMBER_MODE:Q,NUMBER_RE:j,PHRASAL_WORDS_MODE:U,QUOTE_STRING_MODE:L,REGEXP_MODE:xe,RE_STARTERS_RE:Z,SHEBANG:V,TITLE_MODE:de,UNDERSCORE_IDENT_RE:q,UNDERSCORE_TITLE_MODE:we});function it(Y,oe){Y.input[Y.index-1]==="."&&oe.ignoreMatch()}function gn(Y,oe){Y.className!==void 0&&(Y.scope=Y.className,delete Y.className)}function mn(Y,oe){oe&&Y.beginKeywords&&(Y.begin="\\b("+Y.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",Y.__beforeBegin=it,Y.keywords=Y.keywords||Y.beginKeywords,delete Y.beginKeywords,Y.relevance===void 0&&(Y.relevance=0))}function hn(Y,oe){Array.isArray(Y.illegal)&&(Y.illegal=S(...Y.illegal))}function Hn(Y,oe){if(Y.match){if(Y.begin||Y.end)throw new Error("begin & end are not supported with match");Y.begin=Y.match,delete Y.match}}function ht(Y,oe){Y.relevance===void 0&&(Y.relevance=1)}const pi=(Y,oe)=>{if(!Y.beforeMatch)return;if(Y.starts)throw new Error("beforeMatch cannot be used with starts");const ye=Object.assign({},Y);Object.keys(Y).forEach(We=>{delete Y[We]}),Y.keywords=ye.keywords,Y.begin=_(ye.beforeMatch,y(ye.begin)),Y.starts={relevance:0,contains:[Object.assign(ye,{endsParent:!0})]},Y.relevance=0,delete ye.beforeMatch},On=["of","and","for","in","not","or","if","then","parent","list","value"],gi="keyword";function Ei(Y,oe,ye=gi){const We=Object.create(null);return typeof Y=="string"?Yt(ye,Y.split(" ")):Array.isArray(Y)?Yt(ye,Y):Object.keys(Y).forEach(function(Bt){Object.assign(We,Ei(Y[Bt],oe,Bt))}),We;function Yt(Bt,Ae){oe&&(Ae=Ae.map(ke=>ke.toLowerCase())),Ae.forEach(function(ke){const Ve=ke.split("|");We[Ve[0]]=[Bt,Hr(Ve[0],Ve[1])]})}}function Hr(Y,oe){return oe?Number(oe):qa(Y)?0:1}function qa(Y){return On.includes(Y.toLowerCase())}const ja={},Gt=Y=>{console.error(Y)},cr=(Y,...oe)=>{console.log(`WARN: ${Y}`,...oe)},ae=(Y,oe)=>{ja[`${Y}/${oe}`]||(console.log(`Deprecated as of ${Y}. ${oe}`),ja[`${Y}/${oe}`]=!0)},me=new Error;function qe(Y,oe,{key:ye}){let We=0;const Yt=Y[ye],Bt={},Ae={};for(let ke=1;ke<=oe.length;ke++)Ae[ke+We]=Yt[ke],Bt[ke+We]=!0,We+=C(oe[ke-1]);Y[ye]=Ae,Y[ye]._emit=Bt,Y[ye]._multi=!0}function at(Y){if(Array.isArray(Y.begin)){if(Y.skip||Y.excludeBegin||Y.returnBegin)throw Gt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),me;if(typeof Y.beginScope!="object"||Y.beginScope===null)throw Gt("beginScope must be object"),me;qe(Y,Y.begin,{key:"beginScope"}),Y.begin=M(Y.begin,{joinWith:""})}}function vt(Y){if(Array.isArray(Y.end)){if(Y.skip||Y.excludeEnd||Y.returnEnd)throw Gt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),me;if(typeof Y.endScope!="object"||Y.endScope===null)throw Gt("endScope must be object"),me;qe(Y,Y.end,{key:"endScope"}),Y.end=M(Y.end,{joinWith:""})}}function Ln(Y){Y.scope&&typeof Y.scope=="object"&&Y.scope!==null&&(Y.beginScope=Y.scope,delete Y.scope)}function Ti(Y){Ln(Y),typeof Y.beginScope=="string"&&(Y.beginScope={_wrap:Y.beginScope}),typeof Y.endScope=="string"&&(Y.endScope={_wrap:Y.endScope}),at(Y),vt(Y)}function fn(Y){function oe(Ae,ke){return new RegExp(p(Ae),"m"+(Y.case_insensitive?"i":"")+(Y.unicodeRegex?"u":"")+(ke?"g":""))}class ye{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(ke,Ve){Ve.position=this.position++,this.matchIndexes[this.matchAt]=Ve,this.regexes.push([Ve,ke]),this.matchAt+=C(ke)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const ke=this.regexes.map(Ve=>Ve[1]);this.matcherRe=oe(M(ke,{joinWith:"|"}),!0),this.lastIndex=0}exec(ke){this.matcherRe.lastIndex=this.lastIndex;const Ve=this.matcherRe.exec(ke);if(!Ve)return null;const cn=Ve.findIndex((qn,ca)=>ca>0&&qn!==void 0),wt=this.matchIndexes[cn];return Ve.splice(0,cn),Object.assign(Ve,wt)}}class We{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(ke){if(this.multiRegexes[ke])return this.multiRegexes[ke];const Ve=new ye;return this.rules.slice(ke).forEach(([cn,wt])=>Ve.addRule(cn,wt)),Ve.compile(),this.multiRegexes[ke]=Ve,Ve}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(ke,Ve){this.rules.push([ke,Ve]),Ve.type==="begin"&&this.count++}exec(ke){const Ve=this.getMatcher(this.regexIndex);Ve.lastIndex=this.lastIndex;let cn=Ve.exec(ke);if(this.resumingScanAtSamePosition()&&!(cn&&cn.index===this.lastIndex)){const wt=this.getMatcher(0);wt.lastIndex=this.lastIndex+1,cn=wt.exec(ke)}return cn&&(this.regexIndex+=cn.position+1,this.regexIndex===this.count&&this.considerAll()),cn}}function Yt(Ae){const ke=new We;return Ae.contains.forEach(Ve=>ke.addRule(Ve.begin,{rule:Ve,type:"begin"})),Ae.terminatorEnd&&ke.addRule(Ae.terminatorEnd,{type:"end"}),Ae.illegal&&ke.addRule(Ae.illegal,{type:"illegal"}),ke}function Bt(Ae,ke){const Ve=Ae;if(Ae.isCompiled)return Ve;[gn,Hn,Ti,pi].forEach(wt=>wt(Ae,ke)),Y.compilerExtensions.forEach(wt=>wt(Ae,ke)),Ae.__beforeBegin=null,[mn,hn,ht].forEach(wt=>wt(Ae,ke)),Ae.isCompiled=!0;let cn=null;return typeof Ae.keywords=="object"&&Ae.keywords.$pattern&&(Ae.keywords=Object.assign({},Ae.keywords),cn=Ae.keywords.$pattern,delete Ae.keywords.$pattern),cn=cn||/\w+/,Ae.keywords&&(Ae.keywords=Ei(Ae.keywords,Y.case_insensitive)),Ve.keywordPatternRe=oe(cn,!0),ke&&(Ae.begin||(Ae.begin=/\B|\b/),Ve.beginRe=oe(Ve.begin),!Ae.end&&!Ae.endsWithParent&&(Ae.end=/\B|\b/),Ae.end&&(Ve.endRe=oe(Ve.end)),Ve.terminatorEnd=p(Ve.end)||"",Ae.endsWithParent&&ke.terminatorEnd&&(Ve.terminatorEnd+=(Ae.end?"|":"")+ke.terminatorEnd)),Ae.illegal&&(Ve.illegalRe=oe(Ae.illegal)),Ae.contains||(Ae.contains=[]),Ae.contains=[].concat(...Ae.contains.map(function(wt){return Zt(wt==="self"?Ae:wt)})),Ae.contains.forEach(function(wt){Bt(wt,Ve)}),Ae.starts&&Bt(Ae.starts,ke),Ve.matcher=Yt(Ve),Ve}if(Y.compilerExtensions||(Y.compilerExtensions=[]),Y.contains&&Y.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return Y.classNameAliases=i(Y.classNameAliases||{}),Bt(Y)}function Wt(Y){return Y?Y.endsWithParent||Wt(Y.starts):!1}function Zt(Y){return Y.variants&&!Y.cachedVariants&&(Y.cachedVariants=Y.variants.map(function(oe){return i(Y,{variants:null},oe)})),Y.cachedVariants?Y.cachedVariants:Wt(Y)?i(Y,{starts:Y.starts?i(Y.starts):null}):Object.isFrozen(Y)?i(Y):Y}var yt="11.11.1";class Ai extends Error{constructor(oe,ye){super(oe),this.name="HTMLInjectionError",this.html=ye}}const Rn=n,Ts=i,ur=Symbol("nomatch"),Er=7,oa=function(Y){const oe=Object.create(null),ye=Object.create(null),We=[];let Yt=!0;const Bt="Could not find the language '{}', did you forget to load/include a language module?",Ae={disableAutodetect:!0,name:"Plain text",contains:[]};let ke={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:d};function Ve(be){return ke.noHighlightRe.test(be)}function cn(be){let Ce=be.className+" ";Ce+=be.parentNode?be.parentNode.className:"";const ot=ke.languageDetectRe.exec(Ce);if(ot){const Tt=pe(ot[1]);return Tt||(cr(Bt.replace("{}",ot[1])),cr("Falling back to no-highlight mode for this block.",be)),Tt?ot[1]:"no-highlight"}return Ce.split(/\s+/).find(Tt=>Ve(Tt)||pe(Tt))}function wt(be,Ce,ot){let Tt="",yn="";typeof Ce=="object"?(Tt=be,ot=Ce.ignoreIllegals,yn=Ce.language):(ae("10.7.0","highlight(lang, code, ...args) has been deprecated."),ae("10.7.0",`Please use highlight(code, options) instead.
|
|
152
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),yn=be,Tt=Ce),ot===void 0&&(ot=!0);const ti={code:Tt,language:yn};jn("before:highlight",ti);const Yi=ti.result?ti.result:qn(ti.language,ti.code,ot);return Yi.code=ti.code,jn("after:highlight",Yi),Yi}function qn(be,Ce,ot,Tt){const yn=Object.create(null);function ti(ve,$e){return ve.keywords[$e]}function Yi(){if(!Je.keywords){wn.addText(Ft);return}let ve=0;Je.keywordPatternRe.lastIndex=0;let $e=Je.keywordPatternRe.exec(Ft),rt="";for(;$e;){rt+=Ft.substring(ve,$e.index);const bt=Gn.case_insensitive?$e[0].toLowerCase():$e[0],un=ti(Je,bt);if(un){const[hr,oc]=un;if(wn.addText(rt),rt="",yn[bt]=(yn[bt]||0)+1,yn[bt]<=Er&&(Wa+=oc),hr.startsWith("_"))rt+=$e[0];else{const kh=Gn.classNameAliases[hr]||hr;Vi($e[0],kh)}}else rt+=$e[0];ve=Je.keywordPatternRe.lastIndex,$e=Je.keywordPatternRe.exec(Ft)}rt+=Ft.substring(ve),wn.addText(rt)}function Ni(){if(Ft==="")return;let ve=null;if(typeof Je.subLanguage=="string"){if(!oe[Je.subLanguage]){wn.addText(Ft);return}ve=qn(Je.subLanguage,Ft,!0,Ch[Je.subLanguage]),Ch[Je.subLanguage]=ve._top}else ve=ua(Ft,Je.subLanguage.length?Je.subLanguage:null);Je.relevance>0&&(Wa+=ve.relevance),wn.__addSublanguage(ve._emitter,ve.language)}function Jt(){Je.subLanguage!=null?Ni():Yi(),Ft=""}function Vi(ve,$e){ve!==""&&(wn.startScope($e),wn.addText(ve),wn.endScope())}function wh(ve,$e){let rt=1;const bt=$e.length-1;for(;rt<=bt;){if(!ve._emit[rt]){rt++;continue}const un=Gn.classNameAliases[ve[rt]]||ve[rt],hr=$e[rt];un?Vi(hr,un):(Ft=hr,Yi(),Ft=""),rt++}}function Ms(ve,$e){return ve.scope&&typeof ve.scope=="string"&&wn.openNode(Gn.classNameAliases[ve.scope]||ve.scope),ve.beginScope&&(ve.beginScope._wrap?(Vi(Ft,Gn.classNameAliases[ve.beginScope._wrap]||ve.beginScope._wrap),Ft=""):ve.beginScope._multi&&(wh(ve.beginScope,$e),Ft="")),Je=Object.create(ve,{parent:{value:Je}}),Je}function ac(ve,$e,rt){let bt=E(ve.endRe,rt);if(bt){if(ve["on:end"]){const un=new t(ve);ve["on:end"]($e,un),un.isMatchIgnored&&(bt=!1)}if(bt){for(;ve.endsParent&&ve.parent;)ve=ve.parent;return ve}}if(ve.endsWithParent)return ac(ve.parent,$e,rt)}function Ns(ve){return Je.matcher.regexIndex===0?(Ft+=ve[0],1):(Ya=!0,0)}function ag(ve){const $e=ve[0],rt=ve.rule,bt=new t(rt),un=[rt.__beforeBegin,rt["on:begin"]];for(const hr of un)if(hr&&(hr(ve,bt),bt.isMatchIgnored))return Ns($e);return rt.skip?Ft+=$e:(rt.excludeBegin&&(Ft+=$e),Jt(),!rt.returnBegin&&!rt.excludeBegin&&(Ft=$e)),Ms(rt,ve),rt.returnBegin?0:$e.length}function Oi(ve){const $e=ve[0],rt=Ce.substring(ve.index),bt=ac(Je,ve,rt);if(!bt)return ur;const un=Je;Je.endScope&&Je.endScope._wrap?(Jt(),Vi($e,Je.endScope._wrap)):Je.endScope&&Je.endScope._multi?(Jt(),wh(Je.endScope,ve)):un.skip?Ft+=$e:(un.returnEnd||un.excludeEnd||(Ft+=$e),Jt(),un.excludeEnd&&(Ft=$e));do Je.scope&&wn.closeNode(),!Je.skip&&!Je.subLanguage&&(Wa+=Je.relevance),Je=Je.parent;while(Je!==bt.parent);return bt.starts&&Ms(bt.starts,ve),un.returnEnd?0:$e.length}function lc(){const ve=[];for(let $e=Je;$e!==Gn;$e=$e.parent)$e.scope&&ve.unshift($e.scope);ve.forEach($e=>wn.openNode($e))}let Il={};function Os(ve,$e){const rt=$e&&$e[0];if(Ft+=ve,rt==null)return Jt(),0;if(Il.type==="begin"&&$e.type==="end"&&Il.index===$e.index&&rt===""){if(Ft+=Ce.slice($e.index,$e.index+1),!Yt){const bt=new Error(`0 width match regex (${be})`);throw bt.languageName=be,bt.badRule=Il.rule,bt}return 1}if(Il=$e,$e.type==="begin")return ag($e);if($e.type==="illegal"&&!ot){const bt=new Error('Illegal lexeme "'+rt+'" for mode "'+(Je.scope||"<unnamed>")+'"');throw bt.mode=Je,bt}else if($e.type==="end"){const bt=Oi($e);if(bt!==ur)return bt}if($e.type==="illegal"&&rt==="")return Ft+=`
|
|
153
|
+
`,1;if(sc>1e5&&sc>$e.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ft+=rt,rt.length}const Gn=pe(be);if(!Gn)throw Gt(Bt.replace("{}",be)),new Error('Unknown language: "'+be+'"');const Sh=fn(Gn);let Ls="",Je=Tt||Sh;const Ch={},wn=new ke.__emitter(ke);lc();let Ft="",Wa=0,fa=0,sc=0,Ya=!1;try{if(Gn.__emitTokens)Gn.__emitTokens(Ce,wn);else{for(Je.matcher.considerAll();;){sc++,Ya?Ya=!1:Je.matcher.considerAll(),Je.matcher.lastIndex=fa;const ve=Je.matcher.exec(Ce);if(!ve)break;const $e=Ce.substring(fa,ve.index),rt=Os($e,ve);fa=ve.index+rt}Os(Ce.substring(fa))}return wn.finalize(),Ls=wn.toHTML(),{language:be,value:Ls,relevance:Wa,illegal:!1,_emitter:wn,_top:Je}}catch(ve){if(ve.message&&ve.message.includes("Illegal"))return{language:be,value:Rn(Ce),illegal:!0,relevance:0,_illegalBy:{message:ve.message,index:fa,context:Ce.slice(fa-100,fa+100),mode:ve.mode,resultSoFar:Ls},_emitter:wn};if(Yt)return{language:be,value:Rn(Ce),illegal:!1,relevance:0,errorRaised:ve,_emitter:wn,_top:Je};throw ve}}function ca(be){const Ce={value:Rn(be),illegal:!1,relevance:0,_top:Ae,_emitter:new ke.__emitter(ke)};return Ce._emitter.addText(be),Ce}function ua(be,Ce){Ce=Ce||ke.languages||Object.keys(oe);const ot=ca(be),Tt=Ce.filter(pe).filter(Et).map(Jt=>qn(Jt,be,!1));Tt.unshift(ot);const yn=Tt.sort((Jt,Vi)=>{if(Jt.relevance!==Vi.relevance)return Vi.relevance-Jt.relevance;if(Jt.language&&Vi.language){if(pe(Jt.language).supersetOf===Vi.language)return 1;if(pe(Vi.language).supersetOf===Jt.language)return-1}return 0}),[ti,Yi]=yn,Ni=ti;return Ni.secondBest=Yi,Ni}function Mi(be,Ce,ot){const Tt=Ce&&ye[Ce]||ot;be.classList.add("hljs"),be.classList.add(`language-${Tt}`)}function ln(be){let Ce=null;const ot=cn(be);if(Ve(ot))return;if(jn("before:highlightElement",{el:be,language:ot}),be.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",be);return}if(be.children.length>0&&(ke.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(be)),ke.throwUnescapedHTML))throw new Ai("One of your code blocks includes unescaped HTML.",be.innerHTML);Ce=be;const Tt=Ce.textContent,yn=ot?wt(Tt,{language:ot,ignoreIllegals:!0}):ua(Tt);be.innerHTML=yn.value,be.dataset.highlighted="yes",Mi(be,ot,yn.language),be.result={language:yn.language,re:yn.relevance,relevance:yn.relevance},yn.secondBest&&(be.secondBest={language:yn.secondBest.language,relevance:yn.secondBest.relevance}),jn("after:highlightElement",{el:be,result:yn,text:Tt})}function Qt(be){ke=Ts(ke,be)}const Tr=()=>{ha(),ae("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Ga(){ha(),ae("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Bl=!1;function ha(){function be(){ha()}if(document.readyState==="loading"){Bl||window.addEventListener("DOMContentLoaded",be,!1),Bl=!0;return}document.querySelectorAll(ke.cssSelector).forEach(ln)}function As(be,Ce){let ot=null;try{ot=Ce(Y)}catch(Tt){if(Gt("Language definition for '{}' could not be registered.".replace("{}",be)),Yt)Gt(Tt);else throw Tt;ot=Ae}ot.name||(ot.name=be),oe[be]=ot,ot.rawDefinition=Ce.bind(null,Y),ot.aliases&&Ee(ot.aliases,{languageName:be})}function Re(be){delete oe[be];for(const Ce of Object.keys(ye))ye[Ce]===be&&delete ye[Ce]}function X(){return Object.keys(oe)}function pe(be){return be=(be||"").toLowerCase(),oe[be]||oe[ye[be]]}function Ee(be,{languageName:Ce}){typeof be=="string"&&(be=[be]),be.forEach(ot=>{ye[ot.toLowerCase()]=Ce})}function Et(be){const Ce=pe(be);return Ce&&!Ce.disableAutodetect}function tn(be){be["before:highlightBlock"]&&!be["before:highlightElement"]&&(be["before:highlightElement"]=Ce=>{be["before:highlightBlock"](Object.assign({block:Ce.el},Ce))}),be["after:highlightBlock"]&&!be["after:highlightElement"]&&(be["after:highlightElement"]=Ce=>{be["after:highlightBlock"](Object.assign({block:Ce.el},Ce))})}function st(be){tn(be),We.push(be)}function Dn(be){const Ce=We.indexOf(be);Ce!==-1&&We.splice(Ce,1)}function jn(be,Ce){const ot=be;We.forEach(function(Tt){Tt[ot]&&Tt[ot](Ce)})}function ei(be){return ae("10.7.0","highlightBlock will be removed entirely in v12.0"),ae("10.7.0","Please use highlightElement now."),ln(be)}Object.assign(Y,{highlight:wt,highlightAuto:ua,highlightAll:ha,highlightElement:ln,highlightBlock:ei,configure:Qt,initHighlighting:Tr,initHighlightingOnLoad:Ga,registerLanguage:As,unregisterLanguage:Re,listLanguages:X,getLanguage:pe,registerAliases:Ee,autoDetection:Et,inherit:Ts,addPlugin:st,removePlugin:Dn}),Y.debugMode=function(){Yt=!1},Y.safeMode=function(){Yt=!0},Y.versionString=yt,Y.regex={concat:_,lookahead:y,either:S,optional:x,anyNumberOfTimes:m};for(const be in Qe)typeof Qe[be]=="object"&&e(Qe[be]);return Object.assign(Y,Qe),Y},vn=oa({});return vn.newInstance=()=>oa({}),F0=vn,vn.HighlightJS=vn,vn.default=vn,F0}var KU=XU();const ZU=lh(KU),IC={},QU="hljs-";function JU(e){const t=ZU.newInstance();return e&&l(e),{highlight:n,highlightAuto:i,listLanguages:r,register:l,registerAlias:s,registered:c};function n(u,h,d){const p=d||IC,y=typeof p.prefix=="string"?p.prefix:QU;if(!t.getLanguage(u))throw new Error("Unknown language: `"+u+"` is not registered");t.configure({__emitter:e7,classPrefix:y});const m=t.highlight(h,{ignoreIllegals:!0,language:u});if(m.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:m.errorRaised});const x=m._emitter.root,_=x.data;return _.language=m.language,_.relevance=m.relevance,x}function i(u,h){const p=(h||IC).subset||r();let y=-1,m=0,x;for(;++y<p.length;){const _=p[y];if(!t.getLanguage(_))continue;const w=n(_,u,h);w.data&&w.data.relevance!==void 0&&w.data.relevance>m&&(m=w.data.relevance,x=w)}return x||{type:"root",children:[],data:{language:void 0,relevance:m}}}function r(){return t.listLanguages()}function l(u,h){if(typeof u=="string")t.registerLanguage(u,h);else{let d;for(d in u)Object.hasOwn(u,d)&&t.registerLanguage(d,u[d])}}function s(u,h){if(typeof u=="string")t.registerAliases(typeof h=="string"?h:[...h],{languageName:u});else{let d;for(d in u)if(Object.hasOwn(u,d)){const p=u[d];t.registerAliases(typeof p=="string"?p:[...p],{languageName:d})}}}function c(u){return!!t.getLanguage(u)}}class e7{constructor(t){this.options=t,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(t){if(t==="")return;const n=this.stack[this.stack.length-1],i=n.children[n.children.length-1];i&&i.type==="text"?i.value+=t:n.children.push({type:"text",value:t})}startScope(t){this.openNode(String(t))}endScope(){this.closeNode()}__addSublanguage(t,n){const i=this.stack[this.stack.length-1],r=t.root.children;n?i.children.push({type:"element",tagName:"span",properties:{className:[n]},children:r}):i.children.push(...r)}openNode(t){const n=this,i=t.split(".").map(function(s,c){return c?s+"_".repeat(c):n.options.classPrefix+s}),r=this.stack[this.stack.length-1],l={type:"element",tagName:"span",properties:{className:i},children:[]};r.children.push(l),this.stack.push(l)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const t7={};function n7(e){const t=e||t7,n=t.aliases,i=t.detect||!1,r=t.languages||VU,l=t.plainText,s=t.prefix,c=t.subset;let u="hljs";const h=JU(r);if(n&&h.registerAlias(n),s){const d=s.indexOf("-");u=d===-1?s:s.slice(0,d)}return function(d,p){Tp(d,"element",function(y,m,x){if(y.tagName!=="code"||!x||x.type!=="element"||x.tagName!=="pre")return;const _=i7(y);if(_===!1||!_&&!i||_&&l&&l.includes(_))return;Array.isArray(y.properties.className)||(y.properties.className=[]),y.properties.className.includes(u)||y.properties.className.unshift(u);const w=vH(y,{whitespace:"pre"});let S;try{S=_?h.highlight(_,w,{prefix:s}):h.highlightAuto(w,{prefix:s,subset:c})}catch(C){const E=C;if(_&&/Unknown language/.test(E.message)){p.message("Cannot highlight as `"+_+"`, it’s not registered",{ancestors:[x,y],cause:E,place:y.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw E}!_&&S.data&&S.data.language&&y.properties.className.push("language-"+S.data.language),S.children.length>0&&(y.children=S.children)})}}function i7(e){const t=e.properties.className;let n=-1;if(!Array.isArray(t))return;let i;for(;++n<t.length;){const r=String(t[n]);if(r==="no-highlight"||r==="nohighlight")return!1;!i&&r.slice(0,5)==="lang-"&&(i=r.slice(5)),!i&&r.slice(0,9)==="language-"&&(i=r.slice(9))}return i}function $C(e,t){let n=e.nodeType===Node.TEXT_NODE?e.parentElement:e;for(;n&&!n.hasAttribute("data-line-start");)n=n.parentElement;if(!n)return null;const i=Number(n.getAttribute("data-line-start"));if(!Number.isFinite(i))return null;const s=((e.nodeType===Node.TEXT_NODE?e.data:"").slice(0,t).match(/\n/g)||[]).length;return i+s}function r7(e){if(e.isCollapsed)return null;const{anchorNode:t,anchorOffset:n,focusNode:i,focusOffset:r}=e;if(!t||!i)return null;const l=$C(t,n),s=$C(i,r);if(l==null||s==null)return null;const c=Math.min(l,s);let u=Math.max(l,s);const h=e.toString();if(h.endsWith(`
|
|
154
|
+
`)&&c<u){const p=(h.replace(/\n+$/,"").match(/\n/g)||[]).length;u=c+p}return{startLine:c,endLine:u}}function FC(e,t){if(e.nodeType!==Node.TEXT_NODE)return;const i=e.data.slice(0,t),r=i.lastIndexOf(`
|
|
155
|
+
`);return r===-1?i.length:i.length-r-1}function a7(e){const n=e.startContainer.nodeType===Node.TEXT_NODE?e.startContainer.data:"",i=e.endContainer.nodeType===Node.TEXT_NODE?e.endContainer.data:"";return{beforeText:n.slice(Math.max(0,e.startOffset-80),e.startOffset),afterText:i.slice(e.endOffset,e.endOffset+80)}}const l7=({containerRef:e,onSubmitComment:t})=>{const[n,i]=ge.useState(null),[r,l]=ge.useState(!1),[s,c]=ge.useState(!1),[u,h]=ge.useState(""),[d,p]=ge.useState(null),[y,m]=ge.useState(null),x=ge.useRef(null),_=ge.useRef(null),w=ge.useRef(null),S=ge.useRef(!1),C=ge.useMemo(()=>typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.userAgent),[]),E=ge.useCallback(H=>{if(_.current&&(_.current.remove(),_.current=null),!H||!e.current)return;const Z=H.getClientRects();if(Z.length===0)return;const V=e.current.getBoundingClientRect(),P=document.createElement("div");P.className="selection-highlight-container",P.style.position="absolute",P.style.top="0",P.style.left="0",P.style.pointerEvents="none";for(let z=0;z<Z.length;z++){const L=Z[z],U=document.createElement("div");U.className="selection-highlight",U.style.position="absolute",U.style.left=`${L.left-V.left+e.current.scrollLeft}px`,U.style.top=`${L.top-V.top+e.current.scrollTop}px`,U.style.width=`${L.width}px`,U.style.height=`${L.height}px`,P.appendChild(U)}e.current.style.position="relative",e.current.appendChild(P),_.current=P},[e]),N=ge.useCallback(H=>{const P=H.top-8-8;P<300&&P>0?m(P):m(null)},[]),M=ge.useCallback((H,Z=S.current)=>{if(Z){const z=H.getClientRects();if(z.length===0)return;let L=z[0];for(let U=1;U<z.length;U++)z[U].top<L.top&&(L=z[U]);N(L),i({x:L.left,y:L.top-8});return}const P=H.getBoundingClientRect();i({x:P.left+P.width/2,y:P.top-8})},[N]),A=ge.useCallback(()=>{const H=window.getSelection();if(!H||H.isCollapsed||!e.current){s||(l(!1),w.current=null,p(null),E(null));return}const Z=H.anchorNode;if(!Z||!e.current.contains(Z)){s||(l(!1),w.current=null,p(null),E(null));return}const V=H.getRangeAt(0),P=r7(H),{beforeText:z,afterText:L}=a7(V),U={range:V.cloneRange(),text:H.toString(),startLine:(P==null?void 0:P.startLine)??1,endLine:(P==null?void 0:P.endLine)??1,startOffset:FC(V.startContainer,V.startOffset),endOffset:FC(V.endContainer,V.endOffset),beforeText:z,afterText:L};w.current=U,p(U),M(V),l(!0)},[e,s,E,M]),O=H=>{H.preventDefault(),H.stopPropagation(),d&&(E(d.range),M(d.range,!0)),c(!0),S.current=!0,setTimeout(()=>{var Z;(Z=x.current)==null||Z.focus()},0)},q=()=>{u.trim()&&t&&d&&t(u.trim(),d.text,d.startLine,d.endLine,d.startOffset,d.endOffset,d.beforeText,d.afterText),h(""),c(!1),S.current=!1,l(!1),w.current=null,p(null),E(null),m(null)},j=()=>{h(""),c(!1),S.current=!1,l(!1),w.current=null,p(null),E(null),m(null)},F=H=>{H.key==="Enter"&&(H.metaKey||H.ctrlKey)?(H.preventDefault(),q()):H.key==="Escape"&&j()};return ge.useEffect(()=>{const H=V=>{setTimeout(()=>{var P;(P=V.target)!=null&&P.closest(".selection-popover")||S.current||A()},10)},Z=V=>{var P;(P=V.target)!=null&&P.closest(".selection-popover")||S.current||(l(!1),w.current=null,p(null),E(null))};return document.addEventListener("mouseup",H),document.addEventListener("mousedown",Z),()=>{document.removeEventListener("mouseup",H),document.removeEventListener("mousedown",Z)}},[A,E]),ge.useEffect(()=>{if(!r)return;const H=()=>{const Z=w.current;Z&&M(Z.range)};return window.addEventListener("scroll",H,!0),window.addEventListener("resize",H),()=>{window.removeEventListener("scroll",H,!0),window.removeEventListener("resize",H)}},[r,M]),ge.useEffect(()=>()=>{_.current&&_.current.remove()},[]),!r||!n?null:$.jsx("div",{className:"selection-popover",style:{position:"fixed",left:n.x,top:n.y,transform:s?"translateY(-100%)":"translate(-50%, -100%)"},children:s?$.jsxs("div",{className:"comment-form",children:[$.jsx("div",{className:"comment-form-content",style:y?{maxHeight:y,overflowY:"auto"}:void 0,children:$.jsx("textarea",{ref:x,className:"comment-input",placeholder:"Add a comment...",value:u,onChange:H=>h(H.target.value),onKeyDown:F,rows:3})}),$.jsxs("div",{className:"comment-actions",children:[$.jsx("button",{className:"comment-cancel",onClick:j,children:"Cancel"}),$.jsxs("div",{className:"comment-submit-wrapper",children:[$.jsx("button",{className:"comment-submit",onClick:q,disabled:!u.trim(),children:"Submit"}),$.jsxs("div",{role:"tooltip",className:"shortcut-tooltip",children:[$.jsx("kbd",{className:"shortcut-key",children:C?"⌘":"Ctrl"}),$.jsx("kbd",{className:"shortcut-key",children:"Enter"})]})]})]})]}):$.jsx("button",{className:"popover-button",onMouseDown:H=>H.preventDefault(),onClick:O,children:"Comment"})})},s7=({comments:e,filename:t,onDeleteComment:n,onDeleteAll:i,onClose:r,onLineClick:l,onEditComment:s})=>{const[c,u]=ge.useState(null),[h,d]=ge.useState(!1),[p,y]=ge.useState(null),[m,x]=ge.useState(""),_=j=>j.comment||j.text||"",w=(j="open")=>({open:"Open",resolved:"Resolved",partially_resolved:"Partially resolved",unresolved:"Unresolved",ignored:"Ignored"})[j],S=(j="open")=>`status-${j.replace(/_/g,"-")}`,C=j=>{const F=j.startLine===j.endLine?`L${j.startLine}`:`L${j.startLine}-${j.endLine}`;return`${t}:${F}
|
|
156
|
+
${_(j)}`},E=async j=>{try{await navigator.clipboard.writeText(C(j)),u(j.id),setTimeout(()=>u(null),2e3)}catch(F){console.error("Failed to copy:",F)}},N=async()=>{const j=e.map(C).join(`
|
|
157
|
+
------------------------------------
|
|
158
|
+
`);try{await navigator.clipboard.writeText(j),d(!0),setTimeout(()=>d(!1),2e3)}catch(F){console.error("Failed to copy:",F)}},M=j=>{y(j.id),x(_(j))},A=()=>{y(null),x("")},O=j=>{m.trim()&&s&&(s(j,m.trim()),y(null),x(""))},q=(j,F)=>{j.key==="Enter"&&(j.metaKey||j.ctrlKey)?(j.preventDefault(),O(F)):j.key==="Escape"&&(j.preventDefault(),A())};return $.jsxs("div",{className:"comment-list",children:[$.jsxs("div",{className:"comment-list-header",children:[$.jsxs("div",{className:"comment-list-title-wrapper",children:[r&&$.jsx("button",{className:"comment-list-collapse-btn",onClick:r,title:"Hide comments","aria-label":"Hide comments",children:$.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:$.jsx("polyline",{points:"8 4 14 10 8 16"})})}),$.jsx("h3",{className:"comment-list-title","aria-label":`${e.length} comments`,children:$.jsxs("span",{className:"comment-icon-wrapper",children:[$.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:$.jsx("path",{d:"M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z"})}),e.length>0&&$.jsx("span",{className:"comment-count-badge","aria-hidden":"true",children:e.length})]})})]}),e.length>0&&$.jsxs("div",{className:"comment-list-actions",children:[$.jsxs("button",{className:`comment-list-copy-all ${h?"copied":""}`,onClick:N,title:h?"Copied!":"Copy all comments",children:[h?$.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:$.jsx("polyline",{points:"20 6 9 17 4 12"})}):$.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[$.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),$.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]}),$.jsx("span",{children:"Copy All"})]}),i&&$.jsxs("button",{className:"comment-list-delete-all",onClick:i,title:"Delete all comments",children:[$.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[$.jsx("polyline",{points:"3 6 5 6 21 6"}),$.jsx("path",{d:"M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2"})]}),$.jsx("span",{children:"Clear"})]})]})]}),e.length===0?$.jsxs("div",{className:"comment-list-empty",children:[$.jsx("p",{children:"No comments yet"}),$.jsx("p",{className:"comment-list-hint",children:"Select text to add a comment"})]}):$.jsx("div",{className:"comment-list-items",children:e.map(j=>$.jsxs("div",{className:"comment-item",children:[$.jsxs("div",{className:"comment-item-header",children:[$.jsxs("div",{className:"comment-item-meta",children:[$.jsxs("button",{className:"comment-item-lines",onClick:()=>l==null?void 0:l(j.startLine),title:"Jump to line",children:["Line"," ",j.startLine===j.endLine?j.startLine:`${j.startLine}-${j.endLine}`]}),$.jsx("span",{className:`comment-item-status ${S(j.status)}`,children:w(j.status)})]}),$.jsxs("div",{className:"comment-item-actions",children:[s&&p!==j.id&&$.jsx("button",{className:"comment-item-edit",onClick:()=>M(j),title:"Edit comment",children:$.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[$.jsx("path",{d:"M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"}),$.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),$.jsx("button",{className:`comment-item-copy ${c===j.id?"copied":""}`,onClick:()=>E(j),title:c===j.id?"Copied!":"Copy comment",children:c===j.id?$.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:$.jsx("polyline",{points:"20 6 9 17 4 12"})}):$.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[$.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),$.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})}),n&&$.jsx("button",{className:"comment-item-delete",onClick:()=>n(j.id),title:"Delete comment",children:"×"})]})]}),$.jsxs("div",{className:"comment-item-selection",children:['"',j.selectedText.length>50?j.selectedText.slice(0,50)+"...":j.selectedText,'"']}),p===j.id?$.jsxs("div",{className:"comment-edit-form",children:[$.jsx("textarea",{className:"comment-edit-input",value:m,onChange:F=>x(F.target.value),onKeyDown:F=>q(F,j.id),rows:3,autoFocus:!0}),$.jsxs("div",{className:"comment-edit-actions",children:[$.jsx("button",{className:"comment-edit-cancel",onClick:A,children:"Cancel"}),$.jsx("button",{className:"comment-edit-save",onClick:()=>O(j.id),disabled:!m.trim(),children:"Save"})]})]}):$.jsx("div",{className:"comment-item-text",children:_(j)})]},j.id))})]})};var zC={name:"mermaid",version:"11.12.2",description:"Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.",type:"module",module:"./dist/mermaid.core.mjs",types:"./dist/mermaid.d.ts",exports:{".":{types:"./dist/mermaid.d.ts",import:"./dist/mermaid.core.mjs",default:"./dist/mermaid.core.mjs"},"./*":"./*"},keywords:["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph","mindmap","packet diagram","c4 diagram","er diagram","pie chart","pie diagram","quadrant chart","requirement diagram","graph"],scripts:{clean:"rimraf dist",dev:"pnpm -w dev","docs:code":"typedoc src/defaultConfig.ts src/config.ts src/mermaid.ts && prettier --write ./src/docs/config/setup","docs:build":"rimraf ../../docs && pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts","docs:verify":"pnpm docs:code && pnpm docs:spellcheck && tsx scripts/docs.cli.mts --verify","docs:pre:vitepress":"pnpm --filter ./src/docs prefetch && rimraf src/vitepress && pnpm docs:code && tsx scripts/docs.cli.mts --vitepress && pnpm --filter ./src/vitepress install --no-frozen-lockfile --ignore-scripts","docs:build:vitepress":"pnpm docs:pre:vitepress && (cd src/vitepress && pnpm run build) && cpy --flat src/docs/landing/ ./src/vitepress/.vitepress/dist/landing","docs:dev":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:dev:docker":'pnpm docs:pre:vitepress && concurrently "pnpm --filter ./src/vitepress dev:docker" "tsx scripts/docs.cli.mts --watch --vitepress"',"docs:serve":"pnpm docs:build:vitepress && vitepress serve src/vitepress","docs:spellcheck":'cspell "src/docs/**/*.md"',"docs:release-version":"tsx scripts/update-release-version.mts","docs:verify-version":"tsx scripts/update-release-version.mts --verify","types:build-config":"tsx scripts/create-types-from-json-schema.mts","types:verify-config":"tsx scripts/create-types-from-json-schema.mts --verify",checkCircle:"npx madge --circular ./src",prepublishOnly:"pnpm docs:verify-version"},repository:{type:"git",url:"https://github.com/mermaid-js/mermaid"},author:"Knut Sveidqvist",license:"MIT",standard:{ignore:["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],globals:["page"]},dependencies:{"@braintree/sanitize-url":"^7.1.1","@iconify/utils":"^3.0.1","@mermaid-js/parser":"workspace:^","@types/d3":"^7.4.3",cytoscape:"^3.29.3","cytoscape-cose-bilkent":"^4.1.0","cytoscape-fcose":"^2.2.0",d3:"^7.9.0","d3-sankey":"^0.12.3","dagre-d3-es":"7.0.13",dayjs:"^1.11.18",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.2.1",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.5","@iconify/types":"^2.0.0","@types/cytoscape":"^3.21.9","@types/cytoscape-fcose":"^2.2.4","@types/d3-sankey":"^0.12.4","@types/d3-scale":"^4.0.9","@types/d3-scale-chromatic":"^3.1.0","@types/d3-selection":"^3.0.11","@types/d3-shape":"^3.1.7","@types/jsdom":"^21.1.7","@types/katex":"^0.16.7","@types/lodash-es":"^4.17.12","@types/micromatch":"^4.0.9","@types/stylis":"^4.2.7","@types/uuid":"^10.0.0",ajv:"^8.17.1",canvas:"^3.1.2",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.1.0",jison:"^0.4.18","js-base64":"^3.7.8",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.3",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.13","type-fest":"^4.35.0",typedoc:"^0.28.12","typedoc-plugin-markdown":"^4.8.1",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.6.4","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},cd={exports:{}},o7=cd.exports,PC;function c7(){return PC||(PC=1,(function(e,t){(function(n,i){e.exports=i()})(o7,(function(){var n=1e3,i=6e4,r=36e5,l="millisecond",s="second",c="minute",u="hour",h="day",d="week",p="month",y="quarter",m="year",x="date",_="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var z=["th","st","nd","rd"],L=P%100;return"["+P+(z[(L-20)%10]||z[L]||z[0])+"]"}},E=function(P,z,L){var U=String(P);return!U||U.length>=z?P:""+Array(z+1-U.length).join(L)+P},N={s:E,z:function(P){var z=-P.utcOffset(),L=Math.abs(z),U=Math.floor(L/60),G=L%60;return(z<=0?"+":"-")+E(U,2,"0")+":"+E(G,2,"0")},m:function P(z,L){if(z.date()<L.date())return-P(L,z);var U=12*(L.year()-z.year())+(L.month()-z.month()),G=z.clone().add(U,p),le=L-G<0,B=z.clone().add(U+(le?-1:1),p);return+(-(U+(L-G)/(le?G-B:B-G))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:p,y:m,w:d,d:h,D:x,h:u,m:c,s,ms:l,Q:y}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},M="en",A={};A[M]=C;var O="$isDayjsObject",q=function(P){return P instanceof Z||!(!P||!P[O])},j=function P(z,L,U){var G;if(!z)return M;if(typeof z=="string"){var le=z.toLowerCase();A[le]&&(G=le),L&&(A[le]=L,G=le);var B=z.split("-");if(!G&&B.length>1)return P(B[0])}else{var I=z.name;A[I]=z,G=I}return!U&&G&&(M=G),G||!U&&M},F=function(P,z){if(q(P))return P.clone();var L=typeof z=="object"?z:{};return L.date=P,L.args=arguments,new Z(L)},H=N;H.l=j,H.i=q,H.w=function(P,z){return F(P,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var Z=(function(){function P(L){this.$L=j(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[O]=!0}var z=P.prototype;return z.parse=function(L){this.$d=(function(U){var G=U.date,le=U.utc;if(G===null)return new Date(NaN);if(H.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var B=G.match(w);if(B){var I=B[2]-1||0,Q=(B[7]||"0").substring(0,3);return le?new Date(Date.UTC(B[1],I,B[3]||1,B[4]||0,B[5]||0,B[6]||0,Q)):new Date(B[1],I,B[3]||1,B[4]||0,B[5]||0,B[6]||0,Q)}}return new Date(G)})(L),this.init()},z.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},z.$utils=function(){return H},z.isValid=function(){return this.$d.toString()!==_},z.isSame=function(L,U){var G=F(L);return this.startOf(U)<=G&&G<=this.endOf(U)},z.isAfter=function(L,U){return F(L)<this.startOf(U)},z.isBefore=function(L,U){return this.endOf(U)<F(L)},z.$g=function(L,U,G){return H.u(L)?this[U]:this.set(G,L)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(L,U){var G=this,le=!!H.u(U)||U,B=H.p(L),I=function(ze,Qe){var it=H.w(G.$u?Date.UTC(G.$y,Qe,ze):new Date(G.$y,Qe,ze),G);return le?it:it.endOf(h)},Q=function(ze,Qe){return H.w(G.toDate()[ze].apply(G.toDate("s"),(le?[0,0,0,0]:[23,59,59,999]).slice(Qe)),G)},D=this.$W,he=this.$M,xe=this.$D,de="set"+(this.$u?"UTC":"");switch(B){case m:return le?I(1,0):I(31,11);case p:return le?I(1,he):I(0,he+1);case d:var we=this.$locale().weekStart||0,Le=(D<we?D+7:D)-we;return I(le?xe-Le:xe+(6-Le),he);case h:case x:return Q(de+"Hours",0);case u:return Q(de+"Minutes",1);case c:return Q(de+"Seconds",2);case s:return Q(de+"Milliseconds",3);default:return this.clone()}},z.endOf=function(L){return this.startOf(L,!1)},z.$set=function(L,U){var G,le=H.p(L),B="set"+(this.$u?"UTC":""),I=(G={},G[h]=B+"Date",G[x]=B+"Date",G[p]=B+"Month",G[m]=B+"FullYear",G[u]=B+"Hours",G[c]=B+"Minutes",G[s]=B+"Seconds",G[l]=B+"Milliseconds",G)[le],Q=le===h?this.$D+(U-this.$W):U;if(le===p||le===m){var D=this.clone().set(x,1);D.$d[I](Q),D.init(),this.$d=D.set(x,Math.min(this.$D,D.daysInMonth())).$d}else I&&this.$d[I](Q);return this.init(),this},z.set=function(L,U){return this.clone().$set(L,U)},z.get=function(L){return this[H.p(L)]()},z.add=function(L,U){var G,le=this;L=Number(L);var B=H.p(U),I=function(he){var xe=F(le);return H.w(xe.date(xe.date()+Math.round(he*L)),le)};if(B===p)return this.set(p,this.$M+L);if(B===m)return this.set(m,this.$y+L);if(B===h)return I(1);if(B===d)return I(7);var Q=(G={},G[c]=i,G[u]=r,G[s]=n,G)[B]||1,D=this.$d.getTime()+L*Q;return H.w(D,this)},z.subtract=function(L,U){return this.add(-1*L,U)},z.format=function(L){var U=this,G=this.$locale();if(!this.isValid())return G.invalidDate||_;var le=L||"YYYY-MM-DDTHH:mm:ssZ",B=H.z(this),I=this.$H,Q=this.$m,D=this.$M,he=G.weekdays,xe=G.months,de=G.meridiem,we=function(Qe,it,gn,mn){return Qe&&(Qe[it]||Qe(U,le))||gn[it].slice(0,mn)},Le=function(Qe){return H.s(I%12||12,Qe,"0")},ze=de||function(Qe,it,gn){var mn=Qe<12?"AM":"PM";return gn?mn.toLowerCase():mn};return le.replace(S,(function(Qe,it){return it||(function(gn){switch(gn){case"YY":return String(U.$y).slice(-2);case"YYYY":return H.s(U.$y,4,"0");case"M":return D+1;case"MM":return H.s(D+1,2,"0");case"MMM":return we(G.monthsShort,D,xe,3);case"MMMM":return we(xe,D);case"D":return U.$D;case"DD":return H.s(U.$D,2,"0");case"d":return String(U.$W);case"dd":return we(G.weekdaysMin,U.$W,he,2);case"ddd":return we(G.weekdaysShort,U.$W,he,3);case"dddd":return he[U.$W];case"H":return String(I);case"HH":return H.s(I,2,"0");case"h":return Le(1);case"hh":return Le(2);case"a":return ze(I,Q,!0);case"A":return ze(I,Q,!1);case"m":return String(Q);case"mm":return H.s(Q,2,"0");case"s":return String(U.$s);case"ss":return H.s(U.$s,2,"0");case"SSS":return H.s(U.$ms,3,"0");case"Z":return B}return null})(Qe)||B.replace(":","")}))},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(L,U,G){var le,B=this,I=H.p(U),Q=F(L),D=(Q.utcOffset()-this.utcOffset())*i,he=this-Q,xe=function(){return H.m(B,Q)};switch(I){case m:le=xe()/12;break;case p:le=xe();break;case y:le=xe()/3;break;case d:le=(he-D)/6048e5;break;case h:le=(he-D)/864e5;break;case u:le=he/r;break;case c:le=he/i;break;case s:le=he/n;break;default:le=he}return G?le:H.a(le)},z.daysInMonth=function(){return this.endOf(p).$D},z.$locale=function(){return A[this.$L]},z.locale=function(L,U){if(!L)return this.$L;var G=this.clone(),le=j(L,U,!0);return le&&(G.$L=le),G},z.clone=function(){return H.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},P})(),V=Z.prototype;return F.prototype=V,[["$ms",l],["$s",s],["$m",c],["$H",u],["$W",h],["$M",p],["$y",m],["$D",x]].forEach((function(P){V[P[1]]=function(z){return this.$g(z,P[0],P[1])}})),F.extend=function(P,z){return P.$i||(P(z,Z,F),P.$i=!0),F},F.locale=j,F.isDayjs=q,F.unix=function(P){return F(1e3*P)},F.en=A[M],F.Ls=A,F.p={},F}))})(cd)),cd.exports}var u7=c7();const h7=lh(u7);var XT=Object.defineProperty,k=(e,t)=>XT(e,"name",{value:t,configurable:!0}),f7=(e,t)=>{for(var n in t)XT(e,n,{get:t[n],enumerable:!0})},Ma={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},fe={trace:k((...e)=>{},"trace"),debug:k((...e)=>{},"debug"),info:k((...e)=>{},"info"),warn:k((...e)=>{},"warn"),error:k((...e)=>{},"error"),fatal:k((...e)=>{},"fatal")},fx=k(function(e="fatal"){let t=Ma.fatal;typeof e=="string"?e.toLowerCase()in Ma&&(t=Ma[e]):typeof e=="number"&&(t=e),fe.trace=()=>{},fe.debug=()=>{},fe.info=()=>{},fe.warn=()=>{},fe.error=()=>{},fe.fatal=()=>{},t<=Ma.fatal&&(fe.fatal=console.error?console.error.bind(console,_r("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",_r("FATAL"))),t<=Ma.error&&(fe.error=console.error?console.error.bind(console,_r("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",_r("ERROR"))),t<=Ma.warn&&(fe.warn=console.warn?console.warn.bind(console,_r("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",_r("WARN"))),t<=Ma.info&&(fe.info=console.info?console.info.bind(console,_r("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",_r("INFO"))),t<=Ma.debug&&(fe.debug=console.debug?console.debug.bind(console,_r("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",_r("DEBUG"))),t<=Ma.trace&&(fe.trace=console.debug?console.debug.bind(console,_r("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",_r("TRACE")))},"setLogLevel"),_r=k(e=>`%c${h7().format("ss.SSS")} : ${e} : `,"format");const ud={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,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:t,l:n},i)=>{if(!t)return n*2.55;e/=360,t/=100,n/=100;const r=n<.5?n*(1+t):n+t-n*t,l=2*n-r;switch(i){case"r":return ud.hue2rgb(l,r,e+1/3)*255;case"g":return ud.hue2rgb(l,r,e)*255;case"b":return ud.hue2rgb(l,r,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:n},i)=>{e/=255,t/=255,n/=255;const r=Math.max(e,t,n),l=Math.min(e,t,n),s=(r+l)/2;if(i==="l")return s*100;if(r===l)return 0;const c=r-l,u=s>.5?c/(2-r-l):c/(r+l);if(i==="s")return u*100;switch(r){case e:return((t-n)/c+(t<n?6:0))*60;case t:return((n-e)/c+2)*60;case n:return((e-t)/c+4)*60;default:return-1}}},d7={clamp:(e,t,n)=>t>n?Math.min(t,Math.max(n,e)):Math.min(n,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},p7={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},tt={channel:ud,lang:d7,unit:p7},xl={};for(let e=0;e<=255;e++)xl[e]=tt.unit.dec2hex(e);const ri={ALL:0,RGB:1,HSL:2};class g7{constructor(){this.type=ri.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=ri.ALL}is(t){return this.type===t}}class m7{constructor(t,n){this.color=n,this.changed=!1,this.data=t,this.type=new g7}set(t,n){return this.color=n,this.changed=!1,this.data=t,this.type.type=ri.ALL,this}_ensureHSL(){const t=this.data,{h:n,s:i,l:r}=t;n===void 0&&(t.h=tt.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=tt.channel.rgb2hsl(t,"s")),r===void 0&&(t.l=tt.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r:n,g:i,b:r}=t;n===void 0&&(t.r=tt.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=tt.channel.hsl2rgb(t,"g")),r===void 0&&(t.b=tt.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,n=t.r;return!this.type.is(ri.HSL)&&n!==void 0?n:(this._ensureHSL(),tt.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,n=t.g;return!this.type.is(ri.HSL)&&n!==void 0?n:(this._ensureHSL(),tt.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,n=t.b;return!this.type.is(ri.HSL)&&n!==void 0?n:(this._ensureHSL(),tt.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,n=t.h;return!this.type.is(ri.RGB)&&n!==void 0?n:(this._ensureRGB(),tt.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,n=t.s;return!this.type.is(ri.RGB)&&n!==void 0?n:(this._ensureRGB(),tt.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,n=t.l;return!this.type.is(ri.RGB)&&n!==void 0?n:(this._ensureRGB(),tt.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(ri.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(ri.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(ri.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(ri.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(ri.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(ri.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const Lp=new m7({r:0,g:0,b:0,a:0},"transparent"),To={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(To.re);if(!t)return;const n=t[1],i=parseInt(n,16),r=n.length,l=r%4===0,s=r>4,c=s?1:17,u=s?8:4,h=l?0:-1,d=s?255:15;return Lp.set({r:(i>>u*(h+3)&d)*c,g:(i>>u*(h+2)&d)*c,b:(i>>u*(h+1)&d)*c,a:l?(i&d)*c/255:1},e)},stringify:e=>{const{r:t,g:n,b:i,a:r}=e;return r<1?`#${xl[Math.round(t)]}${xl[Math.round(n)]}${xl[Math.round(i)]}${xl[Math.round(r*255)]}`:`#${xl[Math.round(t)]}${xl[Math.round(n)]}${xl[Math.round(i)]}`}},rs={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(rs.hueRe);if(t){const[,n,i]=t;switch(i){case"grad":return tt.channel.clamp.h(parseFloat(n)*.9);case"rad":return tt.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return tt.channel.clamp.h(parseFloat(n)*360)}}return tt.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const n=e.match(rs.re);if(!n)return;const[,i,r,l,s,c]=n;return Lp.set({h:rs._hue2deg(i),s:tt.channel.clamp.s(parseFloat(r)),l:tt.channel.clamp.l(parseFloat(l)),a:s?tt.channel.clamp.a(c?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{const{h:t,s:n,l:i,a:r}=e;return r<1?`hsla(${tt.lang.round(t)}, ${tt.lang.round(n)}%, ${tt.lang.round(i)}%, ${r})`:`hsl(${tt.lang.round(t)}, ${tt.lang.round(n)}%, ${tt.lang.round(i)}%)`}},Ru={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=Ru.colors[e];if(t)return To.parse(t)},stringify:e=>{const t=To.stringify(e);for(const n in Ru.colors)if(Ru.colors[n]===t)return n}},_u={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 n=e.match(_u.re);if(!n)return;const[,i,r,l,s,c,u,h,d]=n;return Lp.set({r:tt.channel.clamp.r(r?parseFloat(i)*2.55:parseFloat(i)),g:tt.channel.clamp.g(s?parseFloat(l)*2.55:parseFloat(l)),b:tt.channel.clamp.b(u?parseFloat(c)*2.55:parseFloat(c)),a:h?tt.channel.clamp.a(d?parseFloat(h)/100:parseFloat(h)):1},e)},stringify:e=>{const{r:t,g:n,b:i,a:r}=e;return r<1?`rgba(${tt.lang.round(t)}, ${tt.lang.round(n)}, ${tt.lang.round(i)}, ${tt.lang.round(r)})`:`rgb(${tt.lang.round(t)}, ${tt.lang.round(n)}, ${tt.lang.round(i)})`}},ia={format:{keyword:Ru,hex:To,rgb:_u,rgba:_u,hsl:rs,hsla:rs},parse:e=>{if(typeof e!="string")return e;const t=To.parse(e)||_u.parse(e)||rs.parse(e)||Ru.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(ri.HSL)||e.data.r===void 0?rs.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?_u.stringify(e):To.stringify(e)},KT=(e,t)=>{const n=ia.parse(e);for(const i in t)n[i]=tt.channel.clamp[i](t[i]);return ia.stringify(n)},Du=(e,t,n=0,i=1)=>{if(typeof e!="number")return KT(e,{a:t});const r=Lp.set({r:tt.channel.clamp.r(e),g:tt.channel.clamp.g(t),b:tt.channel.clamp.b(n),a:tt.channel.clamp.a(i)});return ia.stringify(r)},y7=e=>{const{r:t,g:n,b:i}=ia.parse(e),r=.2126*tt.channel.toLinear(t)+.7152*tt.channel.toLinear(n)+.0722*tt.channel.toLinear(i);return tt.lang.round(r)},b7=e=>y7(e)>=.5,fh=e=>!b7(e),ZT=(e,t,n)=>{const i=ia.parse(e),r=i[t],l=tt.channel.clamp[t](r+n);return r!==l&&(i[t]=l),ia.stringify(i)},Ne=(e,t)=>ZT(e,"l",t),Ge=(e,t)=>ZT(e,"l",-t),ee=(e,t)=>{const n=ia.parse(e),i={};for(const r in t)t[r]&&(i[r]=n[r]+t[r]);return KT(e,i)},x7=(e,t,n=50)=>{const{r:i,g:r,b:l,a:s}=ia.parse(e),{r:c,g:u,b:h,a:d}=ia.parse(t),p=n/100,y=p*2-1,m=s-d,_=((y*m===-1?y:(y+m)/(1+y*m))+1)/2,w=1-_,S=i*_+c*w,C=r*_+u*w,E=l*_+h*w,N=s*p+d*(1-p);return Du(S,C,E,N)},Se=(e,t=100)=>{const n=ia.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,x7(n,e,t)};/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:QT,setPrototypeOf:HC,isFrozen:_7,getPrototypeOf:v7,getOwnPropertyDescriptor:w7}=Object;let{freeze:Ci,seal:Sr,create:By}=Object,{apply:Iy,construct:$y}=typeof Reflect<"u"&&Reflect;Ci||(Ci=function(t){return t});Sr||(Sr=function(t){return t});Iy||(Iy=function(t,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),l=2;l<i;l++)r[l-2]=arguments[l];return t.apply(n,r)});$y||($y=function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return new t(...i)});const Wf=ki(Array.prototype.forEach),S7=ki(Array.prototype.lastIndexOf),UC=ki(Array.prototype.pop),su=ki(Array.prototype.push),C7=ki(Array.prototype.splice),hd=ki(String.prototype.toLowerCase),z0=ki(String.prototype.toString),P0=ki(String.prototype.match),ou=ki(String.prototype.replace),k7=ki(String.prototype.indexOf),E7=ki(String.prototype.trim),Lr=ki(Object.prototype.hasOwnProperty),yi=ki(RegExp.prototype.test),cu=T7(TypeError);function ki(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return Iy(e,t,i)}}function T7(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return $y(e,n)}}function ft(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:hd;HC&&HC(e,null);let i=t.length;for(;i--;){let r=t[i];if(typeof r=="string"){const l=n(r);l!==r&&(_7(t)||(t[i]=l),r=l)}e[r]=!0}return e}function A7(e){for(let t=0;t<e.length;t++)Lr(e,t)||(e[t]=null);return e}function Vr(e){const t=By(null);for(const[n,i]of QT(e))Lr(e,n)&&(Array.isArray(i)?t[n]=A7(i):i&&typeof i=="object"&&i.constructor===Object?t[n]=Vr(i):t[n]=i);return t}function uu(e,t){for(;e!==null;){const i=w7(e,t);if(i){if(i.get)return ki(i.get);if(typeof i.value=="function")return ki(i.value)}e=v7(e)}function n(){return null}return n}const qC=Ci(["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"]),H0=Ci(["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"]),U0=Ci(["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"]),M7=Ci(["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"]),q0=Ci(["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"]),N7=Ci(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),jC=Ci(["#text"]),GC=Ci(["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"]),j0=Ci(["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"]),WC=Ci(["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"]),Yf=Ci(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),O7=Sr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),L7=Sr(/<%[\w\W]*|[\w\W]*%>/gm),R7=Sr(/\$\{[\w\W]*/gm),D7=Sr(/^data-[\-\w.\u00B7-\uFFFF]+$/),B7=Sr(/^aria-[\-\w]+$/),JT=Sr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),I7=Sr(/^(?:\w+script|data):/i),$7=Sr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eA=Sr(/^html$/i),F7=Sr(/^[a-z][.\w]*(-[.\w]+)+$/i);var YC=Object.freeze({__proto__:null,ARIA_ATTR:B7,ATTR_WHITESPACE:$7,CUSTOM_ELEMENT:F7,DATA_ATTR:D7,DOCTYPE_NAME:eA,ERB_EXPR:L7,IS_ALLOWED_URI:JT,IS_SCRIPT_OR_DATA:I7,MUSTACHE_EXPR:O7,TMPLIT_EXPR:R7});const hu={element:1,text:3,progressingInstruction:7,comment:8,document:9},z7=function(){return typeof window>"u"?null:window},P7=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(i=n.getAttribute(r));const l="dompurify"+(i?"#"+i:"");try{return t.createPolicy(l,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+l+" could not be created."),null}},VC=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function tA(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:z7();const t=Re=>tA(Re);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==hu.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const i=n,r=i.currentScript,{DocumentFragment:l,HTMLTemplateElement:s,Node:c,Element:u,NodeFilter:h,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:y,trustedTypes:m}=e,x=u.prototype,_=uu(x,"cloneNode"),w=uu(x,"remove"),S=uu(x,"nextSibling"),C=uu(x,"childNodes"),E=uu(x,"parentNode");if(typeof s=="function"){const Re=n.createElement("template");Re.content&&Re.content.ownerDocument&&(n=Re.content.ownerDocument)}let N,M="";const{implementation:A,createNodeIterator:O,createDocumentFragment:q,getElementsByTagName:j}=n,{importNode:F}=i;let H=VC();t.isSupported=typeof QT=="function"&&typeof E=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Z,ERB_EXPR:V,TMPLIT_EXPR:P,DATA_ATTR:z,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:U,ATTR_WHITESPACE:G,CUSTOM_ELEMENT:le}=YC;let{IS_ALLOWED_URI:B}=YC,I=null;const Q=ft({},[...qC,...H0,...U0,...q0,...jC]);let D=null;const he=ft({},[...GC,...j0,...WC,...Yf]);let xe=Object.seal(By(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}})),de=null,we=null;const Le=Object.seal(By(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ze=!0,Qe=!0,it=!1,gn=!0,mn=!1,hn=!0,Hn=!1,ht=!1,pi=!1,On=!1,gi=!1,Ei=!1,Hr=!0,qa=!1;const ja="user-content-";let Gt=!0,cr=!1,ae={},me=null;const qe=ft({},["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 at=null;const vt=ft({},["audio","video","img","source","image","track"]);let Ln=null;const Ti=ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fn="http://www.w3.org/1998/Math/MathML",Wt="http://www.w3.org/2000/svg",Zt="http://www.w3.org/1999/xhtml";let yt=Zt,Ai=!1,Rn=null;const Ts=ft({},[fn,Wt,Zt],z0);let ur=ft({},["mi","mo","mn","ms","mtext"]),Er=ft({},["annotation-xml"]);const oa=ft({},["title","style","font","a","script"]);let vn=null;const Y=["application/xhtml+xml","text/html"],oe="text/html";let ye=null,We=null;const Yt=n.createElement("form"),Bt=function(X){return X instanceof RegExp||X instanceof Function},Ae=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(We&&We===X)){if((!X||typeof X!="object")&&(X={}),X=Vr(X),vn=Y.indexOf(X.PARSER_MEDIA_TYPE)===-1?oe:X.PARSER_MEDIA_TYPE,ye=vn==="application/xhtml+xml"?z0:hd,I=Lr(X,"ALLOWED_TAGS")?ft({},X.ALLOWED_TAGS,ye):Q,D=Lr(X,"ALLOWED_ATTR")?ft({},X.ALLOWED_ATTR,ye):he,Rn=Lr(X,"ALLOWED_NAMESPACES")?ft({},X.ALLOWED_NAMESPACES,z0):Ts,Ln=Lr(X,"ADD_URI_SAFE_ATTR")?ft(Vr(Ti),X.ADD_URI_SAFE_ATTR,ye):Ti,at=Lr(X,"ADD_DATA_URI_TAGS")?ft(Vr(vt),X.ADD_DATA_URI_TAGS,ye):vt,me=Lr(X,"FORBID_CONTENTS")?ft({},X.FORBID_CONTENTS,ye):qe,de=Lr(X,"FORBID_TAGS")?ft({},X.FORBID_TAGS,ye):Vr({}),we=Lr(X,"FORBID_ATTR")?ft({},X.FORBID_ATTR,ye):Vr({}),ae=Lr(X,"USE_PROFILES")?X.USE_PROFILES:!1,ze=X.ALLOW_ARIA_ATTR!==!1,Qe=X.ALLOW_DATA_ATTR!==!1,it=X.ALLOW_UNKNOWN_PROTOCOLS||!1,gn=X.ALLOW_SELF_CLOSE_IN_ATTR!==!1,mn=X.SAFE_FOR_TEMPLATES||!1,hn=X.SAFE_FOR_XML!==!1,Hn=X.WHOLE_DOCUMENT||!1,On=X.RETURN_DOM||!1,gi=X.RETURN_DOM_FRAGMENT||!1,Ei=X.RETURN_TRUSTED_TYPE||!1,pi=X.FORCE_BODY||!1,Hr=X.SANITIZE_DOM!==!1,qa=X.SANITIZE_NAMED_PROPS||!1,Gt=X.KEEP_CONTENT!==!1,cr=X.IN_PLACE||!1,B=X.ALLOWED_URI_REGEXP||JT,yt=X.NAMESPACE||Zt,ur=X.MATHML_TEXT_INTEGRATION_POINTS||ur,Er=X.HTML_INTEGRATION_POINTS||Er,xe=X.CUSTOM_ELEMENT_HANDLING||{},X.CUSTOM_ELEMENT_HANDLING&&Bt(X.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xe.tagNameCheck=X.CUSTOM_ELEMENT_HANDLING.tagNameCheck),X.CUSTOM_ELEMENT_HANDLING&&Bt(X.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xe.attributeNameCheck=X.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),X.CUSTOM_ELEMENT_HANDLING&&typeof X.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(xe.allowCustomizedBuiltInElements=X.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),mn&&(Qe=!1),gi&&(On=!0),ae&&(I=ft({},jC),D=[],ae.html===!0&&(ft(I,qC),ft(D,GC)),ae.svg===!0&&(ft(I,H0),ft(D,j0),ft(D,Yf)),ae.svgFilters===!0&&(ft(I,U0),ft(D,j0),ft(D,Yf)),ae.mathMl===!0&&(ft(I,q0),ft(D,WC),ft(D,Yf))),X.ADD_TAGS&&(typeof X.ADD_TAGS=="function"?Le.tagCheck=X.ADD_TAGS:(I===Q&&(I=Vr(I)),ft(I,X.ADD_TAGS,ye))),X.ADD_ATTR&&(typeof X.ADD_ATTR=="function"?Le.attributeCheck=X.ADD_ATTR:(D===he&&(D=Vr(D)),ft(D,X.ADD_ATTR,ye))),X.ADD_URI_SAFE_ATTR&&ft(Ln,X.ADD_URI_SAFE_ATTR,ye),X.FORBID_CONTENTS&&(me===qe&&(me=Vr(me)),ft(me,X.FORBID_CONTENTS,ye)),X.ADD_FORBID_CONTENTS&&(me===qe&&(me=Vr(me)),ft(me,X.ADD_FORBID_CONTENTS,ye)),Gt&&(I["#text"]=!0),Hn&&ft(I,["html","head","body"]),I.table&&(ft(I,["tbody"]),delete de.tbody),X.TRUSTED_TYPES_POLICY){if(typeof X.TRUSTED_TYPES_POLICY.createHTML!="function")throw cu('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof X.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw cu('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=X.TRUSTED_TYPES_POLICY,M=N.createHTML("")}else N===void 0&&(N=P7(m,r)),N!==null&&typeof M=="string"&&(M=N.createHTML(""));Ci&&Ci(X),We=X}},ke=ft({},[...H0,...U0,...M7]),Ve=ft({},[...q0,...N7]),cn=function(X){let pe=E(X);(!pe||!pe.tagName)&&(pe={namespaceURI:yt,tagName:"template"});const Ee=hd(X.tagName),Et=hd(pe.tagName);return Rn[X.namespaceURI]?X.namespaceURI===Wt?pe.namespaceURI===Zt?Ee==="svg":pe.namespaceURI===fn?Ee==="svg"&&(Et==="annotation-xml"||ur[Et]):!!ke[Ee]:X.namespaceURI===fn?pe.namespaceURI===Zt?Ee==="math":pe.namespaceURI===Wt?Ee==="math"&&Er[Et]:!!Ve[Ee]:X.namespaceURI===Zt?pe.namespaceURI===Wt&&!Er[Et]||pe.namespaceURI===fn&&!ur[Et]?!1:!Ve[Ee]&&(oa[Ee]||!ke[Ee]):!!(vn==="application/xhtml+xml"&&Rn[X.namespaceURI]):!1},wt=function(X){su(t.removed,{element:X});try{E(X).removeChild(X)}catch{w(X)}},qn=function(X,pe){try{su(t.removed,{attribute:pe.getAttributeNode(X),from:pe})}catch{su(t.removed,{attribute:null,from:pe})}if(pe.removeAttribute(X),X==="is")if(On||gi)try{wt(pe)}catch{}else try{pe.setAttribute(X,"")}catch{}},ca=function(X){let pe=null,Ee=null;if(pi)X="<remove></remove>"+X;else{const st=P0(X,/^[\r\n\t ]+/);Ee=st&&st[0]}vn==="application/xhtml+xml"&&yt===Zt&&(X='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+X+"</body></html>");const Et=N?N.createHTML(X):X;if(yt===Zt)try{pe=new y().parseFromString(Et,vn)}catch{}if(!pe||!pe.documentElement){pe=A.createDocument(yt,"template",null);try{pe.documentElement.innerHTML=Ai?M:Et}catch{}}const tn=pe.body||pe.documentElement;return X&&Ee&&tn.insertBefore(n.createTextNode(Ee),tn.childNodes[0]||null),yt===Zt?j.call(pe,Hn?"html":"body")[0]:Hn?pe.documentElement:tn},ua=function(X){return O.call(X.ownerDocument||X,X,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Mi=function(X){return X instanceof p&&(typeof X.nodeName!="string"||typeof X.textContent!="string"||typeof X.removeChild!="function"||!(X.attributes instanceof d)||typeof X.removeAttribute!="function"||typeof X.setAttribute!="function"||typeof X.namespaceURI!="string"||typeof X.insertBefore!="function"||typeof X.hasChildNodes!="function")},ln=function(X){return typeof c=="function"&&X instanceof c};function Qt(Re,X,pe){Wf(Re,Ee=>{Ee.call(t,X,pe,We)})}const Tr=function(X){let pe=null;if(Qt(H.beforeSanitizeElements,X,null),Mi(X))return wt(X),!0;const Ee=ye(X.nodeName);if(Qt(H.uponSanitizeElement,X,{tagName:Ee,allowedTags:I}),hn&&X.hasChildNodes()&&!ln(X.firstElementChild)&&yi(/<[/\w!]/g,X.innerHTML)&&yi(/<[/\w!]/g,X.textContent)||X.nodeType===hu.progressingInstruction||hn&&X.nodeType===hu.comment&&yi(/<[/\w]/g,X.data))return wt(X),!0;if(!(Le.tagCheck instanceof Function&&Le.tagCheck(Ee))&&(!I[Ee]||de[Ee])){if(!de[Ee]&&Bl(Ee)&&(xe.tagNameCheck instanceof RegExp&&yi(xe.tagNameCheck,Ee)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(Ee)))return!1;if(Gt&&!me[Ee]){const Et=E(X)||X.parentNode,tn=C(X)||X.childNodes;if(tn&&Et){const st=tn.length;for(let Dn=st-1;Dn>=0;--Dn){const jn=_(tn[Dn],!0);jn.__removalCount=(X.__removalCount||0)+1,Et.insertBefore(jn,S(X))}}}return wt(X),!0}return X instanceof u&&!cn(X)||(Ee==="noscript"||Ee==="noembed"||Ee==="noframes")&&yi(/<\/no(script|embed|frames)/i,X.innerHTML)?(wt(X),!0):(mn&&X.nodeType===hu.text&&(pe=X.textContent,Wf([Z,V,P],Et=>{pe=ou(pe,Et," ")}),X.textContent!==pe&&(su(t.removed,{element:X.cloneNode()}),X.textContent=pe)),Qt(H.afterSanitizeElements,X,null),!1)},Ga=function(X,pe,Ee){if(Hr&&(pe==="id"||pe==="name")&&(Ee in n||Ee in Yt))return!1;if(!(Qe&&!we[pe]&&yi(z,pe))){if(!(ze&&yi(L,pe))){if(!(Le.attributeCheck instanceof Function&&Le.attributeCheck(pe,X))){if(!D[pe]||we[pe]){if(!(Bl(X)&&(xe.tagNameCheck instanceof RegExp&&yi(xe.tagNameCheck,X)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(X))&&(xe.attributeNameCheck instanceof RegExp&&yi(xe.attributeNameCheck,pe)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(pe,X))||pe==="is"&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&yi(xe.tagNameCheck,Ee)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(Ee))))return!1}else if(!Ln[pe]){if(!yi(B,ou(Ee,G,""))){if(!((pe==="src"||pe==="xlink:href"||pe==="href")&&X!=="script"&&k7(Ee,"data:")===0&&at[X])){if(!(it&&!yi(U,ou(Ee,G,"")))){if(Ee)return!1}}}}}}}return!0},Bl=function(X){return X!=="annotation-xml"&&P0(X,le)},ha=function(X){Qt(H.beforeSanitizeAttributes,X,null);const{attributes:pe}=X;if(!pe||Mi(X))return;const Ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:D,forceKeepAttr:void 0};let Et=pe.length;for(;Et--;){const tn=pe[Et],{name:st,namespaceURI:Dn,value:jn}=tn,ei=ye(st),be=jn;let Ce=st==="value"?be:E7(be);if(Ee.attrName=ei,Ee.attrValue=Ce,Ee.keepAttr=!0,Ee.forceKeepAttr=void 0,Qt(H.uponSanitizeAttribute,X,Ee),Ce=Ee.attrValue,qa&&(ei==="id"||ei==="name")&&(qn(st,X),Ce=ja+Ce),hn&&yi(/((--!?|])>)|<\/(style|title|textarea)/i,Ce)){qn(st,X);continue}if(ei==="attributename"&&P0(Ce,"href")){qn(st,X);continue}if(Ee.forceKeepAttr)continue;if(!Ee.keepAttr){qn(st,X);continue}if(!gn&&yi(/\/>/i,Ce)){qn(st,X);continue}mn&&Wf([Z,V,P],Tt=>{Ce=ou(Ce,Tt," ")});const ot=ye(X.nodeName);if(!Ga(ot,ei,Ce)){qn(st,X);continue}if(N&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!Dn)switch(m.getAttributeType(ot,ei)){case"TrustedHTML":{Ce=N.createHTML(Ce);break}case"TrustedScriptURL":{Ce=N.createScriptURL(Ce);break}}if(Ce!==be)try{Dn?X.setAttributeNS(Dn,st,Ce):X.setAttribute(st,Ce),Mi(X)?wt(X):UC(t.removed)}catch{qn(st,X)}}Qt(H.afterSanitizeAttributes,X,null)},As=function Re(X){let pe=null;const Ee=ua(X);for(Qt(H.beforeSanitizeShadowDOM,X,null);pe=Ee.nextNode();)Qt(H.uponSanitizeShadowNode,pe,null),Tr(pe),ha(pe),pe.content instanceof l&&Re(pe.content);Qt(H.afterSanitizeShadowDOM,X,null)};return t.sanitize=function(Re){let X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},pe=null,Ee=null,Et=null,tn=null;if(Ai=!Re,Ai&&(Re="<!-->"),typeof Re!="string"&&!ln(Re))if(typeof Re.toString=="function"){if(Re=Re.toString(),typeof Re!="string")throw cu("dirty is not a string, aborting")}else throw cu("toString is not a function");if(!t.isSupported)return Re;if(ht||Ae(X),t.removed=[],typeof Re=="string"&&(cr=!1),cr){if(Re.nodeName){const jn=ye(Re.nodeName);if(!I[jn]||de[jn])throw cu("root node is forbidden and cannot be sanitized in-place")}}else if(Re instanceof c)pe=ca("<!---->"),Ee=pe.ownerDocument.importNode(Re,!0),Ee.nodeType===hu.element&&Ee.nodeName==="BODY"||Ee.nodeName==="HTML"?pe=Ee:pe.appendChild(Ee);else{if(!On&&!mn&&!Hn&&Re.indexOf("<")===-1)return N&&Ei?N.createHTML(Re):Re;if(pe=ca(Re),!pe)return On?null:Ei?M:""}pe&&pi&&wt(pe.firstChild);const st=ua(cr?Re:pe);for(;Et=st.nextNode();)Tr(Et),ha(Et),Et.content instanceof l&&As(Et.content);if(cr)return Re;if(On){if(gi)for(tn=q.call(pe.ownerDocument);pe.firstChild;)tn.appendChild(pe.firstChild);else tn=pe;return(D.shadowroot||D.shadowrootmode)&&(tn=F.call(i,tn,!0)),tn}let Dn=Hn?pe.outerHTML:pe.innerHTML;return Hn&&I["!doctype"]&&pe.ownerDocument&&pe.ownerDocument.doctype&&pe.ownerDocument.doctype.name&&yi(eA,pe.ownerDocument.doctype.name)&&(Dn="<!DOCTYPE "+pe.ownerDocument.doctype.name+`>
|
|
159
|
+
`+Dn),mn&&Wf([Z,V,P],jn=>{Dn=ou(Dn,jn," ")}),N&&Ei?N.createHTML(Dn):Dn},t.setConfig=function(){let Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ae(Re),ht=!0},t.clearConfig=function(){We=null,ht=!1},t.isValidAttribute=function(Re,X,pe){We||Ae({});const Ee=ye(Re),Et=ye(X);return Ga(Ee,Et,pe)},t.addHook=function(Re,X){typeof X=="function"&&su(H[Re],X)},t.removeHook=function(Re,X){if(X!==void 0){const pe=S7(H[Re],X);return pe===-1?void 0:C7(H[Re],pe,1)[0]}return UC(H[Re])},t.removeHooks=function(Re){H[Re]=[]},t.removeAllHooks=function(){H=VC()},t}var Ho=tA(),nA=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Bu=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,H7=/\s*%%.*\n/gm,No,iA=(No=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},k(No,"UnknownDiagramError"),No),ds={},dx=k(function(e,t){e=e.replace(nA,"").replace(Bu,"").replace(H7,`
|
|
160
|
+
`);for(const[n,{detector:i}]of Object.entries(ds))if(i(e,t))return n;throw new iA(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),Fy=k((...e)=>{for(const{id:t,detector:n,loader:i}of e)rA(t,n,i)},"registerLazyLoadedDiagrams"),rA=k((e,t,n)=>{ds[e]&&fe.warn(`Detector with key ${e} already exists. Overwriting.`),ds[e]={detector:t,loader:n},fe.debug(`Detector with key ${e} added${n?" with loader":""}`)},"addDetector"),U7=k(e=>ds[e].loader,"getDiagramLoader"),zy=k((e,t,{depth:n=2,clobber:i=!1}={})=>{const r={depth:n,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(l=>zy(e,l,r)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(l=>{e.includes(l)||e.push(l)}),e):e===void 0||n<=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(l=>{typeof t[l]=="object"&&(e[l]===void 0||typeof e[l]=="object")?(e[l]===void 0&&(e[l]=Array.isArray(t[l])?[]:{}),e[l]=zy(e[l],t[l],{depth:n-1,clobber:i})):(i||typeof e[l]!="object"&&typeof t[l]!="object")&&(e[l]=t[l])}),e)},"assignWithDepth"),Fn=zy,Rp="#ffffff",Dp="#f2f2f2",vi=k((e,t)=>t?ee(e,{s:-40,l:10}):ee(e,{s:-40,l:-10}),"mkBorder"),Oo,q7=(Oo=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var n,i,r,l,s,c,u,h,d,p,y,m,x,_,w,S,C,E,N,M,A;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||ee(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||ee(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||vi(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||vi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||vi(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||vi(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Se(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Se(this.tertiaryColor),this.lineColor=this.lineColor||Se(this.background),this.arrowheadColor=this.arrowheadColor||Se(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?Ge(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||Ge(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Se(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||Ne(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||Ge(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Ge(this.mainBkg,10)):(this.rowOdd=this.rowOdd||Ne(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Ne(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||ee(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ee(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ee(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ee(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ee(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ee(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||ee(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ee(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ee(this.primaryColor,{h:330}),this.darkMode)for(let O=0;O<this.THEME_COLOR_LIMIT;O++)this["cScale"+O]=Ge(this["cScale"+O],75);else for(let O=0;O<this.THEME_COLOR_LIMIT;O++)this["cScale"+O]=Ge(this["cScale"+O],25);for(let O=0;O<this.THEME_COLOR_LIMIT;O++)this["cScaleInv"+O]=this["cScaleInv"+O]||Se(this["cScale"+O]);for(let O=0;O<this.THEME_COLOR_LIMIT;O++)this.darkMode?this["cScalePeer"+O]=this["cScalePeer"+O]||Ne(this["cScale"+O],10):this["cScalePeer"+O]=this["cScalePeer"+O]||Ge(this["cScale"+O],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let O=0;O<this.THEME_COLOR_LIMIT;O++)this["cScaleLabel"+O]=this["cScaleLabel"+O]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let O=0;O<5;O++)this["surface"+O]=this["surface"+O]||ee(this.mainBkg,{h:180,s:-15,l:t*(5+O*3)}),this["surfacePeer"+O]=this["surfacePeer"+O]||ee(this.mainBkg,{h:180,s:-15,l:t*(8+O*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||ee(this.primaryColor,{h:64}),this.fillType3=this.fillType3||ee(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||ee(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||ee(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||ee(this.primaryColor,{h:128}),this.fillType7=this.fillType7||ee(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||ee(this.primaryColor,{l:-10}),this.pie5=this.pie5||ee(this.secondaryColor,{l:-10}),this.pie6=this.pie6||ee(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||ee(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||ee(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||ee(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||ee(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||ee(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||ee(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:((n=this.radar)==null?void 0:n.axisColor)||this.lineColor,axisStrokeWidth:((i=this.radar)==null?void 0:i.axisStrokeWidth)||2,axisLabelFontSize:((r=this.radar)==null?void 0:r.axisLabelFontSize)||12,curveOpacity:((l=this.radar)==null?void 0:l.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((c=this.radar)==null?void 0:c.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:((p=this.radar)==null?void 0:p.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||ee(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||ee(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||ee(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||ee(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||ee(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||ee(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fh(this.quadrant1Fill)?Ne(this.quadrant1Fill):Ge(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:((y=this.xyChart)==null?void 0:y.backgroundColor)||this.background,titleColor:((m=this.xyChart)==null?void 0:m.titleColor)||this.primaryTextColor,xAxisTitleColor:((x=this.xyChart)==null?void 0:x.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((_=this.xyChart)==null?void 0:_.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((w=this.xyChart)==null?void 0:w.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((S=this.xyChart)==null?void 0:S.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((C=this.xyChart)==null?void 0:C.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((E=this.xyChart)==null?void 0:E.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((N=this.xyChart)==null?void 0:N.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((M=this.xyChart)==null?void 0:M.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((A=this.xyChart)==null?void 0:A.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?Ge(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||ee(this.primaryColor,{h:-30}),this.git4=this.git4||ee(this.primaryColor,{h:-60}),this.git5=this.git5||ee(this.primaryColor,{h:-90}),this.git6=this.git6||ee(this.primaryColor,{h:60}),this.git7=this.git7||ee(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ne(this.git0,25),this.git1=Ne(this.git1,25),this.git2=Ne(this.git2,25),this.git3=Ne(this.git3,25),this.git4=Ne(this.git4,25),this.git5=Ne(this.git5,25),this.git6=Ne(this.git6,25),this.git7=Ne(this.git7,25)):(this.git0=Ge(this.git0,25),this.git1=Ge(this.git1,25),this.git2=Ge(this.git2,25),this.git3=Ge(this.git3,25),this.git4=Ge(this.git4,25),this.git5=Ge(this.git5,25),this.git6=Ge(this.git6,25),this.git7=Ge(this.git7,25)),this.gitInv0=this.gitInv0||Se(this.git0),this.gitInv1=this.gitInv1||Se(this.git1),this.gitInv2=this.gitInv2||Se(this.git2),this.gitInv3=this.gitInv3||Se(this.git3),this.gitInv4=this.gitInv4||Se(this.git4),this.gitInv5=this.gitInv5||Se(this.git5),this.gitInv6=this.gitInv6||Se(this.git6),this.gitInv7=this.gitInv7||Se(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||Rp,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dp}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(i=>{this[i]=t[i]}),this.updateColors(),n.forEach(i=>{this[i]=t[i]})}},k(Oo,"Theme"),Oo),j7=k(e=>{const t=new q7;return t.calculate(e),t},"getThemeVariables"),Lo,G7=(Lo=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=Ne(this.primaryColor,16),this.tertiaryColor=ee(this.primaryColor,{h:-160}),this.primaryBorderColor=Se(this.background),this.secondaryBorderColor=vi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vi(this.tertiaryColor,this.darkMode),this.primaryTextColor=Se(this.primaryColor),this.secondaryTextColor=Se(this.secondaryColor),this.tertiaryTextColor=Se(this.tertiaryColor),this.lineColor=Se(this.background),this.textColor=Se(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=Ne(Se("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Du(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=Ge("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=Ge(this.sectionBkgColor,10),this.taskBorderColor=Du(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Du(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||Ne(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||Ge(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var t,n,i,r,l,s,c,u,h,d,p,y,m,x,_,w,S,C,E,N,M;this.secondBkg=Ne(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=Ne(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=Ne(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=ee(this.primaryColor,{h:64}),this.fillType3=ee(this.secondaryColor,{h:64}),this.fillType4=ee(this.primaryColor,{h:-64}),this.fillType5=ee(this.secondaryColor,{h:-64}),this.fillType6=ee(this.primaryColor,{h:128}),this.fillType7=ee(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||ee(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ee(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ee(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ee(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ee(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ee(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ee(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ee(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ee(this.primaryColor,{h:330});for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||Se(this["cScale"+A]);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScalePeer"+A]=this["cScalePeer"+A]||Ne(this["cScale"+A],10);for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||ee(this.mainBkg,{h:30,s:-30,l:-(-10+A*4)}),this["surfacePeer"+A]=this["surfacePeer"+A]||ee(this.mainBkg,{h:30,s:-30,l:-(-7+A*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.scaleLabelColor;for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["pie"+A]=this["cScale"+A];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||ee(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||ee(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||ee(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||ee(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||ee(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||ee(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fh(this.quadrant1Fill)?Ne(this.quadrant1Fill):Ge(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:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((r=this.xyChart)==null?void 0:r.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((l=this.xyChart)==null?void 0:l.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((c=this.xyChart)==null?void 0:c.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.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:((y=this.radar)==null?void 0:y.axisColor)||this.lineColor,axisStrokeWidth:((m=this.radar)==null?void 0:m.axisStrokeWidth)||2,axisLabelFontSize:((x=this.radar)==null?void 0:x.axisLabelFontSize)||12,curveOpacity:((_=this.radar)==null?void 0:_.curveOpacity)||.5,curveStrokeWidth:((w=this.radar)==null?void 0:w.curveStrokeWidth)||2,graticuleColor:((S=this.radar)==null?void 0:S.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((C=this.radar)==null?void 0:C.graticuleStrokeWidth)||1,graticuleOpacity:((E=this.radar)==null?void 0:E.graticuleOpacity)||.3,legendBoxSize:((N=this.radar)==null?void 0:N.legendBoxSize)||12,legendFontSize:((M=this.radar)==null?void 0:M.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?Ge(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=Ne(this.secondaryColor,20),this.git1=Ne(this.pie2||this.secondaryColor,20),this.git2=Ne(this.pie3||this.tertiaryColor,20),this.git3=Ne(this.pie4||ee(this.primaryColor,{h:-30}),20),this.git4=Ne(this.pie5||ee(this.primaryColor,{h:-60}),20),this.git5=Ne(this.pie6||ee(this.primaryColor,{h:-90}),10),this.git6=Ne(this.pie7||ee(this.primaryColor,{h:60}),10),this.git7=Ne(this.pie8||ee(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Se(this.git0),this.gitInv1=this.gitInv1||Se(this.git1),this.gitInv2=this.gitInv2||Se(this.git2),this.gitInv3=this.gitInv3||Se(this.git3),this.gitInv4=this.gitInv4||Se(this.git4),this.gitInv5=this.gitInv5||Se(this.git5),this.gitInv6=this.gitInv6||Se(this.git6),this.gitInv7=this.gitInv7||Se(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Se(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Se(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||Ne(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Ne(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(i=>{this[i]=t[i]}),this.updateColors(),n.forEach(i=>{this[i]=t[i]})}},k(Lo,"Theme"),Lo),W7=k(e=>{const t=new G7;return t.calculate(e),t},"getThemeVariables"),Ro,Y7=(Ro=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=ee(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=ee(this.primaryColor,{h:-160}),this.primaryBorderColor=vi(this.primaryColor,this.darkMode),this.secondaryBorderColor=vi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vi(this.tertiaryColor,this.darkMode),this.primaryTextColor=Se(this.primaryColor),this.secondaryTextColor=Se(this.secondaryColor),this.tertiaryTextColor=Se(this.tertiaryColor),this.lineColor=Se(this.background),this.textColor=Se(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Du(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){var t,n,i,r,l,s,c,u,h,d,p,y,m,x,_,w,S,C,E,N,M;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||ee(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ee(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ee(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ee(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ee(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ee(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ee(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ee(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ee(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Ge(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Ge(this.tertiaryColor,40);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScale"+A]=Ge(this["cScale"+A],10),this["cScalePeer"+A]=this["cScalePeer"+A]||Ge(this["cScale"+A],25);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||ee(this["cScale"+A],{h:180});for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||ee(this.mainBkg,{h:30,l:-(5+A*5)}),this["surfacePeer"+A]=this["surfacePeer"+A]||ee(this.mainBkg,{h:30,l:-(7+A*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||Se(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Se(this.labelTextColor);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||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=Ne(this.border1,23),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||Ne(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||Ne(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=ee(this.primaryColor,{h:64}),this.fillType3=ee(this.secondaryColor,{h:64}),this.fillType4=ee(this.primaryColor,{h:-64}),this.fillType5=ee(this.secondaryColor,{h:-64}),this.fillType6=ee(this.primaryColor,{h:128}),this.fillType7=ee(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||ee(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||ee(this.primaryColor,{l:-10}),this.pie5=this.pie5||ee(this.secondaryColor,{l:-30}),this.pie6=this.pie6||ee(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||ee(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||ee(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||ee(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||ee(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||ee(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||ee(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||ee(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||ee(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||ee(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||ee(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||ee(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||ee(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fh(this.quadrant1Fill)?Ne(this.quadrant1Fill):Ge(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:((n=this.radar)==null?void 0:n.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((r=this.radar)==null?void 0:r.curveOpacity)||.5,curveStrokeWidth:((l=this.radar)==null?void 0:l.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((c=this.radar)==null?void 0:c.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:((p=this.xyChart)==null?void 0:p.backgroundColor)||this.background,titleColor:((y=this.xyChart)==null?void 0:y.titleColor)||this.primaryTextColor,xAxisTitleColor:((m=this.xyChart)==null?void 0:m.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((x=this.xyChart)==null?void 0:x.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((_=this.xyChart)==null?void 0:_.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((w=this.xyChart)==null?void 0:w.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((S=this.xyChart)==null?void 0:S.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((C=this.xyChart)==null?void 0:C.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((E=this.xyChart)==null?void 0:E.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((N=this.xyChart)==null?void 0:N.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((M=this.xyChart)==null?void 0:M.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||ee(this.primaryColor,{h:-30}),this.git4=this.git4||ee(this.primaryColor,{h:-60}),this.git5=this.git5||ee(this.primaryColor,{h:-90}),this.git6=this.git6||ee(this.primaryColor,{h:60}),this.git7=this.git7||ee(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ne(this.git0,25),this.git1=Ne(this.git1,25),this.git2=Ne(this.git2,25),this.git3=Ne(this.git3,25),this.git4=Ne(this.git4,25),this.git5=Ne(this.git5,25),this.git6=Ne(this.git6,25),this.git7=Ne(this.git7,25)):(this.git0=Ge(this.git0,25),this.git1=Ge(this.git1,25),this.git2=Ge(this.git2,25),this.git3=Ge(this.git3,25),this.git4=Ge(this.git4,25),this.git5=Ge(this.git5,25),this.git6=Ge(this.git6,25),this.git7=Ge(this.git7,25)),this.gitInv0=this.gitInv0||Ge(Se(this.git0),25),this.gitInv1=this.gitInv1||Se(this.git1),this.gitInv2=this.gitInv2||Se(this.git2),this.gitInv3=this.gitInv3||Se(this.git3),this.gitInv4=this.gitInv4||Se(this.git4),this.gitInv5=this.gitInv5||Se(this.git5),this.gitInv6=this.gitInv6||Se(this.git6),this.gitInv7=this.gitInv7||Se(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Se(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Se(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||Rp,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dp}calculate(t){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(i=>{this[i]=t[i]}),this.updateColors(),n.forEach(i=>{this[i]=t[i]})}},k(Ro,"Theme"),Ro),V7=k(e=>{const t=new Y7;return t.calculate(e),t},"getThemeVariables"),Do,X7=(Do=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=Ne("#cde498",10),this.primaryBorderColor=vi(this.primaryColor,this.darkMode),this.secondaryBorderColor=vi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vi(this.tertiaryColor,this.darkMode),this.primaryTextColor=Se(this.primaryColor),this.secondaryTextColor=Se(this.secondaryColor),this.tertiaryTextColor=Se(this.primaryColor),this.lineColor=Se(this.background),this.textColor=Se(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,n,i,r,l,s,c,u,h,d,p,y,m,x,_,w,S,C,E,N,M;this.actorBorder=Ge(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||ee(this.primaryColor,{h:30}),this.cScale4=this.cScale4||ee(this.primaryColor,{h:60}),this.cScale5=this.cScale5||ee(this.primaryColor,{h:90}),this.cScale6=this.cScale6||ee(this.primaryColor,{h:120}),this.cScale7=this.cScale7||ee(this.primaryColor,{h:150}),this.cScale8=this.cScale8||ee(this.primaryColor,{h:210}),this.cScale9=this.cScale9||ee(this.primaryColor,{h:270}),this.cScale10=this.cScale10||ee(this.primaryColor,{h:300}),this.cScale11=this.cScale11||ee(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||Ge(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||Ge(this.tertiaryColor,40);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScale"+A]=Ge(this["cScale"+A],10),this["cScalePeer"+A]=this["cScalePeer"+A]||Ge(this["cScale"+A],25);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||ee(this["cScale"+A],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.scaleLabelColor;for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||ee(this.mainBkg,{h:30,s:-30,l:-(5+A*5)}),this["surfacePeer"+A]=this["surfacePeer"+A]||ee(this.mainBkg,{h:30,s:-30,l:-(8+A*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||Ne(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||Ne(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=ee(this.primaryColor,{h:64}),this.fillType3=ee(this.secondaryColor,{h:64}),this.fillType4=ee(this.primaryColor,{h:-64}),this.fillType5=ee(this.secondaryColor,{h:-64}),this.fillType6=ee(this.primaryColor,{h:128}),this.fillType7=ee(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||ee(this.primaryColor,{l:-30}),this.pie5=this.pie5||ee(this.secondaryColor,{l:-30}),this.pie6=this.pie6||ee(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||ee(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||ee(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||ee(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||ee(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||ee(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||ee(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||ee(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||ee(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||ee(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||ee(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||ee(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||ee(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fh(this.quadrant1Fill)?Ne(this.quadrant1Fill):Ge(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:((n=this.radar)==null?void 0:n.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((r=this.radar)==null?void 0:r.curveOpacity)||.5,curveStrokeWidth:((l=this.radar)==null?void 0:l.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((c=this.radar)==null?void 0:c.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:((p=this.xyChart)==null?void 0:p.backgroundColor)||this.background,titleColor:((y=this.xyChart)==null?void 0:y.titleColor)||this.primaryTextColor,xAxisTitleColor:((m=this.xyChart)==null?void 0:m.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((x=this.xyChart)==null?void 0:x.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((_=this.xyChart)==null?void 0:_.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((w=this.xyChart)==null?void 0:w.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((S=this.xyChart)==null?void 0:S.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((C=this.xyChart)==null?void 0:C.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((E=this.xyChart)==null?void 0:E.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((N=this.xyChart)==null?void 0:N.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((M=this.xyChart)==null?void 0:M.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||ee(this.primaryColor,{h:-30}),this.git4=this.git4||ee(this.primaryColor,{h:-60}),this.git5=this.git5||ee(this.primaryColor,{h:-90}),this.git6=this.git6||ee(this.primaryColor,{h:60}),this.git7=this.git7||ee(this.primaryColor,{h:120}),this.darkMode?(this.git0=Ne(this.git0,25),this.git1=Ne(this.git1,25),this.git2=Ne(this.git2,25),this.git3=Ne(this.git3,25),this.git4=Ne(this.git4,25),this.git5=Ne(this.git5,25),this.git6=Ne(this.git6,25),this.git7=Ne(this.git7,25)):(this.git0=Ge(this.git0,25),this.git1=Ge(this.git1,25),this.git2=Ge(this.git2,25),this.git3=Ge(this.git3,25),this.git4=Ge(this.git4,25),this.git5=Ge(this.git5,25),this.git6=Ge(this.git6,25),this.git7=Ge(this.git7,25)),this.gitInv0=this.gitInv0||Se(this.git0),this.gitInv1=this.gitInv1||Se(this.git1),this.gitInv2=this.gitInv2||Se(this.git2),this.gitInv3=this.gitInv3||Se(this.git3),this.gitInv4=this.gitInv4||Se(this.git4),this.gitInv5=this.gitInv5||Se(this.git5),this.gitInv6=this.gitInv6||Se(this.git6),this.gitInv7=this.gitInv7||Se(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Se(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Se(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||Rp,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dp}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(i=>{this[i]=t[i]}),this.updateColors(),n.forEach(i=>{this[i]=t[i]})}},k(Do,"Theme"),Do),K7=k(e=>{const t=new X7;return t.calculate(e),t},"getThemeVariables"),Bo,Z7=(Bo=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=Ne(this.contrast,55),this.background="#ffffff",this.tertiaryColor=ee(this.primaryColor,{h:-160}),this.primaryBorderColor=vi(this.primaryColor,this.darkMode),this.secondaryBorderColor=vi(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=vi(this.tertiaryColor,this.darkMode),this.primaryTextColor=Se(this.primaryColor),this.secondaryTextColor=Se(this.secondaryColor),this.tertiaryTextColor=Se(this.tertiaryColor),this.lineColor=Se(this.background),this.textColor=Se(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd=this.rowOdd||Ne(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var t,n,i,r,l,s,c,u,h,d,p,y,m,x,_,w,S,C,E,N,M;this.secondBkg=Ne(this.contrast,55),this.border2=this.contrast,this.actorBorder=Ne(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 A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleInv"+A]=this["cScaleInv"+A]||Se(this["cScale"+A]);for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this.darkMode?this["cScalePeer"+A]=this["cScalePeer"+A]||Ne(this["cScale"+A],10):this["cScalePeer"+A]=this["cScalePeer"+A]||Ge(this["cScale"+A],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["cScaleLabel"+A]=this["cScaleLabel"+A]||this.scaleLabelColor;for(let A=0;A<5;A++)this["surface"+A]=this["surface"+A]||ee(this.mainBkg,{l:-(5+A*5)}),this["surfacePeer"+A]=this["surfacePeer"+A]||ee(this.mainBkg,{l:-(8+A*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=Ne(this.contrast,30),this.sectionBkgColor2=Ne(this.contrast,30),this.taskBorderColor=Ge(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=Ne(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=Ge(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=ee(this.primaryColor,{h:64}),this.fillType3=ee(this.secondaryColor,{h:64}),this.fillType4=ee(this.primaryColor,{h:-64}),this.fillType5=ee(this.secondaryColor,{h:-64}),this.fillType6=ee(this.primaryColor,{h:128}),this.fillType7=ee(this.secondaryColor,{h:128});for(let A=0;A<this.THEME_COLOR_LIMIT;A++)this["pie"+A]=this["cScale"+A];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||ee(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||ee(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||ee(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||ee(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||ee(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||ee(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||fh(this.quadrant1Fill)?Ne(this.quadrant1Fill):Ge(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:((n=this.xyChart)==null?void 0:n.titleColor)||this.primaryTextColor,xAxisTitleColor:((i=this.xyChart)==null?void 0:i.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((r=this.xyChart)==null?void 0:r.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((l=this.xyChart)==null?void 0:l.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((c=this.xyChart)==null?void 0:c.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((h=this.xyChart)==null?void 0:h.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((p=this.xyChart)==null?void 0:p.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((y=this.radar)==null?void 0:y.axisColor)||this.lineColor,axisStrokeWidth:((m=this.radar)==null?void 0:m.axisStrokeWidth)||2,axisLabelFontSize:((x=this.radar)==null?void 0:x.axisLabelFontSize)||12,curveOpacity:((_=this.radar)==null?void 0:_.curveOpacity)||.5,curveStrokeWidth:((w=this.radar)==null?void 0:w.curveStrokeWidth)||2,graticuleColor:((S=this.radar)==null?void 0:S.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((C=this.radar)==null?void 0:C.graticuleStrokeWidth)||1,graticuleOpacity:((E=this.radar)==null?void 0:E.graticuleOpacity)||.3,legendBoxSize:((N=this.radar)==null?void 0:N.legendBoxSize)||12,legendFontSize:((M=this.radar)==null?void 0:M.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=Ge(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||ee(this.primaryColor,{h:-30}),this.git4=this.pie5||ee(this.primaryColor,{h:-60}),this.git5=this.pie6||ee(this.primaryColor,{h:-90}),this.git6=this.pie7||ee(this.primaryColor,{h:60}),this.git7=this.pie8||ee(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||Se(this.git0),this.gitInv1=this.gitInv1||Se(this.git1),this.gitInv2=this.gitInv2||Se(this.git2),this.gitInv3=this.gitInv3||Se(this.git3),this.gitInv4=this.gitInv4||Se(this.git4),this.gitInv5=this.gitInv5||Se(this.git5),this.gitInv6=this.gitInv6||Se(this.git6),this.gitInv7=this.gitInv7||Se(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||Rp,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Dp}calculate(t){if(typeof t!="object"){this.updateColors();return}const n=Object.keys(t);n.forEach(i=>{this[i]=t[i]}),this.updateColors(),n.forEach(i=>{this[i]=t[i]})}},k(Bo,"Theme"),Bo),Q7=k(e=>{const t=new Z7;return t.calculate(e),t},"getThemeVariables"),Da={base:{getThemeVariables:j7},dark:{getThemeVariables:W7},default:{getThemeVariables:V7},forest:{getThemeVariables:K7},neutral:{getThemeVariables:Q7}},Wr={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,maxLabelWidth:360,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],titleColor:"",titleFontFamily:'"trebuchet ms", verdana, arial, sans-serif',titleFontSize:"4ex"},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,nodeSpacing:140,rankSpacing:80,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.17},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1},aA={...Wr,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:Da.default.getThemeVariables(),sequence:{...Wr.sequence,messageFont:k(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:k(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:k(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...Wr.gantt,tickInterval:void 0,useWidth:void 0},c4:{...Wr.c4,useWidth:void 0,personFont:k(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...Wr.flowchart,inheritDir:!1},external_personFont:k(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:k(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:k(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:k(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:k(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:k(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:k(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:k(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:k(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:k(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:k(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:k(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:k(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:k(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:k(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:k(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:k(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:k(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:k(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:k(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:k(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...Wr.pie,useWidth:984},xyChart:{...Wr.xyChart,useWidth:void 0},requirement:{...Wr.requirement,useWidth:void 0},packet:{...Wr.packet},radar:{...Wr.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},lA=k((e,t="")=>Object.keys(e).reduce((n,i)=>Array.isArray(e[i])?n:typeof e[i]=="object"&&e[i]!==null?[...n,t+i,...lA(e[i],"")]:[...n,t+i],[]),"keyify"),J7=new Set(lA(aA,"")),sA=aA,Pd=k(e=>{if(fe.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Pd(t));return}for(const t of Object.keys(e)){if(fe.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!J7.has(t)||e[t]==null){fe.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){fe.debug("sanitizing object",t),Pd(e[t]);continue}const n=["themeCSS","fontFamily","altFontFamily"];for(const i of n)t.includes(i)&&(fe.debug("sanitizing css option",t),e[t]=eq(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const n=e.themeVariables[t];n!=null&&n.match&&!n.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}fe.debug("After sanitization",e)}},"sanitizeDirective"),eq=k(e=>{let t=0,n=0;for(const i of e){if(t<n)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&n++}return t!==n?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),Uo=Object.freeze(sA),Pi=Fn({},Uo),Hd,ps=[],Iu=Fn({},Uo),Bp=k((e,t)=>{let n=Fn({},e),i={};for(const r of t)uA(r),i=Fn(i,r);if(n=Fn(n,i),i.theme&&i.theme in Da){const r=Fn({},Hd),l=Fn(r.themeVariables||{},i.themeVariables);n.theme&&n.theme in Da&&(n.themeVariables=Da[n.theme].getThemeVariables(l))}return Iu=n,hA(Iu),Iu},"updateCurrentConfig"),tq=k(e=>(Pi=Fn({},Uo),Pi=Fn(Pi,e),e.theme&&Da[e.theme]&&(Pi.themeVariables=Da[e.theme].getThemeVariables(e.themeVariables)),Bp(Pi,ps),Pi),"setSiteConfig"),nq=k(e=>{Hd=Fn({},e)},"saveConfigFromInitialize"),iq=k(e=>(Pi=Fn(Pi,e),Bp(Pi,ps),Pi),"updateSiteConfig"),oA=k(()=>Fn({},Pi),"getSiteConfig"),cA=k(e=>(hA(e),Fn(Iu,e),oi()),"setConfig"),oi=k(()=>Fn({},Iu),"getConfig"),uA=k(e=>{e&&(["secure",...Pi.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(fe.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"&&uA(e[t])}))},"sanitize"),rq=k(e=>{var t;Pd(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),ps.push(e),Bp(Pi,ps)},"addDirective"),Ud=k((e=Pi)=>{ps=[],Bp(e,ps)},"reset"),aq={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},XC={},lq=k(e=>{XC[e]||(fe.warn(aq[e]),XC[e]=!0)},"issueWarning"),hA=k(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&lq("LAZY_LOAD_DEPRECATED")},"checkConfig"),gie=k(()=>{let e={};Hd&&(e=Fn(e,Hd));for(const t of ps)e=Fn(e,t);return e},"getUserDefinedConfig"),dh=/<br\s*\/?>/gi,sq=k(e=>e?pA(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),oq=(()=>{let e=!1;return()=>{e||(fA(),e=!0)}})();function fA(){const e="data-temp-href-target";Ho.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Ho.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"))})}k(fA,"setupDompurifyHooks");var dA=k(e=>(oq(),Ho.sanitize(e)),"removeScript"),KC=k((e,t)=>{var n;if(((n=t.flowchart)==null?void 0:n.htmlLabels)!==!1){const i=t.securityLevel;i==="antiscript"||i==="strict"?e=dA(e):i!=="loose"&&(e=pA(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=fq(e))}return e},"sanitizeMore"),Cr=k((e,t)=>e&&(t.dompurifyConfig?e=Ho.sanitize(KC(e,t),t.dompurifyConfig).toString():e=Ho.sanitize(KC(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),cq=k((e,t)=>typeof e=="string"?Cr(e,t):e.flat().map(n=>Cr(n,t)),"sanitizeTextOrArray"),uq=k(e=>dh.test(e),"hasBreaks"),hq=k(e=>e.split(dh),"splitBreaks"),fq=k(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),pA=k(e=>e.replace(dh,"#br#"),"breakToPlaceholder"),dq=k(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),Pn=k(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),pq=k(function(...e){const t=e.filter(n=>!isNaN(n));return Math.max(...t)},"getMax"),gq=k(function(...e){const t=e.filter(n=>!isNaN(n));return Math.min(...t)},"getMin"),ZC=k(function(e){const t=e.split(/(,)/),n=[];for(let i=0;i<t.length;i++){let r=t[i];if(r===","&&i>0&&i+1<t.length){const l=t[i-1],s=t[i+1];mq(l,s)&&(r=l+","+s,i++,n.pop())}n.push(yq(r))}return n.join("")},"parseGenericTypes"),Py=k((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),mq=k((e,t)=>{const n=Py(e,"~"),i=Py(t,"~");return n===1&&i===1},"shouldCombineSets"),yq=k(e=>{const t=Py(e,"~");let n=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),n=!0);const i=[...e];let r=i.indexOf("~"),l=i.lastIndexOf("~");for(;r!==-1&&l!==-1&&r!==l;)i[r]="<",i[l]=">",r=i.indexOf("~"),l=i.lastIndexOf("~");return n&&i.unshift("~"),i.join("")},"processSet"),QC=k(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Hy=/\$\$(.*)\$\$/g,qo=k(e=>{var t;return(((t=e.match(Hy))==null?void 0:t.length)??0)>0},"hasKatex"),mie=k(async(e,t)=>{const n=document.createElement("div");n.innerHTML=await px(e,t),n.id="katex-temp",n.style.visibility="hidden",n.style.position="absolute",n.style.top="0";const i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",n);const r={width:n.clientWidth,height:n.clientHeight};return n.remove(),r},"calculateMathMLDimensions"),bq=k(async(e,t)=>{if(!qo(e))return e;if(!(QC()||t.legacyMathML||t.forceLegacyMathML))return e.replace(Hy,"MathML is unsupported in this environment.");{const{default:n}=await Dt(async()=>{const{default:r}=await import("./katex-Cu_Erd72.js");return{default:r}},[]),i=t.forceLegacyMathML||!QC()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(dh).map(r=>qo(r)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${r}</div>`:`<div>${r}</div>`).join("").replace(Hy,(r,l)=>n.renderToString(l,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),px=k(async(e,t)=>Cr(await bq(e,t),t),"renderKatexSanitized"),Jo={getRows:sq,sanitizeText:Cr,sanitizeTextOrArray:cq,hasBreaks:uq,splitBreaks:hq,lineBreakRegex:dh,removeScript:dA,getUrl:dq,evaluate:Pn,getMax:pq,getMin:gq},xq=k(function(e,t){for(let n of t)e.attr(n[0],n[1])},"d3Attrs"),_q=k(function(e,t,n){let i=new Map;return n?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),gA=k(function(e,t,n,i){const r=_q(t,n,i);xq(e,r)},"configureSvgSize"),vq=k(function(e,t,n,i){const r=t.node().getBBox(),l=r.width,s=r.height;fe.info(`SVG bounds: ${l}x${s}`,r);let c=0,u=0;fe.info(`Graph bounds: ${c}x${u}`,e),c=l+n*2,u=s+n*2,fe.info(`Calculated bounds: ${c}x${u}`),gA(t,u,c,i);const h=`${r.x-n} ${r.y-n} ${r.width+2*n} ${r.height+2*n}`;t.attr("viewBox",h)},"setupGraphViewbox"),fd={},wq=k((e,t,n)=>{let i="";return e in fd&&fd[e]?i=fd[e](n):fe.warn(`No theme found for ${e}`),` & {
|
|
161
|
+
font-family: ${n.fontFamily};
|
|
162
|
+
font-size: ${n.fontSize};
|
|
163
|
+
fill: ${n.textColor}
|
|
164
|
+
}
|
|
165
|
+
@keyframes edge-animation-frame {
|
|
166
|
+
from {
|
|
167
|
+
stroke-dashoffset: 0;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
@keyframes dash {
|
|
171
|
+
to {
|
|
172
|
+
stroke-dashoffset: 0;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
& .edge-animation-slow {
|
|
176
|
+
stroke-dasharray: 9,5 !important;
|
|
177
|
+
stroke-dashoffset: 900;
|
|
178
|
+
animation: dash 50s linear infinite;
|
|
179
|
+
stroke-linecap: round;
|
|
180
|
+
}
|
|
181
|
+
& .edge-animation-fast {
|
|
182
|
+
stroke-dasharray: 9,5 !important;
|
|
183
|
+
stroke-dashoffset: 900;
|
|
184
|
+
animation: dash 20s linear infinite;
|
|
185
|
+
stroke-linecap: round;
|
|
186
|
+
}
|
|
187
|
+
/* Classes common for multiple diagrams */
|
|
188
|
+
|
|
189
|
+
& .error-icon {
|
|
190
|
+
fill: ${n.errorBkgColor};
|
|
191
|
+
}
|
|
192
|
+
& .error-text {
|
|
193
|
+
fill: ${n.errorTextColor};
|
|
194
|
+
stroke: ${n.errorTextColor};
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
& .edge-thickness-normal {
|
|
198
|
+
stroke-width: 1px;
|
|
199
|
+
}
|
|
200
|
+
& .edge-thickness-thick {
|
|
201
|
+
stroke-width: 3.5px
|
|
202
|
+
}
|
|
203
|
+
& .edge-pattern-solid {
|
|
204
|
+
stroke-dasharray: 0;
|
|
205
|
+
}
|
|
206
|
+
& .edge-thickness-invisible {
|
|
207
|
+
stroke-width: 0;
|
|
208
|
+
fill: none;
|
|
209
|
+
}
|
|
210
|
+
& .edge-pattern-dashed{
|
|
211
|
+
stroke-dasharray: 3;
|
|
212
|
+
}
|
|
213
|
+
.edge-pattern-dotted {
|
|
214
|
+
stroke-dasharray: 2;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
& .marker {
|
|
218
|
+
fill: ${n.lineColor};
|
|
219
|
+
stroke: ${n.lineColor};
|
|
220
|
+
}
|
|
221
|
+
& .marker.cross {
|
|
222
|
+
stroke: ${n.lineColor};
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
& svg {
|
|
226
|
+
font-family: ${n.fontFamily};
|
|
227
|
+
font-size: ${n.fontSize};
|
|
228
|
+
}
|
|
229
|
+
& p {
|
|
230
|
+
margin: 0
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
${i}
|
|
234
|
+
|
|
235
|
+
${t}
|
|
236
|
+
`},"getStyles"),Sq=k((e,t)=>{t!==void 0&&(fd[e]=t)},"addStylesForDiagram"),Cq=wq,mA={};f7(mA,{clear:()=>kq,getAccDescription:()=>Mq,getAccTitle:()=>Tq,getDiagramTitle:()=>Oq,setAccDescription:()=>Aq,setAccTitle:()=>Eq,setDiagramTitle:()=>Nq});var gx="",mx="",yx="",bx=k(e=>Cr(e,oi()),"sanitizeText"),kq=k(()=>{gx="",yx="",mx=""},"clear"),Eq=k(e=>{gx=bx(e).replace(/^\s+/g,"")},"setAccTitle"),Tq=k(()=>gx,"getAccTitle"),Aq=k(e=>{yx=bx(e).replace(/\n\s+/g,`
|
|
237
|
+
`)},"setAccDescription"),Mq=k(()=>yx,"getAccDescription"),Nq=k(e=>{mx=bx(e)},"setDiagramTitle"),Oq=k(()=>mx,"getDiagramTitle"),JC=fe,Lq=fx,It=oi,yie=cA,bie=Uo,xx=k(e=>Cr(e,It()),"sanitizeText"),Rq=vq,Dq=k(()=>mA,"getCommonDb"),qd={},jd=k((e,t,n)=>{var i;qd[e]&&JC.warn(`Diagram with id ${e} already registered. Overwriting.`),qd[e]=t,n&&rA(e,n),Sq(e,t.styles),(i=t.injectUtils)==null||i.call(t,JC,Lq,It,xx,Rq,Dq(),()=>{})},"registerDiagram"),Uy=k(e=>{if(e in qd)return qd[e];throw new Bq(e)},"getDiagram"),Io,Bq=(Io=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},k(Io,"DiagramNotFoundError"),Io),Iq={value:()=>{}};function yA(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new dd(n)}function dd(e){this._=e}function $q(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",r=n.indexOf(".");if(r>=0&&(i=n.slice(r+1),n=n.slice(0,r)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}dd.prototype=yA.prototype={constructor:dd,on:function(e,t){var n=this._,i=$q(e+"",n),r,l=-1,s=i.length;if(arguments.length<2){for(;++l<s;)if((r=(e=i[l]).type)&&(r=Fq(n[r],e.name)))return r;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++l<s;)if(r=(e=i[l]).type)n[r]=e2(n[r],e.name,t);else if(t==null)for(r in n)n[r]=e2(n[r],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new dd(e)},call:function(e,t){if((r=arguments.length-2)>0)for(var n=new Array(r),i=0,r,l;i<r;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(l=this._[e],i=0,r=l.length;i<r;++i)l[i].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],r=0,l=i.length;r<l;++r)i[r].value.apply(t,n)}};function Fq(e,t){for(var n=0,i=e.length,r;n<i;++n)if((r=e[n]).name===t)return r.value}function e2(e,t,n){for(var i=0,r=e.length;i<r;++i)if(e[i].name===t){e[i]=Iq,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}var qy="http://www.w3.org/1999/xhtml";const t2={svg:"http://www.w3.org/2000/svg",xhtml:qy,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ip(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),t2.hasOwnProperty(t)?{space:t2[t],local:e}:e}function zq(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===qy&&t.documentElement.namespaceURI===qy?t.createElement(e):t.createElementNS(n,e)}}function Pq(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function bA(e){var t=Ip(e);return(t.local?Pq:zq)(t)}function Hq(){}function _x(e){return e==null?Hq:function(){return this.querySelector(e)}}function Uq(e){typeof e!="function"&&(e=_x(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var l=t[r],s=l.length,c=i[r]=new Array(s),u,h,d=0;d<s;++d)(u=l[d])&&(h=e.call(u,u.__data__,d,l))&&("__data__"in u&&(h.__data__=u.__data__),c[d]=h);return new or(i,this._parents)}function qq(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function jq(){return[]}function xA(e){return e==null?jq:function(){return this.querySelectorAll(e)}}function Gq(e){return function(){return qq(e.apply(this,arguments))}}function Wq(e){typeof e=="function"?e=Gq(e):e=xA(e);for(var t=this._groups,n=t.length,i=[],r=[],l=0;l<n;++l)for(var s=t[l],c=s.length,u,h=0;h<c;++h)(u=s[h])&&(i.push(e.call(u,u.__data__,h,s)),r.push(u));return new or(i,r)}function _A(e){return function(){return this.matches(e)}}function vA(e){return function(t){return t.matches(e)}}var Yq=Array.prototype.find;function Vq(e){return function(){return Yq.call(this.children,e)}}function Xq(){return this.firstElementChild}function Kq(e){return this.select(e==null?Xq:Vq(typeof e=="function"?e:vA(e)))}var Zq=Array.prototype.filter;function Qq(){return Array.from(this.children)}function Jq(e){return function(){return Zq.call(this.children,e)}}function ej(e){return this.selectAll(e==null?Qq:Jq(typeof e=="function"?e:vA(e)))}function tj(e){typeof e!="function"&&(e=_A(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var l=t[r],s=l.length,c=i[r]=[],u,h=0;h<s;++h)(u=l[h])&&e.call(u,u.__data__,h,l)&&c.push(u);return new or(i,this._parents)}function wA(e){return new Array(e.length)}function nj(){return new or(this._enter||this._groups.map(wA),this._parents)}function Gd(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Gd.prototype={constructor:Gd,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 ij(e){return function(){return e}}function rj(e,t,n,i,r,l){for(var s=0,c,u=t.length,h=l.length;s<h;++s)(c=t[s])?(c.__data__=l[s],i[s]=c):n[s]=new Gd(e,l[s]);for(;s<u;++s)(c=t[s])&&(r[s]=c)}function aj(e,t,n,i,r,l,s){var c,u,h=new Map,d=t.length,p=l.length,y=new Array(d),m;for(c=0;c<d;++c)(u=t[c])&&(y[c]=m=s.call(u,u.__data__,c,t)+"",h.has(m)?r[c]=u:h.set(m,u));for(c=0;c<p;++c)m=s.call(e,l[c],c,l)+"",(u=h.get(m))?(i[c]=u,u.__data__=l[c],h.delete(m)):n[c]=new Gd(e,l[c]);for(c=0;c<d;++c)(u=t[c])&&h.get(y[c])===u&&(r[c]=u)}function lj(e){return e.__data__}function sj(e,t){if(!arguments.length)return Array.from(this,lj);var n=t?aj:rj,i=this._parents,r=this._groups;typeof e!="function"&&(e=ij(e));for(var l=r.length,s=new Array(l),c=new Array(l),u=new Array(l),h=0;h<l;++h){var d=i[h],p=r[h],y=p.length,m=oj(e.call(d,d&&d.__data__,h,i)),x=m.length,_=c[h]=new Array(x),w=s[h]=new Array(x),S=u[h]=new Array(y);n(d,p,_,w,S,m,t);for(var C=0,E=0,N,M;C<x;++C)if(N=_[C]){for(C>=E&&(E=C+1);!(M=w[E])&&++E<x;);N._next=M||null}}return s=new or(s,i),s._enter=c,s._exit=u,s}function oj(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cj(){return new or(this._exit||this._groups.map(wA),this._parents)}function uj(e,t,n){var i=this.enter(),r=this,l=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(r=t(r),r&&(r=r.selection())),n==null?l.remove():n(l),i&&r?i.merge(r).order():r}function hj(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,r=n.length,l=i.length,s=Math.min(r,l),c=new Array(r),u=0;u<s;++u)for(var h=n[u],d=i[u],p=h.length,y=c[u]=new Array(p),m,x=0;x<p;++x)(m=h[x]||d[x])&&(y[x]=m);for(;u<r;++u)c[u]=n[u];return new or(c,this._parents)}function fj(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],r=i.length-1,l=i[r],s;--r>=0;)(s=i[r])&&(l&&s.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(s,l),l=s);return this}function dj(e){e||(e=pj);function t(p,y){return p&&y?e(p.__data__,y.__data__):!p-!y}for(var n=this._groups,i=n.length,r=new Array(i),l=0;l<i;++l){for(var s=n[l],c=s.length,u=r[l]=new Array(c),h,d=0;d<c;++d)(h=s[d])&&(u[d]=h);u.sort(t)}return new or(r,this._parents).order()}function pj(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function gj(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function mj(){return Array.from(this)}function yj(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],r=0,l=i.length;r<l;++r){var s=i[r];if(s)return s}return null}function bj(){let e=0;for(const t of this)++e;return e}function xj(){return!this.node()}function _j(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var r=t[n],l=0,s=r.length,c;l<s;++l)(c=r[l])&&e.call(c,c.__data__,l,r);return this}function vj(e){return function(){this.removeAttribute(e)}}function wj(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Sj(e,t){return function(){this.setAttribute(e,t)}}function Cj(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function kj(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Ej(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Tj(e,t){var n=Ip(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?wj:vj:typeof t=="function"?n.local?Ej:kj:n.local?Cj:Sj)(n,t))}function SA(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Aj(e){return function(){this.style.removeProperty(e)}}function Mj(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Nj(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function Oj(e,t,n){return arguments.length>1?this.each((t==null?Aj:typeof t=="function"?Nj:Mj)(e,t,n??"")):jo(this.node(),e)}function jo(e,t){return e.style.getPropertyValue(t)||SA(e).getComputedStyle(e,null).getPropertyValue(t)}function Lj(e){return function(){delete this[e]}}function Rj(e,t){return function(){this[e]=t}}function Dj(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Bj(e,t){return arguments.length>1?this.each((t==null?Lj:typeof t=="function"?Dj:Rj)(e,t)):this.node()[e]}function CA(e){return e.trim().split(/^|\s+/)}function vx(e){return e.classList||new kA(e)}function kA(e){this._node=e,this._names=CA(e.getAttribute("class")||"")}kA.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 EA(e,t){for(var n=vx(e),i=-1,r=t.length;++i<r;)n.add(t[i])}function TA(e,t){for(var n=vx(e),i=-1,r=t.length;++i<r;)n.remove(t[i])}function Ij(e){return function(){EA(this,e)}}function $j(e){return function(){TA(this,e)}}function Fj(e,t){return function(){(t.apply(this,arguments)?EA:TA)(this,e)}}function zj(e,t){var n=CA(e+"");if(arguments.length<2){for(var i=vx(this.node()),r=-1,l=n.length;++r<l;)if(!i.contains(n[r]))return!1;return!0}return this.each((typeof t=="function"?Fj:t?Ij:$j)(n,t))}function Pj(){this.textContent=""}function Hj(e){return function(){this.textContent=e}}function Uj(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function qj(e){return arguments.length?this.each(e==null?Pj:(typeof e=="function"?Uj:Hj)(e)):this.node().textContent}function jj(){this.innerHTML=""}function Gj(e){return function(){this.innerHTML=e}}function Wj(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Yj(e){return arguments.length?this.each(e==null?jj:(typeof e=="function"?Wj:Gj)(e)):this.node().innerHTML}function Vj(){this.nextSibling&&this.parentNode.appendChild(this)}function Xj(){return this.each(Vj)}function Kj(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zj(){return this.each(Kj)}function Qj(e){var t=typeof e=="function"?e:bA(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Jj(){return null}function eG(e,t){var n=typeof e=="function"?e:bA(e),i=t==null?Jj:typeof t=="function"?t:_x(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function tG(){var e=this.parentNode;e&&e.removeChild(this)}function nG(){return this.each(tG)}function iG(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function rG(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function aG(e){return this.select(e?rG:iG)}function lG(e){return arguments.length?this.property("__data__",e):this.node().__data__}function sG(e){return function(t){e.call(this,t,this.__data__)}}function oG(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function cG(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,r=t.length,l;n<r;++n)l=t[n],(!e.type||l.type===e.type)&&l.name===e.name?this.removeEventListener(l.type,l.listener,l.options):t[++i]=l;++i?t.length=i:delete this.__on}}}function uG(e,t,n){return function(){var i=this.__on,r,l=sG(t);if(i){for(var s=0,c=i.length;s<c;++s)if((r=i[s]).type===e.type&&r.name===e.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=l,r.options=n),r.value=t;return}}this.addEventListener(e.type,l,n),r={type:e.type,name:e.name,value:t,listener:l,options:n},i?i.push(r):this.__on=[r]}}function hG(e,t,n){var i=oG(e+""),r,l=i.length,s;if(arguments.length<2){var c=this.node().__on;if(c){for(var u=0,h=c.length,d;u<h;++u)for(r=0,d=c[u];r<l;++r)if((s=i[r]).type===d.type&&s.name===d.name)return d.value}return}for(c=t?uG:cG,r=0;r<l;++r)this.each(c(i[r],t,n));return this}function AA(e,t,n){var i=SA(e),r=i.CustomEvent;typeof r=="function"?r=new r(t,n):(r=i.document.createEvent("Event"),n?(r.initEvent(t,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(t,!1,!1)),e.dispatchEvent(r)}function fG(e,t){return function(){return AA(this,e,t)}}function dG(e,t){return function(){return AA(this,e,t.apply(this,arguments))}}function pG(e,t){return this.each((typeof t=="function"?dG:fG)(e,t))}function*gG(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],r=0,l=i.length,s;r<l;++r)(s=i[r])&&(yield s)}var MA=[null];function or(e,t){this._groups=e,this._parents=t}function ph(){return new or([[document.documentElement]],MA)}function mG(){return this}or.prototype=ph.prototype={constructor:or,select:Uq,selectAll:Wq,selectChild:Kq,selectChildren:ej,filter:tj,data:sj,enter:nj,exit:cj,join:uj,merge:hj,selection:mG,order:fj,sort:dj,call:gj,nodes:mj,node:yj,size:bj,empty:xj,each:_j,attr:Tj,style:Oj,property:Bj,classed:zj,text:qj,html:Yj,raise:Xj,lower:Zj,append:Qj,insert:eG,remove:nG,clone:aG,datum:lG,on:hG,dispatch:pG,[Symbol.iterator]:gG};function Ct(e){return typeof e=="string"?new or([[document.querySelector(e)]],[document.documentElement]):new or([[e]],MA)}function wx(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function NA(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function gh(){}var Yu=.7,Wd=1/Yu,Ao="\\s*([+-]?\\d+)\\s*",Vu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",na="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yG=/^#([0-9a-f]{3,8})$/,bG=new RegExp(`^rgb\\(${Ao},${Ao},${Ao}\\)$`),xG=new RegExp(`^rgb\\(${na},${na},${na}\\)$`),_G=new RegExp(`^rgba\\(${Ao},${Ao},${Ao},${Vu}\\)$`),vG=new RegExp(`^rgba\\(${na},${na},${na},${Vu}\\)$`),wG=new RegExp(`^hsl\\(${Vu},${na},${na}\\)$`),SG=new RegExp(`^hsla\\(${Vu},${na},${na},${Vu}\\)$`),n2={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};wx(gh,Xu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:i2,formatHex:i2,formatHex8:CG,formatHsl:kG,formatRgb:r2,toString:r2});function i2(){return this.rgb().formatHex()}function CG(){return this.rgb().formatHex8()}function kG(){return OA(this).formatHsl()}function r2(){return this.rgb().formatRgb()}function Xu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=yG.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?a2(t):n===3?new ji(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Vf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Vf(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=bG.exec(e))?new ji(t[1],t[2],t[3],1):(t=xG.exec(e))?new ji(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=_G.exec(e))?Vf(t[1],t[2],t[3],t[4]):(t=vG.exec(e))?Vf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=wG.exec(e))?o2(t[1],t[2]/100,t[3]/100,1):(t=SG.exec(e))?o2(t[1],t[2]/100,t[3]/100,t[4]):n2.hasOwnProperty(e)?a2(n2[e]):e==="transparent"?new ji(NaN,NaN,NaN,0):null}function a2(e){return new ji(e>>16&255,e>>8&255,e&255,1)}function Vf(e,t,n,i){return i<=0&&(e=t=n=NaN),new ji(e,t,n,i)}function EG(e){return e instanceof gh||(e=Xu(e)),e?(e=e.rgb(),new ji(e.r,e.g,e.b,e.opacity)):new ji}function jy(e,t,n,i){return arguments.length===1?EG(e):new ji(e,t,n,i??1)}function ji(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}wx(ji,jy,NA(gh,{brighter(e){return e=e==null?Wd:Math.pow(Wd,e),new ji(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Yu:Math.pow(Yu,e),new ji(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ji(us(this.r),us(this.g),us(this.b),Yd(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:l2,formatHex:l2,formatHex8:TG,formatRgb:s2,toString:s2}));function l2(){return`#${as(this.r)}${as(this.g)}${as(this.b)}`}function TG(){return`#${as(this.r)}${as(this.g)}${as(this.b)}${as((isNaN(this.opacity)?1:this.opacity)*255)}`}function s2(){const e=Yd(this.opacity);return`${e===1?"rgb(":"rgba("}${us(this.r)}, ${us(this.g)}, ${us(this.b)}${e===1?")":`, ${e})`}`}function Yd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function us(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function as(e){return e=us(e),(e<16?"0":"")+e.toString(16)}function o2(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Br(e,t,n,i)}function OA(e){if(e instanceof Br)return new Br(e.h,e.s,e.l,e.opacity);if(e instanceof gh||(e=Xu(e)),!e)return new Br;if(e instanceof Br)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,r=Math.min(t,n,i),l=Math.max(t,n,i),s=NaN,c=l-r,u=(l+r)/2;return c?(t===l?s=(n-i)/c+(n<i)*6:n===l?s=(i-t)/c+2:s=(t-n)/c+4,c/=u<.5?l+r:2-l-r,s*=60):c=u>0&&u<1?0:s,new Br(s,c,u,e.opacity)}function AG(e,t,n,i){return arguments.length===1?OA(e):new Br(e,t,n,i??1)}function Br(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}wx(Br,AG,NA(gh,{brighter(e){return e=e==null?Wd:Math.pow(Wd,e),new Br(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Yu:Math.pow(Yu,e),new Br(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,n=this.l,i=n+(n<.5?n:1-n)*t,r=2*n-i;return new ji(G0(e>=240?e-240:e+120,r,i),G0(e,r,i),G0(e<120?e+240:e-120,r,i),this.opacity)},clamp(){return new Br(c2(this.h),Xf(this.s),Xf(this.l),Yd(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=Yd(this.opacity);return`${e===1?"hsl(":"hsla("}${c2(this.h)}, ${Xf(this.s)*100}%, ${Xf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function c2(e){return e=(e||0)%360,e<0?e+360:e}function Xf(e){return Math.max(0,Math.min(1,e||0))}function G0(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Sx=e=>()=>e;function LA(e,t){return function(n){return e+n*t}}function MG(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function xie(e,t){var n=t-e;return n?LA(e,n>180||n<-180?n-360*Math.round(n/360):n):Sx(isNaN(e)?t:e)}function NG(e){return(e=+e)==1?RA:function(t,n){return n-t?MG(t,n,e):Sx(isNaN(t)?n:t)}}function RA(e,t){var n=t-e;return n?LA(e,n):Sx(isNaN(e)?t:e)}const u2=(function e(t){var n=NG(t);function i(r,l){var s=n((r=jy(r)).r,(l=jy(l)).r),c=n(r.g,l.g),u=n(r.b,l.b),h=RA(r.opacity,l.opacity);return function(d){return r.r=s(d),r.g=c(d),r.b=u(d),r.opacity=h(d),r+""}}return i.gamma=e,i})(1);function _l(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Gy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,W0=new RegExp(Gy.source,"g");function OG(e){return function(){return e}}function LG(e){return function(t){return e(t)+""}}function RG(e,t){var n=Gy.lastIndex=W0.lastIndex=0,i,r,l,s=-1,c=[],u=[];for(e=e+"",t=t+"";(i=Gy.exec(e))&&(r=W0.exec(t));)(l=r.index)>n&&(l=t.slice(n,l),c[s]?c[s]+=l:c[++s]=l),(i=i[0])===(r=r[0])?c[s]?c[s]+=r:c[++s]=r:(c[++s]=null,u.push({i:s,x:_l(i,r)})),n=W0.lastIndex;return n<t.length&&(l=t.slice(n),c[s]?c[s]+=l:c[++s]=l),c.length<2?u[0]?LG(u[0].x):OG(t):(t=u.length,function(h){for(var d=0,p;d<t;++d)c[(p=u[d]).i]=p.x(h);return c.join("")})}var h2=180/Math.PI,Wy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function DA(e,t,n,i,r,l){var s,c,u;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(u=e*n+t*i)&&(n-=e*u,i-=t*u),(c=Math.sqrt(n*n+i*i))&&(n/=c,i/=c,u/=c),e*i<t*n&&(e=-e,t=-t,u=-u,s=-s),{translateX:r,translateY:l,rotate:Math.atan2(t,e)*h2,skewX:Math.atan(u)*h2,scaleX:s,scaleY:c}}var Kf;function DG(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Wy:DA(t.a,t.b,t.c,t.d,t.e,t.f)}function BG(e){return e==null||(Kf||(Kf=document.createElementNS("http://www.w3.org/2000/svg","g")),Kf.setAttribute("transform",e),!(e=Kf.transform.baseVal.consolidate()))?Wy:(e=e.matrix,DA(e.a,e.b,e.c,e.d,e.e,e.f))}function BA(e,t,n,i){function r(h){return h.length?h.pop()+" ":""}function l(h,d,p,y,m,x){if(h!==p||d!==y){var _=m.push("translate(",null,t,null,n);x.push({i:_-4,x:_l(h,p)},{i:_-2,x:_l(d,y)})}else(p||y)&&m.push("translate("+p+t+y+n)}function s(h,d,p,y){h!==d?(h-d>180?d+=360:d-h>180&&(h+=360),y.push({i:p.push(r(p)+"rotate(",null,i)-2,x:_l(h,d)})):d&&p.push(r(p)+"rotate("+d+i)}function c(h,d,p,y){h!==d?y.push({i:p.push(r(p)+"skewX(",null,i)-2,x:_l(h,d)}):d&&p.push(r(p)+"skewX("+d+i)}function u(h,d,p,y,m,x){if(h!==p||d!==y){var _=m.push(r(m)+"scale(",null,",",null,")");x.push({i:_-4,x:_l(h,p)},{i:_-2,x:_l(d,y)})}else(p!==1||y!==1)&&m.push(r(m)+"scale("+p+","+y+")")}return function(h,d){var p=[],y=[];return h=e(h),d=e(d),l(h.translateX,h.translateY,d.translateX,d.translateY,p,y),s(h.rotate,d.rotate,p,y),c(h.skewX,d.skewX,p,y),u(h.scaleX,h.scaleY,d.scaleX,d.scaleY,p,y),h=d=null,function(m){for(var x=-1,_=y.length,w;++x<_;)p[(w=y[x]).i]=w.x(m);return p.join("")}}}var IG=BA(DG,"px, ","px)","deg)"),$G=BA(BG,", ",")",")"),Go=0,vu=0,fu=0,IA=1e3,Vd,wu,Xd=0,gs=0,$p=0,Ku=typeof performance=="object"&&performance.now?performance:Date,$A=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Cx(){return gs||($A(FG),gs=Ku.now()+$p)}function FG(){gs=0}function Kd(){this._call=this._time=this._next=null}Kd.prototype=FA.prototype={constructor:Kd,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Cx():+n)+(t==null?0:+t),!this._next&&wu!==this&&(wu?wu._next=this:Vd=this,wu=this),this._call=e,this._time=n,Yy()},stop:function(){this._call&&(this._call=null,this._time=1/0,Yy())}};function FA(e,t,n){var i=new Kd;return i.restart(e,t,n),i}function zG(){Cx(),++Go;for(var e=Vd,t;e;)(t=gs-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Go}function f2(){gs=(Xd=Ku.now())+$p,Go=vu=0;try{zG()}finally{Go=0,HG(),gs=0}}function PG(){var e=Ku.now(),t=e-Xd;t>IA&&($p-=t,Xd=e)}function HG(){for(var e,t=Vd,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Vd=n);wu=e,Yy(i)}function Yy(e){if(!Go){vu&&(vu=clearTimeout(vu));var t=e-gs;t>24?(e<1/0&&(vu=setTimeout(f2,e-Ku.now()-$p)),fu&&(fu=clearInterval(fu))):(fu||(Xd=Ku.now(),fu=setInterval(PG,IA)),Go=1,$A(f2))}}function d2(e,t,n){var i=new Kd;return t=t==null?0:+t,i.restart(r=>{i.stop(),e(r+t)},t,n),i}var UG=yA("start","end","cancel","interrupt"),qG=[],zA=0,p2=1,Vy=2,pd=3,g2=4,Xy=5,gd=6;function Fp(e,t,n,i,r,l){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;jG(e,n,{name:t,index:i,group:r,on:UG,tween:qG,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:zA})}function kx(e,t){var n=Pr(e,t);if(n.state>zA)throw new Error("too late; already scheduled");return n}function la(e,t){var n=Pr(e,t);if(n.state>pd)throw new Error("too late; already running");return n}function Pr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function jG(e,t,n){var i=e.__transition,r;i[t]=n,n.timer=FA(l,0,n.time);function l(h){n.state=p2,n.timer.restart(s,n.delay,n.time),n.delay<=h&&s(h-n.delay)}function s(h){var d,p,y,m;if(n.state!==p2)return u();for(d in i)if(m=i[d],m.name===n.name){if(m.state===pd)return d2(s);m.state===g2?(m.state=gd,m.timer.stop(),m.on.call("interrupt",e,e.__data__,m.index,m.group),delete i[d]):+d<t&&(m.state=gd,m.timer.stop(),m.on.call("cancel",e,e.__data__,m.index,m.group),delete i[d])}if(d2(function(){n.state===pd&&(n.state=g2,n.timer.restart(c,n.delay,n.time),c(h))}),n.state=Vy,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Vy){for(n.state=pd,r=new Array(y=n.tween.length),d=0,p=-1;d<y;++d)(m=n.tween[d].value.call(e,e.__data__,n.index,n.group))&&(r[++p]=m);r.length=p+1}}function c(h){for(var d=h<n.duration?n.ease.call(null,h/n.duration):(n.timer.restart(u),n.state=Xy,1),p=-1,y=r.length;++p<y;)r[p].call(e,d);n.state===Xy&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=gd,n.timer.stop(),delete i[t];for(var h in i)return;delete e.__transition}}function GG(e,t){var n=e.__transition,i,r,l=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((i=n[s]).name!==t){l=!1;continue}r=i.state>Vy&&i.state<Xy,i.state=gd,i.timer.stop(),i.on.call(r?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[s]}l&&delete e.__transition}}function WG(e){return this.each(function(){GG(this,e)})}function YG(e,t){var n,i;return function(){var r=la(this,e),l=r.tween;if(l!==n){i=n=l;for(var s=0,c=i.length;s<c;++s)if(i[s].name===t){i=i.slice(),i.splice(s,1);break}}r.tween=i}}function VG(e,t,n){var i,r;if(typeof n!="function")throw new Error;return function(){var l=la(this,e),s=l.tween;if(s!==i){r=(i=s).slice();for(var c={name:t,value:n},u=0,h=r.length;u<h;++u)if(r[u].name===t){r[u]=c;break}u===h&&r.push(c)}l.tween=r}}function XG(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=Pr(this.node(),n).tween,r=0,l=i.length,s;r<l;++r)if((s=i[r]).name===e)return s.value;return null}return this.each((t==null?YG:VG)(n,e,t))}function Ex(e,t,n){var i=e._id;return e.each(function(){var r=la(this,i);(r.value||(r.value={}))[t]=n.apply(this,arguments)}),function(r){return Pr(r,i).value[t]}}function PA(e,t){var n;return(typeof t=="number"?_l:t instanceof Xu?u2:(n=Xu(t))?(t=n,u2):RG)(e,t)}function KG(e){return function(){this.removeAttribute(e)}}function ZG(e){return function(){this.removeAttributeNS(e.space,e.local)}}function QG(e,t,n){var i,r=n+"",l;return function(){var s=this.getAttribute(e);return s===r?null:s===i?l:l=t(i=s,n)}}function JG(e,t,n){var i,r=n+"",l;return function(){var s=this.getAttributeNS(e.space,e.local);return s===r?null:s===i?l:l=t(i=s,n)}}function eW(e,t,n){var i,r,l;return function(){var s,c=n(this),u;return c==null?void this.removeAttribute(e):(s=this.getAttribute(e),u=c+"",s===u?null:s===i&&u===r?l:(r=u,l=t(i=s,c)))}}function tW(e,t,n){var i,r,l;return function(){var s,c=n(this),u;return c==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),u=c+"",s===u?null:s===i&&u===r?l:(r=u,l=t(i=s,c)))}}function nW(e,t){var n=Ip(e),i=n==="transform"?$G:PA;return this.attrTween(e,typeof t=="function"?(n.local?tW:eW)(n,i,Ex(this,"attr."+e,t)):t==null?(n.local?ZG:KG)(n):(n.local?JG:QG)(n,i,t))}function iW(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function rW(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function aW(e,t){var n,i;function r(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&rW(e,l)),n}return r._value=t,r}function lW(e,t){var n,i;function r(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&iW(e,l)),n}return r._value=t,r}function sW(e,t){var n="attr."+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;var i=Ip(e);return this.tween(n,(i.local?aW:lW)(i,t))}function oW(e,t){return function(){kx(this,e).delay=+t.apply(this,arguments)}}function cW(e,t){return t=+t,function(){kx(this,e).delay=t}}function uW(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?oW:cW)(t,e)):Pr(this.node(),t).delay}function hW(e,t){return function(){la(this,e).duration=+t.apply(this,arguments)}}function fW(e,t){return t=+t,function(){la(this,e).duration=t}}function dW(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?hW:fW)(t,e)):Pr(this.node(),t).duration}function pW(e,t){if(typeof t!="function")throw new Error;return function(){la(this,e).ease=t}}function gW(e){var t=this._id;return arguments.length?this.each(pW(t,e)):Pr(this.node(),t).ease}function mW(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;la(this,e).ease=n}}function yW(e){if(typeof e!="function")throw new Error;return this.each(mW(this._id,e))}function bW(e){typeof e!="function"&&(e=_A(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var l=t[r],s=l.length,c=i[r]=[],u,h=0;h<s;++h)(u=l[h])&&e.call(u,u.__data__,h,l)&&c.push(u);return new Fa(i,this._parents,this._name,this._id)}function xW(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,r=n.length,l=Math.min(i,r),s=new Array(i),c=0;c<l;++c)for(var u=t[c],h=n[c],d=u.length,p=s[c]=new Array(d),y,m=0;m<d;++m)(y=u[m]||h[m])&&(p[m]=y);for(;c<i;++c)s[c]=t[c];return new Fa(s,this._parents,this._name,this._id)}function _W(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function vW(e,t,n){var i,r,l=_W(t)?kx:la;return function(){var s=l(this,e),c=s.on;c!==i&&(r=(i=c).copy()).on(t,n),s.on=r}}function wW(e,t){var n=this._id;return arguments.length<2?Pr(this.node(),n).on.on(e):this.each(vW(n,e,t))}function SW(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function CW(){return this.on("end.remove",SW(this._id))}function kW(e){var t=this._name,n=this._id;typeof e!="function"&&(e=_x(e));for(var i=this._groups,r=i.length,l=new Array(r),s=0;s<r;++s)for(var c=i[s],u=c.length,h=l[s]=new Array(u),d,p,y=0;y<u;++y)(d=c[y])&&(p=e.call(d,d.__data__,y,c))&&("__data__"in d&&(p.__data__=d.__data__),h[y]=p,Fp(h[y],t,n,y,h,Pr(d,n)));return new Fa(l,this._parents,t,n)}function EW(e){var t=this._name,n=this._id;typeof e!="function"&&(e=xA(e));for(var i=this._groups,r=i.length,l=[],s=[],c=0;c<r;++c)for(var u=i[c],h=u.length,d,p=0;p<h;++p)if(d=u[p]){for(var y=e.call(d,d.__data__,p,u),m,x=Pr(d,n),_=0,w=y.length;_<w;++_)(m=y[_])&&Fp(m,t,n,_,y,x);l.push(y),s.push(d)}return new Fa(l,s,t,n)}var TW=ph.prototype.constructor;function AW(){return new TW(this._groups,this._parents)}function MW(e,t){var n,i,r;return function(){var l=jo(this,e),s=(this.style.removeProperty(e),jo(this,e));return l===s?null:l===n&&s===i?r:r=t(n=l,i=s)}}function HA(e){return function(){this.style.removeProperty(e)}}function NW(e,t,n){var i,r=n+"",l;return function(){var s=jo(this,e);return s===r?null:s===i?l:l=t(i=s,n)}}function OW(e,t,n){var i,r,l;return function(){var s=jo(this,e),c=n(this),u=c+"";return c==null&&(u=c=(this.style.removeProperty(e),jo(this,e))),s===u?null:s===i&&u===r?l:(r=u,l=t(i=s,c))}}function LW(e,t){var n,i,r,l="style."+t,s="end."+l,c;return function(){var u=la(this,e),h=u.on,d=u.value[l]==null?c||(c=HA(t)):void 0;(h!==n||r!==d)&&(i=(n=h).copy()).on(s,r=d),u.on=i}}function RW(e,t,n){var i=(e+="")=="transform"?IG:PA;return t==null?this.styleTween(e,MW(e,i)).on("end.style."+e,HA(e)):typeof t=="function"?this.styleTween(e,OW(e,i,Ex(this,"style."+e,t))).each(LW(this._id,e)):this.styleTween(e,NW(e,i,t),n).on("end.style."+e,null)}function DW(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function BW(e,t,n){var i,r;function l(){var s=t.apply(this,arguments);return s!==r&&(i=(r=s)&&DW(e,s,n)),i}return l._value=t,l}function IW(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,BW(e,t,n??""))}function $W(e){return function(){this.textContent=e}}function FW(e){return function(){var t=e(this);this.textContent=t??""}}function zW(e){return this.tween("text",typeof e=="function"?FW(Ex(this,"text",e)):$W(e==null?"":e+""))}function PW(e){return function(t){this.textContent=e.call(this,t)}}function HW(e){var t,n;function i(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&PW(r)),t}return i._value=e,i}function UW(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,HW(e))}function qW(){for(var e=this._name,t=this._id,n=UA(),i=this._groups,r=i.length,l=0;l<r;++l)for(var s=i[l],c=s.length,u,h=0;h<c;++h)if(u=s[h]){var d=Pr(u,t);Fp(u,e,n,h,s,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Fa(i,this._parents,e,n)}function jW(){var e,t,n=this,i=n._id,r=n.size();return new Promise(function(l,s){var c={value:s},u={value:function(){--r===0&&l()}};n.each(function(){var h=la(this,i),d=h.on;d!==e&&(t=(e=d).copy(),t._.cancel.push(c),t._.interrupt.push(c),t._.end.push(u)),h.on=t}),r===0&&l()})}var GW=0;function Fa(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function UA(){return++GW}var Na=ph.prototype;Fa.prototype={constructor:Fa,select:kW,selectAll:EW,selectChild:Na.selectChild,selectChildren:Na.selectChildren,filter:bW,merge:xW,selection:AW,transition:qW,call:Na.call,nodes:Na.nodes,node:Na.node,size:Na.size,empty:Na.empty,each:Na.each,on:wW,attr:nW,attrTween:sW,style:RW,styleTween:IW,text:zW,textTween:UW,remove:CW,tween:XG,delay:uW,duration:dW,ease:gW,easeVarying:yW,end:jW,[Symbol.iterator]:Na[Symbol.iterator]};function WW(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var YW={time:null,delay:0,duration:250,ease:WW};function VW(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function XW(e){var t,n;e instanceof Fa?(t=e._id,e=e._name):(t=UA(),(n=YW).time=Cx(),e=e==null?null:e+"");for(var i=this._groups,r=i.length,l=0;l<r;++l)for(var s=i[l],c=s.length,u,h=0;h<c;++h)(u=s[h])&&Fp(u,e,t,h,s,n||VW(u,t));return new Fa(i,this._parents,e,t)}ph.prototype.interrupt=WG;ph.prototype.transition=XW;const Ky=Math.PI,Zy=2*Ky,ts=1e-6,KW=Zy-ts;function qA(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function ZW(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return qA;const n=10**t;return function(i){this._+=i[0];for(let r=1,l=i.length;r<l;++r)this._+=Math.round(arguments[r]*n)/n+i[r]}}class QW{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?qA:ZW(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,i,r){this._append`Q${+t},${+n},${this._x1=+i},${this._y1=+r}`}bezierCurveTo(t,n,i,r,l,s){this._append`C${+t},${+n},${+i},${+r},${this._x1=+l},${this._y1=+s}`}arcTo(t,n,i,r,l){if(t=+t,n=+n,i=+i,r=+r,l=+l,l<0)throw new Error(`negative radius: ${l}`);let s=this._x1,c=this._y1,u=i-t,h=r-n,d=s-t,p=c-n,y=d*d+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(y>ts)if(!(Math.abs(p*u-h*d)>ts)||!l)this._append`L${this._x1=t},${this._y1=n}`;else{let m=i-s,x=r-c,_=u*u+h*h,w=m*m+x*x,S=Math.sqrt(_),C=Math.sqrt(y),E=l*Math.tan((Ky-Math.acos((_+y-w)/(2*S*C)))/2),N=E/C,M=E/S;Math.abs(N-1)>ts&&this._append`L${t+N*d},${n+N*p}`,this._append`A${l},${l},0,0,${+(p*m>d*x)},${this._x1=t+M*u},${this._y1=n+M*h}`}}arc(t,n,i,r,l,s){if(t=+t,n=+n,i=+i,s=!!s,i<0)throw new Error(`negative radius: ${i}`);let c=i*Math.cos(r),u=i*Math.sin(r),h=t+c,d=n+u,p=1^s,y=s?r-l:l-r;this._x1===null?this._append`M${h},${d}`:(Math.abs(this._x1-h)>ts||Math.abs(this._y1-d)>ts)&&this._append`L${h},${d}`,i&&(y<0&&(y=y%Zy+Zy),y>KW?this._append`A${i},${i},0,1,${p},${t-c},${n-u}A${i},${i},0,1,${p},${this._x1=h},${this._y1=d}`:y>ts&&this._append`A${i},${i},0,${+(y>=Ky)},${p},${this._x1=t+i*Math.cos(l)},${this._y1=n+i*Math.sin(l)}`)}rect(t,n,i,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}}function ho(e){return function(){return e}}const _ie=Math.abs,vie=Math.atan2,wie=Math.cos,Sie=Math.max,Cie=Math.min,kie=Math.sin,Eie=Math.sqrt,m2=1e-12,Tx=Math.PI,y2=Tx/2,Tie=2*Tx;function Aie(e){return e>1?0:e<-1?Tx:Math.acos(e)}function Mie(e){return e>=1?y2:e<=-1?-y2:Math.asin(e)}function JW(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);t=i}return e},()=>new QW(t)}function eY(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function jA(e){this._context=e}jA.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 Zd(e){return new jA(e)}function tY(e){return e[0]}function nY(e){return e[1]}function iY(e,t){var n=ho(!0),i=null,r=Zd,l=null,s=JW(c);e=typeof e=="function"?e:e===void 0?tY:ho(e),t=typeof t=="function"?t:t===void 0?nY:ho(t);function c(u){var h,d=(u=eY(u)).length,p,y=!1,m;for(i==null&&(l=r(m=s())),h=0;h<=d;++h)!(h<d&&n(p=u[h],h,u))===y&&((y=!y)?l.lineStart():l.lineEnd()),y&&l.point(+e(p,h,u),+t(p,h,u));if(m)return l=null,m+""||null}return c.x=function(u){return arguments.length?(e=typeof u=="function"?u:ho(+u),c):e},c.y=function(u){return arguments.length?(t=typeof u=="function"?u:ho(+u),c):t},c.defined=function(u){return arguments.length?(n=typeof u=="function"?u:ho(!!u),c):n},c.curve=function(u){return arguments.length?(r=u,i!=null&&(l=r(i)),c):r},c.context=function(u){return arguments.length?(u==null?i=l=null:l=r(i=u),c):i},c}class GA{constructor(t,n){this._context=t,this._x=n}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,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function WA(e){return new GA(e,!0)}function YA(e){return new GA(e,!1)}function El(){}function Qd(e,t,n){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+n)/6)}function zp(e){this._context=e}zp.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:Qd(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:Qd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function md(e){return new zp(e)}function VA(e){this._context=e}VA.prototype={areaStart:El,areaEnd:El,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:Qd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rY(e){return new VA(e)}function XA(e){this._context=e}XA.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 n=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Qd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function aY(e){return new XA(e)}function KA(e,t){this._basis=new zp(e),this._beta=t}KA.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var i=e[0],r=t[0],l=e[n]-i,s=t[n]-r,c=-1,u;++c<=n;)u=c/n,this._basis.point(this._beta*e[c]+(1-this._beta)*(i+u*l),this._beta*t[c]+(1-this._beta)*(r+u*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const lY=(function e(t){function n(i){return t===1?new zp(i):new KA(i,t)}return n.beta=function(i){return e(+i)},n})(.85);function Jd(e,t,n){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-n),e._x2,e._y2)}function Ax(e,t){this._context=e,this._k=(1-t)/6}Ax.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:Jd(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:Jd(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 ZA=(function e(t){function n(i){return new Ax(i,t)}return n.tension=function(i){return e(+i)},n})(0);function Mx(e,t){this._context=e,this._k=(1-t)/6}Mx.prototype={areaStart:El,areaEnd:El,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:Jd(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 sY=(function e(t){function n(i){return new Mx(i,t)}return n.tension=function(i){return e(+i)},n})(0);function Nx(e,t){this._context=e,this._k=(1-t)/6}Nx.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:Jd(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 oY=(function e(t){function n(i){return new Nx(i,t)}return n.tension=function(i){return e(+i)},n})(0);function Ox(e,t,n){var i=e._x1,r=e._y1,l=e._x2,s=e._y2;if(e._l01_a>m2){var c=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);i=(i*c-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,r=(r*c-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>m2){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);l=(l*h+e._x1*e._l23_2a-t*e._l12_2a)/d,s=(s*h+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(i,r,l,s,e._x2,e._y2)}function QA(e,t){this._context=e,this._alpha=t}QA.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 n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Ox(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 JA=(function e(t){function n(i){return t?new QA(i,t):new Ax(i,0)}return n.alpha=function(i){return e(+i)},n})(.5);function eM(e,t){this._context=e,this._alpha=t}eM.prototype={areaStart:El,areaEnd:El,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 n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ox(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 cY=(function e(t){function n(i){return t?new eM(i,t):new Mx(i,0)}return n.alpha=function(i){return e(+i)},n})(.5);function tM(e,t){this._context=e,this._alpha=t}tM.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 n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ox(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 uY=(function e(t){function n(i){return t?new tM(i,t):new Nx(i,0)}return n.alpha=function(i){return e(+i)},n})(.5);function nM(e){this._context=e}nM.prototype={areaStart:El,areaEnd:El,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 hY(e){return new nM(e)}function b2(e){return e<0?-1:1}function x2(e,t,n){var i=e._x1-e._x0,r=t-e._x1,l=(e._y1-e._y0)/(i||r<0&&-0),s=(n-e._y1)/(r||i<0&&-0),c=(l*r+s*i)/(i+r);return(b2(l)+b2(s))*Math.min(Math.abs(l),Math.abs(s),.5*Math.abs(c))||0}function _2(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Y0(e,t,n){var i=e._x0,r=e._y0,l=e._x1,s=e._y1,c=(l-i)/3;e._context.bezierCurveTo(i+c,r+c*t,l-c,s-c*n,l,s)}function ep(e){this._context=e}ep.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:Y0(this,this._t0,_2(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 n=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,Y0(this,_2(this,n=x2(this,e,t)),n);break;default:Y0(this,this._t0,n=x2(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function iM(e){this._context=new rM(e)}(iM.prototype=Object.create(ep.prototype)).point=function(e,t){ep.prototype.point.call(this,t,e)};function rM(e){this._context=e}rM.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,n,i,r,l){this._context.bezierCurveTo(t,e,i,n,l,r)}};function aM(e){return new ep(e)}function lM(e){return new iM(e)}function sM(e){this._context=e}sM.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var i=v2(e),r=v2(t),l=0,s=1;s<n;++l,++s)this._context.bezierCurveTo(i[0][l],r[0][l],i[1][l],r[1][l],e[s],t[s]);(this._line||this._line!==0&&n===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 v2(e){var t,n=e.length-1,i,r=new Array(n),l=new Array(n),s=new Array(n);for(r[0]=0,l[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)r[t]=1,l[t]=4,s[t]=4*e[t]+2*e[t+1];for(r[n-1]=2,l[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)i=r[t]/l[t-1],l[t]-=i,s[t]-=i*s[t-1];for(r[n-1]=s[n-1]/l[n-1],t=n-2;t>=0;--t)r[t]=(s[t]-r[t+1])/l[t];for(l[n-1]=(e[n]+r[n-1])/2,t=0;t<n-1;++t)l[t]=2*e[t+1]-r[t+1];return[r,l]}function oM(e){return new sM(e)}function Pp(e,t){this._context=e,this._t=t}Pp.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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function cM(e){return new Pp(e,.5)}function uM(e){return new Pp(e,0)}function hM(e){return new Pp(e,1)}function Su(e,t,n){this.k=e,this.x=t,this.y=n}Su.prototype={constructor:Su,scale:function(e){return e===1?this:new Su(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Su(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+")"}};Su.prototype;var fY=k(e=>{var r;const{securityLevel:t}=It();let n=Ct("body");if(t==="sandbox"){const s=((r=Ct(`#i${e}`).node())==null?void 0:r.contentDocument)??document;n=Ct(s.body)}return n.select(`#${e}`)},"selectSvgElement");function Lx(e){return typeof e>"u"||e===null}k(Lx,"isNothing");function fM(e){return typeof e=="object"&&e!==null}k(fM,"isObject");function dM(e){return Array.isArray(e)?e:Lx(e)?[]:[e]}k(dM,"toArray");function pM(e,t){var n,i,r,l;if(t)for(l=Object.keys(t),n=0,i=l.length;n<i;n+=1)r=l[n],e[r]=t[r];return e}k(pM,"extend");function gM(e,t){var n="",i;for(i=0;i<t;i+=1)n+=e;return n}k(gM,"repeat");function mM(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}k(mM,"isNegativeZero");var dY=Lx,pY=fM,gY=dM,mY=gM,yY=mM,bY=pM,zn={isNothing:dY,isObject:pY,toArray:gY,repeat:mY,isNegativeZero:yY,extend:bY};function Rx(e,t){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
238
|
+
|
|
239
|
+
`+e.mark.snippet),i+" "+n):i}k(Rx,"formatError");function Wo(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Rx(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}k(Wo,"YAMLException$1");Wo.prototype=Object.create(Error.prototype);Wo.prototype.constructor=Wo;Wo.prototype.toString=k(function(t){return this.name+": "+Rx(this,t)},"toString");var Ui=Wo;function yd(e,t,n,i,r){var l="",s="",c=Math.floor(r/2)-1;return i-t>c&&(l=" ... ",t=i-c+l.length),n-i>c&&(s=" ...",n=i+c-s.length),{str:l+e.slice(t,n).replace(/\t/g,"→")+s,pos:i-t+l.length}}k(yd,"getLine");function bd(e,t){return zn.repeat(" ",t-e.length)+e}k(bd,"padStart");function yM(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 n=/\r?\n|\r|\0/g,i=[0],r=[],l,s=-1;l=n.exec(e.buffer);)r.push(l.index),i.push(l.index+l[0].length),e.position<=l.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var c="",u,h,d=Math.min(e.line+t.linesAfter,r.length).toString().length,p=t.maxLength-(t.indent+d+3);for(u=1;u<=t.linesBefore&&!(s-u<0);u++)h=yd(e.buffer,i[s-u],r[s-u],e.position-(i[s]-i[s-u]),p),c=zn.repeat(" ",t.indent)+bd((e.line-u+1).toString(),d)+" | "+h.str+`
|
|
240
|
+
`+c;for(h=yd(e.buffer,i[s],r[s],e.position,p),c+=zn.repeat(" ",t.indent)+bd((e.line+1).toString(),d)+" | "+h.str+`
|
|
241
|
+
`,c+=zn.repeat("-",t.indent+d+3+h.pos)+`^
|
|
242
|
+
`,u=1;u<=t.linesAfter&&!(s+u>=r.length);u++)h=yd(e.buffer,i[s+u],r[s+u],e.position-(i[s]-i[s+u]),p),c+=zn.repeat(" ",t.indent)+bd((e.line+u+1).toString(),d)+" | "+h.str+`
|
|
243
|
+
`;return c.replace(/\n$/,"")}k(yM,"makeSnippet");var xY=yM,_Y=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],vY=["scalar","sequence","mapping"];function bM(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(i){t[String(i)]=n})}),t}k(bM,"compileStyleAliases");function xM(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(_Y.indexOf(n)===-1)throw new Ui('Unknown option "'+n+'" 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(n){return n},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=bM(t.styleAliases||null),vY.indexOf(this.kind)===-1)throw new Ui('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}k(xM,"Type$1");var ci=xM;function Qy(e,t){var n=[];return e[t].forEach(function(i){var r=n.length;n.forEach(function(l,s){l.tag===i.tag&&l.kind===i.kind&&l.multi===i.multi&&(r=s)}),n[r]=i}),n}k(Qy,"compileList");function _M(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function i(r){r.multi?(e.multi[r.kind].push(r),e.multi.fallback.push(r)):e[r.kind][r.tag]=e.fallback[r.tag]=r}for(k(i,"collectType"),t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(i);return e}k(_M,"compileMap");function tp(e){return this.extend(e)}k(tp,"Schema$1");tp.prototype.extend=k(function(t){var n=[],i=[];if(t instanceof ci)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new Ui("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(l){if(!(l instanceof ci))throw new Ui("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(l.loadKind&&l.loadKind!=="scalar")throw new Ui("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(l.multi)throw new Ui("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(l){if(!(l instanceof ci))throw new Ui("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(tp.prototype);return r.implicit=(this.implicit||[]).concat(n),r.explicit=(this.explicit||[]).concat(i),r.compiledImplicit=Qy(r,"implicit"),r.compiledExplicit=Qy(r,"explicit"),r.compiledTypeMap=_M(r.compiledImplicit,r.compiledExplicit),r},"extend");var wY=tp,SY=new ci("tag:yaml.org,2002:str",{kind:"scalar",construct:k(function(e){return e!==null?e:""},"construct")}),CY=new ci("tag:yaml.org,2002:seq",{kind:"sequence",construct:k(function(e){return e!==null?e:[]},"construct")}),kY=new ci("tag:yaml.org,2002:map",{kind:"mapping",construct:k(function(e){return e!==null?e:{}},"construct")}),EY=new wY({explicit:[SY,CY,kY]});function vM(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}k(vM,"resolveYamlNull");function wM(){return null}k(wM,"constructYamlNull");function SM(e){return e===null}k(SM,"isNull");var TY=new ci("tag:yaml.org,2002:null",{kind:"scalar",resolve:vM,construct:wM,predicate:SM,represent:{canonical:k(function(){return"~"},"canonical"),lowercase:k(function(){return"null"},"lowercase"),uppercase:k(function(){return"NULL"},"uppercase"),camelcase:k(function(){return"Null"},"camelcase"),empty:k(function(){return""},"empty")},defaultStyle:"lowercase"});function CM(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")}k(CM,"resolveYamlBoolean");function kM(e){return e==="true"||e==="True"||e==="TRUE"}k(kM,"constructYamlBoolean");function EM(e){return Object.prototype.toString.call(e)==="[object Boolean]"}k(EM,"isBoolean");var AY=new ci("tag:yaml.org,2002:bool",{kind:"scalar",resolve:CM,construct:kM,predicate:EM,represent:{lowercase:k(function(e){return e?"true":"false"},"lowercase"),uppercase:k(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:k(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function TM(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}k(TM,"isHexCode");function AM(e){return 48<=e&&e<=55}k(AM,"isOctCode");function MM(e){return 48<=e&&e<=57}k(MM,"isDecCode");function NM(e){if(e===null)return!1;var t=e.length,n=0,i=!1,r;if(!t)return!1;if(r=e[n],(r==="-"||r==="+")&&(r=e[++n]),r==="0"){if(n+1===t)return!0;if(r=e[++n],r==="b"){for(n++;n<t;n++)if(r=e[n],r!=="_"){if(r!=="0"&&r!=="1")return!1;i=!0}return i&&r!=="_"}if(r==="x"){for(n++;n<t;n++)if(r=e[n],r!=="_"){if(!TM(e.charCodeAt(n)))return!1;i=!0}return i&&r!=="_"}if(r==="o"){for(n++;n<t;n++)if(r=e[n],r!=="_"){if(!AM(e.charCodeAt(n)))return!1;i=!0}return i&&r!=="_"}}if(r==="_")return!1;for(;n<t;n++)if(r=e[n],r!=="_"){if(!MM(e.charCodeAt(n)))return!1;i=!0}return!(!i||r==="_")}k(NM,"resolveYamlInteger");function OM(e){var t=e,n=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(n=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}k(OM,"constructYamlInteger");function LM(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!zn.isNegativeZero(e)}k(LM,"isInteger");var MY=new ci("tag:yaml.org,2002:int",{kind:"scalar",resolve:NM,construct:OM,predicate:LM,represent:{binary:k(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:k(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:k(function(e){return e.toString(10)},"decimal"),hexadecimal:k(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"]}}),NY=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function RM(e){return!(e===null||!NY.test(e)||e[e.length-1]==="_")}k(RM,"resolveYamlFloat");function DM(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}k(DM,"constructYamlFloat");var OY=/^[-+]?[0-9]+e/;function BM(e,t){var n;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(zn.isNegativeZero(e))return"-0.0";return n=e.toString(10),OY.test(n)?n.replace("e",".e"):n}k(BM,"representYamlFloat");function IM(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||zn.isNegativeZero(e))}k(IM,"isFloat");var LY=new ci("tag:yaml.org,2002:float",{kind:"scalar",resolve:RM,construct:DM,predicate:IM,represent:BM,defaultStyle:"lowercase"}),$M=EY.extend({implicit:[TY,AY,MY,LY]}),RY=$M,FM=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),zM=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 PM(e){return e===null?!1:FM.exec(e)!==null||zM.exec(e)!==null}k(PM,"resolveYamlTimestamp");function HM(e){var t,n,i,r,l,s,c,u=0,h=null,d,p,y;if(t=FM.exec(e),t===null&&(t=zM.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(l=+t[4],s=+t[5],c=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(d=+t[10],p=+(t[11]||0),h=(d*60+p)*6e4,t[9]==="-"&&(h=-h)),y=new Date(Date.UTC(n,i,r,l,s,c,u)),h&&y.setTime(y.getTime()-h),y}k(HM,"constructYamlTimestamp");function UM(e){return e.toISOString()}k(UM,"representYamlTimestamp");var DY=new ci("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:PM,construct:HM,instanceOf:Date,represent:UM});function qM(e){return e==="<<"||e===null}k(qM,"resolveYamlMerge");var BY=new ci("tag:yaml.org,2002:merge",{kind:"scalar",resolve:qM}),Dx=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
244
|
+
\r`;function jM(e){if(e===null)return!1;var t,n,i=0,r=e.length,l=Dx;for(n=0;n<r;n++)if(t=l.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}k(jM,"resolveYamlBinary");function GM(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,l=Dx,s=0,c=[];for(t=0;t<r;t++)t%4===0&&t&&(c.push(s>>16&255),c.push(s>>8&255),c.push(s&255)),s=s<<6|l.indexOf(i.charAt(t));return n=r%4*6,n===0?(c.push(s>>16&255),c.push(s>>8&255),c.push(s&255)):n===18?(c.push(s>>10&255),c.push(s>>2&255)):n===12&&c.push(s>>4&255),new Uint8Array(c)}k(GM,"constructYamlBinary");function WM(e){var t="",n=0,i,r,l=e.length,s=Dx;for(i=0;i<l;i++)i%3===0&&i&&(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[i];return r=l%3,r===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):r===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):r===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}k(WM,"representYamlBinary");function YM(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}k(YM,"isBinary");var IY=new ci("tag:yaml.org,2002:binary",{kind:"scalar",resolve:jM,construct:GM,predicate:YM,represent:WM}),$Y=Object.prototype.hasOwnProperty,FY=Object.prototype.toString;function VM(e){if(e===null)return!0;var t=[],n,i,r,l,s,c=e;for(n=0,i=c.length;n<i;n+=1){if(r=c[n],s=!1,FY.call(r)!=="[object Object]")return!1;for(l in r)if($Y.call(r,l))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(l)===-1)t.push(l);else return!1}return!0}k(VM,"resolveYamlOmap");function XM(e){return e!==null?e:[]}k(XM,"constructYamlOmap");var zY=new ci("tag:yaml.org,2002:omap",{kind:"sequence",resolve:VM,construct:XM}),PY=Object.prototype.toString;function KM(e){if(e===null)return!0;var t,n,i,r,l,s=e;for(l=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(i=s[t],PY.call(i)!=="[object Object]"||(r=Object.keys(i),r.length!==1))return!1;l[t]=[r[0],i[r[0]]]}return!0}k(KM,"resolveYamlPairs");function ZM(e){if(e===null)return[];var t,n,i,r,l,s=e;for(l=new Array(s.length),t=0,n=s.length;t<n;t+=1)i=s[t],r=Object.keys(i),l[t]=[r[0],i[r[0]]];return l}k(ZM,"constructYamlPairs");var HY=new ci("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:KM,construct:ZM}),UY=Object.prototype.hasOwnProperty;function QM(e){if(e===null)return!0;var t,n=e;for(t in n)if(UY.call(n,t)&&n[t]!==null)return!1;return!0}k(QM,"resolveYamlSet");function JM(e){return e!==null?e:{}}k(JM,"constructYamlSet");var qY=new ci("tag:yaml.org,2002:set",{kind:"mapping",resolve:QM,construct:JM}),eN=RY.extend({implicit:[DY,BY],explicit:[IY,zY,HY,qY]}),Tl=Object.prototype.hasOwnProperty,np=1,tN=2,nN=3,ip=4,V0=1,jY=2,w2=3,GY=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,WY=/[\x85\u2028\u2029]/,YY=/[,\[\]\{\}]/,iN=/^(?:!|!!|![a-z\-]+!)$/i,rN=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Jy(e){return Object.prototype.toString.call(e)}k(Jy,"_class");function Fr(e){return e===10||e===13}k(Fr,"is_EOL");function Cl(e){return e===9||e===32}k(Cl,"is_WHITE_SPACE");function wi(e){return e===9||e===32||e===10||e===13}k(wi,"is_WS_OR_EOL");function ls(e){return e===44||e===91||e===93||e===123||e===125}k(ls,"is_FLOW_INDICATOR");function aN(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}k(aN,"fromHexCode");function lN(e){return e===120?2:e===117?4:e===85?8:0}k(lN,"escapedHexLen");function sN(e){return 48<=e&&e<=57?e-48:-1}k(sN,"fromDecimalCode");function eb(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
245
|
+
`: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":""}k(eb,"simpleEscapeSequence");function oN(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}k(oN,"charFromCodepoint");var cN=new Array(256),uN=new Array(256);for(es=0;es<256;es++)cN[es]=eb(es)?1:0,uN[es]=eb(es);var es;function hN(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||eN,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=[]}k(hN,"State$1");function Bx(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=xY(n),new Ui(t,n)}k(Bx,"generateError");function Pe(e,t){throw Bx(e,t)}k(Pe,"throwError");function Zu(e,t){e.onWarning&&e.onWarning.call(null,Bx(e,t))}k(Zu,"throwWarning");var S2={YAML:k(function(t,n,i){var r,l,s;t.version!==null&&Pe(t,"duplication of %YAML directive"),i.length!==1&&Pe(t,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),r===null&&Pe(t,"ill-formed argument of the YAML directive"),l=parseInt(r[1],10),s=parseInt(r[2],10),l!==1&&Pe(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&Zu(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:k(function(t,n,i){var r,l;i.length!==2&&Pe(t,"TAG directive accepts exactly two arguments"),r=i[0],l=i[1],iN.test(r)||Pe(t,"ill-formed tag handle (first argument) of the TAG directive"),Tl.call(t.tagMap,r)&&Pe(t,'there is a previously declared suffix for "'+r+'" tag handle'),rN.test(l)||Pe(t,"ill-formed tag prefix (second argument) of the TAG directive");try{l=decodeURIComponent(l)}catch{Pe(t,"tag prefix is malformed: "+l)}t.tagMap[r]=l},"handleTagDirective")};function Ba(e,t,n,i){var r,l,s,c;if(t<n){if(c=e.input.slice(t,n),i)for(r=0,l=c.length;r<l;r+=1)s=c.charCodeAt(r),s===9||32<=s&&s<=1114111||Pe(e,"expected valid JSON character");else GY.test(c)&&Pe(e,"the stream contains non-printable characters");e.result+=c}}k(Ba,"captureSegment");function tb(e,t,n,i){var r,l,s,c;for(zn.isObject(n)||Pe(e,"cannot merge mappings; the provided source object is unacceptable"),r=Object.keys(n),s=0,c=r.length;s<c;s+=1)l=r[s],Tl.call(t,l)||(t[l]=n[l],i[l]=!0)}k(tb,"mergeMappings");function ss(e,t,n,i,r,l,s,c,u){var h,d;if(Array.isArray(r))for(r=Array.prototype.slice.call(r),h=0,d=r.length;h<d;h+=1)Array.isArray(r[h])&&Pe(e,"nested arrays are not supported inside keys"),typeof r=="object"&&Jy(r[h])==="[object Object]"&&(r[h]="[object Object]");if(typeof r=="object"&&Jy(r)==="[object Object]"&&(r="[object Object]"),r=String(r),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(l))for(h=0,d=l.length;h<d;h+=1)tb(e,t,l[h],n);else tb(e,t,l,n);else!e.json&&!Tl.call(n,r)&&Tl.call(t,r)&&(e.line=s||e.line,e.lineStart=c||e.lineStart,e.position=u||e.position,Pe(e,"duplicated mapping key")),r==="__proto__"?Object.defineProperty(t,r,{configurable:!0,enumerable:!0,writable:!0,value:l}):t[r]=l,delete n[r];return t}k(ss,"storeMappingPair");function Hp(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++):Pe(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}k(Hp,"readLineBreak");function _n(e,t,n){for(var i=0,r=e.input.charCodeAt(e.position);r!==0;){for(;Cl(r);)r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&r===35)do r=e.input.charCodeAt(++e.position);while(r!==10&&r!==13&&r!==0);if(Fr(r))for(Hp(e),r=e.input.charCodeAt(e.position),i++,e.lineIndent=0;r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position);else break}return n!==-1&&i!==0&&e.lineIndent<n&&Zu(e,"deficient indentation"),i}k(_n,"skipSeparationSpace");function mh(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||wi(n)))}k(mh,"testDocumentSeparator");function Up(e,t){t===1?e.result+=" ":t>1&&(e.result+=zn.repeat(`
|
|
246
|
+
`,t-1))}k(Up,"writeFoldedLines");function fN(e,t,n){var i,r,l,s,c,u,h,d,p=e.kind,y=e.result,m;if(m=e.input.charCodeAt(e.position),wi(m)||ls(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(r=e.input.charCodeAt(e.position+1),wi(r)||n&&ls(r)))return!1;for(e.kind="scalar",e.result="",l=s=e.position,c=!1;m!==0;){if(m===58){if(r=e.input.charCodeAt(e.position+1),wi(r)||n&&ls(r))break}else if(m===35){if(i=e.input.charCodeAt(e.position-1),wi(i))break}else{if(e.position===e.lineStart&&mh(e)||n&&ls(m))break;if(Fr(m))if(u=e.line,h=e.lineStart,d=e.lineIndent,_n(e,!1,-1),e.lineIndent>=t){c=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=u,e.lineStart=h,e.lineIndent=d;break}}c&&(Ba(e,l,s,!1),Up(e,e.line-u),l=s=e.position,c=!1),Cl(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position)}return Ba(e,l,s,!1),e.result?!0:(e.kind=p,e.result=y,!1)}k(fN,"readPlainScalar");function dN(e,t){var n,i,r;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=r=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Ba(e,i,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)i=e.position,e.position++,r=e.position;else return!0;else Fr(n)?(Ba(e,i,r,!0),Up(e,_n(e,!1,t)),i=r=e.position):e.position===e.lineStart&&mh(e)?Pe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,r=e.position);Pe(e,"unexpected end of the stream within a single quoted scalar")}k(dN,"readSingleQuotedScalar");function pN(e,t){var n,i,r,l,s,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Ba(e,n,e.position,!0),e.position++,!0;if(c===92){if(Ba(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),Fr(c))_n(e,!1,t);else if(c<256&&cN[c])e.result+=uN[c],e.position++;else if((s=lN(c))>0){for(r=s,l=0;r>0;r--)c=e.input.charCodeAt(++e.position),(s=aN(c))>=0?l=(l<<4)+s:Pe(e,"expected hexadecimal character");e.result+=oN(l),e.position++}else Pe(e,"unknown escape sequence");n=i=e.position}else Fr(c)?(Ba(e,n,i,!0),Up(e,_n(e,!1,t)),n=i=e.position):e.position===e.lineStart&&mh(e)?Pe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}Pe(e,"unexpected end of the stream within a double quoted scalar")}k(pN,"readDoubleQuotedScalar");function gN(e,t){var n=!0,i,r,l,s=e.tag,c,u=e.anchor,h,d,p,y,m,x=Object.create(null),_,w,S,C;if(C=e.input.charCodeAt(e.position),C===91)d=93,m=!1,c=[];else if(C===123)d=125,m=!0,c={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),C=e.input.charCodeAt(++e.position);C!==0;){if(_n(e,!0,t),C=e.input.charCodeAt(e.position),C===d)return e.position++,e.tag=s,e.anchor=u,e.kind=m?"mapping":"sequence",e.result=c,!0;n?C===44&&Pe(e,"expected the node content, but found ','"):Pe(e,"missed comma between flow collection entries"),w=_=S=null,p=y=!1,C===63&&(h=e.input.charCodeAt(e.position+1),wi(h)&&(p=y=!0,e.position++,_n(e,!0,t))),i=e.line,r=e.lineStart,l=e.position,ms(e,t,np,!1,!0),w=e.tag,_=e.result,_n(e,!0,t),C=e.input.charCodeAt(e.position),(y||e.line===i)&&C===58&&(p=!0,C=e.input.charCodeAt(++e.position),_n(e,!0,t),ms(e,t,np,!1,!0),S=e.result),m?ss(e,c,x,w,_,S,i,r,l):p?c.push(ss(e,null,x,w,_,S,i,r,l)):c.push(_),_n(e,!0,t),C=e.input.charCodeAt(e.position),C===44?(n=!0,C=e.input.charCodeAt(++e.position)):n=!1}Pe(e,"unexpected end of the stream within a flow collection")}k(gN,"readFlowCollection");function mN(e,t){var n,i,r=V0,l=!1,s=!1,c=t,u=0,h=!1,d,p;if(p=e.input.charCodeAt(e.position),p===124)i=!1;else if(p===62)i=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)V0===r?r=p===43?w2:jY:Pe(e,"repeat of a chomping mode identifier");else if((d=sN(p))>=0)d===0?Pe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Pe(e,"repeat of an indentation width identifier"):(c=t+d-1,s=!0);else break;if(Cl(p)){do p=e.input.charCodeAt(++e.position);while(Cl(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!Fr(p)&&p!==0)}for(;p!==0;){for(Hp(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!s||e.lineIndent<c)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>c&&(c=e.lineIndent),Fr(p)){u++;continue}if(e.lineIndent<c){r===w2?e.result+=zn.repeat(`
|
|
247
|
+
`,l?1+u:u):r===V0&&l&&(e.result+=`
|
|
248
|
+
`);break}for(i?Cl(p)?(h=!0,e.result+=zn.repeat(`
|
|
249
|
+
`,l?1+u:u)):h?(h=!1,e.result+=zn.repeat(`
|
|
250
|
+
`,u+1)):u===0?l&&(e.result+=" "):e.result+=zn.repeat(`
|
|
251
|
+
`,u):e.result+=zn.repeat(`
|
|
252
|
+
`,l?1+u:u),l=!0,s=!0,u=0,n=e.position;!Fr(p)&&p!==0;)p=e.input.charCodeAt(++e.position);Ba(e,n,e.position,!1)}return!0}k(mN,"readBlockScalar");function nb(e,t){var n,i=e.tag,r=e.anchor,l=[],s,c=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Pe(e,"tab characters must not be used in indentation")),!(u!==45||(s=e.input.charCodeAt(e.position+1),!wi(s))));){if(c=!0,e.position++,_n(e,!0,-1)&&e.lineIndent<=t){l.push(null),u=e.input.charCodeAt(e.position);continue}if(n=e.line,ms(e,t,nN,!1,!0),l.push(e.result),_n(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&u!==0)Pe(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=i,e.anchor=r,e.kind="sequence",e.result=l,!0):!1}k(nb,"readBlockSequence");function yN(e,t,n){var i,r,l,s,c,u,h=e.tag,d=e.anchor,p={},y=Object.create(null),m=null,x=null,_=null,w=!1,S=!1,C;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),C=e.input.charCodeAt(e.position);C!==0;){if(!w&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Pe(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),l=e.line,(C===63||C===58)&&wi(i))C===63?(w&&(ss(e,p,y,m,x,null,s,c,u),m=x=_=null),S=!0,w=!0,r=!0):w?(w=!1,r=!0):Pe(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,C=i;else{if(s=e.line,c=e.lineStart,u=e.position,!ms(e,n,tN,!1,!0))break;if(e.line===l){for(C=e.input.charCodeAt(e.position);Cl(C);)C=e.input.charCodeAt(++e.position);if(C===58)C=e.input.charCodeAt(++e.position),wi(C)||Pe(e,"a whitespace character is expected after the key-value separator within a block mapping"),w&&(ss(e,p,y,m,x,null,s,c,u),m=x=_=null),S=!0,w=!1,r=!1,m=e.tag,x=e.result;else if(S)Pe(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=h,e.anchor=d,!0}else if(S)Pe(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===l||e.lineIndent>t)&&(w&&(s=e.line,c=e.lineStart,u=e.position),ms(e,t,ip,!0,r)&&(w?x=e.result:_=e.result),w||(ss(e,p,y,m,x,_,s,c,u),m=x=_=null),_n(e,!0,-1),C=e.input.charCodeAt(e.position)),(e.line===l||e.lineIndent>t)&&C!==0)Pe(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return w&&ss(e,p,y,m,x,null,s,c,u),S&&(e.tag=h,e.anchor=d,e.kind="mapping",e.result=p),S}k(yN,"readBlockMapping");function bN(e){var t,n=!1,i=!1,r,l,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&Pe(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(n=!0,s=e.input.charCodeAt(++e.position)):s===33?(i=!0,r="!!",s=e.input.charCodeAt(++e.position)):r="!",t=e.position,n){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(l=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Pe(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!wi(s);)s===33&&(i?Pe(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),iN.test(r)||Pe(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);l=e.input.slice(t,e.position),YY.test(l)&&Pe(e,"tag suffix cannot contain flow indicator characters")}l&&!rN.test(l)&&Pe(e,"tag name cannot contain such characters: "+l);try{l=decodeURIComponent(l)}catch{Pe(e,"tag name is malformed: "+l)}return n?e.tag=l:Tl.call(e.tagMap,r)?e.tag=e.tagMap[r]+l:r==="!"?e.tag="!"+l:r==="!!"?e.tag="tag:yaml.org,2002:"+l:Pe(e,'undeclared tag handle "'+r+'"'),!0}k(bN,"readTagProperty");function xN(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&Pe(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!wi(n)&&!ls(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Pe(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}k(xN,"readAnchorProperty");function _N(e){var t,n,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!wi(i)&&!ls(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&Pe(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Tl.call(e.anchorMap,n)||Pe(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],_n(e,!0,-1),!0}k(_N,"readAlias");function ms(e,t,n,i,r){var l,s,c,u=1,h=!1,d=!1,p,y,m,x,_,w;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,l=s=c=ip===n||nN===n,i&&_n(e,!0,-1)&&(h=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;bN(e)||xN(e);)_n(e,!0,-1)?(h=!0,c=l,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):c=!1;if(c&&(c=h||r),(u===1||ip===n)&&(np===n||tN===n?_=t:_=t+1,w=e.position-e.lineStart,u===1?c&&(nb(e,w)||yN(e,w,_))||gN(e,_)?d=!0:(s&&mN(e,_)||dN(e,_)||pN(e,_)?d=!0:_N(e)?(d=!0,(e.tag!==null||e.anchor!==null)&&Pe(e,"alias node should not have any properties")):fN(e,_,np===n)&&(d=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(d=c&&nb(e,w))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Pe(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,y=e.implicitTypes.length;p<y;p+=1)if(x=e.implicitTypes[p],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(Tl.call(e.typeMap[e.kind||"fallback"],e.tag))x=e.typeMap[e.kind||"fallback"][e.tag];else for(x=null,m=e.typeMap.multi[e.kind||"fallback"],p=0,y=m.length;p<y;p+=1)if(e.tag.slice(0,m[p].tag.length)===m[p].tag){x=m[p];break}x||Pe(e,"unknown tag !<"+e.tag+">"),e.result!==null&&x.kind!==e.kind&&Pe(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)):Pe(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}k(ms,"composeNode");function vN(e){var t=e.position,n,i,r,l=!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&&(_n(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(l=!0,s=e.input.charCodeAt(++e.position),n=e.position;s!==0&&!wi(s);)s=e.input.charCodeAt(++e.position);for(i=e.input.slice(n,e.position),r=[],i.length<1&&Pe(e,"directive name must not be less than one character in length");s!==0;){for(;Cl(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!Fr(s));break}if(Fr(s))break;for(n=e.position;s!==0&&!wi(s);)s=e.input.charCodeAt(++e.position);r.push(e.input.slice(n,e.position))}s!==0&&Hp(e),Tl.call(S2,i)?S2[i](e,i,r):Zu(e,'unknown document directive "'+i+'"')}if(_n(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,_n(e,!0,-1)):l&&Pe(e,"directives end mark is expected"),ms(e,e.lineIndent-1,ip,!1,!0),_n(e,!0,-1),e.checkLineBreaks&&WY.test(e.input.slice(t,e.position))&&Zu(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&mh(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,_n(e,!0,-1));return}if(e.position<e.length-1)Pe(e,"end of the stream or a document separator is expected");else return}k(vN,"readDocument");function Ix(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
253
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new hN(e,t),i=e.indexOf("\0");for(i!==-1&&(n.position=i,Pe(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)vN(n);return n.documents}k(Ix,"loadDocuments");function VY(e,t,n){t!==null&&typeof t=="object"&&typeof n>"u"&&(n=t,t=null);var i=Ix(e,n);if(typeof t!="function")return i;for(var r=0,l=i.length;r<l;r+=1)t(i[r])}k(VY,"loadAll$1");function wN(e,t){var n=Ix(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Ui("expected a single document in the stream, but found more")}}k(wN,"load$1");var XY=wN,KY={load:XY},SN=Object.prototype.toString,CN=Object.prototype.hasOwnProperty,$x=65279,ZY=9,Qu=10,QY=13,JY=32,eV=33,tV=34,ib=35,nV=37,iV=38,rV=39,aV=42,kN=44,lV=45,rp=58,sV=61,oV=62,cV=63,uV=64,EN=91,TN=93,hV=96,AN=123,fV=124,MN=125,di={};di[0]="\\0";di[7]="\\a";di[8]="\\b";di[9]="\\t";di[10]="\\n";di[11]="\\v";di[12]="\\f";di[13]="\\r";di[27]="\\e";di[34]='\\"';di[92]="\\\\";di[133]="\\N";di[160]="\\_";di[8232]="\\L";di[8233]="\\P";var dV=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],pV=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function NN(e,t){var n,i,r,l,s,c,u;if(t===null)return{};for(n={},i=Object.keys(t),r=0,l=i.length;r<l;r+=1)s=i[r],c=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),u=e.compiledTypeMap.fallback[s],u&&CN.call(u.styleAliases,c)&&(c=u.styleAliases[c]),n[s]=c;return n}k(NN,"compileStyleMap");function ON(e){var t,n,i;if(t=e.toString(16).toUpperCase(),e<=255)n="x",i=2;else if(e<=65535)n="u",i=4;else if(e<=4294967295)n="U",i=8;else throw new Ui("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+zn.repeat("0",i-t.length)+t}k(ON,"encodeHex");var gV=1,Ju=2;function LN(e){this.schema=e.schema||eN,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=zn.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=NN(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==='"'?Ju:gV,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}k(LN,"State");function rb(e,t){for(var n=zn.repeat(" ",t),i=0,r=-1,l="",s,c=e.length;i<c;)r=e.indexOf(`
|
|
254
|
+
`,i),r===-1?(s=e.slice(i),i=c):(s=e.slice(i,r+1),i=r+1),s.length&&s!==`
|
|
255
|
+
`&&(l+=n),l+=s;return l}k(rb,"indentString");function ap(e,t){return`
|
|
256
|
+
`+zn.repeat(" ",e.indent*t)}k(ap,"generateNextLine");function RN(e,t){var n,i,r;for(n=0,i=e.implicitTypes.length;n<i;n+=1)if(r=e.implicitTypes[n],r.resolve(t))return!0;return!1}k(RN,"testImplicitResolving");function eh(e){return e===JY||e===ZY}k(eh,"isWhitespace");function Yo(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==$x||65536<=e&&e<=1114111}k(Yo,"isPrintable");function ab(e){return Yo(e)&&e!==$x&&e!==QY&&e!==Qu}k(ab,"isNsCharOrWhitespace");function lb(e,t,n){var i=ab(e),r=i&&!eh(e);return(n?i:i&&e!==kN&&e!==EN&&e!==TN&&e!==AN&&e!==MN)&&e!==ib&&!(t===rp&&!r)||ab(t)&&!eh(t)&&e===ib||t===rp&&r}k(lb,"isPlainSafe");function DN(e){return Yo(e)&&e!==$x&&!eh(e)&&e!==lV&&e!==cV&&e!==rp&&e!==kN&&e!==EN&&e!==TN&&e!==AN&&e!==MN&&e!==ib&&e!==iV&&e!==aV&&e!==eV&&e!==fV&&e!==sV&&e!==oV&&e!==rV&&e!==tV&&e!==nV&&e!==uV&&e!==hV}k(DN,"isPlainSafeFirst");function BN(e){return!eh(e)&&e!==rp}k(BN,"isPlainSafeLast");function Co(e,t){var n=e.charCodeAt(t),i;return n>=55296&&n<=56319&&t+1<e.length&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}k(Co,"codePointAt");function Fx(e){var t=/^\n* /;return t.test(e)}k(Fx,"needIndentIndicator");var IN=1,sb=2,$N=3,FN=4,xo=5;function zN(e,t,n,i,r,l,s,c){var u,h=0,d=null,p=!1,y=!1,m=i!==-1,x=-1,_=DN(Co(e,0))&&BN(Co(e,e.length-1));if(t||s)for(u=0;u<e.length;h>=65536?u+=2:u++){if(h=Co(e,u),!Yo(h))return xo;_=_&&lb(h,d,c),d=h}else{for(u=0;u<e.length;h>=65536?u+=2:u++){if(h=Co(e,u),h===Qu)p=!0,m&&(y=y||u-x-1>i&&e[x+1]!==" ",x=u);else if(!Yo(h))return xo;_=_&&lb(h,d,c),d=h}y=y||m&&u-x-1>i&&e[x+1]!==" "}return!p&&!y?_&&!s&&!r(e)?IN:l===Ju?xo:sb:n>9&&Fx(e)?xo:s?l===Ju?xo:sb:y?FN:$N}k(zN,"chooseScalarStyle");function PN(e,t,n,i,r){e.dump=(function(){if(t.length===0)return e.quotingType===Ju?'""':"''";if(!e.noCompatMode&&(dV.indexOf(t)!==-1||pV.test(t)))return e.quotingType===Ju?'"'+t+'"':"'"+t+"'";var l=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-l),c=i||e.flowLevel>-1&&n>=e.flowLevel;function u(h){return RN(e,h)}switch(k(u,"testAmbiguity"),zN(t,c,e.indent,s,u,e.quotingType,e.forceQuotes&&!i,r)){case IN:return t;case sb:return"'"+t.replace(/'/g,"''")+"'";case $N:return"|"+ob(t,e.indent)+cb(rb(t,l));case FN:return">"+ob(t,e.indent)+cb(rb(HN(t,s),l));case xo:return'"'+UN(t)+'"';default:throw new Ui("impossible error: invalid scalar style")}})()}k(PN,"writeScalar");function ob(e,t){var n=Fx(e)?String(t):"",i=e[e.length-1]===`
|
|
257
|
+
`,r=i&&(e[e.length-2]===`
|
|
258
|
+
`||e===`
|
|
259
|
+
`),l=r?"+":i?"":"-";return n+l+`
|
|
260
|
+
`}k(ob,"blockHeader");function cb(e){return e[e.length-1]===`
|
|
261
|
+
`?e.slice(0,-1):e}k(cb,"dropEndingNewline");function HN(e,t){for(var n=/(\n+)([^\n]*)/g,i=(function(){var h=e.indexOf(`
|
|
262
|
+
`);return h=h!==-1?h:e.length,n.lastIndex=h,ub(e.slice(0,h),t)})(),r=e[0]===`
|
|
263
|
+
`||e[0]===" ",l,s;s=n.exec(e);){var c=s[1],u=s[2];l=u[0]===" ",i+=c+(!r&&!l&&u!==""?`
|
|
264
|
+
`:"")+ub(u,t),r=l}return i}k(HN,"foldString");function ub(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,i,r=0,l,s=0,c=0,u="";i=n.exec(e);)c=i.index,c-r>t&&(l=s>r?s:c,u+=`
|
|
265
|
+
`+e.slice(r,l),r=l+1),s=c;return u+=`
|
|
266
|
+
`,e.length-r>t&&s>r?u+=e.slice(r,s)+`
|
|
267
|
+
`+e.slice(s+1):u+=e.slice(r),u.slice(1)}k(ub,"foldLine");function UN(e){for(var t="",n=0,i,r=0;r<e.length;n>=65536?r+=2:r++)n=Co(e,r),i=di[n],!i&&Yo(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||ON(n);return t}k(UN,"escapeString");function qN(e,t,n){var i="",r=e.tag,l,s,c;for(l=0,s=n.length;l<s;l+=1)c=n[l],e.replacer&&(c=e.replacer.call(n,String(l),c)),(ra(e,t,c,!1,!1)||typeof c>"u"&&ra(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=r,e.dump="["+i+"]"}k(qN,"writeFlowSequence");function hb(e,t,n,i){var r="",l=e.tag,s,c,u;for(s=0,c=n.length;s<c;s+=1)u=n[s],e.replacer&&(u=e.replacer.call(n,String(s),u)),(ra(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&ra(e,t+1,null,!0,!0,!1,!0))&&((!i||r!=="")&&(r+=ap(e,t)),e.dump&&Qu===e.dump.charCodeAt(0)?r+="-":r+="- ",r+=e.dump);e.tag=l,e.dump=r||"[]"}k(hb,"writeBlockSequence");function jN(e,t,n){var i="",r=e.tag,l=Object.keys(n),s,c,u,h,d;for(s=0,c=l.length;s<c;s+=1)d="",i!==""&&(d+=", "),e.condenseFlow&&(d+='"'),u=l[s],h=n[u],e.replacer&&(h=e.replacer.call(n,u,h)),ra(e,t,u,!1,!1)&&(e.dump.length>1024&&(d+="? "),d+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ra(e,t,h,!1,!1)&&(d+=e.dump,i+=d));e.tag=r,e.dump="{"+i+"}"}k(jN,"writeFlowMapping");function GN(e,t,n,i){var r="",l=e.tag,s=Object.keys(n),c,u,h,d,p,y;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Ui("sortKeys must be a boolean or a function");for(c=0,u=s.length;c<u;c+=1)y="",(!i||r!=="")&&(y+=ap(e,t)),h=s[c],d=n[h],e.replacer&&(d=e.replacer.call(n,h,d)),ra(e,t+1,h,!0,!0,!0)&&(p=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,p&&(e.dump&&Qu===e.dump.charCodeAt(0)?y+="?":y+="? "),y+=e.dump,p&&(y+=ap(e,t)),ra(e,t+1,d,!0,p)&&(e.dump&&Qu===e.dump.charCodeAt(0)?y+=":":y+=": ",y+=e.dump,r+=y));e.tag=l,e.dump=r||"{}"}k(GN,"writeBlockMapping");function fb(e,t,n){var i,r,l,s,c,u;for(r=n?e.explicitTypes:e.implicitTypes,l=0,s=r.length;l<s;l+=1)if(c=r[l],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(n?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag="?",c.represent){if(u=e.styleMap[c.tag]||c.defaultStyle,SN.call(c.represent)==="[object Function]")i=c.represent(t,u);else if(CN.call(c.represent,u))i=c.represent[u](t,u);else throw new Ui("!<"+c.tag+'> tag resolver accepts not "'+u+'" style');e.dump=i}return!0}return!1}k(fb,"detectType");function ra(e,t,n,i,r,l,s){e.tag=null,e.dump=n,fb(e,n,!1)||fb(e,n,!0);var c=SN.call(e.dump),u=i,h;i&&(i=e.flowLevel<0||e.flowLevel>t);var d=c==="[object Object]"||c==="[object Array]",p,y;if(d&&(p=e.duplicates.indexOf(n),y=p!==-1),(e.tag!==null&&e.tag!=="?"||y||e.indent!==2&&t>0)&&(r=!1),y&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(d&&y&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),c==="[object Object]")i&&Object.keys(e.dump).length!==0?(GN(e,t,e.dump,r),y&&(e.dump="&ref_"+p+e.dump)):(jN(e,t,e.dump),y&&(e.dump="&ref_"+p+" "+e.dump));else if(c==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?hb(e,t-1,e.dump,r):hb(e,t,e.dump,r),y&&(e.dump="&ref_"+p+e.dump)):(qN(e,t,e.dump),y&&(e.dump="&ref_"+p+" "+e.dump));else if(c==="[object String]")e.tag!=="?"&&PN(e,e.dump,t,l,u);else{if(c==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Ui("unacceptable kind of an object to dump "+c)}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}k(ra,"writeNode");function WN(e,t){var n=[],i=[],r,l;for(lp(e,n,i),r=0,l=i.length;r<l;r+=1)t.duplicates.push(n[i[r]]);t.usedDuplicates=new Array(l)}k(WN,"getDuplicateReferences");function lp(e,t,n){var i,r,l;if(e!==null&&typeof e=="object")if(r=t.indexOf(e),r!==-1)n.indexOf(r)===-1&&n.push(r);else if(t.push(e),Array.isArray(e))for(r=0,l=e.length;r<l;r+=1)lp(e[r],t,n);else for(i=Object.keys(e),r=0,l=i.length;r<l;r+=1)lp(e[i[r]],t,n)}k(lp,"inspectNode");function mV(e,t){t=t||{};var n=new LN(t);n.noRefs||WN(e,n);var i=e;return n.replacer&&(i=n.replacer.call({"":i},"",i)),ra(n,0,i,!0,!0)?n.dump+`
|
|
268
|
+
`:""}k(mV,"dump$1");function yV(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.")}}k(yV,"renamed");var bV=$M,xV=KY.load;/*! Bundled license information:
|
|
269
|
+
|
|
270
|
+
js-yaml/dist/js-yaml.mjs:
|
|
271
|
+
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
|
|
272
|
+
*/var ai={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4},C2={arrow_point:9,arrow_cross:12.5,arrow_circle:12.5};function Cu(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=on(e),t=on(t);const[n,i]=[e.x,e.y],[r,l]=[t.x,t.y],s=r-n,c=l-i;return{angle:Math.atan(c/s),deltaX:s,deltaY:c}}k(Cu,"calculateDeltaAndAngle");var on=k(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),_V=k(e=>({x:k(function(t,n,i){let r=0;const l=on(i[0]).x<on(i[i.length-1]).x?"left":"right";if(n===0&&Object.hasOwn(ai,e.arrowTypeStart)){const{angle:m,deltaX:x}=Cu(i[0],i[1]);r=ai[e.arrowTypeStart]*Math.cos(m)*(x>=0?1:-1)}else if(n===i.length-1&&Object.hasOwn(ai,e.arrowTypeEnd)){const{angle:m,deltaX:x}=Cu(i[i.length-1],i[i.length-2]);r=ai[e.arrowTypeEnd]*Math.cos(m)*(x>=0?1:-1)}const s=Math.abs(on(t).x-on(i[i.length-1]).x),c=Math.abs(on(t).y-on(i[i.length-1]).y),u=Math.abs(on(t).x-on(i[0]).x),h=Math.abs(on(t).y-on(i[0]).y),d=ai[e.arrowTypeStart],p=ai[e.arrowTypeEnd],y=1;if(s<p&&s>0&&c<p){let m=p+y-s;m*=l==="right"?-1:1,r-=m}if(u<d&&u>0&&h<d){let m=d+y-u;m*=l==="right"?-1:1,r+=m}return on(t).x+r},"x"),y:k(function(t,n,i){let r=0;const l=on(i[0]).y<on(i[i.length-1]).y?"down":"up";if(n===0&&Object.hasOwn(ai,e.arrowTypeStart)){const{angle:m,deltaY:x}=Cu(i[0],i[1]);r=ai[e.arrowTypeStart]*Math.abs(Math.sin(m))*(x>=0?1:-1)}else if(n===i.length-1&&Object.hasOwn(ai,e.arrowTypeEnd)){const{angle:m,deltaY:x}=Cu(i[i.length-1],i[i.length-2]);r=ai[e.arrowTypeEnd]*Math.abs(Math.sin(m))*(x>=0?1:-1)}const s=Math.abs(on(t).y-on(i[i.length-1]).y),c=Math.abs(on(t).x-on(i[i.length-1]).x),u=Math.abs(on(t).y-on(i[0]).y),h=Math.abs(on(t).x-on(i[0]).x),d=ai[e.arrowTypeStart],p=ai[e.arrowTypeEnd],y=1;if(s<p&&s>0&&c<p){let m=p+y-s;m*=l==="up"?-1:1,r-=m}if(u<d&&u>0&&h<d){let m=d+y-u;m*=l==="up"?-1:1,r+=m}return on(t).y+r},"y")}),"getLineFunctionsWithOffset"),zx=k(({flowchart:e})=>{var r,l;const t=((r=e==null?void 0:e.subGraphTitleMargin)==null?void 0:r.top)??0,n=((l=e==null?void 0:e.subGraphTitleMargin)==null?void 0:l.bottom)??0,i=t+n;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins"),vV=k(e=>{const{handDrawnSeed:t}=It();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),ec=k(e=>{const t=wV([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),wV=k(e=>{const t=new Map;return e.forEach(n=>{const[i,r]=n.split(":");t.set(i.trim(),r==null?void 0:r.trim())}),t},"styles2Map"),YN=k(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"),Be=k(e=>{const{stylesArray:t}=ec(e),n=[],i=[],r=[],l=[];return t.forEach(s=>{const c=s[0];YN(c)?n.push(s.join(":")+" !important"):(i.push(s.join(":")+" !important"),c.includes("stroke")&&r.push(s.join(":")+" !important"),c==="fill"&&l.push(s.join(":")+" !important"))}),{labelStyles:n.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:r,backgroundStyles:l}},"styles2String"),De=k((e,t)=>{var u;const{themeVariables:n,handDrawnSeed:i}=It(),{nodeBorder:r,mainBkg:l}=n,{stylesMap:s}=ec(e);return Object.assign({roughness:.7,fill:s.get("fill")||l,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||r,seed:i,strokeWidth:((u=s.get("stroke-width"))==null?void 0:u.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:SV(s.get("stroke-dasharray"))},t)},"userNodeOverrides"),SV=k(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const r=isNaN(t[0])?0:t[0];return[r,r]}const n=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[n,i]},"getStrokeDashArray"),du={},In={},k2;function CV(){return k2||(k2=1,Object.defineProperty(In,"__esModule",{value:!0}),In.BLANK_URL=In.relativeFirstCharacters=In.whitespaceEscapeCharsRegex=In.urlSchemeRegex=In.ctrlCharactersRegex=In.htmlCtrlEntityRegex=In.htmlEntitiesRegex=In.invalidProtocolRegex=void 0,In.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,In.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,In.htmlCtrlEntityRegex=/&(newline|tab);/gi,In.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,In.urlSchemeRegex=/^.+(:|:)/gim,In.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,In.relativeFirstCharacters=[".","/"],In.BLANK_URL="about:blank"),In}var E2;function kV(){if(E2)return du;E2=1,Object.defineProperty(du,"__esModule",{value:!0}),du.sanitizeUrl=void 0;var e=CV();function t(s){return e.relativeFirstCharacters.indexOf(s[0])>-1}function n(s){var c=s.replace(e.ctrlCharactersRegex,"");return c.replace(e.htmlEntitiesRegex,function(u,h){return String.fromCharCode(h)})}function i(s){return URL.canParse(s)}function r(s){try{return decodeURIComponent(s)}catch{return s}}function l(s){if(!s)return e.BLANK_URL;var c,u=r(s.trim());do u=n(u).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim(),u=r(u),c=u.match(e.ctrlCharactersRegex)||u.match(e.htmlEntitiesRegex)||u.match(e.htmlCtrlEntityRegex)||u.match(e.whitespaceEscapeCharsRegex);while(c&&c.length>0);var h=u;if(!h)return e.BLANK_URL;if(t(h))return h;var d=h.trimStart(),p=d.match(e.urlSchemeRegex);if(!p)return h;var y=p[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(y))return e.BLANK_URL;var m=d.replace(/\\/g,"/");if(y==="mailto:"||y.includes("://"))return m;if(y==="http:"||y==="https:"){if(!i(m))return e.BLANK_URL;var x=new URL(m);return x.protocol=x.protocol.toLowerCase(),x.hostname=x.hostname.toLowerCase(),x.toString()}return m}return du.sanitizeUrl=l,du}var EV=kV(),VN=typeof global=="object"&&global&&global.Object===Object&&global,TV=typeof self=="object"&&self&&self.Object===Object&&self,sa=VN||TV||Function("return this")(),sp=sa.Symbol,XN=Object.prototype,AV=XN.hasOwnProperty,MV=XN.toString,pu=sp?sp.toStringTag:void 0;function NV(e){var t=AV.call(e,pu),n=e[pu];try{e[pu]=void 0;var i=!0}catch{}var r=MV.call(e);return i&&(t?e[pu]=n:delete e[pu]),r}var OV=Object.prototype,LV=OV.toString;function RV(e){return LV.call(e)}var DV="[object Null]",BV="[object Undefined]",T2=sp?sp.toStringTag:void 0;function tc(e){return e==null?e===void 0?BV:DV:T2&&T2 in Object(e)?NV(e):RV(e)}function ws(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var IV="[object AsyncFunction]",$V="[object Function]",FV="[object GeneratorFunction]",zV="[object Proxy]";function Px(e){if(!ws(e))return!1;var t=tc(e);return t==$V||t==FV||t==IV||t==zV}var X0=sa["__core-js_shared__"],A2=(function(){var e=/[^.]+$/.exec(X0&&X0.keys&&X0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function PV(e){return!!A2&&A2 in e}var HV=Function.prototype,UV=HV.toString;function Ss(e){if(e!=null){try{return UV.call(e)}catch{}try{return e+""}catch{}}return""}var qV=/[\\^$.*+?()[\]{}|]/g,jV=/^\[object .+?Constructor\]$/,GV=Function.prototype,WV=Object.prototype,YV=GV.toString,VV=WV.hasOwnProperty,XV=RegExp("^"+YV.call(VV).replace(qV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function KV(e){if(!ws(e)||PV(e))return!1;var t=Px(e)?XV:jV;return t.test(Ss(e))}function ZV(e,t){return e==null?void 0:e[t]}function Cs(e,t){var n=ZV(e,t);return KV(n)?n:void 0}var th=Cs(Object,"create");function QV(){this.__data__=th?th(null):{},this.size=0}function JV(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var eX="__lodash_hash_undefined__",tX=Object.prototype,nX=tX.hasOwnProperty;function iX(e){var t=this.__data__;if(th){var n=t[e];return n===eX?void 0:n}return nX.call(t,e)?t[e]:void 0}var rX=Object.prototype,aX=rX.hasOwnProperty;function lX(e){var t=this.__data__;return th?t[e]!==void 0:aX.call(t,e)}var sX="__lodash_hash_undefined__";function oX(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=th&&t===void 0?sX:t,this}function ys(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}ys.prototype.clear=QV;ys.prototype.delete=JV;ys.prototype.get=iX;ys.prototype.has=lX;ys.prototype.set=oX;function cX(){this.__data__=[],this.size=0}function qp(e,t){return e===t||e!==e&&t!==t}function jp(e,t){for(var n=e.length;n--;)if(qp(e[n][0],t))return n;return-1}var uX=Array.prototype,hX=uX.splice;function fX(e){var t=this.__data__,n=jp(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():hX.call(t,n,1),--this.size,!0}function dX(e){var t=this.__data__,n=jp(t,e);return n<0?void 0:t[n][1]}function pX(e){return jp(this.__data__,e)>-1}function gX(e,t){var n=this.__data__,i=jp(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function Ua(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Ua.prototype.clear=cX;Ua.prototype.delete=fX;Ua.prototype.get=dX;Ua.prototype.has=pX;Ua.prototype.set=gX;var nh=Cs(sa,"Map");function mX(){this.size=0,this.__data__={hash:new ys,map:new(nh||Ua),string:new ys}}function yX(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Gp(e,t){var n=e.__data__;return yX(t)?n[typeof t=="string"?"string":"hash"]:n.map}function bX(e){var t=Gp(this,e).delete(e);return this.size-=t?1:0,t}function xX(e){return Gp(this,e).get(e)}function _X(e){return Gp(this,e).has(e)}function vX(e,t){var n=Gp(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}function Ol(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Ol.prototype.clear=mX;Ol.prototype.delete=bX;Ol.prototype.get=xX;Ol.prototype.has=_X;Ol.prototype.set=vX;var wX="Expected a function";function yh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wX);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],l=n.cache;if(l.has(r))return l.get(r);var s=e.apply(this,i);return n.cache=l.set(r,s)||l,s};return n.cache=new(yh.Cache||Ol),n}yh.Cache=Ol;function SX(){this.__data__=new Ua,this.size=0}function CX(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function kX(e){return this.__data__.get(e)}function EX(e){return this.__data__.has(e)}var TX=200;function AX(e,t){var n=this.__data__;if(n instanceof Ua){var i=n.__data__;if(!nh||i.length<TX-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ol(i)}return n.set(e,t),this.size=n.size,this}function nc(e){var t=this.__data__=new Ua(e);this.size=t.size}nc.prototype.clear=SX;nc.prototype.delete=CX;nc.prototype.get=kX;nc.prototype.has=EX;nc.prototype.set=AX;var op=(function(){try{var e=Cs(Object,"defineProperty");return e({},"",{}),e}catch{}})();function Hx(e,t,n){t=="__proto__"&&op?op(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function db(e,t,n){(n!==void 0&&!qp(e[t],n)||n===void 0&&!(t in e))&&Hx(e,t,n)}function MX(e){return function(t,n,i){for(var r=-1,l=Object(t),s=i(t),c=s.length;c--;){var u=s[++r];if(n(l[u],u,l)===!1)break}return t}}var NX=MX(),KN=typeof exports=="object"&&exports&&!exports.nodeType&&exports,M2=KN&&typeof module=="object"&&module&&!module.nodeType&&module,OX=M2&&M2.exports===KN,N2=OX?sa.Buffer:void 0,O2=N2?N2.allocUnsafe:void 0;function LX(e,t){if(t)return e.slice();var n=e.length,i=O2?O2(n):new e.constructor(n);return e.copy(i),i}var L2=sa.Uint8Array;function RX(e){var t=new e.constructor(e.byteLength);return new L2(t).set(new L2(e)),t}function DX(e,t){var n=t?RX(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function BX(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}var R2=Object.create,IX=(function(){function e(){}return function(t){if(!ws(t))return{};if(R2)return R2(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function ZN(e,t){return function(n){return e(t(n))}}var QN=ZN(Object.getPrototypeOf,Object),$X=Object.prototype;function Wp(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||$X;return e===n}function FX(e){return typeof e.constructor=="function"&&!Wp(e)?IX(QN(e)):{}}function bh(e){return e!=null&&typeof e=="object"}var zX="[object Arguments]";function D2(e){return bh(e)&&tc(e)==zX}var JN=Object.prototype,PX=JN.hasOwnProperty,HX=JN.propertyIsEnumerable,cp=D2((function(){return arguments})())?D2:function(e){return bh(e)&&PX.call(e,"callee")&&!HX.call(e,"callee")},up=Array.isArray,UX=9007199254740991;function eO(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=UX}function Yp(e){return e!=null&&eO(e.length)&&!Px(e)}function qX(e){return bh(e)&&Yp(e)}function jX(){return!1}var tO=typeof exports=="object"&&exports&&!exports.nodeType&&exports,B2=tO&&typeof module=="object"&&module&&!module.nodeType&&module,GX=B2&&B2.exports===tO,I2=GX?sa.Buffer:void 0,WX=I2?I2.isBuffer:void 0,Ux=WX||jX,YX="[object Object]",VX=Function.prototype,XX=Object.prototype,nO=VX.toString,KX=XX.hasOwnProperty,ZX=nO.call(Object);function QX(e){if(!bh(e)||tc(e)!=YX)return!1;var t=QN(e);if(t===null)return!0;var n=KX.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&nO.call(n)==ZX}var JX="[object Arguments]",eK="[object Array]",tK="[object Boolean]",nK="[object Date]",iK="[object Error]",rK="[object Function]",aK="[object Map]",lK="[object Number]",sK="[object Object]",oK="[object RegExp]",cK="[object Set]",uK="[object String]",hK="[object WeakMap]",fK="[object ArrayBuffer]",dK="[object DataView]",pK="[object Float32Array]",gK="[object Float64Array]",mK="[object Int8Array]",yK="[object Int16Array]",bK="[object Int32Array]",xK="[object Uint8Array]",_K="[object Uint8ClampedArray]",vK="[object Uint16Array]",wK="[object Uint32Array]",an={};an[pK]=an[gK]=an[mK]=an[yK]=an[bK]=an[xK]=an[_K]=an[vK]=an[wK]=!0;an[JX]=an[eK]=an[fK]=an[tK]=an[dK]=an[nK]=an[iK]=an[rK]=an[aK]=an[lK]=an[sK]=an[oK]=an[cK]=an[uK]=an[hK]=!1;function SK(e){return bh(e)&&eO(e.length)&&!!an[tc(e)]}function CK(e){return function(t){return e(t)}}var iO=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$u=iO&&typeof module=="object"&&module&&!module.nodeType&&module,kK=$u&&$u.exports===iO,K0=kK&&VN.process,$2=(function(){try{var e=$u&&$u.require&&$u.require("util").types;return e||K0&&K0.binding&&K0.binding("util")}catch{}})(),F2=$2&&$2.isTypedArray,qx=F2?CK(F2):SK;function pb(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var EK=Object.prototype,TK=EK.hasOwnProperty;function AK(e,t,n){var i=e[t];(!(TK.call(e,t)&&qp(i,n))||n===void 0&&!(t in e))&&Hx(e,t,n)}function MK(e,t,n,i){var r=!n;n||(n={});for(var l=-1,s=t.length;++l<s;){var c=t[l],u=void 0;u===void 0&&(u=e[c]),r?Hx(n,c,u):AK(n,c,u)}return n}function NK(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var OK=9007199254740991,LK=/^(?:0|[1-9]\d*)$/;function rO(e,t){var n=typeof e;return t=t??OK,!!t&&(n=="number"||n!="symbol"&&LK.test(e))&&e>-1&&e%1==0&&e<t}var RK=Object.prototype,DK=RK.hasOwnProperty;function BK(e,t){var n=up(e),i=!n&&cp(e),r=!n&&!i&&Ux(e),l=!n&&!i&&!r&&qx(e),s=n||i||r||l,c=s?NK(e.length,String):[],u=c.length;for(var h in e)(t||DK.call(e,h))&&!(s&&(h=="length"||r&&(h=="offset"||h=="parent")||l&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||rO(h,u)))&&c.push(h);return c}function IK(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var $K=Object.prototype,FK=$K.hasOwnProperty;function zK(e){if(!ws(e))return IK(e);var t=Wp(e),n=[];for(var i in e)i=="constructor"&&(t||!FK.call(e,i))||n.push(i);return n}function aO(e){return Yp(e)?BK(e,!0):zK(e)}function PK(e){return MK(e,aO(e))}function HK(e,t,n,i,r,l,s){var c=pb(e,n),u=pb(t,n),h=s.get(u);if(h){db(e,n,h);return}var d=l?l(c,u,n+"",e,t,s):void 0,p=d===void 0;if(p){var y=up(u),m=!y&&Ux(u),x=!y&&!m&&qx(u);d=u,y||m||x?up(c)?d=c:qX(c)?d=BX(c):m?(p=!1,d=LX(u,!0)):x?(p=!1,d=DX(u,!0)):d=[]:QX(u)||cp(u)?(d=c,cp(c)?d=PK(c):(!ws(c)||Px(c))&&(d=FX(u))):p=!1}p&&(s.set(u,d),r(d,u,i,l,s),s.delete(u)),db(e,n,d)}function lO(e,t,n,i,r){e!==t&&NX(t,function(l,s){if(r||(r=new nc),ws(l))HK(e,t,s,n,lO,i,r);else{var c=i?i(pb(e,s),l,s+"",e,t,r):void 0;c===void 0&&(c=l),db(e,s,c)}},aO)}function sO(e){return e}function UK(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var z2=Math.max;function qK(e,t,n){return t=z2(t===void 0?e.length-1:t,0),function(){for(var i=arguments,r=-1,l=z2(i.length-t,0),s=Array(l);++r<l;)s[r]=i[t+r];r=-1;for(var c=Array(t+1);++r<t;)c[r]=i[r];return c[t]=n(s),UK(e,this,c)}}function jK(e){return function(){return e}}var GK=op?function(e,t){return op(e,"toString",{configurable:!0,enumerable:!1,value:jK(t),writable:!0})}:sO,WK=800,YK=16,VK=Date.now;function XK(e){var t=0,n=0;return function(){var i=VK(),r=YK-(i-n);if(n=i,r>0){if(++t>=WK)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var KK=XK(GK);function ZK(e,t){return KK(qK(e,t,sO),e+"")}function QK(e,t,n){if(!ws(n))return!1;var i=typeof t;return(i=="number"?Yp(n)&&rO(t,n.length):i=="string"&&t in n)?qp(n[t],e):!1}function JK(e){return ZK(function(t,n){var i=-1,r=n.length,l=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(l=e.length>3&&typeof l=="function"?(r--,l):void 0,s&&QK(n[0],n[1],s)&&(l=r<3?void 0:l,r=1),t=Object(t);++i<r;){var c=n[i];c&&e(t,c,i,l)}return t})}var eZ=JK(function(e,t,n){lO(e,t,n)}),tZ="",nZ={curveBasis:md,curveBasisClosed:rY,curveBasisOpen:aY,curveBumpX:WA,curveBumpY:YA,curveBundle:lY,curveCardinalClosed:sY,curveCardinalOpen:oY,curveCardinal:ZA,curveCatmullRomClosed:cY,curveCatmullRomOpen:uY,curveCatmullRom:JA,curveLinear:Zd,curveLinearClosed:hY,curveMonotoneX:aM,curveMonotoneY:lM,curveNatural:oM,curveStep:cM,curveStepAfter:hM,curveStepBefore:uM},iZ=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,rZ=k(function(e,t){const n=oO(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(n)){const s=n.map(c=>c.args);Pd(s),i=Fn(i,[...s])}else i=n.args;if(!i)return;let r=dx(e,t);const l="config";return i[l]!==void 0&&(r==="flowchart-v2"&&(r="flowchart"),i[r]=i[l],delete i[l]),i},"detectInit"),oO=k(function(e,t=null){var n,i;try{const r=new RegExp(`[%]{2}(?![{]${iZ.source})(?=[}][%]{2}).*
|
|
273
|
+
`,"ig");e=e.trim().replace(r,"").replace(/'/gm,'"'),fe.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let l;const s=[];for(;(l=Bu.exec(e))!==null;)if(l.index===Bu.lastIndex&&Bu.lastIndex++,l&&!t||t&&((n=l[1])!=null&&n.match(t))||t&&((i=l[2])!=null&&i.match(t))){const c=l[1]?l[1]:l[2],u=l[3]?l[3].trim():l[4]?JSON.parse(l[4].trim()):null;s.push({type:c,args:u})}return s.length===0?{type:e,args:null}:s.length===1?s[0]:s}catch(r){return fe.error(`ERROR: ${r.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),aZ=k(function(e){return e.replace(Bu,"")},"removeDirectives"),lZ=k(function(e,t){for(const[n,i]of t.entries())if(i.match(e))return n;return-1},"isSubstringInArray");function jx(e,t){if(!e)return t;const n=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return nZ[n]??t}k(jx,"interpolateToCurve");function cO(e,t){const n=e.trim();if(n)return t.securityLevel!=="loose"?EV.sanitizeUrl(n):n}k(cO,"formatUrl");var sZ=k((e,...t)=>{const n=e.split("."),i=n.length-1,r=n[i];let l=window;for(let s=0;s<i;s++)if(l=l[n[s]],!l){fe.error(`Function name: ${e} not found in window`);return}l[r](...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))}k(Gx,"distance");function uO(e){let t,n=0;e.forEach(r=>{n+=Gx(r,t),t=r});const i=n/2;return Wx(e,i)}k(uO,"traverseEdge");function hO(e){return e.length===1?e[0]:uO(e)}k(hO,"calcLabelPosition");var P2=k((e,t=2)=>{const n=Math.pow(10,t);return Math.round(e*n)/n},"roundNumber"),Wx=k((e,t)=>{let n,i=t;for(const r of e){if(n){const l=Gx(r,n);if(l===0)return n;if(l<i)i-=l;else{const s=i/l;if(s<=0)return n;if(s>=1)return{x:r.x,y:r.y};if(s>0&&s<1)return{x:P2((1-s)*n.x+s*r.x,5),y:P2((1-s)*n.y+s*r.y,5)}}}n=r}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),oZ=k((e,t,n)=>{fe.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());const r=Wx(t,25),l=e?10:5,s=Math.atan2(t[0].y-r.y,t[0].x-r.x),c={x:0,y:0};return c.x=Math.sin(s)*l+(t[0].x+r.x)/2,c.y=-Math.cos(s)*l+(t[0].y+r.y)/2,c},"calcCardinalityPosition");function fO(e,t,n){const i=structuredClone(n);fe.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const r=25+e,l=Wx(i,r),s=10+e*.5,c=Math.atan2(i[0].y-l.y,i[0].x-l.x),u={x:0,y:0};return t==="start_left"?(u.x=Math.sin(c+Math.PI)*s+(i[0].x+l.x)/2,u.y=-Math.cos(c+Math.PI)*s+(i[0].y+l.y)/2):t==="end_right"?(u.x=Math.sin(c-Math.PI)*s+(i[0].x+l.x)/2-5,u.y=-Math.cos(c-Math.PI)*s+(i[0].y+l.y)/2-5):t==="end_left"?(u.x=Math.sin(c)*s+(i[0].x+l.x)/2-5,u.y=-Math.cos(c)*s+(i[0].y+l.y)/2-5):(u.x=Math.sin(c)*s+(i[0].x+l.x)/2,u.y=-Math.cos(c)*s+(i[0].y+l.y)/2),u}k(fO,"calcTerminalLabelPosition");function dO(e){let t="",n="";for(const i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?n=n+i+";":t=t+i+";");return{style:t,labelStyle:n}}k(dO,"getStylesFromArray");var H2=0,cZ=k(()=>(H2++,"id-"+Math.random().toString(36).substr(2,12)+"-"+H2),"generateId");function pO(e){let t="";const n="0123456789abcdef",i=n.length;for(let r=0;r<e;r++)t+=n.charAt(Math.floor(Math.random()*i));return t}k(pO,"makeRandomHex");var uZ=k(e=>pO(e.length),"random"),hZ=k(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"),fZ=k(function(e,t){const n=t.text.replace(Jo.lineBreakRegex," "),[,i]=Vp(t.fontSize),r=e.append("text");r.attr("x",t.x),r.attr("y",t.y),r.style("text-anchor",t.anchor),r.style("font-family",t.fontFamily),r.style("font-size",i),r.style("font-weight",t.fontWeight),r.attr("fill",t.fill),t.class!==void 0&&r.attr("class",t.class);const l=r.append("tspan");return l.attr("x",t.x+t.textMargin*2),l.attr("fill",t.fill),l.text(n),r},"drawSimpleText"),dZ=yh((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},n),Jo.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),r=[];let l="";return i.forEach((s,c)=>{const u=za(`${s} `,n),h=za(l,n);if(u>t){const{hyphenatedStrings:y,remainingWord:m}=pZ(s,t,"-",n);r.push(l,...y),l=m}else h+u>=t?(r.push(l),l=s):l=[l,s].filter(Boolean).join(" ");c+1===i.length&&r.push(l)}),r.filter(s=>s!=="").join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),pZ=yh((e,t,n="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const r=[...e],l=[];let s="";return r.forEach((c,u)=>{const h=`${s}${c}`;if(za(h,i)>=t){const p=u+1,y=r.length===p,m=`${h}${n}`;l.push(y?h:m),s=""}else s=h}),{hyphenatedStrings:l,remainingWord:s}},(e,t,n="-",i)=>`${e}${t}${n}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function gO(e,t){return Yx(e,t).height}k(gO,"calculateTextHeight");function za(e,t){return Yx(e,t).width}k(za,"calculateTextWidth");var Yx=yh((e,t)=>{const{fontSize:n=12,fontFamily:i="Arial",fontWeight:r=400}=t;if(!e)return{width:0,height:0};const[,l]=Vp(n),s=["sans-serif",i],c=e.split(Jo.lineBreakRegex),u=[],h=Ct("body");if(!h.remove)return{width:0,height:0,lineHeight:0};const d=h.append("svg");for(const y of s){let m=0;const x={width:0,height:0,lineHeight:0};for(const _ of c){const w=hZ();w.text=_||tZ;const S=fZ(d,w).style("font-size",l).style("font-weight",r).style("font-family",y),C=(S._groups||S)[0][0].getBBox();if(C.width===0&&C.height===0)throw new Error("svg element not in render tree");x.width=Math.round(Math.max(x.width,C.width)),m=Math.round(C.height),x.height+=m,x.lineHeight=Math.round(Math.max(x.lineHeight,m))}u.push(x)}d.remove();const p=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[p]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),$o,gZ=($o=class{constructor(t=!1,n){this.count=0,this.count=n?n.length:0,this.next=t?()=>this.count++:()=>Date.now()}},k($o,"InitIDGenerator"),$o),Zf,mZ=k(function(e){return Zf=Zf||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Zf.innerHTML=e,unescape(Zf.textContent)},"entityDecode");function Vx(e){return"str"in e}k(Vx,"isDetailedError");var yZ=k((e,t,n,i)=>{var l;if(!i)return;const r=(l=e.node())==null?void 0:l.getBBox();r&&e.append("text").text(i).attr("text-anchor","middle").attr("x",r.x+r.width/2).attr("y",-n).attr("class",t)},"insertTitle"),Vp=k(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 Xx(e,t){return eZ({},e,t)}k(Xx,"cleanAndMerge");var Ir={assignWithDepth:Fn,wrapLabel:dZ,calculateTextHeight:gO,calculateTextWidth:za,calculateTextDimensions:Yx,cleanAndMerge:Xx,detectInit:rZ,detectDirective:oO,isSubstringInArray:lZ,interpolateToCurve:jx,calcLabelPosition:hO,calcCardinalityPosition:oZ,calcTerminalLabelPosition:fO,formatUrl:cO,getStylesFromArray:dO,generateId:cZ,random:uZ,runFunc:sZ,entityDecode:mZ,insertTitle:yZ,isLabelCoordinateInPath:mO,parseFontSize:Vp,InitIDGenerator:gZ},bZ=k(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(n){return n.substring(0,n.length-1)}),t=t.replace(/#\w+;/g,function(n){const i=n.substring(1,n.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),t},"encodeEntities"),ks=k(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Nie=k((e,t,{counter:n=0,prefix:i,suffix:r},l)=>l||`${i?`${i}_`:""}${e}_${t}_${n}${r?`_${r}`:""}`,"getEdgeId");function ui(e){return e??null}k(ui,"handleUndefinedAttr");function mO(e,t){const n=Math.round(e.x),i=Math.round(e.y),r=t.replace(/(\d+\.\d+)/g,l=>Math.round(parseFloat(l)).toString());return r.includes(n.toString())||r.includes(i.toString())}k(mO,"isLabelCoordinateInPath");const xZ=Object.freeze({left:0,top:0,width:16,height:16}),hp=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),yO=Object.freeze({...xZ,...hp}),_Z=Object.freeze({...yO,body:"",hidden:!1}),vZ=Object.freeze({width:null,height:null}),wZ=Object.freeze({...vZ,...hp}),SZ=(e,t,n,i="")=>{const r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;i=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){const c=r.pop(),u=r.pop(),h={provider:r.length>0?r[0]:i,prefix:u,name:c};return Z0(h)?h:null}const l=r[0],s=l.split("-");if(s.length>1){const c={provider:i,prefix:s.shift(),name:s.join("-")};return Z0(c)?c:null}if(n&&i===""){const c={provider:i,prefix:"",name:l};return Z0(c,n)?c:null}return null},Z0=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function CZ(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(n.rotate=i),n}function U2(e,t){const n=CZ(e,t);for(const i in _Z)i in hp?i in e&&!(i in n)&&(n[i]=hp[i]):i in t?n[i]=t[i]:i in e&&(n[i]=e[i]);return n}function kZ(e,t){const n=e.icons,i=e.aliases||Object.create(null),r=Object.create(null);function l(s){if(n[s])return r[s]=[];if(!(s in r)){r[s]=null;const c=i[s]&&i[s].parent,u=c&&l(c);u&&(r[s]=[c].concat(u))}return r[s]}return(t||Object.keys(n).concat(Object.keys(i))).forEach(l),r}function q2(e,t,n){const i=e.icons,r=e.aliases||Object.create(null);let l={};function s(c){l=U2(i[c]||r[c],l)}return s(t),n.forEach(s),U2(e,l)}function EZ(e,t){if(e.icons[t])return q2(e,t,[]);const n=kZ(e,[t])[t];return n?q2(e,t,n):null}const TZ=/(-?[0-9.]*[0-9]+[0-9.]*)/g,AZ=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function j2(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const i=e.split(TZ);if(i===null||!i.length)return e;const r=[];let l=i.shift(),s=AZ.test(l);for(;;){if(s){const c=parseFloat(l);isNaN(c)?r.push(l):r.push(Math.ceil(c*t*n)/n)}else r.push(l);if(l=i.shift(),l===void 0)return r.join("");s=!s}}function MZ(e,t="defs"){let n="";const i=e.indexOf("<"+t);for(;i>=0;){const r=e.indexOf(">",i),l=e.indexOf("</"+t);if(r===-1||l===-1)break;const s=e.indexOf(">",l);if(s===-1)break;n+=e.slice(r+1,l).trim(),e=e.slice(0,i).trim()+e.slice(s+1)}return{defs:n,content:e}}function NZ(e,t){return e?"<defs>"+e+"</defs>"+t:t}function OZ(e,t,n){const i=MZ(e);return NZ(i.defs,t+i.content+n)}const LZ=e=>e==="unset"||e==="undefined"||e==="none";function RZ(e,t){const n={...yO,...e},i={...wZ,...t},r={left:n.left,top:n.top,width:n.width,height:n.height};let l=n.body;[n,i].forEach(_=>{const w=[],S=_.hFlip,C=_.vFlip;let E=_.rotate;S?C?E+=2:(w.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),w.push("scale(-1 1)"),r.top=r.left=0):C&&(w.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),w.push("scale(1 -1)"),r.top=r.left=0);let N;switch(E<0&&(E-=Math.floor(E/4)*4),E=E%4,E){case 1:N=r.height/2+r.top,w.unshift("rotate(90 "+N.toString()+" "+N.toString()+")");break;case 2:w.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:N=r.width/2+r.left,w.unshift("rotate(-90 "+N.toString()+" "+N.toString()+")");break}E%2===1&&(r.left!==r.top&&(N=r.left,r.left=r.top,r.top=N),r.width!==r.height&&(N=r.width,r.width=r.height,r.height=N)),w.length&&(l=OZ(l,'<g transform="'+w.join(" ")+'">',"</g>"))});const s=i.width,c=i.height,u=r.width,h=r.height;let d,p;s===null?(p=c===null?"1em":c==="auto"?h:c,d=j2(p,u/h)):(d=s==="auto"?u:s,p=c===null?j2(d,h/u):c==="auto"?h:c);const y={},m=(_,w)=>{LZ(w)||(y[_]=w.toString())};m("width",d),m("height",p);const x=[r.left,r.top,u,h];return y.viewBox=x.join(" "),{attributes:y,viewBox:x,body:l}}const DZ=/\sid="(\S+)"/g,G2=new Map;function BZ(e){e=e.replace(/[0-9]+$/,"")||"a";const t=G2.get(e)||0;return G2.set(e,t+1),t?`${e}${t}`:e}function IZ(e){const t=[];let n;for(;n=DZ.exec(e);)t.push(n[1]);if(!t.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(r=>{const l=BZ(r),s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+l+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function $Z(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)n+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function Kx(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Es=Kx();function bO(e){Es=e}var Fu={exec:()=>null};function Nt(e,t=""){let n=typeof e=="string"?e:e.source,i={replace:(r,l)=>{let s=typeof l=="string"?l:l.source;return s=s.replace(Si.caret,"$1"),n=n.replace(r,s),i},getRegex:()=>new RegExp(n,t)};return i}var FZ=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Si={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")},zZ=/^(?:[ \t]*(?:\n|$))+/,PZ=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,HZ=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,xh=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,UZ=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Zx=/(?:[*+-]|\d{1,9}[.)])/,xO=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_O=Nt(xO).replace(/bull/g,Zx).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(),qZ=Nt(xO).replace(/bull/g,Zx).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(),Qx=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,jZ=/^[^\n]+/,Jx=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,GZ=Nt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Jx).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),WZ=Nt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Zx).getRegex(),Xp="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",e1=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,YZ=Nt("^ {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",e1).replace("tag",Xp).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),vO=Nt(Qx).replace("hr",xh).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",Xp).getRegex(),VZ=Nt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",vO).getRegex(),t1={blockquote:VZ,code:PZ,def:GZ,fences:HZ,heading:UZ,hr:xh,html:YZ,lheading:_O,list:WZ,newline:zZ,paragraph:vO,table:Fu,text:jZ},W2=Nt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",xh).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",Xp).getRegex(),XZ={...t1,lheading:qZ,table:W2,paragraph:Nt(Qx).replace("hr",xh).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",W2).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",Xp).getRegex()},KZ={...t1,html:Nt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",e1).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:Fu,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Nt(Qx).replace("hr",xh).replace("heading",` *#{1,6} *[^
|
|
274
|
+
]`).replace("lheading",_O).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ZZ=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,QZ=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,wO=/^( {2,}|\\)\n(?!\s*$)/,JZ=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Kp=/[\p{P}\p{S}]/u,n1=/[\s\p{P}\p{S}]/u,SO=/[^\s\p{P}\p{S}]/u,eQ=Nt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,n1).getRegex(),CO=/(?!~)[\p{P}\p{S}]/u,tQ=/(?!~)[\s\p{P}\p{S}]/u,nQ=/(?:[^\s\p{P}\p{S}]|~)/u,iQ=Nt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",FZ?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),kO=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,rQ=Nt(kO,"u").replace(/punct/g,Kp).getRegex(),aQ=Nt(kO,"u").replace(/punct/g,CO).getRegex(),EO="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",lQ=Nt(EO,"gu").replace(/notPunctSpace/g,SO).replace(/punctSpace/g,n1).replace(/punct/g,Kp).getRegex(),sQ=Nt(EO,"gu").replace(/notPunctSpace/g,nQ).replace(/punctSpace/g,tQ).replace(/punct/g,CO).getRegex(),oQ=Nt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,SO).replace(/punctSpace/g,n1).replace(/punct/g,Kp).getRegex(),cQ=Nt(/\\(punct)/,"gu").replace(/punct/g,Kp).getRegex(),uQ=Nt(/^<(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(),hQ=Nt(e1).replace("(?:-->|$)","-->").getRegex(),fQ=Nt("^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",hQ).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),fp=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,dQ=Nt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",fp).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),TO=Nt(/^!?\[(label)\]\[(ref)\]/).replace("label",fp).replace("ref",Jx).getRegex(),AO=Nt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Jx).getRegex(),pQ=Nt("reflink|nolink(?!\\()","g").replace("reflink",TO).replace("nolink",AO).getRegex(),Y2=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,i1={_backpedal:Fu,anyPunctuation:cQ,autolink:uQ,blockSkip:iQ,br:wO,code:QZ,del:Fu,emStrongLDelim:rQ,emStrongRDelimAst:lQ,emStrongRDelimUnd:oQ,escape:ZZ,link:dQ,nolink:AO,punctuation:eQ,reflink:TO,reflinkSearch:pQ,tag:fQ,text:JZ,url:Fu},gQ={...i1,link:Nt(/^!?\[(label)\]\((.*?)\)/).replace("label",fp).getRegex(),reflink:Nt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fp).getRegex()},gb={...i1,emStrongRDelimAst:sQ,emStrongLDelim:aQ,url:Nt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Y2).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:Nt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Y2).getRegex()},mQ={...gb,br:Nt(wO).replace("{2,}","*").getRegex(),text:Nt(gb.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Qf={normal:t1,gfm:XZ,pedantic:KZ},gu={normal:i1,gfm:gb,breaks:mQ,pedantic:gQ},yQ={"&":"&","<":"<",">":">",'"':""","'":"'"},V2=e=>yQ[e];function Xr(e,t){if(t){if(Si.escapeTest.test(e))return e.replace(Si.escapeReplace,V2)}else if(Si.escapeTestNoEncode.test(e))return e.replace(Si.escapeReplaceNoEncode,V2);return e}function X2(e){try{e=encodeURI(e).replace(Si.percentDecode,"%")}catch{return null}return e}function K2(e,t){var l;let n=e.replace(Si.findPipe,(s,c,u)=>{let h=!1,d=c;for(;--d>=0&&u[d]==="\\";)h=!h;return h?"|":" |"}),i=n.split(Si.splitPipe),r=0;if(i[0].trim()||i.shift(),i.length>0&&!((l=i.at(-1))!=null&&l.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;r<i.length;r++)i[r]=i[r].trim().replace(Si.slashPipe,"|");return i}function mu(e,t,n){let i=e.length;if(i===0)return"";let r=0;for(;r<i&&e.charAt(i-r-1)===t;)r++;return e.slice(0,i-r)}function bQ(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])n++;else if(e[i]===t[1]&&(n--,n<0))return i;return n>0?-2:-1}function Z2(e,t,n,i,r){let l=t.href,s=t.title||null,c=e[1].replace(r.other.outputLinkReplace,"$1");i.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:l,title:s,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,u}function xQ(e,t,n){let i=e.match(n.other.indentCodeCompensation);if(i===null)return t;let r=i[1];return t.split(`
|
|
275
|
+
`).map(l=>{let s=l.match(n.other.beginningSpace);if(s===null)return l;let[c]=s;return c.length>=r.length?l.slice(r.length):l}).join(`
|
|
276
|
+
`)}var dp=class{constructor(t){He(this,"options");He(this,"rules");He(this,"lexer");this.options=t||Es}space(t){let n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){let n=this.rules.block.code.exec(t);if(n){let i=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?i:mu(i,`
|
|
277
|
+
`)}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let i=n[0],r=xQ(i,n[3]||"",this.rules);return{type:"code",raw:i,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:r}}}heading(t){let n=this.rules.block.heading.exec(t);if(n){let i=n[2].trim();if(this.rules.other.endingHash.test(i)){let r=mu(i,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(i=r.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:mu(n[0],`
|
|
278
|
+
`)}}blockquote(t){let n=this.rules.block.blockquote.exec(t);if(n){let i=mu(n[0],`
|
|
279
|
+
`).split(`
|
|
280
|
+
`),r="",l="",s=[];for(;i.length>0;){let c=!1,u=[],h;for(h=0;h<i.length;h++)if(this.rules.other.blockquoteStart.test(i[h]))u.push(i[h]),c=!0;else if(!c)u.push(i[h]);else break;i=i.slice(h);let d=u.join(`
|
|
281
|
+
`),p=d.replace(this.rules.other.blockquoteSetextReplace,`
|
|
282
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
283
|
+
${d}`:d,l=l?`${l}
|
|
284
|
+
${p}`:p;let y=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,s,!0),this.lexer.state.top=y,i.length===0)break;let m=s.at(-1);if((m==null?void 0:m.type)==="code")break;if((m==null?void 0:m.type)==="blockquote"){let x=m,_=x.raw+`
|
|
285
|
+
`+i.join(`
|
|
286
|
+
`),w=this.blockquote(_);s[s.length-1]=w,r=r.substring(0,r.length-x.raw.length)+w.raw,l=l.substring(0,l.length-x.text.length)+w.text;break}else if((m==null?void 0:m.type)==="list"){let x=m,_=x.raw+`
|
|
287
|
+
`+i.join(`
|
|
288
|
+
`),w=this.list(_);s[s.length-1]=w,r=r.substring(0,r.length-m.raw.length)+w.raw,l=l.substring(0,l.length-x.raw.length)+w.raw,i=_.substring(s.at(-1).raw.length).split(`
|
|
289
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:s,text:l}}}list(t){let n=this.rules.block.list.exec(t);if(n){let i=n[1].trim(),r=i.length>1,l={type:"list",raw:"",ordered:r,start:r?+i.slice(0,-1):"",loose:!1,items:[]};i=r?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=r?i:"[*+-]");let s=this.rules.other.listItemRegex(i),c=!1;for(;t;){let h=!1,d="",p="";if(!(n=s.exec(t))||this.rules.block.hr.test(t))break;d=n[0],t=t.substring(d.length);let y=n[2].split(`
|
|
290
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,C=>" ".repeat(3*C.length)),m=t.split(`
|
|
291
|
+
`,1)[0],x=!y.trim(),_=0;if(this.options.pedantic?(_=2,p=y.trimStart()):x?_=n[1].length+1:(_=n[2].search(this.rules.other.nonSpaceChar),_=_>4?1:_,p=y.slice(_),_+=n[1].length),x&&this.rules.other.blankLine.test(m)&&(d+=m+`
|
|
292
|
+
`,t=t.substring(m.length+1),h=!0),!h){let C=this.rules.other.nextBulletRegex(_),E=this.rules.other.hrRegex(_),N=this.rules.other.fencesBeginRegex(_),M=this.rules.other.headingBeginRegex(_),A=this.rules.other.htmlBeginRegex(_);for(;t;){let O=t.split(`
|
|
293
|
+
`,1)[0],q;if(m=O,this.options.pedantic?(m=m.replace(this.rules.other.listReplaceNesting," "),q=m):q=m.replace(this.rules.other.tabCharGlobal," "),N.test(m)||M.test(m)||A.test(m)||C.test(m)||E.test(m))break;if(q.search(this.rules.other.nonSpaceChar)>=_||!m.trim())p+=`
|
|
294
|
+
`+q.slice(_);else{if(x||y.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||N.test(y)||M.test(y)||E.test(y))break;p+=`
|
|
295
|
+
`+m}!x&&!m.trim()&&(x=!0),d+=O+`
|
|
296
|
+
`,t=t.substring(O.length+1),y=q.slice(_)}}l.loose||(c?l.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(c=!0));let w=null,S;this.options.gfm&&(w=this.rules.other.listIsTask.exec(p),w&&(S=w[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),l.items.push({type:"list_item",raw:d,task:!!w,checked:S,loose:!1,text:p,tokens:[]}),l.raw+=d}let u=l.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let h=0;h<l.items.length;h++)if(this.lexer.state.top=!1,l.items[h].tokens=this.lexer.blockTokens(l.items[h].text,[]),!l.loose){let d=l.items[h].tokens.filter(y=>y.type==="space"),p=d.length>0&&d.some(y=>this.rules.other.anyLine.test(y.raw));l.loose=p}if(l.loose)for(let h=0;h<l.items.length;h++)l.items[h].loose=!0;return l}}html(t){let n=this.rules.block.html.exec(t);if(n)return{type:"html",block:!0,raw:n[0],pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:n[0]}}def(t){let n=this.rules.block.def.exec(t);if(n){let i=n[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",l=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:i,raw:n[0],href:r,title:l}}}table(t){var c;let n=this.rules.block.table.exec(t);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let i=K2(n[1]),r=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=(c=n[3])!=null&&c.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
297
|
+
`):[],s={type:"table",raw:n[0],header:[],align:[],rows:[]};if(i.length===r.length){for(let u of r)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<i.length;u++)s.header.push({text:i[u],tokens:this.lexer.inline(i[u]),header:!0,align:s.align[u]});for(let u of l)s.rows.push(K2(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 n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){let n=this.rules.block.paragraph.exec(t);if(n){let i=n[1].charAt(n[1].length-1)===`
|
|
298
|
+
`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){let n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){let n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){let n=this.rules.inline.link.exec(t);if(n){let i=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let s=mu(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{let s=bQ(n[2],"()");if(s===-2)return;if(s>-1){let c=(n[0].indexOf("!")===0?5:4)+n[1].length+s;n[2]=n[2].substring(0,s),n[0]=n[0].substring(0,c).trim(),n[3]=""}}let r=n[2],l="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(r);s&&(r=s[1],l=s[3])}else l=n[3]?n[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?r=r.slice(1):r=r.slice(1,-1)),Z2(n,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let r=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),l=n[r.toLowerCase()];if(!l){let s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return Z2(i,l,i[0],this.lexer,this.rules)}}emStrong(t,n,i=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||r[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!i||this.rules.inline.punctuation.exec(i))){let l=[...r[0]].length-1,s,c,u=l,h=0,d=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,n=n.slice(-1*t.length+l);(r=d.exec(n))!=null;){if(s=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!s)continue;if(c=[...s].length,r[3]||r[4]){u+=c;continue}else if((r[5]||r[6])&&l%3&&!((l+c)%3)){h+=c;continue}if(u-=c,u>0)continue;c=Math.min(c,c+u+h);let p=[...r[0]][0].length,y=t.slice(0,l+r.index+p+c);if(Math.min(l,c)%2){let x=y.slice(1,-1);return{type:"em",raw:y,text:x,tokens:this.lexer.inlineTokens(x)}}let m=y.slice(2,-2);return{type:"strong",raw:y,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(t){let n=this.rules.inline.code.exec(t);if(n){let i=n[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(i),l=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return r&&l&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:n[0],text:i}}}br(t){let n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){let n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){let n=this.rules.inline.autolink.exec(t);if(n){let i,r;return n[2]==="@"?(i=n[1],r="mailto:"+i):(i=n[1],r=i),{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let n;if(n=this.rules.inline.url.exec(t)){let r,l;if(n[2]==="@")r=n[0],l="mailto:"+r;else{let s;do s=n[0],n[0]=((i=this.rules.inline._backpedal.exec(n[0]))==null?void 0:i[0])??"";while(s!==n[0]);r=n[0],n[1]==="www."?l="http://"+n[0]:l=n[0]}return{type:"link",raw:n[0],text:r,href:l,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){let n=this.rules.inline.text.exec(t);if(n){let i=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:i}}}},Rr=class mb{constructor(t){He(this,"tokens");He(this,"options");He(this,"state");He(this,"tokenizer");He(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Es,this.options.tokenizer=this.options.tokenizer||new dp,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 n={other:Si,block:Qf.normal,inline:gu.normal};this.options.pedantic?(n.block=Qf.pedantic,n.inline=gu.pedantic):this.options.gfm&&(n.block=Qf.gfm,this.options.breaks?n.inline=gu.breaks:n.inline=gu.gfm),this.tokenizer.rules=n}static get rules(){return{block:Qf,inline:gu}}static lex(t,n){return new mb(n).lex(t)}static lexInline(t,n){return new mb(n).inlineTokens(t)}lex(t){t=t.replace(Si.carriageReturn,`
|
|
299
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let i=this.inlineQueue[n];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],i=!1){var r,l,s;for(this.options.pedantic&&(t=t.replace(Si.tabCharGlobal," ").replace(Si.spaceLine,""));t;){let c;if((l=(r=this.options.extensions)==null?void 0:r.block)!=null&&l.some(h=>(c=h.call({lexer:this},t,n))?(t=t.substring(c.raw.length),n.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);let h=n.at(-1);c.raw.length===1&&h!==void 0?h.raw+=`
|
|
300
|
+
`:n.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let h=n.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
|
|
301
|
+
`)?"":`
|
|
302
|
+
`)+c.raw,h.text+=`
|
|
303
|
+
`+c.text,this.inlineQueue.at(-1).src=h.text):n.push(c);continue}if(c=this.tokenizer.fences(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.heading(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.hr(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.blockquote(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.list(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.html(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.def(t)){t=t.substring(c.raw.length);let h=n.at(-1);(h==null?void 0:h.type)==="paragraph"||(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
|
|
304
|
+
`)?"":`
|
|
305
|
+
`)+c.raw,h.text+=`
|
|
306
|
+
`+c.raw,this.inlineQueue.at(-1).src=h.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},n.push(c));continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),n.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),n.push(c);continue}let u=t;if((s=this.options.extensions)!=null&&s.startBlock){let h=1/0,d=t.slice(1),p;this.options.extensions.startBlock.forEach(y=>{p=y.call({lexer:this},d),typeof p=="number"&&p>=0&&(h=Math.min(h,p))}),h<1/0&&h>=0&&(u=t.substring(0,h+1))}if(this.state.top&&(c=this.tokenizer.paragraph(u))){let h=n.at(-1);i&&(h==null?void 0:h.type)==="paragraph"?(h.raw+=(h.raw.endsWith(`
|
|
307
|
+
`)?"":`
|
|
308
|
+
`)+c.raw,h.text+=`
|
|
309
|
+
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):n.push(c),i=u.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let h=n.at(-1);(h==null?void 0:h.type)==="text"?(h.raw+=(h.raw.endsWith(`
|
|
310
|
+
`)?"":`
|
|
311
|
+
`)+c.raw,h.text+=`
|
|
312
|
+
`+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=h.text):n.push(c);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,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var u,h,d,p,y;let i=t,r=null;if(this.tokens.links){let m=Object.keys(this.tokens.links);if(m.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)m.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,r.index)+"["+"a".repeat(r[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,r.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let l;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)l=r[2]?r[2].length:0,i=i.slice(0,r.index+l)+"["+"a".repeat(r[0].length-l-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((h=(u=this.options.hooks)==null?void 0:u.emStrongMask)==null?void 0:h.call({lexer:this},i))??i;let s=!1,c="";for(;t;){s||(c=""),s=!1;let m;if((p=(d=this.options.extensions)==null?void 0:d.inline)!=null&&p.some(_=>(m=_.call({lexer:this},t,n))?(t=t.substring(m.raw.length),n.push(m),!0):!1))continue;if(m=this.tokenizer.escape(t)){t=t.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.tag(t)){t=t.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.link(t)){t=t.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(m.raw.length);let _=n.at(-1);m.type==="text"&&(_==null?void 0:_.type)==="text"?(_.raw+=m.raw,_.text+=m.text):n.push(m);continue}if(m=this.tokenizer.emStrong(t,i,c)){t=t.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.codespan(t)){t=t.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.br(t)){t=t.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.del(t)){t=t.substring(m.raw.length),n.push(m);continue}if(m=this.tokenizer.autolink(t)){t=t.substring(m.raw.length),n.push(m);continue}if(!this.state.inLink&&(m=this.tokenizer.url(t))){t=t.substring(m.raw.length),n.push(m);continue}let x=t;if((y=this.options.extensions)!=null&&y.startInline){let _=1/0,w=t.slice(1),S;this.options.extensions.startInline.forEach(C=>{S=C.call({lexer:this},w),typeof S=="number"&&S>=0&&(_=Math.min(_,S))}),_<1/0&&_>=0&&(x=t.substring(0,_+1))}if(m=this.tokenizer.inlineText(x)){t=t.substring(m.raw.length),m.raw.slice(-1)!=="_"&&(c=m.raw.slice(-1)),s=!0;let _=n.at(-1);(_==null?void 0:_.type)==="text"?(_.raw+=m.raw,_.text+=m.text):n.push(m);continue}if(t){let _="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(_);break}else throw new Error(_)}}return n}},pp=class{constructor(t){He(this,"options");He(this,"parser");this.options=t||Es}space(t){return""}code({text:t,lang:n,escaped:i}){var s;let r=(s=(n||"").match(Si.notSpaceStart))==null?void 0:s[0],l=t.replace(Si.endingNewline,"")+`
|
|
313
|
+
`;return r?'<pre><code class="language-'+Xr(r)+'">'+(i?l:Xr(l,!0))+`</code></pre>
|
|
314
|
+
`:"<pre><code>"+(i?l:Xr(l,!0))+`</code></pre>
|
|
315
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
316
|
+
${this.parser.parse(t)}</blockquote>
|
|
317
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:n}){return`<h${n}>${this.parser.parseInline(t)}</h${n}>
|
|
318
|
+
`}hr(t){return`<hr>
|
|
319
|
+
`}list(t){let n=t.ordered,i=t.start,r="";for(let c=0;c<t.items.length;c++){let u=t.items[c];r+=this.listitem(u)}let l=n?"ol":"ul",s=n&&i!==1?' start="'+i+'"':"";return"<"+l+s+`>
|
|
320
|
+
`+r+"</"+l+`>
|
|
321
|
+
`}listitem(t){var i;let n="";if(t.task){let r=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=r+" "+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=r+" "+Xr(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:r+" ",text:r+" ",escaped:!0}):n+=r+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`<li>${n}</li>
|
|
322
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
323
|
+
`}table(t){let n="",i="";for(let l=0;l<t.header.length;l++)i+=this.tablecell(t.header[l]);n+=this.tablerow({text:i});let r="";for(let l=0;l<t.rows.length;l++){let s=t.rows[l];i="";for(let c=0;c<s.length;c++)i+=this.tablecell(s[c]);r+=this.tablerow({text:i})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
324
|
+
<thead>
|
|
325
|
+
`+n+`</thead>
|
|
326
|
+
`+r+`</table>
|
|
327
|
+
`}tablerow({text:t}){return`<tr>
|
|
328
|
+
${t}</tr>
|
|
329
|
+
`}tablecell(t){let n=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+n+`</${i}>
|
|
330
|
+
`}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>${Xr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:n,tokens:i}){let r=this.parser.parseInline(i),l=X2(t);if(l===null)return r;t=l;let s='<a href="'+t+'"';return n&&(s+=' title="'+Xr(n)+'"'),s+=">"+r+"</a>",s}image({href:t,title:n,text:i,tokens:r}){r&&(i=this.parser.parseInline(r,this.parser.textRenderer));let l=X2(t);if(l===null)return Xr(i);t=l;let s=`<img src="${t}" alt="${i}"`;return n&&(s+=` title="${Xr(n)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Xr(t.text)}},r1=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""}},Dr=class yb{constructor(t){He(this,"options");He(this,"renderer");He(this,"textRenderer");this.options=t||Es,this.options.renderer=this.options.renderer||new pp,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new r1}static parse(t,n){return new yb(n).parse(t)}static parseInline(t,n){return new yb(n).parseInline(t)}parse(t,n=!0){var r,l;let i="";for(let s=0;s<t.length;s++){let c=t[s];if((l=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&l[c.type]){let h=c,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)){i+=d||"";continue}}let u=c;switch(u.type){case"space":{i+=this.renderer.space(u);continue}case"hr":{i+=this.renderer.hr(u);continue}case"heading":{i+=this.renderer.heading(u);continue}case"code":{i+=this.renderer.code(u);continue}case"table":{i+=this.renderer.table(u);continue}case"blockquote":{i+=this.renderer.blockquote(u);continue}case"list":{i+=this.renderer.list(u);continue}case"html":{i+=this.renderer.html(u);continue}case"def":{i+=this.renderer.def(u);continue}case"paragraph":{i+=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+=`
|
|
331
|
+
`+this.renderer.text(h);n?i+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d,escaped:!0}]}):i+=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 i}parseInline(t,n=this.renderer){var r,l;let i="";for(let s=0;s<t.length;s++){let c=t[s];if((l=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&l[c.type]){let h=this.options.extensions.renderers[c.type].call({parser:this},c);if(h!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){i+=h||"";continue}}let u=c;switch(u.type){case"escape":{i+=n.text(u);break}case"html":{i+=n.html(u);break}case"link":{i+=n.link(u);break}case"image":{i+=n.image(u);break}case"strong":{i+=n.strong(u);break}case"em":{i+=n.em(u);break}case"codespan":{i+=n.codespan(u);break}case"br":{i+=n.br(u);break}case"del":{i+=n.del(u);break}case"text":{i+=n.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 i}},rd,ku=(rd=class{constructor(t){He(this,"options");He(this,"block");this.options=t||Es}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Rr.lex:Rr.lexInline}provideParser(){return this.block?Dr.parse:Dr.parseInline}},He(rd,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),He(rd,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),rd),_Q=class{constructor(...t){He(this,"defaults",Kx());He(this,"options",this.setOptions);He(this,"parse",this.parseMarkdown(!0));He(this,"parseInline",this.parseMarkdown(!1));He(this,"Parser",Dr);He(this,"Renderer",pp);He(this,"TextRenderer",r1);He(this,"Lexer",Rr);He(this,"Tokenizer",dp);He(this,"Hooks",ku);this.use(...t)}walkTokens(t,n){var r,l;let i=[];for(let s of t)switch(i=i.concat(n.call(this,s)),s.type){case"table":{let c=s;for(let u of c.header)i=i.concat(this.walkTokens(u.tokens,n));for(let u of c.rows)for(let h of u)i=i.concat(this.walkTokens(h.tokens,n));break}case"list":{let c=s;i=i.concat(this.walkTokens(c.items,n));break}default:{let c=s;(l=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&l[c.type]?this.defaults.extensions.childTokens[c.type].forEach(u=>{let h=c[u].flat(1/0);i=i.concat(this.walkTokens(h,n))}):c.tokens&&(i=i.concat(this.walkTokens(c.tokens,n)))}}return i}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let r={...i};if(r.async=this.defaults.async||r.async||!1,i.extensions&&(i.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if("renderer"in l){let s=n.renderers[l.name];s?n.renderers[l.name]=function(...c){let u=l.renderer.apply(this,c);return u===!1&&(u=s.apply(this,c)),u}:n.renderers[l.name]=l.renderer}if("tokenizer"in l){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=n[l.level];s?s.unshift(l.tokenizer):n[l.level]=[l.tokenizer],l.start&&(l.level==="block"?n.startBlock?n.startBlock.push(l.start):n.startBlock=[l.start]:l.level==="inline"&&(n.startInline?n.startInline.push(l.start):n.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(n.childTokens[l.name]=l.childTokens)}),r.extensions=n),i.renderer){let l=this.defaults.renderer||new pp(this.defaults);for(let s in i.renderer){if(!(s in l))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let c=s,u=i.renderer[c],h=l[c];l[c]=(...d)=>{let p=u.apply(l,d);return p===!1&&(p=h.apply(l,d)),p||""}}r.renderer=l}if(i.tokenizer){let l=this.defaults.tokenizer||new dp(this.defaults);for(let s in i.tokenizer){if(!(s in l))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let c=s,u=i.tokenizer[c],h=l[c];l[c]=(...d)=>{let p=u.apply(l,d);return p===!1&&(p=h.apply(l,d)),p}}r.tokenizer=l}if(i.hooks){let l=this.defaults.hooks||new ku;for(let s in i.hooks){if(!(s in l))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let c=s,u=i.hooks[c],h=l[c];ku.passThroughHooks.has(s)?l[c]=d=>{if(this.defaults.async&&ku.passThroughHooksRespectAsync.has(s))return(async()=>{let y=await u.call(l,d);return h.call(l,y)})();let p=u.call(l,d);return h.call(l,p)}:l[c]=(...d)=>{if(this.defaults.async)return(async()=>{let y=await u.apply(l,d);return y===!1&&(y=await h.apply(l,d)),y})();let p=u.apply(l,d);return p===!1&&(p=h.apply(l,d)),p}}r.hooks=l}if(i.walkTokens){let l=this.defaults.walkTokens,s=i.walkTokens;r.walkTokens=function(c){let u=[];return u.push(s.call(this,c)),l&&(u=u.concat(l.call(this,c))),u}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Rr.lex(t,n??this.defaults)}parser(t,n){return Dr.parse(t,n??this.defaults)}parseMarkdown(t){return(n,i)=>{let r={...i},l={...this.defaults,...r},s=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&r.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 n>"u"||n===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(l.hooks&&(l.hooks.options=l,l.hooks.block=t),l.async)return(async()=>{let c=l.hooks?await l.hooks.preprocess(n):n,u=await(l.hooks?await l.hooks.provideLexer():t?Rr.lex:Rr.lexInline)(c,l),h=l.hooks?await l.hooks.processAllTokens(u):u;l.walkTokens&&await Promise.all(this.walkTokens(h,l.walkTokens));let d=await(l.hooks?await l.hooks.provideParser():t?Dr.parse:Dr.parseInline)(h,l);return l.hooks?await l.hooks.postprocess(d):d})().catch(s);try{l.hooks&&(n=l.hooks.preprocess(n));let c=(l.hooks?l.hooks.provideLexer():t?Rr.lex:Rr.lexInline)(n,l);l.hooks&&(c=l.hooks.processAllTokens(c)),l.walkTokens&&this.walkTokens(c,l.walkTokens);let u=(l.hooks?l.hooks.provideParser():t?Dr.parse:Dr.parseInline)(c,l);return l.hooks&&(u=l.hooks.postprocess(u)),u}catch(c){return s(c)}}}onError(t,n){return i=>{if(i.message+=`
|
|
332
|
+
Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error occurred:</p><pre>"+Xr(i.message+"",!0)+"</pre>";return n?Promise.resolve(r):r}if(n)return Promise.reject(i);throw i}}},bs=new _Q;function $t(e,t){return bs.parse(e,t)}$t.options=$t.setOptions=function(e){return bs.setOptions(e),$t.defaults=bs.defaults,bO($t.defaults),$t};$t.getDefaults=Kx;$t.defaults=Es;$t.use=function(...e){return bs.use(...e),$t.defaults=bs.defaults,bO($t.defaults),$t};$t.walkTokens=function(e,t){return bs.walkTokens(e,t)};$t.parseInline=bs.parseInline;$t.Parser=Dr;$t.parser=Dr.parse;$t.Renderer=pp;$t.TextRenderer=r1;$t.Lexer=Rr;$t.lexer=Rr.lex;$t.Tokenizer=dp;$t.Hooks=ku;$t.parse=$t;$t.options;$t.setOptions;$t.use;$t.walkTokens;$t.parseInline;Dr.parse;Rr.lex;function MO(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var r=i.reduce(function(c,u){var h=u.match(/\n([\t ]+|(?!\s).)/g);return h?c.concat(h.map(function(d){var p,y;return(y=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&y!==void 0?y:0})):c},[]);if(r.length){var l=new RegExp(`
|
|
333
|
+
[ ]{`+Math.min.apply(Math,r)+"}","g");i=i.map(function(c){return c.replace(l,`
|
|
334
|
+
`)})}i[0]=i[0].replace(/^\r?\n/,"");var s=i[0];return t.forEach(function(c,u){var h=s.match(/(?:^|\n)( *)$/),d=h?h[1]:"",p=c;typeof c=="string"&&c.includes(`
|
|
335
|
+
`)&&(p=String(c).split(`
|
|
336
|
+
`).map(function(y,m){return m===0?y:""+d+y}).join(`
|
|
337
|
+
`)),s+=p+i[u+1]}),s}var vQ={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},bb=new Map,NO=new Map,wQ=k(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(fe.debug("Registering icon pack:",t.name),"loader"in t)NO.set(t.name,t.loader);else if("icons"in t)bb.set(t.name,t.icons);else throw fe.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),OO=k(async(e,t)=>{const n=SZ(e,!0,t!==void 0);if(!n)throw new Error(`Invalid icon name: ${e}`);const i=n.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let r=bb.get(i);if(!r){const s=NO.get(i);if(!s)throw new Error(`Icon set not found: ${n.prefix}`);try{r={...await s(),prefix:i},bb.set(i,r)}catch(c){throw fe.error(c),new Error(`Failed to load icon set: ${n.prefix}`)}}const l=EZ(r,n.name);if(!l)throw new Error(`Icon not found: ${e}`);return l},"getRegisteredIconData"),SQ=k(async e=>{try{return await OO(e),!0}catch{return!1}},"isIconAvailable"),_h=k(async(e,t,n)=>{let i;try{i=await OO(e,t==null?void 0:t.fallbackPrefix)}catch(s){fe.error(s),i=vQ}const r=RZ(i,t),l=$Z(IZ(r.body),{...r.attributes,...n});return Cr(l,oi())},"getIconSVG");function LO(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
|
|
338
|
+
`).replace(/\n{2,}/g,`
|
|
339
|
+
`),r=MO(i);return t===!1?r.replace(/ /g," "):r}k(LO,"preprocessMarkdown");function RO(e,t={}){const n=LO(e,t),i=$t.lexer(n),r=[[]];let l=0;function s(c,u="normal"){c.type==="text"?c.text.split(`
|
|
340
|
+
`).forEach((d,p)=>{p!==0&&(l++,r.push([])),d.split(" ").forEach(y=>{y=y.replace(/'/g,"'"),y&&r[l].push({content:y,type:u})})}):c.type==="strong"||c.type==="em"?c.tokens.forEach(h=>{s(h,c.type)}):c.type==="html"&&r[l].push({content:c.text,type:"normal"})}return k(s,"processNode"),i.forEach(c=>{var u;c.type==="paragraph"?(u=c.tokens)==null||u.forEach(h=>{s(h)}):c.type==="html"?r[l].push({content:c.text,type:"normal"}):r[l].push({content:c.raw,type:"normal"})}),r}k(RO,"markdownToLines");function DO(e,{markdownAutoWrap:t}={}){const n=$t.lexer(e);function i(r){var l,s,c;return r.type==="text"?t===!1?r.text.replace(/\n */g,"<br/>").replace(/ /g," "):r.text.replace(/\n */g,"<br/>"):r.type==="strong"?`<strong>${(l=r.tokens)==null?void 0:l.map(i).join("")}</strong>`:r.type==="em"?`<em>${(s=r.tokens)==null?void 0:s.map(i).join("")}</em>`:r.type==="paragraph"?`<p>${(c=r.tokens)==null?void 0:c.map(i).join("")}</p>`:r.type==="space"?"":r.type==="html"?`${r.text}`:r.type==="escape"?r.text:(fe.warn(`Unsupported markdown: ${r.type}`),r.raw)}return k(i,"output"),n.map(i).join("")}k(DO,"markdownToHTML");function BO(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}k(BO,"splitTextToChars");function IO(e,t){const n=BO(t.content);return a1(e,[],n,t.type)}k(IO,"splitWordToFitWidth");function a1(e,t,n,i){if(n.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[r,...l]=n,s=[...t,r];return e([{content:s.join(""),type:i}])?a1(e,s,l,i):(t.length===0&&r&&(t.push(r),n.shift()),[{content:t.join(""),type:i},{content:n.join(""),type:i}])}k(a1,"splitWordToFitWidthRecursion");function $O(e,t){if(e.some(({content:n})=>n.includes(`
|
|
341
|
+
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return gp(e,t)}k($O,"splitLineToFitWidth");function gp(e,t,n=[],i=[]){if(e.length===0)return i.length>0&&n.push(i),n.length>0?n:[];let r="";e[0].content===" "&&(r=" ",e.shift());const l=e.shift()??{content:" ",type:"normal"},s=[...i];if(r!==""&&s.push({content:r,type:"normal"}),s.push(l),t(s))return gp(e,t,n,s);if(i.length>0)n.push(i),e.unshift(l);else if(l.content){const[c,u]=IO(t,l);n.push([c]),u.content&&e.unshift(u)}return gp(e,t,n)}k(gp,"splitLineToFitWidthRecursion");function xb(e,t){t&&e.attr("style",t)}k(xb,"applyStyle");async function FO(e,t,n,i,r=!1,l=oi()){const s=e.append("foreignObject");s.attr("width",`${10*n}px`),s.attr("height",`${10*n}px`);const c=s.append("xhtml:div"),u=qo(t.label)?await px(t.label.replace(Jo.lineBreakRegex,`
|
|
342
|
+
`),l):Cr(t.label,l),h=t.isNode?"nodeLabel":"edgeLabel",d=c.append("span");d.html(u),xb(d,t.labelStyle),d.attr("class",`${h} ${i}`),xb(c,t.labelStyle),c.style("display","table-cell"),c.style("white-space","nowrap"),c.style("line-height","1.5"),c.style("max-width",n+"px"),c.style("text-align","center"),c.attr("xmlns","http://www.w3.org/1999/xhtml"),r&&c.attr("class","labelBkg");let p=c.node().getBoundingClientRect();return p.width===n&&(c.style("display","table"),c.style("white-space","break-spaces"),c.style("width",n+"px"),p=c.node().getBoundingClientRect()),s.node()}k(FO,"addHtmlSpan");function Zp(e,t,n){return e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*n-.1+"em").attr("dy",n+"em")}k(Zp,"createTspan");function zO(e,t,n){const i=e.append("text"),r=Zp(i,1,t);Qp(r,n);const l=r.node().getComputedTextLength();return i.remove(),l}k(zO,"computeWidthOfText");function CQ(e,t,n){var s;const i=e.append("text"),r=Zp(i,1,t);Qp(r,[{content:n,type:"normal"}]);const l=(s=r.node())==null?void 0:s.getBoundingClientRect();return l&&i.remove(),l}k(CQ,"computeDimensionOfText");function PO(e,t,n,i=!1){const l=t.append("g"),s=l.insert("rect").attr("class","background").attr("style","stroke: none"),c=l.append("text").attr("y","-10.1");let u=0;for(const h of n){const d=k(y=>zO(l,1.1,y)<=e,"checkWidth"),p=d(h)?[h]:$O(h,d);for(const y of p){const m=Zp(c,u,1.1);Qp(m,y),u++}}if(i){const h=c.node().getBBox(),d=2;return s.attr("x",h.x-d).attr("y",h.y-d).attr("width",h.width+2*d).attr("height",h.height+2*d),l.node()}else return c.node()}k(PO,"createFormattedText");function Qp(e,t){e.text(""),t.forEach((n,i)=>{const r=e.append("tspan").attr("font-style",n.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",n.type==="strong"?"bold":"normal");i===0?r.text(n.content):r.text(" "+n.content)})}k(Qp,"updateTextContentAndStyles");async function HO(e,t={}){const n=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(r,l,s)=>(n.push((async()=>{const c=`${l}:${s}`;return await SQ(c)?await _h(c,void 0,{class:"label-icon"}):`<i class='${Cr(r,t).replace(":"," ")}'></i>`})()),r));const i=await Promise.all(n);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}k(HO,"replaceIconSubstring");var Ll=k(async(e,t="",{style:n="",isTitle:i=!1,classes:r="",useHtmlLabels:l=!0,isNode:s=!0,width:c=200,addSvgBackground:u=!1}={},h)=>{if(fe.debug("XYZ createText",t,n,i,r,l,s,"addSvgBackground: ",u),l){const d=DO(t,h),p=await HO(ks(d),h),y=t.replace(/\\\\/g,"\\"),m={isNode:s,label:qo(t)?y:p,labelStyle:n.replace("fill:","color:")};return await FO(e,m,c,r,u,h)}else{const d=t.replace(/<br\s*\/?>/g,"<br/>"),p=RO(d.replace("<br>","<br/>"),h),y=PO(c,e,p,t?u:!1);if(s){/stroke:/.exec(n)&&(n=n.replace("stroke:","lineColor:"));const m=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Ct(y).attr("style",m)}else{const m=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Ct(y).select("rect").attr("style",m.replace(/background:/g,"fill:"));const x=n.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Ct(y).select("text").attr("style",x)}return y}},"createText");function Q0(e,t,n){if(e&&e.length){const[i,r]=t,l=Math.PI/180*n,s=Math.cos(l),c=Math.sin(l);for(const u of e){const[h,d]=u;u[0]=(h-i)*s-(d-r)*c+i,u[1]=(h-i)*c+(d-r)*s+r}}}function kQ(e,t){return e[0]===t[0]&&e[1]===t[1]}function EQ(e,t,n,i=1){const r=n,l=Math.max(t,.1),s=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,c=[0,0];if(r)for(const h of s)Q0(h,c,r);const u=(function(h,d,p){const y=[];for(const C of h){const E=[...C];kQ(E[0],E[E.length-1])||E.push([E[0][0],E[0][1]]),E.length>2&&y.push(E)}const m=[];d=Math.max(d,.1);const x=[];for(const C of y)for(let E=0;E<C.length-1;E++){const N=C[E],M=C[E+1];if(N[1]!==M[1]){const A=Math.min(N[1],M[1]);x.push({ymin:A,ymax:Math.max(N[1],M[1]),x:A===N[1]?N[0]:M[0],islope:(M[0]-N[0])/(M[1]-N[1])})}}if(x.sort(((C,E)=>C.ymin<E.ymin?-1:C.ymin>E.ymin?1:C.x<E.x?-1:C.x>E.x?1:C.ymax===E.ymax?0:(C.ymax-E.ymax)/Math.abs(C.ymax-E.ymax))),!x.length)return m;let _=[],w=x[0].ymin,S=0;for(;_.length||x.length;){if(x.length){let C=-1;for(let E=0;E<x.length&&!(x[E].ymin>w);E++)C=E;x.splice(0,C+1).forEach((E=>{_.push({s:w,edge:E})}))}if(_=_.filter((C=>!(C.edge.ymax<=w))),_.sort(((C,E)=>C.edge.x===E.edge.x?0:(C.edge.x-E.edge.x)/Math.abs(C.edge.x-E.edge.x))),(p!==1||S%d==0)&&_.length>1)for(let C=0;C<_.length;C+=2){const E=C+1;if(E>=_.length)break;const N=_[C].edge,M=_[E].edge;m.push([[Math.round(N.x),w],[Math.round(M.x),w]])}w+=p,_.forEach((C=>{C.edge.x=C.edge.x+p*C.edge.islope})),S++}return m})(s,l,i);if(r){for(const h of s)Q0(h,c,-r);(function(h,d,p){const y=[];h.forEach((m=>y.push(...m))),Q0(y,d,p)})(u,c,-r)}return u}function vh(e,t){var n;const i=t.hachureAngle+90;let r=t.hachureGap;r<0&&(r=4*t.strokeWidth),r=Math.round(Math.max(r,.1));let l=1;return t.roughness>=1&&(((n=t.randomizer)===null||n===void 0?void 0:n.next())||Math.random())>.7&&(l=r),EQ(e,r,i,l||1)}class l1{constructor(t){this.helper=t}fillPolygons(t,n){return this._fillPolygons(t,n)}_fillPolygons(t,n){const i=vh(t,n);return{type:"fillSketch",ops:this.renderLines(i,n)}}renderLines(t,n){const i=[];for(const r of t)i.push(...this.helper.doubleLineOps(r[0][0],r[0][1],r[1][0],r[1][1],n));return i}}function Jp(e){const t=e[0],n=e[1];return Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2))}class TQ extends l1{fillPolygons(t,n){let i=n.hachureGap;i<0&&(i=4*n.strokeWidth),i=Math.max(i,.1);const r=vh(t,Object.assign({},n,{hachureGap:i})),l=Math.PI/180*n.hachureAngle,s=[],c=.5*i*Math.cos(l),u=.5*i*Math.sin(l);for(const[h,d]of r)Jp([h,d])&&s.push([[h[0]-c,h[1]+u],[...d]],[[h[0]+c,h[1]-u],[...d]]);return{type:"fillSketch",ops:this.renderLines(s,n)}}}class AQ extends l1{fillPolygons(t,n){const i=this._fillPolygons(t,n),r=Object.assign({},n,{hachureAngle:n.hachureAngle+90}),l=this._fillPolygons(t,r);return i.ops=i.ops.concat(l.ops),i}}class MQ{constructor(t){this.helper=t}fillPolygons(t,n){const i=vh(t,n=Object.assign({},n,{hachureAngle:0}));return this.dotsOnLines(i,n)}dotsOnLines(t,n){const i=[];let r=n.hachureGap;r<0&&(r=4*n.strokeWidth),r=Math.max(r,.1);let l=n.fillWeight;l<0&&(l=n.strokeWidth/2);const s=r/4;for(const c of t){const u=Jp(c),h=u/r,d=Math.ceil(h)-1,p=u-d*r,y=(c[0][0]+c[1][0])/2-r/4,m=Math.min(c[0][1],c[1][1]);for(let x=0;x<d;x++){const _=m+p+x*r,w=y-s+2*Math.random()*s,S=_-s+2*Math.random()*s,C=this.helper.ellipse(w,S,l,l,n);i.push(...C.ops)}}return{type:"fillSketch",ops:i}}}class NQ{constructor(t){this.helper=t}fillPolygons(t,n){const i=vh(t,n);return{type:"fillSketch",ops:this.dashedLine(i,n)}}dashedLine(t,n){const i=n.dashOffset<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashOffset,r=n.dashGap<0?n.hachureGap<0?4*n.strokeWidth:n.hachureGap:n.dashGap,l=[];return t.forEach((s=>{const c=Jp(s),u=Math.floor(c/(i+r)),h=(c+r-u*(i+r))/2;let d=s[0],p=s[1];d[0]>p[0]&&(d=s[1],p=s[0]);const y=Math.atan((p[1]-d[1])/(p[0]-d[0]));for(let m=0;m<u;m++){const x=m*(i+r),_=x+i,w=[d[0]+x*Math.cos(y)+h*Math.cos(y),d[1]+x*Math.sin(y)+h*Math.sin(y)],S=[d[0]+_*Math.cos(y)+h*Math.cos(y),d[1]+_*Math.sin(y)+h*Math.sin(y)];l.push(...this.helper.doubleLineOps(w[0],w[1],S[0],S[1],n))}})),l}}class OQ{constructor(t){this.helper=t}fillPolygons(t,n){const i=n.hachureGap<0?4*n.strokeWidth:n.hachureGap,r=n.zigzagOffset<0?i:n.zigzagOffset,l=vh(t,n=Object.assign({},n,{hachureGap:i+r}));return{type:"fillSketch",ops:this.zigzagLines(l,r,n)}}zigzagLines(t,n,i){const r=[];return t.forEach((l=>{const s=Jp(l),c=Math.round(s/(2*n));let u=l[0],h=l[1];u[0]>h[0]&&(u=l[1],h=l[0]);const d=Math.atan((h[1]-u[1])/(h[0]-u[0]));for(let p=0;p<c;p++){const y=2*p*n,m=2*(p+1)*n,x=Math.sqrt(2*Math.pow(n,2)),_=[u[0]+y*Math.cos(d),u[1]+y*Math.sin(d)],w=[u[0]+m*Math.cos(d),u[1]+m*Math.sin(d)],S=[_[0]+x*Math.cos(d+Math.PI/4),_[1]+x*Math.sin(d+Math.PI/4)];r.push(...this.helper.doubleLineOps(_[0],_[1],S[0],S[1],i),...this.helper.doubleLineOps(S[0],S[1],w[0],w[1],i))}})),r}}const Fi={};class LQ{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const RQ=0,J0=1,Q2=2,Jf={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 ey(e,t){return e.type===t}function s1(e){const t=[],n=(function(s){const c=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))c[c.length]={type:RQ,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];c[c.length]={type:J0,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return c[c.length]={type:Q2,text:""},c})(e);let i="BOD",r=0,l=n[r];for(;!ey(l,Q2);){let s=0;const c=[];if(i==="BOD"){if(l.text!=="M"&&l.text!=="m")return s1("M0,0"+e);r++,s=Jf[l.text],i=l.text}else ey(l,J0)?s=Jf[i]:(r++,s=Jf[l.text],i=l.text);if(!(r+s<n.length))throw new Error("Path data ended short");for(let u=r;u<r+s;u++){const h=n[u];if(!ey(h,J0))throw new Error("Param not a number: "+i+","+h.text);c[c.length]=+h.text}if(typeof Jf[i]!="number")throw new Error("Bad segment: "+i);{const u={key:i,data:c};t.push(u),r+=s,l=n[r],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function UO(e){let t=0,n=0,i=0,r=0;const l=[];for(const{key:s,data:c}of e)switch(s){case"M":l.push({key:"M",data:[...c]}),[t,n]=c,[i,r]=c;break;case"m":t+=c[0],n+=c[1],l.push({key:"M",data:[t,n]}),i=t,r=n;break;case"L":l.push({key:"L",data:[...c]}),[t,n]=c;break;case"l":t+=c[0],n+=c[1],l.push({key:"L",data:[t,n]});break;case"C":l.push({key:"C",data:[...c]}),t=c[4],n=c[5];break;case"c":{const u=c.map(((h,d)=>d%2?h+n:h+t));l.push({key:"C",data:u}),t=u[4],n=u[5];break}case"Q":l.push({key:"Q",data:[...c]}),t=c[2],n=c[3];break;case"q":{const u=c.map(((h,d)=>d%2?h+n:h+t));l.push({key:"Q",data:u}),t=u[2],n=u[3];break}case"A":l.push({key:"A",data:[...c]}),t=c[5],n=c[6];break;case"a":t+=c[5],n+=c[6],l.push({key:"A",data:[c[0],c[1],c[2],c[3],c[4],t,n]});break;case"H":l.push({key:"H",data:[...c]}),t=c[0];break;case"h":t+=c[0],l.push({key:"H",data:[t]});break;case"V":l.push({key:"V",data:[...c]}),n=c[0];break;case"v":n+=c[0],l.push({key:"V",data:[n]});break;case"S":l.push({key:"S",data:[...c]}),t=c[2],n=c[3];break;case"s":{const u=c.map(((h,d)=>d%2?h+n:h+t));l.push({key:"S",data:u}),t=u[2],n=u[3];break}case"T":l.push({key:"T",data:[...c]}),t=c[0],n=c[1];break;case"t":t+=c[0],n+=c[1],l.push({key:"T",data:[t,n]});break;case"Z":case"z":l.push({key:"Z",data:[]}),t=i,n=r}return l}function qO(e){const t=[];let n="",i=0,r=0,l=0,s=0,c=0,u=0;for(const{key:h,data:d}of e){switch(h){case"M":t.push({key:"M",data:[...d]}),[i,r]=d,[l,s]=d;break;case"C":t.push({key:"C",data:[...d]}),i=d[4],r=d[5],c=d[2],u=d[3];break;case"L":t.push({key:"L",data:[...d]}),[i,r]=d;break;case"H":i=d[0],t.push({key:"L",data:[i,r]});break;case"V":r=d[0],t.push({key:"L",data:[i,r]});break;case"S":{let p=0,y=0;n==="C"||n==="S"?(p=i+(i-c),y=r+(r-u)):(p=i,y=r),t.push({key:"C",data:[p,y,...d]}),c=d[0],u=d[1],i=d[2],r=d[3];break}case"T":{const[p,y]=d;let m=0,x=0;n==="Q"||n==="T"?(m=i+(i-c),x=r+(r-u)):(m=i,x=r);const _=i+2*(m-i)/3,w=r+2*(x-r)/3,S=p+2*(m-p)/3,C=y+2*(x-y)/3;t.push({key:"C",data:[_,w,S,C,p,y]}),c=m,u=x,i=p,r=y;break}case"Q":{const[p,y,m,x]=d,_=i+2*(p-i)/3,w=r+2*(y-r)/3,S=m+2*(p-m)/3,C=x+2*(y-x)/3;t.push({key:"C",data:[_,w,S,C,m,x]}),c=p,u=y,i=m,r=x;break}case"A":{const p=Math.abs(d[0]),y=Math.abs(d[1]),m=d[2],x=d[3],_=d[4],w=d[5],S=d[6];p===0||y===0?(t.push({key:"C",data:[i,r,w,S,w,S]}),i=w,r=S):(i!==w||r!==S)&&(jO(i,r,w,S,p,y,m,x,_).forEach((function(C){t.push({key:"C",data:C})})),i=w,r=S);break}case"Z":t.push({key:"Z",data:[]}),i=l,r=s}n=h}return t}function yu(e,t,n){return[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)]}function jO(e,t,n,i,r,l,s,c,u,h){const d=(p=s,Math.PI*p/180);var p;let y=[],m=0,x=0,_=0,w=0;if(h)[m,x,_,w]=h;else{[e,t]=yu(e,t,-d),[n,i]=yu(n,i,-d);const V=(e-n)/2,P=(t-i)/2;let z=V*V/(r*r)+P*P/(l*l);z>1&&(z=Math.sqrt(z),r*=z,l*=z);const L=r*r,U=l*l,G=L*U-L*P*P-U*V*V,le=L*P*P+U*V*V,B=(c===u?-1:1)*Math.sqrt(Math.abs(G/le));_=B*r*P/l+(e+n)/2,w=B*-l*V/r+(t+i)/2,m=Math.asin(parseFloat(((t-w)/l).toFixed(9))),x=Math.asin(parseFloat(((i-w)/l).toFixed(9))),e<_&&(m=Math.PI-m),n<_&&(x=Math.PI-x),m<0&&(m=2*Math.PI+m),x<0&&(x=2*Math.PI+x),u&&m>x&&(m-=2*Math.PI),!u&&x>m&&(x-=2*Math.PI)}let S=x-m;if(Math.abs(S)>120*Math.PI/180){const V=x,P=n,z=i;x=u&&x>m?m+120*Math.PI/180*1:m+120*Math.PI/180*-1,y=jO(n=_+r*Math.cos(x),i=w+l*Math.sin(x),P,z,r,l,s,0,u,[x,V,_,w])}S=x-m;const C=Math.cos(m),E=Math.sin(m),N=Math.cos(x),M=Math.sin(x),A=Math.tan(S/4),O=4/3*r*A,q=4/3*l*A,j=[e,t],F=[e+O*E,t-q*C],H=[n+O*M,i-q*N],Z=[n,i];if(F[0]=2*j[0]-F[0],F[1]=2*j[1]-F[1],h)return[F,H,Z].concat(y);{y=[F,H,Z].concat(y);const V=[];for(let P=0;P<y.length;P+=3){const z=yu(y[P][0],y[P][1],d),L=yu(y[P+1][0],y[P+1][1],d),U=yu(y[P+2][0],y[P+2][1],d);V.push([z[0],z[1],L[0],L[1],U[0],U[1]])}return V}}const DQ={randOffset:function(e,t){return et(e,t)},randOffsetWithRange:function(e,t,n){return mp(e,t,n)},ellipse:function(e,t,n,i,r){const l=WO(n,i,r);return _b(e,t,r,l).opset},doubleLineOps:function(e,t,n,i,r){return Al(e,t,n,i,r,!0)}};function GO(e,t,n,i,r){return{type:"path",ops:Al(e,t,n,i,r)}}function xd(e,t,n){const i=(e||[]).length;if(i>2){const r=[];for(let l=0;l<i-1;l++)r.push(...Al(e[l][0],e[l][1],e[l+1][0],e[l+1][1],n));return t&&r.push(...Al(e[i-1][0],e[i-1][1],e[0][0],e[0][1],n)),{type:"path",ops:r}}return i===2?GO(e[0][0],e[0][1],e[1][0],e[1][1],n):{type:"path",ops:[]}}function BQ(e,t,n,i,r){return(function(l,s){return xd(l,!0,s)})([[e,t],[e+n,t],[e+n,t+i],[e,t+i]],r)}function J2(e,t){if(e.length){const n=typeof e[0][0]=="number"?[e]:e,i=ed(n[0],1*(1+.2*t.roughness),t),r=t.disableMultiStroke?[]:ed(n[0],1.5*(1+.22*t.roughness),nk(t));for(let l=1;l<n.length;l++){const s=n[l];if(s.length){const c=ed(s,1*(1+.2*t.roughness),t),u=t.disableMultiStroke?[]:ed(s,1.5*(1+.22*t.roughness),nk(t));for(const h of c)h.op!=="move"&&i.push(h);for(const h of u)h.op!=="move"&&r.push(h)}}return{type:"path",ops:i.concat(r)}}return{type:"path",ops:[]}}function WO(e,t,n){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),r=Math.ceil(Math.max(n.curveStepCount,n.curveStepCount/Math.sqrt(200)*i)),l=2*Math.PI/r;let s=Math.abs(e/2),c=Math.abs(t/2);const u=1-n.curveFitting;return s+=et(s*u,n),c+=et(c*u,n),{increment:l,rx:s,ry:c}}function _b(e,t,n,i){const[r,l]=ik(i.increment,e,t,i.rx,i.ry,1,i.increment*mp(.1,mp(.4,1,n),n),n);let s=yp(r,null,n);if(!n.disableMultiStroke&&n.roughness!==0){const[c]=ik(i.increment,e,t,i.rx,i.ry,1.5,0,n),u=yp(c,null,n);s=s.concat(u)}return{estimatedPoints:l,opset:{type:"path",ops:s}}}function ek(e,t,n,i,r,l,s,c,u){const h=e,d=t;let p=Math.abs(n/2),y=Math.abs(i/2);p+=et(.01*p,u),y+=et(.01*y,u);let m=r,x=l;for(;m<0;)m+=2*Math.PI,x+=2*Math.PI;x-m>2*Math.PI&&(m=0,x=2*Math.PI);const _=2*Math.PI/u.curveStepCount,w=Math.min(_/2,(x-m)/2),S=rk(w,h,d,p,y,m,x,1,u);if(!u.disableMultiStroke){const C=rk(w,h,d,p,y,m,x,1.5,u);S.push(...C)}return s&&(c?S.push(...Al(h,d,h+p*Math.cos(m),d+y*Math.sin(m),u),...Al(h,d,h+p*Math.cos(x),d+y*Math.sin(x),u)):S.push({op:"lineTo",data:[h,d]},{op:"lineTo",data:[h+p*Math.cos(m),d+y*Math.sin(m)]})),{type:"path",ops:S}}function tk(e,t){const n=qO(UO(s1(e))),i=[];let r=[0,0],l=[0,0];for(const{key:s,data:c}of n)switch(s){case"M":l=[c[0],c[1]],r=[c[0],c[1]];break;case"L":i.push(...Al(l[0],l[1],c[0],c[1],t)),l=[c[0],c[1]];break;case"C":{const[u,h,d,p,y,m]=c;i.push(...IQ(u,h,d,p,y,m,l,t)),l=[y,m];break}case"Z":i.push(...Al(l[0],l[1],r[0],r[1],t)),l=[r[0],r[1]]}return{type:"path",ops:i}}function ty(e,t){const n=[];for(const i of e)if(i.length){const r=t.maxRandomnessOffset||0,l=i.length;if(l>2){n.push({op:"move",data:[i[0][0]+et(r,t),i[0][1]+et(r,t)]});for(let s=1;s<l;s++)n.push({op:"lineTo",data:[i[s][0]+et(r,t),i[s][1]+et(r,t)]})}}return{type:"fillPath",ops:n}}function fo(e,t){return(function(n,i){let r=n.fillStyle||"hachure";if(!Fi[r])switch(r){case"zigzag":Fi[r]||(Fi[r]=new TQ(i));break;case"cross-hatch":Fi[r]||(Fi[r]=new AQ(i));break;case"dots":Fi[r]||(Fi[r]=new MQ(i));break;case"dashed":Fi[r]||(Fi[r]=new NQ(i));break;case"zigzag-line":Fi[r]||(Fi[r]=new OQ(i));break;default:r="hachure",Fi[r]||(Fi[r]=new l1(i))}return Fi[r]})(t,DQ).fillPolygons(e,t)}function nk(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function YO(e){return e.randomizer||(e.randomizer=new LQ(e.seed||0)),e.randomizer.next()}function mp(e,t,n,i=1){return n.roughness*i*(YO(n)*(t-e)+e)}function et(e,t,n=1){return mp(-e,e,t,n)}function Al(e,t,n,i,r,l=!1){const s=l?r.disableMultiStrokeFill:r.disableMultiStroke,c=vb(e,t,n,i,r,!0,!1);if(s)return c;const u=vb(e,t,n,i,r,!0,!0);return c.concat(u)}function vb(e,t,n,i,r,l,s){const c=Math.pow(e-n,2)+Math.pow(t-i,2),u=Math.sqrt(c);let h=1;h=u<200?1:u>500?.4:-.0016668*u+1.233334;let d=r.maxRandomnessOffset||0;d*d*100>c&&(d=u/10);const p=d/2,y=.2+.2*YO(r);let m=r.bowing*r.maxRandomnessOffset*(i-t)/200,x=r.bowing*r.maxRandomnessOffset*(e-n)/200;m=et(m,r,h),x=et(x,r,h);const _=[],w=()=>et(p,r,h),S=()=>et(d,r,h),C=r.preserveVertices;return s?_.push({op:"move",data:[e+(C?0:w()),t+(C?0:w())]}):_.push({op:"move",data:[e+(C?0:et(d,r,h)),t+(C?0:et(d,r,h))]}),s?_.push({op:"bcurveTo",data:[m+e+(n-e)*y+w(),x+t+(i-t)*y+w(),m+e+2*(n-e)*y+w(),x+t+2*(i-t)*y+w(),n+(C?0:w()),i+(C?0:w())]}):_.push({op:"bcurveTo",data:[m+e+(n-e)*y+S(),x+t+(i-t)*y+S(),m+e+2*(n-e)*y+S(),x+t+2*(i-t)*y+S(),n+(C?0:S()),i+(C?0:S())]}),_}function ed(e,t,n){if(!e.length)return[];const i=[];i.push([e[0][0]+et(t,n),e[0][1]+et(t,n)]),i.push([e[0][0]+et(t,n),e[0][1]+et(t,n)]);for(let r=1;r<e.length;r++)i.push([e[r][0]+et(t,n),e[r][1]+et(t,n)]),r===e.length-1&&i.push([e[r][0]+et(t,n),e[r][1]+et(t,n)]);return yp(i,null,n)}function yp(e,t,n){const i=e.length,r=[];if(i>3){const l=[],s=1-n.curveTightness;r.push({op:"move",data:[e[1][0],e[1][1]]});for(let c=1;c+2<i;c++){const u=e[c];l[0]=[u[0],u[1]],l[1]=[u[0]+(s*e[c+1][0]-s*e[c-1][0])/6,u[1]+(s*e[c+1][1]-s*e[c-1][1])/6],l[2]=[e[c+1][0]+(s*e[c][0]-s*e[c+2][0])/6,e[c+1][1]+(s*e[c][1]-s*e[c+2][1])/6],l[3]=[e[c+1][0],e[c+1][1]],r.push({op:"bcurveTo",data:[l[1][0],l[1][1],l[2][0],l[2][1],l[3][0],l[3][1]]})}}else i===3?(r.push({op:"move",data:[e[1][0],e[1][1]]}),r.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&r.push(...vb(e[0][0],e[0][1],e[1][0],e[1][1],n,!0,!0));return r}function ik(e,t,n,i,r,l,s,c){const u=[],h=[];if(c.roughness===0){e/=4,h.push([t+i*Math.cos(-e),n+r*Math.sin(-e)]);for(let d=0;d<=2*Math.PI;d+=e){const p=[t+i*Math.cos(d),n+r*Math.sin(d)];u.push(p),h.push(p)}h.push([t+i*Math.cos(0),n+r*Math.sin(0)]),h.push([t+i*Math.cos(e),n+r*Math.sin(e)])}else{const d=et(.5,c)-Math.PI/2;h.push([et(l,c)+t+.9*i*Math.cos(d-e),et(l,c)+n+.9*r*Math.sin(d-e)]);const p=2*Math.PI+d-.01;for(let y=d;y<p;y+=e){const m=[et(l,c)+t+i*Math.cos(y),et(l,c)+n+r*Math.sin(y)];u.push(m),h.push(m)}h.push([et(l,c)+t+i*Math.cos(d+2*Math.PI+.5*s),et(l,c)+n+r*Math.sin(d+2*Math.PI+.5*s)]),h.push([et(l,c)+t+.98*i*Math.cos(d+s),et(l,c)+n+.98*r*Math.sin(d+s)]),h.push([et(l,c)+t+.9*i*Math.cos(d+.5*s),et(l,c)+n+.9*r*Math.sin(d+.5*s)])}return[h,u]}function rk(e,t,n,i,r,l,s,c,u){const h=l+et(.1,u),d=[];d.push([et(c,u)+t+.9*i*Math.cos(h-e),et(c,u)+n+.9*r*Math.sin(h-e)]);for(let p=h;p<=s;p+=e)d.push([et(c,u)+t+i*Math.cos(p),et(c,u)+n+r*Math.sin(p)]);return d.push([t+i*Math.cos(s),n+r*Math.sin(s)]),d.push([t+i*Math.cos(s),n+r*Math.sin(s)]),yp(d,null,u)}function IQ(e,t,n,i,r,l,s,c){const u=[],h=[c.maxRandomnessOffset||1,(c.maxRandomnessOffset||1)+.3];let d=[0,0];const p=c.disableMultiStroke?1:2,y=c.preserveVertices;for(let m=0;m<p;m++)m===0?u.push({op:"move",data:[s[0],s[1]]}):u.push({op:"move",data:[s[0]+(y?0:et(h[0],c)),s[1]+(y?0:et(h[0],c))]}),d=y?[r,l]:[r+et(h[m],c),l+et(h[m],c)],u.push({op:"bcurveTo",data:[e+et(h[m],c),t+et(h[m],c),n+et(h[m],c),i+et(h[m],c),d[0],d[1]]});return u}function bu(e){return[...e]}function ak(e,t=0){const n=e.length;if(n<3)throw new Error("A curve must have at least three points.");const i=[];if(n===3)i.push(bu(e[0]),bu(e[1]),bu(e[2]),bu(e[2]));else{const r=[];r.push(e[0],e[0]);for(let c=1;c<e.length;c++)r.push(e[c]),c===e.length-1&&r.push(e[c]);const l=[],s=1-t;i.push(bu(r[0]));for(let c=1;c+2<r.length;c++){const u=r[c];l[0]=[u[0],u[1]],l[1]=[u[0]+(s*r[c+1][0]-s*r[c-1][0])/6,u[1]+(s*r[c+1][1]-s*r[c-1][1])/6],l[2]=[r[c+1][0]+(s*r[c][0]-s*r[c+2][0])/6,r[c+1][1]+(s*r[c][1]-s*r[c+2][1])/6],l[3]=[r[c+1][0],r[c+1][1]],i.push(l[1],l[2],l[3])}}return i}function _d(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function $Q(e,t,n){const i=_d(t,n);if(i===0)return _d(e,t);let r=((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/i;return r=Math.max(0,Math.min(1,r)),_d(e,ns(t,n,r))}function ns(e,t,n){return[e[0]+(t[0]-e[0])*n,e[1]+(t[1]-e[1])*n]}function wb(e,t,n,i){const r=i||[];if((function(c,u){const h=c[u+0],d=c[u+1],p=c[u+2],y=c[u+3];let m=3*d[0]-2*h[0]-y[0];m*=m;let x=3*d[1]-2*h[1]-y[1];x*=x;let _=3*p[0]-2*y[0]-h[0];_*=_;let w=3*p[1]-2*y[1]-h[1];return w*=w,m<_&&(m=_),x<w&&(x=w),m+x})(e,t)<n){const c=e[t+0];r.length?(l=r[r.length-1],s=c,Math.sqrt(_d(l,s))>1&&r.push(c)):r.push(c),r.push(e[t+3])}else{const u=e[t+0],h=e[t+1],d=e[t+2],p=e[t+3],y=ns(u,h,.5),m=ns(h,d,.5),x=ns(d,p,.5),_=ns(y,m,.5),w=ns(m,x,.5),S=ns(_,w,.5);wb([u,y,_,S],0,n,r),wb([S,w,x,p],0,n,r)}var l,s;return r}function FQ(e,t){return bp(e,0,e.length,t)}function bp(e,t,n,i,r){const l=r||[],s=e[t],c=e[n-1];let u=0,h=1;for(let d=t+1;d<n-1;++d){const p=$Q(e[d],s,c);p>u&&(u=p,h=d)}return Math.sqrt(u)>i?(bp(e,t,h+1,i,l),bp(e,h,n,i,l)):(l.length||l.push(s),l.push(c)),l}function ny(e,t=.15,n){const i=[],r=(e.length-1)/3;for(let l=0;l<r;l++)wb(e,3*l,t,i);return n&&n>0?bp(i,0,i.length,n):i}const nr="none";class xp{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,n,i){return{shape:t,sets:n||[],options:i||this.defaultOptions}}line(t,n,i,r,l){const s=this._o(l);return this._d("line",[GO(t,n,i,r,s)],s)}rectangle(t,n,i,r,l){const s=this._o(l),c=[],u=BQ(t,n,i,r,s);if(s.fill){const h=[[t,n],[t+i,n],[t+i,n+r],[t,n+r]];s.fillStyle==="solid"?c.push(ty([h],s)):c.push(fo([h],s))}return s.stroke!==nr&&c.push(u),this._d("rectangle",c,s)}ellipse(t,n,i,r,l){const s=this._o(l),c=[],u=WO(i,r,s),h=_b(t,n,s,u);if(s.fill)if(s.fillStyle==="solid"){const d=_b(t,n,s,u).opset;d.type="fillPath",c.push(d)}else c.push(fo([h.estimatedPoints],s));return s.stroke!==nr&&c.push(h.opset),this._d("ellipse",c,s)}circle(t,n,i,r){const l=this.ellipse(t,n,i,i,r);return l.shape="circle",l}linearPath(t,n){const i=this._o(n);return this._d("linearPath",[xd(t,!1,i)],i)}arc(t,n,i,r,l,s,c=!1,u){const h=this._o(u),d=[],p=ek(t,n,i,r,l,s,c,!0,h);if(c&&h.fill)if(h.fillStyle==="solid"){const y=Object.assign({},h);y.disableMultiStroke=!0;const m=ek(t,n,i,r,l,s,!0,!1,y);m.type="fillPath",d.push(m)}else d.push((function(y,m,x,_,w,S,C){const E=y,N=m;let M=Math.abs(x/2),A=Math.abs(_/2);M+=et(.01*M,C),A+=et(.01*A,C);let O=w,q=S;for(;O<0;)O+=2*Math.PI,q+=2*Math.PI;q-O>2*Math.PI&&(O=0,q=2*Math.PI);const j=(q-O)/C.curveStepCount,F=[];for(let H=O;H<=q;H+=j)F.push([E+M*Math.cos(H),N+A*Math.sin(H)]);return F.push([E+M*Math.cos(q),N+A*Math.sin(q)]),F.push([E,N]),fo([F],C)})(t,n,i,r,l,s,h));return h.stroke!==nr&&d.push(p),this._d("arc",d,h)}curve(t,n){const i=this._o(n),r=[],l=J2(t,i);if(i.fill&&i.fill!==nr)if(i.fillStyle==="solid"){const s=J2(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],c=t;if(c.length){const u=typeof c[0][0]=="number"?[c]:c;for(const h of u)h.length<3?s.push(...h):h.length===3?s.push(...ny(ak([h[0],h[0],h[1],h[2]]),10,(1+i.roughness)/2)):s.push(...ny(ak(h),10,(1+i.roughness)/2))}s.length&&r.push(fo([s],i))}return i.stroke!==nr&&r.push(l),this._d("curve",r,i)}polygon(t,n){const i=this._o(n),r=[],l=xd(t,!0,i);return i.fill&&(i.fillStyle==="solid"?r.push(ty([t],i)):r.push(fo([t],i))),i.stroke!==nr&&r.push(l),this._d("polygon",r,i)}path(t,n){const i=this._o(n),r=[];if(!t)return this._d("path",r,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const l=i.fill&&i.fill!=="transparent"&&i.fill!==nr,s=i.stroke!==nr,c=!!(i.simplification&&i.simplification<1),u=(function(d,p,y){const m=qO(UO(s1(d))),x=[];let _=[],w=[0,0],S=[];const C=()=>{S.length>=4&&_.push(...ny(S,p)),S=[]},E=()=>{C(),_.length&&(x.push(_),_=[])};for(const{key:M,data:A}of m)switch(M){case"M":E(),w=[A[0],A[1]],_.push(w);break;case"L":C(),_.push([A[0],A[1]]);break;case"C":if(!S.length){const O=_.length?_[_.length-1]:w;S.push([O[0],O[1]])}S.push([A[0],A[1]]),S.push([A[2],A[3]]),S.push([A[4],A[5]]);break;case"Z":C(),_.push([w[0],w[1]])}if(E(),!y)return x;const N=[];for(const M of x){const A=FQ(M,y);A.length&&N.push(A)}return N})(t,1,c?4-4*(i.simplification||1):(1+i.roughness)/2),h=tk(t,i);if(l)if(i.fillStyle==="solid")if(u.length===1){const d=tk(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));r.push({type:"fillPath",ops:this._mergedShape(d.ops)})}else r.push(ty(u,i));else r.push(fo(u,i));return s&&(c?u.forEach((d=>{r.push(xd(d,!1,i))})):r.push(h)),this._d("path",r,i)}opsToPath(t,n){let i="";for(const r of t.ops){const l=typeof n=="number"&&n>=0?r.data.map((s=>+s.toFixed(n))):r.data;switch(r.op){case"move":i+=`M${l[0]} ${l[1]} `;break;case"bcurveTo":i+=`C${l[0]} ${l[1]}, ${l[2]} ${l[3]}, ${l[4]} ${l[5]} `;break;case"lineTo":i+=`L${l[0]} ${l[1]} `}}return i.trim()}toPaths(t){const n=t.sets||[],i=t.options||this.defaultOptions,r=[];for(const l of n){let s=null;switch(l.type){case"path":s={d:this.opsToPath(l),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:nr};break;case"fillPath":s={d:this.opsToPath(l),stroke:nr,strokeWidth:0,fill:i.fill||nr};break;case"fillSketch":s=this.fillSketch(l,i)}s&&r.push(s)}return r}fillSketch(t,n){let i=n.fillWeight;return i<0&&(i=n.strokeWidth/2),{d:this.opsToPath(t),stroke:n.fill||nr,strokeWidth:i,fill:nr}}_mergedShape(t){return t.filter(((n,i)=>i===0||n.op!=="move"))}}class zQ{constructor(t,n){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new xp(n)}draw(t){const n=t.sets||[],i=t.options||this.getDefaultOptions(),r=this.ctx,l=t.options.fixedDecimalPlaceDigits;for(const s of n)switch(s.type){case"path":r.save(),r.strokeStyle=i.stroke==="none"?"transparent":i.stroke,r.lineWidth=i.strokeWidth,i.strokeLineDash&&r.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(r.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(r,s,l),r.restore();break;case"fillPath":{r.save(),r.fillStyle=i.fill||"";const c=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(r,s,l,c),r.restore();break}case"fillSketch":this.fillSketch(r,s,i)}}fillSketch(t,n,i){let r=i.fillWeight;r<0&&(r=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=r,this._drawToContext(t,n,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,n,i,r="nonzero"){t.beginPath();for(const l of n.ops){const s=typeof i=="number"&&i>=0?l.data.map((c=>+c.toFixed(i))):l.data;switch(l.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])}}n.type==="fillPath"?t.fill(r):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,n,i,r,l){const s=this.gen.line(t,n,i,r,l);return this.draw(s),s}rectangle(t,n,i,r,l){const s=this.gen.rectangle(t,n,i,r,l);return this.draw(s),s}ellipse(t,n,i,r,l){const s=this.gen.ellipse(t,n,i,r,l);return this.draw(s),s}circle(t,n,i,r){const l=this.gen.circle(t,n,i,r);return this.draw(l),l}linearPath(t,n){const i=this.gen.linearPath(t,n);return this.draw(i),i}polygon(t,n){const i=this.gen.polygon(t,n);return this.draw(i),i}arc(t,n,i,r,l,s,c=!1,u){const h=this.gen.arc(t,n,i,r,l,s,c,u);return this.draw(h),h}curve(t,n){const i=this.gen.curve(t,n);return this.draw(i),i}path(t,n){const i=this.gen.path(t,n);return this.draw(i),i}}const td="http://www.w3.org/2000/svg";class PQ{constructor(t,n){this.svg=t,this.gen=new xp(n)}draw(t){const n=t.sets||[],i=t.options||this.getDefaultOptions(),r=this.svg.ownerDocument||window.document,l=r.createElementNS(td,"g"),s=t.options.fixedDecimalPlaceDigits;for(const c of n){let u=null;switch(c.type){case"path":u=r.createElementNS(td,"path"),u.setAttribute("d",this.opsToPath(c,s)),u.setAttribute("stroke",i.stroke),u.setAttribute("stroke-width",i.strokeWidth+""),u.setAttribute("fill","none"),i.strokeLineDash&&u.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&u.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":u=r.createElementNS(td,"path"),u.setAttribute("d",this.opsToPath(c,s)),u.setAttribute("stroke","none"),u.setAttribute("stroke-width","0"),u.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||u.setAttribute("fill-rule","evenodd");break;case"fillSketch":u=this.fillSketch(r,c,i)}u&&l.appendChild(u)}return l}fillSketch(t,n,i){let r=i.fillWeight;r<0&&(r=i.strokeWidth/2);const l=t.createElementNS(td,"path");return l.setAttribute("d",this.opsToPath(n,i.fixedDecimalPlaceDigits)),l.setAttribute("stroke",i.fill||""),l.setAttribute("stroke-width",r+""),l.setAttribute("fill","none"),i.fillLineDash&&l.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&l.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),l}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,n){return this.gen.opsToPath(t,n)}line(t,n,i,r,l){const s=this.gen.line(t,n,i,r,l);return this.draw(s)}rectangle(t,n,i,r,l){const s=this.gen.rectangle(t,n,i,r,l);return this.draw(s)}ellipse(t,n,i,r,l){const s=this.gen.ellipse(t,n,i,r,l);return this.draw(s)}circle(t,n,i,r){const l=this.gen.circle(t,n,i,r);return this.draw(l)}linearPath(t,n){const i=this.gen.linearPath(t,n);return this.draw(i)}polygon(t,n){const i=this.gen.polygon(t,n);return this.draw(i)}arc(t,n,i,r,l,s,c=!1,u){const h=this.gen.arc(t,n,i,r,l,s,c,u);return this.draw(h)}curve(t,n){const i=this.gen.curve(t,n);return this.draw(i)}path(t,n){const i=this.gen.path(t,n);return this.draw(i)}}var Oe={canvas:(e,t)=>new zQ(e,t),svg:(e,t)=>new PQ(e,t),generator:e=>new xp(e),newSeed:()=>xp.newSeed()},Ze=k(async(e,t,n)=>{var p,y;let i;const r=t.useHtmlLabels||Pn((p=It())==null?void 0:p.htmlLabels);n?i=n:i="node default";const l=e.insert("g").attr("class",i).attr("id",t.domId||t.id),s=l.insert("g").attr("class","label").attr("style",ui(t.labelStyle));let c;t.label===void 0?c="":c=typeof t.label=="string"?t.label:t.label[0];const u=await Ll(s,Cr(ks(c),It()),{useHtmlLabels:r,width:t.width||((y=It().flowchart)==null?void 0:y.wrappingWidth),cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img});let h=u.getBBox();const d=((t==null?void 0:t.padding)??0)/2;if(r){const m=u.children[0],x=Ct(u),_=m.getElementsByTagName("img");if(_){const w=c.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([..._].map(S=>new Promise(C=>{function E(){if(S.style.display="flex",S.style.flexDirection="column",w){const N=It().fontSize?It().fontSize:window.getComputedStyle(document.body).fontSize,M=5,[A=sA.fontSize]=Vp(N),O=A*M+"px";S.style.minWidth=O,S.style.maxWidth=O}else S.style.width="100%";C(S)}k(E,"setupImage"),setTimeout(()=>{S.complete&&E()}),S.addEventListener("error",E),S.addEventListener("load",E)})))}h=m.getBoundingClientRect(),x.attr("width",h.width),x.attr("height",h.height)}return r?s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):s.attr("transform","translate(0, "+-h.height/2+")"),t.centerLabel&&s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:l,bbox:h,halfPadding:d,label:s}},"labelHelper"),iy=k(async(e,t,n)=>{var u,h,d,p,y,m;const i=n.useHtmlLabels||Pn((h=(u=It())==null?void 0:u.flowchart)==null?void 0:h.htmlLabels),r=e.insert("g").attr("class","label").attr("style",n.labelStyle||""),l=await Ll(r,Cr(ks(t),It()),{useHtmlLabels:i,width:n.width||((p=(d=It())==null?void 0:d.flowchart)==null?void 0:p.wrappingWidth),style:n.labelStyle,addSvgBackground:!!n.icon||!!n.img});let s=l.getBBox();const c=n.padding/2;if(Pn((m=(y=It())==null?void 0:y.flowchart)==null?void 0:m.htmlLabels)){const x=l.children[0],_=Ct(l);s=x.getBoundingClientRect(),_.attr("width",s.width),_.attr("height",s.height)}return i?r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):r.attr("transform","translate(0, "+-s.height/2+")"),n.centerLabel&&r.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),r.insert("rect",":first-child"),{shapeSvg:e,bbox:s,halfPadding:c,label:r}},"insertLabel"),Ie=k((e,t)=>{const n=t.node().getBBox();e.width=n.width,e.height=n.height},"updateNodeBounds"),Ye=k((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function mt(e){const t=e.map((n,i)=>`${i===0?"M":"L"}${n.x},${n.y}`);return t.push("Z"),t.join(" ")}k(mt,"createPathFromPoints");function Ml(e,t,n,i,r,l){const s=[],u=n-e,h=i-t,d=u/l,p=2*Math.PI/d,y=t+h/2;for(let m=0;m<=50;m++){const x=m/50,_=e+x*u,w=y+r*Math.sin(p*(_-e));s.push({x:_,y:w})}return s}k(Ml,"generateFullSineWavePoints");function ih(e,t,n,i,r,l){const s=[],c=r*Math.PI/180,d=(l*Math.PI/180-c)/(i-1);for(let p=0;p<i;p++){const y=c+p*d,m=e+n*Math.cos(y),x=t+n*Math.sin(y);s.push({x:-m,y:-x})}return s}k(ih,"generateCirclePoints");var HQ=k((e,t)=>{var n=e.x,i=e.y,r=t.x-n,l=t.y-i,s=e.width/2,c=e.height/2,u,h;return Math.abs(l)*s>Math.abs(r)*c?(l<0&&(c=-c),u=l===0?0:c*r/l,h=c):(r<0&&(s=-s),u=s,h=r===0?0:s*l/r),{x:n+u,y:i+h}},"intersectRect"),ic=HQ;function VO(e,t){t&&e.attr("style",t)}k(VO,"applyStyle");async function XO(e){const t=Ct(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),n=t.append("xhtml:div"),i=It();let r=e.label;e.label&&qo(e.label)&&(r=await px(e.label.replace(Jo.lineBreakRegex,`
|
|
343
|
+
`),i));const s='<span class="'+(e.isNode?"nodeLabel":"edgeLabel")+'" '+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+r+"</span>";return n.html(Cr(s,i)),VO(n,e.labelStyle),n.style("display","inline-block"),n.style("padding-right","1px"),n.style("white-space","nowrap"),n.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}k(XO,"addHtmlLabel");var UQ=k(async(e,t,n,i)=>{let r=e||"";if(typeof r=="object"&&(r=r[0]),Pn(It().flowchart.htmlLabels)){r=r.replace(/\\n|\n/g,"<br />"),fe.info("vertexText"+r);const l={isNode:i,label:ks(r).replace(/fa[blrs]?:fa-[\w-]+/g,c=>`<i class='${c.replace(":"," ")}'></i>`),labelStyle:t&&t.replace("fill:","color:")};return await XO(l)}else{const l=document.createElementNS("http://www.w3.org/2000/svg","text");l.setAttribute("style",t.replace("color:","fill:"));let s=[];typeof r=="string"?s=r.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(r)?s=r:s=[];for(const c of s){const u=document.createElementNS("http://www.w3.org/2000/svg","tspan");u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),u.setAttribute("dy","1em"),u.setAttribute("x","0"),n?u.setAttribute("class","title-row"):u.setAttribute("class","row"),u.textContent=c.trim(),l.appendChild(u)}return l}},"createLabel"),os=UQ,Rl=k((e,t,n,i,r)=>["M",e+r,t,"H",e+n-r,"A",r,r,0,0,1,e+n,t+r,"V",t+i-r,"A",r,r,0,0,1,e+n-r,t+i,"H",e+r,"A",r,r,0,0,1,e,t+i-r,"V",t+r,"A",r,r,0,0,1,e+r,t,"Z"].join(" "),"createRoundedRectPathD"),KO=k(async(e,t)=>{fe.info("Creating subgraph rect for ",t.id,t);const n=It(),{themeVariables:i,handDrawnSeed:r}=n,{clusterBkg:l,clusterBorder:s}=i,{labelStyles:c,nodeStyles:u,borderStyles:h,backgroundStyles:d}=Be(t),p=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),y=Pn(n.flowchart.htmlLabels),m=p.insert("g").attr("class","cluster-label "),x=await Ll(m,t.label,{style:t.labelStyle,useHtmlLabels:y,isNode:!0});let _=x.getBBox();if(Pn(n.flowchart.htmlLabels)){const O=x.children[0],q=Ct(x);_=O.getBoundingClientRect(),q.attr("width",_.width),q.attr("height",_.height)}const w=t.width<=_.width+t.padding?_.width+t.padding:t.width;t.width<=_.width+t.padding?t.diff=(w-t.width)/2-t.padding:t.diff=-t.padding;const S=t.height,C=t.x-w/2,E=t.y-S/2;fe.trace("Data ",t,JSON.stringify(t));let N;if(t.look==="handDrawn"){const O=Oe.svg(p),q=De(t,{roughness:.7,fill:l,stroke:s,fillWeight:3,seed:r}),j=O.path(Rl(C,E,w,S,0),q);N=p.insert(()=>(fe.debug("Rough node insert CXC",j),j),":first-child"),N.select("path:nth-child(2)").attr("style",h.join(";")),N.select("path").attr("style",d.join(";").replace("fill","stroke"))}else N=p.insert("rect",":first-child"),N.attr("style",u).attr("rx",t.rx).attr("ry",t.ry).attr("x",C).attr("y",E).attr("width",w).attr("height",S);const{subGraphTitleTopMargin:M}=zx(n);if(m.attr("transform",`translate(${t.x-_.width/2}, ${t.y-t.height/2+M})`),c){const O=m.select("span");O&&O.attr("style",c)}const A=N.node().getBBox();return t.offsetX=0,t.width=A.width,t.height=A.height,t.offsetY=_.height-t.padding/2,t.intersect=function(O){return ic(t,O)},{cluster:p,labelBBox:_}},"rect"),qQ=k((e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),i=n.insert("rect",":first-child"),r=0*t.padding,l=r/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-l).attr("y",t.y-t.height/2-l).attr("width",t.width+r).attr("height",t.height+r).attr("fill","none");const s=i.node().getBBox();return t.width=s.width,t.height=s.height,t.intersect=function(c){return ic(t,c)},{cluster:n,labelBBox:{width:0,height:0}}},"noteGroup"),jQ=k(async(e,t)=>{const n=It(),{themeVariables:i,handDrawnSeed:r}=n,{altBackground:l,compositeBackground:s,compositeTitleBackground:c,nodeBorder:u}=i,h=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),d=h.insert("g",":first-child"),p=h.insert("g").attr("class","cluster-label");let y=h.append("rect");const m=p.node().appendChild(await os(t.label,t.labelStyle,void 0,!0));let x=m.getBBox();if(Pn(n.flowchart.htmlLabels)){const j=m.children[0],F=Ct(m);x=j.getBoundingClientRect(),F.attr("width",x.width),F.attr("height",x.height)}const _=0*t.padding,w=_/2,S=(t.width<=x.width+t.padding?x.width+t.padding:t.width)+_;t.width<=x.width+t.padding?t.diff=(S-t.width)/2-t.padding:t.diff=-t.padding;const C=t.height+_,E=t.height+_-x.height-6,N=t.x-S/2,M=t.y-C/2;t.width=S;const A=t.y-t.height/2-w+x.height+2;let O;if(t.look==="handDrawn"){const j=t.cssClasses.includes("statediagram-cluster-alt"),F=Oe.svg(h),H=t.rx||t.ry?F.path(Rl(N,M,S,C,10),{roughness:.7,fill:c,fillStyle:"solid",stroke:u,seed:r}):F.rectangle(N,M,S,C,{seed:r});O=h.insert(()=>H,":first-child");const Z=F.rectangle(N,A,S,E,{fill:j?l:s,fillStyle:j?"hachure":"solid",stroke:u,seed:r});O=h.insert(()=>H,":first-child"),y=h.insert(()=>Z)}else O=d.insert("rect",":first-child"),O.attr("class","outer").attr("x",N).attr("y",M).attr("width",S).attr("height",C).attr("data-look",t.look),y.attr("class","inner").attr("x",N).attr("y",A).attr("width",S).attr("height",E);p.attr("transform",`translate(${t.x-x.width/2}, ${M+1-(Pn(n.flowchart.htmlLabels)?0:3)})`);const q=O.node().getBBox();return t.height=q.height,t.offsetX=0,t.offsetY=x.height-t.padding/2,t.labelBBox=x,t.intersect=function(j){return ic(t,j)},{cluster:h,labelBBox:x}},"roundedWithTitle"),GQ=k(async(e,t)=>{fe.info("Creating subgraph rect for ",t.id,t);const n=It(),{themeVariables:i,handDrawnSeed:r}=n,{clusterBkg:l,clusterBorder:s}=i,{labelStyles:c,nodeStyles:u,borderStyles:h,backgroundStyles:d}=Be(t),p=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),y=Pn(n.flowchart.htmlLabels),m=p.insert("g").attr("class","cluster-label "),x=await Ll(m,t.label,{style:t.labelStyle,useHtmlLabels:y,isNode:!0,width:t.width});let _=x.getBBox();if(Pn(n.flowchart.htmlLabels)){const O=x.children[0],q=Ct(x);_=O.getBoundingClientRect(),q.attr("width",_.width),q.attr("height",_.height)}const w=t.width<=_.width+t.padding?_.width+t.padding:t.width;t.width<=_.width+t.padding?t.diff=(w-t.width)/2-t.padding:t.diff=-t.padding;const S=t.height,C=t.x-w/2,E=t.y-S/2;fe.trace("Data ",t,JSON.stringify(t));let N;if(t.look==="handDrawn"){const O=Oe.svg(p),q=De(t,{roughness:.7,fill:l,stroke:s,fillWeight:4,seed:r}),j=O.path(Rl(C,E,w,S,t.rx),q);N=p.insert(()=>(fe.debug("Rough node insert CXC",j),j),":first-child"),N.select("path:nth-child(2)").attr("style",h.join(";")),N.select("path").attr("style",d.join(";").replace("fill","stroke"))}else N=p.insert("rect",":first-child"),N.attr("style",u).attr("rx",t.rx).attr("ry",t.ry).attr("x",C).attr("y",E).attr("width",w).attr("height",S);const{subGraphTitleTopMargin:M}=zx(n);if(m.attr("transform",`translate(${t.x-_.width/2}, ${t.y-t.height/2+M})`),c){const O=m.select("span");O&&O.attr("style",c)}const A=N.node().getBBox();return t.offsetX=0,t.width=A.width,t.height=A.height,t.offsetY=_.height-t.padding/2,t.intersect=function(O){return ic(t,O)},{cluster:p,labelBBox:_}},"kanbanSection"),WQ=k((e,t)=>{const n=It(),{themeVariables:i,handDrawnSeed:r}=n,{nodeBorder:l}=i,s=e.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),c=s.insert("g",":first-child"),u=0*t.padding,h=t.width+u;t.diff=-t.padding;const d=t.height+u,p=t.x-h/2,y=t.y-d/2;t.width=h;let m;if(t.look==="handDrawn"){const w=Oe.svg(s).rectangle(p,y,h,d,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:l,seed:r});m=s.insert(()=>w,":first-child")}else m=c.insert("rect",":first-child"),m.attr("class","divider").attr("x",p).attr("y",y).attr("width",h).attr("height",d).attr("data-look",t.look);const x=m.node().getBBox();return t.height=x.height,t.offsetX=0,t.offsetY=0,t.intersect=function(_){return ic(t,_)},{cluster:s,labelBBox:{}}},"divider"),YQ=KO,VQ={rect:KO,squareRect:YQ,roundedWithTitle:jQ,noteGroup:qQ,divider:WQ,kanbanSection:GQ},ZO=new Map,XQ=k(async(e,t)=>{const n=t.shape||"rect",i=await VQ[n](e,t);return ZO.set(t.id,i),i},"insertCluster"),Iie=k(()=>{ZO=new Map},"clear");function QO(e,t){return e.intersect(t)}k(QO,"intersectNode");var KQ=QO;function JO(e,t,n,i){var r=e.x,l=e.y,s=r-i.x,c=l-i.y,u=Math.sqrt(t*t*c*c+n*n*s*s),h=Math.abs(t*n*s/u);i.x<r&&(h=-h);var d=Math.abs(t*n*c/u);return i.y<l&&(d=-d),{x:r+h,y:l+d}}k(JO,"intersectEllipse");var eL=JO;function tL(e,t,n){return eL(e,t,t,n)}k(tL,"intersectCircle");var ZQ=tL;function nL(e,t,n,i){{const r=t.y-e.y,l=e.x-t.x,s=t.x*e.y-e.x*t.y,c=r*n.x+l*n.y+s,u=r*i.x+l*i.y+s,h=1e-6;if(c!==0&&u!==0&&Sb(c,u))return;const d=i.y-n.y,p=n.x-i.x,y=i.x*n.y-n.x*i.y,m=d*e.x+p*e.y+y,x=d*t.x+p*t.y+y;if(Math.abs(m)<h&&Math.abs(x)<h&&Sb(m,x))return;const _=r*p-d*l;if(_===0)return;const w=Math.abs(_/2);let S=l*y-p*s;const C=S<0?(S-w)/_:(S+w)/_;S=d*s-r*y;const E=S<0?(S-w)/_:(S+w)/_;return{x:C,y:E}}}k(nL,"intersectLine");function Sb(e,t){return e*t>0}k(Sb,"sameSign");var QQ=nL;function iL(e,t,n){let i=e.x,r=e.y,l=[],s=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){s=Math.min(s,d.x),c=Math.min(c,d.y)}):(s=Math.min(s,t.x),c=Math.min(c,t.y));let u=i-e.width/2-s,h=r-e.height/2-c;for(let d=0;d<t.length;d++){let p=t[d],y=t[d<t.length-1?d+1:0],m=QQ(e,n,{x:u+p.x,y:h+p.y},{x:u+y.x,y:h+y.y});m&&l.push(m)}return l.length?(l.length>1&&l.sort(function(d,p){let y=d.x-n.x,m=d.y-n.y,x=Math.sqrt(y*y+m*m),_=p.x-n.x,w=p.y-n.y,S=Math.sqrt(_*_+w*w);return x<S?-1:x===S?0:1}),l[0]):e}k(iL,"intersectPolygon");var JQ=iL,Te={node:KQ,circle:ZQ,ellipse:eL,polygon:JQ,rect:ic};function rL(e,t){const{labelStyles:n}=Be(t);t.labelStyle=n;const i=Ye(t);let r=i;i||(r="anchor");const l=e.insert("g").attr("class",r).attr("id",t.domId||t.id),s=1,{cssStyles:c}=t,u=Oe.svg(l),h=De(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);const d=u.circle(0,0,s*2,h),p=l.insert(()=>d,":first-child");return p.attr("class","anchor").attr("style",ui(c)),Ie(t,p),t.intersect=function(y){return fe.info("Circle intersect",t,s,y),Te.circle(t,s,y)},l}k(rL,"anchor");function Cb(e,t,n,i,r,l,s){const u=(e+n)/2,h=(t+i)/2,d=Math.atan2(i-t,n-e),p=(n-e)/2,y=(i-t)/2,m=p/r,x=y/l,_=Math.sqrt(m**2+x**2);if(_>1)throw new Error("The given radii are too small to create an arc between the points.");const w=Math.sqrt(1-_**2),S=u+w*l*Math.sin(d)*(s?-1:1),C=h-w*r*Math.cos(d)*(s?-1:1),E=Math.atan2((t-C)/l,(e-S)/r);let M=Math.atan2((i-C)/l,(n-S)/r)-E;s&&M<0&&(M+=2*Math.PI),!s&&M>0&&(M-=2*Math.PI);const A=[];for(let O=0;O<20;O++){const q=O/19,j=E+q*M,F=S+r*Math.cos(j),H=C+l*Math.sin(j);A.push({x:F,y:H})}return A}k(Cb,"generateArcPoints");async function aL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l}=await Ze(e,t,Ye(t)),s=l.width+t.padding+20,c=l.height+t.padding,u=c/2,h=u/(2.5+c/50),{cssStyles:d}=t,p=[{x:s/2,y:-c/2},{x:-s/2,y:-c/2},...Cb(-s/2,-c/2,-s/2,c/2,h,u,!1),{x:s/2,y:c/2},...Cb(s/2,c/2,s/2,-c/2,h,u,!0)],y=Oe.svg(r),m=De(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=mt(p),_=y.path(x,m),w=r.insert(()=>_,":first-child");return w.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),w.attr("transform",`translate(${h/2}, 0)`),Ie(t,w),t.intersect=function(S){return Te.polygon(t,p,S)},r}k(aL,"bowTieRect");function Dl(e,t,n,i){return e.insert("polygon",":first-child").attr("points",i.map(function(r){return r.x+","+r.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+n/2+")")}k(Dl,"insertPolygonShape");async function lL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l}=await Ze(e,t,Ye(t)),s=l.height+t.padding,c=12,u=l.width+t.padding+c,h=0,d=u,p=-s,y=0,m=[{x:h+c,y:p},{x:d,y:p},{x:d,y},{x:h,y},{x:h,y:p+c},{x:h+c,y:p}];let x;const{cssStyles:_}=t;if(t.look==="handDrawn"){const w=Oe.svg(r),S=De(t,{}),C=mt(m),E=w.path(C,S);x=r.insert(()=>E,":first-child").attr("transform",`translate(${-u/2}, ${s/2})`),_&&x.attr("style",_)}else x=Dl(r,u,s,m);return i&&x.attr("style",i),Ie(t,x),t.intersect=function(w){return Te.polygon(t,m,w)},r}k(lL,"card");function sL(e,t){const{nodeStyles:n}=Be(t);t.label="";const i=e.insert("g").attr("class",Ye(t)).attr("id",t.domId??t.id),{cssStyles:r}=t,l=Math.max(28,t.width??0),s=[{x:0,y:l/2},{x:l/2,y:0},{x:0,y:-l/2},{x:-l/2,y:0}],c=Oe.svg(i),u=De(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const h=mt(s),d=c.path(h,u),p=i.insert(()=>d,":first-child");return r&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",r),n&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",n),t.width=28,t.height=28,t.intersect=function(y){return Te.polygon(t,s,y)},i}k(sL,"choice");async function o1(e,t,n){const{labelStyles:i,nodeStyles:r}=Be(t);t.labelStyle=i;const{shapeSvg:l,bbox:s,halfPadding:c}=await Ze(e,t,Ye(t)),u=(n==null?void 0:n.padding)??c,h=s.width/2+u;let d;const{cssStyles:p}=t;if(t.look==="handDrawn"){const y=Oe.svg(l),m=De(t,{}),x=y.circle(0,0,h*2,m);d=l.insert(()=>x,":first-child"),d.attr("class","basic label-container").attr("style",ui(p))}else d=l.insert("circle",":first-child").attr("class","basic label-container").attr("style",r).attr("r",h).attr("cx",0).attr("cy",0);return Ie(t,d),t.calcIntersect=function(y,m){const x=y.width/2;return Te.circle(y,x,m)},t.intersect=function(y){return fe.info("Circle intersect",t,h,y),Te.circle(t,h,y)},l}k(o1,"circle");function oL(e){const t=Math.cos(Math.PI/4),n=Math.sin(Math.PI/4),i=e*2,r={x:i/2*t,y:i/2*n},l={x:-(i/2)*t,y:i/2*n},s={x:-(i/2)*t,y:-(i/2)*n},c={x:i/2*t,y:-(i/2)*n};return`M ${l.x},${l.y} L ${c.x},${c.y}
|
|
344
|
+
M ${r.x},${r.y} L ${s.x},${s.y}`}k(oL,"createLine");function cL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n,t.label="";const r=e.insert("g").attr("class",Ye(t)).attr("id",t.domId??t.id),l=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:s}=t,c=Oe.svg(r),u=De(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const h=c.circle(0,0,l*2,u),d=oL(l),p=c.path(d,u),y=r.insert(()=>h,":first-child");return y.insert(()=>p),s&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",s),i&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",i),Ie(t,y),t.intersect=function(m){return fe.info("crossedCircle intersect",t,{radius:l,point:m}),Te.circle(t,l,m)},r}k(cL,"crossedCircle");function Oa(e,t,n,i=100,r=0,l=180){const s=[],c=r*Math.PI/180,d=(l*Math.PI/180-c)/(i-1);for(let p=0;p<i;p++){const y=c+p*d,m=e+n*Math.cos(y),x=t+n*Math.sin(y);s.push({x:-m,y:-x})}return s}k(Oa,"generateCirclePoints");async function uL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=l.width+(t.padding??0),u=l.height+(t.padding??0),h=Math.max(5,u*.1),{cssStyles:d}=t,p=[...Oa(c/2,-u/2,h,30,-90,0),{x:-c/2-h,y:h},...Oa(c/2+h*2,-h,h,20,-180,-270),...Oa(c/2+h*2,h,h,20,-90,-180),{x:-c/2-h,y:-u/2},...Oa(c/2,u/2,h,20,0,90)],y=[{x:c/2,y:-u/2-h},{x:-c/2,y:-u/2-h},...Oa(c/2,-u/2,h,20,-90,0),{x:-c/2-h,y:-h},...Oa(c/2+c*.1,-h,h,20,-180,-270),...Oa(c/2+c*.1,h,h,20,-90,-180),{x:-c/2-h,y:u/2},...Oa(c/2,u/2,h,20,0,90),{x:-c/2,y:u/2+h},{x:c/2,y:u/2+h}],m=Oe.svg(r),x=De(t,{fill:"none"});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const w=mt(p).replace("Z",""),S=m.path(w,x),C=mt(y),E=m.path(C,{...x}),N=r.insert("g",":first-child");return N.insert(()=>E,":first-child").attr("stroke-opacity",0),N.insert(()=>S,":first-child"),N.attr("class","text"),d&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",i),N.attr("transform",`translate(${h}, 0)`),s.attr("transform",`translate(${-c/2+h-(l.x-(l.left??0))},${-u/2+(t.padding??0)/2-(l.y-(l.top??0))})`),Ie(t,N),t.intersect=function(M){return Te.polygon(t,y,M)},r}k(uL,"curlyBraceLeft");function La(e,t,n,i=100,r=0,l=180){const s=[],c=r*Math.PI/180,d=(l*Math.PI/180-c)/(i-1);for(let p=0;p<i;p++){const y=c+p*d,m=e+n*Math.cos(y),x=t+n*Math.sin(y);s.push({x:m,y:x})}return s}k(La,"generateCirclePoints");async function hL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=l.width+(t.padding??0),u=l.height+(t.padding??0),h=Math.max(5,u*.1),{cssStyles:d}=t,p=[...La(c/2,-u/2,h,20,-90,0),{x:c/2+h,y:-h},...La(c/2+h*2,-h,h,20,-180,-270),...La(c/2+h*2,h,h,20,-90,-180),{x:c/2+h,y:u/2},...La(c/2,u/2,h,20,0,90)],y=[{x:-c/2,y:-u/2-h},{x:c/2,y:-u/2-h},...La(c/2,-u/2,h,20,-90,0),{x:c/2+h,y:-h},...La(c/2+h*2,-h,h,20,-180,-270),...La(c/2+h*2,h,h,20,-90,-180),{x:c/2+h,y:u/2},...La(c/2,u/2,h,20,0,90),{x:c/2,y:u/2+h},{x:-c/2,y:u/2+h}],m=Oe.svg(r),x=De(t,{fill:"none"});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const w=mt(p).replace("Z",""),S=m.path(w,x),C=mt(y),E=m.path(C,{...x}),N=r.insert("g",":first-child");return N.insert(()=>E,":first-child").attr("stroke-opacity",0),N.insert(()=>S,":first-child"),N.attr("class","text"),d&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",i),N.attr("transform",`translate(${-h}, 0)`),s.attr("transform",`translate(${-c/2+(t.padding??0)/2-(l.x-(l.left??0))},${-u/2+(t.padding??0)/2-(l.y-(l.top??0))})`),Ie(t,N),t.intersect=function(M){return Te.polygon(t,y,M)},r}k(hL,"curlyBraceRight");function Kn(e,t,n,i=100,r=0,l=180){const s=[],c=r*Math.PI/180,d=(l*Math.PI/180-c)/(i-1);for(let p=0;p<i;p++){const y=c+p*d,m=e+n*Math.cos(y),x=t+n*Math.sin(y);s.push({x:-m,y:-x})}return s}k(Kn,"generateCirclePoints");async function fL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=l.width+(t.padding??0),u=l.height+(t.padding??0),h=Math.max(5,u*.1),{cssStyles:d}=t,p=[...Kn(c/2,-u/2,h,30,-90,0),{x:-c/2-h,y:h},...Kn(c/2+h*2,-h,h,20,-180,-270),...Kn(c/2+h*2,h,h,20,-90,-180),{x:-c/2-h,y:-u/2},...Kn(c/2,u/2,h,20,0,90)],y=[...Kn(-c/2+h+h/2,-u/2,h,20,-90,-180),{x:c/2-h/2,y:h},...Kn(-c/2-h/2,-h,h,20,0,90),...Kn(-c/2-h/2,h,h,20,-90,0),{x:c/2-h/2,y:-h},...Kn(-c/2+h+h/2,u/2,h,30,-180,-270)],m=[{x:c/2,y:-u/2-h},{x:-c/2,y:-u/2-h},...Kn(c/2,-u/2,h,20,-90,0),{x:-c/2-h,y:-h},...Kn(c/2+h*2,-h,h,20,-180,-270),...Kn(c/2+h*2,h,h,20,-90,-180),{x:-c/2-h,y:u/2},...Kn(c/2,u/2,h,20,0,90),{x:-c/2,y:u/2+h},{x:c/2-h-h/2,y:u/2+h},...Kn(-c/2+h+h/2,-u/2,h,20,-90,-180),{x:c/2-h/2,y:h},...Kn(-c/2-h/2,-h,h,20,0,90),...Kn(-c/2-h/2,h,h,20,-90,0),{x:c/2-h/2,y:-h},...Kn(-c/2+h+h/2,u/2,h,30,-180,-270)],x=Oe.svg(r),_=De(t,{fill:"none"});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const S=mt(p).replace("Z",""),C=x.path(S,_),N=mt(y).replace("Z",""),M=x.path(N,_),A=mt(m),O=x.path(A,{..._}),q=r.insert("g",":first-child");return q.insert(()=>O,":first-child").attr("stroke-opacity",0),q.insert(()=>C,":first-child"),q.insert(()=>M,":first-child"),q.attr("class","text"),d&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",i),q.attr("transform",`translate(${h-h/4}, 0)`),s.attr("transform",`translate(${-c/2+(t.padding??0)/2-(l.x-(l.left??0))},${-u/2+(t.padding??0)/2-(l.y-(l.top??0))})`),Ie(t,q),t.intersect=function(j){return Te.polygon(t,m,j)},r}k(fL,"curlyBraces");async function dL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l}=await Ze(e,t,Ye(t)),s=80,c=20,u=Math.max(s,(l.width+(t.padding??0)*2)*1.25,(t==null?void 0:t.width)??0),h=Math.max(c,l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=h/2,{cssStyles:p}=t,y=Oe.svg(r),m=De(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=u,_=h,w=x-d,S=_/4,C=[{x:w,y:0},{x:S,y:0},{x:0,y:_/2},{x:S,y:_},{x:w,y:_},...ih(-w,-_/2,d,50,270,90)],E=mt(C),N=y.path(E,m),M=r.insert(()=>N,":first-child");return M.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&M.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&M.selectChildren("path").attr("style",i),M.attr("transform",`translate(${-u/2}, ${-h/2})`),Ie(t,M),t.intersect=function(A){return Te.polygon(t,C,A)},r}k(dL,"curvedTrapezoid");var eJ=k((e,t,n,i,r,l)=>[`M${e},${t+l}`,`a${r},${l} 0,0,0 ${n},0`,`a${r},${l} 0,0,0 ${-n},0`,`l0,${i}`,`a${r},${l} 0,0,0 ${n},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),tJ=k((e,t,n,i,r,l)=>[`M${e},${t+l}`,`M${e+n},${t+l}`,`a${r},${l} 0,0,0 ${-n},0`,`l0,${i}`,`a${r},${l} 0,0,0 ${n},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),nJ=k((e,t,n,i,r,l)=>[`M${e-n/2},${-i/2}`,`a${r},${l} 0,0,0 ${n},0`].join(" "),"createInnerCylinderPathD");async function pL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=Math.max(l.width+t.padding,t.width??0),u=c/2,h=u/(2.5+c/50),d=Math.max(l.height+h+t.padding,t.height??0);let p;const{cssStyles:y}=t;if(t.look==="handDrawn"){const m=Oe.svg(r),x=tJ(0,0,c,d,u,h),_=nJ(0,h,c,d,u,h),w=m.path(x,De(t,{})),S=m.path(_,De(t,{fill:"none"}));p=r.insert(()=>S,":first-child"),p=r.insert(()=>w,":first-child"),p.attr("class","basic label-container"),y&&p.attr("style",y)}else{const m=eJ(0,0,c,d,u,h);p=r.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",ui(y)).attr("style",i)}return p.attr("label-offset-y",h),p.attr("transform",`translate(${-c/2}, ${-(d/2+h)})`),Ie(t,p),s.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+(t.padding??0)/1.5-(l.y-(l.top??0))})`),t.intersect=function(m){const x=Te.rect(t,m),_=x.x-(t.x??0);if(u!=0&&(Math.abs(_)<(t.width??0)/2||Math.abs(_)==(t.width??0)/2&&Math.abs(x.y-(t.y??0))>(t.height??0)/2-h)){let w=h*h*(1-_*_/(u*u));w>0&&(w=Math.sqrt(w)),w=h-w,m.y-(t.y??0)>0&&(w=-w),x.y+=w}return x},r}k(pL,"cylinder");async function gL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=l.width+t.padding,u=l.height+t.padding,h=u*.2,d=-c/2,p=-u/2-h/2,{cssStyles:y}=t,m=Oe.svg(r),x=De(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const _=[{x:d,y:p+h},{x:-d,y:p+h},{x:-d,y:-p},{x:d,y:-p},{x:d,y:p},{x:-d,y:p},{x:-d,y:p+h}],w=m.polygon(_.map(C=>[C.x,C.y]),x),S=r.insert(()=>w,":first-child");return S.attr("class","basic label-container"),y&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),s.attr("transform",`translate(${d+(t.padding??0)/2-(l.x-(l.left??0))}, ${p+h+(t.padding??0)/2-(l.y-(l.top??0))})`),Ie(t,S),t.intersect=function(C){return Te.rect(t,C)},r}k(gL,"dividedRectangle");async function mL(e,t){var y,m;const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,halfPadding:s}=await Ze(e,t,Ye(t)),u=l.width/2+s+5,h=l.width/2+s;let d;const{cssStyles:p}=t;if(t.look==="handDrawn"){const x=Oe.svg(r),_=De(t,{roughness:.2,strokeWidth:2.5}),w=De(t,{roughness:.2,strokeWidth:1.5}),S=x.circle(0,0,u*2,_),C=x.circle(0,0,h*2,w);d=r.insert("g",":first-child"),d.attr("class",ui(t.cssClasses)).attr("style",ui(p)),(y=d.node())==null||y.appendChild(S),(m=d.node())==null||m.appendChild(C)}else{d=r.insert("g",":first-child");const x=d.insert("circle",":first-child"),_=d.insert("circle");d.attr("class","basic label-container").attr("style",i),x.attr("class","outer-circle").attr("style",i).attr("r",u).attr("cx",0).attr("cy",0),_.attr("class","inner-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0)}return Ie(t,d),t.intersect=function(x){return fe.info("DoubleCircle intersect",t,u,x),Te.circle(t,u,x)},r}k(mL,"doublecircle");function yL(e,t,{config:{themeVariables:n}}){const{labelStyles:i,nodeStyles:r}=Be(t);t.label="",t.labelStyle=i;const l=e.insert("g").attr("class",Ye(t)).attr("id",t.domId??t.id),s=7,{cssStyles:c}=t,u=Oe.svg(l),{nodeBorder:h}=n,d=De(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(d.roughness=0);const p=u.circle(0,0,s*2,d),y=l.insert(()=>p,":first-child");return y.selectAll("path").attr("style",`fill: ${h} !important;`),c&&c.length>0&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",c),r&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",r),Ie(t,y),t.intersect=function(m){return fe.info("filledCircle intersect",t,{radius:s,point:m}),Te.circle(t,s,m)},l}k(yL,"filledCircle");async function bL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=l.width+(t.padding??0),u=c+l.height,h=c+l.height,d=[{x:0,y:-u},{x:h,y:-u},{x:h/2,y:0}],{cssStyles:p}=t,y=Oe.svg(r),m=De(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=mt(d),_=y.path(x,m),w=r.insert(()=>_,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`);return p&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),t.width=c,t.height=u,Ie(t,w),s.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${-u/2+(t.padding??0)/2+(l.y-(l.top??0))})`),t.intersect=function(S){return fe.info("Triangle intersect",t,d,S),Te.polygon(t,d,S)},r}k(bL,"flippedTriangle");function xL(e,t,{dir:n,config:{state:i,themeVariables:r}}){const{nodeStyles:l}=Be(t);t.label="";const s=e.insert("g").attr("class",Ye(t)).attr("id",t.domId??t.id),{cssStyles:c}=t;let u=Math.max(70,(t==null?void 0:t.width)??0),h=Math.max(10,(t==null?void 0:t.height)??0);n==="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,p=-1*h/2,y=Oe.svg(s),m=De(t,{stroke:r.lineColor,fill:r.lineColor});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=y.rectangle(d,p,u,h,m),_=s.insert(()=>x,":first-child");c&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",c),l&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",l),Ie(t,_);const w=(i==null?void 0:i.padding)??0;return t.width&&t.height&&(t.width+=w/2||0,t.height+=w/2||0),t.intersect=function(S){return Te.rect(t,S)},s}k(xL,"forkJoin");async function _L(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const r=80,l=50,{shapeSvg:s,bbox:c}=await Ze(e,t,Ye(t)),u=Math.max(r,c.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(l,c.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=h/2,{cssStyles:p}=t,y=Oe.svg(s),m=De(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=[{x:-u/2,y:-h/2},{x:u/2-d,y:-h/2},...ih(-u/2+d,0,d,50,90,270),{x:u/2-d,y:h/2},{x:-u/2,y:h/2}],_=mt(x),w=y.path(_,m),S=s.insert(()=>w,":first-child");return S.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),Ie(t,S),t.intersect=function(C){return fe.info("Pill intersect",t,{radius:d,point:C}),Te.polygon(t,x,C)},s}k(_L,"halfRoundedRectangle");async function vL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l}=await Ze(e,t,Ye(t)),s=l.height+(t.padding??0),c=l.width+(t.padding??0)*2.5,{cssStyles:u}=t,h=Oe.svg(r),d=De(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");let p=c/2;const y=p/6;p=p+y;const m=s/2,x=m/2,_=p-x,w=[{x:-_,y:-m},{x:0,y:-m},{x:_,y:-m},{x:p,y:0},{x:_,y:m},{x:0,y:m},{x:-_,y:m},{x:-p,y:0}],S=mt(w),C=h.path(S,d),E=r.insert(()=>C,":first-child");return E.attr("class","basic label-container"),u&&t.look!=="handDrawn"&&E.selectChildren("path").attr("style",u),i&&t.look!=="handDrawn"&&E.selectChildren("path").attr("style",i),t.width=c,t.height=s,Ie(t,E),t.intersect=function(N){return Te.polygon(t,w,N)},r}k(vL,"hexagon");async function wL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.label="",t.labelStyle=n;const{shapeSvg:r}=await Ze(e,t,Ye(t)),l=Math.max(30,(t==null?void 0:t.width)??0),s=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:c}=t,u=Oe.svg(r),h=De(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const d=[{x:0,y:0},{x:l,y:0},{x:0,y:s},{x:l,y:s}],p=mt(d),y=u.path(p,h),m=r.insert(()=>y,":first-child");return m.attr("class","basic label-container"),c&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",c),i&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",i),m.attr("transform",`translate(${-l/2}, ${-s/2})`),Ie(t,m),t.intersect=function(x){return fe.info("Pill intersect",t,{points:d}),Te.polygon(t,d,x)},r}k(wL,"hourglass");async function SL(e,t,{config:{themeVariables:n,flowchart:i}}){const{labelStyles:r}=Be(t);t.labelStyle=r;const l=t.assetHeight??48,s=t.assetWidth??48,c=Math.max(l,s),u=i==null?void 0:i.wrappingWidth;t.width=Math.max(c,u??0);const{shapeSvg:h,bbox:d,label:p}=await Ze(e,t,"icon-shape default"),y=t.pos==="t",m=c,x=c,{nodeBorder:_}=n,{stylesMap:w}=ec(t),S=-x/2,C=-m/2,E=t.label?8:0,N=Oe.svg(h),M=De(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(M.roughness=0,M.fillStyle="solid");const A=N.rectangle(S,C,x,m,M),O=Math.max(x,d.width),q=m+d.height+E,j=N.rectangle(-O/2,-q/2,O,q,{...M,fill:"transparent",stroke:"none"}),F=h.insert(()=>A,":first-child"),H=h.insert(()=>j);if(t.icon){const Z=h.append("g");Z.html(`<g>${await _h(t.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const V=Z.node().getBBox(),P=V.width,z=V.height,L=V.x,U=V.y;Z.attr("transform",`translate(${-P/2-L},${y?d.height/2+E/2-z/2-U:-d.height/2-E/2-z/2-U})`),Z.attr("style",`color: ${w.get("stroke")??_};`)}return p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${y?-q/2:q/2-d.height})`),F.attr("transform",`translate(0,${y?d.height/2+E/2:-d.height/2-E/2})`),Ie(t,H),t.intersect=function(Z){if(fe.info("iconSquare intersect",t,Z),!t.label)return Te.rect(t,Z);const V=t.x??0,P=t.y??0,z=t.height??0;let L=[];return y?L=[{x:V-d.width/2,y:P-z/2},{x:V+d.width/2,y:P-z/2},{x:V+d.width/2,y:P-z/2+d.height+E},{x:V+x/2,y:P-z/2+d.height+E},{x:V+x/2,y:P+z/2},{x:V-x/2,y:P+z/2},{x:V-x/2,y:P-z/2+d.height+E},{x:V-d.width/2,y:P-z/2+d.height+E}]:L=[{x:V-x/2,y:P-z/2},{x:V+x/2,y:P-z/2},{x:V+x/2,y:P-z/2+m},{x:V+d.width/2,y:P-z/2+m},{x:V+d.width/2/2,y:P+z/2},{x:V-d.width/2,y:P+z/2},{x:V-d.width/2,y:P-z/2+m},{x:V-x/2,y:P-z/2+m}],Te.polygon(t,L,Z)},h}k(SL,"icon");async function CL(e,t,{config:{themeVariables:n,flowchart:i}}){const{labelStyles:r}=Be(t);t.labelStyle=r;const l=t.assetHeight??48,s=t.assetWidth??48,c=Math.max(l,s),u=i==null?void 0:i.wrappingWidth;t.width=Math.max(c,u??0);const{shapeSvg:h,bbox:d,label:p}=await Ze(e,t,"icon-shape default"),y=20,m=t.label?8:0,x=t.pos==="t",{nodeBorder:_,mainBkg:w}=n,{stylesMap:S}=ec(t),C=Oe.svg(h),E=De(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const N=S.get("fill");E.stroke=N??w;const M=h.append("g");t.icon&&M.html(`<g>${await _h(t.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const A=M.node().getBBox(),O=A.width,q=A.height,j=A.x,F=A.y,H=Math.max(O,q)*Math.SQRT2+y*2,Z=C.circle(0,0,H,E),V=Math.max(H,d.width),P=H+d.height+m,z=C.rectangle(-V/2,-P/2,V,P,{...E,fill:"transparent",stroke:"none"}),L=h.insert(()=>Z,":first-child"),U=h.insert(()=>z);return M.attr("transform",`translate(${-O/2-j},${x?d.height/2+m/2-q/2-F:-d.height/2-m/2-q/2-F})`),M.attr("style",`color: ${S.get("stroke")??_};`),p.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${x?-P/2:P/2-d.height})`),L.attr("transform",`translate(0,${x?d.height/2+m/2:-d.height/2-m/2})`),Ie(t,U),t.intersect=function(G){return fe.info("iconSquare intersect",t,G),Te.rect(t,G)},h}k(CL,"iconCircle");async function kL(e,t,{config:{themeVariables:n,flowchart:i}}){const{labelStyles:r}=Be(t);t.labelStyle=r;const l=t.assetHeight??48,s=t.assetWidth??48,c=Math.max(l,s),u=i==null?void 0:i.wrappingWidth;t.width=Math.max(c,u??0);const{shapeSvg:h,bbox:d,halfPadding:p,label:y}=await Ze(e,t,"icon-shape default"),m=t.pos==="t",x=c+p*2,_=c+p*2,{nodeBorder:w,mainBkg:S}=n,{stylesMap:C}=ec(t),E=-_/2,N=-x/2,M=t.label?8:0,A=Oe.svg(h),O=De(t,{});t.look!=="handDrawn"&&(O.roughness=0,O.fillStyle="solid");const q=C.get("fill");O.stroke=q??S;const j=A.path(Rl(E,N,_,x,5),O),F=Math.max(_,d.width),H=x+d.height+M,Z=A.rectangle(-F/2,-H/2,F,H,{...O,fill:"transparent",stroke:"none"}),V=h.insert(()=>j,":first-child").attr("class","icon-shape2"),P=h.insert(()=>Z);if(t.icon){const z=h.append("g");z.html(`<g>${await _h(t.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const L=z.node().getBBox(),U=L.width,G=L.height,le=L.x,B=L.y;z.attr("transform",`translate(${-U/2-le},${m?d.height/2+M/2-G/2-B:-d.height/2-M/2-G/2-B})`),z.attr("style",`color: ${C.get("stroke")??w};`)}return y.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${m?-H/2:H/2-d.height})`),V.attr("transform",`translate(0,${m?d.height/2+M/2:-d.height/2-M/2})`),Ie(t,P),t.intersect=function(z){if(fe.info("iconSquare intersect",t,z),!t.label)return Te.rect(t,z);const L=t.x??0,U=t.y??0,G=t.height??0;let le=[];return m?le=[{x:L-d.width/2,y:U-G/2},{x:L+d.width/2,y:U-G/2},{x:L+d.width/2,y:U-G/2+d.height+M},{x:L+_/2,y:U-G/2+d.height+M},{x:L+_/2,y:U+G/2},{x:L-_/2,y:U+G/2},{x:L-_/2,y:U-G/2+d.height+M},{x:L-d.width/2,y:U-G/2+d.height+M}]:le=[{x:L-_/2,y:U-G/2},{x:L+_/2,y:U-G/2},{x:L+_/2,y:U-G/2+x},{x:L+d.width/2,y:U-G/2+x},{x:L+d.width/2/2,y:U+G/2},{x:L-d.width/2,y:U+G/2},{x:L-d.width/2,y:U-G/2+x},{x:L-_/2,y:U-G/2+x}],Te.polygon(t,le,z)},h}k(kL,"iconRounded");async function EL(e,t,{config:{themeVariables:n,flowchart:i}}){const{labelStyles:r}=Be(t);t.labelStyle=r;const l=t.assetHeight??48,s=t.assetWidth??48,c=Math.max(l,s),u=i==null?void 0:i.wrappingWidth;t.width=Math.max(c,u??0);const{shapeSvg:h,bbox:d,halfPadding:p,label:y}=await Ze(e,t,"icon-shape default"),m=t.pos==="t",x=c+p*2,_=c+p*2,{nodeBorder:w,mainBkg:S}=n,{stylesMap:C}=ec(t),E=-_/2,N=-x/2,M=t.label?8:0,A=Oe.svg(h),O=De(t,{});t.look!=="handDrawn"&&(O.roughness=0,O.fillStyle="solid");const q=C.get("fill");O.stroke=q??S;const j=A.path(Rl(E,N,_,x,.1),O),F=Math.max(_,d.width),H=x+d.height+M,Z=A.rectangle(-F/2,-H/2,F,H,{...O,fill:"transparent",stroke:"none"}),V=h.insert(()=>j,":first-child"),P=h.insert(()=>Z);if(t.icon){const z=h.append("g");z.html(`<g>${await _h(t.icon,{height:c,width:c,fallbackPrefix:""})}</g>`);const L=z.node().getBBox(),U=L.width,G=L.height,le=L.x,B=L.y;z.attr("transform",`translate(${-U/2-le},${m?d.height/2+M/2-G/2-B:-d.height/2-M/2-G/2-B})`),z.attr("style",`color: ${C.get("stroke")??w};`)}return y.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${m?-H/2:H/2-d.height})`),V.attr("transform",`translate(0,${m?d.height/2+M/2:-d.height/2-M/2})`),Ie(t,P),t.intersect=function(z){if(fe.info("iconSquare intersect",t,z),!t.label)return Te.rect(t,z);const L=t.x??0,U=t.y??0,G=t.height??0;let le=[];return m?le=[{x:L-d.width/2,y:U-G/2},{x:L+d.width/2,y:U-G/2},{x:L+d.width/2,y:U-G/2+d.height+M},{x:L+_/2,y:U-G/2+d.height+M},{x:L+_/2,y:U+G/2},{x:L-_/2,y:U+G/2},{x:L-_/2,y:U-G/2+d.height+M},{x:L-d.width/2,y:U-G/2+d.height+M}]:le=[{x:L-_/2,y:U-G/2},{x:L+_/2,y:U-G/2},{x:L+_/2,y:U-G/2+x},{x:L+d.width/2,y:U-G/2+x},{x:L+d.width/2/2,y:U+G/2},{x:L-d.width/2,y:U+G/2},{x:L-d.width/2,y:U-G/2+x},{x:L-_/2,y:U-G/2+x}],Te.polygon(t,le,z)},h}k(EL,"iconSquare");async function TL(e,t,{config:{flowchart:n}}){const i=new Image;i.src=(t==null?void 0:t.img)??"",await i.decode();const r=Number(i.naturalWidth.toString().replace("px","")),l=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=r/l;const{labelStyles:s}=Be(t);t.labelStyle=s;const c=n==null?void 0:n.wrappingWidth;t.defaultWidth=n==null?void 0:n.wrappingWidth;const u=Math.max(t.label?c??0:0,(t==null?void 0:t.assetWidth)??r),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)??l;t.width=Math.max(h,c??0);const{shapeSvg:p,bbox:y,label:m}=await Ze(e,t,"image-shape default"),x=t.pos==="t",_=-h/2,w=-d/2,S=t.label?8:0,C=Oe.svg(p),E=De(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const N=C.rectangle(_,w,h,d,E),M=Math.max(h,y.width),A=d+y.height+S,O=C.rectangle(-M/2,-A/2,M,A,{...E,fill:"none",stroke:"none"}),q=p.insert(()=>N,":first-child"),j=p.insert(()=>O);if(t.img){const F=p.append("image");F.attr("href",t.img),F.attr("width",h),F.attr("height",d),F.attr("preserveAspectRatio","none"),F.attr("transform",`translate(${-h/2},${x?A/2-d:-A/2})`)}return m.attr("transform",`translate(${-y.width/2-(y.x-(y.left??0))},${x?-d/2-y.height/2-S/2:d/2-y.height/2+S/2})`),q.attr("transform",`translate(0,${x?y.height/2+S/2:-y.height/2-S/2})`),Ie(t,j),t.intersect=function(F){if(fe.info("iconSquare intersect",t,F),!t.label)return Te.rect(t,F);const H=t.x??0,Z=t.y??0,V=t.height??0;let P=[];return x?P=[{x:H-y.width/2,y:Z-V/2},{x:H+y.width/2,y:Z-V/2},{x:H+y.width/2,y:Z-V/2+y.height+S},{x:H+h/2,y:Z-V/2+y.height+S},{x:H+h/2,y:Z+V/2},{x:H-h/2,y:Z+V/2},{x:H-h/2,y:Z-V/2+y.height+S},{x:H-y.width/2,y:Z-V/2+y.height+S}]:P=[{x:H-h/2,y:Z-V/2},{x:H+h/2,y:Z-V/2},{x:H+h/2,y:Z-V/2+d},{x:H+y.width/2,y:Z-V/2+d},{x:H+y.width/2/2,y:Z+V/2},{x:H-y.width/2,y:Z+V/2},{x:H-y.width/2,y:Z-V/2+d},{x:H-h/2,y:Z-V/2+d}],Te.polygon(t,P,F)},p}k(TL,"imageSquare");async function AL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l}=await Ze(e,t,Ye(t)),s=Math.max(l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=[{x:0,y:0},{x:s,y:0},{x:s+3*c/6,y:-c},{x:-3*c/6,y:-c}];let h;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=Oe.svg(r),y=De(t,{}),m=mt(u),x=p.path(m,y);h=r.insert(()=>x,":first-child").attr("transform",`translate(${-s/2}, ${c/2})`),d&&h.attr("style",d)}else h=Dl(r,s,c,u);return i&&h.attr("style",i),t.width=s,t.height=c,Ie(t,h),t.intersect=function(p){return Te.polygon(t,u,p)},r}k(AL,"inv_trapezoid");async function eg(e,t,n){const{labelStyles:i,nodeStyles:r}=Be(t);t.labelStyle=i;const{shapeSvg:l,bbox:s}=await Ze(e,t,Ye(t)),c=Math.max(s.width+n.labelPaddingX*2,(t==null?void 0:t.width)||0),u=Math.max(s.height+n.labelPaddingY*2,(t==null?void 0:t.height)||0),h=-c/2,d=-u/2;let p,{rx:y,ry:m}=t;const{cssStyles:x}=t;if(n!=null&&n.rx&&n.ry&&(y=n.rx,m=n.ry),t.look==="handDrawn"){const _=Oe.svg(l),w=De(t,{}),S=y||m?_.path(Rl(h,d,c,u,y||0),w):_.rectangle(h,d,c,u,w);p=l.insert(()=>S,":first-child"),p.attr("class","basic label-container").attr("style",ui(x))}else p=l.insert("rect",":first-child"),p.attr("class","basic label-container").attr("style",r).attr("rx",ui(y)).attr("ry",ui(m)).attr("x",h).attr("y",d).attr("width",c).attr("height",u);return Ie(t,p),t.calcIntersect=function(_,w){return Te.rect(_,w)},t.intersect=function(_){return Te.rect(t,_)},l}k(eg,"drawRect");async function ML(e,t){const{shapeSvg:n,bbox:i,label:r}=await Ze(e,t,"label"),l=n.insert("rect",":first-child");return l.attr("width",.1).attr("height",.1),n.attr("class","label edgeLabel"),r.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),Ie(t,l),t.intersect=function(u){return Te.rect(t,u)},n}k(ML,"labelRect");async function NL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l}=await Ze(e,t,Ye(t)),s=Math.max(l.width+(t.padding??0),(t==null?void 0:t.width)??0),c=Math.max(l.height+(t.padding??0),(t==null?void 0:t.height)??0),u=[{x:0,y:0},{x:s+3*c/6,y:0},{x:s,y:-c},{x:-(3*c)/6,y:-c}];let h;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=Oe.svg(r),y=De(t,{}),m=mt(u),x=p.path(m,y);h=r.insert(()=>x,":first-child").attr("transform",`translate(${-s/2}, ${c/2})`),d&&h.attr("style",d)}else h=Dl(r,s,c,u);return i&&h.attr("style",i),t.width=s,t.height=c,Ie(t,h),t.intersect=function(p){return Te.polygon(t,u,p)},r}k(NL,"lean_left");async function OL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l}=await Ze(e,t,Ye(t)),s=Math.max(l.width+(t.padding??0),(t==null?void 0:t.width)??0),c=Math.max(l.height+(t.padding??0),(t==null?void 0:t.height)??0),u=[{x:-3*c/6,y:0},{x:s,y:0},{x:s+3*c/6,y:-c},{x:0,y:-c}];let h;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=Oe.svg(r),y=De(t,{}),m=mt(u),x=p.path(m,y);h=r.insert(()=>x,":first-child").attr("transform",`translate(${-s/2}, ${c/2})`),d&&h.attr("style",d)}else h=Dl(r,s,c,u);return i&&h.attr("style",i),t.width=s,t.height=c,Ie(t,h),t.intersect=function(p){return Te.polygon(t,u,p)},r}k(OL,"lean_right");function LL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.label="",t.labelStyle=n;const r=e.insert("g").attr("class",Ye(t)).attr("id",t.domId??t.id),{cssStyles:l}=t,s=Math.max(35,(t==null?void 0:t.width)??0),c=Math.max(35,(t==null?void 0:t.height)??0),u=7,h=[{x:s,y:0},{x:0,y:c+u/2},{x:s-2*u,y:c+u/2},{x:0,y:2*c},{x:s,y:c-u/2},{x:2*u,y:c-u/2}],d=Oe.svg(r),p=De(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const y=mt(h),m=d.path(y,p),x=r.insert(()=>m,":first-child");return l&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",l),i&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",i),x.attr("transform",`translate(-${s/2},${-c})`),Ie(t,x),t.intersect=function(_){return fe.info("lightningBolt intersect",t,_),Te.polygon(t,h,_)},r}k(LL,"lightningBolt");var iJ=k((e,t,n,i,r,l,s)=>[`M${e},${t+l}`,`a${r},${l} 0,0,0 ${n},0`,`a${r},${l} 0,0,0 ${-n},0`,`l0,${i}`,`a${r},${l} 0,0,0 ${n},0`,`l0,${-i}`,`M${e},${t+l+s}`,`a${r},${l} 0,0,0 ${n},0`].join(" "),"createCylinderPathD"),rJ=k((e,t,n,i,r,l,s)=>[`M${e},${t+l}`,`M${e+n},${t+l}`,`a${r},${l} 0,0,0 ${-n},0`,`l0,${i}`,`a${r},${l} 0,0,0 ${n},0`,`l0,${-i}`,`M${e},${t+l+s}`,`a${r},${l} 0,0,0 ${n},0`].join(" "),"createOuterCylinderPathD"),aJ=k((e,t,n,i,r,l)=>[`M${e-n/2},${-i/2}`,`a${r},${l} 0,0,0 ${n},0`].join(" "),"createInnerCylinderPathD");async function RL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=Math.max(l.width+(t.padding??0),t.width??0),u=c/2,h=u/(2.5+c/50),d=Math.max(l.height+h+(t.padding??0),t.height??0),p=d*.1;let y;const{cssStyles:m}=t;if(t.look==="handDrawn"){const x=Oe.svg(r),_=rJ(0,0,c,d,u,h,p),w=aJ(0,h,c,d,u,h),S=De(t,{}),C=x.path(_,S),E=x.path(w,S);r.insert(()=>E,":first-child").attr("class","line"),y=r.insert(()=>C,":first-child"),y.attr("class","basic label-container"),m&&y.attr("style",m)}else{const x=iJ(0,0,c,d,u,h,p);y=r.insert("path",":first-child").attr("d",x).attr("class","basic label-container").attr("style",ui(m)).attr("style",i)}return y.attr("label-offset-y",h),y.attr("transform",`translate(${-c/2}, ${-(d/2+h)})`),Ie(t,y),s.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+h-(l.y-(l.top??0))})`),t.intersect=function(x){const _=Te.rect(t,x),w=_.x-(t.x??0);if(u!=0&&(Math.abs(w)<(t.width??0)/2||Math.abs(w)==(t.width??0)/2&&Math.abs(_.y-(t.y??0))>(t.height??0)/2-h)){let S=h*h*(1-w*w/(u*u));S>0&&(S=Math.sqrt(S)),S=h-S,x.y-(t.y??0)>0&&(S=-S),_.y+=S}return _},r}k(RL,"linedCylinder");async function DL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=Math.max(l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=u/4,d=u+h,{cssStyles:p}=t,y=Oe.svg(r),m=De(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=[{x:-c/2-c/2*.1,y:-d/2},{x:-c/2-c/2*.1,y:d/2},...Ml(-c/2-c/2*.1,d/2,c/2+c/2*.1,d/2,h,.8),{x:c/2+c/2*.1,y:-d/2},{x:-c/2-c/2*.1,y:-d/2},{x:-c/2,y:-d/2},{x:-c/2,y:d/2*1.1},{x:-c/2,y:-d/2}],_=y.polygon(x.map(S=>[S.x,S.y]),m),w=r.insert(()=>_,":first-child");return w.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),w.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-c/2+(t.padding??0)+c/2*.1/2-(l.x-(l.left??0))},${-u/2+(t.padding??0)-h/2-(l.y-(l.top??0))})`),Ie(t,w),t.intersect=function(S){return Te.polygon(t,x,S)},r}k(DL,"linedWaveEdgedRect");async function BL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=Math.max(l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=5,d=-c/2,p=-u/2,{cssStyles:y}=t,m=Oe.svg(r),x=De(t,{}),_=[{x:d-h,y:p+h},{x:d-h,y:p+u+h},{x:d+c-h,y:p+u+h},{x:d+c-h,y:p+u},{x:d+c,y:p+u},{x:d+c,y:p+u-h},{x:d+c+h,y:p+u-h},{x:d+c+h,y:p-h},{x:d+h,y:p-h},{x:d+h,y:p},{x:d,y:p},{x:d,y:p+h}],w=[{x:d,y:p+h},{x:d+c-h,y:p+h},{x:d+c-h,y:p+u},{x:d+c,y:p+u},{x:d+c,y:p},{x:d,y:p}];t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const S=mt(_),C=m.path(S,x),E=mt(w),N=m.path(E,{...x,fill:"none"}),M=r.insert(()=>N,":first-child");return M.insert(()=>C,":first-child"),M.attr("class","basic label-container"),y&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",i),s.attr("transform",`translate(${-(l.width/2)-h-(l.x-(l.left??0))}, ${-(l.height/2)+h-(l.y-(l.top??0))})`),Ie(t,M),t.intersect=function(A){return Te.polygon(t,_,A)},r}k(BL,"multiRect");async function IL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=Math.max(l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=u/4,d=u+h,p=-c/2,y=-d/2,m=5,{cssStyles:x}=t,_=Ml(p-m,y+d+m,p+c-m,y+d+m,h,.8),w=_==null?void 0:_[_.length-1],S=[{x:p-m,y:y+m},{x:p-m,y:y+d+m},..._,{x:p+c-m,y:w.y-m},{x:p+c,y:w.y-m},{x:p+c,y:w.y-2*m},{x:p+c+m,y:w.y-2*m},{x:p+c+m,y:y-m},{x:p+m,y:y-m},{x:p+m,y},{x:p,y},{x:p,y:y+m}],C=[{x:p,y:y+m},{x:p+c-m,y:y+m},{x:p+c-m,y:w.y-m},{x:p+c,y:w.y-m},{x:p+c,y},{x:p,y}],E=Oe.svg(r),N=De(t,{});t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");const M=mt(S),A=E.path(M,N),O=mt(C),q=E.path(O,N),j=r.insert(()=>A,":first-child");return j.insert(()=>q),j.attr("class","basic label-container"),x&&t.look!=="handDrawn"&&j.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&j.selectAll("path").attr("style",i),j.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-(l.width/2)-m-(l.x-(l.left??0))}, ${-(l.height/2)+m-h/2-(l.y-(l.top??0))})`),Ie(t,j),t.intersect=function(F){return Te.polygon(t,S,F)},r}k(IL,"multiWaveEdgedRectangle");async function $L(e,t,{config:{themeVariables:n}}){var C;const{labelStyles:i,nodeStyles:r}=Be(t);t.labelStyle=i,t.useHtmlLabels||((C=oi().flowchart)==null?void 0:C.htmlLabels)!==!1||(t.centerLabel=!0);const{shapeSvg:s,bbox:c,label:u}=await Ze(e,t,Ye(t)),h=Math.max(c.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),d=Math.max(c.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),p=-h/2,y=-d/2,{cssStyles:m}=t,x=Oe.svg(s),_=De(t,{fill:n.noteBkgColor,stroke:n.noteBorderColor});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const w=x.rectangle(p,y,h,d,_),S=s.insert(()=>w,":first-child");return S.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",m),r&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",r),u.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))}, ${-(c.height/2)-(c.y-(c.top??0))})`),Ie(t,S),t.intersect=function(E){return Te.rect(t,E)},s}k($L,"note");var lJ=k((e,t,n)=>[`M${e+n/2},${t}`,`L${e+n},${t-n/2}`,`L${e+n/2},${t-n}`,`L${e},${t-n/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function FL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l}=await Ze(e,t,Ye(t)),s=l.width+t.padding,c=l.height+t.padding,u=s+c,h=.5,d=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}];let p;const{cssStyles:y}=t;if(t.look==="handDrawn"){const m=Oe.svg(r),x=De(t,{}),_=lJ(0,0,u),w=m.path(_,x);p=r.insert(()=>w,":first-child").attr("transform",`translate(${-u/2+h}, ${u/2})`),y&&p.attr("style",y)}else p=Dl(r,u,u,d),p.attr("transform",`translate(${-u/2+h}, ${u/2})`);return i&&p.attr("style",i),Ie(t,p),t.calcIntersect=function(m,x){const _=m.width,w=[{x:_/2,y:0},{x:_,y:-_/2},{x:_/2,y:-_},{x:0,y:-_/2}],S=Te.polygon(m,w,x);return{x:S.x-.5,y:S.y-.5}},t.intersect=function(m){return this.calcIntersect(t,m)},r}k(FL,"question");async function zL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=Math.max(l.width+(t.padding??0),(t==null?void 0:t.width)??0),u=Math.max(l.height+(t.padding??0),(t==null?void 0:t.height)??0),h=-c/2,d=-u/2,p=d/2,y=[{x:h+p,y:d},{x:h,y:0},{x:h+p,y:-d},{x:-h,y:-d},{x:-h,y:d}],{cssStyles:m}=t,x=Oe.svg(r),_=De(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const w=mt(y),S=x.path(w,_),C=r.insert(()=>S,":first-child");return C.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",i),C.attr("transform",`translate(${-p/2},0)`),s.attr("transform",`translate(${-p/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),Ie(t,C),t.intersect=function(E){return Te.polygon(t,y,E)},r}k(zL,"rect_left_inv_arrow");async function PL(e,t){var q,j;const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;let r;t.cssClasses?r="node "+t.cssClasses:r="node default";const l=e.insert("g").attr("class",r).attr("id",t.domId||t.id),s=l.insert("g"),c=l.insert("g").attr("class","label").attr("style",i),u=t.description,h=t.label,d=c.node().appendChild(await os(h,t.labelStyle,!0,!0));let p={width:0,height:0};if(Pn((j=(q=It())==null?void 0:q.flowchart)==null?void 0:j.htmlLabels)){const F=d.children[0],H=Ct(d);p=F.getBoundingClientRect(),H.attr("width",p.width),H.attr("height",p.height)}fe.info("Text 2",u);const y=u||[],m=d.getBBox(),x=c.node().appendChild(await os(y.join?y.join("<br/>"):y,t.labelStyle,!0,!0)),_=x.children[0],w=Ct(x);p=_.getBoundingClientRect(),w.attr("width",p.width),w.attr("height",p.height);const S=(t.padding||0)/2;Ct(x).attr("transform","translate( "+(p.width>m.width?0:(m.width-p.width)/2)+", "+(m.height+S+5)+")"),Ct(d).attr("transform","translate( "+(p.width<m.width?0:-(m.width-p.width)/2)+", 0)"),p=c.node().getBBox(),c.attr("transform","translate("+-p.width/2+", "+(-p.height/2-S+3)+")");const C=p.width+(t.padding||0),E=p.height+(t.padding||0),N=-p.width/2-S,M=-p.height/2-S;let A,O;if(t.look==="handDrawn"){const F=Oe.svg(l),H=De(t,{}),Z=F.path(Rl(N,M,C,E,t.rx||0),H),V=F.line(-p.width/2-S,-p.height/2-S+m.height+S,p.width/2+S,-p.height/2-S+m.height+S,H);O=l.insert(()=>(fe.debug("Rough node insert CXC",Z),V),":first-child"),A=l.insert(()=>(fe.debug("Rough node insert CXC",Z),Z),":first-child")}else A=s.insert("rect",":first-child"),O=s.insert("line"),A.attr("class","outer title-state").attr("style",i).attr("x",-p.width/2-S).attr("y",-p.height/2-S).attr("width",p.width+(t.padding||0)).attr("height",p.height+(t.padding||0)),O.attr("class","divider").attr("x1",-p.width/2-S).attr("x2",p.width/2+S).attr("y1",-p.height/2-S+m.height+S).attr("y2",-p.height/2-S+m.height+S);return Ie(t,A),t.intersect=function(F){return Te.rect(t,F)},l}k(PL,"rectWithTitle");function Eu(e,t,n,i,r,l,s){const u=(e+n)/2,h=(t+i)/2,d=Math.atan2(i-t,n-e),p=(n-e)/2,y=(i-t)/2,m=p/r,x=y/l,_=Math.sqrt(m**2+x**2);if(_>1)throw new Error("The given radii are too small to create an arc between the points.");const w=Math.sqrt(1-_**2),S=u+w*l*Math.sin(d)*(s?-1:1),C=h-w*r*Math.cos(d)*(s?-1:1),E=Math.atan2((t-C)/l,(e-S)/r);let M=Math.atan2((i-C)/l,(n-S)/r)-E;s&&M<0&&(M+=2*Math.PI),!s&&M>0&&(M-=2*Math.PI);const A=[];for(let O=0;O<20;O++){const q=O/19,j=E+q*M,F=S+r*Math.cos(j),H=C+l*Math.sin(j);A.push({x:F,y:H})}return A}k(Eu,"generateArcPoints");async function HL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l}=await Ze(e,t,Ye(t)),s=(t==null?void 0:t.padding)??0,c=(t==null?void 0:t.padding)??0,u=(t!=null&&t.width?t==null?void 0:t.width:l.width)+s*2,h=(t!=null&&t.height?t==null?void 0:t.height:l.height)+c*2,d=t.radius||5,p=t.taper||5,{cssStyles:y}=t,m=Oe.svg(r),x=De(t,{});t.stroke&&(x.stroke=t.stroke),t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const _=[{x:-u/2+p,y:-h/2},{x:u/2-p,y:-h/2},...Eu(u/2-p,-h/2,u/2,-h/2+p,d,d,!0),{x:u/2,y:-h/2+p},{x:u/2,y:h/2-p},...Eu(u/2,h/2-p,u/2-p,h/2,d,d,!0),{x:u/2-p,y:h/2},{x:-u/2+p,y:h/2},...Eu(-u/2+p,h/2,-u/2,h/2-p,d,d,!0),{x:-u/2,y:h/2-p},{x:-u/2,y:-h/2+p},...Eu(-u/2,-h/2+p,-u/2+p,-h/2,d,d,!0)],w=mt(_),S=m.path(w,x),C=r.insert(()=>S,":first-child");return C.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",y),i&&t.look!=="handDrawn"&&C.selectChildren("path").attr("style",i),Ie(t,C),t.intersect=function(E){return Te.polygon(t,_,E)},r}k(HL,"roundedRect");async function UL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=(t==null?void 0:t.padding)??0,u=Math.max(l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=-l.width/2-c,p=-l.height/2-c,{cssStyles:y}=t,m=Oe.svg(r),x=De(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const _=[{x:d,y:p},{x:d+u+8,y:p},{x:d+u+8,y:p+h},{x:d-8,y:p+h},{x:d-8,y:p},{x:d,y:p},{x:d,y:p+h}],w=m.polygon(_.map(C=>[C.x,C.y]),x),S=r.insert(()=>w,":first-child");return S.attr("class","basic label-container").attr("style",ui(y)),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),y&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),s.attr("transform",`translate(${-u/2+4+(t.padding??0)-(l.x-(l.left??0))},${-h/2+(t.padding??0)-(l.y-(l.top??0))})`),Ie(t,S),t.intersect=function(C){return Te.rect(t,C)},r}k(UL,"shadedProcess");async function qL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=Math.max(l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=-c/2,d=-u/2,{cssStyles:p}=t,y=Oe.svg(r),m=De(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const x=[{x:h,y:d},{x:h,y:d+u},{x:h+c,y:d+u},{x:h+c,y:d-u/2}],_=mt(x),w=y.path(_,m),S=r.insert(()=>w,":first-child");return S.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),S.attr("transform",`translate(0, ${u/4})`),s.attr("transform",`translate(${-c/2+(t.padding??0)-(l.x-(l.left??0))}, ${-u/4+(t.padding??0)-(l.y-(l.top??0))})`),Ie(t,S),t.intersect=function(C){return Te.polygon(t,x,C)},r}k(qL,"slopedRect");async function jL(e,t){const n={rx:0,ry:0,labelPaddingX:t.labelPaddingX??((t==null?void 0:t.padding)||0)*2,labelPaddingY:((t==null?void 0:t.padding)||0)*1};return eg(e,t,n)}k(jL,"squareRect");async function GL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l}=await Ze(e,t,Ye(t)),s=l.height+t.padding,c=l.width+s/4+t.padding,u=s/2,{cssStyles:h}=t,d=Oe.svg(r),p=De(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const y=[{x:-c/2+u,y:-s/2},{x:c/2-u,y:-s/2},...ih(-c/2+u,0,u,50,90,270),{x:c/2-u,y:s/2},...ih(c/2-u,0,u,50,270,450)],m=mt(y),x=d.path(m,p),_=r.insert(()=>x,":first-child");return _.attr("class","basic label-container outer-path"),h&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",h),i&&t.look!=="handDrawn"&&_.selectChildren("path").attr("style",i),Ie(t,_),t.intersect=function(w){return Te.polygon(t,y,w)},r}k(GL,"stadium");async function WL(e,t){return eg(e,t,{rx:5,ry:5})}k(WL,"state");function YL(e,t,{config:{themeVariables:n}}){const{labelStyles:i,nodeStyles:r}=Be(t);t.labelStyle=i;const{cssStyles:l}=t,{lineColor:s,stateBorder:c,nodeBorder:u}=n,h=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),d=Oe.svg(h),p=De(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const y=d.circle(0,0,14,{...p,stroke:s,strokeWidth:2}),m=c??u,x=d.circle(0,0,5,{...p,fill:m,stroke:m,strokeWidth:2,fillStyle:"solid"}),_=h.insert(()=>y,":first-child");return _.insert(()=>x),l&&_.selectAll("path").attr("style",l),r&&_.selectAll("path").attr("style",r),Ie(t,_),t.intersect=function(w){return Te.circle(t,7,w)},h}k(YL,"stateEnd");function VL(e,t,{config:{themeVariables:n}}){const{lineColor:i}=n,r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let l;if(t.look==="handDrawn"){const c=Oe.svg(r).circle(0,0,14,vV(i));l=r.insert(()=>c),l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else l=r.insert("circle",":first-child"),l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return Ie(t,l),t.intersect=function(s){return Te.circle(t,7,s)},r}k(VL,"stateStart");async function XL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l}=await Ze(e,t,Ye(t)),s=((t==null?void 0:t.padding)||0)/2,c=l.width+t.padding,u=l.height+t.padding,h=-l.width/2-s,d=-l.height/2-s,p=[{x:0,y:0},{x:c,y:0},{x:c,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:c+8,y:0},{x:c+8,y:-u},{x:-8,y:-u},{x:-8,y:0}];if(t.look==="handDrawn"){const y=Oe.svg(r),m=De(t,{}),x=y.rectangle(h-8,d,c+16,u,m),_=y.line(h,d,h,d+u,m),w=y.line(h+c,d,h+c,d+u,m);r.insert(()=>_,":first-child"),r.insert(()=>w,":first-child");const S=r.insert(()=>x,":first-child"),{cssStyles:C}=t;S.attr("class","basic label-container").attr("style",ui(C)),Ie(t,S)}else{const y=Dl(r,c,u,p);i&&y.attr("style",i),Ie(t,y)}return t.intersect=function(y){return Te.polygon(t,p,y)},r}k(XL,"subroutine");async function KL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l}=await Ze(e,t,Ye(t)),s=Math.max(l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=-s/2,h=-c/2,d=.2*c,p=.2*c,{cssStyles:y}=t,m=Oe.svg(r),x=De(t,{}),_=[{x:u-d/2,y:h},{x:u+s+d/2,y:h},{x:u+s+d/2,y:h+c},{x:u-d/2,y:h+c}],w=[{x:u+s-d/2,y:h+c},{x:u+s+d/2,y:h+c},{x:u+s+d/2,y:h+c-p}];t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const S=mt(_),C=m.path(S,x),E=mt(w),N=m.path(E,{...x,fillStyle:"solid"}),M=r.insert(()=>N,":first-child");return M.insert(()=>C,":first-child"),M.attr("class","basic label-container"),y&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",i),Ie(t,M),t.intersect=function(A){return Te.polygon(t,_,A)},r}k(KL,"taggedRect");async function ZL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=Math.max(l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=u/4,d=.2*c,p=.2*u,y=u+h,{cssStyles:m}=t,x=Oe.svg(r),_=De(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const w=[{x:-c/2-c/2*.1,y:y/2},...Ml(-c/2-c/2*.1,y/2,c/2+c/2*.1,y/2,h,.8),{x:c/2+c/2*.1,y:-y/2},{x:-c/2-c/2*.1,y:-y/2}],S=-c/2+c/2*.1,C=-y/2-p*.4,E=[{x:S+c-d,y:(C+u)*1.4},{x:S+c,y:C+u-p},{x:S+c,y:(C+u)*.9},...Ml(S+c,(C+u)*1.3,S+c-d,(C+u)*1.5,-u*.03,.5)],N=mt(w),M=x.path(N,_),A=mt(E),O=x.path(A,{..._,fillStyle:"solid"}),q=r.insert(()=>O,":first-child");return q.insert(()=>M,":first-child"),q.attr("class","basic label-container"),m&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",i),q.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-c/2+(t.padding??0)-(l.x-(l.left??0))},${-u/2+(t.padding??0)-h/2-(l.y-(l.top??0))})`),Ie(t,q),t.intersect=function(j){return Te.polygon(t,w,j)},r}k(ZL,"taggedWaveEdgedRectangle");async function QL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l}=await Ze(e,t,Ye(t)),s=Math.max(l.width+t.padding,(t==null?void 0:t.width)||0),c=Math.max(l.height+t.padding,(t==null?void 0:t.height)||0),u=-s/2,h=-c/2,d=r.insert("rect",":first-child");return d.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",u).attr("y",h).attr("width",s).attr("height",c),Ie(t,d),t.intersect=function(p){return Te.rect(t,p)},r}k(QL,"text");var sJ=k((e,t,n,i,r,l)=>`M${e},${t}
|
|
345
|
+
a${r},${l} 0,0,1 0,${-i}
|
|
346
|
+
l${n},0
|
|
347
|
+
a${r},${l} 0,0,1 0,${i}
|
|
348
|
+
M${n},${-i}
|
|
349
|
+
a${r},${l} 0,0,0 0,${i}
|
|
350
|
+
l${-n},0`,"createCylinderPathD"),oJ=k((e,t,n,i,r,l)=>[`M${e},${t}`,`M${e+n},${t}`,`a${r},${l} 0,0,0 0,${-i}`,`l${-n},0`,`a${r},${l} 0,0,0 0,${i}`,`l${n},0`].join(" "),"createOuterCylinderPathD"),cJ=k((e,t,n,i,r,l)=>[`M${e+n/2},${-i/2}`,`a${r},${l} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD");async function JL(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s,halfPadding:c}=await Ze(e,t,Ye(t)),u=t.look==="neo"?c*2:c,h=l.height+u,d=h/2,p=d/(2.5+h/50),y=l.width+p+u,{cssStyles:m}=t;let x;if(t.look==="handDrawn"){const _=Oe.svg(r),w=oJ(0,0,y,h,p,d),S=cJ(0,0,y,h,p,d),C=_.path(w,De(t,{})),E=_.path(S,De(t,{fill:"none"}));x=r.insert(()=>E,":first-child"),x=r.insert(()=>C,":first-child"),x.attr("class","basic label-container"),m&&x.attr("style",m)}else{const _=sJ(0,0,y,h,p,d);x=r.insert("path",":first-child").attr("d",_).attr("class","basic label-container").attr("style",ui(m)).attr("style",i),x.attr("class","basic label-container"),m&&x.selectAll("path").attr("style",m),i&&x.selectAll("path").attr("style",i)}return x.attr("label-offset-x",p),x.attr("transform",`translate(${-y/2}, ${h/2} )`),s.attr("transform",`translate(${-(l.width/2)-p-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),Ie(t,x),t.intersect=function(_){const w=Te.rect(t,_),S=w.y-(t.y??0);if(d!=0&&(Math.abs(S)<(t.height??0)/2||Math.abs(S)==(t.height??0)/2&&Math.abs(w.x-(t.x??0))>(t.width??0)/2-p)){let C=p*p*(1-S*S/(d*d));C!=0&&(C=Math.sqrt(Math.abs(C))),C=p-C,_.x-(t.x??0)>0&&(C=-C),w.x+=C}return w},r}k(JL,"tiltedCylinder");async function eR(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l}=await Ze(e,t,Ye(t)),s=l.width+t.padding,c=l.height+t.padding,u=[{x:-3*c/6,y:0},{x:s+3*c/6,y:0},{x:s,y:-c},{x:0,y:-c}];let h;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=Oe.svg(r),y=De(t,{}),m=mt(u),x=p.path(m,y);h=r.insert(()=>x,":first-child").attr("transform",`translate(${-s/2}, ${c/2})`),d&&h.attr("style",d)}else h=Dl(r,s,c,u);return i&&h.attr("style",i),t.width=s,t.height=c,Ie(t,h),t.intersect=function(p){return Te.polygon(t,u,p)},r}k(eR,"trapezoid");async function tR(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l}=await Ze(e,t,Ye(t)),s=60,c=20,u=Math.max(s,l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(c,l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),{cssStyles:d}=t,p=Oe.svg(r),y=De(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const m=[{x:-u/2*.8,y:-h/2},{x:u/2*.8,y:-h/2},{x:u/2,y:-h/2*.6},{x:u/2,y:h/2},{x:-u/2,y:h/2},{x:-u/2,y:-h/2*.6}],x=mt(m),_=p.path(x,y),w=r.insert(()=>_,":first-child");return w.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),Ie(t,w),t.intersect=function(S){return Te.polygon(t,m,S)},r}k(tR,"trapezoidalPentagon");async function nR(e,t){var C;const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=Pn((C=It().flowchart)==null?void 0:C.htmlLabels),u=l.width+(t.padding??0),h=u+l.height,d=u+l.height,p=[{x:0,y:0},{x:d,y:0},{x:d/2,y:-h}],{cssStyles:y}=t,m=Oe.svg(r),x=De(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const _=mt(p),w=m.path(_,x),S=r.insert(()=>w,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`);return y&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",y),i&&t.look!=="handDrawn"&&S.selectChildren("path").attr("style",i),t.width=u,t.height=h,Ie(t,S),s.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))}, ${h/2-(l.height+(t.padding??0)/(c?2:1)-(l.y-(l.top??0)))})`),t.intersect=function(E){return fe.info("Triangle intersect",t,p,E),Te.polygon(t,p,E)},r}k(nR,"triangle");async function iR(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=Math.max(l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=u/8,d=u+h,{cssStyles:p}=t,m=70-c,x=m>0?m/2:0,_=Oe.svg(r),w=De(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const S=[{x:-c/2-x,y:d/2},...Ml(-c/2-x,d/2,c/2+x,d/2,h,.8),{x:c/2+x,y:-d/2},{x:-c/2-x,y:-d/2}],C=mt(S),E=_.path(C,w),N=r.insert(()=>E,":first-child");return N.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",p),i&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",i),N.attr("transform",`translate(0,${-h/2})`),s.attr("transform",`translate(${-c/2+(t.padding??0)-(l.x-(l.left??0))},${-u/2+(t.padding??0)-h-(l.y-(l.top??0))})`),Ie(t,N),t.intersect=function(M){return Te.polygon(t,S,M)},r}k(iR,"waveEdgedRectangle");async function rR(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l}=await Ze(e,t,Ye(t)),s=100,c=50,u=Math.max(l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),d=u/h;let p=u,y=h;p>y*d?y=p/d:p=y*d,p=Math.max(p,s),y=Math.max(y,c);const m=Math.min(y*.2,y/4),x=y+m*2,{cssStyles:_}=t,w=Oe.svg(r),S=De(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const C=[{x:-p/2,y:x/2},...Ml(-p/2,x/2,p/2,x/2,m,1),{x:p/2,y:-x/2},...Ml(p/2,-x/2,-p/2,-x/2,m,-1)],E=mt(C),N=w.path(E,S),M=r.insert(()=>N,":first-child");return M.attr("class","basic label-container"),_&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",_),i&&t.look!=="handDrawn"&&M.selectAll("path").attr("style",i),Ie(t,M),t.intersect=function(A){return Te.polygon(t,C,A)},r}k(rR,"waveRectangle");async function aR(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,label:s}=await Ze(e,t,Ye(t)),c=Math.max(l.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),u=Math.max(l.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=5,d=-c/2,p=-u/2,{cssStyles:y}=t,m=Oe.svg(r),x=De(t,{}),_=[{x:d-h,y:p-h},{x:d-h,y:p+u},{x:d+c,y:p+u},{x:d+c,y:p-h}],w=`M${d-h},${p-h} L${d+c},${p-h} L${d+c},${p+u} L${d-h},${p+u} L${d-h},${p-h}
|
|
351
|
+
M${d-h},${p} L${d+c},${p}
|
|
352
|
+
M${d},${p-h} L${d},${p+u}`;t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const S=m.path(w,x),C=r.insert(()=>S,":first-child");return C.attr("transform",`translate(${h/2}, ${h/2})`),C.attr("class","basic label-container"),y&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&C.selectAll("path").attr("style",i),s.attr("transform",`translate(${-(l.width/2)+h/2-(l.x-(l.left??0))}, ${-(l.height/2)+h/2-(l.y-(l.top??0))})`),Ie(t,C),t.intersect=function(E){return Te.polygon(t,_,E)},r}k(aR,"windowPane");async function c1(e,t){var Q,D,he,xe;const n=t;if(n.alias&&(t.label=n.alias),t.look==="handDrawn"){const{themeVariables:de}=oi(),{background:we}=de,Le={...t,id:t.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${we}`]};await c1(e,Le)}const i=oi();t.useHtmlLabels=i.htmlLabels;let r=((Q=i.er)==null?void 0:Q.diagramPadding)??10,l=((D=i.er)==null?void 0:D.entityPadding)??6;const{cssStyles:s}=t,{labelStyles:c,nodeStyles:u}=Be(t);if(n.attributes.length===0&&t.label){const de={rx:0,ry:0,labelPaddingX:r,labelPaddingY:r*1.5};za(t.label,i)+de.labelPaddingX*2<i.er.minEntityWidth&&(t.width=i.er.minEntityWidth);const we=await eg(e,t,de);if(!Pn(i.htmlLabels)){const Le=we.select("text"),ze=(he=Le.node())==null?void 0:he.getBBox();Le.attr("transform",`translate(${-ze.width/2}, 0)`)}return we}i.htmlLabels||(r*=1.25,l*=1.25);let h=Ye(t);h||(h="node default");const d=e.insert("g").attr("class",h).attr("id",t.domId||t.id),p=await _o(d,t.label??"",i,0,0,["name"],c);p.height+=l;let y=0;const m=[],x=[];let _=0,w=0,S=0,C=0,E=!0,N=!0;for(const de of n.attributes){const we=await _o(d,de.type,i,0,y,["attribute-type"],c);_=Math.max(_,we.width+r);const Le=await _o(d,de.name,i,0,y,["attribute-name"],c);w=Math.max(w,Le.width+r);const ze=await _o(d,de.keys.join(),i,0,y,["attribute-keys"],c);S=Math.max(S,ze.width+r);const Qe=await _o(d,de.comment,i,0,y,["attribute-comment"],c);C=Math.max(C,Qe.width+r);const it=Math.max(we.height,Le.height,ze.height,Qe.height)+l;x.push({yOffset:y,rowHeight:it}),y+=it}let M=4;S<=r&&(E=!1,S=0,M--),C<=r&&(N=!1,C=0,M--);const A=d.node().getBBox();if(p.width+r*2-(_+w+S+C)>0){const de=p.width+r*2-(_+w+S+C);_+=de/M,w+=de/M,S>0&&(S+=de/M),C>0&&(C+=de/M)}const O=_+w+S+C,q=Oe.svg(d),j=De(t,{});t.look!=="handDrawn"&&(j.roughness=0,j.fillStyle="solid");let F=0;x.length>0&&(F=x.reduce((de,we)=>de+((we==null?void 0:we.rowHeight)??0),0));const H=Math.max(A.width+r*2,(t==null?void 0:t.width)||0,O),Z=Math.max((F??0)+p.height,(t==null?void 0:t.height)||0),V=-H/2,P=-Z/2;d.selectAll("g:not(:first-child)").each((de,we,Le)=>{const ze=Ct(Le[we]),Qe=ze.attr("transform");let it=0,gn=0;if(Qe){const hn=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Qe);hn&&(it=parseFloat(hn[1]),gn=parseFloat(hn[2]),ze.attr("class").includes("attribute-name")?it+=_:ze.attr("class").includes("attribute-keys")?it+=_+w:ze.attr("class").includes("attribute-comment")&&(it+=_+w+S))}ze.attr("transform",`translate(${V+r/2+it}, ${gn+P+p.height+l/2})`)}),d.select(".name").attr("transform","translate("+-p.width/2+", "+(P+l/2)+")");const z=q.rectangle(V,P,H,Z,j),L=d.insert(()=>z,":first-child").attr("style",s.join("")),{themeVariables:U}=oi(),{rowEven:G,rowOdd:le,nodeBorder:B}=U;m.push(0);for(const[de,we]of x.entries()){const ze=(de+1)%2===0&&we.yOffset!==0,Qe=q.rectangle(V,p.height+P+(we==null?void 0:we.yOffset),H,we==null?void 0:we.rowHeight,{...j,fill:ze?G:le,stroke:B});d.insert(()=>Qe,"g.label").attr("style",s.join("")).attr("class",`row-rect-${ze?"even":"odd"}`)}let I=q.line(V,p.height+P,H+V,p.height+P,j);d.insert(()=>I).attr("class","divider"),I=q.line(_+V,p.height+P,_+V,Z+P,j),d.insert(()=>I).attr("class","divider"),E&&(I=q.line(_+w+V,p.height+P,_+w+V,Z+P,j),d.insert(()=>I).attr("class","divider")),N&&(I=q.line(_+w+S+V,p.height+P,_+w+S+V,Z+P,j),d.insert(()=>I).attr("class","divider"));for(const de of m)I=q.line(V,p.height+P+de,H+V,p.height+P+de,j),d.insert(()=>I).attr("class","divider");if(Ie(t,L),u&&t.look!=="handDrawn"){const de=u.split(";"),we=(xe=de==null?void 0:de.filter(Le=>Le.includes("stroke")))==null?void 0:xe.map(Le=>`${Le}`).join("; ");d.selectAll("path").attr("style",we??""),d.selectAll(".row-rect-even path").attr("style",u)}return t.intersect=function(de){return Te.rect(t,de)},d}k(c1,"erBox");async function _o(e,t,n,i=0,r=0,l=[],s=""){const c=e.insert("g").attr("class",`label ${l.join(" ")}`).attr("transform",`translate(${i}, ${r})`).attr("style",s);t!==ZC(t)&&(t=ZC(t),t=t.replaceAll("<","<").replaceAll(">",">"));const u=c.node().appendChild(await Ll(c,t,{width:za(t,n)+100,style:s,useHtmlLabels:n.htmlLabels},n));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(Pn(n.htmlLabels)){const d=u.children[0];d.style.textAlign="start";const p=Ct(u);h=d.getBoundingClientRect(),p.attr("width",h.width),p.attr("height",h.height)}return h}k(_o,"addText");async function lR(e,t,n,i,r=n.class.padding??12){const l=i?0:3,s=e.insert("g").attr("class",Ye(t)).attr("id",t.domId||t.id);let c=null,u=null,h=null,d=null,p=0,y=0,m=0;if(c=s.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const C=t.annotations[0];await Tu(c,{text:`«${C}»`},0),p=c.node().getBBox().height}u=s.insert("g").attr("class","label-group text"),await Tu(u,t,0,["font-weight: bolder"]);const x=u.node().getBBox();y=x.height,h=s.insert("g").attr("class","members-group text");let _=0;for(const C of t.members){const E=await Tu(h,C,_,[C.parseClassifier()]);_+=E+l}m=h.node().getBBox().height,m<=0&&(m=r/2),d=s.insert("g").attr("class","methods-group text");let w=0;for(const C of t.methods){const E=await Tu(d,C,w,[C.parseClassifier()]);w+=E+l}let S=s.node().getBBox();if(c!==null){const C=c.node().getBBox();c.attr("transform",`translate(${-C.width/2})`)}return u.attr("transform",`translate(${-x.width/2}, ${p})`),S=s.node().getBBox(),h.attr("transform",`translate(0, ${p+y+r*2})`),S=s.node().getBBox(),d.attr("transform",`translate(0, ${p+y+(m?m+r*4:r*2)})`),S=s.node().getBBox(),{shapeSvg:s,bbox:S}}k(lR,"textHelper");async function Tu(e,t,n,i=[]){const r=e.insert("g").attr("class","label").attr("style",i.join("; ")),l=oi();let s="useHtmlLabels"in t?t.useHtmlLabels:Pn(l.htmlLabels)??!0,c="";"text"in t?c=t.text:c=t.label,!s&&c.startsWith("\\")&&(c=c.substring(1)),qo(c)&&(s=!0);const u=await Ll(r,xx(ks(c)),{width:za(c,l)+50,classes:"markdown-node-label",useHtmlLabels:s},l);let h,d=1;if(s){const p=u.children[0],y=Ct(u);d=p.innerHTML.split("<br>").length,p.innerHTML.includes("</math>")&&(d+=p.innerHTML.split("<mrow>").length-1);const m=p.getElementsByTagName("img");if(m){const x=c.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...m].map(_=>new Promise(w=>{function S(){var C;if(_.style.display="flex",_.style.flexDirection="column",x){const E=((C=l.fontSize)==null?void 0:C.toString())??window.getComputedStyle(document.body).fontSize,M=parseInt(E,10)*5+"px";_.style.minWidth=M,_.style.maxWidth=M}else _.style.width="100%";w(_)}k(S,"setupImage"),setTimeout(()=>{_.complete&&S()}),_.addEventListener("error",S),_.addEventListener("load",S)})))}h=p.getBoundingClientRect(),y.attr("width",h.width),y.attr("height",h.height)}else{i.includes("font-weight: bolder")&&Ct(u).selectAll("tspan").attr("font-weight",""),d=u.children.length;const p=u.children[0];(u.textContent===""||u.textContent.includes(">"))&&(p.textContent=c[0]+c.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),c[1]===" "&&(p.textContent=p.textContent[0]+" "+p.textContent.substring(1))),p.textContent==="undefined"&&(p.textContent=""),h=u.getBBox()}return r.attr("transform","translate(0,"+(-h.height/(2*d)+n)+")"),h.height}k(Tu,"addText");async function sR(e,t){var j,F;const n=It(),i=n.class.padding??12,r=i,l=t.useHtmlLabels??Pn(n.htmlLabels)??!0,s=t;s.annotations=s.annotations??[],s.members=s.members??[],s.methods=s.methods??[];const{shapeSvg:c,bbox:u}=await lR(e,t,n,l,r),{labelStyles:h,nodeStyles:d}=Be(t);t.labelStyle=h,t.cssStyles=s.styles||"";const p=((j=s.styles)==null?void 0:j.join(";"))||d||"";t.cssStyles||(t.cssStyles=p.replaceAll("!important","").split(";"));const y=s.members.length===0&&s.methods.length===0&&!((F=n.class)!=null&&F.hideEmptyMembersBox),m=Oe.svg(c),x=De(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const _=u.width;let w=u.height;s.members.length===0&&s.methods.length===0?w+=r:s.members.length>0&&s.methods.length===0&&(w+=r*2);const S=-_/2,C=-w/2,E=m.rectangle(S-i,C-i-(y?i:s.members.length===0&&s.methods.length===0?-i/2:0),_+2*i,w+2*i+(y?i*2:s.members.length===0&&s.methods.length===0?-i:0),x),N=c.insert(()=>E,":first-child");N.attr("class","basic label-container");const M=N.node().getBBox();c.selectAll(".text").each((H,Z,V)=>{var le;const P=Ct(V[Z]),z=P.attr("transform");let L=0;if(z){const I=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(z);I&&(L=parseFloat(I[2]))}let U=L+C+i-(y?i:s.members.length===0&&s.methods.length===0?-i/2:0);l||(U-=4);let G=S;(P.attr("class").includes("label-group")||P.attr("class").includes("annotation-group"))&&(G=-((le=P.node())==null?void 0:le.getBBox().width)/2||0,c.selectAll("text").each(function(B,I,Q){window.getComputedStyle(Q[I]).textAnchor==="middle"&&(G=0)})),P.attr("transform",`translate(${G}, ${U})`)});const A=c.select(".annotation-group").node().getBBox().height-(y?i/2:0)||0,O=c.select(".label-group").node().getBBox().height-(y?i/2:0)||0,q=c.select(".members-group").node().getBBox().height-(y?i/2:0)||0;if(s.members.length>0||s.methods.length>0||y){const H=m.line(M.x,A+O+C+i,M.x+M.width,A+O+C+i,x);c.insert(()=>H).attr("class","divider").attr("style",p)}if(y||s.members.length>0||s.methods.length>0){const H=m.line(M.x,A+O+q+C+r*2+i,M.x+M.width,A+O+q+C+i+r*2,x);c.insert(()=>H).attr("class","divider").attr("style",p)}if(s.look!=="handDrawn"&&c.selectAll("path").attr("style",p),N.select(":nth-child(2)").attr("style",p),c.selectAll(".divider").select("path").attr("style",p),t.labelStyle?c.selectAll("span").attr("style",t.labelStyle):c.selectAll("span").attr("style",p),!l){const H=RegExp(/color\s*:\s*([^;]*)/),Z=H.exec(p);if(Z){const V=Z[0].replace("color","fill");c.selectAll("tspan").attr("style",V)}else if(h){const V=H.exec(h);if(V){const P=V[0].replace("color","fill");c.selectAll("tspan").attr("style",P)}}}return Ie(t,N),t.intersect=function(H){return Te.rect(t,H)},c}k(sR,"classBox");async function oR(e,t){var A,O;const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const r=t,l=t,s=20,c=20,u="verifyMethod"in t,h=Ye(t),d=e.insert("g").attr("class",h).attr("id",t.domId??t.id);let p;u?p=await Kr(d,`<<${r.type}>>`,0,t.labelStyle):p=await Kr(d,"<<Element>>",0,t.labelStyle);let y=p;const m=await Kr(d,r.name,y,t.labelStyle+"; font-weight: bold;");if(y+=m+c,u){const q=await Kr(d,`${r.requirementId?`ID: ${r.requirementId}`:""}`,y,t.labelStyle);y+=q;const j=await Kr(d,`${r.text?`Text: ${r.text}`:""}`,y,t.labelStyle);y+=j;const F=await Kr(d,`${r.risk?`Risk: ${r.risk}`:""}`,y,t.labelStyle);y+=F,await Kr(d,`${r.verifyMethod?`Verification: ${r.verifyMethod}`:""}`,y,t.labelStyle)}else{const q=await Kr(d,`${l.type?`Type: ${l.type}`:""}`,y,t.labelStyle);y+=q,await Kr(d,`${l.docRef?`Doc Ref: ${l.docRef}`:""}`,y,t.labelStyle)}const x=(((A=d.node())==null?void 0:A.getBBox().width)??200)+s,_=(((O=d.node())==null?void 0:O.getBBox().height)??200)+s,w=-x/2,S=-_/2,C=Oe.svg(d),E=De(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const N=C.rectangle(w,S,x,_,E),M=d.insert(()=>N,":first-child");if(M.attr("class","basic label-container").attr("style",i),d.selectAll(".label").each((q,j,F)=>{const H=Ct(F[j]),Z=H.attr("transform");let V=0,P=0;if(Z){const G=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Z);G&&(V=parseFloat(G[1]),P=parseFloat(G[2]))}const z=P-_/2;let L=w+s/2;(j===0||j===1)&&(L=V),H.attr("transform",`translate(${L}, ${z+s})`)}),y>p+m+c){const q=C.line(w,S+p+m+c,w+x,S+p+m+c,E);d.insert(()=>q).attr("style",i)}return Ie(t,M),t.intersect=function(q){return Te.rect(t,q)},d}k(oR,"requirementBox");async function Kr(e,t,n,i=""){if(t==="")return 0;const r=e.insert("g").attr("class","label").attr("style",i),l=It(),s=l.htmlLabels??!0,c=await Ll(r,xx(ks(t)),{width:za(t,l)+50,classes:"markdown-node-label",useHtmlLabels:s,style:i},l);let u;if(s){const h=c.children[0],d=Ct(c);u=h.getBoundingClientRect(),d.attr("width",u.width),d.attr("height",u.height)}else{const h=c.children[0];for(const d of h.children)d.textContent=d.textContent.replaceAll(">",">").replaceAll("<","<"),i&&d.setAttribute("style",i);u=c.getBBox(),u.height+=6}return r.attr("transform",`translate(${-u.width/2},${-u.height/2+n})`),u.height}k(Kr,"addText");var uJ=k(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 cR(e,t,{config:n}){var Z,V;const{labelStyles:i,nodeStyles:r}=Be(t);t.labelStyle=i||"";const l=10,s=t.width;t.width=(t.width??200)-10;const{shapeSvg:c,bbox:u,label:h}=await Ze(e,t,Ye(t)),d=t.padding||10;let p="",y;"ticket"in t&&t.ticket&&((Z=n==null?void 0:n.kanban)!=null&&Z.ticketBaseUrl)&&(p=(V=n==null?void 0:n.kanban)==null?void 0:V.ticketBaseUrl.replace("#TICKET#",t.ticket),y=c.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",p).attr("target","_blank"));const m={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let x,_;y?{label:x,bbox:_}=await iy(y,"ticket"in t&&t.ticket||"",m):{label:x,bbox:_}=await iy(c,"ticket"in t&&t.ticket||"",m);const{label:w,bbox:S}=await iy(c,"assigned"in t&&t.assigned||"",m);t.width=s;const C=10,E=(t==null?void 0:t.width)||0,N=Math.max(_.height,S.height)/2,M=Math.max(u.height+C*2,(t==null?void 0:t.height)||0)+N,A=-E/2,O=-M/2;h.attr("transform","translate("+(d-E/2)+", "+(-N-u.height/2)+")"),x.attr("transform","translate("+(d-E/2)+", "+(-N+u.height/2)+")"),w.attr("transform","translate("+(d+E/2-S.width-2*l)+", "+(-N+u.height/2)+")");let q;const{rx:j,ry:F}=t,{cssStyles:H}=t;if(t.look==="handDrawn"){const P=Oe.svg(c),z=De(t,{}),L=j||F?P.path(Rl(A,O,E,M,j||0),z):P.rectangle(A,O,E,M,z);q=c.insert(()=>L,":first-child"),q.attr("class","basic label-container").attr("style",H||null)}else{q=c.insert("rect",":first-child"),q.attr("class","basic label-container __APA__").attr("style",r).attr("rx",j??5).attr("ry",F??5).attr("x",A).attr("y",O).attr("width",E).attr("height",M);const P="priority"in t&&t.priority;if(P){const z=c.append("line"),L=A+2,U=O+Math.floor((j??0)/2),G=O+M-Math.floor((j??0)/2);z.attr("x1",L).attr("y1",U).attr("x2",L).attr("y2",G).attr("stroke-width","4").attr("stroke",uJ(P))}}return Ie(t,q),t.height=M,t.intersect=function(P){return Te.rect(t,P)},c}k(cR,"kanbanItem");async function uR(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,halfPadding:s,label:c}=await Ze(e,t,Ye(t)),u=l.width+10*s,h=l.height+8*s,d=.15*u,{cssStyles:p}=t,y=l.width+20,m=l.height+20,x=Math.max(u,y),_=Math.max(h,m);c.attr("transform",`translate(${-l.width/2}, ${-l.height/2})`);let w;const S=`M0 0
|
|
353
|
+
a${d},${d} 1 0,0 ${x*.25},${-1*_*.1}
|
|
354
|
+
a${d},${d} 1 0,0 ${x*.25},0
|
|
355
|
+
a${d},${d} 1 0,0 ${x*.25},0
|
|
356
|
+
a${d},${d} 1 0,0 ${x*.25},${_*.1}
|
|
357
|
+
|
|
358
|
+
a${d},${d} 1 0,0 ${x*.15},${_*.33}
|
|
359
|
+
a${d*.8},${d*.8} 1 0,0 0,${_*.34}
|
|
360
|
+
a${d},${d} 1 0,0 ${-1*x*.15},${_*.33}
|
|
361
|
+
|
|
362
|
+
a${d},${d} 1 0,0 ${-1*x*.25},${_*.15}
|
|
363
|
+
a${d},${d} 1 0,0 ${-1*x*.25},0
|
|
364
|
+
a${d},${d} 1 0,0 ${-1*x*.25},0
|
|
365
|
+
a${d},${d} 1 0,0 ${-1*x*.25},${-1*_*.15}
|
|
366
|
+
|
|
367
|
+
a${d},${d} 1 0,0 ${-1*x*.1},${-1*_*.33}
|
|
368
|
+
a${d*.8},${d*.8} 1 0,0 0,${-1*_*.34}
|
|
369
|
+
a${d},${d} 1 0,0 ${x*.1},${-1*_*.33}
|
|
370
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const C=Oe.svg(r),E=De(t,{}),N=C.path(S,E);w=r.insert(()=>N,":first-child"),w.attr("class","basic label-container").attr("style",ui(p))}else w=r.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",S);return w.attr("transform",`translate(${-x/2}, ${-_/2})`),Ie(t,w),t.calcIntersect=function(C,E){return Te.rect(C,E)},t.intersect=function(C){return fe.info("Bang intersect",t,C),Te.rect(t,C)},r}k(uR,"bang");async function hR(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,halfPadding:s,label:c}=await Ze(e,t,Ye(t)),u=l.width+2*s,h=l.height+2*s,d=.15*u,p=.25*u,y=.35*u,m=.2*u,{cssStyles:x}=t;let _;const w=`M0 0
|
|
371
|
+
a${d},${d} 0 0,1 ${u*.25},${-1*u*.1}
|
|
372
|
+
a${y},${y} 1 0,1 ${u*.4},${-1*u*.1}
|
|
373
|
+
a${p},${p} 1 0,1 ${u*.35},${u*.2}
|
|
374
|
+
|
|
375
|
+
a${d},${d} 1 0,1 ${u*.15},${h*.35}
|
|
376
|
+
a${m},${m} 1 0,1 ${-1*u*.15},${h*.65}
|
|
377
|
+
|
|
378
|
+
a${p},${d} 1 0,1 ${-1*u*.25},${u*.15}
|
|
379
|
+
a${y},${y} 1 0,1 ${-1*u*.5},0
|
|
380
|
+
a${d},${d} 1 0,1 ${-1*u*.25},${-1*u*.15}
|
|
381
|
+
|
|
382
|
+
a${d},${d} 1 0,1 ${-1*u*.1},${-1*h*.35}
|
|
383
|
+
a${m},${m} 1 0,1 ${u*.1},${-1*h*.65}
|
|
384
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const S=Oe.svg(r),C=De(t,{}),E=S.path(w,C);_=r.insert(()=>E,":first-child"),_.attr("class","basic label-container").attr("style",ui(x))}else _=r.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",w);return c.attr("transform",`translate(${-l.width/2}, ${-l.height/2})`),_.attr("transform",`translate(${-u/2}, ${-h/2})`),Ie(t,_),t.calcIntersect=function(S,C){return Te.rect(S,C)},t.intersect=function(S){return fe.info("Cloud intersect",t,S),Te.rect(t,S)},r}k(hR,"cloud");async function fR(e,t){const{labelStyles:n,nodeStyles:i}=Be(t);t.labelStyle=n;const{shapeSvg:r,bbox:l,halfPadding:s,label:c}=await Ze(e,t,Ye(t)),u=l.width+8*s,h=l.height+2*s,d=5,p=`
|
|
385
|
+
M${-u/2} ${h/2-d}
|
|
386
|
+
v${-h+2*d}
|
|
387
|
+
q0,-${d} ${d},-${d}
|
|
388
|
+
h${u-2*d}
|
|
389
|
+
q${d},0 ${d},${d}
|
|
390
|
+
v${h-2*d}
|
|
391
|
+
q0,${d} -${d},${d}
|
|
392
|
+
h${-u+2*d}
|
|
393
|
+
q-${d},0 -${d},-${d}
|
|
394
|
+
Z
|
|
395
|
+
`,y=r.append("path").attr("id","node-"+t.id).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",p);return r.append("line").attr("class","node-line-").attr("x1",-u/2).attr("y1",h/2).attr("x2",u/2).attr("y2",h/2),c.attr("transform",`translate(${-l.width/2}, ${-l.height/2})`),r.append(()=>c.node()),Ie(t,y),t.calcIntersect=function(m,x){return Te.rect(m,x)},t.intersect=function(m){return Te.rect(t,m)},r}k(fR,"defaultMindmapNode");async function dR(e,t){const n={padding:t.padding??0};return o1(e,t,n)}k(dR,"mindmapCircle");var hJ=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:jL},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:HL},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:GL},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:XL},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:pL},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:o1},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:uR},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:hR},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:FL},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:vL},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:OL},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:NL},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:eR},{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:AL},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:mL},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:QL},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:lL},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:UL},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:VL},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:YL},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:xL},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:wL},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:uL},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:hL},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:fL},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:LL},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:iR},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:_L},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:JL},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:RL},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:dL},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:gL},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:nR},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:aR},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:yL},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:tR},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:bL},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:qL},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:IL},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:BL},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:aL},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:cL},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:ZL},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:KL},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:rR},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:zL},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:DL}],fJ=k(()=>{const t=[...Object.entries({state:WL,choice:sL,note:$L,rectWithTitle:PL,labelRect:ML,iconSquare:EL,iconCircle:CL,icon:SL,iconRounded:kL,imageSquare:TL,anchor:rL,kanbanItem:cR,mindmapCircle:dR,defaultMindmapNode:fR,classBox:sR,erBox:c1,requirementBox:oR}),...hJ.flatMap(n=>[n.shortName,..."aliases"in n?n.aliases:[],..."internalAliases"in n?n.internalAliases:[]].map(r=>[r,n.handler]))];return Object.fromEntries(t)},"generateShapeMap"),pR=fJ();function dJ(e){return e in pR}k(dJ,"isValidShape");var tg=new Map;async function gR(e,t,n){let i,r;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const l=t.shape?pR[t.shape]:void 0;if(!l)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let s;n.config.securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",s??null),r=await l(i,t,n)}else r=await l(e,t,n),i=r;return t.tooltip&&r.attr("title",t.tooltip),tg.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}k(gR,"insertNode");var $ie=k((e,t)=>{tg.set(t.id,e)},"setNodeElem"),Fie=k(()=>{tg.clear()},"clear"),zie=k(e=>{const t=tg.get(e.id);fe.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const n=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-n)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode"),pJ=k((e,t,n,i,r,l)=>{t.arrowTypeStart&&lk(e,"start",t.arrowTypeStart,n,i,r,l),t.arrowTypeEnd&&lk(e,"end",t.arrowTypeEnd,n,i,r,l)},"addEdgeMarkers"),gJ={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},lk=k((e,t,n,i,r,l,s)=>{var p;const c=gJ[n];if(!c){fe.warn(`Unknown arrow type: ${n}`);return}const u=c.type,d=`${r}_${l}-${u}${t==="start"?"Start":"End"}`;if(s&&s.trim()!==""){const y=s.replace(/[^\dA-Za-z]/g,"_"),m=`${d}_${y}`;if(!document.getElementById(m)){const x=document.getElementById(d);if(x){const _=x.cloneNode(!0);_.id=m,_.querySelectorAll("path, circle, line").forEach(S=>{S.setAttribute("stroke",s),c.fill&&S.setAttribute("fill",s)}),(p=x.parentNode)==null||p.appendChild(_)}}e.attr(`marker-${t}`,`url(${i}#${m})`)}else e.attr(`marker-${t}`,`url(${i}#${d})`)},"addEdgeMarker"),_p=new Map,Zn=new Map,Pie=k(()=>{_p.clear(),Zn.clear()},"clear"),nd=k(e=>e?e.reduce((n,i)=>n+";"+i,""):"","getLabelStyles"),mJ=k(async(e,t)=>{let n=Pn(It().flowchart.htmlLabels);const{labelStyles:i}=Be(t);t.labelStyle=i;const r=await Ll(e,t.label,{style:t.labelStyle,useHtmlLabels:n,addSvgBackground:!0,isNode:!1});fe.info("abc82",t,t.labelType);const l=e.insert("g").attr("class","edgeLabel"),s=l.insert("g").attr("class","label").attr("data-id",t.id);s.node().appendChild(r);let c=r.getBBox();if(n){const h=r.children[0],d=Ct(r);c=h.getBoundingClientRect(),d.attr("width",c.width),d.attr("height",c.height)}s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),_p.set(t.id,l),t.width=c.width,t.height=c.height;let u;if(t.startLabelLeft){const h=await os(t.startLabelLeft,nd(t.labelStyle)),d=e.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner");u=p.node().appendChild(h);const y=h.getBBox();p.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),Zn.get(t.id)||Zn.set(t.id,{}),Zn.get(t.id).startLeft=d,Au(u,t.startLabelLeft)}if(t.startLabelRight){const h=await os(t.startLabelRight,nd(t.labelStyle)),d=e.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner");u=d.node().appendChild(h),p.node().appendChild(h);const y=h.getBBox();p.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),Zn.get(t.id)||Zn.set(t.id,{}),Zn.get(t.id).startRight=d,Au(u,t.startLabelRight)}if(t.endLabelLeft){const h=await os(t.endLabelLeft,nd(t.labelStyle)),d=e.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner");u=p.node().appendChild(h);const y=h.getBBox();p.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),d.node().appendChild(h),Zn.get(t.id)||Zn.set(t.id,{}),Zn.get(t.id).endLeft=d,Au(u,t.endLabelLeft)}if(t.endLabelRight){const h=await os(t.endLabelRight,nd(t.labelStyle)),d=e.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner");u=p.node().appendChild(h);const y=h.getBBox();p.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),d.node().appendChild(h),Zn.get(t.id)||Zn.set(t.id,{}),Zn.get(t.id).endRight=d,Au(u,t.endLabelRight)}return r},"insertEdgeLabel");function Au(e,t){It().flowchart.htmlLabels&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}k(Au,"setTerminalWidth");var yJ=k((e,t)=>{fe.debug("Moving label abc88 ",e.id,e.label,_p.get(e.id),t);let n=t.updatedPath?t.updatedPath:t.originalPath;const i=It(),{subGraphTitleTotalMargin:r}=zx(i);if(e.label){const l=_p.get(e.id);let s=e.x,c=e.y;if(n){const u=Ir.calcLabelPosition(n);fe.debug("Moving label "+e.label+" from (",s,",",c,") to (",u.x,",",u.y,") abc88"),t.updatedPath&&(s=u.x,c=u.y)}l.attr("transform",`translate(${s}, ${c+r/2})`)}if(e.startLabelLeft){const l=Zn.get(e.id).startLeft;let s=e.x,c=e.y;if(n){const u=Ir.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",n);s=u.x,c=u.y}l.attr("transform",`translate(${s}, ${c})`)}if(e.startLabelRight){const l=Zn.get(e.id).startRight;let s=e.x,c=e.y;if(n){const u=Ir.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",n);s=u.x,c=u.y}l.attr("transform",`translate(${s}, ${c})`)}if(e.endLabelLeft){const l=Zn.get(e.id).endLeft;let s=e.x,c=e.y;if(n){const u=Ir.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",n);s=u.x,c=u.y}l.attr("transform",`translate(${s}, ${c})`)}if(e.endLabelRight){const l=Zn.get(e.id).endRight;let s=e.x,c=e.y;if(n){const u=Ir.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",n);s=u.x,c=u.y}l.attr("transform",`translate(${s}, ${c})`)}},"positionEdgeLabel"),bJ=k((e,t)=>{const n=e.x,i=e.y,r=Math.abs(t.x-n),l=Math.abs(t.y-i),s=e.width/2,c=e.height/2;return r>=s||l>=c},"outsideNode"),xJ=k((e,t,n)=>{fe.debug(`intersection calc abc89:
|
|
396
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
397
|
+
insidePoint : ${JSON.stringify(n)}
|
|
398
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,r=e.y,l=Math.abs(i-n.x),s=e.width/2;let c=n.x<t.x?s-l:s+l;const u=e.height/2,h=Math.abs(t.y-n.y),d=Math.abs(t.x-n.x);if(Math.abs(r-t.y)*s>Math.abs(i-t.x)*u){let p=n.y<t.y?t.y-u-r:r-u-t.y;c=d*p/h;const y={x:n.x<t.x?n.x+c:n.x-d+c,y:n.y<t.y?n.y+h-p:n.y-h+p};return c===0&&(y.x=t.x,y.y=t.y),d===0&&(y.x=t.x),h===0&&(y.y=t.y),fe.debug(`abc89 top/bottom calc, Q ${h}, q ${p}, R ${d}, r ${c}`,y),y}else{n.x<t.x?c=t.x-s-i:c=i-s-t.x;let p=h*c/d,y=n.x<t.x?n.x+d-c:n.x-d+c,m=n.y<t.y?n.y+p:n.y-p;return fe.debug(`sides calc abc89, Q ${h}, q ${p}, R ${d}, r ${c}`,{_x:y,_y:m}),c===0&&(y=t.x,m=t.y),d===0&&(y=t.x),h===0&&(m=t.y),{x:y,y:m}}},"intersection"),sk=k((e,t)=>{fe.warn("abc88 cutPathAtIntersect",e,t);let n=[],i=e[0],r=!1;return e.forEach(l=>{if(fe.info("abc88 checking point",l,t),!bJ(t,l)&&!r){const s=xJ(t,i,l);fe.debug("abc88 inside",l,i,s),fe.debug("abc88 intersection",s,t);let c=!1;n.forEach(u=>{c=c||u.x===s.x&&u.y===s.y}),n.some(u=>u.x===s.x&&u.y===s.y)?fe.warn("abc88 no intersect",s,n):n.push(s),r=!0}else fe.warn("abc88 outside",l,i),i=l,r||n.push(l)}),fe.debug("returning points",n),n},"cutPathAtIntersect");function mR(e){const t=[],n=[];for(let i=1;i<e.length-1;i++){const r=e[i-1],l=e[i],s=e[i+1];(r.x===l.x&&l.y===s.y&&Math.abs(l.x-s.x)>5&&Math.abs(l.y-r.y)>5||r.y===l.y&&l.x===s.x&&Math.abs(l.x-r.x)>5&&Math.abs(l.y-s.y)>5)&&(t.push(l),n.push(i))}return{cornerPoints:t,cornerPointPositions:n}}k(mR,"extractCornerPoints");var ok=k(function(e,t,n){const i=t.x-e.x,r=t.y-e.y,l=Math.sqrt(i*i+r*r),s=n/l;return{x:t.x-s*i,y:t.y-s*r}},"findAdjacentPoint"),_J=k(function(e){const{cornerPointPositions:t}=mR(e),n=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const r=e[i-1],l=e[i+1],s=e[i],c=ok(r,s,5),u=ok(l,s,5),h=u.x-c.x,d=u.y-c.y;n.push(c);const p=Math.sqrt(2)*2;let y={x:s.x,y:s.y};if(Math.abs(l.x-r.x)>10&&Math.abs(l.y-r.y)>=10){fe.debug("Corner point fixing",Math.abs(l.x-r.x),Math.abs(l.y-r.y));const m=5;s.x===c.x?y={x:h<0?c.x-m+p:c.x+m-p,y:d<0?c.y-p:c.y+p}:y={x:h<0?c.x-p:c.x+p,y:d<0?c.y-m+p:c.y+m-p}}else fe.debug("Corner point skipping fixing",Math.abs(l.x-r.x),Math.abs(l.y-r.y));n.push(y,u)}else n.push(e[i]);return n},"fixCorners"),vJ=k((e,t,n)=>{const i=e-t-n,r=2,l=2,s=r+l,c=Math.floor(i/s),u=Array(c).fill(`${r} ${l}`).join(" ");return`0 ${t} ${u} ${n}`},"generateDashArray"),wJ=k(function(e,t,n,i,r,l,s,c=!1){var P;const{handDrawnSeed:u}=It();let h=t.points,d=!1;const p=r;var y=l;const m=[];for(const z in t.cssCompiledStyles)YN(z)||m.push(t.cssCompiledStyles[z]);fe.debug("UIO intersect check",t.points,y.x,p.x),y.intersect&&p.intersect&&!c&&(h=h.slice(1,t.points.length-1),h.unshift(p.intersect(h[0])),fe.debug("Last point UIO",t.start,"-->",t.end,h[h.length-1],y,y.intersect(h[h.length-1])),h.push(y.intersect(h[h.length-1])));const x=btoa(JSON.stringify(h));t.toCluster&&(fe.info("to cluster abc88",n.get(t.toCluster)),h=sk(t.points,n.get(t.toCluster).node),d=!0),t.fromCluster&&(fe.debug("from cluster abc88",n.get(t.fromCluster),JSON.stringify(h,null,2)),h=sk(h.reverse(),n.get(t.fromCluster).node).reverse(),d=!0);let _=h.filter(z=>!Number.isNaN(z.y));_=_J(_);let w=md;switch(w=Zd,t.curve){case"linear":w=Zd;break;case"basis":w=md;break;case"cardinal":w=ZA;break;case"bumpX":w=WA;break;case"bumpY":w=YA;break;case"catmullRom":w=JA;break;case"monotoneX":w=aM;break;case"monotoneY":w=lM;break;case"natural":w=oM;break;case"step":w=cM;break;case"stepAfter":w=hM;break;case"stepBefore":w=uM;break;default:w=md}const{x:S,y:C}=_V(t),E=iY().x(S).y(C).curve(w);let N;switch(t.thickness){case"normal":N="edge-thickness-normal";break;case"thick":N="edge-thickness-thick";break;case"invisible":N="edge-thickness-invisible";break;default:N="edge-thickness-normal"}switch(t.pattern){case"solid":N+=" edge-pattern-solid";break;case"dotted":N+=" edge-pattern-dotted";break;case"dashed":N+=" edge-pattern-dashed";break;default:N+=" edge-pattern-solid"}let M,A=t.curve==="rounded"?yR(bR(_,t),5):E(_);const O=Array.isArray(t.style)?t.style:[t.style];let q=O.find(z=>z==null?void 0:z.startsWith("stroke:")),j=!1;if(t.look==="handDrawn"){const z=Oe.svg(e);Object.assign([],_);const L=z.path(A,{roughness:.3,seed:u});N+=" transition",M=Ct(L).select("path").attr("id",t.id).attr("class"," "+N+(t.classes?" "+t.classes:"")).attr("style",O?O.reduce((G,le)=>G+";"+le,""):"");let U=M.attr("d");M.attr("d",U),e.node().appendChild(M.node())}else{const z=m.join(";"),L=O?O.reduce((D,he)=>D+he+";",""):"";let U="";t.animate&&(U=" edge-animation-fast"),t.animation&&(U=" edge-animation-"+t.animation);const G=(z?z+";"+L+";":L)+";"+(O?O.reduce((D,he)=>D+";"+he,""):"");M=e.append("path").attr("d",A).attr("id",t.id).attr("class"," "+N+(t.classes?" "+t.classes:"")+(U??"")).attr("style",G),q=(P=G.match(/stroke:([^;]+)/))==null?void 0:P[1],j=t.animate===!0||!!t.animation||z.includes("animation");const le=M.node(),B=typeof le.getTotalLength=="function"?le.getTotalLength():0,I=C2[t.arrowTypeStart]||0,Q=C2[t.arrowTypeEnd]||0;if(t.look==="neo"&&!j){const he=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?vJ(B,I,Q):`0 ${I} ${B-I-Q} ${Q}`}; stroke-dashoffset: 0;`;M.attr("style",he+M.attr("style"))}}M.attr("data-edge",!0),M.attr("data-et","edge"),M.attr("data-id",t.id),M.attr("data-points",x),t.showPoints&&_.forEach(z=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",z.x).attr("cy",z.y)});let F="";(It().flowchart.arrowMarkerAbsolute||It().state.arrowMarkerAbsolute)&&(F=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,F=F.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),fe.info("arrowTypeStart",t.arrowTypeStart),fe.info("arrowTypeEnd",t.arrowTypeEnd),pJ(M,t,F,s,i,q);const H=Math.floor(h.length/2),Z=h[H];Ir.isLabelCoordinateInPath(Z,M.attr("d"))||(d=!0);let V={};return d&&(V.updatedPath=h),V.originalPath=t.points,V},"insertEdge");function yR(e,t){if(e.length<2)return"";let n="";const i=e.length,r=1e-5;for(let l=0;l<i;l++){const s=e[l],c=e[l-1],u=e[l+1];if(l===0)n+=`M${s.x},${s.y}`;else if(l===i-1)n+=`L${s.x},${s.y}`;else{const h=s.x-c.x,d=s.y-c.y,p=u.x-s.x,y=u.y-s.y,m=Math.hypot(h,d),x=Math.hypot(p,y);if(m<r||x<r){n+=`L${s.x},${s.y}`;continue}const _=h/m,w=d/m,S=p/x,C=y/x,E=_*S+w*C,N=Math.max(-1,Math.min(1,E)),M=Math.acos(N);if(M<r||Math.abs(Math.PI-M)<r){n+=`L${s.x},${s.y}`;continue}const A=Math.min(t/Math.sin(M/2),m/2,x/2),O=s.x-_*A,q=s.y-w*A,j=s.x+S*A,F=s.y+C*A;n+=`L${O},${q}`,n+=`Q${s.x},${s.y} ${j},${F}`}}return n}k(yR,"generateRoundedPath");function kb(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const n=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,n),deltaX:n,deltaY:i}}k(kb,"calculateDeltaAndAngle");function bR(e,t){const n=e.map(r=>({...r}));if(e.length>=2&&ai[t.arrowTypeStart]){const r=ai[t.arrowTypeStart],l=e[0],s=e[1],{angle:c}=kb(l,s),u=r*Math.cos(c),h=r*Math.sin(c);n[0].x=l.x+u,n[0].y=l.y+h}const i=e.length;if(i>=2&&ai[t.arrowTypeEnd]){const r=ai[t.arrowTypeEnd],l=e[i-1],s=e[i-2],{angle:c}=kb(s,l),u=r*Math.cos(c),h=r*Math.sin(c);n[i-1].x=l.x-u,n[i-1].y=l.y-h}return n}k(bR,"applyMarkerOffsetsToPoints");var SJ=k((e,t,n,i)=>{t.forEach(r=>{zJ[r](e,n,i)})},"insertMarkers"),CJ=k((e,t,n)=>{fe.trace("Making markers for ",n),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",n+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),kJ=k((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+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",n+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),EJ=k((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+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",n+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),TJ=k((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+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",n+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),AJ=k((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",n+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),MJ=k((e,t,n)=>{e.append("marker").attr("id",n+"_"+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",n+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),NJ=k((e,t,n)=>{e.append("marker").attr("id",n+"_"+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",n+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),OJ=k((e,t,n)=>{e.append("marker").attr("id",n+"_"+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",n+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),LJ=k((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+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"),RJ=k((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+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",n+"_"+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"),DJ=k((e,t,n)=>{const i=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const r=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),r.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),BJ=k((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+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",n+"_"+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"),IJ=k((e,t,n)=>{const i=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const r=e.append("defs").append("marker").attr("id",n+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");r.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),r.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),$J=k((e,t,n)=>{e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
|
|
399
|
+
L20,10
|
|
400
|
+
M20,10
|
|
401
|
+
L0,20`)},"requirement_arrow"),FJ=k((e,t,n)=>{const i=e.append("defs").append("marker").attr("id",n+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),zJ={extension:CJ,composition:kJ,aggregation:EJ,dependency:TJ,lollipop:AJ,point:MJ,circle:NJ,cross:OJ,barb:LJ,only_one:RJ,zero_or_one:DJ,one_or_more:BJ,zero_or_more:IJ,requirement_arrow:$J,requirement_contains:FJ},PJ=SJ,HJ={common:Jo,getConfig:oi,insertCluster:XQ,insertEdge:wJ,insertEdgeLabel:mJ,insertMarkers:PJ,insertNode:gR,interpolateToCurve:jx,labelHelper:Ze,log:fe,positionEdgeLabel:yJ},rh={},xR=k(e=>{for(const t of e)rh[t.name]=t},"registerLayoutLoaders"),UJ=k(()=>{xR([{name:"dagre",loader:k(async()=>await Dt(()=>import("./dagre-6UL2VRFP--e0xiEXF.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")},{name:"cose-bilkent",loader:k(async()=>await Dt(()=>import("./cose-bilkent-S5V4N54A-9WVDCK6U.js"),__vite__mapDeps([6,7])),"loader")}])},"registerDefaultLayoutLoaders");UJ();var Hie=k(async(e,t)=>{if(!(e.layoutAlgorithm in rh))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);const n=rh[e.layoutAlgorithm];return(await n.loader()).render(e,t,HJ,{algorithm:n.algorithm})},"render"),Uie=k((e="",{fallback:t="dagre"}={})=>{if(e in rh)return e;if(t in rh)return fe.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"),_R="comm",vR="rule",wR="decl",qJ="@import",jJ="@namespace",GJ="@keyframes",WJ="@layer",SR=Math.abs,u1=String.fromCharCode;function CR(e){return e.trim()}function vd(e,t,n){return e.replace(t,n)}function YJ(e,t,n){return e.indexOf(t,n)}function Mo(e,t){return e.charCodeAt(t)|0}function Vo(e,t,n){return e.slice(t,n)}function Qr(e){return e.length}function VJ(e){return e.length}function id(e,t){return t.push(e),e}var ng=1,Xo=1,kR=0,kr=0,Mn=0,rc="";function h1(e,t,n,i,r,l,s,c){return{value:e,root:t,parent:n,type:i,props:r,children:l,line:ng,column:Xo,length:s,return:"",siblings:c}}function XJ(){return Mn}function KJ(){return Mn=kr>0?Mo(rc,--kr):0,Xo--,Mn===10&&(Xo=1,ng--),Mn}function zr(){return Mn=kr<kR?Mo(rc,kr++):0,Xo++,Mn===10&&(Xo=1,ng++),Mn}function wl(){return Mo(rc,kr)}function wd(){return kr}function ig(e,t){return Vo(rc,e,t)}function ah(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 ZJ(e){return ng=Xo=1,kR=Qr(rc=e),kr=0,[]}function QJ(e){return rc="",e}function ry(e){return CR(ig(kr-1,Eb(e===91?e+2:e===40?e+1:e)))}function JJ(e){for(;(Mn=wl())&&Mn<33;)zr();return ah(e)>2||ah(Mn)>3?"":" "}function eee(e,t){for(;--t&&zr()&&!(Mn<48||Mn>102||Mn>57&&Mn<65||Mn>70&&Mn<97););return ig(e,wd()+(t<6&&wl()==32&&zr()==32))}function Eb(e){for(;zr();)switch(Mn){case e:return kr;case 34:case 39:e!==34&&e!==39&&Eb(Mn);break;case 40:e===41&&Eb(e);break;case 92:zr();break}return kr}function tee(e,t){for(;zr()&&e+Mn!==57;)if(e+Mn===84&&wl()===47)break;return"/*"+ig(t,kr-1)+"*"+u1(e===47?e:zr())}function nee(e){for(;!ah(wl());)zr();return ig(e,kr)}function iee(e){return QJ(Sd("",null,null,null,[""],e=ZJ(e),0,[0],e))}function Sd(e,t,n,i,r,l,s,c,u){for(var h=0,d=0,p=s,y=0,m=0,x=0,_=1,w=1,S=1,C=0,E="",N=r,M=l,A=i,O=E;w;)switch(x=C,C=zr()){case 40:if(x!=108&&Mo(O,p-1)==58){YJ(O+=vd(ry(C),"&","&\f"),"&\f",SR(h?c[h-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:O+=ry(C);break;case 9:case 10:case 13:case 32:O+=JJ(x);break;case 92:O+=eee(wd()-1,7);continue;case 47:switch(wl()){case 42:case 47:id(ree(tee(zr(),wd()),t,n,u),u),(ah(x||1)==5||ah(wl()||1)==5)&&Qr(O)&&Vo(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*_:c[h++]=Qr(O)*S;case 125*_:case 59:case 0:switch(C){case 0:case 125:w=0;case 59+d:S==-1&&(O=vd(O,/\f/g,"")),m>0&&(Qr(O)-p||_===0&&x===47)&&id(m>32?uk(O+";",i,n,p-1,u):uk(vd(O," ","")+";",i,n,p-2,u),u);break;case 59:O+=";";default:if(id(A=ck(O,t,n,h,d,r,c,E,N=[],M=[],p,l),l),C===123)if(d===0)Sd(O,t,A,A,N,l,p,c,M);else{switch(y){case 99:if(Mo(O,3)===110)break;case 108:if(Mo(O,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Sd(e,A,A,i&&id(ck(e,A,A,0,0,r,c,E,r,N=[],p,M),M),r,M,p,c,i?N:M):Sd(O,A,A,A,[""],M,0,c,M)}}h=d=m=0,_=S=1,E=O="",p=s;break;case 58:p=1+Qr(O),m=x;default:if(_<1){if(C==123)--_;else if(C==125&&_++==0&&KJ()==125)continue}switch(O+=u1(C),C*_){case 38:S=d>0?1:(O+="\f",-1);break;case 44:c[h++]=(Qr(O)-1)*S,S=1;break;case 64:wl()===45&&(O+=ry(zr())),y=wl(),d=p=Qr(E=O+=nee(wd())),C++;break;case 45:x===45&&Qr(O)==2&&(_=0)}}return l}function ck(e,t,n,i,r,l,s,c,u,h,d,p){for(var y=r-1,m=r===0?l:[""],x=VJ(m),_=0,w=0,S=0;_<i;++_)for(var C=0,E=Vo(e,y+1,y=SR(w=s[_])),N=e;C<x;++C)(N=CR(w>0?m[C]+" "+E:vd(E,/&\f/g,m[C])))&&(u[S++]=N);return h1(e,t,n,r===0?vR:c,u,h,d,p)}function ree(e,t,n,i){return h1(e,t,n,_R,u1(XJ()),Vo(e,2,-2),0,i)}function uk(e,t,n,i,r){return h1(e,t,n,wR,Vo(e,0,i),Vo(e,i+1,-1),i,r)}function Tb(e,t){for(var n="",i=0;i<e.length;i++)n+=t(e[i],i,e,t)||"";return n}function aee(e,t,n,i){switch(e.type){case WJ:if(e.children.length)break;case qJ:case jJ:case wR:return e.return=e.return||e.value;case _R:return"";case GJ:return e.return=e.value+"{"+Tb(e.children,i)+"}";case vR:if(!Qr(e.value=e.props.join(",")))return""}return Qr(n=Tb(e.children,i))?e.return=e.value+"{"+n+"}":""}var lee=ZN(Object.keys,Object),see=Object.prototype,oee=see.hasOwnProperty;function cee(e){if(!Wp(e))return lee(e);var t=[];for(var n in Object(e))oee.call(e,n)&&n!="constructor"&&t.push(n);return t}var Ab=Cs(sa,"DataView"),Mb=Cs(sa,"Promise"),Nb=Cs(sa,"Set"),Ob=Cs(sa,"WeakMap"),hk="[object Map]",uee="[object Object]",fk="[object Promise]",dk="[object Set]",pk="[object WeakMap]",gk="[object DataView]",hee=Ss(Ab),fee=Ss(nh),dee=Ss(Mb),pee=Ss(Nb),gee=Ss(Ob),is=tc;(Ab&&is(new Ab(new ArrayBuffer(1)))!=gk||nh&&is(new nh)!=hk||Mb&&is(Mb.resolve())!=fk||Nb&&is(new Nb)!=dk||Ob&&is(new Ob)!=pk)&&(is=function(e){var t=tc(e),n=t==uee?e.constructor:void 0,i=n?Ss(n):"";if(i)switch(i){case hee:return gk;case fee:return hk;case dee:return fk;case pee:return dk;case gee:return pk}return t});var mee="[object Map]",yee="[object Set]",bee=Object.prototype,xee=bee.hasOwnProperty;function mk(e){if(e==null)return!0;if(Yp(e)&&(up(e)||typeof e=="string"||typeof e.splice=="function"||Ux(e)||qx(e)||cp(e)))return!e.length;var t=is(e);if(t==mee||t==yee)return!e.size;if(Wp(e))return!cee(e).length;for(var n in e)if(xee.call(e,n))return!1;return!0}var ER="c4",_ee=k(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),vee=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./c4Diagram-YG6GDRKO-lEuiY0SL.js");return{diagram:t}},__vite__mapDeps([8,9]));return{id:ER,diagram:e}},"loader"),wee={id:ER,detector:_ee,loader:vee},See=wee,TR="flowchart",Cee=k((e,t)=>{var n,i;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-wrapper"||((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),kee=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-D37-At88.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]));return{id:TR,diagram:e}},"loader"),Eee={id:TR,detector:Cee,loader:kee},Tee=Eee,AR="flowchart-v2",Aee=k((e,t)=>{var n,i,r;return((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="dagre-d3"?!1:(((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),Mee=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-D37-At88.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]));return{id:AR,diagram:e}},"loader"),Nee={id:AR,detector:Aee,loader:Mee},Oee=Nee,MR="er",Lee=k(e=>/^\s*erDiagram/.test(e),"detector"),Ree=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./erDiagram-Q2GNP2WA-BVcjcuuk.js");return{diagram:t}},__vite__mapDeps([15,12,13,14]));return{id:MR,diagram:e}},"loader"),Dee={id:MR,detector:Lee,loader:Ree},Bee=Dee,NR="gitGraph",Iee=k(e=>/^\s*gitGraph/.test(e),"detector"),$ee=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./gitGraphDiagram-NY62KEGX-BMKxpPqN.js");return{diagram:t}},__vite__mapDeps([16,17,18,19,4,2]));return{id:NR,diagram:e}},"loader"),Fee={id:NR,detector:Iee,loader:$ee},zee=Fee,OR="gantt",Pee=k(e=>/^\s*gantt/.test(e),"detector"),Hee=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./ganttDiagram-JELNMOA3-quhE1UqX.js");return{diagram:t}},__vite__mapDeps([20,21,22,23]));return{id:OR,diagram:e}},"loader"),Uee={id:OR,detector:Pee,loader:Hee},qee=Uee,LR="info",jee=k(e=>/^\s*info/.test(e),"detector"),Gee=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./infoDiagram-WHAUD3N6-4xKLgSTQ.js");return{diagram:t}},__vite__mapDeps([24,19,4,2]));return{id:LR,diagram:e}},"loader"),Wee={id:LR,detector:jee,loader:Gee},RR="pie",Yee=k(e=>/^\s*pie/.test(e),"detector"),Vee=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./pieDiagram-ADFJNKIX-U7hwtC4F.js");return{diagram:t}},__vite__mapDeps([25,17,19,4,2,26,27,22]));return{id:RR,diagram:e}},"loader"),Xee={id:RR,detector:Yee,loader:Vee},DR="quadrantChart",Kee=k(e=>/^\s*quadrantChart/.test(e),"detector"),Zee=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./quadrantDiagram-AYHSOK5B-c7Xg0Ogc.js");return{diagram:t}},__vite__mapDeps([28,21,22,23]));return{id:DR,diagram:e}},"loader"),Qee={id:DR,detector:Kee,loader:Zee},Jee=Qee,BR="xychart",ete=k(e=>/^\s*xychart(-beta)?/.test(e),"detector"),tte=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./xychartDiagram-PRI3JC2R-CjH_M-NJ.js");return{diagram:t}},__vite__mapDeps([29,22,27,21,23]));return{id:BR,diagram:e}},"loader"),nte={id:BR,detector:ete,loader:tte},ite=nte,IR="requirement",rte=k(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),ate=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./requirementDiagram-UZGBJVZJ-Bfi-FbJv.js");return{diagram:t}},__vite__mapDeps([30,12,13]));return{id:IR,diagram:e}},"loader"),lte={id:IR,detector:rte,loader:ate},ste=lte,$R="sequence",ote=k(e=>/^\s*sequenceDiagram/.test(e),"detector"),cte=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./sequenceDiagram-WL72ISMW-e05HuYf-.js");return{diagram:t}},__vite__mapDeps([31,9,18]));return{id:$R,diagram:e}},"loader"),ute={id:$R,detector:ote,loader:cte},hte=ute,FR="class",fte=k((e,t)=>{var n;return((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),dte=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./classDiagram-2ON5EDUG-7U4rCohT.js");return{diagram:t}},__vite__mapDeps([32,33,11,12,13]));return{id:FR,diagram:e}},"loader"),pte={id:FR,detector:fte,loader:dte},gte=pte,zR="classDiagram",mte=k((e,t)=>{var n;return/^\s*classDiagram/.test(e)&&((n=t==null?void 0:t.class)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),yte=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./classDiagram-v2-WZHVMYZB-7U4rCohT.js");return{diagram:t}},__vite__mapDeps([34,33,11,12,13]));return{id:zR,diagram:e}},"loader"),bte={id:zR,detector:mte,loader:yte},xte=bte,PR="state",_te=k((e,t)=>{var n;return((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),vte=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./stateDiagram-FKZM4ZOC-C1HQRb62.js");return{diagram:t}},__vite__mapDeps([35,36,12,13,1,2,3,4]));return{id:PR,diagram:e}},"loader"),wte={id:PR,detector:_te,loader:vte},Ste=wte,HR="stateDiagram",Cte=k((e,t)=>{var n;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((n=t==null?void 0:t.state)==null?void 0:n.defaultRenderer)==="dagre-wrapper")},"detector"),kte=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./stateDiagram-v2-4FDKWEC3-dfD-mdkt.js");return{diagram:t}},__vite__mapDeps([37,36,12,13]));return{id:HR,diagram:e}},"loader"),Ete={id:HR,detector:Cte,loader:kte},Tte=Ete,UR="journey",Ate=k(e=>/^\s*journey/.test(e),"detector"),Mte=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./journeyDiagram-XKPGCS4Q-DHejZ0NY.js");return{diagram:t}},__vite__mapDeps([38,9,11,26]));return{id:UR,diagram:e}},"loader"),Nte={id:UR,detector:Ate,loader:Mte},Ote=Nte,Lte=k((e,t,n)=>{fe.debug(`rendering svg for syntax error
|
|
402
|
+
`);const i=fY(t),r=i.append("g");i.attr("viewBox","0 0 2412 512"),gA(i,100,512,!0),r.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"),r.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"),r.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"),r.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"),r.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"),r.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"),r.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"),r.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${n}`)},"draw"),qR={draw:Lte},Rte=qR,Dte={db:{},renderer:qR,parser:{parse:k(()=>{},"parse")}},Bte=Dte,jR="flowchart-elk",Ite=k((e,t={})=>{var n;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((n=t==null?void 0:t.flowchart)==null?void 0:n.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),$te=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./flowDiagram-NV44I4VS-D37-At88.js");return{diagram:t}},__vite__mapDeps([10,11,12,13,14]));return{id:jR,diagram:e}},"loader"),Fte={id:jR,detector:Ite,loader:$te},zte=Fte,GR="timeline",Pte=k(e=>/^\s*timeline/.test(e),"detector"),Hte=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./timeline-definition-IT6M3QCI-BH_IFFY3.js");return{diagram:t}},__vite__mapDeps([39,26]));return{id:GR,diagram:e}},"loader"),Ute={id:GR,detector:Pte,loader:Hte},qte=Ute,WR="mindmap",jte=k(e=>/^\s*mindmap/.test(e),"detector"),Gte=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./mindmap-definition-VGOIOE7T-BVSx8QkU.js");return{diagram:t}},__vite__mapDeps([40,12,13]));return{id:WR,diagram:e}},"loader"),Wte={id:WR,detector:jte,loader:Gte},Yte=Wte,YR="kanban",Vte=k(e=>/^\s*kanban/.test(e),"detector"),Xte=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./kanban-definition-3W4ZIXB7-PHbzshGp.js");return{diagram:t}},__vite__mapDeps([41,11]));return{id:YR,diagram:e}},"loader"),Kte={id:YR,detector:Vte,loader:Xte},Zte=Kte,VR="sankey",Qte=k(e=>/^\s*sankey(-beta)?/.test(e),"detector"),Jte=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./sankeyDiagram-TZEHDZUN-BA4CTB_A.js");return{diagram:t}},__vite__mapDeps([42,27,22]));return{id:VR,diagram:e}},"loader"),ene={id:VR,detector:Qte,loader:Jte},tne=ene,XR="packet",nne=k(e=>/^\s*packet(-beta)?/.test(e),"detector"),ine=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./diagram-S2PKOQOG-DhXpPYNY.js");return{diagram:t}},__vite__mapDeps([43,17,19,4,2]));return{id:XR,diagram:e}},"loader"),rne={id:XR,detector:nne,loader:ine},KR="radar",ane=k(e=>/^\s*radar-beta/.test(e),"detector"),lne=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./diagram-QEK2KX5R-H5L9-KVG.js");return{diagram:t}},__vite__mapDeps([44,17,19,4,2]));return{id:KR,diagram:e}},"loader"),sne={id:KR,detector:ane,loader:lne},ZR="block",one=k(e=>/^\s*block(-beta)?/.test(e),"detector"),cne=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./blockDiagram-VD42YOAC-XdvlyZ7N.js");return{diagram:t}},__vite__mapDeps([45,11,5,1,2,14]));return{id:ZR,diagram:e}},"loader"),une={id:ZR,detector:one,loader:cne},hne=une,QR="architecture",fne=k(e=>/^\s*architecture/.test(e),"detector"),dne=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./architectureDiagram-VXUJARFQ-CpfdK-tM.js");return{diagram:t}},__vite__mapDeps([46,17,19,4,2,7]));return{id:QR,diagram:e}},"loader"),pne={id:QR,detector:fne,loader:dne},gne=pne,JR="treemap",mne=k(e=>/^\s*treemap/.test(e),"detector"),yne=k(async()=>{const{diagram:e}=await Dt(async()=>{const{diagram:t}=await import("./diagram-PSM6KHXK-CS-BHPX7.js");return{diagram:t}},__vite__mapDeps([47,13,17,19,4,2,23,27,22]));return{id:JR,diagram:e}},"loader"),bne={id:JR,detector:mne,loader:yne},yk=!1,rg=k(()=>{yk||(yk=!0,jd("error",Bte,e=>e.toLowerCase().trim()==="error"),jd("---",{db:{clear:k(()=>{},"clear")},styles:{},renderer:{draw:k(()=>{},"draw")},parser:{parse:k(()=>{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:k(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Fy(zte,Yte,gne),Fy(See,Zte,xte,gte,Bee,qee,Wee,Xee,ste,hte,Oee,Tee,qte,zee,Tte,Ste,Ote,Jee,tne,rne,ite,hne,sne,bne))},"addDiagrams"),xne=k(async()=>{fe.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(ds).map(async([n,{detector:i,loader:r}])=>{if(r)try{Uy(n)}catch{try{const{diagram:l,id:s}=await r();jd(s,l,i)}catch(l){throw fe.error(`Failed to load external diagram with key ${n}. Removing from detectors.`),delete ds[n],l}}}))).filter(n=>n.status==="rejected");if(t.length>0){fe.error(`Failed to load ${t.length} external diagrams`);for(const n of t)fe.error(n);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),_ne="graphics-document document";function eD(e,t){e.attr("role",_ne),t!==""&&e.attr("aria-roledescription",t)}k(eD,"setA11yDiagramInfo");function tD(e,t,n,i){if(e.insert!==void 0){if(n){const r=`chart-desc-${i}`;e.attr("aria-describedby",r),e.insert("desc",":first-child").attr("id",r).text(n)}if(t){const r=`chart-title-${i}`;e.attr("aria-labelledby",r),e.insert("title",":first-child").attr("id",r).text(t)}}}k(tD,"addSVGa11yTitleDescription");var hs,Lb=(hs=class{constructor(t,n,i,r,l){this.type=t,this.text=n,this.db=i,this.parser=r,this.renderer=l}static async fromText(t,n={}){var h,d;const i=oi(),r=dx(t,i);t=bZ(t)+`
|
|
403
|
+
`;try{Uy(r)}catch{const p=U7(r);if(!p)throw new iA(`Diagram ${r} not found.`);const{id:y,diagram:m}=await p();jd(y,m)}const{db:l,parser:s,renderer:c,init:u}=Uy(r);return s.parser&&(s.parser.yy=l),(h=l.clear)==null||h.call(l),u==null||u(i),n.title&&((d=l.setDiagramTitle)==null||d.call(l,n.title)),await s.parse(t),new hs(r,t,l,s,c)}async render(t,n){await this.renderer.draw(this.text,t,n,this)}getParser(){return this.parser}getType(){return this.type}},k(hs,"Diagram"),hs),bk=[],vne=k(()=>{bk.forEach(e=>{e()}),bk=[]},"attachFunctions"),wne=k(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function nD(e){const t=e.match(nA);if(!t)return{text:e,metadata:{}};let n=xV(t[1],{schema:bV})??{};n=typeof n=="object"&&!Array.isArray(n)?n:{};const i={};return n.displayMode&&(i.displayMode=n.displayMode.toString()),n.title&&(i.title=n.title.toString()),n.config&&(i.config=n.config),{text:e.slice(t[0].length),metadata:i}}k(nD,"extractFrontMatter");var Sne=k(e=>e.replace(/\r\n?/g,`
|
|
404
|
+
`).replace(/<(\w+)([^>]*)>/g,(t,n,i)=>"<"+n+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),Cne=k(e=>{const{text:t,metadata:n}=nD(e),{displayMode:i,title:r,config:l={}}=n;return i&&(l.gantt||(l.gantt={}),l.gantt.displayMode=i),{title:r,config:l,text:t}},"processFrontmatter"),kne=k(e=>{const t=Ir.detectInit(e)??{},n=Ir.detectDirective(e,"wrap");return Array.isArray(n)?t.wrap=n.some(({type:i})=>i==="wrap"):(n==null?void 0:n.type)==="wrap"&&(t.wrap=!0),{text:aZ(e),directive:t}},"processDirectives");function f1(e){const t=Sne(e),n=Cne(t),i=kne(n.text),r=Xx(n.config,i.directive);return e=wne(i.text),{code:e,title:n.title,config:r}}k(f1,"preprocessDiagram");function iD(e){const t=new TextEncoder().encode(e),n=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(n)}k(iD,"toBase64");var Ene=5e4,Tne="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",Ane="sandbox",Mne="loose",Nne="http://www.w3.org/2000/svg",One="http://www.w3.org/1999/xlink",Lne="http://www.w3.org/1999/xhtml",Rne="100%",Dne="100%",Bne="border:0;margin:0;",Ine="margin:0",$ne="allow-top-navigation-by-user-activation allow-popups",Fne='The "iframe" tag is not supported by your browser.',zne=["foreignobject"],Pne=["dominant-baseline"];function d1(e){const t=f1(e);return Ud(),rq(t.config??{}),t}k(d1,"processAndSetConfigs");async function rD(e,t){rg();try{const{code:n,config:i}=d1(e);return{diagramType:(await lD(n)).type,config:i}}catch(n){if(t!=null&&t.suppressErrors)return!1;throw n}}k(rD,"parse");var xk=k((e,t,n=[])=>`
|
|
405
|
+
.${e} ${t} { ${n.join(" !important; ")} !important; }`,"cssImportantStyles"),Hne=k((e,t=new Map)=>{var i;let n="";if(e.themeCSS!==void 0&&(n+=`
|
|
406
|
+
${e.themeCSS}`),e.fontFamily!==void 0&&(n+=`
|
|
407
|
+
:root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(n+=`
|
|
408
|
+
:root { --mermaid-alt-font-family: ${e.altFontFamily}}`),t instanceof Map){const c=e.htmlLabels??((i=e.flowchart)==null?void 0:i.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(u=>{mk(u.styles)||c.forEach(h=>{n+=xk(u.id,h,u.styles)}),mk(u.textStyles)||(n+=xk(u.id,"tspan",((u==null?void 0:u.textStyles)||[]).map(h=>h.replace("color","fill"))))})}return n},"createCssStyles"),Une=k((e,t,n,i)=>{const r=Hne(e,n),l=Cq(t,r,e.themeVariables);return Tb(iee(`${i}{${l}}`),aee)},"createUserStyles"),qne=k((e="",t,n)=>{let i=e;return!n&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=ks(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),jne=k((e="",t)=>{var r,l;const n=(l=(r=t==null?void 0:t.viewBox)==null?void 0:r.baseVal)!=null&&l.height?t.viewBox.baseVal.height+"px":Dne,i=iD(`<body style="${Ine}">${e}</body>`);return`<iframe style="width:${Rne};height:${n};${Bne}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${$ne}">
|
|
409
|
+
${Fne}
|
|
410
|
+
</iframe>`},"putIntoIFrame"),_k=k((e,t,n,i,r)=>{const l=e.append("div");l.attr("id",n),i&&l.attr("style",i);const s=l.append("svg").attr("id",t).attr("width","100%").attr("xmlns",Nne);return r&&s.attr("xmlns:xlink",r),s.append("g"),e},"appendDivSvgG");function Rb(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}k(Rb,"sandboxedIframe");var Gne=k((e,t,n,i)=>{var r,l,s;(r=e.getElementById(t))==null||r.remove(),(l=e.getElementById(n))==null||l.remove(),(s=e.getElementById(i))==null||s.remove()},"removeExistingElements"),Wne=k(async function(e,t,n){var Z,V,P,z,L,U;rg();const i=d1(t);t=i.code;const r=oi();fe.debug(r),t.length>((r==null?void 0:r.maxTextSize)??Ene)&&(t=Tne);const l="#"+e,s="i"+e,c="#"+s,u="d"+e,h="#"+u,d=k(()=>{const le=Ct(y?c:h).node();le&&"remove"in le&&le.remove()},"removeTempElements");let p=Ct("body");const y=r.securityLevel===Ane,m=r.securityLevel===Mne,x=r.fontFamily;if(n!==void 0){if(n&&(n.innerHTML=""),y){const G=Rb(Ct(n),s);p=Ct(G.nodes()[0].contentDocument.body),p.node().style.margin=0}else p=Ct(n);_k(p,e,u,`font-family: ${x}`,One)}else{if(Gne(document,e,u,s),y){const G=Rb(Ct("body"),s);p=Ct(G.nodes()[0].contentDocument.body),p.node().style.margin=0}else p=Ct("body");_k(p,e,u)}let _,w;try{_=await Lb.fromText(t,{title:i.title})}catch(G){if(r.suppressErrorRendering)throw d(),G;_=await Lb.fromText("error"),w=G}const S=p.select(h).node(),C=_.type,E=S.firstChild,N=E.firstChild,M=(V=(Z=_.renderer).getClasses)==null?void 0:V.call(Z,t,_),A=Une(r,C,M,l),O=document.createElement("style");O.innerHTML=A,E.insertBefore(O,N);try{await _.renderer.draw(t,e,zC.version,_)}catch(G){throw r.suppressErrorRendering?d():Rte.draw(t,e,zC.version),G}const q=p.select(`${h} svg`),j=(z=(P=_.db).getAccTitle)==null?void 0:z.call(P),F=(U=(L=_.db).getAccDescription)==null?void 0:U.call(L);sD(C,q,j,F),p.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",Lne);let H=p.select(h).node().innerHTML;if(fe.debug("config.arrowMarkerAbsolute",r.arrowMarkerAbsolute),H=qne(H,y,Pn(r.arrowMarkerAbsolute)),y){const G=p.select(h+" svg").node();H=jne(H,G)}else m||(H=Ho.sanitize(H,{ADD_TAGS:zne,ADD_ATTR:Pne,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(vne(),w)throw w;return d(),{diagramType:C,svg:H,bindFunctions:_.db.bindFunctions}},"render");function aD(e={}){var i;const t=Fn({},e);t!=null&&t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),nq(t),t!=null&&t.theme&&t.theme in Da?t.themeVariables=Da[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Da.default.getThemeVariables(t.themeVariables));const n=typeof t=="object"?tq(t):oA();fx(n.logLevel),rg()}k(aD,"initialize");var lD=k((e,t={})=>{const{code:n}=f1(e);return Lb.fromText(n,t)},"getDiagramFromText");function sD(e,t,n,i){eD(t,e),tD(t,n,i,t.attr("id"))}k(sD,"addA11yInfo");var xs=Object.freeze({render:Wne,parse:rD,getDiagramFromText:lD,initialize:aD,getConfig:oi,setConfig:cA,getSiteConfig:oA,updateSiteConfig:iq,reset:k(()=>{Ud()},"reset"),globalReset:k(()=>{Ud(Uo)},"globalReset"),defaultConfig:Uo});fx(oi().logLevel);Ud(oi());var Yne=k((e,t,n)=>{fe.warn(e),Vx(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),oD=k(async function(e={querySelector:".mermaid"}){try{await Vne(e)}catch(t){if(Vx(t)&&fe.error(t.str),sr.parseError&&sr.parseError(t),!e.suppressErrors)throw fe.error("Use the suppressErrors option to suppress these errors"),t}},"run"),Vne=k(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:".mermaid"}){const i=xs.getConfig();fe.debug(`${e?"":"No "}Callback function found`);let r;if(n)r=n;else if(t)r=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");fe.debug(`Found ${r.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(fe.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),xs.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const l=new Ir.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let s;const c=[];for(const u of Array.from(r)){if(fe.info("Rendering diagram: "+u.id),u.getAttribute("data-processed"))continue;u.setAttribute("data-processed","true");const h=`mermaid-${l.next()}`;s=u.innerHTML,s=MO(Ir.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const d=Ir.detectInit(s);d&&fe.debug("Detected early reinit: ",d);try{const{svg:p,bindFunctions:y}=await fD(h,s,u);u.innerHTML=p,e&&await e(h),y&&y(u)}catch(p){Yne(p,c,sr.parseError)}}if(c.length>0)throw c[0]},"runThrowsErrors"),cD=k(function(e){xs.initialize(e)},"initialize"),Xne=k(async function(e,t,n){fe.warn("mermaid.init is deprecated. Please use run instead."),e&&cD(e);const i={postRenderCallback:n,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await oD(i)},"init"),Kne=k(async(e,{lazyLoad:t=!0}={})=>{rg(),Fy(...e),t===!1&&await xne()},"registerExternalDiagrams"),uD=k(function(){if(sr.startOnLoad){const{startOnLoad:e}=xs.getConfig();e&&sr.run().catch(t=>fe.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",uD,!1);var Zne=k(function(e){sr.parseError=e},"setParseErrorHandler"),vp=[],ay=!1,hD=k(async()=>{if(!ay){for(ay=!0;vp.length>0;){const e=vp.shift();if(e)try{await e()}catch(t){fe.error("Error executing queue",t)}}ay=!1}},"executeQueue"),Qne=k(async(e,t)=>new Promise((n,i)=>{const r=k(()=>new Promise((l,s)=>{xs.parse(e,t).then(c=>{l(c),n(c)},c=>{var u;fe.error("Error parsing",c),(u=sr.parseError)==null||u.call(sr,c),s(c),i(c)})}),"performCall");vp.push(r),hD().catch(i)}),"parse"),fD=k((e,t,n)=>new Promise((i,r)=>{const l=k(()=>new Promise((s,c)=>{xs.render(e,t,n).then(u=>{s(u),i(u)},u=>{var h;fe.error("Error parsing",u),(h=sr.parseError)==null||h.call(sr,u),c(u),r(u)})}),"performCall");vp.push(l),hD().catch(r)}),"render"),Jne=k(()=>Object.keys(ds).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),sr={startOnLoad:!0,mermaidAPI:xs,parse:Qne,render:fD,init:Xne,run:oD,registerExternalDiagrams:Kne,registerLayoutLoaders:xR,initialize:cD,parseError:void 0,contentLoaded:uD,setParseErrorHandler:Zne,detectType:dx,registerIconPacks:wQ,getRegisteredDiagramsMetadata:Jne},vk=sr;/*! Check if previously processed *//*!
|
|
411
|
+
* Wait for document loaded before starting the execution
|
|
412
|
+
*/const eie=({code:e})=>{const t=ge.useRef(null),[n,i]=ge.useState(""),[r,l]=ge.useState(null),{isDark:s}=Ib();return ge.useEffect(()=>{let c=!1;return(async()=>{try{vk.initialize({startOnLoad:!1,theme:s?"dark":"default",securityLevel:"strict"});const h=`mermaid-${crypto.randomUUID()}`,{svg:d}=await vk.render(h,e);c||(i(d),l(null))}catch(h){c||(l(h instanceof Error?h.message:"Failed to render diagram"),i(""))}})(),()=>{c=!0}},[e,s]),r?$.jsxs("div",{className:"mermaid-error",children:[$.jsx("pre",{children:e}),$.jsxs("p",{className:"mermaid-error-message",children:["Mermaid error: ",r]})]}):$.jsx("div",{ref:t,className:"mermaid-container",dangerouslySetInnerHTML:{__html:n}})};function tie(e){const t={};for(const n of e.split(`
|
|
413
|
+
`)){const i=n.match(/^([^:]+):\s*(.*)$/);i&&(t[i[1].trim()]=i[2].trim())}return t}function nie(e,t){const n=t.endsWith(".mdx");let i=e,r={};const l=e.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?/);return l&&(r=tie(l[1]),i=e.slice(l[0].length)),n&&(i=i.split(`
|
|
414
|
+
`).filter(s=>!/^(import|export)\s/.test(s)).join(`
|
|
415
|
+
`)),{frontmatter:r,body:i}}const iie=e=>e.comment||e.text||"",rie=(e="resolved")=>({resolved:"Resolved",partially_resolved:"Partially resolved",unresolved:"Unresolved"})[e]||e,wk=(e="resolved")=>`status-${e.replace(/_/g,"-")}`,aie=({line:e,comments:t})=>{const[n,i]=ge.useState(!1),r=ge.useRef(null),s=t[0].status||"resolved";return ge.useEffect(()=>{if(!n)return;const c=u=>{var h;(h=r.current)!=null&&h.contains(u.target)||i(!1)};return document.addEventListener("pointerdown",c),()=>document.removeEventListener("pointerdown",c)},[n]),$.jsxs("span",{className:"processed-comment-marker",ref:r,children:[$.jsxs("button",{type:"button",className:`processed-comment-marker-button ${wk(s)}`,"aria-label":`Processed comments on line ${e}`,title:`Processed comments on line ${e}`,onClick:c=>{c.stopPropagation(),i(u=>!u)},children:[$.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[$.jsx("path",{d:"M21 15a4 4 0 0 1-4 4H7l-4 4V7a4 4 0 0 1 4-4h7"}),$.jsx("path",{d:"m16 8 2 2 4-4"})]}),t.length>1&&$.jsx("span",{className:"processed-comment-count",children:t.length})]}),n&&$.jsx("span",{className:"processed-comment-popover",role:"dialog",children:t.map(c=>$.jsxs("span",{className:"processed-comment",children:[$.jsxs("span",{className:"processed-comment-meta",children:[$.jsx("span",{className:`processed-comment-status ${wk(c.status)}`,children:rie(c.status)}),$.jsxs("span",{className:"processed-comment-source",children:[c.file||"source",":",c.startLine]})]}),$.jsx("span",{className:"processed-comment-text",children:iie(c)}),c.resolution&&$.jsx("span",{className:"processed-comment-resolution",children:c.resolution})]},`${c.file||"comment"}:${c.id}`))})]})},lie=e=>{const t=i=>{if(typeof i!="number")return null;const r=e.get(i);return r!=null&&r.length?$.jsx(aie,{line:i,comments:r}):null},n=(i,{node:r,children:l,...s})=>{var d,p;const c=(p=(d=r==null?void 0:r.position)==null?void 0:d.start)==null?void 0:p.line,u=t(c),h=[s.className,u?"markdown-line-with-processed-comment":null].filter(Boolean).join(" ");return $.jsxs(i,{...s,"data-line-start":c,className:h||void 0,children:[u,l]})};return{code:({node:i,className:r,children:l,...s})=>{const c=/language-(\w+)/.exec(r||"");if((c?c[1]:"")==="mermaid"){const h=String(l).replace(/\n$/,"");return $.jsx(eie,{code:h})}return $.jsx("code",{className:r,...s,children:l})},p:i=>n("p",i),h1:i=>n("h1",i),h2:i=>n("h2",i),h3:i=>n("h3",i),h4:i=>n("h4",i),h5:i=>n("h5",i),h6:i=>n("h6",i),li:i=>n("li",i),blockquote:i=>n("blockquote",i),pre:i=>n("pre",i),td:i=>n("td",i),th:i=>n("th",i)}},dD=({content:e,filename:t,filePath:n,compareFilename:i,compareContent:r,comments:l,targetComments:s=[],readonly:c=!1,onCreateComment:u,onDeleteComment:h,onDeleteAllComments:d,onEditComment:p})=>{const y=ge.useRef(null),m=ge.useRef(l.length),[x,_]=ge.useState(null),[w,S]=ge.useState("split"),{isDark:C}=Ib(),{frontmatter:E,body:N}=nie(e,t),M=!!(i&&typeof r=="string"),A=M?`${i}->${t}`:null,O=!!(A&&x===A),q=ge.useMemo(()=>{const I=new Map;for(const Q of s){if(typeof Q.targetStartLine!="number")continue;const D=I.get(Q.targetStartLine)||[];D.push(Q),I.set(Q.targetStartLine,D)}return I},[s]),j=ge.useMemo(()=>lie(q),[q]),{width:F,isResizing:H,isCollapsed:Z,setIsCollapsed:V,handleMouseDown:P,toggleCollapse:z}=Ck({initialWidth:300,minWidth:250,maxWidth:600,storageKey:"md-review-comments-sidebar-width",direction:"right",collapsible:!0,collapseThreshold:70,initialCollapsed:l.length===0});ge.useEffect(()=>{const I=document.querySelector('link[href*="github.css"]'),Q=document.querySelector('link[href*="github-dark.css"]');I&&Q&&(C?(I.disabled=!0,Q.disabled=!1):(I.disabled=!1,Q.disabled=!0))},[C]),ge.useEffect(()=>{const I=m.current;m.current=l.length,I===0&&l.length>0&&V(!1)},[l.length,V]);const L=(I,Q,D,he,xe,de,we,Le)=>{!u||c||u({file:n||t,comment:I,selectedText:Q,startLine:D,endLine:he,startOffset:xe,endOffset:de,beforeText:we,afterText:Le})},U=I=>{!h||c||h(I,n||t)},G=()=>{!d||c||d(n||t)},le=(I,Q)=>{!p||c||p(I,n||t,Q)},B=I=>{if(!y.current)return;const Q=y.current.querySelector(`[data-line-start="${I}"]`);Q&&(Q.scrollIntoView({behavior:"smooth",block:"center"}),Q.classList.add("highlight-line"),setTimeout(()=>{Q.classList.remove("highlight-line")},2e3))};return $.jsxs("div",{className:`markdown-with-comments ${H?"resizing":""} ${Z?"comments-collapsed":""}`,style:{paddingRight:Z?"80px":`${F+20}px`},children:[$.jsxs("div",{className:`markdown-container ${O?"diff-active":""}`,children:[$.jsxs("header",{className:"markdown-header",children:[$.jsxs("div",{className:"markdown-title-row",children:[$.jsx("h1",{children:t}),M&&$.jsx("button",{type:"button",className:"diff-toggle-button","aria-label":O?"Show rendered preview":`Compare with ${i}`,title:O?"Show rendered preview":`Compare with ${i}`,onClick:()=>_(O?null:A),children:O?"Preview":"Compare"})]}),Object.keys(E).length>0&&$.jsx("dl",{className:"frontmatter-block",children:Object.entries(E).map(([I,Q])=>$.jsxs("div",{className:"frontmatter-row",children:[$.jsx("dt",{children:I}),$.jsx("dd",{children:Q})]},I))})]}),O&&M?$.jsxs("div",{className:"markdown-diff-view",children:[$.jsxs("div",{className:"diff-view-toolbar","aria-label":"Diff view mode",children:[$.jsx("button",{type:"button",className:`diff-view-mode-button ${w==="split"?"active":""}`,"aria-label":"Use split diff view","aria-pressed":w==="split",onClick:()=>S("split"),children:"Split"}),$.jsx("button",{type:"button",className:`diff-view-mode-button ${w==="unified"?"active":""}`,"aria-label":"Use unified diff view","aria-pressed":w==="unified",onClick:()=>S("unified"),children:"Unified"})]}),$.jsx(Ly,{oldValue:r||"",newValue:e,splitView:w==="split",hideSummary:!0,showDiffOnly:!1,useDarkTheme:C,leftTitle:i,rightTitle:t})]}):$.jsx("div",{className:"markdown-content",ref:y,children:$.jsx(qF,{remarkPlugins:[hH,pH],rehypePlugins:[n7],components:j,children:N})}),!O&&!c&&$.jsx(l7,{containerRef:y,onSubmitComment:L})]}),Z&&$.jsxs("button",{className:"comments-toggle-button",onClick:z,title:"Show comments","aria-label":"Show comments",children:[$.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:$.jsx("path",{d:"M2 5a2 2 0 012-2h12a2 2 0 012 2v8a2 2 0 01-2 2H6l-4 3V5z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),l.length>0&&$.jsx("span",{className:"comments-badge",children:l.length})]}),!Z&&$.jsxs("aside",{className:"comments-sidebar",style:{width:`${F}px`},children:[$.jsx("div",{className:"comments-sidebar-resizer",onMouseDown:P}),$.jsx(s7,{comments:[...l].sort((I,Q)=>I.startLine-Q.startLine),filename:n||t,onDeleteComment:c?void 0:U,onDeleteAll:c?void 0:G,onClose:z,onLineClick:B,onEditComment:c?void 0:le})]})]})},Db=({error:e})=>$.jsxs("div",{style:{padding:"2rem",maxWidth:"800px",margin:"2rem auto",backgroundColor:"#fee",border:"1px solid #fcc",borderRadius:"8px"},children:[$.jsx("h2",{style:{color:"#c00"},children:"Error"}),$.jsx("p",{children:e.message})]}),sie=/^(?<stem>.+?)(?:\.v(?<version>\d+))?(?<ext>\.md|\.markdown|\.mdx)$/;function oie(){return new URLSearchParams(window.location.search).has("file")}function wp(e){const t=e.split("/"),i=t[t.length-1].match(sie);return i!=null&&i.groups?{dir:t.slice(0,-1).join("/"),stem:i.groups.stem,ext:i.groups.ext,version:Number(i.groups.version||0)}:null}function cie(e,t){if(!e)return!1;const n=wp(e),i=wp(t);return!n||!i?!1:i.dir===n.dir&&i.stem===n.stem&&i.ext===n.ext&&i.version>n.version}function uie(e,t){if(!e)return null;const n=wp(e);if(!n||n.version===0)return null;let i=null,r=-1;for(const l of t){if(l.path===e)continue;const s=wp(l.path);!s||!(s.dir===n.dir&&s.stem===n.stem&&s.ext===n.ext)||s.version<n.version&&s.version>r&&(i=l.path,r=s.version)}return i}const hie=()=>{const{files:e,selectedFile:t,setSelectedFile:n,reload:i,loading:r,error:l}=N3(),[s,c]=ge.useState(()=>!oie()),[u,h]=ge.useState(!1),{content:d,filename:p,loading:y,error:m,reload:x}=sy(t),_=uie(t,e),{content:w,filename:S,loading:C,error:E}=sy(_),N=Sk(t);kk(Z=>{t===Z&&(x(),N.reload())},Z=>{i(cie(t,Z)?Z:null)});const{width:M,isResizing:A,isCollapsed:O,handleMouseDown:q,toggleCollapse:j}=Ck({initialWidth:240,minWidth:180,maxWidth:500,storageKey:"md-review-sidebar-width",collapsible:!0,collapseThreshold:120}),F=()=>{c(!0),h(!0),setTimeout(()=>h(!1),100)};if(r)return $.jsx("div",{className:"dev-loading",children:$.jsx("p",{children:"Loading files..."})});if(l)return $.jsx(Db,{error:l});if(e.length===0)return $.jsxs("div",{className:"dev-empty",children:[$.jsx("h2",{children:"No Markdown Files Found"}),$.jsx("p",{children:"No .md files were found in the current directory."})]});const H=s&&!O;return $.jsxs("div",{className:`dev-container ${H?"":"sidebar-closed"} ${A?"resizing":""}`,children:[$.jsxs("div",{className:`dev-sidebar ${H?"":"closed"}`,style:H?{width:`${M}px`}:void 0,children:[!H&&$.jsxs("div",{className:"sidebar-icon-bar",children:[$.jsx("button",{className:"icon-bar-item",onClick:()=>{c(!0),O&&j()},title:"Open sidebar",children:$.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:$.jsx("path",{d:"M5 3h6l2 2h4a1 1 0 011 1v10a1 1 0 01-1 1H3a1 1 0 01-1-1V4a1 1 0 011-1h2z",stroke:"currentColor",strokeWidth:"1.5"})})}),$.jsx("button",{className:"icon-bar-item",onClick:F,title:"Search",children:$.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[$.jsx("circle",{cx:"9",cy:"9",r:"6",stroke:"currentColor",strokeWidth:"1.5"}),$.jsx("path",{d:"M13.5 13.5l3.5 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}),$.jsx(Tk,{}),$.jsx("div",{className:"icon-bar-spacer"}),$.jsx("a",{href:"https://github.com/tracyxiong1/md-review-server",target:"_blank",rel:"noopener noreferrer",className:"icon-bar-item",title:"View on GitHub","aria-label":"View on GitHub",children:$.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:$.jsx("path",{d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"})})})]}),H&&$.jsxs($.Fragment,{children:[$.jsx("div",{className:"sidebar-content",children:$.jsx(L3,{files:e,selectedFile:t,onFileSelect:n,onToggleSidebar:()=>c(!1),autoFocusSearch:u})}),$.jsx("div",{className:"sidebar-resizer",onMouseDown:q})]})]}),$.jsx("div",{className:"dev-main",children:t?y?$.jsx("div",{className:"dev-loading",children:$.jsx("p",{children:"Loading markdown..."})}):m?$.jsx(Db,{error:m}):d&&p?$.jsx(dD,{content:d,filename:p,filePath:t||p,compareFilename:_&&!C&&!E&&w?S||_:void 0,compareContent:_&&!C&&!E&&w?w:void 0,comments:N.comments,targetComments:N.targetComments,readonly:N.readonly,onCreateComment:N.createComment,onDeleteComment:N.deleteComment,onDeleteAllComments:N.deleteAllComments,onEditComment:N.editComment}):$.jsx("div",{className:"dev-placeholder",children:$.jsx("p",{children:"No content available"})}):$.jsxs("div",{className:"dev-placeholder",children:[$.jsx("h2",{children:"Welcome to md-review"}),$.jsx("p",{children:"Select a markdown file from the sidebar to preview"}),$.jsxs("p",{className:"file-count",children:[e.length," markdown files found"]})]})})]})},fie=()=>{const{content:e,filename:t,loading:n,error:i,reload:r}=sy(),[l,s]=ge.useState(null),c=Sk(l);return ge.useEffect(()=>{s(t)},[t]),kk(()=>{r(),c.reload()}),n?$.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:$.jsx("p",{children:"Loading..."})}):i?$.jsx(Db,{error:i}):!e||!t?$.jsx("div",{style:{padding:"2rem"},children:$.jsx("p",{children:"No content available"})}):$.jsx(dD,{content:e,filename:t,comments:c.comments,targetComments:c.targetComments,readonly:c.readonly,onCreateComment:c.createComment,onDeleteComment:c.deleteComment,onDeleteAllComments:c.deleteAllComments,onEditComment:c.editComment})};function die(){const[e,t]=ge.useState("loading");return ge.useEffect(()=>{(async()=>{try{(await fetch("/api/files")).ok?t("dev"):t("cli")}catch{t("cli")}})()},[]),e==="loading"?$.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:$.jsx("p",{children:"Initializing..."})}):e==="dev"?$.jsx(hie,{}):$.jsx(fie,{})}T3.createRoot(document.getElementById("root")).render($.jsx(ge.StrictMode,{children:$.jsx(die,{})}));export{mA as $,Du as A,f7 as B,Rq as C,Xx as D,oi as E,sA as F,uZ as G,fY as H,zC as I,bV as J,V7 as K,qo as L,mie as M,Vp as N,dq as O,px as P,ZC as Q,iY as R,md as S,cZ as T,dh as U,vq as V,fh as W,Ne as X,Ge as Y,tZ as Z,k as _,Tq as a,Ux as a$,JW as a0,y2 as a1,m2 as a2,Tie as a3,wie as a4,kie as a5,Cie as a6,_ie as a7,ho as a8,Tx as a9,CQ as aA,eY as aB,gie as aC,Yp as aD,up as aE,sO as aF,lh as aG,_h as aH,wQ as aI,vQ as aJ,Sx as aK,_l as aL,u2 as aM,RG as aN,Xu as aO,MK as aP,aO as aQ,QN as aR,RX as aS,sp as aT,DX as aU,bh as aV,is as aW,CK as aX,$2 as aY,ws as aZ,BX as a_,Eie as aa,vie as ab,Mie as ac,Aie as ad,Sie as ae,XQ as af,gR as ag,zie as ah,_V as ai,Pn as aj,Ll as ak,zx as al,HO as am,ks as an,dO as ao,tt as ap,ia as aq,PJ as ar,Fie as as,Pie as at,Iie as au,Ie as av,$ie as aw,wJ as ax,yJ as ay,mJ as az,Eq as b,LX as b0,FX as b1,nc as b2,AK as b3,ZK as b4,qX as b5,jK as b6,Px as b7,mk as b8,Be as b9,Nb as bA,Dt as bB,YN as ba,ji as bb,EG as bc,wx as bd,NA as be,gh as bf,RA as bg,xie as bh,h7 as bi,KK as bj,qK as bk,QK as bl,qp as bm,NX as bn,Hx as bo,rO as bp,eZ as bq,tc as br,BK as bs,cee as bt,yh as bu,cp as bv,Ol as bw,L2 as bx,qx as by,eO as bz,It as c,Ct as d,gA as e,Fn as f,Mq as g,za as h,Cr as i,EV as j,Jo as k,fe as l,gO as m,yie as n,Uie as o,Nq as p,Oq as q,Hie as r,Aq as s,xV as t,Ir as u,dJ as v,dZ as w,Nie as x,kq as y,bie as z};
|