@masuidrive/ticket
Version:
Real-time ticket tracking viewer with Vite + Express
459 lines • 861 kB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-JOIXM2OF-C-NPVAZj.js","assets/graph-DwirzpKs.js","assets/_baseUniq-CDbTTHst.js","assets/layout-BnMa_CBr.js","assets/_basePickBy-pxo78nSG.js","assets/clone-B3Vsu4Le.js","assets/c4Diagram-6F6E4RAY-Bg8MDzLU.js","assets/chunk-67H74DCK-C-9lnNCo.js","assets/flowDiagram-KYDEHFYC-BaEtj3ag.js","assets/chunk-E2GYISFI-CPOj4bTa.js","assets/chunk-BFAMUDN2-C49hHyDA.js","assets/chunk-SKB7J2MH-DWiMhrhe.js","assets/channel-CB7QmZrm.js","assets/erDiagram-3M52JZNH-BD6DQtD0.js","assets/gitGraphDiagram-GW3U2K7C-Bqvk3g_k.js","assets/chunk-353BL4L5-BnxGr26d.js","assets/chunk-AACKK3MU-D9Glh_up.js","assets/treemap-75Q7IDZK-owodTz3c.js","assets/ganttDiagram-EK5VF46D-B8MNPXpZ.js","assets/linear-DbgmQucS.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-C4B-KCzX.js","assets/infoDiagram-LHK5PUON-K3yTkJqY.js","assets/pieDiagram-NIOCPIFQ-BoCRWq_L.js","assets/arc-VjCQLYFv.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-2OG54O6I-Cg1kIyap.js","assets/xychartDiagram-H2YORKM3-CVKvLHY1.js","assets/requirementDiagram-QOLK2EJ7-BT7_9GHx.js","assets/sequenceDiagram-SKLFT4DO-uPyU9k_L.js","assets/classDiagram-M3E45YP4-BNXK0uma.js","assets/chunk-SZ463SBG-eX36zZ28.js","assets/classDiagram-v2-YAWTLIQI-BNXK0uma.js","assets/stateDiagram-MI5ZYTHO-oYxlXWt5.js","assets/chunk-OW32GOEJ-DzmJfUYy.js","assets/stateDiagram-v2-5AN5P6BG-CfFcieY2.js","assets/journeyDiagram-EWQZEKCU-DY8T6eAg.js","assets/timeline-definition-MYPXXCX6-EqEi9qBE.js","assets/mindmap-definition-6CBA2TL7-BMdzYvxF.js","assets/cytoscape.esm-Copgxxlq.js","assets/kanban-definition-ZSS6B67P-CNUKi9dE.js","assets/sankeyDiagram-4UZDY2LN-14VllK8v.js","assets/diagram-5UYTHUR4-C11j7Pfm.js","assets/diagram-ZTM2IBQH--PZgpt5z.js","assets/blockDiagram-6J76NXCF-DZnJsYbC.js","assets/architectureDiagram-SUXI7LT5-Dog-MiLd.js","assets/diagram-VMROVX33-s4x0_S_J.js"])))=>i.map(i=>d[i]);
var iL=Object.defineProperty;var aL=(t,e,r)=>e in t?iL(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var jt=(t,e,r)=>aL(t,typeof e!="symbol"?e+"":e,r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var Yo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _l(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ev={exports:{}},uh={},Lv={exports:{}},Et={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Tl=Symbol.for("react.element"),sL=Symbol.for("react.portal"),oL=Symbol.for("react.fragment"),lL=Symbol.for("react.strict_mode"),cL=Symbol.for("react.profiler"),uL=Symbol.for("react.provider"),hL=Symbol.for("react.context"),dL=Symbol.for("react.forward_ref"),fL=Symbol.for("react.suspense"),pL=Symbol.for("react.memo"),gL=Symbol.for("react.lazy"),Ry=Symbol.iterator;function mL(t){return t===null||typeof t!="object"?null:(t=Ry&&t[Ry]||t["@@iterator"],typeof t=="function"?t:null)}var Mv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Av=Object.assign,Bv={};function Fs(t,e,r){this.props=t,this.context=e,this.refs=Bv,this.updater=r||Mv}Fs.prototype.isReactComponent={};Fs.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Fs.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Nv(){}Nv.prototype=Fs.prototype;function mg(t,e,r){this.props=t,this.context=e,this.refs=Bv,this.updater=r||Mv}var yg=mg.prototype=new Nv;yg.constructor=mg;Av(yg,Fs.prototype);yg.isPureReactComponent=!0;var Oy=Array.isArray,$v=Object.prototype.hasOwnProperty,xg={current:null},Fv={key:!0,ref:!0,__self:!0,__source:!0};function Pv(t,e,r){var n,i={},a=null,s=null;if(e!=null)for(n in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(a=""+e.key),e)$v.call(e,n)&&!Fv.hasOwnProperty(n)&&(i[n]=e[n]);var o=arguments.length-2;if(o===1)i.children=r;else if(1<o){for(var l=Array(o),c=0;c<o;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(n in o=t.defaultProps,o)i[n]===void 0&&(i[n]=o[n]);return{$$typeof:Tl,type:t,key:a,ref:s,props:i,_owner:xg.current}}function yL(t,e){return{$$typeof:Tl,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function vg(t){return typeof t=="object"&&t!==null&&t.$$typeof===Tl}function xL(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var Dy=/\/+/g;function od(t,e){return typeof t=="object"&&t!==null&&t.key!=null?xL(""+t.key):e.toString(36)}function _c(t,e,r,n,i){var a=typeof t;(a==="undefined"||a==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(a){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case Tl:case sL:s=!0}}if(s)return s=t,i=i(s),t=n===""?"."+od(s,0):n,Oy(i)?(r="",t!=null&&(r=t.replace(Dy,"$&/")+"/"),_c(i,e,r,"",function(c){return c})):i!=null&&(vg(i)&&(i=yL(i,r+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Dy,"$&/")+"/")+t)),e.push(i)),1;if(s=0,n=n===""?".":n+":",Oy(t))for(var o=0;o<t.length;o++){a=t[o];var l=n+od(a,o);s+=_c(a,e,r,l,i)}else if(l=mL(t),typeof l=="function")for(t=l.call(t),o=0;!(a=t.next()).done;)a=a.value,l=n+od(a,o++),s+=_c(a,e,r,l,i);else if(a==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return s}function ql(t,e,r){if(t==null)return t;var n=[],i=0;return _c(t,n,"","",function(a){return e.call(r,a,i++)}),n}function vL(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var tr={current:null},Tc={transition:null},bL={ReactCurrentDispatcher:tr,ReactCurrentBatchConfig:Tc,ReactCurrentOwner:xg};function Iv(){throw Error("act(...) is not supported in production builds of React.")}Et.Children={map:ql,forEach:function(t,e,r){ql(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return ql(t,function(){e++}),e},toArray:function(t){return ql(t,function(e){return e})||[]},only:function(t){if(!vg(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Et.Component=Fs;Et.Fragment=oL;Et.Profiler=cL;Et.PureComponent=mg;Et.StrictMode=lL;Et.Suspense=fL;Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bL;Et.act=Iv;Et.cloneElement=function(t,e,r){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var n=Av({},t.props),i=t.key,a=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(a=e.ref,s=xg.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var o=t.type.defaultProps;for(l in e)$v.call(e,l)&&!Fv.hasOwnProperty(l)&&(n[l]=e[l]===void 0&&o!==void 0?o[l]:e[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){o=Array(l);for(var c=0;c<l;c++)o[c]=arguments[c+2];n.children=o}return{$$typeof:Tl,type:t.type,key:i,ref:a,props:n,_owner:s}};Et.createContext=function(t){return t={$$typeof:hL,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:uL,_context:t},t.Consumer=t};Et.createElement=Pv;Et.createFactory=function(t){var e=Pv.bind(null,t);return e.type=t,e};Et.createRef=function(){return{current:null}};Et.forwardRef=function(t){return{$$typeof:dL,render:t}};Et.isValidElement=vg;Et.lazy=function(t){return{$$typeof:gL,_payload:{_status:-1,_result:t},_init:vL}};Et.memo=function(t,e){return{$$typeof:pL,type:t,compare:e===void 0?null:e}};Et.startTransition=function(t){var e=Tc.transition;Tc.transition={};try{t()}finally{Tc.transition=e}};Et.unstable_act=Iv;Et.useCallback=function(t,e){return tr.current.useCallback(t,e)};Et.useContext=function(t){return tr.current.useContext(t)};Et.useDebugValue=function(){};Et.useDeferredValue=function(t){return tr.current.useDeferredValue(t)};Et.useEffect=function(t,e){return tr.current.useEffect(t,e)};Et.useId=function(){return tr.current.useId()};Et.useImperativeHandle=function(t,e,r){return tr.current.useImperativeHandle(t,e,r)};Et.useInsertionEffect=function(t,e){return tr.current.useInsertionEffect(t,e)};Et.useLayoutEffect=function(t,e){return tr.current.useLayoutEffect(t,e)};Et.useMemo=function(t,e){return tr.current.useMemo(t,e)};Et.useReducer=function(t,e,r){return tr.current.useReducer(t,e,r)};Et.useRef=function(t){return tr.current.useRef(t)};Et.useState=function(t){return tr.current.useState(t)};Et.useSyncExternalStore=function(t,e,r){return tr.current.useSyncExternalStore(t,e,r)};Et.useTransition=function(){return tr.current.useTransition()};Et.version="18.3.1";Lv.exports=Et;var Q=Lv.exports;const Z=_l(Q);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var wL=Q,kL=Symbol.for("react.element"),CL=Symbol.for("react.fragment"),SL=Object.prototype.hasOwnProperty,_L=wL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,TL={key:!0,ref:!0,__self:!0,__source:!0};function Rv(t,e,r){var n,i={},a=null,s=null;r!==void 0&&(a=""+r),e.key!==void 0&&(a=""+e.key),e.ref!==void 0&&(s=e.ref);for(n in e)SL.call(e,n)&&!TL.hasOwnProperty(n)&&(i[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)i[n]===void 0&&(i[n]=e[n]);return{$$typeof:kL,type:t,key:a,ref:s,props:i,_owner:_L.current}}uh.Fragment=CL;uh.jsx=Rv;uh.jsxs=Rv;Ev.exports=uh;var k=Ev.exports,Ov={exports:{}},Ar={},Dv={exports:{}},zv={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(t){function e(L,F){var C=L.length;L.push(F);t:for(;0<C;){var W=C-1>>>1,Y=L[W];if(0<i(Y,F))L[W]=F,L[C]=Y,C=W;else break t}}function r(L){return L.length===0?null:L[0]}function n(L){if(L.length===0)return null;var F=L[0],C=L.pop();if(C!==F){L[0]=C;t:for(var W=0,Y=L.length,E=Y>>>1;W<E;){var et=2*(W+1)-1,nt=L[et],J=et+1,tt=L[J];if(0>i(nt,C))J<Y&&0>i(tt,nt)?(L[W]=tt,L[J]=C,W=J):(L[W]=nt,L[et]=C,W=et);else if(J<Y&&0>i(tt,C))L[W]=tt,L[J]=C,W=J;else break t}}return F}function i(L,F){var C=L.sortIndex-F.sortIndex;return C!==0?C:L.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();t.unstable_now=function(){return s.now()-o}}var l=[],c=[],u=1,h=null,f=3,d=!1,p=!1,g=!1,v=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(L){for(var F=r(c);F!==null;){if(F.callback===null)n(c);else if(F.startTime<=L)n(c),F.sortIndex=F.expirationTime,e(l,F);else break;F=r(c)}}function S(L){if(g=!1,b(L),!p)if(r(l)!==null)p=!0,M(_);else{var F=r(c);F!==null&&D(S,F.startTime-L)}}function _(L,F){p=!1,g&&(g=!1,m(N),N=-1),d=!0;var C=f;try{for(b(F),h=r(l);h!==null&&(!(h.expirationTime>F)||L&&!A());){var W=h.callback;if(typeof W=="function"){h.callback=null,f=h.priorityLevel;var Y=W(h.expirationTime<=F);F=t.unstable_now(),typeof Y=="function"?h.callback=Y:h===r(l)&&n(l),b(F)}else n(l);h=r(l)}if(h!==null)var E=!0;else{var et=r(c);et!==null&&D(S,et.startTime-F),E=!1}return E}finally{h=null,f=C,d=!1}}var w=!1,T=null,N=-1,z=5,I=-1;function A(){return!(t.unstable_now()-I<z)}function R(){if(T!==null){var L=t.unstable_now();I=L;var F=!0;try{F=T(!0,L)}finally{F?j():(w=!1,T=null)}}else w=!1}var j;if(typeof y=="function")j=function(){y(R)};else if(typeof MessageChannel<"u"){var P=new MessageChannel,$=P.port2;P.port1.onmessage=R,j=function(){$.postMessage(null)}}else j=function(){v(R,0)};function M(L){T=L,w||(w=!0,j())}function D(L,F){N=v(function(){L(t.unstable_now())},F)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(L){L.callback=null},t.unstable_continueExecution=function(){p||d||(p=!0,M(_))},t.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"):z=0<L?Math.floor(1e3/L):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(L){switch(f){case 1:case 2:case 3:var F=3;break;default:F=f}var C=f;f=F;try{return L()}finally{f=C}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(L,F){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var C=f;f=L;try{return F()}finally{f=C}},t.unstable_scheduleCallback=function(L,F,C){var W=t.unstable_now();switch(typeof C=="object"&&C!==null?(C=C.delay,C=typeof C=="number"&&0<C?W+C:W):C=W,L){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=C+Y,L={id:u++,callback:F,priorityLevel:L,startTime:C,expirationTime:Y,sortIndex:-1},C>W?(L.sortIndex=C,e(c,L),r(l)===null&&L===r(c)&&(g?(m(N),N=-1):g=!0,D(S,C-W))):(L.sortIndex=Y,e(l,L),p||d||(p=!0,M(_))),L},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(L){var F=f;return function(){var C=f;f=F;try{return L.apply(this,arguments)}finally{f=C}}}})(zv);Dv.exports=zv;var EL=Dv.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var LL=Q,Lr=EL;function U(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var jv=new Set,Go={};function wa(t,e){ys(t,e),ys(t+"Capture",e)}function ys(t,e){for(Go[t]=e,t=0;t<e.length;t++)jv.add(e[t])}var Qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ff=Object.prototype.hasOwnProperty,ML=/^[: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]*$/,zy={},jy={};function AL(t){return ff.call(jy,t)?!0:ff.call(zy,t)?!1:ML.test(t)?jy[t]=!0:(zy[t]=!0,!1)}function BL(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function NL(t,e,r,n){if(e===null||typeof e>"u"||BL(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function er(t,e,r,n,i,a,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=s}var Ee={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ee[t]=new er(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ee[e]=new er(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ee[t]=new er(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ee[t]=new er(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Ee[t]=new er(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Ee[t]=new er(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Ee[t]=new er(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Ee[t]=new er(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Ee[t]=new er(t,5,!1,t.toLowerCase(),null,!1,!1)});var bg=/[\-:]([a-z])/g;function wg(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(bg,wg);Ee[e]=new er(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(bg,wg);Ee[e]=new er(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(bg,wg);Ee[e]=new er(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Ee[t]=new er(t,1,!1,t.toLowerCase(),null,!1,!1)});Ee.xlinkHref=new er("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Ee[t]=new er(t,1,!1,t.toLowerCase(),null,!0,!0)});function kg(t,e,r,n){var i=Ee.hasOwnProperty(e)?Ee[e]:null;(i!==null?i.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(NL(e,r,i,n)&&(r=null),n||i===null?AL(e)&&(r===null?t.removeAttribute(e):t.setAttribute(e,""+r)):i.mustUseProperty?t[i.propertyName]=r===null?i.type===3?!1:"":r:(e=i.attributeName,n=i.attributeNamespace,r===null?t.removeAttribute(e):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?t.setAttributeNS(n,e,r):t.setAttribute(e,r))))}var ri=LL.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ul=Symbol.for("react.element"),Oa=Symbol.for("react.portal"),Da=Symbol.for("react.fragment"),Cg=Symbol.for("react.strict_mode"),pf=Symbol.for("react.profiler"),Hv=Symbol.for("react.provider"),Wv=Symbol.for("react.context"),Sg=Symbol.for("react.forward_ref"),gf=Symbol.for("react.suspense"),mf=Symbol.for("react.suspense_list"),_g=Symbol.for("react.memo"),fi=Symbol.for("react.lazy"),qv=Symbol.for("react.offscreen"),Hy=Symbol.iterator;function Ys(t){return t===null||typeof t!="object"?null:(t=Hy&&t[Hy]||t["@@iterator"],typeof t=="function"?t:null)}var ne=Object.assign,ld;function xo(t){if(ld===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);ld=e&&e[1]||""}return`
`+ld+t}var cd=!1;function ud(t,e){if(!t||cd)return"";cd=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(c){var n=c}Reflect.construct(t,[],e)}else{try{e.call()}catch(c){n=c}t.call(e.prototype)}else{try{throw Error()}catch(c){n=c}t()}}catch(c){if(c&&n&&typeof c.stack=="string"){for(var i=c.stack.split(`
`),a=n.stack.split(`
`),s=i.length-1,o=a.length-1;1<=s&&0<=o&&i[s]!==a[o];)o--;for(;1<=s&&0<=o;s--,o--)if(i[s]!==a[o]){if(s!==1||o!==1)do if(s--,o--,0>o||i[s]!==a[o]){var l=`
`+i[s].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=s&&0<=o);break}}}finally{cd=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?xo(t):""}function $L(t){switch(t.tag){case 5:return xo(t.type);case 16:return xo("Lazy");case 13:return xo("Suspense");case 19:return xo("SuspenseList");case 0:case 2:case 15:return t=ud(t.type,!1),t;case 11:return t=ud(t.type.render,!1),t;case 1:return t=ud(t.type,!0),t;default:return""}}function yf(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Da:return"Fragment";case Oa:return"Portal";case pf:return"Profiler";case Cg:return"StrictMode";case gf:return"Suspense";case mf:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Wv:return(t.displayName||"Context")+".Consumer";case Hv:return(t._context.displayName||"Context")+".Provider";case Sg:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case _g:return e=t.displayName||null,e!==null?e:yf(t.type)||"Memo";case fi:e=t._payload,t=t._init;try{return yf(t(e))}catch{}}return null}function FL(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return yf(e);case 8:return e===Cg?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Ai(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Uv(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function PL(t){var e=Uv(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,a.call(this,s)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Vl(t){t._valueTracker||(t._valueTracker=PL(t))}function Vv(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=Uv(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function tu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function xf(t,e){var r=e.checked;return ne({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function Wy(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Ai(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function Yv(t,e){e=e.checked,e!=null&&kg(t,"checked",e,!1)}function vf(t,e){Yv(t,e);var r=Ai(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?bf(t,e.type,r):e.hasOwnProperty("defaultValue")&&bf(t,e.type,Ai(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function qy(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function bf(t,e,r){(e!=="number"||tu(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var vo=Array.isArray;function Ka(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i<r.length;i++)e["$"+r[i]]=!0;for(r=0;r<t.length;r++)i=e.hasOwnProperty("$"+t[r].value),t[r].selected!==i&&(t[r].selected=i),i&&n&&(t[r].defaultSelected=!0)}else{for(r=""+Ai(r),e=null,i=0;i<t.length;i++){if(t[i].value===r){t[i].selected=!0,n&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function wf(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(U(91));return ne({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Uy(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(U(92));if(vo(r)){if(1<r.length)throw Error(U(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:Ai(r)}}function Gv(t,e){var r=Ai(e.value),n=Ai(e.defaultValue);r!=null&&(r=""+r,r!==t.value&&(t.value=r),e.defaultValue==null&&t.defaultValue!==r&&(t.defaultValue=r)),n!=null&&(t.defaultValue=""+n)}function Vy(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function Xv(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function kf(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Xv(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Yl,Qv=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,r,n,i){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Yl=Yl||document.createElement("div"),Yl.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Yl.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Xo(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Mo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},IL=["Webkit","ms","Moz","O"];Object.keys(Mo).forEach(function(t){IL.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Mo[e]=Mo[t]})});function Kv(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Mo.hasOwnProperty(t)&&Mo[t]?(""+e).trim():e+"px"}function Zv(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Kv(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var RL=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Cf(t,e){if(e){if(RL[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(U(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(U(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(U(61))}if(e.style!=null&&typeof e.style!="object")throw Error(U(62))}}function Sf(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 _f=null;function Tg(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Tf=null,Za=null,Ja=null;function Yy(t){if(t=Ml(t)){if(typeof Tf!="function")throw Error(U(280));var e=t.stateNode;e&&(e=gh(e),Tf(t.stateNode,t.type,e))}}function Jv(t){Za?Ja?Ja.push(t):Ja=[t]:Za=t}function tb(){if(Za){var t=Za,e=Ja;if(Ja=Za=null,Yy(t),e)for(t=0;t<e.length;t++)Yy(e[t])}}function eb(t,e){return t(e)}function rb(){}var hd=!1;function nb(t,e,r){if(hd)return t(e,r);hd=!0;try{return eb(t,e,r)}finally{hd=!1,(Za!==null||Ja!==null)&&(rb(),tb())}}function Qo(t,e){var r=t.stateNode;if(r===null)return null;var n=gh(r);if(n===null)return null;r=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(U(231,e,typeof r));return r}var Ef=!1;if(Qn)try{var Gs={};Object.defineProperty(Gs,"passive",{get:function(){Ef=!0}}),window.addEventListener("test",Gs,Gs),window.removeEventListener("test",Gs,Gs)}catch{Ef=!1}function OL(t,e,r,n,i,a,s,o,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(r,c)}catch(u){this.onError(u)}}var Ao=!1,eu=null,ru=!1,Lf=null,DL={onError:function(t){Ao=!0,eu=t}};function zL(t,e,r,n,i,a,s,o,l){Ao=!1,eu=null,OL.apply(DL,arguments)}function jL(t,e,r,n,i,a,s,o,l){if(zL.apply(this,arguments),Ao){if(Ao){var c=eu;Ao=!1,eu=null}else throw Error(U(198));ru||(ru=!0,Lf=c)}}function ka(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function ib(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Gy(t){if(ka(t)!==t)throw Error(U(188))}function HL(t){var e=t.alternate;if(!e){if(e=ka(t),e===null)throw Error(U(188));return e!==t?null:t}for(var r=t,n=e;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return Gy(i),t;if(a===n)return Gy(i),e;a=a.sibling}throw Error(U(188))}if(r.return!==n.return)r=i,n=a;else{for(var s=!1,o=i.child;o;){if(o===r){s=!0,r=i,n=a;break}if(o===n){s=!0,n=i,r=a;break}o=o.sibling}if(!s){for(o=a.child;o;){if(o===r){s=!0,r=a,n=i;break}if(o===n){s=!0,n=a,r=i;break}o=o.sibling}if(!s)throw Error(U(189))}}if(r.alternate!==n)throw Error(U(190))}if(r.tag!==3)throw Error(U(188));return r.stateNode.current===r?t:e}function ab(t){return t=HL(t),t!==null?sb(t):null}function sb(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=sb(t);if(e!==null)return e;t=t.sibling}return null}var ob=Lr.unstable_scheduleCallback,Xy=Lr.unstable_cancelCallback,WL=Lr.unstable_shouldYield,qL=Lr.unstable_requestPaint,oe=Lr.unstable_now,UL=Lr.unstable_getCurrentPriorityLevel,Eg=Lr.unstable_ImmediatePriority,lb=Lr.unstable_UserBlockingPriority,nu=Lr.unstable_NormalPriority,VL=Lr.unstable_LowPriority,cb=Lr.unstable_IdlePriority,hh=null,wn=null;function YL(t){if(wn&&typeof wn.onCommitFiberRoot=="function")try{wn.onCommitFiberRoot(hh,t,void 0,(t.current.flags&128)===128)}catch{}}var Jr=Math.clz32?Math.clz32:QL,GL=Math.log,XL=Math.LN2;function QL(t){return t>>>=0,t===0?32:31-(GL(t)/XL|0)|0}var Gl=64,Xl=4194304;function bo(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function iu(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,i=t.suspendedLanes,a=t.pingedLanes,s=r&268435455;if(s!==0){var o=s&~i;o!==0?n=bo(o):(a&=s,a!==0&&(n=bo(a)))}else s=r&~i,s!==0?n=bo(s):a!==0&&(n=bo(a));if(n===0)return 0;if(e!==0&&e!==n&&!(e&i)&&(i=n&-n,a=e&-e,i>=a||i===16&&(a&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0<e;)r=31-Jr(e),i=1<<r,n|=t[r],e&=~i;return n}function KL(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ZL(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,i=t.expirationTimes,a=t.pendingLanes;0<a;){var s=31-Jr(a),o=1<<s,l=i[s];l===-1?(!(o&r)||o&n)&&(i[s]=KL(o,e)):l<=e&&(t.expiredLanes|=o),a&=~o}}function Mf(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function ub(){var t=Gl;return Gl<<=1,!(Gl&4194240)&&(Gl=64),t}function dd(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function El(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Jr(e),t[e]=r}function JL(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0<r;){var i=31-Jr(r),a=1<<i;e[i]=0,n[i]=-1,t[i]=-1,r&=~a}}function Lg(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-Jr(r),i=1<<n;i&e|t[n]&e&&(t[n]|=e),r&=~i}}var Dt=0;function hb(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var db,Mg,fb,pb,gb,Af=!1,Ql=[],wi=null,ki=null,Ci=null,Ko=new Map,Zo=new Map,mi=[],tM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Qy(t,e){switch(t){case"focusin":case"focusout":wi=null;break;case"dragenter":case"dragleave":ki=null;break;case"mouseover":case"mouseout":Ci=null;break;case"pointerover":case"pointerout":Ko.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zo.delete(e.pointerId)}}function Xs(t,e,r,n,i,a){return t===null||t.nativeEvent!==a?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},e!==null&&(e=Ml(e),e!==null&&Mg(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function eM(t,e,r,n,i){switch(e){case"focusin":return wi=Xs(wi,t,e,r,n,i),!0;case"dragenter":return ki=Xs(ki,t,e,r,n,i),!0;case"mouseover":return Ci=Xs(Ci,t,e,r,n,i),!0;case"pointerover":var a=i.pointerId;return Ko.set(a,Xs(Ko.get(a)||null,t,e,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,Zo.set(a,Xs(Zo.get(a)||null,t,e,r,n,i)),!0}return!1}function mb(t){var e=Ki(t.target);if(e!==null){var r=ka(e);if(r!==null){if(e=r.tag,e===13){if(e=ib(r),e!==null){t.blockedOn=e,gb(t.priority,function(){fb(r)});return}}else if(e===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ec(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=Bf(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);_f=n,r.target.dispatchEvent(n),_f=null}else return e=Ml(r),e!==null&&Mg(e),t.blockedOn=r,!1;e.shift()}return!0}function Ky(t,e,r){Ec(t)&&r.delete(e)}function rM(){Af=!1,wi!==null&&Ec(wi)&&(wi=null),ki!==null&&Ec(ki)&&(ki=null),Ci!==null&&Ec(Ci)&&(Ci=null),Ko.forEach(Ky),Zo.forEach(Ky)}function Qs(t,e){t.blockedOn===e&&(t.blockedOn=null,Af||(Af=!0,Lr.unstable_scheduleCallback(Lr.unstable_NormalPriority,rM)))}function Jo(t){function e(i){return Qs(i,t)}if(0<Ql.length){Qs(Ql[0],t);for(var r=1;r<Ql.length;r++){var n=Ql[r];n.blockedOn===t&&(n.blockedOn=null)}}for(wi!==null&&Qs(wi,t),ki!==null&&Qs(ki,t),Ci!==null&&Qs(Ci,t),Ko.forEach(e),Zo.forEach(e),r=0;r<mi.length;r++)n=mi[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<mi.length&&(r=mi[0],r.blockedOn===null);)mb(r),r.blockedOn===null&&mi.shift()}var ts=ri.ReactCurrentBatchConfig,au=!0;function nM(t,e,r,n){var i=Dt,a=ts.transition;ts.transition=null;try{Dt=1,Ag(t,e,r,n)}finally{Dt=i,ts.transition=a}}function iM(t,e,r,n){var i=Dt,a=ts.transition;ts.transition=null;try{Dt=4,Ag(t,e,r,n)}finally{Dt=i,ts.transition=a}}function Ag(t,e,r,n){if(au){var i=Bf(t,e,r,n);if(i===null)kd(t,e,n,su,r),Qy(t,n);else if(eM(i,t,e,r,n))n.stopPropagation();else if(Qy(t,n),e&4&&-1<tM.indexOf(t)){for(;i!==null;){var a=Ml(i);if(a!==null&&db(a),a=Bf(t,e,r,n),a===null&&kd(t,e,n,su,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else kd(t,e,n,null,r)}}var su=null;function Bf(t,e,r,n){if(su=null,t=Tg(n),t=Ki(t),t!==null)if(e=ka(t),e===null)t=null;else if(r=e.tag,r===13){if(t=ib(e),t!==null)return t;t=null}else if(r===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return su=t,null}function yb(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(UL()){case Eg:return 1;case lb:return 4;case nu:case VL:return 16;case cb:return 536870912;default:return 16}default:return 16}}var xi=null,Bg=null,Lc=null;function xb(){if(Lc)return Lc;var t,e=Bg,r=e.length,n,i="value"in xi?xi.value:xi.textContent,a=i.length;for(t=0;t<r&&e[t]===i[t];t++);var s=r-t;for(n=1;n<=s&&e[r-n]===i[a-n];n++);return Lc=i.slice(t,1<n?1-n:void 0)}function Mc(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Kl(){return!0}function Zy(){return!1}function Br(t){function e(r,n,i,a,s){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var o in t)t.hasOwnProperty(o)&&(r=t[o],this[o]=r?r(a):a[o]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Kl:Zy,this.isPropagationStopped=Zy,this}return ne(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Kl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Kl)},persist:function(){},isPersistent:Kl}),e}var Ps={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ng=Br(Ps),Ll=ne({},Ps,{view:0,detail:0}),aM=Br(Ll),fd,pd,Ks,dh=ne({},Ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$g,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ks&&(Ks&&t.type==="mousemove"?(fd=t.screenX-Ks.screenX,pd=t.screenY-Ks.screenY):pd=fd=0,Ks=t),fd)},movementY:function(t){return"movementY"in t?t.movementY:pd}}),Jy=Br(dh),sM=ne({},dh,{dataTransfer:0}),oM=Br(sM),lM=ne({},Ll,{relatedTarget:0}),gd=Br(lM),cM=ne({},Ps,{animationName:0,elapsedTime:0,pseudoElement:0}),uM=Br(cM),hM=ne({},Ps,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),dM=Br(hM),fM=ne({},Ps,{data:0}),t0=Br(fM),pM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gM={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"},mM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yM(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=mM[t])?!!e[t]:!1}function $g(){return yM}var xM=ne({},Ll,{key:function(t){if(t.key){var e=pM[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Mc(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?gM[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$g,charCode:function(t){return t.type==="keypress"?Mc(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Mc(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),vM=Br(xM),bM=ne({},dh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),e0=Br(bM),wM=ne({},Ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$g}),kM=Br(wM),CM=ne({},Ps,{propertyName:0,elapsedTime:0,pseudoElement:0}),SM=Br(CM),_M=ne({},dh,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),TM=Br(_M),EM=[9,13,27,32],Fg=Qn&&"CompositionEvent"in window,Bo=null;Qn&&"documentMode"in document&&(Bo=document.documentMode);var LM=Qn&&"TextEvent"in window&&!Bo,vb=Qn&&(!Fg||Bo&&8<Bo&&11>=Bo),r0=" ",n0=!1;function bb(t,e){switch(t){case"keyup":return EM.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wb(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var za=!1;function MM(t,e){switch(t){case"compositionend":return wb(e);case"keypress":return e.which!==32?null:(n0=!0,r0);case"textInput":return t=e.data,t===r0&&n0?null:t;default:return null}}function AM(t,e){if(za)return t==="compositionend"||!Fg&&bb(t,e)?(t=xb(),Lc=Bg=xi=null,za=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return vb&&e.locale!=="ko"?null:e.data;default:return null}}var BM={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 i0(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!BM[t.type]:e==="textarea"}function kb(t,e,r,n){Jv(n),e=ou(e,"onChange"),0<e.length&&(r=new Ng("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var No=null,tl=null;function NM(t){$b(t,0)}function fh(t){var e=Wa(t);if(Vv(e))return t}function $M(t,e){if(t==="change")return e}var Cb=!1;if(Qn){var md;if(Qn){var yd="oninput"in document;if(!yd){var a0=document.createElement("div");a0.setAttribute("oninput","return;"),yd=typeof a0.oninput=="function"}md=yd}else md=!1;Cb=md&&(!document.documentMode||9<document.documentMode)}function s0(){No&&(No.detachEvent("onpropertychange",Sb),tl=No=null)}function Sb(t){if(t.propertyName==="value"&&fh(tl)){var e=[];kb(e,tl,t,Tg(t)),nb(NM,e)}}function FM(t,e,r){t==="focusin"?(s0(),No=e,tl=r,No.attachEvent("onpropertychange",Sb)):t==="focusout"&&s0()}function PM(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return fh(tl)}function IM(t,e){if(t==="click")return fh(e)}function RM(t,e){if(t==="input"||t==="change")return fh(e)}function OM(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var nn=typeof Object.is=="function"?Object.is:OM;function el(t,e){if(nn(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!ff.call(e,i)||!nn(t[i],e[i]))return!1}return!0}function o0(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function l0(t,e){var r=o0(t);t=0;for(var n;r;){if(r.nodeType===3){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=o0(r)}}function _b(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?_b(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Tb(){for(var t=window,e=tu();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=tu(t.document)}return e}function Pg(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function DM(t){var e=Tb(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&_b(r.ownerDocument.documentElement,r)){if(n!==null&&Pg(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!t.extend&&a>n&&(i=n,n=a,a=i),i=l0(r,a);var s=l0(r,n);i&&s&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==s.node||t.focusOffset!==s.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),a>n?(t.addRange(e),t.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<e.length;r++)t=e[r],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var zM=Qn&&"documentMode"in document&&11>=document.documentMode,ja=null,Nf=null,$o=null,$f=!1;function c0(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;$f||ja==null||ja!==tu(n)||(n=ja,"selectionStart"in n&&Pg(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),$o&&el($o,n)||($o=n,n=ou(Nf,"onSelect"),0<n.length&&(e=new Ng("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=ja)))}function Zl(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var Ha={animationend:Zl("Animation","AnimationEnd"),animationiteration:Zl("Animation","AnimationIteration"),animationstart:Zl("Animation","AnimationStart"),transitionend:Zl("Transition","TransitionEnd")},xd={},Eb={};Qn&&(Eb=document.createElement("div").style,"AnimationEvent"in window||(delete Ha.animationend.animation,delete Ha.animationiteration.animation,delete Ha.animationstart.animation),"TransitionEvent"in window||delete Ha.transitionend.transition);function ph(t){if(xd[t])return xd[t];if(!Ha[t])return t;var e=Ha[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in Eb)return xd[t]=e[r];return t}var Lb=ph("animationend"),Mb=ph("animationiteration"),Ab=ph("animationstart"),Bb=ph("transitionend"),Nb=new Map,u0="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ii(t,e){Nb.set(t,e),wa(e,[t])}for(var vd=0;vd<u0.length;vd++){var bd=u0[vd],jM=bd.toLowerCase(),HM=bd[0].toUpperCase()+bd.slice(1);Ii(jM,"on"+HM)}Ii(Lb,"onAnimationEnd");Ii(Mb,"onAnimationIteration");Ii(Ab,"onAnimationStart");Ii("dblclick","onDoubleClick");Ii("focusin","onFocus");Ii("focusout","onBlur");Ii(Bb,"onTransitionEnd");ys("onMouseEnter",["mouseout","mouseover"]);ys("onMouseLeave",["mouseout","mouseover"]);ys("onPointerEnter",["pointerout","pointerover"]);ys("onPointerLeave",["pointerout","pointerover"]);wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));wa("onBeforeInput",["compositionend","keypress","textInput","paste"]);wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wo="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(" "),WM=new Set("cancel close invalid load scroll toggle".split(" ").concat(wo));function h0(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,jL(n,e,void 0,t),t.currentTarget=null}function $b(t,e){e=(e&4)!==0;for(var r=0;r<t.length;r++){var n=t[r],i=n.event;n=n.listeners;t:{var a=void 0;if(e)for(var s=n.length-1;0<=s;s--){var o=n[s],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==a&&i.isPropagationStopped())break t;h0(i,o,c),a=l}else for(s=0;s<n.length;s++){if(o=n[s],l=o.instance,c=o.currentTarget,o=o.listener,l!==a&&i.isPropagationStopped())break t;h0(i,o,c),a=l}}}if(ru)throw t=Lf,ru=!1,Lf=null,t}function Gt(t,e){var r=e[Of];r===void 0&&(r=e[Of]=new Set);var n=t+"__bubble";r.has(n)||(Fb(e,t,2,!1),r.add(n))}function wd(t,e,r){var n=0;e&&(n|=4),Fb(r,t,n,e)}var Jl="_reactListening"+Math.random().toString(36).slice(2);function rl(t){if(!t[Jl]){t[Jl]=!0,jv.forEach(function(r){r!=="selectionchange"&&(WM.has(r)||wd(r,!1,t),wd(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Jl]||(e[Jl]=!0,wd("selectionchange",!1,e))}}function Fb(t,e,r,n){switch(yb(e)){case 1:var i=nM;break;case 4:i=iM;break;default:i=Ag}r=i.bind(null,e,r,t),i=void 0,!Ef||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),n?i!==void 0?t.addEventListener(e,r,{capture:!0,passive:i}):t.addEventListener(e,r,!0):i!==void 0?t.addEventListener(e,r,{passive:i}):t.addEventListener(e,r,!1)}function kd(t,e,r,n,i){var a=n;if(!(e&1)&&!(e&2)&&n!==null)t:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var o=n.stateNode.containerInfo;if(o===i||o.nodeType===8&&o.parentNode===i)break;if(s===4)for(s=n.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;o!==null;){if(s=Ki(o),s===null)return;if(l=s.tag,l===5||l===6){n=a=s;continue t}o=o.parentNode}}n=n.return}nb(function(){var c=a,u=Tg(r),h=[];t:{var f=Nb.get(t);if(f!==void 0){var d=Ng,p=t;switch(t){case"keypress":if(Mc(r)===0)break t;case"keydown":case"keyup":d=vM;break;case"focusin":p="focus",d=gd;break;case"focusout":p="blur",d=gd;break;case"beforeblur":case"afterblur":d=gd;break;case"click":if(r.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=Jy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=oM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=kM;break;case Lb:case Mb:case Ab:d=uM;break;case Bb:d=SM;break;case"scroll":d=aM;break;case"wheel":d=TM;break;case"copy":case"cut":case"paste":d=dM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=e0}var g=(e&4)!==0,v=!g&&t==="scroll",m=g?f!==null?f+"Capture":null:f;g=[];for(var y=c,b;y!==null;){b=y;var S=b.stateNode;if(b.tag===5&&S!==null&&(b=S,m!==null&&(S=Qo(y,m),S!=null&&g.push(nl(y,S,b)))),v)break;y=y.return}0<g.length&&(f=new d(f,p,null,r,u),h.push({event:f,listeners:g}))}}if(!(e&7)){t:{if(f=t==="mouseover"||t==="pointerover",d=t==="mouseout"||t==="pointerout",f&&r!==_f&&(p=r.relatedTarget||r.fromElement)&&(Ki(p)||p[Kn]))break t;if((d||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,d?(p=r.relatedTarget||r.toElement,d=c,p=p?Ki(p):null,p!==null&&(v=ka(p),p!==v||p.tag!==5&&p.tag!==6)&&(p=null)):(d=null,p=c),d!==p)){if(g=Jy,S="onMouseLeave",m="onMouseEnter",y="mouse",(t==="pointerout"||t==="pointerover")&&(g=e0,S="onPointerLeave",m="onPointerEnter",y="pointer"),v=d==null?f:Wa(d),b=p==null?f:Wa(p),f=new g(S,y+"leave",d,r,u),f.target=v,f.relatedTarget=b,S=null,Ki(u)===c&&(g=new g(m,y+"enter",p,r,u),g.target=b,g.relatedTarget=v,S=g),v=S,d&&p)e:{for(g=d,m=p,y=0,b=g;b;b=Ba(b))y++;for(b=0,S=m;S;S=Ba(S))b++;for(;0<y-b;)g=Ba(g),y--;for(;0<b-y;)m=Ba(m),b--;for(;y--;){if(g===m||m!==null&&g===m.alternate)break e;g=Ba(g),m=Ba(m)}g=null}else g=null;d!==null&&d0(h,f,d,g,!1),p!==null&&v!==null&&d0(h,v,p,g,!0)}}t:{if(f=c?Wa(c):window,d=f.nodeName&&f.nodeName.toLowerCase(),d==="select"||d==="input"&&f.type==="file")var _=$M;else if(i0(f))if(Cb)_=RM;else{_=PM;var w=FM}else(d=f.nodeName)&&d.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(_=IM);if(_&&(_=_(t,c))){kb(h,_,r,u);break t}w&&w(t,f,c),t==="focusout"&&(w=f._wrapperState)&&w.controlled&&f.type==="number"&&bf(f,"number",f.value)}switch(w=c?Wa(c):window,t){case"focusin":(i0(w)||w.contentEditable==="true")&&(ja=w,Nf=c,$o=null);break;case"focusout":$o=Nf=ja=null;break;case"mousedown":$f=!0;break;case"contextmenu":case"mouseup":case"dragend":$f=!1,c0(h,r,u);break;case"selectionchange":if(zM)break;case"keydown":case"keyup":c0(h,r,u)}var T;if(Fg)t:{switch(t){case"compositionstart":var N="onCompositionStart";break t;case"compositionend":N="onCompositionEnd";break t;case"compositionupdate":N="onCompositionUpdate";break t}N=void 0}else za?bb(t,r)&&(N="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(N="onCompositionStart");N&&(vb&&r.locale!=="ko"&&(za||N!=="onCompositionStart"?N==="onCompositionEnd"&&za&&(T=xb()):(xi=u,Bg="value"in xi?xi.value:xi.textContent,za=!0)),w=ou(c,N),0<w.length&&(N=new t0(N,t,null,r,u),h.push({event:N,listeners:w}),T?N.data=T:(T=wb(r),T!==null&&(N.data=T)))),(T=LM?MM(t,r):AM(t,r))&&(c=ou(c,"onBeforeInput"),0<c.length&&(u=new t0("onBeforeInput","beforeinput",null,r,u),h.push({event:u,listeners:c}),u.data=T))}$b(h,e)})}function nl(t,e,r){return{instance:t,listener:e,currentTarget:r}}function ou(t,e){for(var r=e+"Capture",n=[];t!==null;){var i=t,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Qo(t,r),a!=null&&n.unshift(nl(t,a,i)),a=Qo(t,e),a!=null&&n.push(nl(t,a,i))),t=t.return}return n}function Ba(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function d0(t,e,r,n,i){for(var a=e._reactName,s=[];r!==null&&r!==n;){var o=r,l=o.alternate,c=o.stateNode;if(l!==null&&l===n)break;o.tag===5&&c!==null&&(o=c,i?(l=Qo(r,a),l!=null&&s.unshift(nl(r,l,o))):i||(l=Qo(r,a),l!=null&&s.push(nl(r,l,o)))),r=r.return}s.length!==0&&t.push({event:e,listeners:s})}var qM=/\r\n?/g,UM=/\u0000|\uFFFD/g;function f0(t){return(typeof t=="string"?t:""+t).replace(qM,`
`).replace(UM,"")}function tc(t,e,r){if(e=f0(e),f0(t)!==e&&r)throw Error(U(425))}function lu(){}var Ff=null,Pf=null;function If(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Rf=typeof setTimeout=="function"?setTimeout:void 0,VM=typeof clearTimeout=="function"?clearTimeout:void 0,p0=typeof Promise=="function"?Promise:void 0,YM=typeof queueMicrotask=="function"?queueMicrotask:typeof p0<"u"?function(t){return p0.resolve(null).then(t).catch(GM)}:Rf;function GM(t){setTimeout(function(){throw t})}function Cd(t,e){var r=e,n=0;do{var i=r.nextSibling;if(t.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){t.removeChild(i),Jo(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Jo(e)}function Si(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function g0(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}var Is=Math.random().toString(36).slice(2),xn="__reactFiber$"+Is,il="__reactProps$"+Is,Kn="__reactContainer$"+Is,Of="__reactEvents$"+Is,XM="__reactListeners$"+Is,QM="__reactHandles$"+Is;function Ki(t){var e=t[xn];if(e)return e;for(var r=t.parentNode;r;){if(e=r[Kn]||r[xn]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=g0(t);t!==null;){if(r=t[xn])return r;t=g0(t)}return e}t=r,r=t.parentNode}return null}function Ml(t){return t=t[xn]||t[Kn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Wa(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(U(33))}function gh(t){return t[il]||null}var Df=[],qa=-1;function Ri(t){return{current:t}}function Qt(t){0>qa||(t.current=Df[qa],Df[qa]=null,qa--)}function Ut(t,e){qa++,Df[qa]=t.current,t.current=e}var Bi={},Re=Ri(Bi),dr=Ri(!1),ca=Bi;function xs(t,e){var r=t.type.contextTypes;if(!r)return Bi;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=e[a];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function fr(t){return t=t.childContextTypes,t!=null}function cu(){Qt(dr),Qt(Re)}function m0(t,e,r){if(Re.current!==Bi)throw Error(U(168));Ut(Re,e),Ut(dr,r)}function Pb(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(U(108,FL(t)||"Unknown",i));return ne({},r,n)}function uu(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Bi,ca=Re.current,Ut(Re,t),Ut(dr,dr.current),!0}function y0(t,e,r){var n=t.stateNode;if(!n)throw Error(U(169));r?(t=Pb(t,e,ca),n.__reactInternalMemoizedMergedChildContext=t,Qt(dr),Qt(Re),Ut(Re,t)):Qt(dr),Ut(dr,r)}var Hn=null,mh=!1,Sd=!1;function Ib(t){Hn===null?Hn=[t]:Hn.push(t)}function KM(t){mh=!0,Ib(t)}function Oi(){if(!Sd&&Hn!==null){Sd=!0;var t=0,e=Dt;try{var r=Hn;for(Dt=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}Hn=null,mh=!1}catch(i){throw Hn!==null&&(Hn=Hn.slice(t+1)),ob(Eg,Oi),i}finally{Dt=e,Sd=!1}}return null}var Ua=[],Va=0,hu=null,du=0,Pr=[],Ir=0,ua=null,Wn=1,qn="";function Ui(t,e){Ua[Va++]=du,Ua[Va++]=hu,hu=t,du=e}function Rb(t,e,r){Pr[Ir++]=Wn,Pr[Ir++]=qn,Pr[Ir++]=ua,ua=t;var n=Wn;t=qn;var i=32-Jr(n)-1;n&=~(1<<i),r+=1;var a=32-Jr(e)+i;if(30<a){var s=i-i%5;a=(n&(1<<s)-1).toString(32),n>>=s,i-=s,Wn=1<<32-Jr(e)+i|r<<i|n,qn=a+t}else Wn=1<<a|r<<i|n,qn=t}function Ig(t){t.return!==null&&(Ui(t,1),Rb(t,1,0))}function Rg(t){for(;t===hu;)hu=Ua[--Va],Ua[Va]=null,du=Ua[--Va],Ua[Va]=null;for(;t===ua;)ua=Pr[--Ir],Pr[Ir]=null,qn=Pr[--Ir],Pr[Ir]=null,Wn=Pr[--Ir],Pr[Ir]=null}var Tr=null,Sr=null,te=!1,Kr=null;function Ob(t,e){var r=Or(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,e=t.deletions,e===null?(t.deletions=[r],t.flags|=16):e.push(r)}function x0(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Tr=t,Sr=Si(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Tr=t,Sr=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=ua!==null?{id:Wn,overflow:qn}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=Or(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,Tr=t,Sr=null,!0):!1;default:return!1}}function zf(t){return(t.mode&1)!==0&&(t.flags&128)===0}function jf(t){if(te){var e=Sr;if(e){var r=e;if(!x0(t,e)){if(zf(t))throw Error(U(418));e=Si(r.nextSibling);var n=Tr;e&&x0(t,e)?Ob(n,r):(t.flags=t.flags&-4097|2,te=!1,Tr=t)}}else{if(zf(t))throw Error(U(418));t.flags=t.flags&-4097|2,te=!1,Tr=t}}}function v0(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Tr=t}function ec(t){if(t!==Tr)return!1;if(!te)return v0(t),te=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!If(t.type,t.memoizedProps)),e&&(e=Sr)){if(zf(t))throw Db(),Error(U(418));for(;e;)Ob(t,e),e=Si(e.nextSibling)}if(v0(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(U(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){Sr=Si(t.nextSibling);break t}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}Sr=null}}else Sr=Tr?Si(t.stateNode.nextSibling):null;return!0}function Db(){for(var t=Sr;t;)t=Si(t.nextSibling)}function vs(){Sr=Tr=null,te=!1}function Og(t){Kr===null?Kr=[t]:Kr.push(t)}var ZM=ri.ReactCurrentBatchConfig;function Zs(t,e,r){if(t=r.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(U(309));var n=r.stateNode}if(!n)throw Error(U(147,t));var i=n,a=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===a?e.ref:(e=function(s){var o=i.refs;s===null?delete o[a]:o[a]=s},e._stringRef=a,e)}if(typeof t!="string")throw Error(U(284));if(!r._owner)throw Error(U(290,t))}return t}function rc(t,e){throw t=Object.prototype.toString.call(e),Error(U(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function b0(t){var e=t._init;return e(t._payload)}function zb(t){function e(m,y){if(t){var b=m.deletions;b===null?(m.deletions=[y],m.flags|=16):b.push(y)}}function r(m,y){if(!t)return null;for(;y!==null;)e(m,y),y=y.sibling;return null}function n(m,y){for(m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function i(m,y){return m=Li(m,y),m.index=0,m.sibling=null,m}function a(m,y,b){return m.index=b,t?(b=m.alternate,b!==null?(b=b.index,b<y?(m.flags|=2,y):b):(m.flags|=2,y)):(m.flags|=1048576,y)}function s(m){return t&&m.alternate===null&&(m.flags|=2),m}function o(m,y,b,S){return y===null||y.tag!==6?(y=Bd(b,m.mode,S),y.return=m,y):(y=i(y,b),y.return=m,y)}function l(m,y,b,S){var _=b.type;return _===Da?u(m,y,b.props.children,S,b.key):y!==null&&(y.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===fi&&b0(_)===y.type)?(S=i(y,b.props),S.ref=Zs(m,y,b),S.return=m,S):(S=Ic(b.type,b.key,b.props,null,m.mode,S),S.ref=Zs(m,y,b),S.return=m,S)}function c(m,y,b,S){return y===null||y.tag!==4||y.stateNode.containerInfo!==b.containerInfo||y.stateNode.implementation!==b.implementation?(y=Nd(b,m.mode,S),y.return=m,y):(y=i(y,b.children||[]),y.return=m,y)}function u(m,y,b,S,_){return y===null||y.tag!==7?(y=sa(b,m.mode,S,_),y.return=m,y):(y=i(y,b),y.return=m,y)}function h(m,y,b){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Bd(""+y,m.mode,b),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ul:return b=Ic(y.type,y.key,y.props,null,m.mode,b),b.ref=Zs(m,null,y),b.return=m,b;case Oa:return y=Nd(y,m.mode,b),y.return=m,y;case fi:var S=y._init;return h(m,S(y._payload),b)}if(vo(y)||Ys(y))return y=sa(y,m.mode,b,null),y.return=m,y;rc(m,y)}return null}function f(m,y,b,S){var _=y!==null?y.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return _!==null?null:o(m,y,""+b,S);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Ul:return b.key===_?l(m,y,b,S):null;case Oa:return b.key===_?c(m,y,b,S):null;case fi:return _=b._init,f(m,y,_(b._payload),S)}if(vo(b)||Ys(b))return _!==null?null:u(m,y,b,S,null);rc(m,b)}return null}function d(m,y,b,S,_){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(b)||null,o(y,m,""+S,_);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Ul:return m=m.get(S.key===null?b:S.key)||null,l(y,m,S,_);case Oa:return m=m.get(S.key===null?b:S.key)||null,c(y,m,S,_);case fi:var w=S._init;return d(m,y,b,w(S._payload),_)}if(vo(S)||Ys(S))return m=m.get(b)||null,u(y,m,S,_,null);rc(y,S)}return null}function p(m,y,b,S){for(var _=null,w=null,T=y,N=y=0,z=null;T!==null&&N<b.length;N++){T.index>N?(z=T,T=null):z=T.sibling;var I=f(m,T,b[N],S);if(I===null){T===null&&(T=z);break}t&&T&&I.alternate===null&&e(m,T),y=a(I,y,N),w===null?_=I:w.sibling=I,w=I,T=z}if(N===b.length)return r(m,T),te&&Ui(m,N),_;if(T===null){for(;N<b.length;N++)T=h(m,b[N],S),T!==null&&(y=a(T,y,N),w===null?_=T:w.sibling=T,w=T);return te&&Ui(m,N),_}for(T=n(m,T);N<b.length;N++)z=d(T,m,N,b[N],S),z!==null&&(t&&z.alternate!==null&&T.delete(z.key===null?N:z.key),y=a(z,y,N),w===null?_=z:w.sibling=z,w=z);return t&&T.forEach(function(A){return e(m,A)}),te&&Ui(m,N),_}function g(m,y,b,S){var _=Ys(b);if(typeof _!="function")throw Error(U(150));if(b=_.call(b),b==null)throw Error(U(151));for(var w=_=null,T=y,N=y=0,z=null,I=b.next();T!==null&&!I.done;N++,I=b.next()){T.index>N?(z=T,T=null):z=T.sibling;var A=f(m,T,I.value,S);if(A===null){T===null&&(T=z);break}t&&T&&A.alternate===null&&e(m,T),y=a(A,y,N),w===null?_=A:w.sibling=A,w=A,T=z}if(I.done)return r(m,T),te&&Ui(m,N),_;if(T===null){for(;!I.done;N++,I=b.next())I=h(m,I.value,S),I!==null&&(y=a(I,y,N),w===null?_=I:w.sibling=I,w=I);return te&&Ui(m,N),_}for(T=n(m,T);!I.done;N++,I=b.next())I=d(T,m,N,I.value,S),I!==null&&(t&&I.alternate!==null&&T.delete(I.key===null?N:I.key),y=a(I,y,N),w===null?_=I:w.sibling=I,w=I);return t&&T.forEach(function(R){return e(m,R)}),te&&Ui(m,N),_}function v(m,y,b,S){if(typeof b=="object"&&b!==null&&b.type===Da&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Ul:t:{for(var _=b.key,w=y;w!==null;){if(w.key===_){if(_=b.type,_===Da){if(w.tag===7){r(m,w.sibling),y=i(w,b.props.children),y.return=m,m=y;break t}}else if(w.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===fi&&b0(_)===w.type){r(m,w.sibling),y=i(w,b.props),y.ref=Zs(m,w,b),y.return=m,m=y;break t}r(m,w);break}else e(m,w);w=w.sibling}b.type===Da?(y=sa(b.props.children,m.mode,S,b.key),y.return=m,m=y):(S=Ic(b.type,b.key,b.props,null,m.mode,S),S.ref=Zs(m,y,b),S.return=m,m=S)}return s(m);case Oa:t:{for(w=b.key;y!==null;){if(y.key===w)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){r(m,y.sibling),y=i(y,b.children||[]),y.return=m,m=y;break t}else{r(m,y);break}else e(m,y);y=y.sibling}y=Nd(b,m.mode,S),y.return=m,m=y}return s(m);case fi:return w=b._init,v(m,y,w(b._payload),S)}if(vo(b))return p(m,y,b,S);if(Ys(b))return g(m,y,b,S);rc(m,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,y!==null&&y.tag===6?(r(m,y.sibling),y=i(y,b),y.return=m,m=y):(r(m,y),y=Bd(b,m.mode,S),y.return=m,m=y),s(m)):r(m,y)}return v}var bs=zb(!0),jb=zb(!1),fu=Ri(null),pu=null,Ya=null,Dg=null;function zg(){Dg=Ya=pu=null}function jg(t){var e=fu.current;Qt(fu),t._currentValue=e}function Hf(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function es(t,e){pu=t,Dg=Ya=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(ur=!0),t.firstContext=null)}function zr(t){var e=t._currentValue;if(Dg!==t)if(t={context:t,memoizedValue:e,next:null},Ya===null){if(pu===null)throw Error(U(308));Ya=t,pu.dependencies={lanes:0,firstContext:t}}else Ya=Ya.next=t;return e}var Zi=null;function Hg(t){Zi===null?Zi=[t]:Zi.push(t)}function Hb(t,e,r,n){var i=e.interleaved;return i===null?(r.next=r,Hg(e)):(r.next=i.next,i.next=r),e.interleaved=r,Zn(t,n)}function Zn(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var pi=!1;function Wg(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wb(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Yn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function _i(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,$t&2){var i=n.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),n.pending=e,Zn(t,r)}return i=n.interleaved,i===null?(e.next=e,Hg(n)):(e.next=i.next,i.next=e),n.interleaved=e,Zn(t,r)}function Ac(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Lg(t,r)}}function w0(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=s:a=a.next=s,r=r.next}while(r!==null);a===null?i=a=e:a=a.next=e}else i=a=e;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function gu(t,e,r,n){var i=t.updateQueue;pi=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var l=o,c=l.next;l.next=null,s===null?a=c:s.next=c,s=l;var u=t.alternate;u!==null&&(u=u.updateQueue,o=u.lastBaseUpdate,o!==s&&(o===null?u.firstBaseUpdate=c:o.next=c,u.lastBaseUpdate=l))}if(a!==null){var h=i.baseState;s=0,u=c=l=null,o=a;do{var f=o.lane,d=o.eventTime;if((n&f)===f){u!==null&&(u=u.next={eventTime:d,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});t:{var p=t,g=o;switch(f=e,d=r,g.tag){case 1:if(p=g.payload,typeof p=="function"){h=p.call(d,h,f);break t}h=p;break t;case 3:p.flags=p.flags&-65537|128;case 0:if(p=g.payload,f=typeof p=="function"?p.call(d,h,f):p,f==null)break t;h=ne({},h,f);break t;case 2:pi=!0}}o.callback!==null&&o.lane!==0&&(t.flags|=64,f=i.effects,f===null?i.effects=[o]:f.push(o))}else d={eventTime:d,lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},u===null?(c=u=d,l=h):u=u.next=d,s|=f;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;f=o,o=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(u===null&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,e=i.shared.interleaved,e!==null){i=e;do s|=i.lane,i=i.next;while(i!==e)}else a===null&&(i.shared.lanes=0);da|=s,t.lanes=s,t.memoizedState=h}}function k0(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var n=t[e],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(U(191,i));i.call(n)}}}var Al={},kn=Ri(Al),al=Ri(Al),sl=Ri(Al);function Ji(t){if(t===Al)throw Error(U(174));return t}function qg(t,e){switch(Ut(sl,e),Ut(al,t),Ut(kn,Al),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:kf(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=kf(e,t)}Qt(kn),Ut(kn,e)}function ws(){Qt(kn),Qt(al),Qt(sl)}function qb(t){Ji(sl.current);var e=Ji(kn.current),r=kf(e,t.type);e!==r&&(Ut(al,t),Ut(kn,r))}function Ug(t){al.current===t&&(Qt(kn),Qt(al))}var ee=Ri(0);function mu(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var _d=[];function Vg(){for(var t=0;t<_d.length;t++)_d[t]._workInProgressVersionPrimary=null;_d.length=0}var Bc=ri.ReactCurrentDispatcher,Td=ri.ReactCurrentBatchConfig,ha=0,re=null,pe=null,ve=null,yu=!1,Fo=!1,ol=0,JM=0;function Be(){throw Error(U(321))}function Yg(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!nn(t[r],e[r]))return!1;return!0}function Gg(t,e,r,n,i,a){if(ha=a,re=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Bc.current=t===null||t.memoizedState===null?nA:iA,t=r(n,i),Fo){a=0;do{if(Fo=!1,ol=0,25<=a)throw Error(U(301));a+=1,ve=pe=null,e.updateQueue=null,Bc.current=aA,t=r(n,i)}while(Fo)}if(Bc.current=xu,e=pe!==null&&pe.next!==null,ha=0,ve=pe=re=null,yu=!1,e)throw Error(U(300));return t}function Xg(){var t=ol!==0;return ol=0,t}function gn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ve===null?re.memoizedState=ve=t:ve=ve.next=t,ve}function jr(){if(pe===null){var t=re.alternate;t=t!==null?t.memoizedState:null}else t=pe.next;var e=ve===null?re.memoizedState:ve.next;if(e!==null)ve=e,pe=t;else{if(t===null)throw Error(U(310));pe=t,t={memoizedState:pe.memoizedState,baseState:pe.baseState,baseQueue:pe.baseQueue,queue:pe.queue,next:null},ve===null?re.memoizedState=ve=t:ve=ve.next=t}return ve}function ll(t,e){return typeof e=="function"?e(t):e}function Ed(t){var e=jr(),r=e.queue;if(r===null)throw Error(U(311));r.lastRenderedReducer=t;var n=pe,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}n.baseQueue=i=a,r.pending=null}if(i!==null){a=i.next,n=n.baseState;var o=s=null,l=null,c=a;do{var u=c.lane;if((ha&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:t(n,c.action);else{var h={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(o=l=h,s=n):l=l.next=h,re.lanes|=u,da|=u}c=c.next}while(c!==null&&c!==a);l===null?s=n:l.next=o,nn(n,e.memoizedState)||(ur=!0),e.memoizedState=n,e.baseState=s,e.baseQueue=l,r.lastRenderedState=n}if(t=r.interleaved,t!==null){i=t;do a=i.lane,re.lanes|=a,da|=a,i=i.next;while(i!==t)}else i===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function Ld(t){var e=jr(),r=e.queue;if(r===null)throw Error(U(311));r.lastRenderedReducer=t;var n=r.dispatch,i=r.pending,a=e.memoizedState;if(i!==null){r.pending=null;var s=i=i.next;do a=t(a,s.action),s=s.next;while(s!==i);nn(a,e.memoizedState)||(ur=!0),e.memoizedState=a,e.baseQueue===null&&(e.baseState=a),r.lastRenderedState=a}return[a,n]}function Ub(){}function Vb(t,e){var r=re,n=jr(),i=e(),a=!nn(n.memoizedState,i);if(a&&(n.memoizedState=i,ur=!0),n=n.queue,Qg(Xb.bind(null,r,n,t),[t]),n.getSnapshot!==e||a||ve!==null&&ve.memoizedState.tag&1){if(r.flags|=2048,cl(9,Gb.bind(null,r,n,i,e),void 0,null),we===null)throw Error(U(349));ha&30||Yb(r,e,i)}return i}function Yb(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=re.updateQueue,e===null?(e={lastEffect:null,stores:null},re.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function Gb(t,e,r,n){e.value=r,e.getSnapshot=n,Qb(e)&&Kb(t)}function Xb(t,e,r){return r(function(){Qb(e)&&Kb(t)})}function Qb(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!nn(t,r)}catch{return!0}}function Kb(t){var e=Zn(t,1);e!==null&&tn(e,t,1,-1)}function C0(t){var e=gn();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:t},e.queue=t,t=t.dispatch=rA.bind(null,re,t),[e.memoizedState,t]}function cl(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=re.updateQueue,e===null?(e={lastEffect:null,stores:null},re.updateQueue=e,e.lastEffect=t.next=t):(r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t)),t}function Zb(){return jr().memoizedState}function Nc(t,e,r,n){var i=gn();re.flags|=t,i.memoizedState=cl(1|e,r,void 0,n===void 0?null:n)}function yh(t,e,r,n){var i=jr();n=n===void 0?null:n;var a=void 0;if(pe!==null){var s=pe.memoizedState;if(a=s.destroy,n!==null&&Yg(n,s.deps)){i.memoizedState=cl(e,r,a,n);return}}re.flags|=t,i.memoizedState=cl(1|e,r,a,n)}function S0(t,e){return Nc(8390656,8,t,e)}function Qg(t,e){return yh(2048,8,t,e)}function Jb(t,e){return yh(4,2,t,e)}function tw(t,e){return yh(4,4,t,e)}function ew(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function rw(t,e,r){return r=r!=null?r.concat([t]):null,yh(4,4,ew.bind(null,e,t),r)}function Kg(){}function nw(t,e){var r=jr();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Yg(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function iw(t,e){var r=jr();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Yg(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function aw(t,e,r){return ha&21?(nn(r,e)||(r=ub(),re.lanes|=r,da|=r,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,ur=!0),t.memoizedState=r)}function tA(t,e){var r=Dt;Dt=r!==0&&4>r?r:4,t(!0);var n=Td.transition;Td.transition={};try{t(!1),e()}finally{Dt=r,Td.transition=n}}function sw(){return jr().memoizedState}function eA(t,e,r){var n=Ei(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ow(t))lw(e,r);else if(r=Hb(t,e,r,n),r!==null){var i=Qe();tn(r,t,n,i),cw(r,e,n)}}function rA(t,e,r){var n=Ei(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ow(t))lw(e,i);else{var a=t.alternate;if(t.lanes===0&&(a===null||a.lanes===0)&&(a=e.lastRenderedReducer,a!==null))try{var s=e.lastRenderedState,o=a(s,r);if(i.hasEagerState=!0,i.eagerState=o,nn(o,s)){var l=e.interleaved;l===null?(i.next=i,Hg(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}r=Hb(t,e,i,n),r!==null&&(i=Qe(),tn(r,t,n,i),cw(r,e,n))}}function ow(t){var e=t.alternate;return t===re||e!==null&&e===re}function lw(t,e){Fo=yu=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function cw(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Lg(t,r)}}var xu={readContext:zr,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useInsertionEffect:Be,useLayoutEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useMutableSource:Be,useSyncExternalStore:Be,useId:Be,unstable_isNewReconciler:!1},nA={readContext:zr,useCallback:function(t,e){return gn().memoizedState=[t,e===void 0?null:e],t},useContext:zr,useEffect:S0,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Nc(4194308,4,ew.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Nc(4194308,4,t,e)},useInsertionEffect:function(t,e){return Nc(4,2,t,e)},useMemo:function(t,e){var r=gn();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=gn();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=eA.bind(null,re,t),[n.memoizedState,t]},useRef:function(t){var e=gn();return t={current:t},e.memoizedState=t},useState:C0,useDebugValue:Kg,useDeferredValue:function(t){return gn().memoizedState=t},useTransition:function(){var t=C0(!1),e=t[0];return t=tA.bind(null,t[1]),gn().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=re,i=gn();if(te){if(r===void 0)throw Error(U(407));r=r()}else{if(r=e(),we===null)throw Error(U(349));ha&30||Yb(n,e,r)}i.memoizedState=r;var a={value:r,getSnapshot:e};return i.queue=a,S0(Xb.bind(null,n,a,t),[t]),n.flags|=2048,cl(9,Gb.bind(null,n,a,r,e),void 0,null),r},useId:function(){var t=gn(),e=we.identifierPrefix;if(te){var r=qn,n=Wn;r=(n&~(1<<32-Jr(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=ol++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=JM++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},iA={readContext:zr,useCallback:nw,useContext:zr,useEffect:Qg,useImperativeHandle:rw,useInsertionEffect:Jb,useLayoutEffect:tw,useMemo:iw,useReducer:Ed,useRef:Zb,useState:function(){return Ed(ll)},useDebugValue:Kg,useDeferredValue:function(t){var e=jr();return aw(e,pe.memoizedState,t)},useTransition:function(){var t=Ed(ll)[0],e=jr().memoizedState;return[t,e]},useMutableSource:Ub,useSyncExternalStore:Vb,useId:sw,unstable_isNewReconciler:!1},aA={readContext:zr,useCallback:nw,useContext:zr,useEffect:Qg,useImperativeHandle:rw,useInsertionEffect:Jb,useLayoutEffect:tw,useMemo:iw,useReducer:Ld,useRef:Zb,useState:function(){return Ld(ll)},useDebugValue:Kg,useDeferredValue:function(t){var e=jr();return pe===null?e.memoizedState=t:aw(e,pe.memoizedState,t)},useTransition:function(){var t=Ld(ll)[0],e=jr().memoizedState;return[t,e]},useMutableSource:Ub,useSyncExternalStore:Vb,useId:sw,unstable_isNewReconciler:!1};function Xr(t,e){if(t&&t.defaultProps){e=ne({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}function Wf(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:ne({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var xh={isMounted:function(t){return(t=t._reactInternals)?ka(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=Qe(),i=Ei(t),a=Yn(n,i);a.payload=e,r!=null&&(a.callback=r),e=_i(t,a,i),e!==null&&(tn(e,t,i,n),Ac(e,t,i))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=Qe(),i=Ei(t),a=Yn(n,i);a.tag=1,a.payload=e,r!=null&&(a.callback=r),e=_i(t,a,i),e!==null&&(tn(e,t,i,n),Ac(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=Qe(),n=Ei(t),i=Yn(r,n);i.tag=2,e!=null&&(i.callback=e),e=_i(t,i,n),e!==null&&(tn(e,t,n,r),Ac(e,t,n))}};function _0(t,e,r,n,i,a,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,a,s):e.prototype&&e.prototype.isPureReactComponent?!el(r,n)||!el(i,a):!0}function uw(t,e,r){var n=!1,i=Bi,a=e.contextType;return typeof a=="object"&&a!==null?a=zr(a):(i=fr(e)?ca:Re.current,n=e.contextTypes,a=(n=n!=null)?xs(t,i):Bi),e=new e(r,a),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=xh,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=a),e}function T0(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&xh.enqueueReplaceState(e,e.state,null)}function qf(t,e,r,n){var i=t.stateNode;i.props=r,i.state=t.memoizedState,i.refs={},Wg(t);var a=e.contextType;typeof a=="object"&&a!==null?i.context=zr(a):(a=fr(e)?ca:Re.current,i.context=xs(t,a)),i.state=t.memoizedState,a=e.getDerivedStateFromProps,typeof a=="function"&&(Wf(t,e,a,r),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&xh.enqueueReplaceState(i,i.state,null),gu(t,r,i,n),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function ks(t,e){try{var r="",n=e;do r+=$L(n),n=n.return;while(n);var i=r}catch(a){i=`
Error generating stack: `+a.message+`
`+a.stack}return{value:t,source:e,stack:i,digest:null}}function Md(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function Uf(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var sA=typeof WeakMap=="function"?WeakMap:Map;function hw(t,e,r){r=Yn(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){bu||(bu=!0,ep=n),Uf(t,e)},r}function dw(t,e,r){r=Yn(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var i=e.value;r.payload=function(){return n(i)},r.callback=function(){Uf(t,e)}}var a=t.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){Uf(t,e),typeof n!="function"&&(Ti===null?Ti=new Set([this]):Ti.add(this));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),r}function E0(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new sA;var i=new Set;n.set(e,i)}else i=n.get(e),i===void 0&&(i=new Set,n.set(e,i));i.has(r)||(i.add(r),t=bA.bind(null,t,e,r),e.then(t,t))}function L0(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function M0(t,e,r,n,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=Yn(-1,1),e.tag=2,_i(r,e,1))),r.lanes|=1),t)}var oA=ri.ReactCurrentOwner,ur=!1;function Ve(t,e,r,n){e.child=t===null?jb(e,null,r,n):bs(e,t.child,r,n)}function A0(t,e,r,n,i){r=r.render;var a=e.ref;return es(e,i),n=Gg(t,e,r,n,a,i),r=Xg(),t!==null&&!ur?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Jn(t,e,i)):(te&&r&&Ig(e),e.flags|=1,Ve(t,e,n,i),e.child)}function B0(t,e,r,n,i){if(t===null){var a=r.type;return typeof a=="function"&&!am(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=a,fw(t,e,a,n,i)):(t=Ic(r.type,null,n,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(a=t.child,!(t.lanes&i)){var s=a.memoizedProps;if(r=r.compare,r=r!==null?r:el,r(s,n)&&t.ref===e.ref)return Jn(t,e,i)}return e.flags|=1,t=Li(a,n),t.ref=e.ref,t.return=e,e.child=t}function fw(t,e,r,n,i){if(t!==null){var a=t.memoizedProps;if(el(a,n)&&t.ref===e.ref)if(ur=!1,e.pendingProps=n=a,(t.lanes&i)!==0)t.flags&131072&&(ur=!0);else return e.lanes=t.lanes,Jn(t,e,i)}return Vf(t,e,r,n,i)}function pw(t,e,r){var n=e.pendingProps,i=n.children,a=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ut(Xa,Cr),Cr|=r;else{if(!(r&1073741824))return t=a!==null?a.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,Ut(Xa,Cr),Cr|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,Ut(Xa,Cr),Cr|=n}else a!==null?(n=a.baseLanes|r,e.memoizedState=null):n=r,Ut(Xa,Cr),Cr|=n;return Ve(t,e,i,r),e.child}function gw(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function Vf(t,e,r,n,i){var a=fr(r)?ca:Re.current;return a=xs(e,a),es(e,i),r=Gg(t,e,r,n,a,i),n=Xg(),t!==null&&!ur?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,Jn(t,e,i)):(te&&n&&Ig(e),e.flags|=1,Ve(t,e,r,i),e.child)}function N0(t,e,r,n,i){if(fr(r)){var a=!0;uu(e)}else a=!1;if(es(e,i),e.stateNode===null)$c(t,e),uw(e,r,n),qf(e,r,n,i),n=!0;else if(t===null){var s=e.stateNode,o=e.memoizedProps;s.props=o;var l=s.context,c=r.contextType;typeof c=="object"&&c!==null?c=zr(c):(c=fr(r)?ca:Re.current,c=xs(e,c));var u=r.getDerivedStateFromProps,h=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==n||l!==c)&&T0(e,s,n,c),pi=!1;var f=e.memoizedState;s.state=f,gu(e,n,s,i),l=e.memoizedState,o!==n||f!==l||dr.current||pi?(typeof u=="function"&&(Wf(e,r,u,n),l=e.memoizedState),(o=pi||_0(e,r,o,n,f,l,c))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4194308)):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=l),s.props=n,s.state=l,s.context=c,n=o):(typeof s.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{s=e.stateNode,Wb(t,e),o=e.memoizedProps,c=e.type===e.elementType?o:Xr(e.type,o),s.props=c,h=e.pendingProps,f=s.context,l=r.contextType,typeof l=="object"&&l!==null?l=zr(l):(l=fr(r)?ca:Re.current,l=xs(e,l));var d=r.getDerivedStateFromProps;(u=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(o!==h||f!==l)&&T0(e,s,n,l),pi=!1,f=e.memoizedState,s.state=f,gu(e,n,s,i);var p=e.memoizedState;o!==h||f!==p||dr.current||pi?(typeof d=="function"&&(Wf(e,r,d,n),p=e.memoizedState),(c=pi||_0(e,r,c,n,f,p,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,p,l)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof s.componentDidUpdate!="function"||o===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=p),s.props=n,s.state=p,s.context=l,n=c):(typeof s.componentDidUpdate!="function"||o===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),n=!1)}return Yf(t,e,r,n,a,i)}function Yf(t,e,r,n,i,a){gw(t,e);var s=(e.flags&128)!==0;if(!n&&!s)return i&&y0(e,r,!1),Jn(t,e,a);n=e.stateNode,oA.current=e;var o=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&s?(e.child=bs(e,t.child,null,a),e.child=bs(e,null,o,a)):Ve(t,e,o,a),e.memoizedState=n.state,i&&y0(e,r,!0),e.child}function mw(t){var e=t.stateNode;e.pendingContext?m0(t,e.pendingContext,e.pendingContext!==e.context):e.context&&m0(t,e.context,!1),qg(t,e.containerInfo)}function $0(t,e,r,n,i){return vs(),Og(i),e.flags|=256,Ve(t,e,r,n),e.child}var Gf={dehydrated:null,treeContext:null,retryLane:0};function Xf(t){return{baseLanes:t,cachePool:null,transitions:null}}function yw(t,e,r){var n=e.pendingProps,i=ee.current,a=!1,s=(e.flags&128)!==0,o;if((o=s)||(o=t!==null&&t.memoizedState===null?!1:(i&2)!==0),o?(a=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),Ut(ee,i&1),t===null)return jf(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(s=n.children,t=n.fallback,a?(n=e.mode,a=e.child,s={mode:"hidden",children:s},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=s):a=wh(s,n,0,null),t=sa(t,n,r,null),a.return=e,t.return=e,a.sibling=t,e.child=a,e.child.memoizedState=Xf(r),e.memoizedState=Gf,t):Zg(e,s));if(i=t.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return lA(t,e,s,n,o,i,r);if(a){a=n.fallback,s=e.mode,i=t.child,o=i.sibling;var l={mode:"hidden",children:n.children};return!(s&1)&&e.child!==i?(n=e.child,n.childLanes=0,n.pendingProps=l,e.deletions=null):(n=Li(i,l),n.subtreeFlags=i.subtreeFlags&14680064),o!==null?a=Li(o,a):(a=sa(a,s,r,null),a.flags|=2),a.return=e,n.return=e,n.sibling=a,e.child=n,n=a,a=e.child,s=t.child.memoizedState,s=s===null?Xf(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},a.memoizedState=s,a.childLanes=t.childLanes&~r,e.memoizedState=Gf,n}return a=t.child,t=a.sibling,n=Li(a,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function Zg(t,e){return e=wh({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function nc(t,e,r,n){return n!==null&&Og(n),bs(e,t.child,null,r),t=Zg(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function lA(t,e,r,n,i,a,s){if(r)return e.flags&256?(e.flags&=-257,n=Md(Error(U(422))),nc(t,e,s,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(a=n.fallback,i=e.mode,n=wh({mode:"visible",children:n.children},i,0,null),a=sa(a,i,s,null),a.flags|=2,n.return=e,a.return=e,n.sibling=a,e.child=n,e.mode&1&&bs(e,t.child,null,s),e.child.memoizedState=Xf(s),e.memoizedState=Gf,a);if(!(e.mode&1))return nc(t,e,s,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var o=n.dgst;return n=o,a=Error(U(419)),n=Md(a,n,void 0),nc(t,e,s,n)}if(o=(s&t.childLanes)!==0,ur||o){if(n=we,n!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|s)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Zn(t,i),tn(n,t,i,-1))}return im(),n=Md(Error(U(421))),nc(t,e,s,n)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=wA.bind(null,t),i._reactRetry=e,null):(t=a.treeContext,Sr=Si(i.nextSibling),Tr=e,te=!0,Kr=null,t!==null&&(Pr[Ir++]=Wn,Pr[Ir++]=qn,Pr[Ir++]=ua,Wn=t.id,qn=t.overflow,ua=e),e=Zg(e,n.children),e.flags|=4096,e)}function F0(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Hf(t.return,e,r)}function Ad(t,e,r,n,i){var a=t.memoizedState;a===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function xw(t,e,r){var n=e.pendingProps,i=n.revealOrder,a=n.tail;if(Ve(t,e,n.children,r),n=ee.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&F0(t,r,e);else if(t.tag===19)F0(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(Ut(ee,n),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(r=e.child,i=null;r!==null;)t=r.alternate,t!==null&&mu(t)===null&&(i=r),r=r.sibling;r=i,r===null?(i=e.child,e.child=null):(i=r.sibling,r.sibling=null),Ad(e,!1,i,r,a);break;case"backwards":for(r=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&mu(t)===null){e.child=i;break}t=i.sibling,i.sibling=r,r=i,i=t}Ad(e,!0,r,null,a);break;case"together":Ad(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function $c(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Jn(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),da|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(U(153));if(e.child!==null){for(t=e.child,r=Li(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Li(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function cA(t,e,r){switch(e.tag){case 3:mw(e),vs();break;case 5:qb(e);break;case 1:fr(e.type)&&uu(e);break;case 4:qg(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,i=e.memoizedProps.value;Ut(fu,n._currentValue),n._currentValue=i;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(Ut(ee,ee.current&1),e.flags|=128,null):r&e.child.childLanes?yw(t,e,r):(Ut(ee,ee.current&1),t=Jn(t,e,r),t!==null?t.sibling:null);Ut(ee,ee.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){if(n)return xw(t,e,r);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ut(ee,ee.current),n)break;return null;case 22:case 23:return e.lanes=0,pw(t,e,r)}return Jn(t,e,r)}var vw,Qf,bw,ww;vw=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Qf=function(){};bw=function(t,e,r,n){var i=t.memoizedProps;if(i!==n){t=e.stateNode,Ji(kn.current);var a=null;switch(r){case"input":i=xf(t,i),n=xf(t,n),a=[];break;case"select":i=ne({},i,{value:void 0}),n=ne({},n,{value:void 0}),a=[];break;case"textarea":i=wf(t,i),n=wf(t,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=lu)}Cf(r,n);var s;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var o=i[c];for(s in o)o.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Go.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in n){var l=n[c];if(o=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&l!==o&&(l!=null||o!=null))if(c==="style")if(o){for(s in o)!o.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in l)l.hasOwnProperty(s)&&o[s]!==l[s]&&(r||(r={}),r[s]=l[s])}else r||(a||(a=[]),a.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,o=o?o.__html:void 0,l!=null&&o!==l&&(a=a||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Go.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Gt("scroll",t),a||o===l||(a=[])):(a=a||[]).push(c,l))}r&&(a=a||[]).push("style",r);var c=a;(e.updateQueue=c)&&(e.flags|=4)}};ww=function(t,e,r,n){r!==n&&(e.flags|=4)};function Js(t,e){if(!te)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Ne(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function uA(t,e,r){var n=e.pendingProps;switch(Rg(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ne(e),null;case 1:return fr(e.type)&&cu(),Ne(e),null;case 3:return n=e.stateNode,ws(),Qt(dr),Qt(Re),Vg(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ec(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Kr!==null&&(ip(Kr),Kr=null))),Qf(t,e),Ne(e),null;case 5:Ug(e);var i=Ji(sl.current);if(r=e.type,t!==null&&e.stateNode!=null)bw(t,e,r,n,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(U(166));return Ne(e),null}if(t=Ji(kn.current),ec(e)){n=e.stateNode,r=e.type;var a=e.memoizedProps;switch(n[xn]=e,n[il]=a,t=(e.mode&1)!==0,r){case"dialog":Gt("cancel",n),Gt("close",n);break;case"iframe":case"object":case"embed":Gt("load",n);break;case"video":case"audio":for(i=0;i<wo.length;i++)Gt(wo[i],n);break;case"source":Gt("error",n);break;case"img":case"image":case"link":Gt("error",n),Gt("load",n);break;case"details":Gt("toggle",n);break;case"input":Wy(n,a),Gt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Gt("invalid",n);break;case"textarea":Uy(n,a),Gt("invalid",n)}Cf(r,a),i=null;for(var s in a)if(a.hasOwnProperty(s)){var o=a[s];s==="children"?typeof o=="string"?n.textContent!==o&&(a.suppressHydrationWarning!==!0&&tc(n.textContent,o,t),i=["children",o]):typeof o=="number"&&n.textContent!==""+o&&(a.suppressHydrationWarning!==!0&&tc(n.textContent,o,t),i=["children",""+o]):Go.hasOwnProperty(s)&&o!=null&&s==="onScroll"&&Gt("scroll",n)}switch(r){case"input":Vl(n),qy(n,a,!0);break;case"textarea":Vl(n),Vy(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=lu)}n=i,e.updateQueue=n,n!==null&&(e.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Xv(r)),t==="http://www.w3.org/1999/xhtml"?r==="script"?(t=s.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=s.createElement(r,{is:n.is}):(t=s.createElement(r),r==="select"&&(s=t,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):t=s.createElementNS(t,r),t[xn]=e,t[il]=n,vw(t,e,!1,!1),e.stateNode=t;t:{switch(s=Sf(r,n),r){case"dialog":Gt("cancel",t),Gt("close",t),i=n;break;case"iframe":case"object":case"embed":Gt("load",t),i=n;break;case"video":case"audio":for(i=0;i<wo.length;i++)Gt(wo[i],t);i=n;break;case"source":Gt("error",t),i=n;break;case"img":case"image":case"link":Gt("error",t),Gt("load",t),i=n;break;case"details":Gt("toggle",t),i=n;break;case"input":Wy(t,n),i=xf(t,n),Gt("invalid",t);break;case"option":i=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},i=ne({},n,{value:void 0}),Gt("invalid",t);break;case"textarea":Uy(t,n),i=wf(t,n),Gt("invalid",t);break;default:i=n}Cf(r,i),o=i;for(a in o)if(o.hasOwnProperty(a)){var l=o[a];a==="style"?Zv(t,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Qv(t,l)):a==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Xo(t,l):typeof l=="number"&&Xo(t,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Go.hasOwnProperty(a)?l!=null&&a==="onScroll"&&Gt("scroll",t):l!=null&&kg(t,a,l,s))}switch(r){case"input":Vl(t),qy(t,n,!1);break;case"textarea":Vl(t),Vy(t);break;case"option":n.value!=null&&t.setAttribute("value",""+Ai(n.value));break;case"select":t.multiple=!!n.multiple,a=n.value,a!=null?Ka(t,!!n.multiple,a,!1):n.defaultValue!=null&&Ka(t,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=lu)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}}n&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Ne(e),null;case 6:if(t&&e.stateNode!=null)ww(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(U(166));if(r=Ji(sl.current),Ji(kn.current),ec(e)){if(n=e.stateNode,r=e.memoizedProps,n[xn]=e,(a=n.nodeValue!==r)&&(t=Tr,t!==null))switch(t.tag){case 3:tc(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&tc(n.nodeValue,r,(t.mode&1)!==0)}a&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[xn]=e,e.stateNode=n}return Ne(e),null;case 13:if(Qt(ee),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(te&&Sr!==null&&e.mode&1&&!(e.flags&128))Db(),vs(),e.flags|=98560,a=!1;else if(a=ec(e),n!==null&&n.dehydrated!==null){if(t===null){if(!a)throw Error(U(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(U(317));a[xn]=e}else vs(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Ne(e),a=!1}else Kr!==null&&(ip(Kr),Kr=null),a=!0;if(!a)return e.flags&65536?e:null}return e.flags&128?(e.lanes=r,e):(n=n!==null,n!==(t!==null&&t.memoizedState!==null)&&n&&(e.child.flags|=8192,e.mode&1&&(t===null||ee.current&1?me===0&&(me=3):im())),e.updateQueue!==null&&(e.flags|=4),Ne(e),null);case 4:return ws(),Qf(t,e),t===null&&rl(e.stateNode.containerInfo),Ne(e),null;case 10:return jg(e.type._context),Ne(e),null;case 17:return fr(e.type)&&cu(),Ne(e),null;case 19:if(Qt(ee),a=e.memoizedState,a===null)return Ne(e),null;if(n=(e.flags&128)!==0,s=a.rendering,s===null)if(n)Js(a,!1);else{if(me!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(s=mu(t),s!==null){for(e.flags|=128,Js(a,!1),n=s.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;r!==null;)a=r,t=n,a.flags&=14680066,s=a.alternate,s===null?(a.childLanes=0,a.lanes=t,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,t=s.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return Ut(ee,ee.current&1|2),e.child}t=t.sibling}a.tail!==null&&oe()>Cs&&(e.flags|=128,n=!0,Js(a,!1),e.lanes=4194304)}else{if(!n)if(t=mu(s),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Js(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!te)return Ne(e),null}else 2*oe()-a.renderingStartTime>Cs&&r!==1073741824&&(e.flags|=128,n=!0,Js(a,!1),e.lanes=4194304);a.isBackwards?(s.sibling=e.child,e.child=s):(r=a.last,r!==null?r.sibling=s:e.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=oe(),e.sibling=null,r=ee.current,Ut(ee,n?r&1|2:r&1),e):(Ne(e),null);case 22:case 23:return nm(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?Cr&1073741824&&(Ne(e),e.subtreeFlags&6&&(e.flags|=8192)):Ne(e),null;case 24:return null;case 25:return null}throw Error(U(156,e.tag))}function hA(t,e){switch(Rg(e),e.tag){case 1:return fr(e.type)&&cu(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ws(),Qt(dr),Qt(Re),Vg(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Ug(e),null;case 13:if(Qt(ee),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(U(340));vs()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Qt(ee),null;case 4:return ws(),null;case 10:return jg(e.type._context),null;case 22:case 23:return nm(),null;case 24:return null;default:return null}}var ic=!1,Pe=!1,dA=typeof WeakSet=="function"?WeakSet:Set,rt=null;function Ga(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ae(t,e,n)}else r.current=null}function Kf(t,e,r){try{r()}catch(n){ae(t,e,n)}}var P0=!1;function fA(t,e){if(Ff=au,t=Tb(),Pg(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else t:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break t}var s=0,o=-1,l=-1,c=0,u=0,h=t,f=null;e:for(;;){for(var d;h!==r||i!==0&&h.nodeType!==3||(o=s+i),h!==a||n!==0&&h.nodeType!==3||(l=s+n),h.nodeType===3&&(s+=h.nodeValue.length),(d=h.firstChild)!==null;)f=h,h=d;for(;;){if(h===t)break e;if(f===r&&++c===i&&(o=s),f===a&&++u===n&&(l=s),(d=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=d}r=o===-1||l===-1?null:{start:o,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Pf={focusedElem:t,selectionRange:r},au=!1,rt=e;rt!==null;)if(e=rt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,rt=t;else for(;rt!==null;){e=rt;try{var p=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,v=p.memoizedState,m=e.stateNode,y=m.getSnapshotBeforeUpdate(e.elementType===e.type?g:Xr(e.type,g),v);m.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=e.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(S){ae(e,e.return,S)}if(t=e.sibling,t!==null){t.return=e.return,rt=t;break}rt=e.return}return p=P0,P0=!1,p}function Po(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&t)===t){var a=i.destroy;i.destroy=void 0,a!==void 0&&Kf(e,r,a)}i=i.next}while(i!==n)}}function vh(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function Zf(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function kw(t){var e=t.alternate;e!==null&&(t.alternate=null,kw(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[xn],delete e[il],delete e[Of],delete e[XM],delete e[QM])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Cw(t){return t.tag===5||t.tag===3||t.tag===4}function I0(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Cw(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Jf(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=lu));else if(n!==4&&(t=t.child,t!==null))for(Jf(t,e,r),t=t.sibling;t!==null;)Jf(t,e,r),t=t.sibling}function tp(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(tp(t,e,r),t=t.sibling;t!==null;)tp(t,e,r),t=t.sibling}var Ce=null,Qr=!1;function li(t,e,r){for(r=r.child;r!==null;)Sw(t,e,r),r=r.sibling}function Sw(t,e,r){if(wn&&typeof wn.onCommitFiberUnmount=="function")try{wn.onCommitFiberUnmount(hh,r)}catch{}switch(r.tag){case 5:Pe||Ga(r,e);case 6:var n=Ce,i=Qr;Ce=null,li(t,e,r),Ce=n,Qr=i,Ce!==null&&(Qr?(t=Ce,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Ce.removeChild(r.stateNode));break;case 18:Ce!==null&&(Qr?(t=Ce,r=r.stateNode,t.nodeType===8?Cd(t.parentNode,r):t.nodeType===1&&Cd(t,r),Jo(t)):Cd(Ce,r.stateNode));break;case 4:n=Ce,i=Qr,Ce=r.stateNode.containerInfo,Qr=!0,li(t,e,r),Ce=n,Qr=i;break;case 0:case 11:case 14:case 15:if(!Pe&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&Kf(r,e,s),i=i.next}while(i!==n)}li(t,e,r);break;case 1:if(!Pe&&(Ga(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(o){ae(r,e,o)}li(t,e,r);break;case 21:li(t,e,r);break;case 22:r.mode&1?(Pe=(n=Pe)||r.memoizedState!==null,li(t,e,r),Pe=n):li(t,e,r);break;default:li(t,e,r)}}function R0(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new dA),e.forEach(function(n){var i=kA.bind(null,t,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Vr(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var a=t,s=e,o=s;t:for(;o!==null;){switch(o.tag){case 5:Ce=o.stateNode,Qr=!1;break t;case 3:Ce=o.stateNode.containerInfo,Qr=!0;break t;case 4:Ce=o.stateNode.containerInfo,Qr=!0;break t}o=o.return}if(Ce===null)throw Error(U(160));Sw(a,s,i),Ce=null,Qr=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){ae(i,e,c)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)_w(e,t),e=e.sibling}function _w(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Vr(e,t),hn(t),n&4){try{Po(3,t,t.return),vh(3,t)}catch(g){ae(t,t.return,g)}try{Po(5,t,t.return)}catch(g){ae(t,t.return,g)}}break;case 1:Vr(e,t),hn(t),n&512&&r!==null&&Ga(r,r.return);break;case 5:if(Vr(e,t),hn(t),n&512&&r!==null&&Ga(r,r.return),t.flags&32){var i=t.stateNode;try{Xo(i,"")}catch(g){ae(t,t.return,g)}}if(n&4&&(i=t.stateNode,i!=null)){var a=t.memoizedProps,s=r!==null?r.memoizedProps:a,o=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{o==="input"&&a.type==="radio"&&a.name!=null&&Yv(i,a),Sf(o,s);var c=Sf(o,a);for(s=0;s<l.length;s+=2){var u=l[s],h=l[s+1];u==="style"?Zv(i,h):u==="dangerouslySetInnerHTML"?Qv(i,h):u==="children"?Xo(i,h):kg(i,u,h,c)}switch(o){case"input":vf(i,a);break;case"textarea":Gv(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var d=a.value;d!=null?Ka(i,!!a.multiple,d,!1):f!==!!a.multiple&&(a.defaultValue!=null?Ka(i,!!a.multiple,a.defaultValue,!0):Ka(i,!!a.multiple,a.multiple?[]:"",!1))}i[il]=a}catch(g){ae(t,t.return,g)}}break;case 6:if(Vr(e,t),hn(t),n&4){if(t.stateNode===null)throw Error(U(162));i=t.stateNode,a=t.memoizedProps;try{i.nodeValue=a}catch(g){ae(t,t.return,g)}}break;case 3:if(Vr(e,t),hn(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Jo(e.containerInfo)}catch(g){ae(t,t.return,g)}break;case 4:Vr(e,t),hn(t);break;case 13:Vr(e,t),hn(t),i=t.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(em=oe())),n&4&&R0(t);break;case 22:if(u=r!==null&&r.memoizedState!==null,t.mode&1?(Pe=(c=Pe)||u,Vr(e,t),Pe=c):Vr(e,t),hn(t),n&8192){if(c=t.memoizedState!==null,(t.stateNode.isHidden=c)&&!u&&t.mode&1)for(rt=t,u=t.child;u!==null;){for(h=rt=u;rt!==null;){switch(f=rt,d=f.child,f.tag){case 0:case 11:case 14:case 15:Po(4,f,f.return);break;case 1:Ga(f,f.return);var p=f.stateNode;if(typeof p.componentWillUnmount=="function"){n=f,r=f.return;try{e=n,p.props=e.memoizedProps,p.state=e.memoizedState,p.componentWillUnmount()}catch(g){ae(n,r,g)}}break;case 5:Ga(f,f.return);break;case 22:if(f.memoizedState!==null){D0(h);continue}}d!==null?(d.return=f,rt=d):D0(h)}u=u.sibling}t:for(u=null,h=t;;){if(h.tag===5){if(u===null){u=h;try{i=h.stateNode,c?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(o=h.stateNode,l=h.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,o.style.display=Kv("display",s))}catch(g){ae(t,t.return,g)}}}else if(h.tag===6){if(u===null)try{h.stateNode.nodeValue=c?"":h.memoizedProps}catch(g){ae(t,t.return,g)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===t)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break t;for(;h.sibling===null;){if(h.return===null||h.return===t)break t;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:Vr(e,t),hn(t),n&4&&R0(t);break;case 21:break;default:Vr(e,t),hn(t)}}function hn(t){var e=t.flags;if(e&2){try{t:{for(var r=t.return;r!==null;){if(Cw(r)){var n=r;break t}r=r.return}throw Error(U(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Xo(i,""),n.flags&=-33);var a=I0(t);tp(t,a,i);break;case 3:case 4:var s=n.stateNode.containerInfo,o=I0(t);Jf(t,o,s);break;default:throw Error(U(161))}}catch(l){ae(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function pA(t,e,r){rt=t,Tw(t)}function Tw(t,e,r){for(var n=(t.mode&1)!==0;rt!==null;){var i=rt,a=i.child;if(i.tag===22&&n){var s=i.memoizedState!==null||ic;if(!s){var o=i.alternate,l=o!==null&&o.memoizedState!==null||Pe;o=ic;var c=Pe;if(ic=s,(Pe=l)&&!c)for(rt=i;rt!==null;)s=rt,l=s.child,s.tag===22&&s.memoizedState!==null?z0(i):l!==null?(l.return=s,rt=l):z0(i);for(;a!==null;)rt=a,Tw(a),a=a.sibling;rt=i,ic=o,Pe=c}O0(t)}else i.subtreeFlags&8772&&a!==null?(a.return=i,rt=a):O0(t)}}function O0(t){for(;rt!==null;){var e=rt;if(e.flags&8772){var r=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Pe||vh(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!Pe)if(r===null)n.componentDidMount();else{var i=e.elementType===e.type?r.memoizedProps:Xr(e.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=e.updateQueue;a!==null&&k0(e,a,n);break;case 3:var s=e.updateQueue;if(s!==null){if(r=null,e.child!==null)switch(e.child.tag){case 5:r=e.child.stateNode;break;case 1:r=e.child.stateNode}k0(e,s,r)}break;case 5:var o=e.stateNode;if(r===null&&e.flags&4){r=o;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var c=e.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var h=u.dehydrated;h!==null&&Jo(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}Pe||e.flags&512&&Zf(e)}catch(f){ae(e,e.return,f)}}if(e===t){rt=null;break}if(r=e.sibling,r!==null){r.return=e.return,rt=r;break}rt=e.return}}function D0(t){for(;rt!==null;){var e=rt;if(e===t){rt=null;break}var r=e.sibling;if(r!==null){r.return=e.return,rt=r;break}rt=e.return}}function z0(t){for(;rt!==null;){var e=rt;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{vh(4,e)}catch(l){ae(e,r,l)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var i=e.return;try{n.componentDidMount()}catch(l){ae(e,i,l)}}var a=e.return;try{Zf(e)}catch(l){ae(e,a,l)}break;case 5:var s=e.return;try{Zf(e)}catch(l){ae(e,s,l)}}}catch(l){ae(e,e.return,l)}if(e===t){rt=null;break}var o=e.sibling;if(o!==null){o.return=e.return,rt=o;break}rt=e.return}}var gA=Math.ceil,vu=ri.ReactCurrentDispatcher,Jg=ri.ReactCurrentOwner,Dr=ri.ReactCurrentBatchConfig,$t=0,we=null,he=null,Te=0,Cr=0,Xa=Ri(0),me=0,ul=null,da=0,bh=0,tm=0,Io=null,or=null,em=0,Cs=1/0,jn=null,bu=!1,ep=null,Ti=null,ac=!1,vi=null,wu=0,Ro=0,rp=null,Fc=-1,Pc=0;function Qe(){return $t&6?oe():Fc!==-1?Fc:Fc=oe()}function Ei(t){return t.mode&1?$t&2&&Te!==0?Te&-Te:ZM.transition!==null?(Pc===0&&(Pc=ub()),Pc):(t=Dt,t!==0||(t=window.event,t=t===void 0?16:yb(t.type)),t):1}function tn(t,e,r,n){if(50<Ro)throw Ro=0,rp=null,Error(U(185));El(t,r,n),(!($t&2)||t!==we)&&(t===we&&(!($t&2)&&(bh|=r),me===4&&yi(t,Te)),pr(t,n),r===1&&$t===0&&!(e.mode&1)&&(Cs=oe()+500,mh&&Oi()))}function pr(t,e){var r=t.callbackNode;ZL(t,e);var n=iu(t,t===we?Te:0);if(n===0)r!==null&&Xy(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&Xy(r),e===1)t.tag===0?KM(j0.bind(null,t)):Ib(j0.bind(null,t)),YM(function(){!($t&6)&&Oi()}),r=null;else{switch(hb(n)){case 1:r=Eg;break;case 4:r=lb;break;case 16:r=nu;break;case 536870912:r=cb;break;default:r=nu}r=Fw(r,Ew.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function Ew(t,e){if(Fc=-1,Pc=0,$t&6)throw Error(U(327));var r=t.callbackNode;if(rs()&&t.callbackNode!==r)return null;var n=iu(t,t===we?Te:0);if(n===0)return null;if(n&30||n&t.expiredLanes||e)e=ku(t,n);else{e=n;var i=$t;$t|=2;var a=Mw();(we!==t||Te!==e)&&(jn=null,Cs=oe()+500,aa(t,e));do try{xA();break}catch(o){Lw(t,o)}while(!0);zg(),vu.current=a,$t=i,he!==null?e=0:(we=null,Te=0,e=me)}if(e!==0){if(e===2&&(i=Mf(t),i!==0&&(n=i,e=np(t,i))),e===1)throw r=ul,aa(t,0),yi(t,n),pr(t,oe()),r;if(e===6)yi(t,n);else{if(i=t.current.alternate,!(n&30)&&!mA(i)&&(e=ku(t,n),e===2&&(a=Mf(t),a!==0&&(n=a,e=np(t,a))),e===1))throw r=ul,aa(t,0),yi(t,n),pr(t,oe()),r;switch(t.finishedWork=i,t.finishedLanes=n,e){case 0:case 1:throw Error(U(345));case 2:Vi(t,or,jn);break;case 3:if(yi(t,n),(n&130023424)===n&&(e=em+500-oe(),10<e)){if(iu(t,0)!==0)break;if(i=t.suspendedLanes,(i&n)!==n){Qe(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=Rf(Vi.bind(null,t,or,jn),e);break}Vi(t,or,jn);break;case 4:if(yi(t,n),(n&4194240)===n)break;for(e=t.eventTimes,i=-1;0<n;){var s=31-Jr(n);a=1<<s,s=e[s],s>i&&(i=s),n&=~a}if(n=i,n=oe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*gA(n/1960))-n,10<n){t.timeoutHandle=Rf(Vi.bind(null,t,or,jn),n);break}Vi(t,or,jn);break;case 5:Vi(t,or,jn);break;default:throw Error(U(329))}}}return pr(t,oe()),t.callbackNode===r?Ew.bind(null,t):null}function np(t,e){var r=Io;return t.current.memoizedState.isDehydrated&&(aa(t,e).flags|=256),t=ku(t,e),t!==2&&(e=or,or=r,e!==null&&ip(e)),t}function ip(t){or===null?or=t:or.push.apply(or,t)}function mA(t){for(var e=t;;){if(e.flags&16384){var r=e.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!nn(a(),i))return!1}catch{return!1}}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function yi(t,e){for(e&=~tm,e&=~bh,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-Jr(e),n=1<<r;t[r]=-1,e&=~n}}function j0(t){if($t&6)throw Error(U(327));rs();var e=iu(t,0);if(!(e&1))return pr(t,oe()),null;var r=ku(t,e);if(t.tag!==0&&r===2){var n=Mf(t);n!==0&&(e=n,r=np(t,n))}if(r===1)throw r=ul,aa(t,0),yi(t,e),pr(t,oe()),r;if(r===6)throw Error(U(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Vi(t,or,jn),pr(t,oe()),null}function rm(t,e){var r=$t;$t|=1;try{return t(e)}finally{$t=r,$t===0&&(Cs=oe()+500,mh&&Oi())}}function fa(t){vi!==null&&vi.tag===0&&!($t&6)&&rs();var e=$t;$t|=1;var r=Dr.transition,n=Dt;try{if(Dr.transition=null,Dt=1,t)return t()}finally{Dt=n,Dr.transition=r,$t=e,!($t&6)&&Oi()}}function nm(){Cr=Xa.current,Qt(Xa)}function aa(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,VM(r)),he!==null)for(r=he.return;r!==null;){var n=r;switch(Rg(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&cu();break;case 3:ws(),Qt(dr),Qt(Re),Vg();break;case 5:Ug(n);break;case 4:ws();break;case 13:Qt(ee);break;case 19:Qt(ee);break;case 10:jg(n.type._context);break;case 22:case 23:nm()}r=r.return}if(we=t,he=t=Li(t.current,null),Te=Cr=e,me=0,ul=null,tm=bh=da=0,or=Io=null,Zi!==null){for(e=0;e<Zi.length;e++)if(r=Zi[e],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,a=r.pending;if(a!==null){var s=a.next;a.next=i,n.next=s}r.pending=n}Zi=null}return t}function Lw(t,e){do{var r=he;try{if(zg(),Bc.current=xu,yu){for(var n=re.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}yu=!1}if(ha=0,ve=pe=re=null,Fo=!1,ol=0,Jg.current=null,r===null||r.return===null){me=1,ul=e,he=null;break}t:{var a=t,s=r.return,o=r,l=e;if(e=Te,o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=o,h=u.tag;if(!(u.mode&1)&&(h===0||h===11||h===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var d=L0(s);if(d!==null){d.flags&=-257,M0(d,s,o,a,e),d.mode&1&&E0(a,c,e),e=d,l=c;var p=e.updateQueue;if(p===null){var g=new Set;g.add(l),e.updateQueue=g}else p.add(l);break t}else{if(!(e&1)){E0(a,c,e),im();break t}l=Error(U(426))}}else if(te&&o.mode&1){var v=L0(s);if(v!==null){!(v.flags&65536)&&(v.flags|=256),M0(v,s,o,a,e),Og(ks(l,o));break t}}a=l=ks(l,o),me!==4&&(me=2),Io===null?Io=[a]:Io.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,e&=-e,a.lanes|=e;var m=hw(a,l,e);w0(a,m);break t;case 1:o=l;var y=a.type,b=a.stateNode;if(!(a.flags&128)&&(typeof y.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Ti===null||!Ti.has(b)))){a.flags|=65536,e&=-e,a.lanes|=e;var S=dw(a,o,e);w0(a,S);break t}}a=a.return}while(a!==null)}Bw(r)}catch(_){e=_,he===r&&r!==null&&(he=r=r.return);continue}break}while(!0)}function Mw(){var t=vu.current;return vu.current=xu,t===null?xu:t}function im(){(me===0||me===3||me===2)&&(me=4),we===null||!(da&268435455)&&!(bh&268435455)||yi(we,Te)}function ku(t,e){var r=$t;$t|=2;var n=Mw();(we!==t||Te!==e)&&(jn=null,aa(t,e));do try{yA();break}catch(i){Lw(t,i)}while(!0);if(zg(),$t=r,vu.current=n,he!==null)throw Error(U(261));return we=null,Te=0,me}function yA(){for(;he!==null;)Aw(he)}function xA(){for(;he!==null&&!WL();)Aw(he)}function Aw(t){var e=$w(t.alternate,t,Cr);t.memoizedProps=t.pendingProps,e===null?Bw(t):he=e,Jg.current=null}function Bw(t){var e=t;do{var r=e.alternate;if(t=e.return,e.flags&32768){if(r=hA(r,e),r!==null){r.flags&=32767,he=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{me=6,he=null;return}}else if(r=uA(r,e,Cr),r!==null){he=r;return}if(e=e.sibling,e!==null){he=e;return}he=e=t}while(e!==null);me===0&&(me=5)}function Vi(t,e,r){var n=Dt,i=Dr.transition;try{Dr.transition=null,Dt=1,vA(t,e,r,n)}finally{Dr.transition=i,Dt=n}return null}function vA(t,e,r,n){do rs();while(vi!==null);if($t&6)throw Error(U(327));r=t.finishedWork;var i=t.finishedLanes;if(r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(U(177));t.callbackNode=null,t.callbackPriority=0;var a=r.lanes|r.childLanes;if(JL(t,a),t===we&&(he=we=null,Te=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||ac||(ac=!0,Fw(nu,function(){return rs(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=Dr.transition,Dr.transition=null;var s=Dt;Dt=1;var o=$t;$t|=4,Jg.current=null,fA(t,r),_w(r,t),DM(Pf),au=!!Ff,Pf=Ff=null,t.current=r,pA(r),qL(),$t=o,Dt=s,Dr.transition=a}else t.current=r;if(ac&&(ac=!1,vi=t,wu=i),a=t.pendingLanes,a===0&&(Ti=null),YL(r.stateNode),pr(t,oe()),e!==null)for(n=t.onRecoverableError,r=0;r<e.length;r++)i=e[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(bu)throw bu=!1,t=ep,ep=null,t;return wu&1&&t.tag!==0&&rs(),a=t.pendingLanes,a&1?t===rp?Ro++:(Ro=0,rp=t):Ro=0,Oi(),null}function rs(){if(vi!==null){var t=hb(wu),e=Dr.transition,r=Dt;try{if(Dr.transition=null,Dt=16>t?16:t,vi===null)var n=!1;else{if(t=vi,vi=null,wu=0,$t&6)throw Error(U(331));var i=$t;for($t|=4,rt=t.current;rt!==null;){var a=rt,s=a.child;if(rt.flags&16){var o=a.deletions;if(o!==null){for(var l=0;l<o.length;l++){var c=o[l];for(rt=c;rt!==null;){var u=rt;switch(u.tag){case 0:case 11:case 15:Po(8,u,a)}var h=u.child;if(h!==null)h.return=u,rt=h;else for(;rt!==null;){u=rt;var f=u.sibling,d=u.return;if(kw(u),u===c){rt=null;break}if(f!==null){f.return=d,rt=f;break}rt=d}}}var p=a.alternate;if(p!==null){var g=p.child;if(g!==null){p.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(g!==null)}}rt=a}}if(a.subtreeFlags&2064&&s!==null)s.return=a,rt=s;else t:for(;rt!==null;){if(a=rt,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Po(9,a,a.return)}var m=a.sibling;if(m!==null){m.return=a.return,rt=m;break t}rt=a.return}}var y=t.current;for(rt=y;rt!==null;){s=rt;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,rt=b;else t:for(s=y;rt!==null;){if(o=rt,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:vh(9,o)}}catch(_){ae(o,o.return,_)}if(o===s){rt=null;break t}var S=o.sibling;if(S!==null){S.return=o.return,rt=S;break t}rt=o.return}}if($t=i,Oi(),wn&&typeof wn.onPostCommitFiberRoot=="function")try{wn.onPostCommitFiberRoot(hh,t)}catch{}n=!0}return n}finally{Dt=r,Dr.transition=e}}return!1}function H0(t,e,r){e=ks(r,e),e=hw(t,e,1),t=_i(t,e,1),e=Qe(),t!==null&&(El(t,1,e),pr(t,e))}function ae(t,e,r){if(t.tag===3)H0(t,t,r);else for(;e!==null;){if(e.tag===3){H0(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Ti===null||!Ti.has(n))){t=ks(r,t),t=dw(e,t,1),e=_i(e,t,1),t=Qe(),e!==null&&(El(e,1,t),pr(e,t));break}}e=e.return}}function bA(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=Qe(),t.pingedLanes|=t.suspendedLanes&r,we===t&&(Te&r)===r&&(me===4||me===3&&(Te&130023424)===Te&&500>oe()-em?aa(t,0):tm|=r),pr(t,e)}function Nw(t,e){e===0&&(t.mode&1?(e=Xl,Xl<<=1,!(Xl&130023424)&&(Xl=4194304)):e=1);var r=Qe();t=Zn(t,e),t!==null&&(El(t,e,r),pr(t,r))}function wA(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),Nw(t,r)}function kA(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,i=t.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(U(314))}n!==null&&n.delete(e),Nw(t,r)}var $w;$w=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||dr.current)ur=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return ur=!1,cA(t,e,r);ur=!!(t.flags&131072)}else ur=!1,te&&e.flags&1048576&&Rb(e,du,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;$c(t,e),t=e.pendingProps;var i=xs(e,Re.current);es(e,r),i=Gg(null,e,n,t,i,r);var a=Xg();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,fr(n)?(a=!0,uu(e)):a=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Wg(e),i.updater=xh,e.stateNode=i,i._reactInternals=e,qf(e,n,t,r),e=Yf(null,e,n,!0,a,r)):(e.tag=0,te&&a&&Ig(e),Ve(null,e,i,r),e=e.child),e;case 16:n=e.elementType;t:{switch($c(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=SA(n),t=Xr(n,t),i){case 0:e=Vf(null,e,n,t,r);break t;case 1:e=N0(null,e,n,t,r);break t;case 11:e=A0(null,e,n,t,r);break t;case 14:e=B0(null,e,n,Xr(n.type,t),r);break t}throw Error(U(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Xr(n,i),Vf(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Xr(n,i),N0(t,e,n,i,r);case 3:t:{if(mw(e),t===null)throw Error(U(387));n=e.pendingProps,a=e.memoizedState,i=a.element,Wb(t,e),gu(e,n,null,r);var s=e.memoizedState;if(n=s.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},e.updateQueue.baseState=a,e.memoizedState=a,e.flags&256){i=ks(Error(U(423)),e),e=$0(t,e,n,r,i);break t}else if(n!==i){i=ks(Error(U(424)),e),e=$0(t,e,n,r,i);break t}else for(Sr=Si(e.stateNode.containerInfo.firstChild),Tr=e,te=!0,Kr=null,r=jb(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(vs(),n===i){e=Jn(t,e,r);break t}Ve(t,e,n,r)}e=e.child}return e;case 5:return qb(e),t===null&&jf(e),n=e.type,i=e.pendingProps,a=t!==null?t.memoizedProps:null,s=i.children,If(n,i)?s=null:a!==null&&If(n,a)&&(e.flags|=32),gw(t,e),Ve(t,e,s,r),e.child;case 6:return t===null&&jf(e),null;case 13:return yw(t,e,r);case 4:return qg(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=bs(e,null,n,r):Ve(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Xr(n,i),A0(t,e,n,i,r);case 7:return Ve(t,e,e.pendingProps,r),e.child;case 8:return Ve(t,e,e.pendingProps.children,r),e.child;case 12:return Ve(t,e,e.pendingProps.children,r),e.child;case 10:t:{if(n=e.type._context,i=e.pendingProps,a=e.memoizedProps,s=i.value,Ut(fu,n._currentValue),n._currentValue=s,a!==null)if(nn(a.value,s)){if(a.children===i.children&&!dr.current){e=Jn(t,e,r);break t}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){s=a.child;for(var l=o.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=Yn(-1,r&-r),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),Hf(a.return,r,e),o.lanes|=r;break}l=l.next}}else if(a.tag===10)s=a.type===e.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(U(341));s.lanes|=r,o=s.alternate,o!==null&&(o.lanes|=r),Hf(s,r,e),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Ve(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,es(e,r),i=zr(i),n=n(i),e.flags|=1,Ve(t,e,n,r),e.child;case 14:return n=e.type,i=Xr(n,e.pendingProps),i=Xr(n.type,i),B0(t,e,n,i,r);case 15:return fw(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Xr(n,i),$c(t,e),e.tag=1,fr(n)?(t=!0,uu(e)):t=!1,es(e,r),uw(e,n,i),qf(e,n,i,r),Yf(null,e,n,!0,t,r);case 19:return xw(t,e,r);case 22:return pw(t,e,r)}throw Error(U(156,e.tag))};function Fw(t,e){return ob(t,e)}function CA(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Or(t,e,r,n){return new CA(t,e,r,n)}function am(t){return t=t.prototype,!(!t||!t.isReactComponent)}function SA(t){if(typeof t=="function")return am(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Sg)return 11;if(t===_g)return 14}return 2}function Li(t,e){var r=t.alternate;return r===null?(r=Or(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Ic(t,e,r,n,i,a){var s=2;if(n=t,typeof t=="function")am(t)&&(s=1);else if(typeof t=="string")s=5;else t:switch(t){case Da:return sa(r.children,i,a,e);case Cg:s=8,i|=8;break;case pf:return t=Or(12,r,e,i|2),t.elementType=pf,t.lanes=a,t;case gf:return t=Or(13,r,e,i),t.elementType=gf,t.lanes=a,t;case mf:return t=Or(19,r,e,i),t.elementType=mf,t.lanes=a,t;case qv:return wh(r,i,a,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Hv:s=10;break t;case Wv:s=9;break t;case Sg:s=11;break t;case _g:s=14;break t;case fi:s=16,n=null;break t}throw Error(U(130,t==null?t:typeof t,""))}return e=Or(s,r,e,i),e.elementType=t,e.type=n,e.lanes=a,e}function sa(t,e,r,n){return t=Or(7,t,n,e),t.lanes=r,t}function wh(t,e,r,n){return t=Or(22,t,n,e),t.elementType=qv,t.lanes=r,t.stateNode={isHidden:!1},t}function Bd(t,e,r){return t=Or(6,t,null,e),t.lanes=r,t}function Nd(t,e,r){return e=Or(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function _A(t,e,r,n,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dd(0),this.expirationTimes=dd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dd(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function sm(t,e,r,n,i,a,s,o,l){return t=new _A(t,e,r,o,l),e===1?(e=1,a===!0&&(e|=8)):e=0,a=Or(3,null,null,e),t.current=a,a.stateNode=t,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wg(a),t}function TA(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Oa,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function Pw(t){if(!t)return Bi;t=t._reactInternals;t:{if(ka(t)!==t||t.tag!==1)throw Error(U(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break t;case 1:if(fr(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break t}}e=e.return}while(e!==null);throw Error(U(171))}if(t.tag===1){var r=t.type;if(fr(r))return Pb(t,r,e)}return e}function Iw(t,e,r,n,i,a,s,o,l){return t=sm(r,n,!0,t,i,a,s,o,l),t.context=Pw(null),r=t.current,n=Qe(),i=Ei(r),a=Yn(n,i),a.callback=e??null,_i(r,a,i),t.current.lanes=i,El(t,i,n),pr(t,n),t}function kh(t,e,r,n){var i=e.current,a=Qe(),s=Ei(i);return r=Pw(r),e.context===null?e.context=r:e.pendingContext=r,e=Yn(a,s),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=_i(i,e,s),t!==null&&(tn(t,i,s,a),Ac(t,i,s)),s}function Cu(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function W0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function om(t,e){W0(t,e),(t=t.alternate)&&W0(t,e)}function EA(){return null}var Rw=typeof reportError=="function"?reportError:function(t){console.error(t)};function lm(t){this._internalRoot=t}Ch.prototype.render=lm.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(U(409));kh(t,e,null,null)};Ch.prototype.unmount=lm.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;fa(function(){kh(null,t,null,null)}),e[Kn]=null}};function Ch(t){this._internalRoot=t}Ch.prototype.unstable_scheduleHydration=function(t){if(t){var e=pb();t={blockedOn:null,target:t,priority:e};for(var r=0;r<mi.length&&e!==0&&e<mi[r].priority;r++);mi.splice(r,0,t),r===0&&mb(t)}};function cm(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Sh(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function q0(){}function LA(t,e,r,n,i){if(i){if(typeof n=="function"){var a=n;n=function(){var c=Cu(s);a.call(c)}}var s=Iw(e,n,t,0,null,!1,!1,"",q0);return t._reactRootContainer=s,t[Kn]=s.current,rl(t.nodeType===8?t.parentNode:t),fa(),s}for(;i=t.lastChild;)t.removeChild(i);if(typeof n=="function"){var o=n;n=function(){var c=Cu(l);o.call(c)}}var l=sm(t,0,!1,null,null,!1,!1,"",q0);return t._reactRootContainer=l,t[Kn]=l.current,rl(t.nodeType===8?t.parentNode:t),fa(function(){kh(e,l,r,n)}),l}function _h(t,e,r,n,i){var a=r._reactRootContainer;if(a){var s=a;if(typeof i=="function"){var o=i;i=function(){var l=Cu(s);o.call(l)}}kh(e,s,t,i)}else s=LA(r,e,t,i,n);return Cu(s)}db=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=bo(e.pendingLanes);r!==0&&(Lg(e,r|1),pr(e,oe()),!($t&6)&&(Cs=oe()+500,Oi()))}break;case 13:fa(function(){var n=Zn(t,1);if(n!==null){var i=Qe();tn(n,t,1,i)}}),om(t,1)}};Mg=function(t){if(t.tag===13){var e=Zn(t,134217728);if(e!==null){var r=Qe();tn(e,t,134217728,r)}om(t,134217728)}};fb=function(t){if(t.tag===13){var e=Ei(t),r=Zn(t,e);if(r!==null){var n=Qe();tn(r,t,e,n)}om(t,e)}};pb=function(){return Dt};gb=function(t,e){var r=Dt;try{return Dt=t,e()}finally{Dt=r}};Tf=function(t,e,r){switch(e){case"input":if(vf(t,r),e=r.name,r.type==="radio"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var i=gh(n);if(!i)throw Error(U(90));Vv(n),vf(n,i)}}}break;case"textarea":Gv(t,r);break;case"select":e=r.value,e!=null&&Ka(t,!!r.multiple,e,!1)}};eb=rm;rb=fa;var MA={usingClientEntryPoint:!1,Events:[Ml,Wa,gh,Jv,tb,rm]},to={findFiberByHostInstance:Ki,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},AA={bundleType:to.bundleType,version:to.version,rendererPackageName:to.rendererPackageName,rendererConfig:to.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ri.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=ab(t),t===null?null:t.stateNode},findFiberByHostInstance:to.findFiberByHostInstance||EA,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sc.isDisabled&&sc.supportsFiber)try{hh=sc.inject(AA),wn=sc}catch{}}Ar.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=MA;Ar.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cm(e))throw Error(U(200));return TA(t,e,null,r)};Ar.createRoot=function(t,e){if(!cm(t))throw Error(U(299));var r=!1,n="",i=Rw;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=sm(t,1,!1,null,null,r,!1,n,i),t[Kn]=e.current,rl(t.nodeType===8?t.parentNode:t),new lm(e)};Ar.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(U(188)):(t=Object.keys(t).join(","),Error(U(268,t)));return t=ab(e),t=t===null?null:t.stateNode,t};Ar.flushSync=function(t){return fa(t)};Ar.hydrate=function(t,e,r){if(!Sh(e))throw Error(U(200));return _h(null,t,e,!0,r)};Ar.hydrateRoot=function(t,e,r){if(!cm(t))throw Error(U(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",s=Rw;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),e=Iw(e,null,t,1,r??null,i,!1,a,s),t[Kn]=e.current,rl(t),n)for(t=0;t<n.length;t++)r=n[t],i=r._getVersion,i=i(r._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[r,i]:e.mutableSourceEagerHydrationData.push(r,i);return new Ch(e)};Ar.render=function(t,e,r){if(!Sh(e))throw Error(U(200));return _h(null,t,e,!1,r)};Ar.unmountComponentAtNode=function(t){if(!Sh(t))throw Error(U(40));return t._reactRootContainer?(fa(function(){_h(null,null,t,!1,function(){t._reactRootContainer=null,t[Kn]=null})}),!0):!1};Ar.unstable_batchedUpdates=rm;Ar.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!Sh(r))throw Error(U(200));if(t==null||t._reactInternals===void 0)throw Error(U(38));return _h(t,e,r,!1,n)};Ar.version="18.3.1-next-f1338f8080-20240426";function Ow(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ow)}catch(t){console.error(t)}}Ow(),Ov.exports=Ar;var Dw=Ov.exports;const BA=_l(Dw);var zw,U0=Dw;zw=U0.createRoot,U0.hydrateRoot;const NA={theme:"system",setTheme:()=>null},jw=Q.createContext(NA);function $A({children:t,defaultTheme:e="system",storageKey:r="vite-ui-theme",attribute:n="class",enableSystem:i=!0,disableTransitionOnChange:a=!1,...s}){const[o,l]=Q.useState(()=>localStorage.getItem(r)||e);Q.useEffect(()=>{const u=window.document.documentElement;if(u.classList.remove("light","dark"),o==="system"&&i){const h=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";u.classList.add(h);return}u.classList.add(o)},[o,i]);const c={theme:o,setTheme:u=>{localStorage.setItem(r,u),l(u)}};return k.jsx(jw.Provider,{...s,value:c,children:t})}const FA=()=>{const t=Q.useContext(jw);if(t===void 0)throw new Error("useTheme must be used within a ThemeProvider");return t};/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const PA=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Hw=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var IA={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const RA=Q.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:i="",children:a,iconNode:s,...o},l)=>Q.createElement("svg",{ref:l,...IA,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:Hw("lucide",i),...o},[...s.map(([c,u])=>Q.createElement(c,u)),...Array.isArray(a)?a:[a]]));/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ht=(t,e)=>{const r=Q.forwardRef(({className:n,...i},a)=>Q.createElement(RA,{ref:a,iconNode:e,className:Hw(`lucide-${PA(t)}`,n),...i}));return r.displayName=`${t}`,r};/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Su=Ht("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const OA=Ht("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ww=Ht("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const DA=Ht("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zA=Ht("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jA=Ht("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _u=Ht("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const V0=Ht("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const HA=Ht("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qw=Ht("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const WA=Ht("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Uw=Ht("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qA=Ht("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const UA=Ht("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Y0=Ht("Move",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m15 19-3 3-3-3",key:"11eu04"}],["path",{d:"m19 9 3 3-3 3",key:"1mg7y2"}],["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"m5 9-3 3 3 3",key:"j64kie"}],["path",{d:"m9 5 3-3 3 3",key:"l8vdw6"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const VA=Ht("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const YA=Ht("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oc=Ht("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const G0=Ht("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const GA=Ht("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const XA=Ht("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const QA=Ht("Ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vw=Ht("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yw=Ht("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const KA=Ht("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const X0=Ht("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);/**
* @license lucide-react v0.454.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Q0=Ht("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);function ZA(){const{theme:t,setTheme:e}=FA(),[r,n]=Q.useState(!1),[i,a]=Q.useState(!1);if(Q.useEffect(()=>{n(!0)},[]),!r)return k.jsx("div",{className:"p-2 w-9 h-9"});const s=t==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t,o=()=>{e(t==="light"?"dark":t==="dark"?"system":"light")},l=()=>t==="system"?k.jsx(qA,{className:"h-5 w-5"}):t==="dark"||s==="dark"?k.jsx(XA,{className:"h-5 w-5"}):k.jsx(UA,{className:"h-5 w-5"}),c=()=>t==="light"?"Switch to dark mode":t==="dark"?"Switch to system mode":"Switch to light mode";return k.jsxs("div",{className:"relative",onMouseEnter:()=>a(!0),onMouseLeave:()=>a(!1),children:[k.jsx("button",{onClick:o,className:"p-2 text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 hover:bg-gray-100 dark:hover:bg-gray-800 rounded transition-colors",title:c(),children:l()}),i&&k.jsxs("div",{className:"absolute top-full mt-2 right-0 z-50 bg-white dark:bg-zinc-800 text-card-foreground border border-border rounded-md shadow-lg p-3 min-w-[200px]",children:[k.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Theme Mode"}),k.jsxs("p",{className:"text-sm font-medium",children:["Current: ",t==="system"?"System":t==="dark"?"Dark":"Light"]}),k.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Click to cycle: Light → Dark → System"})]})]})}function K0(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function JA(...t){return e=>{let r=!1;const n=t.map(i=>{const a=K0(i,e);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():K0(t[i],null)}}}}var Gw=Q.forwardRef((t,e)=>{const{children:r,...n}=t,i=Q.Children.toArray(r),a=i.find(e3);if(a){const s=a.props.children,o=i.map(l=>l===a?Q.Children.count(s)>1?Q.Children.only(null):Q.isValidElement(s)?s.props.children:null:l);return k.jsx(ap,{...n,ref:e,children:Q.isValidElement(s)?Q.cloneElement(s,void 0,o):null})}return k.jsx(ap,{...n,ref:e,children:r})});Gw.displayName="Slot";var ap=Q.forwardRef((t,e)=>{const{children:r,...n}=t;if(Q.isValidElement(r)){const i=n3(r);return Q.cloneElement(r,{...r3(n,r.props),ref:e?JA(e,i):i})}return Q.Children.count(r)>1?Q.Children.only(null):null});ap.displayName="SlotClone";var t3=({children:t})=>k.jsx(k.Fragment,{children:t});function e3(t){return Q.isValidElement(t)&&t.type===t3}function r3(t,e){const r={...e};for(const n in e){const i=t[n],a=e[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...o)=>{a(...o),i(...o)}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...t,...r}}function n3(t){var n,i;let e=(n=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:n.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=(i=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:i.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}function Xw(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=Xw(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Qw(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=Xw(t))&&(n&&(n+=" "),n+=e);return n}const Z0=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,J0=Qw,i3=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return J0(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:a}=e,s=Object.keys(i).map(c=>{const u=r==null?void 0:r[c],h=a==null?void 0:a[c];if(u===null)return null;const f=Z0(u)||Z0(h);return i[c][f]}),o=r&&Object.entries(r).reduce((c,u)=>{let[h,f]=u;return f===void 0||(c[h]=f),c},{}),l=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:h,className:f,...d}=u;return Object.entries(d).every(p=>{let[g,v]=p;return Array.isArray(v)?v.includes({...a,...o}[g]):{...a,...o}[g]===v})?[...c,h,f]:c},[]);return J0(t,s,l,r==null?void 0:r.class,r==null?void 0:r.className)},um="-",a3=t=>{const e=o3(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:s=>{const o=s.split(um);return o[0]===""&&o.length!==1&&o.shift(),Kw(o,e)||s3(s)},getConflictingClassGroupIds:(s,o)=>{const l=r[s]||[];return o&&n[s]?[...l,...n[s]]:l}}},Kw=(t,e)=>{var s;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),i=n?Kw(t.slice(1),n):void 0;if(i)return i;if(e.validators.length===0)return;const a=t.join(um);return(s=e.validators.find(({validator:o})=>o(a)))==null?void 0:s.classGroupId},tx=/^\[(.+)\]$/,s3=t=>{if(tx.test(t)){const e=tx.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},o3=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return c3(Object.entries(t.classGroups),r).forEach(([a,s])=>{sp(s,n,a,e)}),n},sp=(t,e,r,n)=>{t.forEach(i=>{if(typeof i=="string"){const a=i===""?e:ex(e,i);a.classGroupId=r;return}if(typeof i=="function"){if(l3(i)){sp(i(n),e,r,n);return}e.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,s])=>{sp(s,ex(e,a),r,n)})})},ex=(t,e)=>{let r=t;return e.split(um).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},l3=t=>t.isThemeGetter,c3=(t,e)=>e?t.map(([r,n])=>{const i=n.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,o])=>[e+s,o])):a);return[r,i]}):t,u3=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const i=(a,s)=>{r.set(a,s),e++,e>t&&(e=0,n=r,r=new Map)};return{get(a){let s=r.get(a);if(s!==void 0)return s;if((s=n.get(a))!==void 0)return i(a,s),s},set(a,s){r.has(a)?r.set(a,s):i(a,s)}}},Zw="!",h3=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,i=e[0],a=e.length,s=o=>{const l=[];let c=0,u=0,h;for(let v=0;v<o.length;v++){let m=o[v];if(c===0){if(m===i&&(n||o.slice(v,v+a)===e)){l.push(o.slice(u,v)),u=v+a;continue}if(m==="/"){h=v;continue}}m==="["?c++:m==="]"&&c--}const f=l.length===0?o:o.substring(u),d=f.startsWith(Zw),p=d?f.substring(1):f,g=h&&h>u?h-u:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:g}};return r?o=>r({className:o,parseClassName:s}):s},d3=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},f3=t=>({cache:u3(t.cacheSize),parseClassName:h3(t),...a3(t)}),p3=/\s+/,g3=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=e,a=[],s=t.trim().split(p3);let o="";for(let l=s.length-1;l>=0;l-=1){const c=s[l],{modifiers:u,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:d}=r(c);let p=!!d,g=n(p?f.substring(0,d):f);if(!g){if(!p){o=c+(o.length>0?" "+o:o);continue}if(g=n(f),!g){o=c+(o.length>0?" "+o:o);continue}p=!1}const v=d3(u).join(":"),m=h?v+Zw:v,y=m+g;if(a.includes(y))continue;a.push(y);const b=i(g,p);for(let S=0;S<b.length;++S){const _=b[S];a.push(m+_)}o=c+(o.length>0?" "+o:o)}return o};function m3(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Jw(e))&&(n&&(n+=" "),n+=r);return n}const Jw=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Jw(t[n]))&&(r&&(r+=" "),r+=e);return r};function y3(t,...e){let r,n,i,a=s;function s(l){const c=e.reduce((u,h)=>h(u),t());return r=f3(c),n=r.cache.get,i=r.cache.set,a=o,o(l)}function o(l){const c=n(l);if(c)return c;const u=g3(l,r);return i(l,u),u}return function(){return a(m3.apply(null,arguments))}}const Yt=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},tk=/^\[(?:([a-z-]+):)?(.+)\]$/i,x3=/^\d+\/\d+$/,v3=new Set(["px","full","screen"]),b3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,w3=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,k3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,C3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,S3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pn=t=>ns(t)||v3.has(t)||x3.test(t),ci=t=>Rs(t,"length",N3),ns=t=>!!t&&!Number.isNaN(Number(t)),$d=t=>Rs(t,"number",ns),eo=t=>!!t&&Number.isInteger(Number(t)),_3=t=>t.endsWith("%")&&ns(t.slice(0,-1)),wt=t=>tk.test(t),ui=t=>b3.test(t),T3=new Set(["length","size","percentage"]),E3=t=>Rs(t,T3,ek),L3=t=>Rs(t,"position",ek),M3=new Set(["image","url"]),A3=t=>Rs(t,M3,F3),B3=t=>Rs(t,"",$3),ro=()=>!0,Rs=(t,e,r)=>{const n=tk.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},N3=t=>w3.test(t)&&!k3.test(t),ek=()=>!1,$3=t=>C3.test(t),F3=t=>S3.test(t),P3=()=>{const t=Yt("colors"),e=Yt("spacing"),r=Yt("blur"),n=Yt("brightness"),i=Yt("borderColor"),a=Yt("borderRadius"),s=Yt("borderSpacing"),o=Yt("borderWidth"),l=Yt("contrast"),c=Yt("grayscale"),u=Yt("hueRotate"),h=Yt("invert"),f=Yt("gap"),d=Yt("gradientColorStops"),p=Yt("gradientColorStopPositions"),g=Yt("inset"),v=Yt("margin"),m=Yt("opacity"),y=Yt("padding"),b=Yt("saturate"),S=Yt("scale"),_=Yt("sepia"),w=Yt("skew"),T=Yt("space"),N=Yt("translate"),z=()=>["auto","contain","none"],I=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",wt,e],R=()=>[wt,e],j=()=>["",Pn,ci],P=()=>["auto",ns,wt],$=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],M=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],L=()=>["start","end","center","between","around","evenly","stretch"],F=()=>["","0",wt],C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[ns,wt];return{cacheSize:500,separator:":",theme:{colors:[ro],spacing:[Pn,ci],blur:["none","",ui,wt],brightness:W(),borderColor:[t],borderRadius:["none","","full",ui,wt],borderSpacing:R(),borderWidth:j(),contrast:W(),grayscale:F(),hueRotate:W(),invert:F(),gap:R(),gradientColorStops:[t],gradientColorStopPositions:[_3,ci],inset:A(),margin:A(),opacity:W(),padding:R(),saturate:W(),scale:W(),sepia:F(),skew:W(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",wt]}],container:["container"],columns:[{columns:[ui]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...$(),wt]}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",eo,wt]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",wt]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",eo,wt]}],"grid-cols":[{"grid-cols":[ro]}],"col-start-end":[{col:["auto",{span:["full",eo,wt]},wt]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[ro]}],"row-start-end":[{row:["auto",{span:[eo,wt]},wt]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",wt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",wt]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...L()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...L(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...L(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",wt,e]}],"min-w":[{"min-w":[wt,e,"min","max","fit"]}],"max-w":[{"max-w":[wt,e,"none","full","min","max","fit","prose",{screen:[ui]},ui]}],h:[{h:[wt,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[wt,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[wt,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[wt,e,"auto","min","max","fit"]}],"font-size":[{text:["base",ui,ci]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$d]}],"font-family":[{font:[ro]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",wt]}],"line-clamp":[{"line-clamp":["none",ns,$d]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Pn,wt]}],"list-image":[{"list-image":["none",wt]}],"list-style-type":[{list:["none","disc","decimal",wt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...M(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Pn,ci]}],"underline-offset":[{"underline-offset":["auto",Pn,wt]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",wt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",wt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$(),L3]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",E3]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},A3]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[...M(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:M()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...M()]}],"outline-offset":[{"outline-offset":[Pn,wt]}],"outline-w":[{outline:[Pn,ci]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:j()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[Pn,ci]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",ui,B3]}],"shadow-color":[{shadow:[ro]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":[...D(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ui,wt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[b]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",wt]}],duration:[{duration:W()}],ease:[{ease:["linear","in","out","in-out",wt]}],delay:[{delay:W()}],animate:[{animate:["none","spin","ping","pulse","bounce",wt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[eo,wt]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",wt]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",wt]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",wt]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[Pn,ci,$d]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},I3=y3(P3);function R3(...t){return I3(Qw(t))}const O3=i3("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),hl=Q.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...i},a)=>{const s=n?Gw:"button";return k.jsx(s,{className:R3(O3({variant:e,size:r,className:t})),ref:a,...i})});hl.displayName="Button";var D3=t=>{switch(t){case"success":return H3;case"info":return q3;case"warning":return W3;case"error":return U3;default:return null}},z3=Array(12).fill(0),j3=({visible:t,className:e})=>Z.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},Z.createElement("div",{className:"sonner-spinner"},z3.map((r,n)=>Z.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),H3=Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Z.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),W3=Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Z.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),q3=Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Z.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),U3=Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Z.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),V3=Z.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Z.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Z.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Y3=()=>{let[t,e]=Z.useState(document.hidden);return Z.useEffect(()=>{let r=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),t},op=1,G3=class{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{let e=this.subscribers.indexOf(t);this.subscribers.splice(e,1)}),this.publish=t=>{this.subscribers.forEach(e=>e(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var e;let{message:r,...n}=t,i=typeof(t==null?void 0:t.id)=="number"||((e=t.id)==null?void 0:e.length)>0?t.id:op++,a=this.toasts.find(o=>o.id===i),s=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),a?this.toasts=this.toasts.map(o=>o.id===i?(this.publish({...o,...t,id:i,title:r}),{...o,...t,id:i,dismissible:s,title:r}):o):this.addToast({title:r,...n,dismissible:s,id:i}),i},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(r=>r({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let r;e.loading!==void 0&&(r=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let n=t instanceof Promise?t:t(),i=r!==void 0,a,s=n.then(async l=>{if(a=["resolve",l],Z.isValidElement(l))i=!1,this.create({id:r,type:"default",message:l});else if(Q3(l)&&!l.ok){i=!1;let c=typeof e.error=="function"?await e.error(`HTTP error! status: ${l.status}`):e.error,u=typeof e.description=="function"?await e.description(`HTTP error! status: ${l.status}`):e.description;this.create({id:r,type:"error",message:c,description:u})}else if(e.success!==void 0){i=!1;let c=typeof e.success=="function"?await e.success(l):e.success,u=typeof e.description=="function"?await e.description(l):e.description;this.create({id:r,type:"success",message:c,description:u})}}).catch(async l=>{if(a=["reject",l],e.error!==void 0){i=!1;let c=typeof e.error=="function"?await e.error(l):e.error,u=typeof e.description=="function"?await e.description(l):e.description;this.create({id:r,type:"error",message:c,description:u})}}).finally(()=>{var l;i&&(this.dismiss(r),r=void 0),(l=e.finally)==null||l.call(e)}),o=()=>new Promise((l,c)=>s.then(()=>a[0]==="reject"?c(a[1]):l(a[1])).catch(c));return typeof r!="string"&&typeof r!="number"?{unwrap:o}:Object.assign(r,{unwrap:o})},this.custom=(t,e)=>{let r=(e==null?void 0:e.id)||op++;return this.create({jsx:t(r),id:r,...e}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},sr=new G3,X3=(t,e)=>{let r=(e==null?void 0:e.id)||op++;return sr.addToast({title:t,...e,id:r}),r},Q3=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",K3=X3,Z3=()=>sr.toasts,J3=()=>sr.getActiveToasts(),lc=Object.assign(K3,{success:sr.success,info:sr.info,warning:sr.warning,error:sr.error,custom:sr.custom,message:sr.message,promise:sr.promise,dismiss:sr.dismiss,loading:sr.loading},{getHistory:Z3,getToasts:J3});function tB(t,{insertAt:e}={}){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e==="top"&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}tB(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
`);function cc(t){return t.label!==void 0}var eB=3,rB="32px",nB="16px",rx=4e3,iB=356,aB=14,sB=20,oB=200;function Yr(...t){return t.filter(Boolean).join(" ")}function lB(t){let[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}var cB=t=>{var e,r,n,i,a,s,o,l,c,u,h;let{invert:f,toast:d,unstyled:p,interacting:g,setHeights:v,visibleToasts:m,heights:y,index:b,toasts:S,expanded:_,removeToast:w,defaultRichColors:T,closeButton:N,style:z,cancelButtonStyle:I,actionButtonStyle:A,className:R="",descriptionClassName:j="",duration:P,position:$,gap:M,loadingIcon:D,expandByDefault:L,classNames:F,icons:C,closeButtonAriaLabel:W="Close toast",pauseWhenPageIsHidden:Y}=t,[E,et]=Z.useState(null),[nt,J]=Z.useState(null),[tt,Lt]=Z.useState(!1),[St,_t]=Z.useState(!1),[Ft,se]=Z.useState(!1),[ze,je]=Z.useState(!1),[si,Mn]=Z.useState(!1),[qr,sn]=Z.useState(0),[An,oi]=Z.useState(0),on=Z.useRef(d.duration||P||rx),Ma=Z.useRef(null),xr=Z.useRef(null),Bn=b===0,ln=b+1<=m,H=d.type,G=d.dismissible!==!1,yt=d.className||"",Ct=d.descriptionClassName||"",Mt=Z.useMemo(()=>y.findIndex(st=>st.toastId===d.id)||0,[y,d.id]),Le=Z.useMemo(()=>{var st;return(st=d.closeButton)!=null?st:N},[d.closeButton,N]),He=Z.useMemo(()=>d.duration||P||rx,[d.duration,P]),xe=Z.useRef(0),ie=Z.useRef(0),We=Z.useRef(0),Kt=Z.useRef(null),[Nr,vr]=$.split("-"),Hi=Z.useMemo(()=>y.reduce((st,At,Wt)=>Wt>=Mt?st:st+At.height,0),[y,Mt]),Wi=Y3(),nd=d.invert||f,Nn=H==="loading";ie.current=Z.useMemo(()=>Mt*M+Hi,[Mt,Hi]),Z.useEffect(()=>{on.current=He},[He]),Z.useEffect(()=>{Lt(!0)},[]),Z.useEffect(()=>{let st=xr.current;if(st){let At=st.getBoundingClientRect().height;return oi(At),v(Wt=>[{toastId:d.id,height:At,position:d.position},...Wt]),()=>v(Wt=>Wt.filter(rr=>rr.toastId!==d.id))}},[v,d.id]),Z.useLayoutEffect(()=>{if(!tt)return;let st=xr.current,At=st.style.height;st.style.height="auto";let Wt=st.getBoundingClientRect().height;st.style.height=At,oi(Wt),v(rr=>rr.find(qe=>qe.toastId===d.id)?rr.map(qe=>qe.toastId===d.id?{...qe,height:Wt}:qe):[{toastId:d.id,height:Wt,position:d.position},...rr])},[tt,d.title,d.description,v,d.id]);let cn=Z.useCallback(()=>{_t(!0),sn(ie.current),v(st=>st.filter(At=>At.toastId!==d.id)),setTimeout(()=>{w(d)},oB)},[d,w,v,ie]);Z.useEffect(()=>{if(d.promise&&H==="loading"||d.duration===1/0||d.type==="loading")return;let st;return _||g||Y&&Wi?(()=>{if(We.current<xe.current){let At=new Date().getTime()-xe.current;on.current=on.current-At}We.current=new Date().getTime()})():on.current!==1/0&&(xe.current=new Date().getTime(),st=setTimeout(()=>{var At;(At=d.onAutoClose)==null||At.call(d,d),cn()},on.current)),()=>clearTimeout(st)},[_,g,d,H,Y,Wi,cn]),Z.useEffect(()=>{d.delete&&cn()},[cn,d.delete]);function id(){var st,At,Wt;return C!=null&&C.loading?Z.createElement("div",{className:Yr(F==null?void 0:F.loader,(st=d==null?void 0:d.classNames)==null?void 0:st.loader,"sonner-loader"),"data-visible":H==="loading"},C.loading):D?Z.createElement("div",{className:Yr(F==null?void 0:F.loader,(At=d==null?void 0:d.classNames)==null?void 0:At.loader,"sonner-loader"),"data-visible":H==="loading"},D):Z.createElement(j3,{className:Yr(F==null?void 0:F.loader,(Wt=d==null?void 0:d.classNames)==null?void 0:Wt.loader),visible:H==="loading"})}return Z.createElement("li",{tabIndex:0,ref:xr,className:Yr(R,yt,F==null?void 0:F.toast,(e=d==null?void 0:d.classNames)==null?void 0:e.toast,F==null?void 0:F.default,F==null?void 0:F[H],(r=d==null?void 0:d.classNames)==null?void 0:r[H]),"data-sonner-toast":"","data-rich-colors":(n=d.richColors)!=null?n:T,"data-styled":!(d.jsx||d.unstyled||p),"data-mounted":tt,"data-promise":!!d.promise,"data-swiped":si,"data-removed":St,"data-visible":ln,"data-y-position":Nr,"data-x-position":vr,"data-index":b,"data-front":Bn,"data-swiping":Ft,"data-dismissible":G,"data-type":H,"data-invert":nd,"data-swipe-out":ze,"data-swipe-direction":nt,"data-expanded":!!(_||L&&tt),style:{"--index":b,"--toasts-before":b,"--z-index":S.length-b,"--offset":`${St?qr:ie.current}px`,"--initial-height":L?"auto":`${An}px`,...z,...d.style},onDragEnd:()=>{se(!1),et(null),Kt.current=null},onPointerDown:st=>{Nn||!G||(Ma.current=new Date,sn(ie.current),st.target.setPointerCapture(st.pointerId),st.target.tagName!=="BUTTON"&&(se(!0),Kt.current={x:st.clientX,y:st.clientY}))},onPointerUp:()=>{var st,At,Wt,rr;if(ze||!G)return;Kt.current=null;let qe=Number(((st=xr.current)==null?void 0:st.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ur=Number(((At=xr.current)==null?void 0:At.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),un=new Date().getTime()-((Wt=Ma.current)==null?void 0:Wt.getTime()),br=E==="x"?qe:Ur,de=Math.abs(br)/un;if(Math.abs(br)>=sB||de>.11){sn(ie.current),(rr=d.onDismiss)==null||rr.call(d,d),J(E==="x"?qe>0?"right":"left":Ur>0?"down":"up"),cn(),je(!0),Mn(!1);return}se(!1),et(null)},onPointerMove:st=>{var At,Wt,rr,qe;if(!Kt.current||!G||((At=window.getSelection())==null?void 0:At.toString().length)>0)return;let Ur=st.clientY-Kt.current.y,un=st.clientX-Kt.current.x,br=(Wt=t.swipeDirections)!=null?Wt:lB($);!E&&(Math.abs(un)>1||Math.abs(Ur)>1)&&et(Math.abs(un)>Math.abs(Ur)?"x":"y");let de={x:0,y:0};E==="y"?(br.includes("top")||br.includes("bottom"))&&(br.includes("top")&&Ur<0||br.includes("bottom")&&Ur>0)&&(de.y=Ur):E==="x"&&(br.includes("left")||br.includes("right"))&&(br.includes("left")&&un<0||br.includes("right")&&un>0)&&(de.x=un),(Math.abs(de.x)>0||Math.abs(de.y)>0)&&Mn(!0),(rr=xr.current)==null||rr.style.setProperty("--swipe-amount-x",`${de.x}px`),(qe=xr.current)==null||qe.style.setProperty("--swipe-amount-y",`${de.y}px`)}},Le&&!d.jsx?Z.createElement("button",{"aria-label":W,"data-disabled":Nn,"data-close-button":!0,onClick:Nn||!G?()=>{}:()=>{var st;cn(),(st=d.onDismiss)==null||st.call(d,d)},className:Yr(F==null?void 0:F.closeButton,(i=d==null?void 0:d.classNames)==null?void 0:i.closeButton)},(a=C==null?void 0:C.close)!=null?a:V3):null,d.jsx||Q.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:Z.createElement(Z.Fragment,null,H||d.icon||d.promise?Z.createElement("div",{"data-icon":"",className:Yr(F==null?void 0:F.icon,(s=d==null?void 0:d.classNames)==null?void 0:s.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||id():null,d.type!=="loading"?d.icon||(C==null?void 0:C[H])||D3(H):null):null,Z.createElement("div",{"data-content":"",className:Yr(F==null?void 0:F.content,(o=d==null?void 0:d.classNames)==null?void 0:o.content)},Z.createElement("div",{"data-title":"",className:Yr(F==null?void 0:F.title,(l=d==null?void 0:d.classNames)==null?void 0:l.title)},typeof d.title=="function"?d.title():d.title),d.description?Z.createElement("div",{"data-description":"",className:Yr(j,Ct,F==null?void 0:F.description,(c=d==null?void 0:d.classNames)==null?void 0:c.description)},typeof d.description=="function"?d.description():d.description):null),Q.isValidElement(d.cancel)?d.cancel:d.cancel&&cc(d.cancel)?Z.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||I,onClick:st=>{var At,Wt;cc(d.cancel)&&G&&((Wt=(At=d.cancel).onClick)==null||Wt.call(At,st),cn())},className:Yr(F==null?void 0:F.cancelButton,(u=d==null?void 0:d.classNames)==null?void 0:u.cancelButton)},d.cancel.label):null,Q.isValidElement(d.action)?d.action:d.action&&cc(d.action)?Z.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||A,onClick:st=>{var At,Wt;cc(d.action)&&((Wt=(At=d.action).onClick)==null||Wt.call(At,st),!st.defaultPrevented&&cn())},className:Yr(F==null?void 0:F.actionButton,(h=d==null?void 0:d.classNames)==null?void 0:h.actionButton)},d.action.label):null))};function nx(){if(typeof window>"u"||typeof document>"u")return"ltr";let t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function uB(t,e){let r={};return[t,e].forEach((n,i)=>{let a=i===1,s=a?"--mobile-offset":"--offset",o=a?nB:rB;function l(c){["top","right","bottom","left"].forEach(u=>{r[`${s}-${u}`]=typeof c=="number"?`${c}px`:c})}typeof n=="number"||typeof n=="string"?l(n):typeof n=="object"?["top","right","bottom","left"].forEach(c=>{n[c]===void 0?r[`${s}-${c}`]=o:r[`${s}-${c}`]=typeof n[c]=="number"?`${n[c]}px`:n[c]}):l(o)}),r}var hB=Q.forwardRef(function(t,e){let{invert:r,position:n="bottom-right",hotkey:i=["altKey","KeyT"],expand:a,closeButton:s,className:o,offset:l,mobileOffset:c,theme:u="light",richColors:h,duration:f,style:d,visibleToasts:p=eB,toastOptions:g,dir:v=nx(),gap:m=aB,loadingIcon:y,icons:b,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:_}=t,[w,T]=Z.useState([]),N=Z.useMemo(()=>Array.from(new Set([n].concat(w.filter(Y=>Y.position).map(Y=>Y.position)))),[w,n]),[z,I]=Z.useState([]),[A,R]=Z.useState(!1),[j,P]=Z.useState(!1),[$,M]=Z.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),D=Z.useRef(null),L=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=Z.useRef(null),C=Z.useRef(!1),W=Z.useCallback(Y=>{T(E=>{var et;return(et=E.find(nt=>nt.id===Y.id))!=null&&et.delete||sr.dismiss(Y.id),E.filter(({id:nt})=>nt!==Y.id)})},[]);return Z.useEffect(()=>sr.subscribe(Y=>{if(Y.dismiss){T(E=>E.map(et=>et.id===Y.id?{...et,delete:!0}:et));return}setTimeout(()=>{BA.flushSync(()=>{T(E=>{let et=E.findIndex(nt=>nt.id===Y.id);return et!==-1?[...E.slice(0,et),{...E[et],...Y},...E.slice(et+1)]:[Y,...E]})})})}),[]),Z.useEffect(()=>{if(u!=="system"){M(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?M("dark"):M("light")),typeof window>"u")return;let Y=window.matchMedia("(prefers-color-scheme: dark)");try{Y.addEventListener("change",({matches:E})=>{M(E?"dark":"light")})}catch{Y.addListener(({matches:et})=>{try{M(et?"dark":"light")}catch(nt){console.error(nt)}})}},[u]),Z.useEffect(()=>{w.length<=1&&R(!1)},[w]),Z.useEffect(()=>{let Y=E=>{var et,nt;i.every(J=>E[J]||E.code===J)&&(R(!0),(et=D.current)==null||et.focus()),E.code==="Escape"&&(document.activeElement===D.current||(nt=D.current)!=null&&nt.contains(document.activeElement))&&R(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[i]),Z.useEffect(()=>{if(D.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,C.current=!1)}},[D.current]),Z.createElement("section",{ref:e,"aria-label":`${S} ${L}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((Y,E)=>{var et;let[nt,J]=Y.split("-");return w.length?Z.createElement("ol",{key:Y,dir:v==="auto"?nx():v,tabIndex:-1,ref:D,className:o,"data-sonner-toaster":!0,"data-theme":$,"data-y-position":nt,"data-lifted":A&&w.length>1&&!a,"data-x-position":J,style:{"--front-toast-height":`${((et=z[0])==null?void 0:et.height)||0}px`,"--width":`${iB}px`,"--gap":`${m}px`,...d,...uB(l,c)},onBlur:tt=>{C.current&&!tt.currentTarget.contains(tt.relatedTarget)&&(C.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:tt=>{tt.target instanceof HTMLElement&&tt.target.dataset.dismissible==="false"||C.current||(C.current=!0,F.current=tt.relatedTarget)},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{j||R(!1)},onDragEnd:()=>R(!1),onPointerDown:tt=>{tt.target instanceof HTMLElement&&tt.target.dataset.dismissible==="false"||P(!0)},onPointerUp:()=>P(!1)},w.filter(tt=>!tt.position&&E===0||tt.position===Y).map((tt,Lt)=>{var St,_t;return Z.createElement(cB,{key:tt.id,icons:b,index:Lt,toast:tt,defaultRichColors:h,duration:(St=g==null?void 0:g.duration)!=null?St:f,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:r,visibleToasts:p,closeButton:(_t=g==null?void 0:g.closeButton)!=null?_t:s,interacting:j,position:Y,style:g==null?void 0:g.style,unstyled:g==null?void 0:g.unstyled,classNames:g==null?void 0:g.classNames,cancelButtonStyle:g==null?void 0:g.cancelButtonStyle,actionButtonStyle:g==null?void 0:g.actionButtonStyle,removeToast:W,toasts:w.filter(Ft=>Ft.position==tt.position),heights:z.filter(Ft=>Ft.position==tt.position),setHeights:I,expandByDefault:a,gap:m,loadingIcon:y,expanded:A,pauseWhenPageIsHidden:_,swipeDirections:t.swipeDirections})})):null}))});function rk(){const[t,e]=Q.useState({ticket:null,loading:!0,error:null,isConnected:!1}),r=Q.useRef(null),n=Q.useRef(null),i=Q.useRef(!0),a=Q.useRef(null),s=Q.useCallback(async()=>{try{const c=await fetch("/api/express/ticket");if(!c.ok){if(c.status===404){e(h=>({...h,ticket:null,loading:!1,error:new Error("No current ticket found")}));return}throw new Error(`Failed to fetch ticket: ${c.statusText}`)}const u=await c.json();e(h=>({...h,ticket:u,loading:!1,error:null})),u&&(a.current=u.content)}catch(c){e(u=>({...u,loading:!1,error:c instanceof Error?c:new Error("Unknown error")}))}},[]),o=Q.useCallback(()=>{r.current&&r.current.close();try{console.log("Connecting to SSE...");const c=new EventSource("/api/ticket-stream");r.current=c,c.onopen=()=>{console.log("SSE connected"),e(u=>({...u,isConnected:!0,error:null})),i.current||(lc.success("Reconnected to server"),s()),i.current=!1,window.dispatchEvent(new CustomEvent("sse-connected"))},c.addEventListener("update",async u=>{try{const h=JSON.parse(u.data);console.log("Received update notification:",h);const f=await fetch("/api/express/ticket");if(f.ok){const d=await f.json(),p=d&&d.content!==a.current;e(g=>({...g,ticket:d,loading:!1,error:null})),!i.current&&p&&lc.info("Ticket updated"),d&&(a.current=d.content)}window.dispatchEvent(new CustomEvent("sse-update"))}catch(h){console.error("Error parsing SSE update:",h)}}),c.addEventListener("removed",u=>{e(h=>({...h,ticket:null,error:new Error("Ticket file was removed"),loading:!1})),lc.warning("Ticket file was removed")}),c.addEventListener("heartbeat",u=>{console.debug("SSE heartbeat received")}),c.onerror=u=>{console.error("SSE error:",u),e(h=>({...h,isConnected:!1})),lc.error("Connection lost. Reconnecting..."),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{s()},3e3)}}catch(c){console.error("Error creating EventSource:",c),e(u=>({...u,isConnected:!1,error:c instanceof Error?c:new Error("Failed to create SSE connection")}))}},[s]);Q.useEffect(()=>(s(),o(),()=>{n.current&&clearTimeout(n.current),r.current&&r.current.close()}),[s,o]);const l=Q.useCallback(()=>{e(c=>({...c,loading:!0,error:null})),s()},[s]);return{...t,refetch:l}}function dB(){const[t,e]=Q.useState(!1),[r,n]=Q.useState(""),[i,a]=Q.useState(""),[s,o]=Q.useState(!1),[l,c]=Q.useState(!1),[u,h]=Q.useState(!1),f=Q.useRef(null),d=Q.useRef(null),p=Q.useRef(null),{isConnected:g}=rk();return Q.useEffect(()=>{const v=async()=>{try{const b=await(await fetch("/api/system-info")).json();n(b.currentDir||""),a(b.gitBranch||"")}catch(y){console.error("Failed to fetch system info:",y)}};v();const m=()=>{v()};return window.addEventListener("sse-connected",m),window.addEventListener("sse-update",m),window.addEventListener("focus",m),()=>{window.removeEventListener("sse-connected",m),window.removeEventListener("sse-update",m),window.removeEventListener("focus",m)}},[]),Q.useEffect(()=>{const v=m=>{f.current&&!f.current.contains(m.target)&&o(!1),d.current&&!d.current.contains(m.target)&&c(!1),p.current&&!p.current.contains(m.target)&&h(!1)};if(s||l||u)return document.addEventListener("mousedown",v),()=>document.removeEventListener("mousedown",v)},[s,l,u]),k.jsxs("nav",{className:"fixed top-0 left-0 right-0 bg-navbar border-b border-border shadow-sm z-50",role:"navigation","aria-label":"Main navigation",children:[k.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:k.jsxs("div",{className:"flex items-center h-16 space-x-4 sm:space-x-6",children:[k.jsxs("div",{className:"flex items-center space-x-2 flex-shrink-0",children:[k.jsx(QA,{className:"h-6 w-6 sm:h-8 sm:w-8 text-blue-600 dark:text-blue-400","aria-hidden":"true"}),k.jsx("span",{className:"text-lg sm:text-xl font-bold text-appname",children:"ticket.sh"})]}),k.jsxs("div",{className:"flex items-center flex-1 justify-end space-x-2",children:[r&&k.jsxs("div",{className:"relative",ref:f,onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:[k.jsx(hl,{variant:"ghost",size:"icon",onClick:v=>{v.preventDefault(),v.stopPropagation(),o(!s)},className:"h-9 w-9","aria-label":`Current directory: ${r}`,children:k.jsx(HA,{className:"h-4 w-4","aria-hidden":"true"})}),s&&k.jsxs("div",{className:"absolute top-full mt-2 left-0 z-50 bg-white dark:bg-zinc-800 text-card-foreground border border-border rounded-md shadow-lg p-3 min-w-[300px] max-w-[500px]",children:[k.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Current Directory"}),k.jsx("p",{className:"text-sm font-mono break-all",children:r})]})]}),i&&k.jsxs("div",{className:"relative flex items-center space-x-2 text-sm text-muted-foreground","aria-label":`Current Git branch: ${i}`,ref:p,onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[k.jsxs("button",{onClick:v=>{v.preventDefault(),v.stopPropagation(),h(!u)},className:"flex items-center space-x-2 p-1 rounded hover:bg-accent transition-colors md:pointer-events-none","aria-label":`Current Git branch: ${i}`,children:[k.jsx(qw,{className:"h-4 w-4 flex-shrink-0","aria-hidden":"true"}),k.jsx("span",{className:"font-medium hidden md:inline",children:i})]}),u&&k.jsxs("div",{className:"absolute top-full mt-2 right-0 z-50 bg-white dark:bg-zinc-800 text-card-foreground border border-border rounded-md shadow-lg p-3 min-w-[200px]",children:[k.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Git Branch"}),k.jsx("p",{className:"text-sm font-medium break-all md:hidden",children:i}),k.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Current working branch"})]})]}),k.jsx(ZA,{}),k.jsxs("div",{className:"relative",ref:d,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:[k.jsx(hl,{variant:"ghost",size:"icon",onClick:v=>{v.preventDefault(),v.stopPropagation(),c(!l)},className:"h-9 w-9","aria-label":g?"Connected to live updates":"Disconnected from live updates",children:g?k.jsx(Yw,{className:"h-4 w-4 text-green-500","aria-hidden":"true"}):k.jsx(Vw,{className:"h-4 w-4 text-orange-500","aria-hidden":"true"})}),l&&k.jsxs("div",{className:"absolute top-full mt-2 right-0 z-50 bg-white dark:bg-zinc-800 text-card-foreground border border-border rounded-md shadow-lg p-3 min-w-[200px]",children:[k.jsx("p",{className:"text-xs text-muted-foreground mb-1",children:"Connection Status"}),k.jsx("p",{className:"text-sm font-medium",children:g?k.jsx("span",{className:"text-green-600 dark:text-green-400",children:"Connected to live updates"}):k.jsx("span",{className:"text-orange-600 dark:text-orange-400",children:"Disconnected from server"})})]})]})]})]})}),t&&k.jsx("div",{className:"fixed inset-0 z-0",onClick:()=>e(!1)})]})}function fB(t,e){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const pB=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gB=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,mB={};function ix(t,e){return(mB.jsx?gB:pB).test(t)}const yB=/[ \t\n\f\r]/g;function xB(t){return typeof t=="object"?t.type==="text"?ax(t.value):!1:ax(t)}function ax(t){return t.replace(yB,"")===""}class Bl{constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}}Bl.prototype.normal={};Bl.prototype.property={};Bl.prototype.space=void 0;function nk(t,e){const r={},n={};for(const i of t)Object.assign(r,i.property),Object.assign(n,i.normal);return new Bl(r,n,e)}function lp(t){return t.toLowerCase()}class yr{constructor(e,r){this.attribute=r,this.property=e}}yr.prototype.attribute="";yr.prototype.booleanish=!1;yr.prototype.boolean=!1;yr.prototype.commaOrSpaceSeparated=!1;yr.prototype.commaSeparated=!1;yr.prototype.defined=!1;yr.prototype.mustUseProperty=!1;yr.prototype.number=!1;yr.prototype.overloadedBoolean=!1;yr.prototype.property="";yr.prototype.spaceSeparated=!1;yr.prototype.space=void 0;let vB=0;const kt=Ca(),ce=Ca(),cp=Ca(),V=Ca(),qt=Ca(),is=Ca(),kr=Ca();function Ca(){return 2**++vB}const up=Object.freeze(Object.defineProperty({__proto__:null,boolean:kt,booleanish:ce,commaOrSpaceSeparated:kr,commaSeparated:is,number:V,overloadedBoolean:cp,spaceSeparated:qt},Symbol.toStringTag,{value:"Module"})),Fd=Object.keys(up);class hm extends yr{constructor(e,r,n,i){let a=-1;if(super(e,r),sx(this,"space",i),typeof n=="number")for(;++a<Fd.length;){const s=Fd[a];sx(this,Fd[a],(n&up[s])===up[s])}}}hm.prototype.defined=!0;function sx(t,e,r){r&&(t[e]=r)}function Os(t){const e={},r={};for(const[n,i]of Object.entries(t.properties)){const a=new hm(n,t.transform(t.attributes||{},n),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),e[n]=a,r[lp(n)]=n,r[lp(a.attribute)]=n}return new Bl(e,r,t.space)}const ik=Os({properties:{ariaActiveDescendant:null,ariaAtomic:ce,ariaAutoComplete:null,ariaBusy:ce,ariaChecked:ce,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:qt,ariaCurrent:null,ariaDescribedBy:qt,ariaDetails:null,ariaDisabled:ce,ariaDropEffect:qt,ariaErrorMessage:null,ariaExpanded:ce,ariaFlowTo:qt,ariaGrabbed:ce,ariaHasPopup:null,ariaHidden:ce,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:qt,ariaLevel:V,ariaLive:null,ariaModal:ce,ariaMultiLine:ce,ariaMultiSelectable:ce,ariaOrientation:null,ariaOwns:qt,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:ce,ariaReadOnly:ce,ariaRelevant:null,ariaRequired:ce,ariaRoleDescription:qt,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:ce,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function ak(t,e){return e in t?t[e]:e}function sk(t,e){return ak(t,e.toLowerCase())}const bB=Os({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:is,acceptCharset:qt,accessKey:qt,action:null,allow:null,allowFullScreen:kt,allowPaymentRequest:kt,allowUserMedia:kt,alt:null,as:null,async:kt,autoCapitalize:null,autoComplete:qt,autoFocus:kt,autoPlay:kt,blocking:qt,capture:null,charSet:null,checked:kt,cite:null,className:qt,cols:V,colSpan:null,content:null,contentEditable:ce,controls:kt,controlsList:qt,coords:V|is,crossOrigin:null,data:null,dateTime:null,decoding:null,default:kt,defer:kt,dir:null,dirName:null,disabled:kt,download:cp,draggable:ce,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:kt,formTarget:null,headers:qt,height:V,hidden:cp,high:V,href:null,hrefLang:null,htmlFor:qt,httpEquiv:qt,id:null,imageSizes:null,imageSrcSet:null,inert:kt,inputMode:null,integrity:null,is:null,isMap:kt,itemId:null,itemProp:qt,itemRef:qt,itemScope:kt,itemType:qt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:kt,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:kt,muted:kt,name:null,nonce:null,noModule:kt,noValidate:kt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:kt,optimum:V,pattern:null,ping:qt,placeholder:null,playsInline:kt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:kt,referrerPolicy:null,rel:qt,required:kt,reversed:kt,rows:V,rowSpan:V,sandbox:qt,scope:null,scoped:kt,seamless:kt,selected:kt,shadowRootClonable:kt,shadowRootDelegatesFocus:kt,shadowRootMode:null,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:ce,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:kt,useMap:null,value:ce,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:qt,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:kt,declare:kt,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:kt,noHref:kt,noShade:kt,noWrap:kt,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:ce,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:kt,disableRemotePlayback:kt,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:sk}),wB=Os({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:kr,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:qt,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:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:kt,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,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:is,g2:is,glyphName:is,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:kr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,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:V,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:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:qt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:kr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:kr,rev:kr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:kr,requiredFeatures:kr,requiredFonts:kr,requiredFormats:kr,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:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:kr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:kr,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:kr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ak}),ok=Os({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),lk=Os({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:sk}),ck=Os({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),kB={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"},CB=/[A-Z]/g,ox=/-[a-z]/g,SB=/^data[-\w.:]+$/i;function _B(t,e){const r=lp(e);let n=e,i=yr;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&SB.test(e)){if(e.charAt(4)==="-"){const a=e.slice(5).replace(ox,EB);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=e.slice(4);if(!ox.test(a)){let s=a.replace(CB,TB);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}i=hm}return new i(n,e)}function TB(t){return"-"+t.toLowerCase()}function EB(t){return t.charAt(1).toUpperCase()}const LB=nk([ik,bB,ok,lk,ck],"html"),dm=nk([ik,wB,ok,lk,ck],"svg");function MB(t){return t.join(" ").trim()}var fm={},lx=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,AB=/\n/g,BB=/^\s*/,NB=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$B=/^:\s*/,FB=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,PB=/^[;\s]*/,IB=/^\s+|\s+$/g,RB=`
`,cx="/",ux="*",Qi="",OB="comment",DB="declaration",zB=function(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var r=1,n=1;function i(p){var g=p.match(AB);g&&(r+=g.length);var v=p.lastIndexOf(RB);n=~v?p.length-v:n+p.length}function a(){var p={line:r,column:n};return function(g){return g.position=new s(p),c(),g}}function s(p){this.start=p,this.end={line:r,column:n},this.source=e.source}s.prototype.content=t;function o(p){var g=new Error(e.source+":"+r+":"+n+": "+p);if(g.reason=p,g.filename=e.source,g.line=r,g.column=n,g.source=t,!e.silent)throw g}function l(p){var g=p.exec(t);if(g){var v=g[0];return i(v),t=t.slice(v.length),g}}function c(){l(BB)}function u(p){var g;for(p=p||[];g=h();)g!==!1&&p.push(g);return p}function h(){var p=a();if(!(cx!=t.charAt(0)||ux!=t.charAt(1))){for(var g=2;Qi!=t.charAt(g)&&(ux!=t.charAt(g)||cx!=t.charAt(g+1));)++g;if(g+=2,Qi===t.charAt(g-1))return o("End of comment missing");var v=t.slice(2,g-2);return n+=2,i(v),t=t.slice(g),n+=2,p({type:OB,comment:v})}}function f(){var p=a(),g=l(NB);if(g){if(h(),!l($B))return o("property missing ':'");var v=l(FB),m=p({type:DB,property:hx(g[0].replace(lx,Qi)),value:v?hx(v[0].replace(lx,Qi)):Qi});return l(PB),m}}function d(){var p=[];u(p);for(var g;g=f();)g!==!1&&(p.push(g),u(p));return p}return c(),d()};function hx(t){return t?t.replace(IB,Qi):Qi}var jB=Yo&&Yo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fm,"__esModule",{value:!0});fm.default=WB;var HB=jB(zB);function WB(t,e){var r=null;if(!t||typeof t!="string")return r;var n=(0,HB.default)(t),i=typeof e=="function";return n.forEach(function(a){if(a.type==="declaration"){var s=a.property,o=a.value;i?e(s,o,a):o&&(r=r||{},r[s]=o)}}),r}var Th={};Object.defineProperty(Th,"__esModule",{value:!0});Th.camelCase=void 0;var qB=/^--[a-zA-Z0-9_-]+$/,UB=/-([a-z])/g,VB=/^[^-]+$/,YB=/^-(webkit|moz|ms|o|khtml)-/,GB=/^-(ms)-/,XB=function(t){return!t||VB.test(t)||qB.test(t)},QB=function(t,e){return e.toUpperCase()},dx=function(t,e){return"".concat(e,"-")},KB=function(t,e){return e===void 0&&(e={}),XB(t)?t:(t=t.toLowerCase(),e.reactCompat?t=t.replace(GB,dx):t=t.replace(YB,dx),t.replace(UB,QB))};Th.camelCase=KB;var ZB=Yo&&Yo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},JB=ZB(fm),tN=Th;function hp(t,e){var r={};return!t||typeof t!="string"||(0,JB.default)(t,function(n,i){n&&i&&(r[(0,tN.camelCase)(n,e)]=i)}),r}hp.default=hp;var eN=hp;const rN=_l(eN),uk=hk("end"),pm=hk("start");function hk(t){return e;function e(r){const n=r&&r.position&&r.position[t]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function nN(t){const e=pm(t),r=uk(t);if(e&&r)return{start:e,end:r}}function Oo(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?fx(t.position):"start"in t||"end"in t?fx(t):"line"in t||"column"in t?dp(t):""}function dp(t){return px(t&&t.line)+":"+px(t&&t.column)}function fx(t){return dp(t&&t.start)+"-"+dp(t&&t.end)}function px(t){return t&&typeof t=="number"?t:1}class Oe extends Error{constructor(e,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},s=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof e=="string"?i=e:!a.cause&&e&&(s=!0,i=e.message,a.cause=e),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=Oo(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Oe.prototype.file="";Oe.prototype.name="";Oe.prototype.reason="";Oe.prototype.message="";Oe.prototype.stack="";Oe.prototype.column=void 0;Oe.prototype.line=void 0;Oe.prototype.ancestors=void 0;Oe.prototype.cause=void 0;Oe.prototype.fatal=void 0;Oe.prototype.place=void 0;Oe.prototype.ruleId=void 0;Oe.prototype.source=void 0;const gm={}.hasOwnProperty,iN=new Map,aN=/[A-Z]/g,sN=new Set(["table","tbody","thead","tfoot","tr"]),oN=new Set(["td","th"]),dk="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function lN(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=e.filePath||void 0;let n;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=mN(r,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=gN(r,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:n,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?dm:LB,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},a=fk(i,t,void 0);return a&&typeof a!="string"?a:i.create(t,i.Fragment,{children:a||void 0},void 0)}function fk(t,e,r){if(e.type==="element")return cN(t,e,r);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return uN(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return dN(t,e,r);if(e.type==="mdxjsEsm")return hN(t,e);if(e.type==="root")return fN(t,e,r);if(e.type==="text")return pN(t,e)}function cN(t,e,r){const n=t.schema;let i=n;e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=dm,t.schema=i),t.ancestors.push(e);const a=gk(t,e.tagName,!1),s=yN(t,e);let o=ym(t,e);return sN.has(e.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!xB(l):!0})),pk(t,s,a,e),mm(s,o),t.ancestors.pop(),t.schema=n,t.create(e,a,s,r)}function uN(t,e){if(e.data&&e.data.estree&&t.evaluater){const n=e.data.estree.body[0];return n.type,t.evaluater.evaluateExpression(n.expression)}dl(t,e.position)}function hN(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);dl(t,e.position)}function dN(t,e,r){const n=t.schema;let i=n;e.name==="svg"&&n.space==="html"&&(i=dm,t.schema=i),t.ancestors.push(e);const a=e.name===null?t.Fragment:gk(t,e.name,!0),s=xN(t,e),o=ym(t,e);return pk(t,s,a,e),mm(s,o),t.ancestors.pop(),t.schema=n,t.create(e,a,s,r)}function fN(t,e,r){const n={};return mm(n,ym(t,e)),t.create(e,t.Fragment,n,r)}function pN(t,e){return e.value}function pk(t,e,r,n){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(e.node=n)}function mm(t,e){if(e.length>0){const r=e.length>1?e:e[0];r&&(t.children=r)}}function gN(t,e,r){return n;function n(i,a,s,o){const c=Array.isArray(s.children)?r:e;return o?c(a,s,o):c(a,s)}}function mN(t,e){return r;function r(n,i,a,s){const o=Array.isArray(a.children),l=pm(n);return e(i,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:t,lineNumber:l?l.line:void 0},void 0)}}function yN(t,e){const r={};let n,i;for(i in e.properties)if(i!=="children"&&gm.call(e.properties,i)){const a=vN(t,i,e.properties[i]);if(a){const[s,o]=a;t.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&oN.has(e.tagName)?n=o:r[s]=o}}if(n){const a=r.style||(r.style={});a[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function xN(t,e){const r={};for(const n of e.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&t.evaluater){const a=n.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(r,t.evaluater.evaluateExpression(o.argument))}else dl(t,e.position);else{const i=n.name;let a;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&t.evaluater){const o=n.value.data.estree.body[0];o.type,a=t.evaluater.evaluateExpression(o.expression)}else dl(t,e.position);else a=n.value===null?!0:n.value;r[i]=a}return r}function ym(t,e){const r=[];let n=-1;const i=t.passKeys?new Map:iN;for(;++n<e.children.length;){const a=e.children[n];let s;if(t.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const c=i.get(l)||0;s=l+"-"+c,i.set(l,c+1)}}const o=fk(t,a,s);o!==void 0&&r.push(o)}return r}function vN(t,e,r){const n=_B(t.schema,e);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?fB(r):MB(r)),n.property==="style"){let i=typeof r=="object"?r:bN(t,String(r));return t.stylePropertyNameCase==="css"&&(i=wN(i)),["style",i]}return[t.elementAttributeNameCase==="react"&&n.space?kB[n.property]||n.property:n.attribute,r]}}function bN(t,e){try{return rN(e,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const n=r,i=new Oe("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=dk+"#cannot-parse-style-attribute",i}}function gk(t,e,r){let n;if(!r)n={type:"Literal",value:e};else if(e.includes(".")){const i=e.split(".");let a=-1,s;for(;++a<i.length;){const o=ix(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}n=s}else n=ix(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(n.type==="Literal"){const i=n.value;return gm.call(t.components,i)?t.components[i]:i}if(t.evaluater)return t.evaluater.evaluateExpression(n);dl(t)}function dl(t,e){const r=new Oe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=dk+"#cannot-handle-mdx-estrees-without-createevaluater",r}function wN(t){const e={};let r;for(r in t)gm.call(t,r)&&(e[kN(r)]=t[r]);return e}function kN(t){let e=t.replace(aN,CN);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function CN(t){return"-"+t.toLowerCase()}const Pd={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"]},SN={};function _N(t,e){const r=SN,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return mk(t,n,i)}function mk(t,e,r){if(TN(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return gx(t.children,e,r)}return Array.isArray(t)?gx(t,e,r):""}function gx(t,e,r){const n=[];let i=-1;for(;++i<t.length;)n[i]=mk(t[i],e,r);return n.join("")}function TN(t){return!!(t&&typeof t=="object")}const mx=document.createElement("i");function xm(t){const e="&"+t+";";mx.innerHTML=e;const r=mx.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===e?!1:r}function Sn(t,e,r,n){const i=t.length;let a=0,s;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,r=r>0?r:0,n.length<1e4)s=Array.from(n),s.unshift(e,r),t.splice(...s);else for(r&&t.splice(e,r);a<n.length;)s=n.slice(a,a+1e4),s.unshift(e,0),t.splice(...s),a+=1e4,e+=1e4}function Rr(t,e){return t.length>0?(Sn(t,t.length,0,e),t):e}const yx={}.hasOwnProperty;function EN(t){const e={};let r=-1;for(;++r<t.length;)LN(e,t[r]);return e}function LN(t,e){let r;for(r in e){const i=(yx.call(t,r)?t[r]:void 0)||(t[r]={}),a=e[r];let s;if(a)for(s in a){yx.call(i,s)||(i[s]=[]);const o=a[s];MN(i[s],Array.isArray(o)?o:o?[o]:[])}}}function MN(t,e){let r=-1;const n=[];for(;++r<e.length;)(e[r].add==="after"?t:n).push(e[r]);Sn(t,0,0,n)}function yk(t,e){const r=Number.parseInt(t,e);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function as(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vn=Di(/[A-Za-z]/),_r=Di(/[\dA-Za-z]/),AN=Di(/[#-'*+\--9=?A-Z^-~]/);function fp(t){return t!==null&&(t<32||t===127)}const pp=Di(/\d/),BN=Di(/[\dA-Fa-f]/),NN=Di(/[!-/:-@[-`{-~]/);function vt(t){return t!==null&&t<-2}function gr(t){return t!==null&&(t<0||t===32)}function Pt(t){return t===-2||t===-1||t===32}const $N=Di(new RegExp("\\p{P}|\\p{S}","u")),FN=Di(/\s/);function Di(t){return e;function e(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Ds(t){const e=[];let r=-1,n=0,i=0;for(;++r<t.length;){const a=t.charCodeAt(r);let s="";if(a===37&&_r(t.charCodeAt(r+1))&&_r(t.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=t.charCodeAt(r+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(e.push(t.slice(n,r),encodeURIComponent(s)),n=r+i+1,s=""),i&&(r+=i,i=0)}return e.join("")+t.slice(n)}function Vt(t,e,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return Pt(l)?(t.enter(r),o(l)):e(l)}function o(l){return Pt(l)&&a++<i?(t.consume(l),o):(t.exit(r),e(l))}}const PN={tokenize:IN};function IN(t){const e=t.attempt(this.parser.constructs.contentInitial,n,i);let r;return e;function n(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),Vt(t,e,"linePrefix")}function i(o){return t.enter("paragraph"),a(o)}function a(o){const l=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(o)}function s(o){if(o===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(o);return}return vt(o)?(t.consume(o),t.exit("chunkText"),a):(t.consume(o),s)}}const RN={tokenize:ON},xx={tokenize:DN};function ON(t){const e=this,r=[];let n=0,i,a,s;return o;function o(b){if(n<r.length){const S=r[n];return e.containerState=S[1],t.attempt(S[0].continuation,l,c)(b)}return c(b)}function l(b){if(n++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&y();const S=e.events.length;let _=S,w;for(;_--;)if(e.events[_][0]==="exit"&&e.events[_][1].type==="chunkFlow"){w=e.events[_][1].end;break}m(n);let T=S;for(;T<e.events.length;)e.events[T][1].end={...w},T++;return Sn(e.events,_+1,0,e.events.slice(S)),e.events.length=T,c(b)}return o(b)}function c(b){if(n===r.length){if(!i)return f(b);if(i.currentConstruct&&i.currentConstruct.concrete)return p(b);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(xx,u,h)(b)}function u(b){return i&&y(),m(n),f(b)}function h(b){return e.parser.lazy[e.now().line]=n!==r.length,s=e.now().offset,p(b)}function f(b){return e.containerState={},t.attempt(xx,d,p)(b)}function d(b){return n++,r.push([e.currentConstruct,e.containerState]),f(b)}function p(b){if(b===null){i&&y(),m(0),t.consume(b);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),g(b)}function g(b){if(b===null){v(t.exit("chunkFlow"),!0),m(0),t.consume(b);return}return vt(b)?(t.consume(b),v(t.exit("chunkFlow")),n=0,e.interrupt=void 0,o):(t.consume(b),g)}function v(b,S){const _=e.sliceStream(b);if(S&&_.push(null),b.previous=a,a&&(a.next=b),a=b,i.defineSkip(b.start),i.write(_),e.parser.lazy[b.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<s&&(!i.events[w][1].end||i.events[w][1].end.offset>s))return;const T=e.events.length;let N=T,z,I;for(;N--;)if(e.events[N][0]==="exit"&&e.events[N][1].type==="chunkFlow"){if(z){I=e.events[N][1].end;break}z=!0}for(m(n),w=T;w<e.events.length;)e.events[w][1].end={...I},w++;Sn(e.events,N+1,0,e.events.slice(T)),e.events.length=w}}function m(b){let S=r.length;for(;S-- >b;){const _=r[S];e.containerState=_[1],_[0].exit.call(e,t)}r.length=b}function y(){i.write([null]),a=void 0,i=void 0,e.containerState._closeFlow=void 0}}function DN(t,e,r){return Vt(t,t.attempt(this.parser.constructs.document,e,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function vx(t){if(t===null||gr(t)||FN(t))return 1;if($N(t))return 2}function vm(t,e,r){const n=[];let i=-1;for(;++i<t.length;){const a=t[i].resolveAll;a&&!n.includes(a)&&(e=a(e,r),n.push(a))}return e}const gp={name:"attention",resolveAll:zN,tokenize:jN};function zN(t,e){let r=-1,n,i,a,s,o,l,c,u;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(n=r;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[n][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;l=t[n][1].end.offset-t[n][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const h={...t[n][1].end},f={...t[r][1].start};bx(h,-l),bx(f,l),s={type:l>1?"strongSequence":"emphasisSequence",start:h,end:{...t[n][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:f},a={type:l>1?"strongText":"emphasisText",start:{...t[n][1].end},end:{...t[r][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},t[n][1].end={...s.start},t[r][1].start={...o.end},c=[],t[n][1].end.offset-t[n][1].start.offset&&(c=Rr(c,[["enter",t[n][1],e],["exit",t[n][1],e]])),c=Rr(c,[["enter",i,e],["enter",s,e],["exit",s,e],["enter",a,e]]),c=Rr(c,vm(e.parser.constructs.insideSpan.null,t.slice(n+1,r),e)),c=Rr(c,[["exit",a,e],["enter",o,e],["exit",o,e],["exit",i,e]]),t[r][1].end.offset-t[r][1].start.offset?(u=2,c=Rr(c,[["enter",t[r][1],e],["exit",t[r][1],e]])):u=0,Sn(t,n-1,r-n+3,c),r=n+c.length-u-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function jN(t,e){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=vx(n);let a;return s;function s(l){return a=l,t.enter("attentionSequence"),o(l)}function o(l){if(l===a)return t.consume(l),o;const c=t.exit("attentionSequence"),u=vx(l),h=!u||u===2&&i||r.includes(l),f=!i||i===2&&u||r.includes(n);return c._open=!!(a===42?h:h&&(i||!f)),c._close=!!(a===42?f:f&&(u||!h)),e(l)}}function bx(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const HN={name:"autolink",tokenize:WN};function WN(t,e,r){let n=0;return i;function i(d){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),a}function a(d){return vn(d)?(t.consume(d),s):d===64?r(d):c(d)}function s(d){return d===43||d===45||d===46||_r(d)?(n=1,o(d)):c(d)}function o(d){return d===58?(t.consume(d),n=0,l):(d===43||d===45||d===46||_r(d))&&n++<32?(t.consume(d),o):(n=0,c(d))}function l(d){return d===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.exit("autolink"),e):d===null||d===32||d===60||fp(d)?r(d):(t.consume(d),l)}function c(d){return d===64?(t.consume(d),u):AN(d)?(t.consume(d),c):r(d)}function u(d){return _r(d)?h(d):r(d)}function h(d){return d===46?(t.consume(d),n=0,u):d===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.exit("autolink"),e):f(d)}function f(d){if((d===45||_r(d))&&n++<63){const p=d===45?f:h;return t.consume(d),p}return r(d)}}const Eh={partial:!0,tokenize:qN};function qN(t,e,r){return n;function n(a){return Pt(a)?Vt(t,i,"linePrefix")(a):i(a)}function i(a){return a===null||vt(a)?e(a):r(a)}}const xk={continuation:{tokenize:VN},exit:YN,name:"blockQuote",tokenize:UN};function UN(t,e,r){const n=this;return i;function i(s){if(s===62){const o=n.containerState;return o.open||(t.enter("blockQuote",{_container:!0}),o.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(s),t.exit("blockQuoteMarker"),a}return r(s)}function a(s){return Pt(s)?(t.enter("blockQuotePrefixWhitespace"),t.consume(s),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(s))}}function VN(t,e,r){const n=this;return i;function i(s){return Pt(s)?Vt(t,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return t.attempt(xk,e,r)(s)}}function YN(t){t.exit("blockQuote")}const vk={name:"characterEscape",tokenize:GN};function GN(t,e,r){return n;function n(a){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(a),t.exit("escapeMarker"),i}function i(a){return NN(a)?(t.enter("characterEscapeValue"),t.consume(a),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):r(a)}}const bk={name:"characterReference",tokenize:XN};function XN(t,e,r){const n=this;let i=0,a,s;return o;function o(h){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(h),t.exit("characterReferenceMarker"),l}function l(h){return h===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(h),t.exit("characterReferenceMarkerNumeric"),c):(t.enter("characterReferenceValue"),a=31,s=_r,u(h))}function c(h){return h===88||h===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(h),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),a=6,s=BN,u):(t.enter("characterReferenceValue"),a=7,s=pp,u(h))}function u(h){if(h===59&&i){const f=t.exit("characterReferenceValue");return s===_r&&!xm(n.sliceSerialize(f))?r(h):(t.enter("characterReferenceMarker"),t.consume(h),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return s(h)&&i++<a?(t.consume(h),u):r(h)}}const wx={partial:!0,tokenize:KN},kx={concrete:!0,name:"codeFenced",tokenize:QN};function QN(t,e,r){const n=this,i={partial:!0,tokenize:_};let a=0,s=0,o;return l;function l(w){return c(w)}function c(w){const T=n.events[n.events.length-1];return a=T&&T[1].type==="linePrefix"?T[2].sliceSerialize(T[1],!0).length:0,o=w,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),u(w)}function u(w){return w===o?(s++,t.consume(w),u):s<3?r(w):(t.exit("codeFencedFenceSequence"),Pt(w)?Vt(t,h,"whitespace")(w):h(w))}function h(w){return w===null||vt(w)?(t.exit("codeFencedFence"),n.interrupt?e(w):t.check(wx,g,S)(w)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),f(w))}function f(w){return w===null||vt(w)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),h(w)):Pt(w)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Vt(t,d,"whitespace")(w)):w===96&&w===o?r(w):(t.consume(w),f)}function d(w){return w===null||vt(w)?h(w):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||vt(w)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),h(w)):w===96&&w===o?r(w):(t.consume(w),p)}function g(w){return t.attempt(i,S,v)(w)}function v(w){return t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),m}function m(w){return a>0&&Pt(w)?Vt(t,y,"linePrefix",a+1)(w):y(w)}function y(w){return w===null||vt(w)?t.check(wx,g,S)(w):(t.enter("codeFlowValue"),b(w))}function b(w){return w===null||vt(w)?(t.exit("codeFlowValue"),y(w)):(t.consume(w),b)}function S(w){return t.exit("codeFenced"),e(w)}function _(w,T,N){let z=0;return I;function I($){return w.enter("lineEnding"),w.consume($),w.exit("lineEnding"),A}function A($){return w.enter("codeFencedFence"),Pt($)?Vt(w,R,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):R($)}function R($){return $===o?(w.enter("codeFencedFenceSequence"),j($)):N($)}function j($){return $===o?(z++,w.consume($),j):z>=s?(w.exit("codeFencedFenceSequence"),Pt($)?Vt(w,P,"whitespace")($):P($)):N($)}function P($){return $===null||vt($)?(w.exit("codeFencedFence"),T($)):N($)}}}function KN(t,e,r){const n=this;return i;function i(s){return s===null?r(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),a)}function a(s){return n.parser.lazy[n.now().line]?r(s):e(s)}}const Id={name:"codeIndented",tokenize:JN},ZN={partial:!0,tokenize:t5};function JN(t,e,r){const n=this;return i;function i(c){return t.enter("codeIndented"),Vt(t,a,"linePrefix",5)(c)}function a(c){const u=n.events[n.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(c):r(c)}function s(c){return c===null?l(c):vt(c)?t.attempt(ZN,s,l)(c):(t.enter("codeFlowValue"),o(c))}function o(c){return c===null||vt(c)?(t.exit("codeFlowValue"),s(c)):(t.consume(c),o)}function l(c){return t.exit("codeIndented"),e(c)}}function t5(t,e,r){const n=this;return i;function i(s){return n.parser.lazy[n.now().line]?r(s):vt(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),i):Vt(t,a,"linePrefix",5)(s)}function a(s){const o=n.events[n.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(s):vt(s)?i(s):r(s)}}const e5={name:"codeText",previous:n5,resolve:r5,tokenize:i5};function r5(t){let e=t.length-4,r=3,n,i;if((t[r][1].type==="lineEnding"||t[r][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(n=r;++n<e;)if(t[n][1].type==="codeTextData"){t[r][1].type="codeTextPadding",t[e][1].type="codeTextPadding",r+=2,e-=2;break}}for(n=r-1,e++;++n<=e;)i===void 0?n!==e&&t[n][1].type!=="lineEnding"&&(i=n):(n===e||t[n][1].type==="lineEnding")&&(t[i][1].type="codeTextData",n!==i+2&&(t[i][1].end=t[n-1][1].end,t.splice(i+2,n-i-2),e-=n-i-2,n=i+2),i=void 0);return t}function n5(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function i5(t,e,r){let n=0,i,a;return s;function s(h){return t.enter("codeText"),t.enter("codeTextSequence"),o(h)}function o(h){return h===96?(t.consume(h),n++,o):(t.exit("codeTextSequence"),l(h))}function l(h){return h===null?r(h):h===32?(t.enter("space"),t.consume(h),t.exit("space"),l):h===96?(a=t.enter("codeTextSequence"),i=0,u(h)):vt(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),l):(t.enter("codeTextData"),c(h))}function c(h){return h===null||h===32||h===96||vt(h)?(t.exit("codeTextData"),l(h)):(t.consume(h),c)}function u(h){return h===96?(t.consume(h),i++,u):i===n?(t.exit("codeTextSequence"),t.exit("codeText"),e(h)):(a.type="codeTextData",c(h))}}class a5{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,r,n){const i=r||0;this.setCursor(Math.trunc(e));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&no(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),no(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),no(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const r=this.left.splice(e,Number.POSITIVE_INFINITY);no(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);no(this.left,r.reverse())}}}function no(t,e){let r=0;if(e.length<1e4)t.push(...e);else for(;r<e.length;)t.push(...e.slice(r,r+1e4)),r+=1e4}function wk(t){const e={};let r=-1,n,i,a,s,o,l,c;const u=new a5(t);for(;++r<u.length;){for(;r in e;)r=e[r];if(n=u.get(r),r&&n[1].type==="chunkFlow"&&u.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(e,s5(u,r)),r=e[r],c=!0);else if(n[1]._container){for(a=r,i=void 0;a--;)if(s=u.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(u.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(n[1].end={...u.get(i)[1].start},o=u.slice(i,r),o.unshift(n),u.splice(i,r-i+1,o))}}return Sn(t,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function s5(t,e){const r=t.get(e)[1],n=t.get(e)[2];let i=e-1;const a=[];let s=r._tokenizer;s||(s=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],c={};let u,h,f=-1,d=r,p=0,g=0;const v=[g];for(;d;){for(;t.get(++i)[1]!==d;);a.push(i),d._tokenizer||(u=n.sliceStream(d),d.next||u.push(null),h&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=d,d=d.next}for(d=r;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(g=f+1,v.push(g),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):v.pop(),f=v.length;f--;){const m=o.slice(v[f],v[f+1]),y=a.pop();l.push([y,y+m.length-1]),t.splice(y,2,m)}for(l.reverse(),f=-1;++f<l.length;)c[p+l[f][0]]=p+l[f][1],p+=l[f][1]-l[f][0]-1;return c}const o5={resolve:c5,tokenize:u5},l5={partial:!0,tokenize:h5};function c5(t){return wk(t),t}function u5(t,e){let r;return n;function n(o){return t.enter("content"),r=t.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):vt(o)?t.check(l5,s,a)(o):(t.consume(o),i)}function a(o){return t.exit("chunkContent"),t.exit("content"),e(o)}function s(o){return t.consume(o),t.exit("chunkContent"),r.next=t.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function h5(t,e,r){const n=this;return i;function i(s){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),Vt(t,a,"linePrefix")}function a(s){if(s===null||vt(s))return r(s);const o=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?e(s):t.interrupt(n.parser.constructs.flow,r,e)(s)}}function kk(t,e,r,n,i,a,s,o,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return h;function h(m){return m===60?(t.enter(n),t.enter(i),t.enter(a),t.consume(m),t.exit(a),f):m===null||m===32||m===41||fp(m)?r(m):(t.enter(n),t.enter(s),t.enter(o),t.enter("chunkString",{contentType:"string"}),g(m))}function f(m){return m===62?(t.enter(a),t.consume(m),t.exit(a),t.exit(i),t.exit(n),e):(t.enter(o),t.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===62?(t.exit("chunkString"),t.exit(o),f(m)):m===null||m===60||vt(m)?r(m):(t.consume(m),m===92?p:d)}function p(m){return m===60||m===62||m===92?(t.consume(m),d):d(m)}function g(m){return!u&&(m===null||m===41||gr(m))?(t.exit("chunkString"),t.exit(o),t.exit(s),t.exit(n),e(m)):u<c&&m===40?(t.consume(m),u++,g):m===41?(t.consume(m),u--,g):m===null||m===32||m===40||fp(m)?r(m):(t.consume(m),m===92?v:g)}function v(m){return m===40||m===41||m===92?(t.consume(m),g):g(m)}}function Ck(t,e,r,n,i,a){const s=this;let o=0,l;return c;function c(d){return t.enter(n),t.enter(i),t.consume(d),t.exit(i),t.enter(a),u}function u(d){return o>999||d===null||d===91||d===93&&!l||d===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(d):d===93?(t.exit(a),t.enter(i),t.consume(d),t.exit(i),t.exit(n),e):vt(d)?(t.enter("lineEnding"),t.consume(d),t.exit("lineEnding"),u):(t.enter("chunkString",{contentType:"string"}),h(d))}function h(d){return d===null||d===91||d===93||vt(d)||o++>999?(t.exit("chunkString"),u(d)):(t.consume(d),l||(l=!Pt(d)),d===92?f:h)}function f(d){return d===91||d===92||d===93?(t.consume(d),o++,h):h(d)}}function Sk(t,e,r,n,i,a){let s;return o;function o(f){return f===34||f===39||f===40?(t.enter(n),t.enter(i),t.consume(f),t.exit(i),s=f===40?41:f,l):r(f)}function l(f){return f===s?(t.enter(i),t.consume(f),t.exit(i),t.exit(n),e):(t.enter(a),c(f))}function c(f){return f===s?(t.exit(a),l(s)):f===null?r(f):vt(f)?(t.enter("lineEnding"),t.consume(f),t.exit("lineEnding"),Vt(t,c,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===s||f===null||vt(f)?(t.exit("chunkString"),c(f)):(t.consume(f),f===92?h:u)}function h(f){return f===s||f===92?(t.consume(f),u):u(f)}}function Do(t,e){let r;return n;function n(i){return vt(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),r=!0,n):Pt(i)?Vt(t,n,r?"linePrefix":"lineSuffix")(i):e(i)}}const d5={name:"definition",tokenize:p5},f5={partial:!0,tokenize:g5};function p5(t,e,r){const n=this;let i;return a;function a(d){return t.enter("definition"),s(d)}function s(d){return Ck.call(n,t,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return i=as(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),d===58?(t.enter("definitionMarker"),t.consume(d),t.exit("definitionMarker"),l):r(d)}function l(d){return gr(d)?Do(t,c)(d):c(d)}function c(d){return kk(t,u,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function u(d){return t.attempt(f5,h,h)(d)}function h(d){return Pt(d)?Vt(t,f,"whitespace")(d):f(d)}function f(d){return d===null||vt(d)?(t.exit("definition"),n.parser.defined.push(i),e(d)):r(d)}}function g5(t,e,r){return n;function n(o){return gr(o)?Do(t,i)(o):r(o)}function i(o){return Sk(t,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Pt(o)?Vt(t,s,"whitespace")(o):s(o)}function s(o){return o===null||vt(o)?e(o):r(o)}}const m5={name:"hardBreakEscape",tokenize:y5};function y5(t,e,r){return n;function n(a){return t.enter("hardBreakEscape"),t.consume(a),i}function i(a){return vt(a)?(t.exit("hardBreakEscape"),e(a)):r(a)}}const x5={name:"headingAtx",resolve:v5,tokenize:b5};function v5(t,e){let r=t.length-2,n=3,i,a;return t[n][1].type==="whitespace"&&(n+=2),r-2>n&&t[r][1].type==="whitespace"&&(r-=2),t[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&t[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:t[n][1].start,end:t[r][1].end},a={type:"chunkText",start:t[n][1].start,end:t[r][1].end,contentType:"text"},Sn(t,n,r-n+1,[["enter",i,e],["enter",a,e],["exit",a,e],["exit",i,e]])),t}function b5(t,e,r){let n=0;return i;function i(u){return t.enter("atxHeading"),a(u)}function a(u){return t.enter("atxHeadingSequence"),s(u)}function s(u){return u===35&&n++<6?(t.consume(u),s):u===null||gr(u)?(t.exit("atxHeadingSequence"),o(u)):r(u)}function o(u){return u===35?(t.enter("atxHeadingSequence"),l(u)):u===null||vt(u)?(t.exit("atxHeading"),e(u)):Pt(u)?Vt(t,o,"whitespace")(u):(t.enter("atxHeadingText"),c(u))}function l(u){return u===35?(t.consume(u),l):(t.exit("atxHeadingSequence"),o(u))}function c(u){return u===null||u===35||gr(u)?(t.exit("atxHeadingText"),o(u)):(t.consume(u),c)}}const w5=["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"],Cx=["pre","script","style","textarea"],k5={concrete:!0,name:"htmlFlow",resolveTo:_5,tokenize:T5},C5={partial:!0,tokenize:L5},S5={partial:!0,tokenize:E5};function _5(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function T5(t,e,r){const n=this;let i,a,s,o,l;return c;function c(E){return u(E)}function u(E){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(E),h}function h(E){return E===33?(t.consume(E),f):E===47?(t.consume(E),a=!0,g):E===63?(t.consume(E),i=3,n.interrupt?e:C):vn(E)?(t.consume(E),s=String.fromCharCode(E),v):r(E)}function f(E){return E===45?(t.consume(E),i=2,d):E===91?(t.consume(E),i=5,o=0,p):vn(E)?(t.consume(E),i=4,n.interrupt?e:C):r(E)}function d(E){return E===45?(t.consume(E),n.interrupt?e:C):r(E)}function p(E){const et="CDATA[";return E===et.charCodeAt(o++)?(t.consume(E),o===et.length?n.interrupt?e:R:p):r(E)}function g(E){return vn(E)?(t.consume(E),s=String.fromCharCode(E),v):r(E)}function v(E){if(E===null||E===47||E===62||gr(E)){const et=E===47,nt=s.toLowerCase();return!et&&!a&&Cx.includes(nt)?(i=1,n.interrupt?e(E):R(E)):w5.includes(s.toLowerCase())?(i=6,et?(t.consume(E),m):n.interrupt?e(E):R(E)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(E):a?y(E):b(E))}return E===45||_r(E)?(t.consume(E),s+=String.fromCharCode(E),v):r(E)}function m(E){return E===62?(t.consume(E),n.interrupt?e:R):r(E)}function y(E){return Pt(E)?(t.consume(E),y):I(E)}function b(E){return E===47?(t.consume(E),I):E===58||E===95||vn(E)?(t.consume(E),S):Pt(E)?(t.consume(E),b):I(E)}function S(E){return E===45||E===46||E===58||E===95||_r(E)?(t.consume(E),S):_(E)}function _(E){return E===61?(t.consume(E),w):Pt(E)?(t.consume(E),_):b(E)}function w(E){return E===null||E===60||E===61||E===62||E===96?r(E):E===34||E===39?(t.consume(E),l=E,T):Pt(E)?(t.consume(E),w):N(E)}function T(E){return E===l?(t.consume(E),l=null,z):E===null||vt(E)?r(E):(t.consume(E),T)}function N(E){return E===null||E===34||E===39||E===47||E===60||E===61||E===62||E===96||gr(E)?_(E):(t.consume(E),N)}function z(E){return E===47||E===62||Pt(E)?b(E):r(E)}function I(E){return E===62?(t.consume(E),A):r(E)}function A(E){return E===null||vt(E)?R(E):Pt(E)?(t.consume(E),A):r(E)}function R(E){return E===45&&i===2?(t.consume(E),M):E===60&&i===1?(t.consume(E),D):E===62&&i===4?(t.consume(E),W):E===63&&i===3?(t.consume(E),C):E===93&&i===5?(t.consume(E),F):vt(E)&&(i===6||i===7)?(t.exit("htmlFlowData"),t.check(C5,Y,j)(E)):E===null||vt(E)?(t.exit("htmlFlowData"),j(E)):(t.consume(E),R)}function j(E){return t.check(S5,P,Y)(E)}function P(E){return t.enter("lineEnding"),t.consume(E),t.exit("lineEnding"),$}function $(E){return E===null||vt(E)?j(E):(t.enter("htmlFlowData"),R(E))}function M(E){return E===45?(t.consume(E),C):R(E)}function D(E){return E===47?(t.consume(E),s="",L):R(E)}function L(E){if(E===62){const et=s.toLowerCase();return Cx.includes(et)?(t.consume(E),W):R(E)}return vn(E)&&s.length<8?(t.consume(E),s+=String.fromCharCode(E),L):R(E)}function F(E){return E===93?(t.consume(E),C):R(E)}function C(E){return E===62?(t.consume(E),W):E===45&&i===2?(t.consume(E),C):R(E)}function W(E){return E===null||vt(E)?(t.exit("htmlFlowData"),Y(E)):(t.consume(E),W)}function Y(E){return t.exit("htmlFlow"),e(E)}}function E5(t,e,r){const n=this;return i;function i(s){return vt(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),a):r(s)}function a(s){return n.parser.lazy[n.now().line]?r(s):e(s)}}function L5(t,e,r){return n;function n(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),t.attempt(Eh,e,r)}}const M5={name:"htmlText",tokenize:A5};function A5(t,e,r){const n=this;let i,a,s;return o;function o(C){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(C),l}function l(C){return C===33?(t.consume(C),c):C===47?(t.consume(C),_):C===63?(t.consume(C),b):vn(C)?(t.consume(C),N):r(C)}function c(C){return C===45?(t.consume(C),u):C===91?(t.consume(C),a=0,p):vn(C)?(t.consume(C),y):r(C)}function u(C){return C===45?(t.consume(C),d):r(C)}function h(C){return C===null?r(C):C===45?(t.consume(C),f):vt(C)?(s=h,D(C)):(t.consume(C),h)}function f(C){return C===45?(t.consume(C),d):h(C)}function d(C){return C===62?M(C):C===45?f(C):h(C)}function p(C){const W="CDATA[";return C===W.charCodeAt(a++)?(t.consume(C),a===W.length?g:p):r(C)}function g(C){return C===null?r(C):C===93?(t.consume(C),v):vt(C)?(s=g,D(C)):(t.consume(C),g)}function v(C){return C===93?(t.consume(C),m):g(C)}function m(C){return C===62?M(C):C===93?(t.consume(C),m):g(C)}function y(C){return C===null||C===62?M(C):vt(C)?(s=y,D(C)):(t.consume(C),y)}function b(C){return C===null?r(C):C===63?(t.consume(C),S):vt(C)?(s=b,D(C)):(t.consume(C),b)}function S(C){return C===62?M(C):b(C)}function _(C){return vn(C)?(t.consume(C),w):r(C)}function w(C){return C===45||_r(C)?(t.consume(C),w):T(C)}function T(C){return vt(C)?(s=T,D(C)):Pt(C)?(t.consume(C),T):M(C)}function N(C){return C===45||_r(C)?(t.consume(C),N):C===47||C===62||gr(C)?z(C):r(C)}function z(C){return C===47?(t.consume(C),M):C===58||C===95||vn(C)?(t.consume(C),I):vt(C)?(s=z,D(C)):Pt(C)?(t.consume(C),z):M(C)}function I(C){return C===45||C===46||C===58||C===95||_r(C)?(t.consume(C),I):A(C)}function A(C){return C===61?(t.consume(C),R):vt(C)?(s=A,D(C)):Pt(C)?(t.consume(C),A):z(C)}function R(C){return C===null||C===60||C===61||C===62||C===96?r(C):C===34||C===39?(t.consume(C),i=C,j):vt(C)?(s=R,D(C)):Pt(C)?(t.consume(C),R):(t.consume(C),P)}function j(C){return C===i?(t.consume(C),i=void 0,$):C===null?r(C):vt(C)?(s=j,D(C)):(t.consume(C),j)}function P(C){return C===null||C===34||C===39||C===60||C===61||C===96?r(C):C===47||C===62||gr(C)?z(C):(t.consume(C),P)}function $(C){return C===47||C===62||gr(C)?z(C):r(C)}function M(C){return C===62?(t.consume(C),t.exit("htmlTextData"),t.exit("htmlText"),e):r(C)}function D(C){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),L}function L(C){return Pt(C)?Vt(t,F,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):F(C)}function F(C){return t.enter("htmlTextData"),s(C)}}const bm={name:"labelEnd",resolveAll:F5,resolveTo:P5,tokenize:I5},B5={tokenize:R5},N5={tokenize:O5},$5={tokenize:D5};function F5(t){let e=-1;const r=[];for(;++e<t.length;){const n=t[e][1];if(r.push(t[e]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",e+=i}}return t.length!==r.length&&Sn(t,0,t.length,r),t}function P5(t,e){let r=t.length,n=0,i,a,s,o;for(;r--;)if(i=t[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;t[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(t[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(s=r);const l={type:t[a][1].type==="labelLink"?"link":"image",start:{...t[a][1].start},end:{...t[t.length-1][1].end}},c={type:"label",start:{...t[a][1].start},end:{...t[s][1].end}},u={type:"labelText",start:{...t[a+n+2][1].end},end:{...t[s-2][1].start}};return o=[["enter",l,e],["enter",c,e]],o=Rr(o,t.slice(a+1,a+n+3)),o=Rr(o,[["enter",u,e]]),o=Rr(o,vm(e.parser.constructs.insideSpan.null,t.slice(a+n+4,s-3),e)),o=Rr(o,[["exit",u,e],t[s-2],t[s-1],["exit",c,e]]),o=Rr(o,t.slice(s+1)),o=Rr(o,[["exit",l,e]]),Sn(t,a,t.length,o),t}function I5(t,e,r){const n=this;let i=n.events.length,a,s;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return o;function o(f){return a?a._inactive?h(f):(s=n.parser.defined.includes(as(n.sliceSerialize({start:a.end,end:n.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(f),t.exit("labelMarker"),t.exit("labelEnd"),l):r(f)}function l(f){return f===40?t.attempt(B5,u,s?u:h)(f):f===91?t.attempt(N5,u,s?c:h)(f):s?u(f):h(f)}function c(f){return t.attempt($5,u,h)(f)}function u(f){return e(f)}function h(f){return a._balanced=!0,r(f)}}function R5(t,e,r){return n;function n(h){return t.enter("resource"),t.enter("resourceMarker"),t.consume(h),t.exit("resourceMarker"),i}function i(h){return gr(h)?Do(t,a)(h):a(h)}function a(h){return h===41?u(h):kk(t,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return gr(h)?Do(t,l)(h):u(h)}function o(h){return r(h)}function l(h){return h===34||h===39||h===40?Sk(t,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):u(h)}function c(h){return gr(h)?Do(t,u)(h):u(h)}function u(h){return h===41?(t.enter("resourceMarker"),t.consume(h),t.exit("resourceMarker"),t.exit("resource"),e):r(h)}}function O5(t,e,r){const n=this;return i;function i(o){return Ck.call(n,t,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return n.parser.defined.includes(as(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?e(o):r(o)}function s(o){return r(o)}}function D5(t,e,r){return n;function n(a){return t.enter("reference"),t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),i}function i(a){return a===93?(t.enter("referenceMarker"),t.consume(a),t.exit("referenceMarker"),t.exit("reference"),e):r(a)}}const z5={name:"labelStartImage",resolveAll:bm.resolveAll,tokenize:j5};function j5(t,e,r){const n=this;return i;function i(o){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(o),t.exit("labelImageMarker"),a}function a(o){return o===91?(t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelImage"),s):r(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):e(o)}}const H5={name:"labelStartLink",resolveAll:bm.resolveAll,tokenize:W5};function W5(t,e,r){const n=this;return i;function i(s){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):e(s)}}const Rd={name:"lineEnding",tokenize:q5};function q5(t,e){return r;function r(n){return t.enter("lineEnding"),t.consume(n),t.exit("lineEnding"),Vt(t,e,"linePrefix")}}const Rc={name:"thematicBreak",tokenize:U5};function U5(t,e,r){let n=0,i;return a;function a(c){return t.enter("thematicBreak"),s(c)}function s(c){return i=c,o(c)}function o(c){return c===i?(t.enter("thematicBreakSequence"),l(c)):n>=3&&(c===null||vt(c))?(t.exit("thematicBreak"),e(c)):r(c)}function l(c){return c===i?(t.consume(c),n++,l):(t.exit("thematicBreakSequence"),Pt(c)?Vt(t,o,"whitespace")(c):o(c))}}const ar={continuation:{tokenize:X5},exit:K5,name:"list",tokenize:G5},V5={partial:!0,tokenize:Z5},Y5={partial:!0,tokenize:Q5};function G5(t,e,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(d){const p=n.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!n.containerState.marker||d===n.containerState.marker:pp(d)){if(n.containerState.type||(n.containerState.type=p,t.enter(p,{_container:!0})),p==="listUnordered")return t.enter("listItemPrefix"),d===42||d===45?t.check(Rc,r,c)(d):c(d);if(!n.interrupt||d===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),l(d)}return r(d)}function l(d){return pp(d)&&++s<10?(t.consume(d),l):(!n.interrupt||s<2)&&(n.containerState.marker?d===n.containerState.marker:d===41||d===46)?(t.exit("listItemValue"),c(d)):r(d)}function c(d){return t.enter("listItemMarker"),t.consume(d),t.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||d,t.check(Eh,n.interrupt?r:u,t.attempt(V5,f,h))}function u(d){return n.containerState.initialBlankLine=!0,a++,f(d)}function h(d){return Pt(d)?(t.enter("listItemPrefixWhitespace"),t.consume(d),t.exit("listItemPrefixWhitespace"),f):r(d)}function f(d){return n.containerState.size=a+n.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(d)}}function X5(t,e,r){const n=this;return n.containerState._closeFlow=void 0,t.check(Eh,i,a);function i(o){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Vt(t,e,"listItemIndent",n.containerState.size+1)(o)}function a(o){return n.containerState.furtherBlankLines||!Pt(o)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,s(o)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,t.attempt(Y5,e,s)(o))}function s(o){return n.containerState._closeFlow=!0,n.interrupt=void 0,Vt(t,t.attempt(ar,e,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Q5(t,e,r){const n=this;return Vt(t,i,"listItemIndent",n.containerState.size+1);function i(a){const s=n.events[n.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===n.containerState.size?e(a):r(a)}}function K5(t){t.exit(this.containerState.type)}function Z5(t,e,r){const n=this;return Vt(t,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=n.events[n.events.length-1];return!Pt(a)&&s&&s[1].type==="listItemPrefixWhitespace"?e(a):r(a)}}const Sx={name:"setextUnderline",resolveTo:J5,tokenize:t4};function J5(t,e){let r=t.length,n,i,a;for(;r--;)if(t[r][0]==="enter"){if(t[r][1].type==="content"){n=r;break}t[r][1].type==="paragraph"&&(i=r)}else t[r][1].type==="content"&&t.splice(r,1),!a&&t[r][1].type==="definition"&&(a=r);const s={type:"setextHeading",start:{...t[n][1].start},end:{...t[t.length-1][1].end}};return t[i][1].type="setextHeadingText",a?(t.splice(i,0,["enter",s,e]),t.splice(a+1,0,["exit",t[n][1],e]),t[n][1].end={...t[a][1].end}):t[n][1]=s,t.push(["exit",s,e]),t}function t4(t,e,r){const n=this;let i;return a;function a(c){let u=n.events.length,h;for(;u--;)if(n.events[u][1].type!=="lineEnding"&&n.events[u][1].type!=="linePrefix"&&n.events[u][1].type!=="content"){h=n.events[u][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||h)?(t.enter("setextHeadingLine"),i=c,s(c)):r(c)}function s(c){return t.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===i?(t.consume(c),o):(t.exit("setextHeadingLineSequence"),Pt(c)?Vt(t,l,"lineSuffix")(c):l(c))}function l(c){return c===null||vt(c)?(t.exit("setextHeadingLine"),e(c)):r(c)}}const e4={tokenize:r4};function r4(t){const e=this,r=t.attempt(Eh,n,t.attempt(this.parser.constructs.flowInitial,i,Vt(t,t.attempt(this.parser.constructs.flow,i,t.attempt(o5,i)),"linePrefix")));return r;function n(a){if(a===null){t.consume(a);return}return t.enter("lineEndingBlank"),t.consume(a),t.exit("lineEndingBlank"),e.currentConstruct=void 0,r}function i(a){if(a===null){t.consume(a);return}return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),e.currentConstruct=void 0,r}}const n4={resolveAll:Tk()},i4=_k("string"),a4=_k("text");function _k(t){return{resolveAll:Tk(t==="text"?s4:void 0),tokenize:e};function e(r){const n=this,i=this.parser.constructs[t],a=r.attempt(i,s,o);return s;function s(u){return c(u)?a(u):o(u)}function o(u){if(u===null){r.consume(u);return}return r.enter("data"),r.consume(u),l}function l(u){return c(u)?(r.exit("data"),a(u)):(r.consume(u),l)}function c(u){if(u===null)return!0;const h=i[u];let f=-1;if(h)for(;++f<h.length;){const d=h[f];if(!d.previous||d.previous.call(n,n.previous))return!0}return!1}}}function Tk(t){return e;function e(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return t?t(r,n):r}}function s4(t,e){let r=0;for(;++r<=t.length;)if((r===t.length||t[r][1].type==="lineEnding")&&t[r-1][1].type==="data"){const n=t[r-1][1],i=e.sliceStream(n);let a=i.length,s=-1,o=0,l;for(;a--;){const c=i[a];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(c===-2)l=!0,o++;else if(c!==-1){a++;break}}if(e._contentTypeTextTrailing&&r===t.length&&(o=0),o){const c={type:r===t.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:n.start._bufferIndex+s,_index:n.start._index+a,line:n.end.line,column:n.end.column-o,offset:n.end.offset-o},end:{...n.end}};n.end={...c.start},n.start.offset===n.end.offset?Object.assign(n,c):(t.splice(r,0,["enter",c,e],["exit",c,e]),r+=2)}r++}return t}const o4={42:ar,43:ar,45:ar,48:ar,49:ar,50:ar,51:ar,52:ar,53:ar,54:ar,55:ar,56:ar,57:ar,62:xk},l4={91:d5},c4={[-2]:Id,[-1]:Id,32:Id},u4={35:x5,42:Rc,45:[Sx,Rc],60:k5,61:Sx,95:Rc,96:kx,126:kx},h4={38:bk,92:vk},d4={[-5]:Rd,[-4]:Rd,[-3]:Rd,33:z5,38:bk,42:gp,60:[HN,M5],91:H5,92:[m5,vk],93:bm,95:gp,96:e5},f4={null:[gp,n4]},p4={null:[42,95]},g4={null:[]},m4=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:p4,contentInitial:l4,disable:g4,document:o4,flow:u4,flowInitial:c4,insideSpan:f4,string:h4,text:d4},Symbol.toStringTag,{value:"Module"}));function y4(t,e,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},a=[];let s=[],o=[];const l={attempt:T(_),check:T(w),consume:y,enter:b,exit:S,interrupt:T(w,{interrupt:!0})},c={code:null,containerState:{},defineSkip:g,events:[],now:p,parser:t,previous:null,sliceSerialize:f,sliceStream:d,write:h};let u=e.tokenize.call(c,l);return e.resolveAll&&a.push(e),c;function h(A){return s=Rr(s,A),v(),s[s.length-1]!==null?[]:(N(e,0),c.events=vm(a,c.events,c),c.events)}function f(A,R){return v4(d(A),R)}function d(A){return x4(s,A)}function p(){const{_bufferIndex:A,_index:R,line:j,column:P,offset:$}=n;return{_bufferIndex:A,_index:R,line:j,column:P,offset:$}}function g(A){i[A.line]=A.column,I()}function v(){let A;for(;n._index<s.length;){const R=s[n._index];if(typeof R=="string")for(A=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===A&&n._bufferIndex<R.length;)m(R.charCodeAt(n._bufferIndex));else m(R)}}function m(A){u=u(A)}function y(A){vt(A)?(n.line++,n.column=1,n.offset+=A===-3?2:1,I()):A!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===s[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=A}function b(A,R){const j=R||{};return j.type=A,j.start=p(),c.events.push(["enter",j,c]),o.push(j),j}function S(A){const R=o.pop();return R.end=p(),c.events.push(["exit",R,c]),R}function _(A,R){N(A,R.from)}function w(A,R){R.restore()}function T(A,R){return j;function j(P,$,M){let D,L,F,C;return Array.isArray(P)?Y(P):"tokenize"in P?Y([P]):W(P);function W(J){return tt;function tt(Lt){const St=Lt!==null&&J[Lt],_t=Lt!==null&&J.null,Ft=[...Array.isArray(St)?St:St?[St]:[],...Array.isArray(_t)?_t:_t?[_t]:[]];return Y(Ft)(Lt)}}function Y(J){return D=J,L=0,J.length===0?M:E(J[L])}function E(J){return tt;function tt(Lt){return C=z(),F=J,J.partial||(c.currentConstruct=J),J.name&&c.parser.constructs.disable.null.includes(J.name)?nt():J.tokenize.call(R?Object.assign(Object.create(c),R):c,l,et,nt)(Lt)}}function et(J){return A(F,C),$}function nt(J){return C.restore(),++L<D.length?E(D[L]):M}}}function N(A,R){A.resolveAll&&!a.includes(A)&&a.push(A),A.resolve&&Sn(c.events,R,c.events.length-R,A.resolve(c.events.slice(R),c)),A.resolveTo&&(c.events=A.resolveTo(c.events,c))}function z(){const A=p(),R=c.previous,j=c.currentConstruct,P=c.events.length,$=Array.from(o);return{from:P,restore:M};function M(){n=A,c.previous=R,c.currentConstruct=j,c.events.length=P,o=$,I()}}function I(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function x4(t,e){const r=e.start._index,n=e.start._bufferIndex,i=e.end._index,a=e.end._bufferIndex;let s;if(r===i)s=[t[r].slice(n,a)];else{if(s=t.slice(r,i),n>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(n):s.shift()}a>0&&s.push(t[i].slice(0,a))}return s}function v4(t,e){let r=-1;const n=[];let i;for(;++r<t.length;){const a=t[r];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
`;break}case-3:{s=`\r
`;break}case-2:{s=e?" ":" ";break}case-1:{if(!e&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,n.push(s)}return n.join("")}function b4(t){const n={constructs:EN([m4,...(t||{}).extensions||[]]),content:i(PN),defined:[],document:i(RN),flow:i(e4),lazy:{},string:i(i4),text:i(a4)};return n;function i(a){return s;function s(o){return y4(n,a,o)}}}function w4(t){for(;!wk(t););return t}const _x=/[\0\t\n\r]/g;function k4(){let t=1,e="",r=!0,n;return i;function i(a,s,o){const l=[];let c,u,h,f,d;for(a=e+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),h=0,e="",r&&(a.charCodeAt(0)===65279&&h++,r=void 0);h<a.length;){if(_x.lastIndex=h,c=_x.exec(a),f=c&&c.index!==void 0?c.index:a.length,d=a.charCodeAt(f),!c){e=a.slice(h);break}if(d===10&&h===f&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),h<f&&(l.push(a.slice(h,f)),t+=f-h),d){case 0:{l.push(65533),t++;break}case 9:{for(u=Math.ceil(t/4)*4,l.push(-2);t++<u;)l.push(-1);break}case 10:{l.push(-4),t=1;break}default:n=!0,t=1}h=f+1}return o&&(n&&l.push(-5),e&&l.push(e),l.push(null)),l}}const C4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function S4(t){return t.replace(C4,_4)}function _4(t,e,r){if(e)return e;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return yk(r.slice(a?2:1),a?16:10)}return xm(r)||t}const Ek={}.hasOwnProperty;function T4(t,e,r){return typeof e!="string"&&(r=e,e=void 0),E4(r)(w4(b4(r).document().write(k4()(t,e,!0))))}function E4(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(An),autolinkProtocol:z,autolinkEmail:z,atxHeading:a(si),blockQuote:a(_t),characterEscape:z,characterReference:z,codeFenced:a(Ft),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(Ft,s),codeText:a(se,s),codeTextData:z,data:z,codeFlowValue:z,definition:a(ze),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(je),hardBreakEscape:a(Mn),hardBreakTrailing:a(Mn),htmlFlow:a(qr,s),htmlFlowData:z,htmlText:a(qr,s),htmlTextData:z,image:a(sn),label:s,link:a(An),listItem:a(on),listItemValue:f,listOrdered:a(oi,h),listUnordered:a(oi),paragraph:a(Ma),reference:E,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(si),strong:a(xr),thematicBreak:a(ln)},exit:{atxHeading:l(),atxHeadingSequence:_,autolink:l(),autolinkEmail:St,autolinkProtocol:Lt,blockQuote:l(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:nt,characterReferenceMarkerNumeric:nt,characterReferenceValue:J,characterReference:tt,codeFenced:l(v),codeFencedFence:g,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:I,codeIndented:l(m),codeText:l($),codeTextData:I,data:I,definition:l(),definitionDestinationString:S,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(R),hardBreakTrailing:l(R),htmlFlow:l(j),htmlFlowData:I,htmlText:l(P),htmlTextData:I,image:l(D),label:F,labelText:L,lineEnding:A,link:l(M),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:et,resourceDestinationString:C,resourceTitleString:W,resource:Y,setextHeading:l(N),setextHeadingLineSequence:T,setextHeadingText:w,strong:l(),thematicBreak:l()}};Lk(e,(t||{}).mdastExtensions||[]);const r={};return n;function n(H){let G={type:"root",children:[]};const yt={stack:[G],tokenStack:[],config:e,enter:o,exit:c,buffer:s,resume:u,data:r},Ct=[];let Mt=-1;for(;++Mt<H.length;)if(H[Mt][1].type==="listOrdered"||H[Mt][1].type==="listUnordered")if(H[Mt][0]==="enter")Ct.push(Mt);else{const Le=Ct.pop();Mt=i(H,Le,Mt)}for(Mt=-1;++Mt<H.length;){const Le=e[H[Mt][0]];Ek.call(Le,H[Mt][1].type)&&Le[H[Mt][1].type].call(Object.assign({sliceSerialize:H[Mt][2].sliceSerialize},yt),H[Mt][1])}if(yt.tokenStack.length>0){const Le=yt.tokenStack[yt.tokenStack.length-1];(Le[1]||Tx).call(yt,void 0,Le[0])}for(G.position={start:hi(H.length>0?H[0][1].start:{line:1,column:1,offset:0}),end:hi(H.length>0?H[H.length-2][1].end:{line:1,column:1,offset:0})},Mt=-1;++Mt<e.transforms.length;)G=e.transforms[Mt](G)||G;return G}function i(H,G,yt){let Ct=G-1,Mt=-1,Le=!1,He,xe,ie,We;for(;++Ct<=yt;){const Kt=H[Ct];switch(Kt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Kt[0]==="enter"?Mt++:Mt--,We=void 0;break}case"lineEndingBlank":{Kt[0]==="enter"&&(He&&!We&&!Mt&&!ie&&(ie=Ct),We=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:We=void 0}if(!Mt&&Kt[0]==="enter"&&Kt[1].type==="listItemPrefix"||Mt===-1&&Kt[0]==="exit"&&(Kt[1].type==="listUnordered"||Kt[1].type==="listOrdered")){if(He){let Nr=Ct;for(xe=void 0;Nr--;){const vr=H[Nr];if(vr[1].type==="lineEnding"||vr[1].type==="lineEndingBlank"){if(vr[0]==="exit")continue;xe&&(H[xe][1].type="lineEndingBlank",Le=!0),vr[1].type="lineEnding",xe=Nr}else if(!(vr[1].type==="linePrefix"||vr[1].type==="blockQuotePrefix"||vr[1].type==="blockQuotePrefixWhitespace"||vr[1].type==="blockQuoteMarker"||vr[1].type==="listItemIndent"))break}ie&&(!xe||ie<xe)&&(He._spread=!0),He.end=Object.assign({},xe?H[xe][1].start:Kt[1].end),H.splice(xe||Ct,0,["exit",He,Kt[2]]),Ct++,yt++}if(Kt[1].type==="listItemPrefix"){const Nr={type:"listItem",_spread:!1,start:Object.assign({},Kt[1].start),end:void 0};He=Nr,H.splice(Ct,0,["enter",Nr,Kt[2]]),Ct++,yt++,ie=void 0,We=!0}}}return H[G][1]._spread=Le,yt}function a(H,G){return yt;function yt(Ct){o.call(this,H(Ct),Ct),G&&G.call(this,Ct)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(H,G,yt){this.stack[this.stack.length-1].children.push(H),this.stack.push(H),this.tokenStack.push([G,yt||void 0]),H.position={start:hi(G.start),end:void 0}}function l(H){return G;function G(yt){H&&H.call(this,yt),c.call(this,yt)}}function c(H,G){const yt=this.stack.pop(),Ct=this.tokenStack.pop();if(Ct)Ct[0].type!==H.type&&(G?G.call(this,H,Ct[0]):(Ct[1]||Tx).call(this,H,Ct[0]));else throw new Error("Cannot close `"+H.type+"` ("+Oo({start:H.start,end:H.end})+"): it’s not open");yt.position.end=hi(H.end)}function u(){return _N(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function f(H){if(this.data.expectingFirstListItemValue){const G=this.stack[this.stack.length-2];G.start=Number.parseInt(this.sliceSerialize(H),10),this.data.expectingFirstListItemValue=void 0}}function d(){const H=this.resume(),G=this.stack[this.stack.length-1];G.lang=H}function p(){const H=this.resume(),G=this.stack[this.stack.length-1];G.meta=H}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function v(){const H=this.resume(),G=this.stack[this.stack.length-1];G.value=H.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const H=this.resume(),G=this.stack[this.stack.length-1];G.value=H.replace(/(\r?\n|\r)$/g,"")}function y(H){const G=this.resume(),yt=this.stack[this.stack.length-1];yt.label=G,yt.identifier=as(this.sliceSerialize(H)).toLowerCase()}function b(){const H=this.resume(),G=this.stack[this.stack.length-1];G.title=H}function S(){const H=this.resume(),G=this.stack[this.stack.length-1];G.url=H}function _(H){const G=this.stack[this.stack.length-1];if(!G.depth){const yt=this.sliceSerialize(H).length;G.depth=yt}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function T(H){const G=this.stack[this.stack.length-1];G.depth=this.sliceSerialize(H).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function z(H){const yt=this.stack[this.stack.length-1].children;let Ct=yt[yt.length-1];(!Ct||Ct.type!=="text")&&(Ct=Bn(),Ct.position={start:hi(H.start),end:void 0},yt.push(Ct)),this.stack.push(Ct)}function I(H){const G=this.stack.pop();G.value+=this.sliceSerialize(H),G.position.end=hi(H.end)}function A(H){const G=this.stack[this.stack.length-1];if(this.data.atHardBreak){const yt=G.children[G.children.length-1];yt.position.end=hi(H.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(G.type)&&(z.call(this,H),I.call(this,H))}function R(){this.data.atHardBreak=!0}function j(){const H=this.resume(),G=this.stack[this.stack.length-1];G.value=H}function P(){const H=this.resume(),G=this.stack[this.stack.length-1];G.value=H}function $(){const H=this.resume(),G=this.stack[this.stack.length-1];G.value=H}function M(){const H=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";H.type+="Reference",H.referenceType=G,delete H.url,delete H.title}else delete H.identifier,delete H.label;this.data.referenceType=void 0}function D(){const H=this.stack[this.stack.length-1];if(this.data.inReference){const G=this.data.referenceType||"shortcut";H.type+="Reference",H.referenceType=G,delete H.url,delete H.title}else delete H.identifier,delete H.label;this.data.referenceType=void 0}function L(H){const G=this.sliceSerialize(H),yt=this.stack[this.stack.length-2];yt.label=S4(G),yt.identifier=as(G).toLowerCase()}function F(){const H=this.stack[this.stack.length-1],G=this.resume(),yt=this.stack[this.stack.length-1];if(this.data.inReference=!0,yt.type==="link"){const Ct=H.children;yt.children=Ct}else yt.alt=G}function C(){const H=this.resume(),G=this.stack[this.stack.length-1];G.url=H}function W(){const H=this.resume(),G=this.stack[this.stack.length-1];G.title=H}function Y(){this.data.inReference=void 0}function E(){this.data.referenceType="collapsed"}function et(H){const G=this.resume(),yt=this.stack[this.stack.length-1];yt.label=G,yt.identifier=as(this.sliceSerialize(H)).toLowerCase(),this.data.referenceType="full"}function nt(H){this.data.characterReferenceType=H.type}function J(H){const G=this.sliceSerialize(H),yt=this.data.characterReferenceType;let Ct;yt?(Ct=yk(G,yt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ct=xm(G);const Mt=this.stack[this.stack.length-1];Mt.value+=Ct}function tt(H){const G=this.stack.pop();G.position.end=hi(H.end)}function Lt(H){I.call(this,H);const G=this.stack[this.stack.length-1];G.url=this.sliceSerialize(H)}function St(H){I.call(this,H);const G=this.stack[this.stack.length-1];G.url="mailto:"+this.sliceSerialize(H)}function _t(){return{type:"blockquote",children:[]}}function Ft(){return{type:"code",lang:null,meta:null,value:""}}function se(){return{type:"inlineCode",value:""}}function ze(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function je(){return{type:"emphasis",children:[]}}function si(){return{type:"heading",depth:0,children:[]}}function Mn(){return{type:"break"}}function qr(){return{type:"html",value:""}}function sn(){return{type:"image",title:null,url:"",alt:null}}function An(){return{type:"link",title:null,url:"",children:[]}}function oi(H){return{type:"list",ordered:H.type==="listOrdered",start:null,spread:H._spread,children:[]}}function on(H){return{type:"listItem",spread:H._spread,checked:null,children:[]}}function Ma(){return{type:"paragraph",children:[]}}function xr(){return{type:"strong",children:[]}}function Bn(){return{type:"text",value:""}}function ln(){return{type:"thematicBreak"}}}function hi(t){return{line:t.line,column:t.column,offset:t.offset}}function Lk(t,e){let r=-1;for(;++r<e.length;){const n=e[r];Array.isArray(n)?Lk(t,n):L4(t,n)}}function L4(t,e){let r;for(r in e)if(Ek.call(e,r))switch(r){case"canContainEols":{const n=e[r];n&&t[r].push(...n);break}case"transforms":{const n=e[r];n&&t[r].push(...n);break}case"enter":case"exit":{const n=e[r];n&&Object.assign(t[r],n);break}}}function Tx(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Oo({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Oo({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Oo({start:e.start,end:e.end})+") is still open")}function M4(t){const e=this;e.parser=r;function r(n){return T4(n,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function A4(t,e){const r={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,r),t.applyData(e,r)}function B4(t,e){const r={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,r),[t.applyData(e,r),{type:"text",value:`
`}]}function N4(t,e){const r=e.value?e.value+`
`:"",n={};e.lang&&(n.className=["language-"+e.lang]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return e.meta&&(i.data={meta:e.meta}),t.patch(e,i),i=t.applyData(e,i),i={type:"element",tagName:"pre",properties:{},children:[i]},t.patch(e,i),i}function $4(t,e){const r={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function F4(t,e){const r={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function P4(t,e){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=String(e.identifier).toUpperCase(),i=Ds(n.toLowerCase()),a=t.footnoteOrder.indexOf(n);let s,o=t.footnoteCounts.get(n);o===void 0?(o=0,t.footnoteOrder.push(n),s=t.footnoteOrder.length):s=a+1,o+=1,t.footnoteCounts.set(n,o);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};t.patch(e,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return t.patch(e,c),t.applyData(e,c)}function I4(t,e){const r={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function R4(t,e){if(t.options.allowDangerousHtml){const r={type:"raw",value:e.value};return t.patch(e,r),t.applyData(e,r)}}function Mk(t,e){const r=e.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+n}];const i=t.all(e),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=n:i.push({type:"text",value:n}),i}function O4(t,e){const r=String(e.identifier).toUpperCase(),n=t.definitionById.get(r);if(!n)return Mk(t,e);const i={src:Ds(n.url||""),alt:e.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return t.patch(e,a),t.applyData(e,a)}function D4(t,e){const r={src:Ds(e.url)};e.alt!==null&&e.alt!==void 0&&(r.alt=e.alt),e.title!==null&&e.title!==void 0&&(r.title=e.title);const n={type:"element",tagName:"img",properties:r,children:[]};return t.patch(e,n),t.applyData(e,n)}function z4(t,e){const r={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return t.patch(e,n),t.applyData(e,n)}function j4(t,e){const r=String(e.identifier).toUpperCase(),n=t.definitionById.get(r);if(!n)return Mk(t,e);const i={href:Ds(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:t.all(e)};return t.patch(e,a),t.applyData(e,a)}function H4(t,e){const r={href:Ds(e.url)};e.title!==null&&e.title!==void 0&&(r.title=e.title);const n={type:"element",tagName:"a",properties:r,children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function W4(t,e,r){const n=t.all(e),i=r?q4(r):Ak(e),a={},s=[];if(typeof e.checked=="boolean"){const u=n[0];let h;u&&u.type==="element"&&u.tagName==="p"?h=u:(h={type:"element",tagName:"p",properties:{},children:[]},n.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<n.length;){const u=n[o];(i||o!==0||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
`}),u.type==="element"&&u.tagName==="p"&&!i?s.push(...u.children):s.push(u)}const l=n[n.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
`});const c={type:"element",tagName:"li",properties:a,children:s};return t.patch(e,c),t.applyData(e,c)}function q4(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const r=t.children;let n=-1;for(;!e&&++n<r.length;)e=Ak(r[n])}return e}function Ak(t){const e=t.spread;return e??t.children.length>1}function U4(t,e){const r={},n=t.all(e);let i=-1;for(typeof e.start=="number"&&e.start!==1&&(r.start=e.start);++i<n.length;){const s=n[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:e.ordered?"ol":"ul",properties:r,children:t.wrap(n,!0)};return t.patch(e,a),t.applyData(e,a)}function V4(t,e){const r={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function Y4(t,e){const r={type:"root",children:t.wrap(t.all(e))};return t.patch(e,r),t.applyData(e,r)}function G4(t,e){const r={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}function X4(t,e){const r=t.all(e),n=r.shift(),i=[];if(n){const s={type:"element",tagName:"thead",properties:{},children:t.wrap([n],!0)};t.patch(e.children[0],s),i.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:t.wrap(r,!0)},o=pm(e.children[1]),l=uk(e.children[e.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:t.wrap(i,!0)};return t.patch(e,a),t.applyData(e,a)}function Q4(t,e,r){const n=r?r.children:void 0,a=(n?n.indexOf(e):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,o=s?s.length:e.children.length;let l=-1;const c=[];for(;++l<o;){const h=e.children[l],f={},d=s?s[l]:void 0;d&&(f.align=d);let p={type:"element",tagName:a,properties:f,children:[]};h&&(p.children=t.all(h),t.patch(h,p),p=t.applyData(h,p)),c.push(p)}const u={type:"element",tagName:"tr",properties:{},children:t.wrap(c,!0)};return t.patch(e,u),t.applyData(e,u)}function K4(t,e){const r={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,r),t.applyData(e,r)}const Ex=9,Lx=32;function Z4(t){const e=String(t),r=/\r?\n|\r/g;let n=r.exec(e),i=0;const a=[];for(;n;)a.push(Mx(e.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(e);return a.push(Mx(e.slice(i),i>0,!1)),a.join("")}function Mx(t,e,r){let n=0,i=t.length;if(e){let a=t.codePointAt(n);for(;a===Ex||a===Lx;)n++,a=t.codePointAt(n)}if(r){let a=t.codePointAt(i-1);for(;a===Ex||a===Lx;)i--,a=t.codePointAt(i-1)}return i>n?t.slice(n,i):""}function J4(t,e){const r={type:"text",value:Z4(String(e.value))};return t.patch(e,r),t.applyData(e,r)}function t$(t,e){const r={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,r),t.applyData(e,r)}const e$={blockquote:A4,break:B4,code:N4,delete:$4,emphasis:F4,footnoteReference:P4,heading:I4,html:R4,imageReference:O4,image:D4,inlineCode:z4,linkReference:j4,link:H4,listItem:W4,list:U4,paragraph:V4,root:Y4,strong:G4,table:X4,tableCell:K4,tableRow:Q4,text:J4,thematicBreak:t$,toml:uc,yaml:uc,definition:uc,footnoteDefinition:uc};function uc(){}const Bk=-1,Lh=0,zo=1,Tu=2,wm=3,km=4,Cm=5,Sm=6,Nk=7,$k=8,Ax=typeof self=="object"?self:globalThis,r$=(t,e)=>{const r=(i,a)=>(t.set(a,i),i),n=i=>{if(t.has(i))return t.get(i);const[a,s]=e[i];switch(a){case Lh:case Bk:return r(s,i);case zo:{const o=r([],i);for(const l of s)o.push(n(l));return o}case Tu:{const o=r({},i);for(const[l,c]of s)o[n(l)]=n(c);return o}case wm:return r(new Date(s),i);case km:{const{source:o,flags:l}=s;return r(new RegExp(o,l),i)}case Cm:{const o=r(new Map,i);for(const[l,c]of s)o.set(n(l),n(c));return o}case Sm:{const o=r(new Set,i);for(const l of s)o.add(n(l));return o}case Nk:{const{name:o,message:l}=s;return r(new Ax[o](l),i)}case $k:return r(BigInt(s),i);case"BigInt":return r(Object(BigInt(s)),i);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(new Ax[a](s),i)};return n},Bx=t=>r$(new Map,t)(0),Na="",{toString:n$}={},{keys:i$}=Object,io=t=>{const e=typeof t;if(e!=="object"||!t)return[Lh,e];const r=n$.call(t).slice(8,-1);switch(r){case"Array":return[zo,Na];case"Object":return[Tu,Na];case"Date":return[wm,Na];case"RegExp":return[km,Na];case"Map":return[Cm,Na];case"Set":return[Sm,Na];case"DataView":return[zo,r]}return r.includes("Array")?[zo,r]:r.includes("Error")?[Nk,r]:[Tu,r]},hc=([t,e])=>t===Lh&&(e==="function"||e==="symbol"),a$=(t,e,r,n)=>{const i=(s,o)=>{const l=n.push(s)-1;return r.set(o,l),l},a=s=>{if(r.has(s))return r.get(s);let[o,l]=io(s);switch(o){case Lh:{let u=s;switch(l){case"bigint":o=$k,u=s.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return i([Bk],s)}return i([o,u],s)}case zo:{if(l){let f=s;return l==="DataView"?f=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(s)),i([l,[...f]],s)}const u=[],h=i([o,u],s);for(const f of s)u.push(a(f));return h}case Tu:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(e&&"toJSON"in s)return a(s.toJSON());const u=[],h=i([o,u],s);for(const f of i$(s))(t||!hc(io(s[f])))&&u.push([a(f),a(s[f])]);return h}case wm:return i([o,s.toISOString()],s);case km:{const{source:u,flags:h}=s;return i([o,{source:u,flags:h}],s)}case Cm:{const u=[],h=i([o,u],s);for(const[f,d]of s)(t||!(hc(io(f))||hc(io(d))))&&u.push([a(f),a(d)]);return h}case Sm:{const u=[],h=i([o,u],s);for(const f of s)(t||!hc(io(f)))&&u.push(a(f));return h}}const{message:c}=s;return i([o,{name:l,message:c}],s)};return a},Nx=(t,{json:e,lossy:r}={})=>{const n=[];return a$(!(e||r),!!e,new Map,n)(t),n},Eu=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?Bx(Nx(t,e)):structuredClone(t):(t,e)=>Bx(Nx(t,e));function s$(t,e){const r=[{type:"text",value:"↩"}];return e>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),r}function o$(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function l$(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",r=t.options.footnoteBackContent||s$,n=t.options.footnoteBackLabel||o$,i=t.options.footnoteLabel||"Footnotes",a=t.options.footnoteLabelTagName||"h2",s=t.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<t.footnoteOrder.length;){const c=t.footnoteById.get(t.footnoteOrder[l]);if(!c)continue;const u=t.all(c),h=String(c.identifier).toUpperCase(),f=Ds(h.toLowerCase());let d=0;const p=[],g=t.footnoteCounts.get(h);for(;g!==void 0&&++d<=g;){p.length>0&&p.push({type:"text",value:" "});let y=typeof r=="string"?r:r(l,d);typeof y=="string"&&(y={type:"text",value:y}),p.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+f+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,d),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}const v=u[u.length-1];if(v&&v.type==="element"&&v.tagName==="p"){const y=v.children[v.children.length-1];y&&y.type==="text"?y.value+=" ":v.children.push({type:"text",value:" "}),v.children.push(...p)}else u.push(...p);const m={type:"element",tagName:"li",properties:{id:e+"fn-"+f},children:t.wrap(u,!0)};t.patch(c,m),o.push(m)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Eu(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:t.wrap(o,!0)},{type:"text",value:`
`}]}}const Fk=function(t){if(t==null)return d$;if(typeof t=="function")return Mh(t);if(typeof t=="object")return Array.isArray(t)?c$(t):u$(t);if(typeof t=="string")return h$(t);throw new Error("Expected function, string, or object as test")};function c$(t){const e=[];let r=-1;for(;++r<t.length;)e[r]=Fk(t[r]);return Mh(n);function n(...i){let a=-1;for(;++a<e.length;)if(e[a].apply(this,i))return!0;return!1}}function u$(t){const e=t;return Mh(r);function r(n){const i=n;let a;for(a in t)if(i[a]!==e[a])return!1;return!0}}function h$(t){return Mh(e);function e(r){return r&&r.type===t}}function Mh(t){return e;function e(r,n,i){return!!(f$(r)&&t.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function d$(){return!0}function f$(t){return t!==null&&typeof t=="object"&&"type"in t}const Pk=[],p$=!0,$x=!1,g$="skip";function m$(t,e,r,n){let i;typeof e=="function"&&typeof r!="function"?(n=r,r=e):i=e;const a=Fk(i),s=n?-1:1;o(t,void 0,[])();function o(l,c,u){const h=l&&typeof l=="object"?l:{};if(typeof h.type=="string"){const d=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return f;function f(){let d=Pk,p,g,v;if((!e||a(l,c,u[u.length-1]||void 0))&&(d=y$(r(l,u)),d[0]===$x))return d;if("children"in l&&l.children){const m=l;if(m.children&&d[0]!==g$)for(g=(n?m.children.length:-1)+s,v=u.concat(m);g>-1&&g<m.children.length;){const y=m.children[g];if(p=o(y,g,v)(),p[0]===$x)return p;g=typeof p[1]=="number"?p[1]:g+s}}return d}}}function y$(t){return Array.isArray(t)?t:typeof t=="number"?[p$,t]:t==null?Pk:[t]}function Ik(t,e,r,n){let i,a,s;typeof e=="function"&&typeof r!="function"?(a=void 0,s=e,i=r):(a=e,s=r,i=n),m$(t,a,o,i);function o(l,c){const u=c[c.length-1],h=u?u.children.indexOf(l):void 0;return s(l,h,u)}}const mp={}.hasOwnProperty,x$={};function v$(t,e){const r=e||x$,n=new Map,i=new Map,a=new Map,s={...e$,...r.handlers},o={all:c,applyData:w$,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:l,options:r,patch:b$,wrap:C$};return Ik(t,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const h=u.type==="definition"?n:i,f=String(u.identifier).toUpperCase();h.has(f)||h.set(f,u)}}),o;function l(u,h){const f=u.type,d=o.handlers[f];if(mp.call(o.handlers,f)&&d)return d(o,u,h);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in u){const{children:g,...v}=u,m=Eu(v);return m.children=o.all(u),m}return Eu(u)}return(o.options.unknownHandler||k$)(o,u,h)}function c(u){const h=[];if("children"in u){const f=u.children;let d=-1;for(;++d<f.length;){const p=o.one(f[d],u);if(p){if(d&&f[d-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=Fx(p.value)),!Array.isArray(p)&&p.type==="element")){const g=p.children[0];g&&g.type==="text"&&(g.value=Fx(g.value))}Array.isArray(p)?h.push(...p):h.push(p)}}}return h}}function b$(t,e){t.position&&(e.position=nN(t))}function w$(t,e){let r=e;if(t&&t.data){const n=t.data.hName,i=t.data.hChildren,a=t.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const s="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:s}}r.type==="element"&&a&&Object.assign(r.properties,Eu(a)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function k$(t,e){const r=e.data||{},n="value"in e&&!(mp.call(r,"hProperties")||mp.call(r,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function C$(t,e){const r=[];let n=-1;for(e&&r.push({type:"text",value:`
`});++n<t.length;)n&&r.push({type:"text",value:`
`}),r.push(t[n]);return e&&t.length>0&&r.push({type:"text",value:`
`}),r}function Fx(t){let e=0,r=t.charCodeAt(e);for(;r===9||r===32;)e++,r=t.charCodeAt(e);return t.slice(e)}function Px(t,e){const r=v$(t,e),n=r.one(t,void 0),i=l$(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
`},i),a}function S$(t,e){return t&&"run"in t?async function(r,n){const i=Px(r,{file:n,...e});await t.run(i,n)}:function(r,n){return Px(r,{file:n,...t||e})}}function Ix(t){if(t)throw t}var Oc=Object.prototype.hasOwnProperty,Rk=Object.prototype.toString,Rx=Object.defineProperty,Ox=Object.getOwnPropertyDescriptor,Dx=function(e){return typeof Array.isArray=="function"?Array.isArray(e):Rk.call(e)==="[object Array]"},zx=function(e){if(!e||Rk.call(e)!=="[object Object]")return!1;var r=Oc.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Oc.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;var i;for(i in e);return typeof i>"u"||Oc.call(e,i)},jx=function(e,r){Rx&&r.name==="__proto__"?Rx(e,r.name,{enumerable:!0,configurable:!0,value:r.newValue,writable:!0}):e[r.name]=r.newValue},Hx=function(e,r){if(r==="__proto__")if(Oc.call(e,r)){if(Ox)return Ox(e,r).value}else return;return e[r]},_$=function t(){var e,r,n,i,a,s,o=arguments[0],l=1,c=arguments.length,u=!1;for(typeof o=="boolean"&&(u=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});l<c;++l)if(e=arguments[l],e!=null)for(r in e)n=Hx(o,r),i=Hx(e,r),o!==i&&(u&&i&&(zx(i)||(a=Dx(i)))?(a?(a=!1,s=n&&Dx(n)?n:[]):s=n&&zx(n)?n:{},jx(o,{name:r,newValue:t(u,s,i)})):typeof i<"u"&&jx(o,{name:r,newValue:i}));return o};const Od=_l(_$);function yp(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function T$(){const t=[],e={run:r,use:n};return e;function r(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(l,...c){const u=t[++a];let h=-1;if(l){s(l);return}for(;++h<i.length;)(c[h]===null||c[h]===void 0)&&(c[h]=i[h]);i=c,u?E$(u,o)(...c):s(null,...c)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return t.push(i),e}}function E$(t,e){let r;return n;function n(...s){const o=t.length>s.length;let l;o&&s.push(i);try{l=t.apply(this,s)}catch(c){const u=c;if(o&&r)throw u;return i(u)}o||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){r||(r=!0,e(s,...o))}function a(s){i(null,s)}}const mn={basename:L$,dirname:M$,extname:A$,join:B$,sep:"/"};function L$(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Nl(t);let r=0,n=-1,i=t.length,a;if(e===void 0||e.length===0||e.length>t.length){for(;i--;)if(t.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":t.slice(r,n)}if(e===t)return"";let s=-1,o=e.length-1;for(;i--;)if(t.codePointAt(i)===47){if(a){r=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(t.codePointAt(i)===e.codePointAt(o--)?o<0&&(n=i):(o=-1,n=s));return r===n?n=s:n<0&&(n=t.length),t.slice(r,n)}function M$(t){if(Nl(t),t.length===0)return".";let e=-1,r=t.length,n;for(;--r;)if(t.codePointAt(r)===47){if(n){e=r;break}}else n||(n=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function A$(t){Nl(t);let e=t.length,r=-1,n=0,i=-1,a=0,s;for(;e--;){const o=t.codePointAt(e);if(o===47){if(s){n=e+1;break}continue}r<0&&(s=!0,r=e+1),o===46?i<0?i=e:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":t.slice(i,r)}function B$(...t){let e=-1,r;for(;++e<t.length;)Nl(t[e]),t[e]&&(r=r===void 0?t[e]:r+"/"+t[e]);return r===void 0?".":N$(r)}function N$(t){Nl(t);const e=t.codePointAt(0)===47;let r=$$(t,!e);return r.length===0&&!e&&(r="."),r.length>0&&t.codePointAt(t.length-1)===47&&(r+="/"),e?"/"+r:r}function $$(t,e){let r="",n=0,i=-1,a=0,s=-1,o,l;for(;++s<=t.length;){if(s<t.length)o=t.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=s,a=0;continue}}else if(r.length>0){r="",n=0,i=s,a=0;continue}}e&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+t.slice(i+1,s):r=t.slice(i+1,s),n=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return r}function Nl(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const F$={cwd:P$};function P$(){return"/"}function xp(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function I$(t){if(typeof t=="string")t=new URL(t);else if(!xp(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return R$(t)}function R$(t){if(t.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const e=t.pathname;let r=-1;for(;++r<e.length;)if(e.codePointAt(r)===37&&e.codePointAt(r+1)===50){const n=e.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(e)}const Dd=["history","path","basename","stem","extname","dirname"];class Ok{constructor(e){let r;e?xp(e)?r={path:e}:typeof e=="string"||O$(e)?r={value:e}:r=e:r={},this.cwd="cwd"in r?"":F$.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Dd.length;){const a=Dd[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)Dd.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?mn.basename(this.path):void 0}set basename(e){jd(e,"basename"),zd(e,"basename"),this.path=mn.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?mn.dirname(this.path):void 0}set dirname(e){Wx(this.basename,"dirname"),this.path=mn.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?mn.extname(this.path):void 0}set extname(e){if(zd(e,"extname"),Wx(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=mn.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){xp(e)&&(e=I$(e)),jd(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?mn.basename(this.path,this.extname):void 0}set stem(e){jd(e,"stem"),zd(e,"stem"),this.path=mn.join(this.dirname||"",e+(this.extname||""))}fail(e,r,n){const i=this.message(e,r,n);throw i.fatal=!0,i}info(e,r,n){const i=this.message(e,r,n);return i.fatal=void 0,i}message(e,r,n){const i=new Oe(e,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function zd(t,e){if(t&&t.includes(mn.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+mn.sep+"`")}function jd(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function Wx(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function O$(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const D$=function(t){const n=this.constructor.prototype,i=n[t],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,n),a},z$={}.hasOwnProperty;class _m extends D${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=T$()}copy(){const e=new _m;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];e.use(...n)}return e.data(Od(!0,{},this.namespace)),e}data(e,r){return typeof e=="string"?arguments.length===2?(qd("data",this.frozen),this.namespace[e]=r,this):z$.call(this.namespace,e)&&this.namespace[e]||void 0:e?(qd("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(e,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const r=dc(e),n=this.parser||this.Parser;return Hd("parse",n),n(String(r),r)}process(e,r){const n=this;return this.freeze(),Hd("process",this.parser||this.Parser),Wd("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,s){const o=dc(e),l=n.parse(o);n.run(l,o,function(u,h,f){if(u||!h||!f)return c(u);const d=h,p=n.stringify(d,f);W$(p)?f.value=p:f.result=p,c(u,f)});function c(u,h){u||!h?s(u):a?a(h):r(void 0,h)}}}processSync(e){let r=!1,n;return this.freeze(),Hd("processSync",this.parser||this.Parser),Wd("processSync",this.compiler||this.Compiler),this.process(e,i),Ux("processSync","process",r),n;function i(a,s){r=!0,Ix(a),n=s}}run(e,r,n){qx(e),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(s,o){const l=dc(r);i.run(e,l,c);function c(u,h,f){const d=h||e;u?o(u):s?s(d):n(void 0,d,f)}}}runSync(e,r){let n=!1,i;return this.run(e,r,a),Ux("runSync","run",n),i;function a(s,o){Ix(s),i=o,n=!0}}stringify(e,r){this.freeze();const n=dc(r),i=this.compiler||this.Compiler;return Wd("stringify",i),qx(e),i(e,n)}use(e,...r){const n=this.attachers,i=this.namespace;if(qd("use",this.frozen),e!=null)if(typeof e=="function")l(e,r);else if(typeof e=="object")Array.isArray(e)?o(e):s(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function a(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[u,...h]=c;l(u,h)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))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");o(c.plugins),c.settings&&(i.settings=Od(!0,i.settings,c.settings))}function o(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){const h=c[u];a(h)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let h=-1,f=-1;for(;++h<n.length;)if(n[h][0]===c){f=h;break}if(f===-1)n.push([c,...u]);else if(u.length>0){let[d,...p]=u;const g=n[f][1];yp(g)&&yp(d)&&(d=Od(!0,g,d)),n[f]=[c,d,...p]}}}}const j$=new _m().freeze();function Hd(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function Wd(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function qd(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function qx(t){if(!yp(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Ux(t,e,r){if(!r)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function dc(t){return H$(t)?t:new Ok(t)}function H$(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function W$(t){return typeof t=="string"||q$(t)}function q$(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const U$="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Vx=[],Yx={allowDangerousHtml:!0},V$=/^(https?|ircs?|mailto|xmpp)$/i,Y$=[{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 G$(t){const e=X$(t),r=Q$(t);return K$(e.runSync(e.parse(r),r),t)}function X$(t){const e=t.rehypePlugins||Vx,r=t.remarkPlugins||Vx,n=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Yx}:Yx;return j$().use(M4).use(r).use(S$,n).use(e)}function Q$(t){const e=t.children||"",r=new Ok;return typeof e=="string"&&(r.value=e),r}function K$(t,e){const r=e.allowedElements,n=e.allowElement,i=e.components,a=e.disallowedElements,s=e.skipHtml,o=e.unwrapDisallowed,l=e.urlTransform||Z$;for(const u of Y$)Object.hasOwn(e,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+U$+u.id,void 0);return Ik(t,c),lN(t,{Fragment:k.Fragment,components:i,ignoreInvalidStyle:!0,jsx:k.jsx,jsxs:k.jsxs,passKeys:!0,passNode:!0});function c(u,h,f){if(u.type==="raw"&&f&&typeof h=="number")return s?f.children.splice(h,1):f.children[h]={type:"text",value:u.value},h;if(u.type==="element"){let d;for(d in Pd)if(Object.hasOwn(Pd,d)&&Object.hasOwn(u.properties,d)){const p=u.properties[d],g=Pd[d];(g===null||g.includes(u.tagName))&&(u.properties[d]=l(String(p||""),d,u))}}if(u.type==="element"){let d=r?!r.includes(u.tagName):a?a.includes(u.tagName):!1;if(!d&&n&&typeof h=="number"&&(d=!n(u,h,f)),d&&f&&typeof h=="number")return o&&u.children?f.children.splice(h,1,...u.children):f.children.splice(h,1),h}}}function Z$(t){const e=t.indexOf(":"),r=t.indexOf("?"),n=t.indexOf("#"),i=t.indexOf("/");return e===-1||i!==-1&&e>i||r!==-1&&e>r||n!==-1&&e>n||V$.test(t.slice(0,e))?t:""}const J$={vscDarkPlus:{background:"#1e1e1e",color:"#d4d4d4",lineNumberColor:"#858585"},oneLight:{background:"#fafafa",color:"#383a42",lineNumberColor:"#a0a1a7"},dracula:{background:"#282a36",color:"#f8f8f2",lineNumberColor:"#6272a4"},atomDark:{background:"#1d1f21",color:"#c5c8c6",lineNumberColor:"#969896"},tomorrow:{background:"#ffffff",color:"#4d4d4c",lineNumberColor:"#8e908c"}};function Lu({language:t,children:e,theme:r="vscDarkPlus",showLineNumbers:n=!0}){const i=J$[r],a=e.split(`
`);return k.jsx("div",{className:"relative overflow-x-auto rounded-b-lg",style:{backgroundColor:i.background,color:i.color},children:k.jsx("pre",{className:"p-4 text-sm font-mono leading-relaxed",children:n?k.jsxs("div",{className:"flex",children:[k.jsx("div",{className:"select-none pr-4 text-right",style:{color:i.lineNumberColor},children:a.map((s,o)=>k.jsx("div",{className:"leading-relaxed",children:o+1},o))}),k.jsx("div",{className:"flex-1",children:k.jsx("code",{className:"block whitespace-pre",children:e})})]}):k.jsx("code",{className:"block whitespace-pre",children:e})})})}function Dk({isOpen:t,onClose:e,children:r,title:n}){return Q.useEffect(()=>{t?document.body.style.overflow="hidden":document.body.style.overflow="auto";const i=a=>{a.key==="Escape"&&e()};return t&&document.addEventListener("keydown",i),()=>{document.body.style.overflow="auto",document.removeEventListener("keydown",i)}},[t,e]),t?k.jsx("div",{className:"fixed inset-0 z-50 bg-black/80 flex items-center justify-center p-4",children:k.jsxs("div",{className:"relative w-[95vw] h-[95vh] bg-background rounded-lg shadow-2xl border-2 border-border overflow-hidden",children:[k.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-border bg-muted/50",children:[n&&k.jsx("h2",{className:"text-lg font-semibold",children:n}),k.jsx("button",{onClick:e,className:"p-2 hover:bg-accent rounded-lg transition-colors ml-auto",title:"Close fullscreen view",children:k.jsx(KA,{size:20})})]}),k.jsx("div",{className:"w-full h-[calc(100%-4rem)] overflow-hidden",children:r})]})}):null}function tF({code:t}){const[e,r]=Q.useState("rendered"),[n,i]=Q.useState(!1),[a,s]=Q.useState(!1),o=async()=>{try{await navigator.clipboard.writeText(t),i(!0),setTimeout(()=>i(!1),2e3)}catch(u){console.error("Failed to copy text: ",u)}},c=/<html/i.test(t)?t:`<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Preview</title>
<style>
/* Basic Tailwind-like utilities for preview */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.bg-blue-500 { background-color: #3b82f6; }
.text-white { color: white; }
.p-4 { padding: 1rem; }
.m-4 { margin: 1rem; }
.rounded { border-radius: 0.25rem; }
</style>
<style>
body { margin: 0; padding: 16px; font-family: system-ui, -apple-system, sans-serif; }
</style>
</head>
<body>
${t}
</body>
</html>`;return k.jsxs("div",{className:"border rounded-lg overflow-hidden bg-card border-border",children:[k.jsxs("div",{className:"bg-muted border-b border-border flex",children:[k.jsx("button",{onClick:()=>r("rendered"),className:`px-4 py-2 text-sm font-medium transition-colors ${e==="rendered"?"bg-background text-foreground border-b-2 border-primary":"text-muted-foreground hover:text-foreground"}`,children:"HTML Preview"}),k.jsx("button",{onClick:()=>r("source"),className:`px-4 py-2 text-sm font-medium transition-colors ${e==="source"?"bg-background text-foreground border-b-2 border-primary":"text-muted-foreground hover:text-foreground"}`,children:"Source"}),k.jsxs("div",{className:"flex-1 bg-muted px-4 py-2 text-sm text-muted-foreground flex justify-end items-center gap-2",children:[k.jsxs("button",{onClick:()=>s(!0),className:"flex items-center gap-1 px-2 py-1 text-xs text-muted-foreground hover:text-foreground hover:bg-accent rounded transition-colors",title:"View in fullscreen",children:[k.jsx(Uw,{size:14}),"Fullscreen"]}),k.jsxs("button",{onClick:o,className:"flex items-center gap-1 px-2 py-1 text-xs text-muted-foreground hover:text-foreground hover:bg-accent rounded transition-colors",title:"Copy HTML code",children:[n?k.jsx(Su,{size:14}):k.jsx(_u,{size:14}),n?"Copied!":"Copy"]})]})]}),k.jsx("div",{className:"min-h-[200px]",children:e==="rendered"?k.jsx("iframe",{srcDoc:c,className:"w-full h-96 border-0",title:"HTML Preview",sandbox:"allow-scripts"}):k.jsx("div",{className:"p-0",children:k.jsx(Lu,{language:"html",showLineNumbers:!0,children:t})})}),k.jsx(Dk,{isOpen:a,onClose:()=>s(!1),title:"HTML Preview",children:k.jsxs("div",{className:"w-full h-full flex flex-col",children:[k.jsxs("div",{className:"bg-muted border-b border-border flex",children:[k.jsx("button",{onClick:()=>r("rendered"),className:`px-4 py-2 text-sm font-medium transition-colors ${e==="rendered"?"bg-background text-foreground border-b-2 border-primary":"text-muted-foreground hover:text-foreground"}`,children:"HTML Preview"}),k.jsx("button",{onClick:()=>r("source"),className:`px-4 py-2 text-sm font-medium transition-colors ${e==="source"?"bg-background text-foreground border-b-2 border-primary":"text-muted-foreground hover:text-foreground"}`,children:"Source"})]}),k.jsx("div",{className:"flex-1",children:e==="rendered"?k.jsx("iframe",{srcDoc:c,className:"w-full h-full border-0",title:"HTML Preview",sandbox:"allow-scripts"}):k.jsx("div",{className:"h-full overflow-auto",children:k.jsx(Lu,{language:"html",showLineNumbers:!0,children:t})})})]})})]})}const eF="modulepreload",rF=function(t){return"/"+t},Gx={},zt=function(e,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),o=(s==null?void 0:s.nonce)||(s==null?void 0:s.getAttribute("nonce"));i=Promise.allSettled(r.map(l=>{if(l=rF(l),l in Gx)return;Gx[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":eF,c||(h.as="script"),h.crossOrigin="",h.href=l,o&&h.setAttribute("nonce",o),document.head.appendChild(h),c)return new Promise((f,d)=>{h.addEventListener("load",f),h.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return i.then(s=>{for(const o of s||[])o.status==="rejected"&&a(o.reason);return e().catch(a)})};var zk={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Yo,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",s="second",o="minute",l="hour",c="day",u="week",h="month",f="quarter",d="year",p="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,y={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 $=["th","st","nd","rd"],M=P%100;return"["+P+($[(M-20)%10]||$[M]||$[0])+"]"}},b=function(P,$,M){var D=String(P);return!D||D.length>=$?P:""+Array($+1-D.length).join(M)+P},S={s:b,z:function(P){var $=-P.utcOffset(),M=Math.abs($),D=Math.floor(M/60),L=M%60;return($<=0?"+":"-")+b(D,2,"0")+":"+b(L,2,"0")},m:function P($,M){if($.date()<M.date())return-P(M,$);var D=12*(M.year()-$.year())+(M.month()-$.month()),L=$.clone().add(D,h),F=M-L<0,C=$.clone().add(D+(F?-1:1),h);return+(-(D+(M-L)/(F?L-C:C-L))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:h,y:d,w:u,d:c,D:p,h:l,m:o,s,ms:a,Q:f}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},_="en",w={};w[_]=y;var T="$isDayjsObject",N=function(P){return P instanceof R||!(!P||!P[T])},z=function P($,M,D){var L;if(!$)return _;if(typeof $=="string"){var F=$.toLowerCase();w[F]&&(L=F),M&&(w[F]=M,L=F);var C=$.split("-");if(!L&&C.length>1)return P(C[0])}else{var W=$.name;w[W]=$,L=W}return!D&&L&&(_=L),L||!D&&_},I=function(P,$){if(N(P))return P.clone();var M=typeof $=="object"?$:{};return M.date=P,M.args=arguments,new R(M)},A=S;A.l=z,A.i=N,A.w=function(P,$){return I(P,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var R=function(){function P(M){this.$L=z(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[T]=!0}var $=P.prototype;return $.parse=function(M){this.$d=function(D){var L=D.date,F=D.utc;if(L===null)return new Date(NaN);if(A.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var C=L.match(v);if(C){var W=C[2]-1||0,Y=(C[7]||"0").substring(0,3);return F?new Date(Date.UTC(C[1],W,C[3]||1,C[4]||0,C[5]||0,C[6]||0,Y)):new Date(C[1],W,C[3]||1,C[4]||0,C[5]||0,C[6]||0,Y)}}return new Date(L)}(M),this.init()},$.init=function(){var M=this.$d;this.$y=M.getFullYear(),this.$M=M.getMonth(),this.$D=M.getDate(),this.$W=M.getDay(),this.$H=M.getHours(),this.$m=M.getMinutes(),this.$s=M.getSeconds(),this.$ms=M.getMilliseconds()},$.$utils=function(){return A},$.isValid=function(){return this.$d.toString()!==g},$.isSame=function(M,D){var L=I(M);return this.startOf(D)<=L&&L<=this.endOf(D)},$.isAfter=function(M,D){return I(M)<this.startOf(D)},$.isBefore=function(M,D){return this.endOf(D)<I(M)},$.$g=function(M,D,L){return A.u(M)?this[D]:this.set(L,M)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(M,D){var L=this,F=!!A.u(D)||D,C=A.p(M),W=function(St,_t){var Ft=A.w(L.$u?Date.UTC(L.$y,_t,St):new Date(L.$y,_t,St),L);return F?Ft:Ft.endOf(c)},Y=function(St,_t){return A.w(L.toDate()[St].apply(L.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(_t)),L)},E=this.$W,et=this.$M,nt=this.$D,J="set"+(this.$u?"UTC":"");switch(C){case d:return F?W(1,0):W(31,11);case h:return F?W(1,et):W(0,et+1);case u:var tt=this.$locale().weekStart||0,Lt=(E<tt?E+7:E)-tt;return W(F?nt-Lt:nt+(6-Lt),et);case c:case p:return Y(J+"Hours",0);case l:return Y(J+"Minutes",1);case o:return Y(J+"Seconds",2);case s:return Y(J+"Milliseconds",3);default:return this.clone()}},$.endOf=function(M){return this.startOf(M,!1)},$.$set=function(M,D){var L,F=A.p(M),C="set"+(this.$u?"UTC":""),W=(L={},L[c]=C+"Date",L[p]=C+"Date",L[h]=C+"Month",L[d]=C+"FullYear",L[l]=C+"Hours",L[o]=C+"Minutes",L[s]=C+"Seconds",L[a]=C+"Milliseconds",L)[F],Y=F===c?this.$D+(D-this.$W):D;if(F===h||F===d){var E=this.clone().set(p,1);E.$d[W](Y),E.init(),this.$d=E.set(p,Math.min(this.$D,E.daysInMonth())).$d}else W&&this.$d[W](Y);return this.init(),this},$.set=function(M,D){return this.clone().$set(M,D)},$.get=function(M){return this[A.p(M)]()},$.add=function(M,D){var L,F=this;M=Number(M);var C=A.p(D),W=function(et){var nt=I(F);return A.w(nt.date(nt.date()+Math.round(et*M)),F)};if(C===h)return this.set(h,this.$M+M);if(C===d)return this.set(d,this.$y+M);if(C===c)return W(1);if(C===u)return W(7);var Y=(L={},L[o]=n,L[l]=i,L[s]=r,L)[C]||1,E=this.$d.getTime()+M*Y;return A.w(E,this)},$.subtract=function(M,D){return this.add(-1*M,D)},$.format=function(M){var D=this,L=this.$locale();if(!this.isValid())return L.invalidDate||g;var F=M||"YYYY-MM-DDTHH:mm:ssZ",C=A.z(this),W=this.$H,Y=this.$m,E=this.$M,et=L.weekdays,nt=L.months,J=L.meridiem,tt=function(_t,Ft,se,ze){return _t&&(_t[Ft]||_t(D,F))||se[Ft].slice(0,ze)},Lt=function(_t){return A.s(W%12||12,_t,"0")},St=J||function(_t,Ft,se){var ze=_t<12?"AM":"PM";return se?ze.toLowerCase():ze};return F.replace(m,function(_t,Ft){return Ft||function(se){switch(se){case"YY":return String(D.$y).slice(-2);case"YYYY":return A.s(D.$y,4,"0");case"M":return E+1;case"MM":return A.s(E+1,2,"0");case"MMM":return tt(L.monthsShort,E,nt,3);case"MMMM":return tt(nt,E);case"D":return D.$D;case"DD":return A.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return tt(L.weekdaysMin,D.$W,et,2);case"ddd":return tt(L.weekdaysShort,D.$W,et,3);case"dddd":return et[D.$W];case"H":return String(W);case"HH":return A.s(W,2,"0");case"h":return Lt(1);case"hh":return Lt(2);case"a":return St(W,Y,!0);case"A":return St(W,Y,!1);case"m":return String(Y);case"mm":return A.s(Y,2,"0");case"s":return String(D.$s);case"ss":return A.s(D.$s,2,"0");case"SSS":return A.s(D.$ms,3,"0");case"Z":return C}return null}(_t)||C.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(M,D,L){var F,C=this,W=A.p(D),Y=I(M),E=(Y.utcOffset()-this.utcOffset())*n,et=this-Y,nt=function(){return A.m(C,Y)};switch(W){case d:F=nt()/12;break;case h:F=nt();break;case f:F=nt()/3;break;case u:F=(et-E)/6048e5;break;case c:F=(et-E)/864e5;break;case l:F=et/i;break;case o:F=et/n;break;case s:F=et/r;break;default:F=et}return L?F:A.a(F)},$.daysInMonth=function(){return this.endOf(h).$D},$.$locale=function(){return w[this.$L]},$.locale=function(M,D){if(!M)return this.$L;var L=this.clone(),F=z(M,D,!0);return F&&(L.$L=F),L},$.clone=function(){return A.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},P}(),j=R.prototype;return I.prototype=j,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",c],["$M",h],["$y",d],["$D",p]].forEach(function(P){j[P[1]]=function($){return this.$g($,P[0],P[1])}}),I.extend=function(P,$){return P.$i||(P($,R,I),P.$i=!0),I},I.locale=z,I.isDayjs=N,I.unix=function(P){return I(1e3*P)},I.en=w[_],I.Ls=w,I.p={},I})})(zk);var nF=zk.exports;const iF=_l(nF),Dc={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t),hsl2rgb:({h:t,s:e,l:r},n)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;const i=r<.5?r*(1+e):r+e-r*e,a=2*r-i;switch(n){case"r":return Dc.hue2rgb(a,i,t+1/3)*255;case"g":return Dc.hue2rgb(a,i,t)*255;case"b":return Dc.hue2rgb(a,i,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:r},n)=>{t/=255,e/=255,r/=255;const i=Math.max(t,e,r),a=Math.min(t,e,r),s=(i+a)/2;if(n==="l")return s*100;if(i===a)return 0;const o=i-a,l=s>.5?o/(2-i-a):o/(i+a);if(n==="s")return l*100;switch(i){case t:return((e-r)/o+(e<r?6:0))*60;case e:return((r-t)/o+2)*60;case r:return((t-e)/o+4)*60;default:return-1}}},aF={clamp:(t,e,r)=>e>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},sF={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},xt={channel:Dc,lang:aF,unit:sF},di={};for(let t=0;t<=255;t++)di[t]=xt.unit.dec2hex(t);const $e={ALL:0,RGB:1,HSL:2};class oF{constructor(){this.type=$e.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=$e.ALL}is(e){return this.type===e}}class lF{constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new oF}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=$e.ALL,this}_ensureHSL(){const e=this.data,{h:r,s:n,l:i}=e;r===void 0&&(e.h=xt.channel.rgb2hsl(e,"h")),n===void 0&&(e.s=xt.channel.rgb2hsl(e,"s")),i===void 0&&(e.l=xt.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r,g:n,b:i}=e;r===void 0&&(e.r=xt.channel.hsl2rgb(e,"r")),n===void 0&&(e.g=xt.channel.hsl2rgb(e,"g")),i===void 0&&(e.b=xt.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,r=e.r;return!this.type.is($e.HSL)&&r!==void 0?r:(this._ensureHSL(),xt.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,r=e.g;return!this.type.is($e.HSL)&&r!==void 0?r:(this._ensureHSL(),xt.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,r=e.b;return!this.type.is($e.HSL)&&r!==void 0?r:(this._ensureHSL(),xt.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,r=e.h;return!this.type.is($e.RGB)&&r!==void 0?r:(this._ensureRGB(),xt.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,r=e.s;return!this.type.is($e.RGB)&&r!==void 0?r:(this._ensureRGB(),xt.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,r=e.l;return!this.type.is($e.RGB)&&r!==void 0?r:(this._ensureRGB(),xt.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set($e.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set($e.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set($e.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set($e.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set($e.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set($e.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Ah=new lF({r:0,g:0,b:0,a:0},"transparent"),ss={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(ss.re);if(!e)return;const r=e[1],n=parseInt(r,16),i=r.length,a=i%4===0,s=i>4,o=s?1:17,l=s?8:4,c=a?0:-1,u=s?255:15;return Ah.set({r:(n>>l*(c+3)&u)*o,g:(n>>l*(c+2)&u)*o,b:(n>>l*(c+1)&u)*o,a:a?(n&u)*o/255:1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`#${di[Math.round(e)]}${di[Math.round(r)]}${di[Math.round(n)]}${di[Math.round(i*255)]}`:`#${di[Math.round(e)]}${di[Math.round(r)]}${di[Math.round(n)]}`}},ta={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(ta.hueRe);if(e){const[,r,n]=e;switch(n){case"grad":return xt.channel.clamp.h(parseFloat(r)*.9);case"rad":return xt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return xt.channel.clamp.h(parseFloat(r)*360)}}return xt.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const r=t.match(ta.re);if(!r)return;const[,n,i,a,s,o]=r;return Ah.set({h:ta._hue2deg(n),s:xt.channel.clamp.s(parseFloat(i)),l:xt.channel.clamp.l(parseFloat(a)),a:s?xt.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},t)},stringify:t=>{const{h:e,s:r,l:n,a:i}=t;return i<1?`hsla(${xt.lang.round(e)}, ${xt.lang.round(r)}%, ${xt.lang.round(n)}%, ${i})`:`hsl(${xt.lang.round(e)}, ${xt.lang.round(r)}%, ${xt.lang.round(n)}%)`}},jo={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:t=>{t=t.toLowerCase();const e=jo.colors[t];if(e)return ss.parse(e)},stringify:t=>{const e=ss.stringify(t);for(const r in jo.colors)if(jo.colors[r]===e)return r}},ko={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:t=>{const e=t.charCodeAt(0);if(e!==114&&e!==82)return;const r=t.match(ko.re);if(!r)return;const[,n,i,a,s,o,l,c,u]=r;return Ah.set({r:xt.channel.clamp.r(i?parseFloat(n)*2.55:parseFloat(n)),g:xt.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:xt.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:c?xt.channel.clamp.a(u?parseFloat(c)/100:parseFloat(c)):1},t)},stringify:t=>{const{r:e,g:r,b:n,a:i}=t;return i<1?`rgba(${xt.lang.round(e)}, ${xt.lang.round(r)}, ${xt.lang.round(n)}, ${xt.lang.round(i)})`:`rgb(${xt.lang.round(e)}, ${xt.lang.round(r)}, ${xt.lang.round(n)})`}},_n={format:{keyword:jo,hex:ss,rgb:ko,rgba:ko,hsl:ta,hsla:ta},parse:t=>{if(typeof t!="string")return t;const e=ss.parse(t)||ko.parse(t)||ta.parse(t)||jo.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},stringify:t=>!t.changed&&t.color?t.color:t.type.is($e.HSL)||t.data.r===void 0?ta.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?ko.stringify(t):ss.stringify(t)},jk=(t,e)=>{const r=_n.parse(t);for(const n in e)r[n]=xt.channel.clamp[n](e[n]);return _n.stringify(r)},Ho=(t,e,r=0,n=1)=>{if(typeof t!="number")return jk(t,{a:e});const i=Ah.set({r:xt.channel.clamp.r(t),g:xt.channel.clamp.g(e),b:xt.channel.clamp.b(r),a:xt.channel.clamp.a(n)});return _n.stringify(i)},cF=t=>{const{r:e,g:r,b:n}=_n.parse(t),i=.2126*xt.channel.toLinear(e)+.7152*xt.channel.toLinear(r)+.0722*xt.channel.toLinear(n);return xt.lang.round(i)},uF=t=>cF(t)>=.5,$l=t=>!uF(t),Hk=(t,e,r)=>{const n=_n.parse(t),i=n[e],a=xt.channel.clamp[e](i+r);return i!==a&&(n[e]=a),_n.stringify(n)},it=(t,e)=>Hk(t,"l",e),pt=(t,e)=>Hk(t,"l",-e),O=(t,e)=>{const r=_n.parse(t),n={};for(const i in e)e[i]&&(n[i]=r[i]+e[i]);return jk(t,n)},hF=(t,e,r=50)=>{const{r:n,g:i,b:a,a:s}=_n.parse(t),{r:o,g:l,b:c,a:u}=_n.parse(e),h=r/100,f=h*2-1,d=s-u,g=((f*d===-1?f:(f+d)/(1+f*d))+1)/2,v=1-g,m=n*g+o*v,y=i*g+l*v,b=a*g+c*v,S=s*h+u*(1-h);return Ho(m,y,b,S)},K=(t,e=100)=>{const r=_n.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,hF(r,t,e)};/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:Wk,setPrototypeOf:Xx,isFrozen:dF,getPrototypeOf:fF,getOwnPropertyDescriptor:pF}=Object;let{freeze:Ze,seal:Hr,create:qk}=Object,{apply:vp,construct:bp}=typeof Reflect<"u"&&Reflect;Ze||(Ze=function(e){return e});Hr||(Hr=function(e){return e});vp||(vp=function(e,r,n){return e.apply(r,n)});bp||(bp=function(e,r){return new e(...r)});const fc=Je(Array.prototype.forEach),gF=Je(Array.prototype.lastIndexOf),Qx=Je(Array.prototype.pop),ao=Je(Array.prototype.push),mF=Je(Array.prototype.splice),zc=Je(String.prototype.toLowerCase),Ud=Je(String.prototype.toString),Kx=Je(String.prototype.match),so=Je(String.prototype.replace),yF=Je(String.prototype.indexOf),xF=Je(String.prototype.trim),Gr=Je(Object.prototype.hasOwnProperty),Ue=Je(RegExp.prototype.test),oo=vF(TypeError);function Je(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return vp(t,e,n)}}function vF(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return bp(t,r)}}function Tt(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zc;Xx&&Xx(t,null);let n=e.length;for(;n--;){let i=e[n];if(typeof i=="string"){const a=r(i);a!==i&&(dF(e)||(e[n]=a),i=a)}t[i]=!0}return t}function bF(t){for(let e=0;e<t.length;e++)Gr(t,e)||(t[e]=null);return t}function On(t){const e=qk(null);for(const[r,n]of Wk(t))Gr(t,r)&&(Array.isArray(n)?e[r]=bF(n):n&&typeof n=="object"&&n.constructor===Object?e[r]=On(n):e[r]=n);return e}function lo(t,e){for(;t!==null;){const n=pF(t,e);if(n){if(n.get)return Je(n.get);if(typeof n.value=="function")return Je(n.value)}t=fF(t)}function r(){return null}return r}const Zx=Ze(["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","section","select","shadow","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"]),Vd=Ze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Yd=Ze(["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"]),wF=Ze(["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"]),Gd=Ze(["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"]),kF=Ze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Jx=Ze(["#text"]),t1=Ze(["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","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Xd=Ze(["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","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"]),e1=Ze(["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"]),pc=Ze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),CF=Hr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),SF=Hr(/<%[\w\W]*|[\w\W]*%>/gm),_F=Hr(/\$\{[\w\W]*/gm),TF=Hr(/^data-[\-\w.\u00B7-\uFFFF]+$/),EF=Hr(/^aria-[\-\w]+$/),Uk=Hr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),LF=Hr(/^(?:\w+script|data):/i),MF=Hr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Vk=Hr(/^html$/i),AF=Hr(/^[a-z][.\w]*(-[.\w]+)+$/i);var r1=Object.freeze({__proto__:null,ARIA_ATTR:EF,ATTR_WHITESPACE:MF,CUSTOM_ELEMENT:AF,DATA_ATTR:TF,DOCTYPE_NAME:Vk,ERB_EXPR:SF,IS_ALLOWED_URI:Uk,IS_SCRIPT_OR_DATA:LF,MUSTACHE_EXPR:CF,TMPLIT_EXPR:_F});const co={element:1,text:3,progressingInstruction:7,comment:8,document:9},BF=function(){return typeof window>"u"?null:window},NF=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},n1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Yk(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:BF();const e=ft=>Yk(ft);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==co.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const n=r,i=n.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:o,Element:l,NodeFilter:c,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:f,trustedTypes:d}=t,p=l.prototype,g=lo(p,"cloneNode"),v=lo(p,"remove"),m=lo(p,"nextSibling"),y=lo(p,"childNodes"),b=lo(p,"parentNode");if(typeof s=="function"){const ft=r.createElement("template");ft.content&&ft.content.ownerDocument&&(r=ft.content.ownerDocument)}let S,_="";const{implementation:w,createNodeIterator:T,createDocumentFragment:N,getElementsByTagName:z}=r,{importNode:I}=n;let A=n1();e.isSupported=typeof Wk=="function"&&typeof b=="function"&&w&&w.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:R,ERB_EXPR:j,TMPLIT_EXPR:P,DATA_ATTR:$,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:L,CUSTOM_ELEMENT:F}=r1;let{IS_ALLOWED_URI:C}=r1,W=null;const Y=Tt({},[...Zx,...Vd,...Yd,...Gd,...Jx]);let E=null;const et=Tt({},[...t1,...Xd,...e1,...pc]);let nt=Object.seal(qk(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}})),J=null,tt=null,Lt=!0,St=!0,_t=!1,Ft=!0,se=!1,ze=!0,je=!1,si=!1,Mn=!1,qr=!1,sn=!1,An=!1,oi=!0,on=!1;const Ma="user-content-";let xr=!0,Bn=!1,ln={},H=null;const G=Tt({},["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 yt=null;const Ct=Tt({},["audio","video","img","source","image","track"]);let Mt=null;const Le=Tt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),He="http://www.w3.org/1998/Math/MathML",xe="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml";let We=ie,Kt=!1,Nr=null;const vr=Tt({},[He,xe,ie],Ud);let Hi=Tt({},["mi","mo","mn","ms","mtext"]),Wi=Tt({},["annotation-xml"]);const nd=Tt({},["title","style","font","a","script"]);let Nn=null;const cn=["application/xhtml+xml","text/html"],id="text/html";let st=null,At=null;const Wt=r.createElement("form"),rr=function(B){return B instanceof RegExp||B instanceof Function},qe=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(At&&At===B)){if((!B||typeof B!="object")&&(B={}),B=On(B),Nn=cn.indexOf(B.PARSER_MEDIA_TYPE)===-1?id:B.PARSER_MEDIA_TYPE,st=Nn==="application/xhtml+xml"?Ud:zc,W=Gr(B,"ALLOWED_TAGS")?Tt({},B.ALLOWED_TAGS,st):Y,E=Gr(B,"ALLOWED_ATTR")?Tt({},B.ALLOWED_ATTR,st):et,Nr=Gr(B,"ALLOWED_NAMESPACES")?Tt({},B.ALLOWED_NAMESPACES,Ud):vr,Mt=Gr(B,"ADD_URI_SAFE_ATTR")?Tt(On(Le),B.ADD_URI_SAFE_ATTR,st):Le,yt=Gr(B,"ADD_DATA_URI_TAGS")?Tt(On(Ct),B.ADD_DATA_URI_TAGS,st):Ct,H=Gr(B,"FORBID_CONTENTS")?Tt({},B.FORBID_CONTENTS,st):G,J=Gr(B,"FORBID_TAGS")?Tt({},B.FORBID_TAGS,st):On({}),tt=Gr(B,"FORBID_ATTR")?Tt({},B.FORBID_ATTR,st):On({}),ln=Gr(B,"USE_PROFILES")?B.USE_PROFILES:!1,Lt=B.ALLOW_ARIA_ATTR!==!1,St=B.ALLOW_DATA_ATTR!==!1,_t=B.ALLOW_UNKNOWN_PROTOCOLS||!1,Ft=B.ALLOW_SELF_CLOSE_IN_ATTR!==!1,se=B.SAFE_FOR_TEMPLATES||!1,ze=B.SAFE_FOR_XML!==!1,je=B.WHOLE_DOCUMENT||!1,qr=B.RETURN_DOM||!1,sn=B.RETURN_DOM_FRAGMENT||!1,An=B.RETURN_TRUSTED_TYPE||!1,Mn=B.FORCE_BODY||!1,oi=B.SANITIZE_DOM!==!1,on=B.SANITIZE_NAMED_PROPS||!1,xr=B.KEEP_CONTENT!==!1,Bn=B.IN_PLACE||!1,C=B.ALLOWED_URI_REGEXP||Uk,We=B.NAMESPACE||ie,Hi=B.MATHML_TEXT_INTEGRATION_POINTS||Hi,Wi=B.HTML_INTEGRATION_POINTS||Wi,nt=B.CUSTOM_ELEMENT_HANDLING||{},B.CUSTOM_ELEMENT_HANDLING&&rr(B.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(nt.tagNameCheck=B.CUSTOM_ELEMENT_HANDLING.tagNameCheck),B.CUSTOM_ELEMENT_HANDLING&&rr(B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(nt.attributeNameCheck=B.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),B.CUSTOM_ELEMENT_HANDLING&&typeof B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(nt.allowCustomizedBuiltInElements=B.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),se&&(St=!1),sn&&(qr=!0),ln&&(W=Tt({},Jx),E=[],ln.html===!0&&(Tt(W,Zx),Tt(E,t1)),ln.svg===!0&&(Tt(W,Vd),Tt(E,Xd),Tt(E,pc)),ln.svgFilters===!0&&(Tt(W,Yd),Tt(E,Xd),Tt(E,pc)),ln.mathMl===!0&&(Tt(W,Gd),Tt(E,e1),Tt(E,pc))),B.ADD_TAGS&&(W===Y&&(W=On(W)),Tt(W,B.ADD_TAGS,st)),B.ADD_ATTR&&(E===et&&(E=On(E)),Tt(E,B.ADD_ATTR,st)),B.ADD_URI_SAFE_ATTR&&Tt(Mt,B.ADD_URI_SAFE_ATTR,st),B.FORBID_CONTENTS&&(H===G&&(H=On(H)),Tt(H,B.FORBID_CONTENTS,st)),xr&&(W["#text"]=!0),je&&Tt(W,["html","head","body"]),W.table&&(Tt(W,["tbody"]),delete J.tbody),B.TRUSTED_TYPES_POLICY){if(typeof B.TRUSTED_TYPES_POLICY.createHTML!="function")throw oo('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof B.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw oo('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=B.TRUSTED_TYPES_POLICY,_=S.createHTML("")}else S===void 0&&(S=NF(d,i)),S!==null&&typeof _=="string"&&(_=S.createHTML(""));Ze&&Ze(B),At=B}},Ur=Tt({},[...Vd,...Yd,...wF]),un=Tt({},[...Gd,...kF]),br=function(B){let X=b(B);(!X||!X.tagName)&&(X={namespaceURI:We,tagName:"template"});const lt=zc(B.tagName),Zt=zc(X.tagName);return Nr[B.namespaceURI]?B.namespaceURI===xe?X.namespaceURI===ie?lt==="svg":X.namespaceURI===He?lt==="svg"&&(Zt==="annotation-xml"||Hi[Zt]):!!Ur[lt]:B.namespaceURI===He?X.namespaceURI===ie?lt==="math":X.namespaceURI===xe?lt==="math"&&Wi[Zt]:!!un[lt]:B.namespaceURI===ie?X.namespaceURI===xe&&!Wi[Zt]||X.namespaceURI===He&&!Hi[Zt]?!1:!un[lt]&&(nd[lt]||!Ur[lt]):!!(Nn==="application/xhtml+xml"&&Nr[B.namespaceURI]):!1},de=function(B){ao(e.removed,{element:B});try{b(B).removeChild(B)}catch{v(B)}},Aa=function(B,X){try{ao(e.removed,{attribute:X.getAttributeNode(B),from:X})}catch{ao(e.removed,{attribute:null,from:X})}if(X.removeAttribute(B),B==="is")if(qr||sn)try{de(X)}catch{}else try{X.setAttribute(B,"")}catch{}},Ly=function(B){let X=null,lt=null;if(Mn)B="<remove></remove>"+B;else{const fe=Kx(B,/^[\r\n\t ]+/);lt=fe&&fe[0]}Nn==="application/xhtml+xml"&&We===ie&&(B='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+B+"</body></html>");const Zt=S?S.createHTML(B):B;if(We===ie)try{X=new f().parseFromString(Zt,Nn)}catch{}if(!X||!X.documentElement){X=w.createDocument(We,"template",null);try{X.documentElement.innerHTML=Kt?_:Zt}catch{}}const Me=X.body||X.documentElement;return B&<&&Me.insertBefore(r.createTextNode(lt),Me.childNodes[0]||null),We===ie?z.call(X,je?"html":"body")[0]:je?X.documentElement:Me},My=function(B){return T.call(B.ownerDocument||B,B,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},ad=function(B){return B instanceof h&&(typeof B.nodeName!="string"||typeof B.textContent!="string"||typeof B.removeChild!="function"||!(B.attributes instanceof u)||typeof B.removeAttribute!="function"||typeof B.setAttribute!="function"||typeof B.namespaceURI!="string"||typeof B.insertBefore!="function"||typeof B.hasChildNodes!="function")},Ay=function(B){return typeof o=="function"&&B instanceof o};function $n(ft,B,X){fc(ft,lt=>{lt.call(e,B,X,At)})}const By=function(B){let X=null;if($n(A.beforeSanitizeElements,B,null),ad(B))return de(B),!0;const lt=st(B.nodeName);if($n(A.uponSanitizeElement,B,{tagName:lt,allowedTags:W}),ze&&B.hasChildNodes()&&!Ay(B.firstElementChild)&&Ue(/<[/\w!]/g,B.innerHTML)&&Ue(/<[/\w!]/g,B.textContent)||B.nodeType===co.progressingInstruction||ze&&B.nodeType===co.comment&&Ue(/<[/\w]/g,B.data))return de(B),!0;if(!W[lt]||J[lt]){if(!J[lt]&&$y(lt)&&(nt.tagNameCheck instanceof RegExp&&Ue(nt.tagNameCheck,lt)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(lt)))return!1;if(xr&&!H[lt]){const Zt=b(B)||B.parentNode,Me=y(B)||B.childNodes;if(Me&&Zt){const fe=Me.length;for(let nr=fe-1;nr>=0;--nr){const Fn=g(Me[nr],!0);Fn.__removalCount=(B.__removalCount||0)+1,Zt.insertBefore(Fn,m(B))}}}return de(B),!0}return B instanceof l&&!br(B)||(lt==="noscript"||lt==="noembed"||lt==="noframes")&&Ue(/<\/no(script|embed|frames)/i,B.innerHTML)?(de(B),!0):(se&&B.nodeType===co.text&&(X=B.textContent,fc([R,j,P],Zt=>{X=so(X,Zt," ")}),B.textContent!==X&&(ao(e.removed,{element:B.cloneNode()}),B.textContent=X)),$n(A.afterSanitizeElements,B,null),!1)},Ny=function(B,X,lt){if(oi&&(X==="id"||X==="name")&&(lt in r||lt in Wt))return!1;if(!(St&&!tt[X]&&Ue($,X))){if(!(Lt&&Ue(M,X))){if(!E[X]||tt[X]){if(!($y(B)&&(nt.tagNameCheck instanceof RegExp&&Ue(nt.tagNameCheck,B)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(B))&&(nt.attributeNameCheck instanceof RegExp&&Ue(nt.attributeNameCheck,X)||nt.attributeNameCheck instanceof Function&&nt.attributeNameCheck(X))||X==="is"&&nt.allowCustomizedBuiltInElements&&(nt.tagNameCheck instanceof RegExp&&Ue(nt.tagNameCheck,lt)||nt.tagNameCheck instanceof Function&&nt.tagNameCheck(lt))))return!1}else if(!Mt[X]){if(!Ue(C,so(lt,L,""))){if(!((X==="src"||X==="xlink:href"||X==="href")&&B!=="script"&&yF(lt,"data:")===0&&yt[B])){if(!(_t&&!Ue(D,so(lt,L,"")))){if(lt)return!1}}}}}}return!0},$y=function(B){return B!=="annotation-xml"&&Kx(B,F)},Fy=function(B){$n(A.beforeSanitizeAttributes,B,null);const{attributes:X}=B;if(!X||ad(B))return;const lt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:E,forceKeepAttr:void 0};let Zt=X.length;for(;Zt--;){const Me=X[Zt],{name:fe,namespaceURI:nr,value:Fn}=Me,Vs=st(fe),sd=Fn;let Ae=fe==="value"?sd:xF(sd);if(lt.attrName=Vs,lt.attrValue=Ae,lt.keepAttr=!0,lt.forceKeepAttr=void 0,$n(A.uponSanitizeAttribute,B,lt),Ae=lt.attrValue,on&&(Vs==="id"||Vs==="name")&&(Aa(fe,B),Ae=Ma+Ae),ze&&Ue(/((--!?|])>)|<\/(style|title)/i,Ae)){Aa(fe,B);continue}if(lt.forceKeepAttr)continue;if(!lt.keepAttr){Aa(fe,B);continue}if(!Ft&&Ue(/\/>/i,Ae)){Aa(fe,B);continue}se&&fc([R,j,P],Iy=>{Ae=so(Ae,Iy," ")});const Py=st(B.nodeName);if(!Ny(Py,Vs,Ae)){Aa(fe,B);continue}if(S&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!nr)switch(d.getAttributeType(Py,Vs)){case"TrustedHTML":{Ae=S.createHTML(Ae);break}case"TrustedScriptURL":{Ae=S.createScriptURL(Ae);break}}if(Ae!==sd)try{nr?B.setAttributeNS(nr,fe,Ae):B.setAttribute(fe,Ae),ad(B)?de(B):Qx(e.removed)}catch{Aa(fe,B)}}$n(A.afterSanitizeAttributes,B,null)},nL=function ft(B){let X=null;const lt=My(B);for($n(A.beforeSanitizeShadowDOM,B,null);X=lt.nextNode();)$n(A.uponSanitizeShadowNode,X,null),By(X),Fy(X),X.content instanceof a&&ft(X.content);$n(A.afterSanitizeShadowDOM,B,null)};return e.sanitize=function(ft){let B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=null,lt=null,Zt=null,Me=null;if(Kt=!ft,Kt&&(ft="<!-->"),typeof ft!="string"&&!Ay(ft))if(typeof ft.toString=="function"){if(ft=ft.toString(),typeof ft!="string")throw oo("dirty is not a string, aborting")}else throw oo("toString is not a function");if(!e.isSupported)return ft;if(si||qe(B),e.removed=[],typeof ft=="string"&&(Bn=!1),Bn){if(ft.nodeName){const Fn=st(ft.nodeName);if(!W[Fn]||J[Fn])throw oo("root node is forbidden and cannot be sanitized in-place")}}else if(ft instanceof o)X=Ly("<!---->"),lt=X.ownerDocument.importNode(ft,!0),lt.nodeType===co.element&<.nodeName==="BODY"||lt.nodeName==="HTML"?X=lt:X.appendChild(lt);else{if(!qr&&!se&&!je&&ft.indexOf("<")===-1)return S&&An?S.createHTML(ft):ft;if(X=Ly(ft),!X)return qr?null:An?_:""}X&&Mn&&de(X.firstChild);const fe=My(Bn?ft:X);for(;Zt=fe.nextNode();)By(Zt),Fy(Zt),Zt.content instanceof a&&nL(Zt.content);if(Bn)return ft;if(qr){if(sn)for(Me=N.call(X.ownerDocument);X.firstChild;)Me.appendChild(X.firstChild);else Me=X;return(E.shadowroot||E.shadowrootmode)&&(Me=I.call(n,Me,!0)),Me}let nr=je?X.outerHTML:X.innerHTML;return je&&W["!doctype"]&&X.ownerDocument&&X.ownerDocument.doctype&&X.ownerDocument.doctype.name&&Ue(Vk,X.ownerDocument.doctype.name)&&(nr="<!DOCTYPE "+X.ownerDocument.doctype.name+`>
`+nr),se&&fc([R,j,P],Fn=>{nr=so(nr,Fn," ")}),S&&An?S.createHTML(nr):nr},e.setConfig=function(){let ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qe(ft),si=!0},e.clearConfig=function(){At=null,si=!1},e.isValidAttribute=function(ft,B,X){At||qe({});const lt=st(ft),Zt=st(B);return Ny(lt,Zt,X)},e.addHook=function(ft,B){typeof B=="function"&&ao(A[ft],B)},e.removeHook=function(ft,B){if(B!==void 0){const X=gF(A[ft],B);return X===-1?void 0:mF(A[ft],X,1)[0]}return Qx(A[ft])},e.removeHooks=function(ft){A[ft]=[]},e.removeAllHooks=function(){A=n1()},e}var Ss=Yk(),Gk=Object.defineProperty,x=(t,e)=>Gk(t,"name",{value:e,configurable:!0}),$F=(t,e)=>{for(var r in e)Gk(t,r,{get:e[r],enumerable:!0})},In={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},q={trace:x((...t)=>{},"trace"),debug:x((...t)=>{},"debug"),info:x((...t)=>{},"info"),warn:x((...t)=>{},"warn"),error:x((...t)=>{},"error"),fatal:x((...t)=>{},"fatal")},Tm=x(function(t="fatal"){let e=In.fatal;typeof t=="string"?t.toLowerCase()in In&&(e=In[t]):typeof t=="number"&&(e=t),q.trace=()=>{},q.debug=()=>{},q.info=()=>{},q.warn=()=>{},q.error=()=>{},q.fatal=()=>{},e<=In.fatal&&(q.fatal=console.error?console.error.bind(console,$r("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",$r("FATAL"))),e<=In.error&&(q.error=console.error?console.error.bind(console,$r("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",$r("ERROR"))),e<=In.warn&&(q.warn=console.warn?console.warn.bind(console,$r("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",$r("WARN"))),e<=In.info&&(q.info=console.info?console.info.bind(console,$r("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",$r("INFO"))),e<=In.debug&&(q.debug=console.debug?console.debug.bind(console,$r("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$r("DEBUG"))),e<=In.trace&&(q.trace=console.debug?console.debug.bind(console,$r("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",$r("TRACE")))},"setLogLevel"),$r=x(t=>`%c${iF().format("ss.SSS")} : ${t} : `,"format"),Xk=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,Wo=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,FF=/\s*%%.*\n/gm,cs,Qk=(cs=class extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}},x(cs,"UnknownDiagramError"),cs),pa={},Em=x(function(t,e){t=t.replace(Xk,"").replace(Wo,"").replace(FF,`
`);for(const[r,{detector:n}]of Object.entries(pa))if(n(t,e))return r;throw new Qk(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),wp=x((...t)=>{for(const{id:e,detector:r,loader:n}of t)Kk(e,r,n)},"registerLazyLoadedDiagrams"),Kk=x((t,e,r)=>{pa[t]&&q.warn(`Detector with key ${t} already exists. Overwriting.`),pa[t]={detector:e,loader:r},q.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),PF=x(t=>pa[t].loader,"getDiagramLoader"),kp=x((t,e,{depth:r=2,clobber:n=!1}={})=>{const i={depth:r,clobber:n};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(a=>kp(t,a,i)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(a=>{t.includes(a)||t.push(a)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(a=>{typeof e[a]=="object"&&(t[a]===void 0||typeof t[a]=="object")?(t[a]===void 0&&(t[a]=Array.isArray(e[a])?[]:{}),t[a]=kp(t[a],e[a],{depth:r-1,clobber:n})):(n||typeof t[a]!="object"&&typeof e[a]!="object")&&(t[a]=e[a])}),t)},"assignWithDepth"),_e=kp,Bh="#ffffff",Nh="#f2f2f2",Ye=x((t,e)=>e?O(t,{s:-40,l:10}):O(t,{s:-40,l:-10}),"mkBorder"),us,IF=(us=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var r,n,i,a,s,o,l,c,u,h,f,d,p,g,v,m,y,b,S,_,w;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||O(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||O(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Ye(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Ye(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Ye(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Ye(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||K(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||K(this.tertiaryColor),this.lineColor=this.lineColor||K(this.background),this.arrowheadColor=this.arrowheadColor||K(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?pt(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||pt(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||K(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||it(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||pt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||pt(this.mainBkg,10)):(this.rowOdd=this.rowOdd||it(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||it(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||O(this.primaryColor,{h:30}),this.cScale4=this.cScale4||O(this.primaryColor,{h:60}),this.cScale5=this.cScale5||O(this.primaryColor,{h:90}),this.cScale6=this.cScale6||O(this.primaryColor,{h:120}),this.cScale7=this.cScale7||O(this.primaryColor,{h:150}),this.cScale8=this.cScale8||O(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||O(this.primaryColor,{h:270}),this.cScale10=this.cScale10||O(this.primaryColor,{h:300}),this.cScale11=this.cScale11||O(this.primaryColor,{h:330}),this.darkMode)for(let T=0;T<this.THEME_COLOR_LIMIT;T++)this["cScale"+T]=pt(this["cScale"+T],75);else for(let T=0;T<this.THEME_COLOR_LIMIT;T++)this["cScale"+T]=pt(this["cScale"+T],25);for(let T=0;T<this.THEME_COLOR_LIMIT;T++)this["cScaleInv"+T]=this["cScaleInv"+T]||K(this["cScale"+T]);for(let T=0;T<this.THEME_COLOR_LIMIT;T++)this.darkMode?this["cScalePeer"+T]=this["cScalePeer"+T]||it(this["cScale"+T],10):this["cScalePeer"+T]=this["cScalePeer"+T]||pt(this["cScale"+T],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let T=0;T<this.THEME_COLOR_LIMIT;T++)this["cScaleLabel"+T]=this["cScaleLabel"+T]||this.scaleLabelColor;const e=this.darkMode?-4:-1;for(let T=0;T<5;T++)this["surface"+T]=this["surface"+T]||O(this.mainBkg,{h:180,s:-15,l:e*(5+T*3)}),this["surfacePeer"+T]=this["surfacePeer"+T]||O(this.mainBkg,{h:180,s:-15,l:e*(8+T*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||O(this.primaryColor,{h:64}),this.fillType3=this.fillType3||O(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||O(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||O(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||O(this.primaryColor,{h:128}),this.fillType7=this.fillType7||O(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||O(this.primaryColor,{l:-10}),this.pie5=this.pie5||O(this.secondaryColor,{l:-10}),this.pie6=this.pie6||O(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||O(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||O(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||O(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||O(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||O(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||O(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.radar={axisColor:((r=this.radar)==null?void 0:r.axisColor)||this.lineColor,axisStrokeWidth:((n=this.radar)==null?void 0:n.axisStrokeWidth)||2,axisLabelFontSize:((i=this.radar)==null?void 0:i.axisLabelFontSize)||12,curveOpacity:((a=this.radar)==null?void 0:a.curveOpacity)||.5,curveStrokeWidth:((s=this.radar)==null?void 0:s.curveStrokeWidth)||2,graticuleColor:((o=this.radar)==null?void 0:o.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((l=this.radar)==null?void 0:l.graticuleStrokeWidth)||1,graticuleOpacity:((c=this.radar)==null?void 0:c.graticuleOpacity)||.3,legendBoxSize:((u=this.radar)==null?void 0:u.legendBoxSize)||12,legendFontSize:((h=this.radar)==null?void 0:h.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||O(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||O(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||O(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||O(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||O(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||O(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||$l(this.quadrant1Fill)?it(this.quadrant1Fill):pt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((f=this.xyChart)==null?void 0:f.backgroundColor)||this.background,titleColor:((d=this.xyChart)==null?void 0:d.titleColor)||this.primaryTextColor,xAxisTitleColor:((p=this.xyChart)==null?void 0:p.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((g=this.xyChart)==null?void 0:g.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((v=this.xyChart)==null?void 0:v.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((m=this.xyChart)==null?void 0:m.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((y=this.xyChart)==null?void 0:y.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((b=this.xyChart)==null?void 0:b.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((S=this.xyChart)==null?void 0:S.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((_=this.xyChart)==null?void 0:_.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((w=this.xyChart)==null?void 0:w.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?pt(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||O(this.primaryColor,{h:-30}),this.git4=this.git4||O(this.primaryColor,{h:-60}),this.git5=this.git5||O(this.primaryColor,{h:-90}),this.git6=this.git6||O(this.primaryColor,{h:60}),this.git7=this.git7||O(this.primaryColor,{h:120}),this.darkMode?(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)):(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)),this.gitInv0=this.gitInv0||K(this.git0),this.gitInv1=this.gitInv1||K(this.git1),this.gitInv2=this.gitInv2||K(this.git2),this.gitInv3=this.gitInv3||K(this.git3),this.gitInv4=this.gitInv4||K(this.git4),this.gitInv5=this.gitInv5||K(this.git5),this.gitInv6=this.gitInv6||K(this.git6),this.gitInv7=this.gitInv7||K(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||Bh,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Nh}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},x(us,"Theme"),us),RF=x(t=>{const e=new IF;return e.calculate(t),e},"getThemeVariables"),hs,OF=(hs=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=it(this.primaryColor,16),this.tertiaryColor=O(this.primaryColor,{h:-160}),this.primaryBorderColor=K(this.background),this.secondaryBorderColor=Ye(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ye(this.tertiaryColor,this.darkMode),this.primaryTextColor=K(this.primaryColor),this.secondaryTextColor=K(this.secondaryColor),this.tertiaryTextColor=K(this.tertiaryColor),this.lineColor=K(this.background),this.textColor=K(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=it(K("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Ho(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=pt("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=pt(this.sectionBkgColor,10),this.taskBorderColor=Ho(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Ho(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||it(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||pt(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){var e,r,n,i,a,s,o,l,c,u,h,f,d,p,g,v,m,y,b,S,_;this.secondBkg=it(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=it(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=it(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=O(this.primaryColor,{h:64}),this.fillType3=O(this.secondaryColor,{h:64}),this.fillType4=O(this.primaryColor,{h:-64}),this.fillType5=O(this.secondaryColor,{h:-64}),this.fillType6=O(this.primaryColor,{h:128}),this.fillType7=O(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||O(this.primaryColor,{h:30}),this.cScale4=this.cScale4||O(this.primaryColor,{h:60}),this.cScale5=this.cScale5||O(this.primaryColor,{h:90}),this.cScale6=this.cScale6||O(this.primaryColor,{h:120}),this.cScale7=this.cScale7||O(this.primaryColor,{h:150}),this.cScale8=this.cScale8||O(this.primaryColor,{h:210}),this.cScale9=this.cScale9||O(this.primaryColor,{h:270}),this.cScale10=this.cScale10||O(this.primaryColor,{h:300}),this.cScale11=this.cScale11||O(this.primaryColor,{h:330});for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||K(this["cScale"+w]);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScalePeer"+w]=this["cScalePeer"+w]||it(this["cScale"+w],10);for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||O(this.mainBkg,{h:30,s:-30,l:-(-10+w*4)}),this["surfacePeer"+w]=this["surfacePeer"+w]||O(this.mainBkg,{h:30,s:-30,l:-(-7+w*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=this["cScaleLabel"+w]||this.scaleLabelColor;for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["pie"+w]=this["cScale"+w];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.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||O(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||O(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||O(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||O(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||O(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||O(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||$l(this.quadrant1Fill)?it(this.quadrant1Fill):pt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((o=this.xyChart)==null?void 0:o.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.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:((f=this.radar)==null?void 0:f.axisColor)||this.lineColor,axisStrokeWidth:((d=this.radar)==null?void 0:d.axisStrokeWidth)||2,axisLabelFontSize:((p=this.radar)==null?void 0:p.axisLabelFontSize)||12,curveOpacity:((g=this.radar)==null?void 0:g.curveOpacity)||.5,curveStrokeWidth:((v=this.radar)==null?void 0:v.curveStrokeWidth)||2,graticuleColor:((m=this.radar)==null?void 0:m.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((y=this.radar)==null?void 0:y.graticuleStrokeWidth)||1,graticuleOpacity:((b=this.radar)==null?void 0:b.graticuleOpacity)||.3,legendBoxSize:((S=this.radar)==null?void 0:S.legendBoxSize)||12,legendFontSize:((_=this.radar)==null?void 0:_.legendFontSize)||12},this.classText=this.primaryTextColor,this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?pt(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=it(this.secondaryColor,20),this.git1=it(this.pie2||this.secondaryColor,20),this.git2=it(this.pie3||this.tertiaryColor,20),this.git3=it(this.pie4||O(this.primaryColor,{h:-30}),20),this.git4=it(this.pie5||O(this.primaryColor,{h:-60}),20),this.git5=it(this.pie6||O(this.primaryColor,{h:-90}),10),this.git6=it(this.pie7||O(this.primaryColor,{h:60}),10),this.git7=it(this.pie8||O(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||K(this.git0),this.gitInv1=this.gitInv1||K(this.git1),this.gitInv2=this.gitInv2||K(this.git2),this.gitInv3=this.gitInv3||K(this.git3),this.gitInv4=this.gitInv4||K(this.git4),this.gitInv5=this.gitInv5||K(this.git5),this.gitInv6=this.gitInv6||K(this.git6),this.gitInv7=this.gitInv7||K(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||K(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||K(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||it(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||it(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},x(hs,"Theme"),hs),DF=x(t=>{const e=new OF;return e.calculate(t),e},"getThemeVariables"),ds,zF=(ds=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=O(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=O(this.primaryColor,{h:-160}),this.primaryBorderColor=Ye(this.primaryColor,this.darkMode),this.secondaryBorderColor=Ye(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ye(this.tertiaryColor,this.darkMode),this.primaryTextColor=K(this.primaryColor),this.secondaryTextColor=K(this.secondaryColor),this.tertiaryTextColor=K(this.tertiaryColor),this.lineColor=K(this.background),this.textColor=K(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=Ho(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 e,r,n,i,a,s,o,l,c,u,h,f,d,p,g,v,m,y,b,S,_;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||O(this.primaryColor,{h:30}),this.cScale4=this.cScale4||O(this.primaryColor,{h:60}),this.cScale5=this.cScale5||O(this.primaryColor,{h:90}),this.cScale6=this.cScale6||O(this.primaryColor,{h:120}),this.cScale7=this.cScale7||O(this.primaryColor,{h:150}),this.cScale8=this.cScale8||O(this.primaryColor,{h:210}),this.cScale9=this.cScale9||O(this.primaryColor,{h:270}),this.cScale10=this.cScale10||O(this.primaryColor,{h:300}),this.cScale11=this.cScale11||O(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||pt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||pt(this.tertiaryColor,40);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScale"+w]=pt(this["cScale"+w],10),this["cScalePeer"+w]=this["cScalePeer"+w]||pt(this["cScale"+w],25);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||O(this["cScale"+w],{h:180});for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||O(this.mainBkg,{h:30,l:-(5+w*5)}),this["surfacePeer"+w]=this["surfacePeer"+w]||O(this.mainBkg,{h:30,l:-(7+w*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||K(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||K(this.labelTextColor);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=this["cScaleLabel"+w]||this.labelTextColor}this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.textColor,this.edgeLabelBackground=this.labelBackground,this.actorBorder=it(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||it(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||it(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=O(this.primaryColor,{h:64}),this.fillType3=O(this.secondaryColor,{h:64}),this.fillType4=O(this.primaryColor,{h:-64}),this.fillType5=O(this.secondaryColor,{h:-64}),this.fillType6=O(this.primaryColor,{h:128}),this.fillType7=O(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||O(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||O(this.primaryColor,{l:-10}),this.pie5=this.pie5||O(this.secondaryColor,{l:-30}),this.pie6=this.pie6||O(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||O(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||O(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||O(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||O(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||O(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||O(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||O(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||O(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||O(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||O(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||O(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||O(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||$l(this.quadrant1Fill)?it(this.quadrant1Fill):pt(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:((e=this.radar)==null?void 0:e.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((i=this.radar)==null?void 0:i.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((o=this.radar)==null?void 0:o.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((u=this.radar)==null?void 0:u.legendFontSize)||12},this.xyChart={backgroundColor:((h=this.xyChart)==null?void 0:h.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,xAxisTitleColor:((d=this.xyChart)==null?void 0:d.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((p=this.xyChart)==null?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((g=this.xyChart)==null?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((v=this.xyChart)==null?void 0:v.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((m=this.xyChart)==null?void 0:m.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((y=this.xyChart)==null?void 0:y.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((b=this.xyChart)==null?void 0:b.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((S=this.xyChart)==null?void 0:S.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((_=this.xyChart)==null?void 0:_.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||O(this.primaryColor,{h:-30}),this.git4=this.git4||O(this.primaryColor,{h:-60}),this.git5=this.git5||O(this.primaryColor,{h:-90}),this.git6=this.git6||O(this.primaryColor,{h:60}),this.git7=this.git7||O(this.primaryColor,{h:120}),this.darkMode?(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)):(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)),this.gitInv0=this.gitInv0||pt(K(this.git0),25),this.gitInv1=this.gitInv1||K(this.git1),this.gitInv2=this.gitInv2||K(this.git2),this.gitInv3=this.gitInv3||K(this.git3),this.gitInv4=this.gitInv4||K(this.git4),this.gitInv5=this.gitInv5||K(this.git5),this.gitInv6=this.gitInv6||K(this.git6),this.gitInv7=this.gitInv7||K(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||K(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||K(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||Bh,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Nh}calculate(e){if(Object.keys(this).forEach(n=>{this[n]==="calculated"&&(this[n]=void 0)}),typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},x(ds,"Theme"),ds),jF=x(t=>{const e=new zF;return e.calculate(t),e},"getThemeVariables"),fs,HF=(fs=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=it("#cde498",10),this.primaryBorderColor=Ye(this.primaryColor,this.darkMode),this.secondaryBorderColor=Ye(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ye(this.tertiaryColor,this.darkMode),this.primaryTextColor=K(this.primaryColor),this.secondaryTextColor=K(this.secondaryColor),this.tertiaryTextColor=K(this.primaryColor),this.lineColor=K(this.background),this.textColor=K(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 e,r,n,i,a,s,o,l,c,u,h,f,d,p,g,v,m,y,b,S,_;this.actorBorder=pt(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||O(this.primaryColor,{h:30}),this.cScale4=this.cScale4||O(this.primaryColor,{h:60}),this.cScale5=this.cScale5||O(this.primaryColor,{h:90}),this.cScale6=this.cScale6||O(this.primaryColor,{h:120}),this.cScale7=this.cScale7||O(this.primaryColor,{h:150}),this.cScale8=this.cScale8||O(this.primaryColor,{h:210}),this.cScale9=this.cScale9||O(this.primaryColor,{h:270}),this.cScale10=this.cScale10||O(this.primaryColor,{h:300}),this.cScale11=this.cScale11||O(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||pt(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||pt(this.tertiaryColor,40);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScale"+w]=pt(this["cScale"+w],10),this["cScalePeer"+w]=this["cScalePeer"+w]||pt(this["cScale"+w],25);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||O(this["cScale"+w],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=this["cScaleLabel"+w]||this.scaleLabelColor;for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||O(this.mainBkg,{h:30,s:-30,l:-(5+w*5)}),this["surfacePeer"+w]=this["surfacePeer"+w]||O(this.mainBkg,{h:30,s:-30,l:-(8+w*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.taskBorderColor=this.border1,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.activeTaskBorderColor=this.taskBorderColor,this.activeTaskBkgColor=this.mainBkg,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||it(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||it(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=O(this.primaryColor,{h:64}),this.fillType3=O(this.secondaryColor,{h:64}),this.fillType4=O(this.primaryColor,{h:-64}),this.fillType5=O(this.secondaryColor,{h:-64}),this.fillType6=O(this.primaryColor,{h:128}),this.fillType7=O(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||O(this.primaryColor,{l:-30}),this.pie5=this.pie5||O(this.secondaryColor,{l:-30}),this.pie6=this.pie6||O(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||O(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||O(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||O(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||O(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||O(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||O(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||O(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||O(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||O(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||O(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||O(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||O(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||$l(this.quadrant1Fill)?it(this.quadrant1Fill):pt(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:((e=this.radar)==null?void 0:e.axisColor)||this.lineColor,axisStrokeWidth:((r=this.radar)==null?void 0:r.axisStrokeWidth)||2,axisLabelFontSize:((n=this.radar)==null?void 0:n.axisLabelFontSize)||12,curveOpacity:((i=this.radar)==null?void 0:i.curveOpacity)||.5,curveStrokeWidth:((a=this.radar)==null?void 0:a.curveStrokeWidth)||2,graticuleColor:((s=this.radar)==null?void 0:s.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((o=this.radar)==null?void 0:o.graticuleStrokeWidth)||1,graticuleOpacity:((l=this.radar)==null?void 0:l.graticuleOpacity)||.3,legendBoxSize:((c=this.radar)==null?void 0:c.legendBoxSize)||12,legendFontSize:((u=this.radar)==null?void 0:u.legendFontSize)||12},this.xyChart={backgroundColor:((h=this.xyChart)==null?void 0:h.backgroundColor)||this.background,titleColor:((f=this.xyChart)==null?void 0:f.titleColor)||this.primaryTextColor,xAxisTitleColor:((d=this.xyChart)==null?void 0:d.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((p=this.xyChart)==null?void 0:p.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((g=this.xyChart)==null?void 0:g.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((v=this.xyChart)==null?void 0:v.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((m=this.xyChart)==null?void 0:m.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((y=this.xyChart)==null?void 0:y.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((b=this.xyChart)==null?void 0:b.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((S=this.xyChart)==null?void 0:S.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((_=this.xyChart)==null?void 0:_.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||O(this.primaryColor,{h:-30}),this.git4=this.git4||O(this.primaryColor,{h:-60}),this.git5=this.git5||O(this.primaryColor,{h:-90}),this.git6=this.git6||O(this.primaryColor,{h:60}),this.git7=this.git7||O(this.primaryColor,{h:120}),this.darkMode?(this.git0=it(this.git0,25),this.git1=it(this.git1,25),this.git2=it(this.git2,25),this.git3=it(this.git3,25),this.git4=it(this.git4,25),this.git5=it(this.git5,25),this.git6=it(this.git6,25),this.git7=it(this.git7,25)):(this.git0=pt(this.git0,25),this.git1=pt(this.git1,25),this.git2=pt(this.git2,25),this.git3=pt(this.git3,25),this.git4=pt(this.git4,25),this.git5=pt(this.git5,25),this.git6=pt(this.git6,25),this.git7=pt(this.git7,25)),this.gitInv0=this.gitInv0||K(this.git0),this.gitInv1=this.gitInv1||K(this.git1),this.gitInv2=this.gitInv2||K(this.git2),this.gitInv3=this.gitInv3||K(this.git3),this.gitInv4=this.gitInv4||K(this.git4),this.gitInv5=this.gitInv5||K(this.git5),this.gitInv6=this.gitInv6||K(this.git6),this.gitInv7=this.gitInv7||K(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||K(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||K(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||Bh,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Nh}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},x(fs,"Theme"),fs),WF=x(t=>{const e=new HF;return e.calculate(t),e},"getThemeVariables"),ps,qF=(ps=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=it(this.contrast,55),this.background="#ffffff",this.tertiaryColor=O(this.primaryColor,{h:-160}),this.primaryBorderColor=Ye(this.primaryColor,this.darkMode),this.secondaryBorderColor=Ye(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Ye(this.tertiaryColor,this.darkMode),this.primaryTextColor=K(this.primaryColor),this.secondaryTextColor=K(this.secondaryColor),this.tertiaryTextColor=K(this.tertiaryColor),this.lineColor=K(this.background),this.textColor=K(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||it(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){var e,r,n,i,a,s,o,l,c,u,h,f,d,p,g,v,m,y,b,S,_;this.secondBkg=it(this.contrast,55),this.border2=this.contrast,this.actorBorder=it(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleInv"+w]=this["cScaleInv"+w]||K(this["cScale"+w]);for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this.darkMode?this["cScalePeer"+w]=this["cScalePeer"+w]||it(this["cScale"+w],10):this["cScalePeer"+w]=this["cScalePeer"+w]||pt(this["cScale"+w],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["cScaleLabel"+w]=this["cScaleLabel"+w]||this.scaleLabelColor;for(let w=0;w<5;w++)this["surface"+w]=this["surface"+w]||O(this.mainBkg,{l:-(5+w*5)}),this["surfacePeer"+w]=this["surfacePeer"+w]||O(this.mainBkg,{l:-(8+w*5)});this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.titleColor=this.text,this.sectionBkgColor=it(this.contrast,30),this.sectionBkgColor2=it(this.contrast,30),this.taskBorderColor=pt(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=it(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=pt(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=O(this.primaryColor,{h:64}),this.fillType3=O(this.secondaryColor,{h:64}),this.fillType4=O(this.primaryColor,{h:-64}),this.fillType5=O(this.secondaryColor,{h:-64}),this.fillType6=O(this.primaryColor,{h:128}),this.fillType7=O(this.secondaryColor,{h:128});for(let w=0;w<this.THEME_COLOR_LIMIT;w++)this["pie"+w]=this["cScale"+w];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||O(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||O(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||O(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||O(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||O(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||O(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||$l(this.quadrant1Fill)?it(this.quadrant1Fill):pt(this.quadrant1Fill),this.quadrantPointTextFill=this.quadrantPointTextFill||this.primaryTextColor,this.quadrantXAxisTextFill=this.quadrantXAxisTextFill||this.primaryTextColor,this.quadrantYAxisTextFill=this.quadrantYAxisTextFill||this.primaryTextColor,this.quadrantInternalBorderStrokeFill=this.quadrantInternalBorderStrokeFill||this.primaryBorderColor,this.quadrantExternalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((e=this.xyChart)==null?void 0:e.backgroundColor)||this.background,titleColor:((r=this.xyChart)==null?void 0:r.titleColor)||this.primaryTextColor,xAxisTitleColor:((n=this.xyChart)==null?void 0:n.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((i=this.xyChart)==null?void 0:i.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((a=this.xyChart)==null?void 0:a.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((s=this.xyChart)==null?void 0:s.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((o=this.xyChart)==null?void 0:o.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((l=this.xyChart)==null?void 0:l.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((u=this.xyChart)==null?void 0:u.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((h=this.xyChart)==null?void 0:h.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((f=this.radar)==null?void 0:f.axisColor)||this.lineColor,axisStrokeWidth:((d=this.radar)==null?void 0:d.axisStrokeWidth)||2,axisLabelFontSize:((p=this.radar)==null?void 0:p.axisLabelFontSize)||12,curveOpacity:((g=this.radar)==null?void 0:g.curveOpacity)||.5,curveStrokeWidth:((v=this.radar)==null?void 0:v.curveStrokeWidth)||2,graticuleColor:((m=this.radar)==null?void 0:m.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((y=this.radar)==null?void 0:y.graticuleStrokeWidth)||1,graticuleOpacity:((b=this.radar)==null?void 0:b.graticuleOpacity)||.3,legendBoxSize:((S=this.radar)==null?void 0:S.legendBoxSize)||12,legendFontSize:((_=this.radar)==null?void 0:_.legendFontSize)||12},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=pt(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||O(this.primaryColor,{h:-30}),this.git4=this.pie5||O(this.primaryColor,{h:-60}),this.git5=this.pie6||O(this.primaryColor,{h:-90}),this.git6=this.pie7||O(this.primaryColor,{h:60}),this.git7=this.pie8||O(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||K(this.git0),this.gitInv1=this.gitInv1||K(this.git1),this.gitInv2=this.gitInv2||K(this.git2),this.gitInv3=this.gitInv3||K(this.git3),this.gitInv4=this.gitInv4||K(this.git4),this.gitInv5=this.gitInv5||K(this.git5),this.gitInv6=this.gitInv6||K(this.git6),this.gitInv7=this.gitInv7||K(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||Bh,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||Nh}calculate(e){if(typeof e!="object"){this.updateColors();return}const r=Object.keys(e);r.forEach(n=>{this[n]=e[n]}),this.updateColors(),r.forEach(n=>{this[n]=e[n]})}},x(ps,"Theme"),ps),UF=x(t=>{const e=new qF;return e.calculate(t),e},"getThemeVariables"),Gn={base:{getThemeVariables:RF},dark:{getThemeVariables:DF},default:{getThemeVariables:jF},forest:{getThemeVariables:WF},neutral:{getThemeVariables:UF}},dn={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},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},Zk={...dn,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:Gn.default.getThemeVariables(),sequence:{...dn.sequence,messageFont:x(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:x(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:x(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...dn.gantt,tickInterval:void 0,useWidth:void 0},c4:{...dn.c4,useWidth:void 0,personFont:x(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...dn.flowchart,inheritDir:!1},external_personFont:x(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:x(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:x(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:x(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:x(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:x(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:x(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:x(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:x(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:x(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:x(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:x(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:x(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:x(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:x(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:x(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:x(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:x(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:x(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:x(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:x(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...dn.pie,useWidth:984},xyChart:{...dn.xyChart,useWidth:void 0},requirement:{...dn.requirement,useWidth:void 0},packet:{...dn.packet},radar:{...dn.radar},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","}},Jk=x((t,e="")=>Object.keys(t).reduce((r,n)=>Array.isArray(t[n])?r:typeof t[n]=="object"&&t[n]!==null?[...r,e+n,...Jk(t[n],"")]:[...r,e+n],[]),"keyify"),VF=new Set(Jk(Zk,"")),t2=Zk,Mu=x(t=>{if(q.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>Mu(e));return}for(const e of Object.keys(t)){if(q.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!VF.has(e)||t[e]==null){q.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){q.debug("sanitizing object",e),Mu(t[e]);continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const n of r)e.includes(n)&&(q.debug("sanitizing css option",e),t[e]=YF(t[e]))}if(t.themeVariables)for(const e of Object.keys(t.themeVariables)){const r=t.themeVariables[e];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}q.debug("After sanitization",t)}},"sanitizeDirective"),YF=x(t=>{let e=0,r=0;for(const n of t){if(e<r)return"{ /* ERROR: Unbalanced CSS */ }";n==="{"?e++:n==="}"&&r++}return e!==r?"{ /* ERROR: Unbalanced CSS */ }":t},"sanitizeCss"),_s=Object.freeze(t2),lr=_e({},_s),e2,Ts=[],qo=_e({},_s),$h=x((t,e)=>{let r=_e({},t),n={};for(const i of e)i2(i),n=_e(n,i);if(r=_e(r,n),n.theme&&n.theme in Gn){const i=_e({},e2),a=_e(i.themeVariables||{},n.themeVariables);r.theme&&r.theme in Gn&&(r.themeVariables=Gn[r.theme].getThemeVariables(a))}return qo=r,a2(qo),qo},"updateCurrentConfig"),GF=x(t=>(lr=_e({},_s),lr=_e(lr,t),t.theme&&Gn[t.theme]&&(lr.themeVariables=Gn[t.theme].getThemeVariables(t.themeVariables)),$h(lr,Ts),lr),"setSiteConfig"),XF=x(t=>{e2=_e({},t)},"saveConfigFromInitialize"),QF=x(t=>(lr=_e(lr,t),$h(lr,Ts),lr),"updateSiteConfig"),r2=x(()=>_e({},lr),"getSiteConfig"),n2=x(t=>(a2(t),_e(qo,t),mr()),"setConfig"),mr=x(()=>_e({},qo),"getConfig"),i2=x(t=>{t&&(["secure",...lr.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(q.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&i2(t[e])}))},"sanitize"),KF=x(t=>{var e;Mu(t),t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),Ts.push(t),$h(lr,Ts)},"addDirective"),Au=x((t=lr)=>{Ts=[],$h(t,Ts)},"reset"),ZF={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},i1={},JF=x(t=>{i1[t]||(q.warn(ZF[t]),i1[t]=!0)},"issueWarning"),a2=x(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&JF("LAZY_LOAD_DEPRECATED")},"checkConfig"),Fl=/<br\s*\/?>/gi,tP=x(t=>t?l2(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),eP=(()=>{let t=!1;return()=>{t||(s2(),t=!0)}})();function s2(){const t="data-temp-href-target";Ss.addHook("beforeSanitizeAttributes",e=>{e instanceof Element&&e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),Ss.addHook("afterSanitizeAttributes",e=>{e instanceof Element&&e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}x(s2,"setupDompurifyHooks");var o2=x(t=>(eP(),Ss.sanitize(t)),"removeScript"),a1=x((t,e)=>{var r;if(((r=e.flowchart)==null?void 0:r.htmlLabels)!==!1){const n=e.securityLevel;n==="antiscript"||n==="strict"?t=o2(t):n!=="loose"&&(t=l2(t),t=t.replace(/</g,"<").replace(/>/g,">"),t=t.replace(/=/g,"="),t=aP(t))}return t},"sanitizeMore"),ga=x((t,e)=>t&&(e.dompurifyConfig?t=Ss.sanitize(a1(t,e),e.dompurifyConfig).toString():t=Ss.sanitize(a1(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),rP=x((t,e)=>typeof t=="string"?ga(t,e):t.flat().map(r=>ga(r,e)),"sanitizeTextOrArray"),nP=x(t=>Fl.test(t),"hasBreaks"),iP=x(t=>t.split(Fl),"splitBreaks"),aP=x(t=>t.replace(/#br#/g,"<br/>"),"placeholderToBreak"),l2=x(t=>t.replace(Fl,"#br#"),"breakToPlaceholder"),c2=x(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=CSS.escape(e)),e},"getUrl"),ye=x(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),sP=x(function(...t){const e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),oP=x(function(...t){const e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),s1=x(function(t){const e=t.split(/(,)/),r=[];for(let n=0;n<e.length;n++){let i=e[n];if(i===","&&n>0&&n+1<e.length){const a=e[n-1],s=e[n+1];lP(a,s)&&(i=a+","+s,n++,r.pop())}r.push(cP(i))}return r.join("")},"parseGenericTypes"),Cp=x((t,e)=>Math.max(0,t.split(e).length-1),"countOccurrence"),lP=x((t,e)=>{const r=Cp(t,"~"),n=Cp(e,"~");return r===1&&n===1},"shouldCombineSets"),cP=x(t=>{const e=Cp(t,"~");let r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);const n=[...t];let i=n.indexOf("~"),a=n.lastIndexOf("~");for(;i!==-1&&a!==-1&&i!==a;)n[i]="<",n[a]=">",i=n.indexOf("~"),a=n.lastIndexOf("~");return r&&n.unshift("~"),n.join("")},"processSet"),o1=x(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Sp=/\$\$(.*)\$\$/g,Es=x(t=>{var e;return(((e=t.match(Sp))==null?void 0:e.length)??0)>0},"hasKatex"),eU=x(async(t,e)=>{t=await Lm(t,e);const r=document.createElement("div");r.innerHTML=t,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const n=document.querySelector("body");n==null||n.insertAdjacentElement("beforeend",r);const i={width:r.clientWidth,height:r.clientHeight};return r.remove(),i},"calculateMathMLDimensions"),Lm=x(async(t,e)=>{if(!Es(t))return t;if(!(o1()||e.legacyMathML||e.forceLegacyMathML))return t.replace(Sp,"MathML is unsupported in this environment.");{const{default:r}=await zt(async()=>{const{default:i}=await import("./katex-DR1w9Cwg.js");return{default:i}},[]),n=e.forceLegacyMathML||!o1()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(Fl).map(i=>Es(i)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${i}</div>`:`<div>${i}</div>`).join("").replace(Sp,(i,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:n}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatex"),zs={getRows:tP,sanitizeText:ga,sanitizeTextOrArray:rP,hasBreaks:nP,splitBreaks:iP,lineBreakRegex:Fl,removeScript:o2,getUrl:c2,evaluate:ye,getMax:sP,getMin:oP},uP=x(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),hP=x(function(t,e,r){let n=new Map;return r?(n.set("width","100%"),n.set("style",`max-width: ${e}px;`)):(n.set("height",t),n.set("width",e)),n},"calculateSvgSizeAttrs"),u2=x(function(t,e,r,n){const i=hP(e,r,n);uP(t,i)},"configureSvgSize"),dP=x(function(t,e,r,n){const i=e.node().getBBox(),a=i.width,s=i.height;q.info(`SVG bounds: ${a}x${s}`,i);let o=0,l=0;q.info(`Graph bounds: ${o}x${l}`,t),o=a+r*2,l=s+r*2,q.info(`Calculated bounds: ${o}x${l}`),u2(e,l,o,n);const c=`${i.x-r} ${i.y-r} ${i.width+2*r} ${i.height+2*r}`;e.attr("viewBox",c)},"setupGraphViewbox"),jc={},fP=x((t,e,r)=>{let n="";return t in jc&&jc[t]?n=jc[t](r):q.warn(`No theme found for ${t}`),` & {
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
fill: ${r.textColor}
}
@keyframes edge-animation-frame {
from {
stroke-dashoffset: 0;
}
}
@keyframes dash {
to {
stroke-dashoffset: 0;
}
}
& .edge-animation-slow {
stroke-dasharray: 9,5 !important;
stroke-dashoffset: 900;
animation: dash 50s linear infinite;
stroke-linecap: round;
}
& .edge-animation-fast {
stroke-dasharray: 9,5 !important;
stroke-dashoffset: 900;
animation: dash 20s linear infinite;
stroke-linecap: round;
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${r.errorBkgColor};
}
& .error-text {
fill: ${r.errorTextColor};
stroke: ${r.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 1px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-thickness-invisible {
stroke-width: 0;
fill: none;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${r.lineColor};
stroke: ${r.lineColor};
}
& .marker.cross {
stroke: ${r.lineColor};
}
& svg {
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
}
& p {
margin: 0
}
${n}
${e}
`},"getStyles"),pP=x((t,e)=>{e!==void 0&&(jc[t]=e)},"addStylesForDiagram"),gP=fP,h2={};$F(h2,{clear:()=>mP,getAccDescription:()=>bP,getAccTitle:()=>xP,getDiagramTitle:()=>kP,setAccDescription:()=>vP,setAccTitle:()=>yP,setDiagramTitle:()=>wP});var Mm="",Am="",Bm="",Nm=x(t=>ga(t,mr()),"sanitizeText"),mP=x(()=>{Mm="",Bm="",Am=""},"clear"),yP=x(t=>{Mm=Nm(t).replace(/^\s+/g,"")},"setAccTitle"),xP=x(()=>Mm,"getAccTitle"),vP=x(t=>{Bm=Nm(t).replace(/\n\s+/g,`
`)},"setAccDescription"),bP=x(()=>Bm,"getAccDescription"),wP=x(t=>{Am=Nm(t)},"setDiagramTitle"),kP=x(()=>Am,"getDiagramTitle"),l1=q,CP=Tm,It=mr,rU=n2,nU=_s,Fh=x(t=>ga(t,It()),"sanitizeText"),SP=dP,_P=x(()=>h2,"getCommonDb"),Bu={},Nu=x((t,e,r)=>{var n;Bu[t]&&l1.warn(`Diagram with id ${t} already registered. Overwriting.`),Bu[t]=e,r&&Kk(t,r),pP(t,e.styles),(n=e.injectUtils)==null||n.call(e,l1,CP,It,Fh,SP,_P(),()=>{})},"registerDiagram"),_p=x(t=>{if(t in Bu)return Bu[t];throw new TP(t)},"getDiagram"),gs,TP=(gs=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},x(gs,"DiagramNotFoundError"),gs);function $m(t){return typeof t>"u"||t===null}x($m,"isNothing");function d2(t){return typeof t=="object"&&t!==null}x(d2,"isObject");function f2(t){return Array.isArray(t)?t:$m(t)?[]:[t]}x(f2,"toArray");function p2(t,e){var r,n,i,a;if(e)for(a=Object.keys(e),r=0,n=a.length;r<n;r+=1)i=a[r],t[i]=e[i];return t}x(p2,"extend");function g2(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}x(g2,"repeat");function m2(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}x(m2,"isNegativeZero");var EP=$m,LP=d2,MP=f2,AP=g2,BP=m2,NP=p2,ge={isNothing:EP,isObject:LP,toArray:MP,repeat:AP,isNegativeZero:BP,extend:NP};function Fm(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
`+t.mark.snippet),n+" "+r):n}x(Fm,"formatError");function Ls(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Fm(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}x(Ls,"YAMLException$1");Ls.prototype=Object.create(Error.prototype);Ls.prototype.constructor=Ls;Ls.prototype.toString=x(function(e){return this.name+": "+Fm(this,e)},"toString");var cr=Ls;function Hc(t,e,r,n,i){var a="",s="",o=Math.floor(i/2)-1;return n-e>o&&(a=" ... ",e=n-o+a.length),r-n>o&&(s=" ...",r=n+o-s.length),{str:a+t.slice(e,r).replace(/\t/g,"→")+s,pos:n-e+a.length}}x(Hc,"getLine");function Wc(t,e){return ge.repeat(" ",e-t.length)+t}x(Wc,"padStart");function y2(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],a,s=-1;a=r.exec(t.buffer);)i.push(a.index),n.push(a.index+a[0].length),t.position<=a.index&&s<0&&(s=n.length-2);s<0&&(s=n.length-1);var o="",l,c,u=Math.min(t.line+e.linesAfter,i.length).toString().length,h=e.maxLength-(e.indent+u+3);for(l=1;l<=e.linesBefore&&!(s-l<0);l++)c=Hc(t.buffer,n[s-l],i[s-l],t.position-(n[s]-n[s-l]),h),o=ge.repeat(" ",e.indent)+Wc((t.line-l+1).toString(),u)+" | "+c.str+`
`+o;for(c=Hc(t.buffer,n[s],i[s],t.position,h),o+=ge.repeat(" ",e.indent)+Wc((t.line+1).toString(),u)+" | "+c.str+`
`,o+=ge.repeat("-",e.indent+u+3+c.pos)+`^
`,l=1;l<=e.linesAfter&&!(s+l>=i.length);l++)c=Hc(t.buffer,n[s+l],i[s+l],t.position-(n[s]-n[s+l]),h),o+=ge.repeat(" ",e.indent)+Wc((t.line+l+1).toString(),u)+" | "+c.str+`
`;return o.replace(/\n$/,"")}x(y2,"makeSnippet");var $P=y2,FP=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],PP=["scalar","sequence","mapping"];function x2(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}x(x2,"compileStyleAliases");function v2(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(FP.indexOf(r)===-1)throw new cr('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=x2(e.styleAliases||null),PP.indexOf(this.kind)===-1)throw new cr('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}x(v2,"Type$1");var Ie=v2;function Tp(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(a,s){a.tag===n.tag&&a.kind===n.kind&&a.multi===n.multi&&(i=s)}),r[i]=n}),r}x(Tp,"compileList");function b2(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(x(n,"collectType"),e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}x(b2,"compileMap");function $u(t){return this.extend(t)}x($u,"Schema$1");$u.prototype.extend=x(function(e){var r=[],n=[];if(e instanceof Ie)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new cr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof Ie))throw new cr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new cr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new cr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(a){if(!(a instanceof Ie))throw new cr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create($u.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=Tp(i,"implicit"),i.compiledExplicit=Tp(i,"explicit"),i.compiledTypeMap=b2(i.compiledImplicit,i.compiledExplicit),i},"extend");var IP=$u,RP=new Ie("tag:yaml.org,2002:str",{kind:"scalar",construct:x(function(t){return t!==null?t:""},"construct")}),OP=new Ie("tag:yaml.org,2002:seq",{kind:"sequence",construct:x(function(t){return t!==null?t:[]},"construct")}),DP=new Ie("tag:yaml.org,2002:map",{kind:"mapping",construct:x(function(t){return t!==null?t:{}},"construct")}),zP=new IP({explicit:[RP,OP,DP]});function w2(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}x(w2,"resolveYamlNull");function k2(){return null}x(k2,"constructYamlNull");function C2(t){return t===null}x(C2,"isNull");var jP=new Ie("tag:yaml.org,2002:null",{kind:"scalar",resolve:w2,construct:k2,predicate:C2,represent:{canonical:x(function(){return"~"},"canonical"),lowercase:x(function(){return"null"},"lowercase"),uppercase:x(function(){return"NULL"},"uppercase"),camelcase:x(function(){return"Null"},"camelcase"),empty:x(function(){return""},"empty")},defaultStyle:"lowercase"});function S2(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}x(S2,"resolveYamlBoolean");function _2(t){return t==="true"||t==="True"||t==="TRUE"}x(_2,"constructYamlBoolean");function T2(t){return Object.prototype.toString.call(t)==="[object Boolean]"}x(T2,"isBoolean");var HP=new Ie("tag:yaml.org,2002:bool",{kind:"scalar",resolve:S2,construct:_2,predicate:T2,represent:{lowercase:x(function(t){return t?"true":"false"},"lowercase"),uppercase:x(function(t){return t?"TRUE":"FALSE"},"uppercase"),camelcase:x(function(t){return t?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function E2(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}x(E2,"isHexCode");function L2(t){return 48<=t&&t<=55}x(L2,"isOctCode");function M2(t){return 48<=t&&t<=57}x(M2,"isDecCode");function A2(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!E2(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!L2(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!M2(t.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}x(A2,"resolveYamlInteger");function B2(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}x(B2,"constructYamlInteger");function N2(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!ge.isNegativeZero(t)}x(N2,"isInteger");var WP=new Ie("tag:yaml.org,2002:int",{kind:"scalar",resolve:A2,construct:B2,predicate:N2,represent:{binary:x(function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},"binary"),octal:x(function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},"octal"),decimal:x(function(t){return t.toString(10)},"decimal"),hexadecimal:x(function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),qP=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function $2(t){return!(t===null||!qP.test(t)||t[t.length-1]==="_")}x($2,"resolveYamlFloat");function F2(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}x(F2,"constructYamlFloat");var UP=/^[-+]?[0-9]+e/;function P2(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ge.isNegativeZero(t))return"-0.0";return r=t.toString(10),UP.test(r)?r.replace("e",".e"):r}x(P2,"representYamlFloat");function I2(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||ge.isNegativeZero(t))}x(I2,"isFloat");var VP=new Ie("tag:yaml.org,2002:float",{kind:"scalar",resolve:$2,construct:F2,predicate:I2,represent:P2,defaultStyle:"lowercase"}),R2=zP.extend({implicit:[jP,HP,WP,VP]}),YP=R2,O2=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),D2=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 z2(t){return t===null?!1:O2.exec(t)!==null||D2.exec(t)!==null}x(z2,"resolveYamlTimestamp");function j2(t){var e,r,n,i,a,s,o,l=0,c=null,u,h,f;if(e=O2.exec(t),e===null&&(e=D2.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(a=+e[4],s=+e[5],o=+e[6],e[7]){for(l=e[7].slice(0,3);l.length<3;)l+="0";l=+l}return e[9]&&(u=+e[10],h=+(e[11]||0),c=(u*60+h)*6e4,e[9]==="-"&&(c=-c)),f=new Date(Date.UTC(r,n,i,a,s,o,l)),c&&f.setTime(f.getTime()-c),f}x(j2,"constructYamlTimestamp");function H2(t){return t.toISOString()}x(H2,"representYamlTimestamp");var GP=new Ie("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:z2,construct:j2,instanceOf:Date,represent:H2});function W2(t){return t==="<<"||t===null}x(W2,"resolveYamlMerge");var XP=new Ie("tag:yaml.org,2002:merge",{kind:"scalar",resolve:W2}),Pm=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
\r`;function q2(t){if(t===null)return!1;var e,r,n=0,i=t.length,a=Pm;for(r=0;r<i;r++)if(e=a.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}x(q2,"resolveYamlBinary");function U2(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,a=Pm,s=0,o=[];for(e=0;e<i;e++)e%4===0&&e&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|a.indexOf(n.charAt(e));return r=i%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}x(U2,"constructYamlBinary");function V2(t){var e="",r=0,n,i,a=t.length,s=Pm;for(n=0;n<a;n++)n%3===0&&n&&(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]),r=(r<<8)+t[n];return i=a%3,i===0?(e+=s[r>>18&63],e+=s[r>>12&63],e+=s[r>>6&63],e+=s[r&63]):i===2?(e+=s[r>>10&63],e+=s[r>>4&63],e+=s[r<<2&63],e+=s[64]):i===1&&(e+=s[r>>2&63],e+=s[r<<4&63],e+=s[64],e+=s[64]),e}x(V2,"representYamlBinary");function Y2(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}x(Y2,"isBinary");var QP=new Ie("tag:yaml.org,2002:binary",{kind:"scalar",resolve:q2,construct:U2,predicate:Y2,represent:V2}),KP=Object.prototype.hasOwnProperty,ZP=Object.prototype.toString;function G2(t){if(t===null)return!0;var e=[],r,n,i,a,s,o=t;for(r=0,n=o.length;r<n;r+=1){if(i=o[r],s=!1,ZP.call(i)!=="[object Object]")return!1;for(a in i)if(KP.call(i,a))if(!s)s=!0;else return!1;if(!s)return!1;if(e.indexOf(a)===-1)e.push(a);else return!1}return!0}x(G2,"resolveYamlOmap");function X2(t){return t!==null?t:[]}x(X2,"constructYamlOmap");var JP=new Ie("tag:yaml.org,2002:omap",{kind:"sequence",resolve:G2,construct:X2}),tI=Object.prototype.toString;function Q2(t){if(t===null)return!0;var e,r,n,i,a,s=t;for(a=new Array(s.length),e=0,r=s.length;e<r;e+=1){if(n=s[e],tI.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;a[e]=[i[0],n[i[0]]]}return!0}x(Q2,"resolveYamlPairs");function K2(t){if(t===null)return[];var e,r,n,i,a,s=t;for(a=new Array(s.length),e=0,r=s.length;e<r;e+=1)n=s[e],i=Object.keys(n),a[e]=[i[0],n[i[0]]];return a}x(K2,"constructYamlPairs");var eI=new Ie("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Q2,construct:K2}),rI=Object.prototype.hasOwnProperty;function Z2(t){if(t===null)return!0;var e,r=t;for(e in r)if(rI.call(r,e)&&r[e]!==null)return!1;return!0}x(Z2,"resolveYamlSet");function J2(t){return t!==null?t:{}}x(J2,"constructYamlSet");var nI=new Ie("tag:yaml.org,2002:set",{kind:"mapping",resolve:Z2,construct:J2}),tC=YP.extend({implicit:[GP,XP],explicit:[QP,JP,eI,nI]}),Ni=Object.prototype.hasOwnProperty,Fu=1,eC=2,rC=3,Pu=4,Qd=1,iI=2,c1=3,aI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,sI=/[\x85\u2028\u2029]/,oI=/[,\[\]\{\}]/,nC=/^(?:!|!!|![a-z\-]+!)$/i,iC=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ep(t){return Object.prototype.toString.call(t)}x(Ep,"_class");function en(t){return t===10||t===13}x(en,"is_EOL");function Mi(t){return t===9||t===32}x(Mi,"is_WHITE_SPACE");function Ge(t){return t===9||t===32||t===10||t===13}x(Ge,"is_WS_OR_EOL");function ea(t){return t===44||t===91||t===93||t===123||t===125}x(ea,"is_FLOW_INDICATOR");function aC(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}x(aC,"fromHexCode");function sC(t){return t===120?2:t===117?4:t===85?8:0}x(sC,"escapedHexLen");function oC(t){return 48<=t&&t<=57?t-48:-1}x(oC,"fromDecimalCode");function Lp(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"
":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}x(Lp,"simpleEscapeSequence");function lC(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}x(lC,"charFromCodepoint");var cC=new Array(256),uC=new Array(256);for(qi=0;qi<256;qi++)cC[qi]=Lp(qi)?1:0,uC[qi]=Lp(qi);var qi;function hC(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||tC,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}x(hC,"State$1");function Im(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=$P(r),new cr(e,r)}x(Im,"generateError");function dt(t,e){throw Im(t,e)}x(dt,"throwError");function fl(t,e){t.onWarning&&t.onWarning.call(null,Im(t,e))}x(fl,"throwWarning");var u1={YAML:x(function(e,r,n){var i,a,s;e.version!==null&&dt(e,"duplication of %YAML directive"),n.length!==1&&dt(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&dt(e,"ill-formed argument of the YAML directive"),a=parseInt(i[1],10),s=parseInt(i[2],10),a!==1&&dt(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=s<2,s!==1&&s!==2&&fl(e,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:x(function(e,r,n){var i,a;n.length!==2&&dt(e,"TAG directive accepts exactly two arguments"),i=n[0],a=n[1],nC.test(i)||dt(e,"ill-formed tag handle (first argument) of the TAG directive"),Ni.call(e.tagMap,i)&&dt(e,'there is a previously declared suffix for "'+i+'" tag handle'),iC.test(a)||dt(e,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{dt(e,"tag prefix is malformed: "+a)}e.tagMap[i]=a},"handleTagDirective")};function Xn(t,e,r,n){var i,a,s,o;if(e<r){if(o=t.input.slice(e,r),n)for(i=0,a=o.length;i<a;i+=1)s=o.charCodeAt(i),s===9||32<=s&&s<=1114111||dt(t,"expected valid JSON character");else aI.test(o)&&dt(t,"the stream contains non-printable characters");t.result+=o}}x(Xn,"captureSegment");function Mp(t,e,r,n){var i,a,s,o;for(ge.isObject(r)||dt(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),s=0,o=i.length;s<o;s+=1)a=i[s],Ni.call(e,a)||(e[a]=r[a],n[a]=!0)}x(Mp,"mergeMappings");function ra(t,e,r,n,i,a,s,o,l){var c,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,u=i.length;c<u;c+=1)Array.isArray(i[c])&&dt(t,"nested arrays are not supported inside keys"),typeof i=="object"&&Ep(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&Ep(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(c=0,u=a.length;c<u;c+=1)Mp(t,e,a[c],r);else Mp(t,e,a,r);else!t.json&&!Ni.call(r,i)&&Ni.call(e,i)&&(t.line=s||t.line,t.lineStart=o||t.lineStart,t.position=l||t.position,dt(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:a}):e[i]=a,delete r[i];return e}x(ra,"storeMappingPair");function Ph(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):dt(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}x(Ph,"readLineBreak");function le(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Mi(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(en(i))for(Ph(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&fl(t,"deficient indentation"),n}x(le,"skipSeparationSpace");function Pl(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||Ge(r)))}x(Pl,"testDocumentSeparator");function Ih(t,e){e===1?t.result+=" ":e>1&&(t.result+=ge.repeat(`
`,e-1))}x(Ih,"writeFoldedLines");function dC(t,e,r){var n,i,a,s,o,l,c,u,h=t.kind,f=t.result,d;if(d=t.input.charCodeAt(t.position),Ge(d)||ea(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=t.input.charCodeAt(t.position+1),Ge(i)||r&&ea(i)))return!1;for(t.kind="scalar",t.result="",a=s=t.position,o=!1;d!==0;){if(d===58){if(i=t.input.charCodeAt(t.position+1),Ge(i)||r&&ea(i))break}else if(d===35){if(n=t.input.charCodeAt(t.position-1),Ge(n))break}else{if(t.position===t.lineStart&&Pl(t)||r&&ea(d))break;if(en(d))if(l=t.line,c=t.lineStart,u=t.lineIndent,le(t,!1,-1),t.lineIndent>=e){o=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=s,t.line=l,t.lineStart=c,t.lineIndent=u;break}}o&&(Xn(t,a,s,!1),Ih(t,t.line-l),a=s=t.position,o=!1),Mi(d)||(s=t.position+1),d=t.input.charCodeAt(++t.position)}return Xn(t,a,s,!1),t.result?!0:(t.kind=h,t.result=f,!1)}x(dC,"readPlainScalar");function fC(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(Xn(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else en(r)?(Xn(t,n,i,!0),Ih(t,le(t,!1,e)),n=i=t.position):t.position===t.lineStart&&Pl(t)?dt(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);dt(t,"unexpected end of the stream within a single quoted scalar")}x(fC,"readSingleQuotedScalar");function pC(t,e){var r,n,i,a,s,o;if(o=t.input.charCodeAt(t.position),o!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(o=t.input.charCodeAt(t.position))!==0;){if(o===34)return Xn(t,r,t.position,!0),t.position++,!0;if(o===92){if(Xn(t,r,t.position,!0),o=t.input.charCodeAt(++t.position),en(o))le(t,!1,e);else if(o<256&&cC[o])t.result+=uC[o],t.position++;else if((s=sC(o))>0){for(i=s,a=0;i>0;i--)o=t.input.charCodeAt(++t.position),(s=aC(o))>=0?a=(a<<4)+s:dt(t,"expected hexadecimal character");t.result+=lC(a),t.position++}else dt(t,"unknown escape sequence");r=n=t.position}else en(o)?(Xn(t,r,n,!0),Ih(t,le(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Pl(t)?dt(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}dt(t,"unexpected end of the stream within a double quoted scalar")}x(pC,"readDoubleQuotedScalar");function gC(t,e){var r=!0,n,i,a,s=t.tag,o,l=t.anchor,c,u,h,f,d,p=Object.create(null),g,v,m,y;if(y=t.input.charCodeAt(t.position),y===91)u=93,d=!1,o=[];else if(y===123)u=125,d=!0,o={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),y=t.input.charCodeAt(++t.position);y!==0;){if(le(t,!0,e),y=t.input.charCodeAt(t.position),y===u)return t.position++,t.tag=s,t.anchor=l,t.kind=d?"mapping":"sequence",t.result=o,!0;r?y===44&&dt(t,"expected the node content, but found ','"):dt(t,"missed comma between flow collection entries"),v=g=m=null,h=f=!1,y===63&&(c=t.input.charCodeAt(t.position+1),Ge(c)&&(h=f=!0,t.position++,le(t,!0,e))),n=t.line,i=t.lineStart,a=t.position,ma(t,e,Fu,!1,!0),v=t.tag,g=t.result,le(t,!0,e),y=t.input.charCodeAt(t.position),(f||t.line===n)&&y===58&&(h=!0,y=t.input.charCodeAt(++t.position),le(t,!0,e),ma(t,e,Fu,!1,!0),m=t.result),d?ra(t,o,p,v,g,m,n,i,a):h?o.push(ra(t,null,p,v,g,m,n,i,a)):o.push(g),le(t,!0,e),y=t.input.charCodeAt(t.position),y===44?(r=!0,y=t.input.charCodeAt(++t.position)):r=!1}dt(t,"unexpected end of the stream within a flow collection")}x(gC,"readFlowCollection");function mC(t,e){var r,n,i=Qd,a=!1,s=!1,o=e,l=0,c=!1,u,h;if(h=t.input.charCodeAt(t.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(t.kind="scalar",t.result="";h!==0;)if(h=t.input.charCodeAt(++t.position),h===43||h===45)Qd===i?i=h===43?c1:iI:dt(t,"repeat of a chomping mode identifier");else if((u=oC(h))>=0)u===0?dt(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?dt(t,"repeat of an indentation width identifier"):(o=e+u-1,s=!0);else break;if(Mi(h)){do h=t.input.charCodeAt(++t.position);while(Mi(h));if(h===35)do h=t.input.charCodeAt(++t.position);while(!en(h)&&h!==0)}for(;h!==0;){for(Ph(t),t.lineIndent=0,h=t.input.charCodeAt(t.position);(!s||t.lineIndent<o)&&h===32;)t.lineIndent++,h=t.input.charCodeAt(++t.position);if(!s&&t.lineIndent>o&&(o=t.lineIndent),en(h)){l++;continue}if(t.lineIndent<o){i===c1?t.result+=ge.repeat(`
`,a?1+l:l):i===Qd&&a&&(t.result+=`
`);break}for(n?Mi(h)?(c=!0,t.result+=ge.repeat(`
`,a?1+l:l)):c?(c=!1,t.result+=ge.repeat(`
`,l+1)):l===0?a&&(t.result+=" "):t.result+=ge.repeat(`
`,l):t.result+=ge.repeat(`
`,a?1+l:l),a=!0,s=!0,l=0,r=t.position;!en(h)&&h!==0;)h=t.input.charCodeAt(++t.position);Xn(t,r,t.position,!1)}return!0}x(mC,"readBlockScalar");function Ap(t,e){var r,n=t.tag,i=t.anchor,a=[],s,o=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,dt(t,"tab characters must not be used in indentation")),!(l!==45||(s=t.input.charCodeAt(t.position+1),!Ge(s))));){if(o=!0,t.position++,le(t,!0,-1)&&t.lineIndent<=e){a.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,ma(t,e,rC,!1,!0),a.push(t.result),le(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)dt(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return o?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=a,!0):!1}x(Ap,"readBlockSequence");function yC(t,e,r){var n,i,a,s,o,l,c=t.tag,u=t.anchor,h={},f=Object.create(null),d=null,p=null,g=null,v=!1,m=!1,y;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=h),y=t.input.charCodeAt(t.position);y!==0;){if(!v&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,dt(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),a=t.line,(y===63||y===58)&&Ge(n))y===63?(v&&(ra(t,h,f,d,p,null,s,o,l),d=p=g=null),m=!0,v=!0,i=!0):v?(v=!1,i=!0):dt(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,y=n;else{if(s=t.line,o=t.lineStart,l=t.position,!ma(t,r,eC,!1,!0))break;if(t.line===a){for(y=t.input.charCodeAt(t.position);Mi(y);)y=t.input.charCodeAt(++t.position);if(y===58)y=t.input.charCodeAt(++t.position),Ge(y)||dt(t,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(ra(t,h,f,d,p,null,s,o,l),d=p=g=null),m=!0,v=!1,i=!1,d=t.tag,p=t.result;else if(m)dt(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=u,!0}else if(m)dt(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=u,!0}if((t.line===a||t.lineIndent>e)&&(v&&(s=t.line,o=t.lineStart,l=t.position),ma(t,e,Pu,!0,i)&&(v?p=t.result:g=t.result),v||(ra(t,h,f,d,p,g,s,o,l),d=p=g=null),le(t,!0,-1),y=t.input.charCodeAt(t.position)),(t.line===a||t.lineIndent>e)&&y!==0)dt(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return v&&ra(t,h,f,d,p,null,s,o,l),m&&(t.tag=c,t.anchor=u,t.kind="mapping",t.result=h),m}x(yC,"readBlockMapping");function xC(t){var e,r=!1,n=!1,i,a,s;if(s=t.input.charCodeAt(t.position),s!==33)return!1;if(t.tag!==null&&dt(t,"duplication of a tag property"),s=t.input.charCodeAt(++t.position),s===60?(r=!0,s=t.input.charCodeAt(++t.position)):s===33?(n=!0,i="!!",s=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do s=t.input.charCodeAt(++t.position);while(s!==0&&s!==62);t.position<t.length?(a=t.input.slice(e,t.position),s=t.input.charCodeAt(++t.position)):dt(t,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Ge(s);)s===33&&(n?dt(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),nC.test(i)||dt(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),s=t.input.charCodeAt(++t.position);a=t.input.slice(e,t.position),oI.test(a)&&dt(t,"tag suffix cannot contain flow indicator characters")}a&&!iC.test(a)&&dt(t,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{dt(t,"tag name is malformed: "+a)}return r?t.tag=a:Ni.call(t.tagMap,i)?t.tag=t.tagMap[i]+a:i==="!"?t.tag="!"+a:i==="!!"?t.tag="tag:yaml.org,2002:"+a:dt(t,'undeclared tag handle "'+i+'"'),!0}x(xC,"readTagProperty");function vC(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&dt(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!Ge(r)&&!ea(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&dt(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}x(vC,"readAnchorProperty");function bC(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!Ge(n)&&!ea(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&dt(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),Ni.call(t.anchorMap,r)||dt(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],le(t,!0,-1),!0}x(bC,"readAlias");function ma(t,e,r,n,i){var a,s,o,l=1,c=!1,u=!1,h,f,d,p,g,v;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,a=s=o=Pu===r||rC===r,n&&le(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;xC(t)||vC(t);)le(t,!0,-1)?(c=!0,o=a,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):o=!1;if(o&&(o=c||i),(l===1||Pu===r)&&(Fu===r||eC===r?g=e:g=e+1,v=t.position-t.lineStart,l===1?o&&(Ap(t,v)||yC(t,v,g))||gC(t,g)?u=!0:(s&&mC(t,g)||fC(t,g)||pC(t,g)?u=!0:bC(t)?(u=!0,(t.tag!==null||t.anchor!==null)&&dt(t,"alias node should not have any properties")):dC(t,g,Fu===r)&&(u=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):l===0&&(u=o&&Ap(t,v))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&dt(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),h=0,f=t.implicitTypes.length;h<f;h+=1)if(p=t.implicitTypes[h],p.resolve(t.result)){t.result=p.construct(t.result),t.tag=p.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(Ni.call(t.typeMap[t.kind||"fallback"],t.tag))p=t.typeMap[t.kind||"fallback"][t.tag];else for(p=null,d=t.typeMap.multi[t.kind||"fallback"],h=0,f=d.length;h<f;h+=1)if(t.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||dt(t,"unknown tag !<"+t.tag+">"),t.result!==null&&p.kind!==t.kind&&dt(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+p.kind+'", not "'+t.kind+'"'),p.resolve(t.result,t.tag)?(t.result=p.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):dt(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||u}x(ma,"composeNode");function wC(t){var e=t.position,r,n,i,a=!1,s;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(s=t.input.charCodeAt(t.position))!==0&&(le(t,!0,-1),s=t.input.charCodeAt(t.position),!(t.lineIndent>0||s!==37));){for(a=!0,s=t.input.charCodeAt(++t.position),r=t.position;s!==0&&!Ge(s);)s=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&dt(t,"directive name must not be less than one character in length");s!==0;){for(;Mi(s);)s=t.input.charCodeAt(++t.position);if(s===35){do s=t.input.charCodeAt(++t.position);while(s!==0&&!en(s));break}if(en(s))break;for(r=t.position;s!==0&&!Ge(s);)s=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}s!==0&&Ph(t),Ni.call(u1,n)?u1[n](t,n,i):fl(t,'unknown document directive "'+n+'"')}if(le(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,le(t,!0,-1)):a&&dt(t,"directives end mark is expected"),ma(t,t.lineIndent-1,Pu,!1,!0),le(t,!0,-1),t.checkLineBreaks&&sI.test(t.input.slice(e,t.position))&&fl(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&Pl(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,le(t,!0,-1));return}if(t.position<t.length-1)dt(t,"end of the stream or a document separator is expected");else return}x(wC,"readDocument");function Rm(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new hC(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,dt(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)wC(r);return r.documents}x(Rm,"loadDocuments");function lI(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=Rm(t,r);if(typeof e!="function")return n;for(var i=0,a=n.length;i<a;i+=1)e(n[i])}x(lI,"loadAll$1");function kC(t,e){var r=Rm(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new cr("expected a single document in the stream, but found more")}}x(kC,"load$1");var cI=kC,uI={load:cI},CC=Object.prototype.toString,SC=Object.prototype.hasOwnProperty,Om=65279,hI=9,pl=10,dI=13,fI=32,pI=33,gI=34,Bp=35,mI=37,yI=38,xI=39,vI=42,_C=44,bI=45,Iu=58,wI=61,kI=62,CI=63,SI=64,TC=91,EC=93,_I=96,LC=123,TI=124,MC=125,De={};De[0]="\\0";De[7]="\\a";De[8]="\\b";De[9]="\\t";De[10]="\\n";De[11]="\\v";De[12]="\\f";De[13]="\\r";De[27]="\\e";De[34]='\\"';De[92]="\\\\";De[133]="\\N";De[160]="\\_";De[8232]="\\L";De[8233]="\\P";var EI=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],LI=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function AC(t,e){var r,n,i,a,s,o,l;if(e===null)return{};for(r={},n=Object.keys(e),i=0,a=n.length;i<a;i+=1)s=n[i],o=String(e[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=t.compiledTypeMap.fallback[s],l&&SC.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[s]=o;return r}x(AC,"compileStyleMap");function BC(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new cr("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ge.repeat("0",n-e.length)+e}x(BC,"encodeHex");var MI=1,gl=2;function NC(t){this.schema=t.schema||tC,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=ge.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=AC(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?gl:MI,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}x(NC,"State");function Np(t,e){for(var r=ge.repeat(" ",e),n=0,i=-1,a="",s,o=t.length;n<o;)i=t.indexOf(`
`,n),i===-1?(s=t.slice(n),n=o):(s=t.slice(n,i+1),n=i+1),s.length&&s!==`
`&&(a+=r),a+=s;return a}x(Np,"indentString");function Ru(t,e){return`
`+ge.repeat(" ",t.indent*e)}x(Ru,"generateNextLine");function $C(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}x($C,"testImplicitResolving");function ml(t){return t===fI||t===hI}x(ml,"isWhitespace");function Ms(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==Om||65536<=t&&t<=1114111}x(Ms,"isPrintable");function $p(t){return Ms(t)&&t!==Om&&t!==dI&&t!==pl}x($p,"isNsCharOrWhitespace");function Fp(t,e,r){var n=$p(t),i=n&&!ml(t);return(r?n:n&&t!==_C&&t!==TC&&t!==EC&&t!==LC&&t!==MC)&&t!==Bp&&!(e===Iu&&!i)||$p(e)&&!ml(e)&&t===Bp||e===Iu&&i}x(Fp,"isPlainSafe");function FC(t){return Ms(t)&&t!==Om&&!ml(t)&&t!==bI&&t!==CI&&t!==Iu&&t!==_C&&t!==TC&&t!==EC&&t!==LC&&t!==MC&&t!==Bp&&t!==yI&&t!==vI&&t!==pI&&t!==TI&&t!==wI&&t!==kI&&t!==xI&&t!==gI&&t!==mI&&t!==SI&&t!==_I}x(FC,"isPlainSafeFirst");function PC(t){return!ml(t)&&t!==Iu}x(PC,"isPlainSafeLast");function Qa(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}x(Qa,"codePointAt");function Dm(t){var e=/^\n* /;return e.test(t)}x(Dm,"needIndentIndicator");var IC=1,Pp=2,RC=3,OC=4,Ia=5;function DC(t,e,r,n,i,a,s,o){var l,c=0,u=null,h=!1,f=!1,d=n!==-1,p=-1,g=FC(Qa(t,0))&&PC(Qa(t,t.length-1));if(e||s)for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=Qa(t,l),!Ms(c))return Ia;g=g&&Fp(c,u,o),u=c}else{for(l=0;l<t.length;c>=65536?l+=2:l++){if(c=Qa(t,l),c===pl)h=!0,d&&(f=f||l-p-1>n&&t[p+1]!==" ",p=l);else if(!Ms(c))return Ia;g=g&&Fp(c,u,o),u=c}f=f||d&&l-p-1>n&&t[p+1]!==" "}return!h&&!f?g&&!s&&!i(t)?IC:a===gl?Ia:Pp:r>9&&Dm(t)?Ia:s?a===gl?Ia:Pp:f?OC:RC}x(DC,"chooseScalarStyle");function zC(t,e,r,n,i){t.dump=function(){if(e.length===0)return t.quotingType===gl?'""':"''";if(!t.noCompatMode&&(EI.indexOf(e)!==-1||LI.test(e)))return t.quotingType===gl?'"'+e+'"':"'"+e+"'";var a=t.indent*Math.max(1,r),s=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-a),o=n||t.flowLevel>-1&&r>=t.flowLevel;function l(c){return $C(t,c)}switch(x(l,"testAmbiguity"),DC(e,o,t.indent,s,l,t.quotingType,t.forceQuotes&&!n,i)){case IC:return e;case Pp:return"'"+e.replace(/'/g,"''")+"'";case RC:return"|"+Ip(e,t.indent)+Rp(Np(e,a));case OC:return">"+Ip(e,t.indent)+Rp(Np(jC(e,s),a));case Ia:return'"'+HC(e)+'"';default:throw new cr("impossible error: invalid scalar style")}}()}x(zC,"writeScalar");function Ip(t,e){var r=Dm(t)?String(e):"",n=t[t.length-1]===`
`,i=n&&(t[t.length-2]===`
`||t===`
`),a=i?"+":n?"":"-";return r+a+`
`}x(Ip,"blockHeader");function Rp(t){return t[t.length-1]===`
`?t.slice(0,-1):t}x(Rp,"dropEndingNewline");function jC(t,e){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=t.indexOf(`
`);return c=c!==-1?c:t.length,r.lastIndex=c,Op(t.slice(0,c),e)}(),i=t[0]===`
`||t[0]===" ",a,s;s=r.exec(t);){var o=s[1],l=s[2];a=l[0]===" ",n+=o+(!i&&!a&&l!==""?`
`:"")+Op(l,e),i=a}return n}x(jC,"foldString");function Op(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,a,s=0,o=0,l="";n=r.exec(t);)o=n.index,o-i>e&&(a=s>i?s:o,l+=`
`+t.slice(i,a),i=a+1),s=o;return l+=`
`,t.length-i>e&&s>i?l+=t.slice(i,s)+`
`+t.slice(s+1):l+=t.slice(i),l.slice(1)}x(Op,"foldLine");function HC(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=Qa(t,i),n=De[r],!n&&Ms(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||BC(r);return e}x(HC,"escapeString");function WC(t,e,r){var n="",i=t.tag,a,s,o;for(a=0,s=r.length;a<s;a+=1)o=r[a],t.replacer&&(o=t.replacer.call(r,String(a),o)),(Tn(t,e,o,!1,!1)||typeof o>"u"&&Tn(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}x(WC,"writeFlowSequence");function Dp(t,e,r,n){var i="",a=t.tag,s,o,l;for(s=0,o=r.length;s<o;s+=1)l=r[s],t.replacer&&(l=t.replacer.call(r,String(s),l)),(Tn(t,e+1,l,!0,!0,!1,!0)||typeof l>"u"&&Tn(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Ru(t,e)),t.dump&&pl===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=a,t.dump=i||"[]"}x(Dp,"writeBlockSequence");function qC(t,e,r){var n="",i=t.tag,a=Object.keys(r),s,o,l,c,u;for(s=0,o=a.length;s<o;s+=1)u="",n!==""&&(u+=", "),t.condenseFlow&&(u+='"'),l=a[s],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),Tn(t,e,l,!1,!1)&&(t.dump.length>1024&&(u+="? "),u+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Tn(t,e,c,!1,!1)&&(u+=t.dump,n+=u));t.tag=i,t.dump="{"+n+"}"}x(qC,"writeFlowMapping");function UC(t,e,r,n){var i="",a=t.tag,s=Object.keys(r),o,l,c,u,h,f;if(t.sortKeys===!0)s.sort();else if(typeof t.sortKeys=="function")s.sort(t.sortKeys);else if(t.sortKeys)throw new cr("sortKeys must be a boolean or a function");for(o=0,l=s.length;o<l;o+=1)f="",(!n||i!=="")&&(f+=Ru(t,e)),c=s[o],u=r[c],t.replacer&&(u=t.replacer.call(r,c,u)),Tn(t,e+1,c,!0,!0,!0)&&(h=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,h&&(t.dump&&pl===t.dump.charCodeAt(0)?f+="?":f+="? "),f+=t.dump,h&&(f+=Ru(t,e)),Tn(t,e+1,u,!0,h)&&(t.dump&&pl===t.dump.charCodeAt(0)?f+=":":f+=": ",f+=t.dump,i+=f));t.tag=a,t.dump=i||"{}"}x(UC,"writeBlockMapping");function zp(t,e,r){var n,i,a,s,o,l;for(i=r?t.explicitTypes:t.implicitTypes,a=0,s=i.length;a<s;a+=1)if(o=i[a],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof e=="object"&&e instanceof o.instanceOf)&&(!o.predicate||o.predicate(e))){if(r?o.multi&&o.representName?t.tag=o.representName(e):t.tag=o.tag:t.tag="?",o.represent){if(l=t.styleMap[o.tag]||o.defaultStyle,CC.call(o.represent)==="[object Function]")n=o.represent(e,l);else if(SC.call(o.represent,l))n=o.represent[l](e,l);else throw new cr("!<"+o.tag+'> tag resolver accepts not "'+l+'" style');t.dump=n}return!0}return!1}x(zp,"detectType");function Tn(t,e,r,n,i,a,s){t.tag=null,t.dump=r,zp(t,r,!1)||zp(t,r,!0);var o=CC.call(t.dump),l=n,c;n&&(n=t.flowLevel<0||t.flowLevel>e);var u=o==="[object Object]"||o==="[object Array]",h,f;if(u&&(h=t.duplicates.indexOf(r),f=h!==-1),(t.tag!==null&&t.tag!=="?"||f||t.indent!==2&&e>0)&&(i=!1),f&&t.usedDuplicates[h])t.dump="*ref_"+h;else{if(u&&f&&!t.usedDuplicates[h]&&(t.usedDuplicates[h]=!0),o==="[object Object]")n&&Object.keys(t.dump).length!==0?(UC(t,e,t.dump,i),f&&(t.dump="&ref_"+h+t.dump)):(qC(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(o==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!s&&e>0?Dp(t,e-1,t.dump,i):Dp(t,e,t.dump,i),f&&(t.dump="&ref_"+h+t.dump)):(WC(t,e,t.dump),f&&(t.dump="&ref_"+h+" "+t.dump));else if(o==="[object String]")t.tag!=="?"&&zC(t,t.dump,e,a,l);else{if(o==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new cr("unacceptable kind of an object to dump "+o)}t.tag!==null&&t.tag!=="?"&&(c=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",t.dump=c+" "+t.dump)}return!0}x(Tn,"writeNode");function VC(t,e){var r=[],n=[],i,a;for(Ou(t,r,n),i=0,a=n.length;i<a;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(a)}x(VC,"getDuplicateReferences");function Ou(t,e,r){var n,i,a;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,a=t.length;i<a;i+=1)Ou(t[i],e,r);else for(n=Object.keys(t),i=0,a=n.length;i<a;i+=1)Ou(t[n[i]],e,r)}x(Ou,"inspectNode");function AI(t,e){e=e||{};var r=new NC(e);r.noRefs||VC(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Tn(r,0,n,!0,!0)?r.dump+`
`:""}x(AI,"dump$1");function BI(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}x(BI,"renamed");var NI=R2,$I=uI.load;/*! Bundled license information:
js-yaml/dist/js-yaml.mjs:
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
*/var Fr={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:4};function Co(t,e){if(t===void 0||e===void 0)return{angle:0,deltaX:0,deltaY:0};t=Jt(t),e=Jt(e);const[r,n]=[t.x,t.y],[i,a]=[e.x,e.y],s=i-r,o=a-n;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}x(Co,"calculateDeltaAndAngle");var Jt=x(t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,"pointTransformer"),FI=x(t=>({x:x(function(e,r,n){let i=0;const a=Jt(n[0]).x<Jt(n[n.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(Fr,t.arrowTypeStart)){const{angle:d,deltaX:p}=Co(n[0],n[1]);i=Fr[t.arrowTypeStart]*Math.cos(d)*(p>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(Fr,t.arrowTypeEnd)){const{angle:d,deltaX:p}=Co(n[n.length-1],n[n.length-2]);i=Fr[t.arrowTypeEnd]*Math.cos(d)*(p>=0?1:-1)}const s=Math.abs(Jt(e).x-Jt(n[n.length-1]).x),o=Math.abs(Jt(e).y-Jt(n[n.length-1]).y),l=Math.abs(Jt(e).x-Jt(n[0]).x),c=Math.abs(Jt(e).y-Jt(n[0]).y),u=Fr[t.arrowTypeStart],h=Fr[t.arrowTypeEnd],f=1;if(s<h&&s>0&&o<h){let d=h+f-s;d*=a==="right"?-1:1,i-=d}if(l<u&&l>0&&c<u){let d=u+f-l;d*=a==="right"?-1:1,i+=d}return Jt(e).x+i},"x"),y:x(function(e,r,n){let i=0;const a=Jt(n[0]).y<Jt(n[n.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(Fr,t.arrowTypeStart)){const{angle:d,deltaY:p}=Co(n[0],n[1]);i=Fr[t.arrowTypeStart]*Math.abs(Math.sin(d))*(p>=0?1:-1)}else if(r===n.length-1&&Object.hasOwn(Fr,t.arrowTypeEnd)){const{angle:d,deltaY:p}=Co(n[n.length-1],n[n.length-2]);i=Fr[t.arrowTypeEnd]*Math.abs(Math.sin(d))*(p>=0?1:-1)}const s=Math.abs(Jt(e).y-Jt(n[n.length-1]).y),o=Math.abs(Jt(e).x-Jt(n[n.length-1]).x),l=Math.abs(Jt(e).y-Jt(n[0]).y),c=Math.abs(Jt(e).x-Jt(n[0]).x),u=Fr[t.arrowTypeStart],h=Fr[t.arrowTypeEnd],f=1;if(s<h&&s>0&&o<h){let d=h+f-s;d*=a==="up"?-1:1,i-=d}if(l<u&&l>0&&c<u){let d=u+f-l;d*=a==="up"?-1:1,i+=d}return Jt(e).y+i},"y")}),"getLineFunctionsWithOffset"),zm=x(({flowchart:t})=>{var i,a;const e=((i=t==null?void 0:t.subGraphTitleMargin)==null?void 0:i.top)??0,r=((a=t==null?void 0:t.subGraphTitleMargin)==null?void 0:a.bottom)??0,n=e+r;return{subGraphTitleTopMargin:e,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:n}},"getSubGraphTitleMargins"),PI=x(t=>{const{handDrawnSeed:e}=It();return{fill:t,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:t,seed:e}},"solidStateFill"),js=x(t=>{const e=II([...t.cssCompiledStyles||[],...t.cssStyles||[]]);return{stylesMap:e,stylesArray:[...e]}},"compileStyles"),II=x(t=>{const e=new Map;return t.forEach(r=>{const[n,i]=r.split(":");e.set(n.trim(),i==null?void 0:i.trim())}),e},"styles2Map"),YC=x(t=>t==="color"||t==="font-size"||t==="font-family"||t==="font-weight"||t==="font-style"||t==="text-decoration"||t==="text-align"||t==="text-transform"||t==="line-height"||t==="letter-spacing"||t==="word-spacing"||t==="text-shadow"||t==="text-overflow"||t==="white-space"||t==="word-wrap"||t==="word-break"||t==="overflow-wrap"||t==="hyphens","isLabelStyle"),ht=x(t=>{const{stylesArray:e}=js(t),r=[],n=[],i=[],a=[];return e.forEach(s=>{const o=s[0];YC(o)?r.push(s.join(":")+" !important"):(n.push(s.join(":")+" !important"),o.includes("stroke")&&i.push(s.join(":")+" !important"),o==="fill"&&a.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:n.join(";"),stylesArray:e,borderStyles:i,backgroundStyles:a}},"styles2String"),ct=x((t,e)=>{var l;const{themeVariables:r,handDrawnSeed:n}=It(),{nodeBorder:i,mainBkg:a}=r,{stylesMap:s}=js(t);return Object.assign({roughness:.7,fill:s.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:s.get("stroke")||i,seed:n,strokeWidth:((l=s.get("stroke-width"))==null?void 0:l.replace("px",""))||1.3,fillLineDash:[0,0]},e)},"userNodeOverrides"),jm={},be={};Object.defineProperty(be,"__esModule",{value:!0});be.BLANK_URL=be.relativeFirstCharacters=be.whitespaceEscapeCharsRegex=be.urlSchemeRegex=be.ctrlCharactersRegex=be.htmlCtrlEntityRegex=be.htmlEntitiesRegex=be.invalidProtocolRegex=void 0;be.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;be.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;be.htmlCtrlEntityRegex=/&(newline|tab);/gi;be.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;be.urlSchemeRegex=/^.+(:|:)/gim;be.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;be.relativeFirstCharacters=[".","/"];be.BLANK_URL="about:blank";Object.defineProperty(jm,"__esModule",{value:!0});var GC=jm.sanitizeUrl=void 0,Fe=be;function RI(t){return Fe.relativeFirstCharacters.indexOf(t[0])>-1}function OI(t){var e=t.replace(Fe.ctrlCharactersRegex,"");return e.replace(Fe.htmlEntitiesRegex,function(r,n){return String.fromCharCode(n)})}function DI(t){return URL.canParse(t)}function h1(t){try{return decodeURIComponent(t)}catch{return t}}function zI(t){if(!t)return Fe.BLANK_URL;var e,r=h1(t.trim());do r=OI(r).replace(Fe.htmlCtrlEntityRegex,"").replace(Fe.ctrlCharactersRegex,"").replace(Fe.whitespaceEscapeCharsRegex,"").trim(),r=h1(r),e=r.match(Fe.ctrlCharactersRegex)||r.match(Fe.htmlEntitiesRegex)||r.match(Fe.htmlCtrlEntityRegex)||r.match(Fe.whitespaceEscapeCharsRegex);while(e&&e.length>0);var n=r;if(!n)return Fe.BLANK_URL;if(RI(n))return n;var i=n.trimStart(),a=i.match(Fe.urlSchemeRegex);if(!a)return n;var s=a[0].toLowerCase().trim();if(Fe.invalidProtocolRegex.test(s))return Fe.BLANK_URL;var o=i.replace(/\\/g,"/");if(s==="mailto:"||s.includes("://"))return o;if(s==="http:"||s==="https:"){if(!DI(o))return Fe.BLANK_URL;var l=new URL(o);return l.protocol=l.protocol.toLowerCase(),l.hostname=l.hostname.toLowerCase(),l.toString()}return o}GC=jm.sanitizeUrl=zI;var jI={value:()=>{}};function XC(){for(var t=0,e=arguments.length,r={},n;t<e;++t){if(!(n=arguments[t]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new qc(r)}function qc(t){this._=t}function HI(t,e){return t.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}qc.prototype=XC.prototype={constructor:qc,on:function(t,e){var r=this._,n=HI(t+"",r),i,a=-1,s=n.length;if(arguments.length<2){for(;++a<s;)if((i=(t=n[a]).type)&&(i=WI(r[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++a<s;)if(i=(t=n[a]).type)r[i]=d1(r[i],t.name,e);else if(e==null)for(i in r)r[i]=d1(r[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new qc(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,a;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(a=this._[t],n=0,i=a.length;n<i;++n)a[n].value.apply(e,r)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var n=this._[t],i=0,a=n.length;i<a;++i)n[i].value.apply(e,r)}};function WI(t,e){for(var r=0,n=t.length,i;r<n;++r)if((i=t[r]).name===e)return i.value}function d1(t,e,r){for(var n=0,i=t.length;n<i;++n)if(t[n].name===e){t[n]=jI,t=t.slice(0,n).concat(t.slice(n+1));break}return r!=null&&t.push({name:e,value:r}),t}var jp="http://www.w3.org/1999/xhtml";const f1={svg:"http://www.w3.org/2000/svg",xhtml:jp,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Rh(t){var e=t+="",r=e.indexOf(":");return r>=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),f1.hasOwnProperty(e)?{space:f1[e],local:t}:t}function qI(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===jp&&e.documentElement.namespaceURI===jp?e.createElement(t):e.createElementNS(r,t)}}function UI(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function QC(t){var e=Rh(t);return(e.local?UI:qI)(e)}function VI(){}function Hm(t){return t==null?VI:function(){return this.querySelector(t)}}function YI(t){typeof t!="function"&&(t=Hm(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a=e[i],s=a.length,o=n[i]=new Array(s),l,c,u=0;u<s;++u)(l=a[u])&&(c=t.call(l,l.__data__,u,a))&&("__data__"in l&&(c.__data__=l.__data__),o[u]=c);return new Mr(n,this._parents)}function GI(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function XI(){return[]}function KC(t){return t==null?XI:function(){return this.querySelectorAll(t)}}function QI(t){return function(){return GI(t.apply(this,arguments))}}function KI(t){typeof t=="function"?t=QI(t):t=KC(t);for(var e=this._groups,r=e.length,n=[],i=[],a=0;a<r;++a)for(var s=e[a],o=s.length,l,c=0;c<o;++c)(l=s[c])&&(n.push(t.call(l,l.__data__,c,s)),i.push(l));return new Mr(n,i)}function ZC(t){return function(){return this.matches(t)}}function JC(t){return function(e){return e.matches(t)}}var ZI=Array.prototype.find;function JI(t){return function(){return ZI.call(this.children,t)}}function tR(){return this.firstElementChild}function eR(t){return this.select(t==null?tR:JI(typeof t=="function"?t:JC(t)))}var rR=Array.prototype.filter;function nR(){return Array.from(this.children)}function iR(t){return function(){return rR.call(this.children,t)}}function aR(t){return this.selectAll(t==null?nR:iR(typeof t=="function"?t:JC(t)))}function sR(t){typeof t!="function"&&(t=ZC(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a=e[i],s=a.length,o=n[i]=[],l,c=0;c<s;++c)(l=a[c])&&t.call(l,l.__data__,c,a)&&o.push(l);return new Mr(n,this._parents)}function tS(t){return new Array(t.length)}function oR(){return new Mr(this._enter||this._groups.map(tS),this._parents)}function Du(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Du.prototype={constructor:Du,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function lR(t){return function(){return t}}function cR(t,e,r,n,i,a){for(var s=0,o,l=e.length,c=a.length;s<c;++s)(o=e[s])?(o.__data__=a[s],n[s]=o):r[s]=new Du(t,a[s]);for(;s<l;++s)(o=e[s])&&(i[s]=o)}function uR(t,e,r,n,i,a,s){var o,l,c=new Map,u=e.length,h=a.length,f=new Array(u),d;for(o=0;o<u;++o)(l=e[o])&&(f[o]=d=s.call(l,l.__data__,o,e)+"",c.has(d)?i[o]=l:c.set(d,l));for(o=0;o<h;++o)d=s.call(t,a[o],o,a)+"",(l=c.get(d))?(n[o]=l,l.__data__=a[o],c.delete(d)):r[o]=new Du(t,a[o]);for(o=0;o<u;++o)(l=e[o])&&c.get(f[o])===l&&(i[o]=l)}function hR(t){return t.__data__}function dR(t,e){if(!arguments.length)return Array.from(this,hR);var r=e?uR:cR,n=this._parents,i=this._groups;typeof t!="function"&&(t=lR(t));for(var a=i.length,s=new Array(a),o=new Array(a),l=new Array(a),c=0;c<a;++c){var u=n[c],h=i[c],f=h.length,d=fR(t.call(u,u&&u.__data__,c,n)),p=d.length,g=o[c]=new Array(p),v=s[c]=new Array(p),m=l[c]=new Array(f);r(u,h,g,v,m,d,e);for(var y=0,b=0,S,_;y<p;++y)if(S=g[y]){for(y>=b&&(b=y+1);!(_=v[b])&&++b<p;);S._next=_||null}}return s=new Mr(s,n),s._enter=o,s._exit=l,s}function fR(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function pR(){return new Mr(this._exit||this._groups.map(tS),this._parents)}function gR(t,e,r){var n=this.enter(),i=this,a=this.exit();return typeof t=="function"?(n=t(n),n&&(n=n.selection())):n=n.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function mR(t){for(var e=t.selection?t.selection():t,r=this._groups,n=e._groups,i=r.length,a=n.length,s=Math.min(i,a),o=new Array(i),l=0;l<s;++l)for(var c=r[l],u=n[l],h=c.length,f=o[l]=new Array(h),d,p=0;p<h;++p)(d=c[p]||u[p])&&(f[p]=d);for(;l<i;++l)o[l]=r[l];return new Mr(o,this._parents)}function yR(){for(var t=this._groups,e=-1,r=t.length;++e<r;)for(var n=t[e],i=n.length-1,a=n[i],s;--i>=0;)(s=n[i])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function xR(t){t||(t=vR);function e(h,f){return h&&f?t(h.__data__,f.__data__):!h-!f}for(var r=this._groups,n=r.length,i=new Array(n),a=0;a<n;++a){for(var s=r[a],o=s.length,l=i[a]=new Array(o),c,u=0;u<o;++u)(c=s[u])&&(l[u]=c);l.sort(e)}return new Mr(i,this._parents).order()}function vR(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function bR(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function wR(){return Array.from(this)}function kR(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n=t[e],i=0,a=n.length;i<a;++i){var s=n[i];if(s)return s}return null}function CR(){let t=0;for(const e of this)++t;return t}function SR(){return!this.node()}function _R(t){for(var e=this._groups,r=0,n=e.length;r<n;++r)for(var i=e[r],a=0,s=i.length,o;a<s;++a)(o=i[a])&&t.call(o,o.__data__,a,i);return this}function TR(t){return function(){this.removeAttribute(t)}}function ER(t){return function(){this.removeAttributeNS(t.space,t.local)}}function LR(t,e){return function(){this.setAttribute(t,e)}}function MR(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function AR(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}function BR(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}function NR(t,e){var r=Rh(t);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((e==null?r.local?ER:TR:typeof e=="function"?r.local?BR:AR:r.local?MR:LR)(r,e))}function eS(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function $R(t){return function(){this.style.removeProperty(t)}}function FR(t,e,r){return function(){this.style.setProperty(t,e,r)}}function PR(t,e,r){return function(){var n=e.apply(this,arguments);n==null?this.style.removeProperty(t):this.style.setProperty(t,n,r)}}function IR(t,e,r){return arguments.length>1?this.each((e==null?$R:typeof e=="function"?PR:FR)(t,e,r??"")):As(this.node(),t)}function As(t,e){return t.style.getPropertyValue(e)||eS(t).getComputedStyle(t,null).getPropertyValue(e)}function RR(t){return function(){delete this[t]}}function OR(t,e){return function(){this[t]=e}}function DR(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function zR(t,e){return arguments.length>1?this.each((e==null?RR:typeof e=="function"?DR:OR)(t,e)):this.node()[t]}function rS(t){return t.trim().split(/^|\s+/)}function Wm(t){return t.classList||new nS(t)}function nS(t){this._node=t,this._names=rS(t.getAttribute("class")||"")}nS.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function iS(t,e){for(var r=Wm(t),n=-1,i=e.length;++n<i;)r.add(e[n])}function aS(t,e){for(var r=Wm(t),n=-1,i=e.length;++n<i;)r.remove(e[n])}function jR(t){return function(){iS(this,t)}}function HR(t){return function(){aS(this,t)}}function WR(t,e){return function(){(e.apply(this,arguments)?iS:aS)(this,t)}}function qR(t,e){var r=rS(t+"");if(arguments.length<2){for(var n=Wm(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof e=="function"?WR:e?jR:HR)(r,e))}function UR(){this.textContent=""}function VR(t){return function(){this.textContent=t}}function YR(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function GR(t){return arguments.length?this.each(t==null?UR:(typeof t=="function"?YR:VR)(t)):this.node().textContent}function XR(){this.innerHTML=""}function QR(t){return function(){this.innerHTML=t}}function KR(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function ZR(t){return arguments.length?this.each(t==null?XR:(typeof t=="function"?KR:QR)(t)):this.node().innerHTML}function JR(){this.nextSibling&&this.parentNode.appendChild(this)}function tO(){return this.each(JR)}function eO(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function rO(){return this.each(eO)}function nO(t){var e=typeof t=="function"?t:QC(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function iO(){return null}function aO(t,e){var r=typeof t=="function"?t:QC(t),n=e==null?iO:typeof e=="function"?e:Hm(e);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function sO(){var t=this.parentNode;t&&t.removeChild(this)}function oO(){return this.each(sO)}function lO(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function cO(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function uO(t){return this.select(t?cO:lO)}function hO(t){return arguments.length?this.property("__data__",t):this.node().__data__}function dO(t){return function(e){t.call(this,e,this.__data__)}}function fO(t){return t.trim().split(/^|\s+/).map(function(e){var r="",n=e.indexOf(".");return n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function pO(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,i=e.length,a;r<i;++r)a=e[r],(!t.type||a.type===t.type)&&a.name===t.name?this.removeEventListener(a.type,a.listener,a.options):e[++n]=a;++n?e.length=n:delete this.__on}}}function gO(t,e,r){return function(){var n=this.__on,i,a=dO(e);if(n){for(var s=0,o=n.length;s<o;++s)if((i=n[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),i.value=e;return}}this.addEventListener(t.type,a,r),i={type:t.type,name:t.name,value:e,listener:a,options:r},n?n.push(i):this.__on=[i]}}function mO(t,e,r){var n=fO(t+""),i,a=n.length,s;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,c=o.length,u;l<c;++l)for(i=0,u=o[l];i<a;++i)if((s=n[i]).type===u.type&&s.name===u.name)return u.value}return}for(o=e?gO:pO,i=0;i<a;++i)this.each(o(n[i],e,r));return this}function sS(t,e,r){var n=eS(t),i=n.CustomEvent;typeof i=="function"?i=new i(e,r):(i=n.document.createEvent("Event"),r?(i.initEvent(e,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function yO(t,e){return function(){return sS(this,t,e)}}function xO(t,e){return function(){return sS(this,t,e.apply(this,arguments))}}function vO(t,e){return this.each((typeof e=="function"?xO:yO)(t,e))}function*bO(){for(var t=this._groups,e=0,r=t.length;e<r;++e)for(var n=t[e],i=0,a=n.length,s;i<a;++i)(s=n[i])&&(yield s)}var oS=[null];function Mr(t,e){this._groups=t,this._parents=e}function Il(){return new Mr([[document.documentElement]],oS)}function wO(){return this}Mr.prototype=Il.prototype={constructor:Mr,select:YI,selectAll:KI,selectChild:eR,selectChildren:aR,filter:sR,data:dR,enter:oR,exit:pR,join:gR,merge:mR,selection:wO,order:yR,sort:xR,call:bR,nodes:wR,node:kR,size:CR,empty:SR,each:_R,attr:NR,style:IR,property:zR,classed:qR,text:GR,html:ZR,raise:tO,lower:rO,append:nO,insert:aO,remove:oO,clone:uO,datum:hO,on:mO,dispatch:vO,[Symbol.iterator]:bO};function Bt(t){return typeof t=="string"?new Mr([[document.querySelector(t)]],[document.documentElement]):new Mr([[t]],oS)}function qm(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function lS(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Rl(){}var yl=.7,zu=1/yl,os="\\s*([+-]?\\d+)\\s*",xl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Cn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kO=/^#([0-9a-f]{3,8})$/,CO=new RegExp(`^rgb\\(${os},${os},${os}\\)$`),SO=new RegExp(`^rgb\\(${Cn},${Cn},${Cn}\\)$`),_O=new RegExp(`^rgba\\(${os},${os},${os},${xl}\\)$`),TO=new RegExp(`^rgba\\(${Cn},${Cn},${Cn},${xl}\\)$`),EO=new RegExp(`^hsl\\(${xl},${Cn},${Cn}\\)$`),LO=new RegExp(`^hsla\\(${xl},${Cn},${Cn},${xl}\\)$`),p1={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};qm(Rl,vl,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:g1,formatHex:g1,formatHex8:MO,formatHsl:AO,formatRgb:m1,toString:m1});function g1(){return this.rgb().formatHex()}function MO(){return this.rgb().formatHex8()}function AO(){return cS(this).formatHsl()}function m1(){return this.rgb().formatRgb()}function vl(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=kO.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?y1(e):r===3?new hr(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?gc(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?gc(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=CO.exec(t))?new hr(e[1],e[2],e[3],1):(e=SO.exec(t))?new hr(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=_O.exec(t))?gc(e[1],e[2],e[3],e[4]):(e=TO.exec(t))?gc(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=EO.exec(t))?b1(e[1],e[2]/100,e[3]/100,1):(e=LO.exec(t))?b1(e[1],e[2]/100,e[3]/100,e[4]):p1.hasOwnProperty(t)?y1(p1[t]):t==="transparent"?new hr(NaN,NaN,NaN,0):null}function y1(t){return new hr(t>>16&255,t>>8&255,t&255,1)}function gc(t,e,r,n){return n<=0&&(t=e=r=NaN),new hr(t,e,r,n)}function BO(t){return t instanceof Rl||(t=vl(t)),t?(t=t.rgb(),new hr(t.r,t.g,t.b,t.opacity)):new hr}function Hp(t,e,r,n){return arguments.length===1?BO(t):new hr(t,e,r,n??1)}function hr(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}qm(hr,Hp,lS(Rl,{brighter(t){return t=t==null?zu:Math.pow(zu,t),new hr(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?yl:Math.pow(yl,t),new hr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new hr(oa(this.r),oa(this.g),oa(this.b),ju(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:x1,formatHex:x1,formatHex8:NO,formatRgb:v1,toString:v1}));function x1(){return`#${na(this.r)}${na(this.g)}${na(this.b)}`}function NO(){return`#${na(this.r)}${na(this.g)}${na(this.b)}${na((isNaN(this.opacity)?1:this.opacity)*255)}`}function v1(){const t=ju(this.opacity);return`${t===1?"rgb(":"rgba("}${oa(this.r)}, ${oa(this.g)}, ${oa(this.b)}${t===1?")":`, ${t})`}`}function ju(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function oa(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function na(t){return t=oa(t),(t<16?"0":"")+t.toString(16)}function b1(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Zr(t,e,r,n)}function cS(t){if(t instanceof Zr)return new Zr(t.h,t.s,t.l,t.opacity);if(t instanceof Rl||(t=vl(t)),!t)return new Zr;if(t instanceof Zr)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),a=Math.max(e,r,n),s=NaN,o=a-i,l=(a+i)/2;return o?(e===a?s=(r-n)/o+(r<n)*6:r===a?s=(n-e)/o+2:s=(e-r)/o+4,o/=l<.5?a+i:2-a-i,s*=60):o=l>0&&l<1?0:s,new Zr(s,o,l,t.opacity)}function $O(t,e,r,n){return arguments.length===1?cS(t):new Zr(t,e,r,n??1)}function Zr(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}qm(Zr,$O,lS(Rl,{brighter(t){return t=t==null?zu:Math.pow(zu,t),new Zr(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?yl:Math.pow(yl,t),new Zr(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new hr(Kd(t>=240?t-240:t+120,i,n),Kd(t,i,n),Kd(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new Zr(w1(this.h),mc(this.s),mc(this.l),ju(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=ju(this.opacity);return`${t===1?"hsl(":"hsla("}${w1(this.h)}, ${mc(this.s)*100}%, ${mc(this.l)*100}%${t===1?")":`, ${t})`}`}}));function w1(t){return t=(t||0)%360,t<0?t+360:t}function mc(t){return Math.max(0,Math.min(1,t||0))}function Kd(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const Um=t=>()=>t;function uS(t,e){return function(r){return t+r*e}}function FO(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function iU(t,e){var r=e-t;return r?uS(t,r>180||r<-180?r-360*Math.round(r/360):r):Um(isNaN(t)?e:t)}function PO(t){return(t=+t)==1?hS:function(e,r){return r-e?FO(e,r,t):Um(isNaN(e)?r:e)}}function hS(t,e){var r=e-t;return r?uS(t,r):Um(isNaN(t)?e:t)}const k1=function t(e){var r=PO(e);function n(i,a){var s=r((i=Hp(i)).r,(a=Hp(a)).r),o=r(i.g,a.g),l=r(i.b,a.b),c=hS(i.opacity,a.opacity);return function(u){return i.r=s(u),i.g=o(u),i.b=l(u),i.opacity=c(u),i+""}}return n.gamma=t,n}(1);function gi(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}var Wp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zd=new RegExp(Wp.source,"g");function IO(t){return function(){return t}}function RO(t){return function(e){return t(e)+""}}function OO(t,e){var r=Wp.lastIndex=Zd.lastIndex=0,n,i,a,s=-1,o=[],l=[];for(t=t+"",e=e+"";(n=Wp.exec(t))&&(i=Zd.exec(e));)(a=i.index)>r&&(a=e.slice(r,a),o[s]?o[s]+=a:o[++s]=a),(n=n[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,l.push({i:s,x:gi(n,i)})),r=Zd.lastIndex;return r<e.length&&(a=e.slice(r),o[s]?o[s]+=a:o[++s]=a),o.length<2?l[0]?RO(l[0].x):IO(e):(e=l.length,function(c){for(var u=0,h;u<e;++u)o[(h=l[u]).i]=h.x(c);return o.join("")})}var C1=180/Math.PI,qp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function dS(t,e,r,n,i,a){var s,o,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*r+e*n)&&(r-=t*l,n-=e*l),(o=Math.sqrt(r*r+n*n))&&(r/=o,n/=o,l/=o),t*n<e*r&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*C1,skewX:Math.atan(l)*C1,scaleX:s,scaleY:o}}var yc;function DO(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?qp:dS(e.a,e.b,e.c,e.d,e.e,e.f)}function zO(t){return t==null||(yc||(yc=document.createElementNS("http://www.w3.org/2000/svg","g")),yc.setAttribute("transform",t),!(t=yc.transform.baseVal.consolidate()))?qp:(t=t.matrix,dS(t.a,t.b,t.c,t.d,t.e,t.f))}function fS(t,e,r,n){function i(c){return c.length?c.pop()+" ":""}function a(c,u,h,f,d,p){if(c!==h||u!==f){var g=d.push("translate(",null,e,null,r);p.push({i:g-4,x:gi(c,h)},{i:g-2,x:gi(u,f)})}else(h||f)&&d.push("translate("+h+e+f+r)}function s(c,u,h,f){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),f.push({i:h.push(i(h)+"rotate(",null,n)-2,x:gi(c,u)})):u&&h.push(i(h)+"rotate("+u+n)}function o(c,u,h,f){c!==u?f.push({i:h.push(i(h)+"skewX(",null,n)-2,x:gi(c,u)}):u&&h.push(i(h)+"skewX("+u+n)}function l(c,u,h,f,d,p){if(c!==h||u!==f){var g=d.push(i(d)+"scale(",null,",",null,")");p.push({i:g-4,x:gi(c,h)},{i:g-2,x:gi(u,f)})}else(h!==1||f!==1)&&d.push(i(d)+"scale("+h+","+f+")")}return function(c,u){var h=[],f=[];return c=t(c),u=t(u),a(c.translateX,c.translateY,u.translateX,u.translateY,h,f),s(c.rotate,u.rotate,h,f),o(c.skewX,u.skewX,h,f),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,h,f),c=u=null,function(d){for(var p=-1,g=f.length,v;++p<g;)h[(v=f[p]).i]=v.x(d);return h.join("")}}}var jO=fS(DO,"px, ","px)","deg)"),HO=fS(zO,", ",")",")"),Bs=0,So=0,uo=0,pS=1e3,Hu,_o,Wu=0,ya=0,Oh=0,bl=typeof performance=="object"&&performance.now?performance:Date,gS=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Vm(){return ya||(gS(WO),ya=bl.now()+Oh)}function WO(){ya=0}function qu(){this._call=this._time=this._next=null}qu.prototype=mS.prototype={constructor:qu,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?Vm():+r)+(e==null?0:+e),!this._next&&_o!==this&&(_o?_o._next=this:Hu=this,_o=this),this._call=t,this._time=r,Up()},stop:function(){this._call&&(this._call=null,this._time=1/0,Up())}};function mS(t,e,r){var n=new qu;return n.restart(t,e,r),n}function qO(){Vm(),++Bs;for(var t=Hu,e;t;)(e=ya-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Bs}function S1(){ya=(Wu=bl.now())+Oh,Bs=So=0;try{qO()}finally{Bs=0,VO(),ya=0}}function UO(){var t=bl.now(),e=t-Wu;e>pS&&(Oh-=e,Wu=t)}function VO(){for(var t,e=Hu,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Hu=r);_o=t,Up(n)}function Up(t){if(!Bs){So&&(So=clearTimeout(So));var e=t-ya;e>24?(t<1/0&&(So=setTimeout(S1,t-bl.now()-Oh)),uo&&(uo=clearInterval(uo))):(uo||(Wu=bl.now(),uo=setInterval(UO,pS)),Bs=1,gS(S1))}}function _1(t,e,r){var n=new qu;return e=e==null?0:+e,n.restart(i=>{n.stop(),t(i+e)},e,r),n}var YO=XC("start","end","cancel","interrupt"),GO=[],yS=0,T1=1,Vp=2,Uc=3,E1=4,Yp=5,Vc=6;function Dh(t,e,r,n,i,a){var s=t.__transition;if(!s)t.__transition={};else if(r in s)return;XO(t,r,{name:e,index:n,group:i,on:YO,tween:GO,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:yS})}function Ym(t,e){var r=an(t,e);if(r.state>yS)throw new Error("too late; already scheduled");return r}function En(t,e){var r=an(t,e);if(r.state>Uc)throw new Error("too late; already running");return r}function an(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function XO(t,e,r){var n=t.__transition,i;n[e]=r,r.timer=mS(a,0,r.time);function a(c){r.state=T1,r.timer.restart(s,r.delay,r.time),r.delay<=c&&s(c-r.delay)}function s(c){var u,h,f,d;if(r.state!==T1)return l();for(u in n)if(d=n[u],d.name===r.name){if(d.state===Uc)return _1(s);d.state===E1?(d.state=Vc,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete n[u]):+u<e&&(d.state=Vc,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete n[u])}if(_1(function(){r.state===Uc&&(r.state=E1,r.timer.restart(o,r.delay,r.time),o(c))}),r.state=Vp,r.on.call("start",t,t.__data__,r.index,r.group),r.state===Vp){for(r.state=Uc,i=new Array(f=r.tween.length),u=0,h=-1;u<f;++u)(d=r.tween[u].value.call(t,t.__data__,r.index,r.group))&&(i[++h]=d);i.length=h+1}}function o(c){for(var u=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=Yp,1),h=-1,f=i.length;++h<f;)i[h].call(t,u);r.state===Yp&&(r.on.call("end",t,t.__data__,r.index,r.group),l())}function l(){r.state=Vc,r.timer.stop(),delete n[e];for(var c in n)return;delete t.__transition}}function QO(t,e){var r=t.__transition,n,i,a=!0,s;if(r){e=e==null?null:e+"";for(s in r){if((n=r[s]).name!==e){a=!1;continue}i=n.state>Vp&&n.state<Yp,n.state=Vc,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete r[s]}a&&delete t.__transition}}function KO(t){return this.each(function(){QO(this,t)})}function ZO(t,e){var r,n;return function(){var i=En(this,t),a=i.tween;if(a!==r){n=r=a;for(var s=0,o=n.length;s<o;++s)if(n[s].name===e){n=n.slice(),n.splice(s,1);break}}i.tween=n}}function JO(t,e,r){var n,i;if(typeof r!="function")throw new Error;return function(){var a=En(this,t),s=a.tween;if(s!==n){i=(n=s).slice();for(var o={name:e,value:r},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=o;break}l===c&&i.push(o)}a.tween=i}}function tD(t,e){var r=this._id;if(t+="",arguments.length<2){for(var n=an(this.node(),r).tween,i=0,a=n.length,s;i<a;++i)if((s=n[i]).name===t)return s.value;return null}return this.each((e==null?ZO:JO)(r,t,e))}function Gm(t,e,r){var n=t._id;return t.each(function(){var i=En(this,n);(i.value||(i.value={}))[e]=r.apply(this,arguments)}),function(i){return an(i,n).value[e]}}function xS(t,e){var r;return(typeof e=="number"?gi:e instanceof vl?k1:(r=vl(e))?(e=r,k1):OO)(t,e)}function eD(t){return function(){this.removeAttribute(t)}}function rD(t){return function(){this.removeAttributeNS(t.space,t.local)}}function nD(t,e,r){var n,i=r+"",a;return function(){var s=this.getAttribute(t);return s===i?null:s===n?a:a=e(n=s,r)}}function iD(t,e,r){var n,i=r+"",a;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===n?a:a=e(n=s,r)}}function aD(t,e,r){var n,i,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=o+"",s===l?null:s===n&&l===i?a:(i=l,a=e(n=s,o)))}}function sD(t,e,r){var n,i,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=o+"",s===l?null:s===n&&l===i?a:(i=l,a=e(n=s,o)))}}function oD(t,e){var r=Rh(t),n=r==="transform"?HO:xS;return this.attrTween(t,typeof e=="function"?(r.local?sD:aD)(r,n,Gm(this,"attr."+t,e)):e==null?(r.local?rD:eD)(r):(r.local?iD:nD)(r,n,e))}function lD(t,e){return function(r){this.setAttribute(t,e.call(this,r))}}function cD(t,e){return function(r){this.setAttributeNS(t.space,t.local,e.call(this,r))}}function uD(t,e){var r,n;function i(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&cD(t,a)),r}return i._value=e,i}function hD(t,e){var r,n;function i(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&lD(t,a)),r}return i._value=e,i}function dD(t,e){var r="attr."+t;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;var n=Rh(t);return this.tween(r,(n.local?uD:hD)(n,e))}function fD(t,e){return function(){Ym(this,t).delay=+e.apply(this,arguments)}}function pD(t,e){return e=+e,function(){Ym(this,t).delay=e}}function gD(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?fD:pD)(e,t)):an(this.node(),e).delay}function mD(t,e){return function(){En(this,t).duration=+e.apply(this,arguments)}}function yD(t,e){return e=+e,function(){En(this,t).duration=e}}function xD(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?mD:yD)(e,t)):an(this.node(),e).duration}function vD(t,e){if(typeof e!="function")throw new Error;return function(){En(this,t).ease=e}}function bD(t){var e=this._id;return arguments.length?this.each(vD(e,t)):an(this.node(),e).ease}function wD(t,e){return function(){var r=e.apply(this,arguments);if(typeof r!="function")throw new Error;En(this,t).ease=r}}function kD(t){if(typeof t!="function")throw new Error;return this.each(wD(this._id,t))}function CD(t){typeof t!="function"&&(t=ZC(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i<r;++i)for(var a=e[i],s=a.length,o=n[i]=[],l,c=0;c<s;++c)(l=a[c])&&t.call(l,l.__data__,c,a)&&o.push(l);return new ti(n,this._parents,this._name,this._id)}function SD(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,r=t._groups,n=e.length,i=r.length,a=Math.min(n,i),s=new Array(n),o=0;o<a;++o)for(var l=e[o],c=r[o],u=l.length,h=s[o]=new Array(u),f,d=0;d<u;++d)(f=l[d]||c[d])&&(h[d]=f);for(;o<n;++o)s[o]=e[o];return new ti(s,this._parents,this._name,this._id)}function _D(t){return(t+"").trim().split(/^|\s+/).every(function(e){var r=e.indexOf(".");return r>=0&&(e=e.slice(0,r)),!e||e==="start"})}function TD(t,e,r){var n,i,a=_D(e)?Ym:En;return function(){var s=a(this,t),o=s.on;o!==n&&(i=(n=o).copy()).on(e,r),s.on=i}}function ED(t,e){var r=this._id;return arguments.length<2?an(this.node(),r).on.on(t):this.each(TD(r,t,e))}function LD(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function MD(){return this.on("end.remove",LD(this._id))}function AD(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Hm(t));for(var n=this._groups,i=n.length,a=new Array(i),s=0;s<i;++s)for(var o=n[s],l=o.length,c=a[s]=new Array(l),u,h,f=0;f<l;++f)(u=o[f])&&(h=t.call(u,u.__data__,f,o))&&("__data__"in u&&(h.__data__=u.__data__),c[f]=h,Dh(c[f],e,r,f,c,an(u,r)));return new ti(a,this._parents,e,r)}function BD(t){var e=this._name,r=this._id;typeof t!="function"&&(t=KC(t));for(var n=this._groups,i=n.length,a=[],s=[],o=0;o<i;++o)for(var l=n[o],c=l.length,u,h=0;h<c;++h)if(u=l[h]){for(var f=t.call(u,u.__data__,h,l),d,p=an(u,r),g=0,v=f.length;g<v;++g)(d=f[g])&&Dh(d,e,r,g,f,p);a.push(f),s.push(u)}return new ti(a,s,e,r)}var ND=Il.prototype.constructor;function $D(){return new ND(this._groups,this._parents)}function FD(t,e){var r,n,i;return function(){var a=As(this,t),s=(this.style.removeProperty(t),As(this,t));return a===s?null:a===r&&s===n?i:i=e(r=a,n=s)}}function vS(t){return function(){this.style.removeProperty(t)}}function PD(t,e,r){var n,i=r+"",a;return function(){var s=As(this,t);return s===i?null:s===n?a:a=e(n=s,r)}}function ID(t,e,r){var n,i,a;return function(){var s=As(this,t),o=r(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(t),As(this,t))),s===l?null:s===n&&l===i?a:(i=l,a=e(n=s,o))}}function RD(t,e){var r,n,i,a="style."+e,s="end."+a,o;return function(){var l=En(this,t),c=l.on,u=l.value[a]==null?o||(o=vS(e)):void 0;(c!==r||i!==u)&&(n=(r=c).copy()).on(s,i=u),l.on=n}}function OD(t,e,r){var n=(t+="")=="transform"?jO:xS;return e==null?this.styleTween(t,FD(t,n)).on("end.style."+t,vS(t)):typeof e=="function"?this.styleTween(t,ID(t,n,Gm(this,"style."+t,e))).each(RD(this._id,t)):this.styleTween(t,PD(t,n,e),r).on("end.style."+t,null)}function DD(t,e,r){return function(n){this.style.setProperty(t,e.call(this,n),r)}}function zD(t,e,r){var n,i;function a(){var s=e.apply(this,arguments);return s!==i&&(n=(i=s)&&DD(t,s,r)),n}return a._value=e,a}function jD(t,e,r){var n="style."+(t+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;return this.tween(n,zD(t,e,r??""))}function HD(t){return function(){this.textContent=t}}function WD(t){return function(){var e=t(this);this.textContent=e??""}}function qD(t){return this.tween("text",typeof t=="function"?WD(Gm(this,"text",t)):HD(t==null?"":t+""))}function UD(t){return function(e){this.textContent=t.call(this,e)}}function VD(t){var e,r;function n(){var i=t.apply(this,arguments);return i!==r&&(e=(r=i)&&UD(i)),e}return n._value=t,n}function YD(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,VD(t))}function GD(){for(var t=this._name,e=this._id,r=bS(),n=this._groups,i=n.length,a=0;a<i;++a)for(var s=n[a],o=s.length,l,c=0;c<o;++c)if(l=s[c]){var u=an(l,e);Dh(l,t,r,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new ti(n,this._parents,t,r)}function XD(){var t,e,r=this,n=r._id,i=r.size();return new Promise(function(a,s){var o={value:s},l={value:function(){--i===0&&a()}};r.each(function(){var c=En(this,n),u=c.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(o),e._.interrupt.push(o),e._.end.push(l)),c.on=e}),i===0&&a()})}var QD=0;function ti(t,e,r,n){this._groups=t,this._parents=e,this._name=r,this._id=n}function bS(){return++QD}var Rn=Il.prototype;ti.prototype={constructor:ti,select:AD,selectAll:BD,selectChild:Rn.selectChild,selectChildren:Rn.selectChildren,filter:CD,merge:SD,selection:$D,transition:GD,call:Rn.call,nodes:Rn.nodes,node:Rn.node,size:Rn.size,empty:Rn.empty,each:Rn.each,on:ED,attr:oD,attrTween:dD,style:OD,styleTween:jD,text:qD,textTween:YD,remove:MD,tween:tD,delay:gD,duration:xD,ease:bD,easeVarying:kD,end:XD,[Symbol.iterator]:Rn[Symbol.iterator]};function KD(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var ZD={time:null,delay:0,duration:250,ease:KD};function JD(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function t6(t){var e,r;t instanceof ti?(e=t._id,t=t._name):(e=bS(),(r=ZD).time=Vm(),t=t==null?null:t+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var s=n[a],o=s.length,l,c=0;c<o;++c)(l=s[c])&&Dh(l,t,e,c,s,r||JD(l,e));return new ti(n,this._parents,t,e)}Il.prototype.interrupt=KO;Il.prototype.transition=t6;const Gp=Math.PI,Xp=2*Gp,Yi=1e-6,e6=Xp-Yi;function wS(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}function r6(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return wS;const r=10**e;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class n6{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?wS:r6(e)}moveTo(e,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,r){this._append`L${this._x1=+e},${this._y1=+r}`}quadraticCurveTo(e,r,n,i){this._append`Q${+e},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(e,r,n,i,a,s){this._append`C${+e},${+r},${+n},${+i},${this._x1=+a},${this._y1=+s}`}arcTo(e,r,n,i,a){if(e=+e,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,o=this._y1,l=n-e,c=i-r,u=s-e,h=o-r,f=u*u+h*h;if(this._x1===null)this._append`M${this._x1=e},${this._y1=r}`;else if(f>Yi)if(!(Math.abs(h*l-c*u)>Yi)||!a)this._append`L${this._x1=e},${this._y1=r}`;else{let d=n-s,p=i-o,g=l*l+c*c,v=d*d+p*p,m=Math.sqrt(g),y=Math.sqrt(f),b=a*Math.tan((Gp-Math.acos((g+f-v)/(2*m*y)))/2),S=b/y,_=b/m;Math.abs(S-1)>Yi&&this._append`L${e+S*u},${r+S*h}`,this._append`A${a},${a},0,0,${+(h*d>u*p)},${this._x1=e+_*l},${this._y1=r+_*c}`}}arc(e,r,n,i,a,s){if(e=+e,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(i),l=n*Math.sin(i),c=e+o,u=r+l,h=1^s,f=s?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Yi||Math.abs(this._y1-u)>Yi)&&this._append`L${c},${u}`,n&&(f<0&&(f=f%Xp+Xp),f>e6?this._append`A${n},${n},0,1,${h},${e-o},${r-l}A${n},${n},0,1,${h},${this._x1=c},${this._y1=u}`:f>Yi&&this._append`A${n},${n},0,${+(f>=Gp)},${h},${this._x1=e+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(e,r,n,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function $a(t){return function(){return t}}const aU=Math.abs,sU=Math.atan2,oU=Math.cos,lU=Math.max,cU=Math.min,uU=Math.sin,hU=Math.sqrt,L1=1e-12,Xm=Math.PI,M1=Xm/2,dU=2*Xm;function fU(t){return t>1?0:t<-1?Xm:Math.acos(t)}function pU(t){return t>=1?M1:t<=-1?-M1:Math.asin(t)}function i6(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new n6(e)}function a6(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function kS(t){this._context=t}kS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Uu(t){return new kS(t)}function s6(t){return t[0]}function o6(t){return t[1]}function l6(t,e){var r=$a(!0),n=null,i=Uu,a=null,s=i6(o);t=typeof t=="function"?t:t===void 0?s6:$a(t),e=typeof e=="function"?e:e===void 0?o6:$a(e);function o(l){var c,u=(l=a6(l)).length,h,f=!1,d;for(n==null&&(a=i(d=s())),c=0;c<=u;++c)!(c<u&&r(h=l[c],c,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+t(h,c,l),+e(h,c,l));if(d)return a=null,d+""||null}return o.x=function(l){return arguments.length?(t=typeof l=="function"?l:$a(+l),o):t},o.y=function(l){return arguments.length?(e=typeof l=="function"?l:$a(+l),o):e},o.defined=function(l){return arguments.length?(r=typeof l=="function"?l:$a(!!l),o):r},o.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),o):i},o.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),o):n},o}class CS{constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}}function SS(t){return new CS(t,!0)}function _S(t){return new CS(t,!1)}function $i(){}function Vu(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function zh(t){this._context=t}zh.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:Vu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Vu(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Yc(t){return new zh(t)}function TS(t){this._context=t}TS.prototype={areaStart:$i,areaEnd:$i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Vu(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function c6(t){return new TS(t)}function ES(t){this._context=t}ES.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Vu(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function u6(t){return new ES(t)}function LS(t,e){this._basis=new zh(t),this._beta=e}LS.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var n=t[0],i=e[0],a=t[r]-n,s=e[r]-i,o=-1,l;++o<=r;)l=o/r,this._basis.point(this._beta*t[o]+(1-this._beta)*(n+l*a),this._beta*e[o]+(1-this._beta)*(i+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const h6=function t(e){function r(n){return e===1?new zh(n):new LS(n,e)}return r.beta=function(n){return t(+n)},r}(.85);function Yu(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function Qm(t,e){this._context=t,this._k=(1-e)/6}Qm.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:Yu(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Yu(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const MS=function t(e){function r(n){return new Qm(n,e)}return r.tension=function(n){return t(+n)},r}(0);function Km(t,e){this._context=t,this._k=(1-e)/6}Km.prototype={areaStart:$i,areaEnd:$i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Yu(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const d6=function t(e){function r(n){return new Km(n,e)}return r.tension=function(n){return t(+n)},r}(0);function Zm(t,e){this._context=t,this._k=(1-e)/6}Zm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Yu(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const f6=function t(e){function r(n){return new Zm(n,e)}return r.tension=function(n){return t(+n)},r}(0);function Jm(t,e,r){var n=t._x1,i=t._y1,a=t._x2,s=t._y2;if(t._l01_a>L1){var o=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*o-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*o-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>L1){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,s=(s*c+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(n,i,a,s,t._x2,t._y2)}function AS(t,e){this._context=t,this._alpha=e}AS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Jm(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const BS=function t(e){function r(n){return e?new AS(n,e):new Qm(n,0)}return r.alpha=function(n){return t(+n)},r}(.5);function NS(t,e){this._context=t,this._alpha=e}NS.prototype={areaStart:$i,areaEnd:$i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Jm(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const p6=function t(e){function r(n){return e?new NS(n,e):new Km(n,0)}return r.alpha=function(n){return t(+n)},r}(.5);function $S(t,e){this._context=t,this._alpha=e}$S.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Jm(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const g6=function t(e){function r(n){return e?new $S(n,e):new Zm(n,0)}return r.alpha=function(n){return t(+n)},r}(.5);function FS(t){this._context=t}FS.prototype={areaStart:$i,areaEnd:$i,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function m6(t){return new FS(t)}function A1(t){return t<0?-1:1}function B1(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i<0&&-0),s=(r-t._y1)/(i||n<0&&-0),o=(a*i+s*n)/(n+i);return(A1(a)+A1(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(o))||0}function N1(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Jd(t,e,r){var n=t._x0,i=t._y0,a=t._x1,s=t._y1,o=(a-n)/3;t._context.bezierCurveTo(n+o,i+o*e,a-o,s-o*r,a,s)}function Gu(t){this._context=t}Gu.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:Jd(this,this._t0,N1(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Jd(this,N1(this,r=B1(this,t,e)),r);break;default:Jd(this,this._t0,r=B1(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}};function PS(t){this._context=new IS(t)}(PS.prototype=Object.create(Gu.prototype)).point=function(t,e){Gu.prototype.point.call(this,e,t)};function IS(t){this._context=t}IS.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}};function RS(t){return new Gu(t)}function OS(t){return new PS(t)}function DS(t){this._context=t}DS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var n=$1(t),i=$1(e),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[s],e[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function $1(t){var e,r=t.length-1,n,i=new Array(r),a=new Array(r),s=new Array(r);for(i[0]=0,a[0]=2,s[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,a[e]=4,s[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,a[r-1]=7,s[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/a[e-1],a[e]-=n,s[e]-=n*s[e-1];for(i[r-1]=s[r-1]/a[r-1],e=r-2;e>=0;--e)i[e]=(s[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function zS(t){return new DS(t)}function jh(t,e){this._context=t,this._t=e}jh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e}};function jS(t){return new jh(t,.5)}function HS(t){return new jh(t,0)}function WS(t){return new jh(t,1)}function To(t,e,r){this.k=t,this.x=e,this.y=r}To.prototype={constructor:To,scale:function(t){return t===1?this:new To(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new To(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};To.prototype;var qS=typeof global=="object"&&global&&global.Object===Object&&global,y6=typeof self=="object"&&self&&self.Object===Object&&self,Ln=qS||y6||Function("return this")(),Xu=Ln.Symbol,US=Object.prototype,x6=US.hasOwnProperty,v6=US.toString,ho=Xu?Xu.toStringTag:void 0;function b6(t){var e=x6.call(t,ho),r=t[ho];try{t[ho]=void 0;var n=!0}catch{}var i=v6.call(t);return n&&(e?t[ho]=r:delete t[ho]),i}var w6=Object.prototype,k6=w6.toString;function C6(t){return k6.call(t)}var S6="[object Null]",_6="[object Undefined]",F1=Xu?Xu.toStringTag:void 0;function Hs(t){return t==null?t===void 0?_6:S6:F1&&F1 in Object(t)?b6(t):C6(t)}function Sa(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var T6="[object AsyncFunction]",E6="[object Function]",L6="[object GeneratorFunction]",M6="[object Proxy]";function ty(t){if(!Sa(t))return!1;var e=Hs(t);return e==E6||e==L6||e==T6||e==M6}var tf=Ln["__core-js_shared__"],P1=function(){var t=/[^.]+$/.exec(tf&&tf.keys&&tf.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function A6(t){return!!P1&&P1 in t}var B6=Function.prototype,N6=B6.toString;function _a(t){if(t!=null){try{return N6.call(t)}catch{}try{return t+""}catch{}}return""}var $6=/[\\^$.*+?()[\]{}|]/g,F6=/^\[object .+?Constructor\]$/,P6=Function.prototype,I6=Object.prototype,R6=P6.toString,O6=I6.hasOwnProperty,D6=RegExp("^"+R6.call(O6).replace($6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function z6(t){if(!Sa(t)||A6(t))return!1;var e=ty(t)?D6:F6;return e.test(_a(t))}function j6(t,e){return t==null?void 0:t[e]}function Ta(t,e){var r=j6(t,e);return z6(r)?r:void 0}var wl=Ta(Object,"create");function H6(){this.__data__=wl?wl(null):{},this.size=0}function W6(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var q6="__lodash_hash_undefined__",U6=Object.prototype,V6=U6.hasOwnProperty;function Y6(t){var e=this.__data__;if(wl){var r=e[t];return r===q6?void 0:r}return V6.call(e,t)?e[t]:void 0}var G6=Object.prototype,X6=G6.hasOwnProperty;function Q6(t){var e=this.__data__;return wl?e[t]!==void 0:X6.call(e,t)}var K6="__lodash_hash_undefined__";function Z6(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=wl&&e===void 0?K6:e,this}function xa(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}xa.prototype.clear=H6;xa.prototype.delete=W6;xa.prototype.get=Y6;xa.prototype.has=Q6;xa.prototype.set=Z6;function J6(){this.__data__=[],this.size=0}function Hh(t,e){return t===e||t!==t&&e!==e}function Wh(t,e){for(var r=t.length;r--;)if(Hh(t[r][0],e))return r;return-1}var tz=Array.prototype,ez=tz.splice;function rz(t){var e=this.__data__,r=Wh(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():ez.call(e,r,1),--this.size,!0}function nz(t){var e=this.__data__,r=Wh(e,t);return r<0?void 0:e[r][1]}function iz(t){return Wh(this.__data__,t)>-1}function az(t,e){var r=this.__data__,n=Wh(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}function ni(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ni.prototype.clear=J6;ni.prototype.delete=rz;ni.prototype.get=nz;ni.prototype.has=iz;ni.prototype.set=az;var kl=Ta(Ln,"Map");function sz(){this.size=0,this.__data__={hash:new xa,map:new(kl||ni),string:new xa}}function oz(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function qh(t,e){var r=t.__data__;return oz(e)?r[typeof e=="string"?"string":"hash"]:r.map}function lz(t){var e=qh(this,t).delete(t);return this.size-=e?1:0,e}function cz(t){return qh(this,t).get(t)}function uz(t){return qh(this,t).has(t)}function hz(t,e){var r=qh(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}function zi(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}zi.prototype.clear=sz;zi.prototype.delete=lz;zi.prototype.get=cz;zi.prototype.has=uz;zi.prototype.set=hz;var dz="Expected a function";function Ol(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(dz);var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var s=t.apply(this,n);return r.cache=a.set(i,s)||a,s};return r.cache=new(Ol.Cache||zi),r}Ol.Cache=zi;function fz(){this.__data__=new ni,this.size=0}function pz(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}function gz(t){return this.__data__.get(t)}function mz(t){return this.__data__.has(t)}var yz=200;function xz(t,e){var r=this.__data__;if(r instanceof ni){var n=r.__data__;if(!kl||n.length<yz-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new zi(n)}return r.set(t,e),this.size=r.size,this}function Ws(t){var e=this.__data__=new ni(t);this.size=e.size}Ws.prototype.clear=fz;Ws.prototype.delete=pz;Ws.prototype.get=gz;Ws.prototype.has=mz;Ws.prototype.set=xz;var Qu=function(){try{var t=Ta(Object,"defineProperty");return t({},"",{}),t}catch{}}();function ey(t,e,r){e=="__proto__"&&Qu?Qu(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function Qp(t,e,r){(r!==void 0&&!Hh(t[e],r)||r===void 0&&!(e in t))&&ey(t,e,r)}function vz(t){return function(e,r,n){for(var i=-1,a=Object(e),s=n(e),o=s.length;o--;){var l=s[++i];if(r(a[l],l,a)===!1)break}return e}}var bz=vz(),VS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,I1=VS&&typeof module=="object"&&module&&!module.nodeType&&module,wz=I1&&I1.exports===VS,R1=wz?Ln.Buffer:void 0,O1=R1?R1.allocUnsafe:void 0;function kz(t,e){if(e)return t.slice();var r=t.length,n=O1?O1(r):new t.constructor(r);return t.copy(n),n}var D1=Ln.Uint8Array;function Cz(t){var e=new t.constructor(t.byteLength);return new D1(e).set(new D1(t)),e}function Sz(t,e){var r=e?Cz(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function _z(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var z1=Object.create,Tz=function(){function t(){}return function(e){if(!Sa(e))return{};if(z1)return z1(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function YS(t,e){return function(r){return t(e(r))}}var GS=YS(Object.getPrototypeOf,Object),Ez=Object.prototype;function Uh(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Ez;return t===r}function Lz(t){return typeof t.constructor=="function"&&!Uh(t)?Tz(GS(t)):{}}function Dl(t){return t!=null&&typeof t=="object"}var Mz="[object Arguments]";function j1(t){return Dl(t)&&Hs(t)==Mz}var XS=Object.prototype,Az=XS.hasOwnProperty,Bz=XS.propertyIsEnumerable,Ku=j1(function(){return arguments}())?j1:function(t){return Dl(t)&&Az.call(t,"callee")&&!Bz.call(t,"callee")},Zu=Array.isArray,Nz=9007199254740991;function QS(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Nz}function Vh(t){return t!=null&&QS(t.length)&&!ty(t)}function $z(t){return Dl(t)&&Vh(t)}function Fz(){return!1}var KS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,H1=KS&&typeof module=="object"&&module&&!module.nodeType&&module,Pz=H1&&H1.exports===KS,W1=Pz?Ln.Buffer:void 0,Iz=W1?W1.isBuffer:void 0,ry=Iz||Fz,Rz="[object Object]",Oz=Function.prototype,Dz=Object.prototype,ZS=Oz.toString,zz=Dz.hasOwnProperty,jz=ZS.call(Object);function Hz(t){if(!Dl(t)||Hs(t)!=Rz)return!1;var e=GS(t);if(e===null)return!0;var r=zz.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&ZS.call(r)==jz}var Wz="[object Arguments]",qz="[object Array]",Uz="[object Boolean]",Vz="[object Date]",Yz="[object Error]",Gz="[object Function]",Xz="[object Map]",Qz="[object Number]",Kz="[object Object]",Zz="[object RegExp]",Jz="[object Set]",t8="[object String]",e8="[object WeakMap]",r8="[object ArrayBuffer]",n8="[object DataView]",i8="[object Float32Array]",a8="[object Float64Array]",s8="[object Int8Array]",o8="[object Int16Array]",l8="[object Int32Array]",c8="[object Uint8Array]",u8="[object Uint8ClampedArray]",h8="[object Uint16Array]",d8="[object Uint32Array]",Xt={};Xt[i8]=Xt[a8]=Xt[s8]=Xt[o8]=Xt[l8]=Xt[c8]=Xt[u8]=Xt[h8]=Xt[d8]=!0;Xt[Wz]=Xt[qz]=Xt[r8]=Xt[Uz]=Xt[n8]=Xt[Vz]=Xt[Yz]=Xt[Gz]=Xt[Xz]=Xt[Qz]=Xt[Kz]=Xt[Zz]=Xt[Jz]=Xt[t8]=Xt[e8]=!1;function f8(t){return Dl(t)&&QS(t.length)&&!!Xt[Hs(t)]}function p8(t){return function(e){return t(e)}}var JS=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Uo=JS&&typeof module=="object"&&module&&!module.nodeType&&module,g8=Uo&&Uo.exports===JS,ef=g8&&qS.process,q1=function(){try{var t=Uo&&Uo.require&&Uo.require("util").types;return t||ef&&ef.binding&&ef.binding("util")}catch{}}(),U1=q1&&q1.isTypedArray,ny=U1?p8(U1):f8;function Kp(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var m8=Object.prototype,y8=m8.hasOwnProperty;function x8(t,e,r){var n=t[e];(!(y8.call(t,e)&&Hh(n,r))||r===void 0&&!(e in t))&&ey(t,e,r)}function v8(t,e,r,n){var i=!r;r||(r={});for(var a=-1,s=e.length;++a<s;){var o=e[a],l=void 0;l===void 0&&(l=t[o]),i?ey(r,o,l):x8(r,o,l)}return r}function b8(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var w8=9007199254740991,k8=/^(?:0|[1-9]\d*)$/;function t_(t,e){var r=typeof t;return e=e??w8,!!e&&(r=="number"||r!="symbol"&&k8.test(t))&&t>-1&&t%1==0&&t<e}var C8=Object.prototype,S8=C8.hasOwnProperty;function _8(t,e){var r=Zu(t),n=!r&&Ku(t),i=!r&&!n&&ry(t),a=!r&&!n&&!i&&ny(t),s=r||n||i||a,o=s?b8(t.length,String):[],l=o.length;for(var c in t)(e||S8.call(t,c))&&!(s&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||t_(c,l)))&&o.push(c);return o}function T8(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var E8=Object.prototype,L8=E8.hasOwnProperty;function M8(t){if(!Sa(t))return T8(t);var e=Uh(t),r=[];for(var n in t)n=="constructor"&&(e||!L8.call(t,n))||r.push(n);return r}function e_(t){return Vh(t)?_8(t,!0):M8(t)}function A8(t){return v8(t,e_(t))}function B8(t,e,r,n,i,a,s){var o=Kp(t,r),l=Kp(e,r),c=s.get(l);if(c){Qp(t,r,c);return}var u=a?a(o,l,r+"",t,e,s):void 0,h=u===void 0;if(h){var f=Zu(l),d=!f&&ry(l),p=!f&&!d&&ny(l);u=l,f||d||p?Zu(o)?u=o:$z(o)?u=_z(o):d?(h=!1,u=kz(l,!0)):p?(h=!1,u=Sz(l,!0)):u=[]:Hz(l)||Ku(l)?(u=o,Ku(o)?u=A8(o):(!Sa(o)||ty(o))&&(u=Lz(l))):h=!1}h&&(s.set(l,u),i(u,l,n,a,s),s.delete(l)),Qp(t,r,u)}function r_(t,e,r,n,i){t!==e&&bz(e,function(a,s){if(i||(i=new Ws),Sa(a))B8(t,e,s,r,r_,n,i);else{var o=n?n(Kp(t,s),a,s+"",t,e,i):void 0;o===void 0&&(o=a),Qp(t,s,o)}},e_)}function n_(t){return t}function N8(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var V1=Math.max;function $8(t,e,r){return e=V1(e===void 0?t.length-1:e,0),function(){for(var n=arguments,i=-1,a=V1(n.length-e,0),s=Array(a);++i<a;)s[i]=n[e+i];i=-1;for(var o=Array(e+1);++i<e;)o[i]=n[i];return o[e]=r(s),N8(t,this,o)}}function F8(t){return function(){return t}}var P8=Qu?function(t,e){return Qu(t,"toString",{configurable:!0,enumerable:!1,value:F8(e),writable:!0})}:n_,I8=800,R8=16,O8=Date.now;function D8(t){var e=0,r=0;return function(){var n=O8(),i=R8-(n-r);if(r=n,i>0){if(++e>=I8)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var z8=D8(P8);function j8(t,e){return z8($8(t,e,n_),t+"")}function H8(t,e,r){if(!Sa(r))return!1;var n=typeof e;return(n=="number"?Vh(r)&&t_(e,r.length):n=="string"&&e in r)?Hh(r[e],t):!1}function W8(t){return j8(function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,s&&H8(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var o=r[n];o&&t(e,o,n,a)}return e})}var q8=W8(function(t,e,r){r_(t,e,r)}),U8="",V8={curveBasis:Yc,curveBasisClosed:c6,curveBasisOpen:u6,curveBumpX:SS,curveBumpY:_S,curveBundle:h6,curveCardinalClosed:d6,curveCardinalOpen:f6,curveCardinal:MS,curveCatmullRomClosed:p6,curveCatmullRomOpen:g6,curveCatmullRom:BS,curveLinear:Uu,curveLinearClosed:m6,curveMonotoneX:RS,curveMonotoneY:OS,curveNatural:zS,curveStep:jS,curveStepAfter:WS,curveStepBefore:HS},Y8=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,G8=x(function(t,e){const r=i_(t,/(?:init\b)|(?:initialize\b)/);let n={};if(Array.isArray(r)){const s=r.map(o=>o.args);Mu(s),n=_e(n,[...s])}else n=r.args;if(!n)return;let i=Em(t,e);const a="config";return n[a]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[a],delete n[a]),n},"detectInit"),i_=x(function(t,e=null){var r,n;try{const i=new RegExp(`[%]{2}(?![{]${Y8.source})(?=[}][%]{2}).*
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),q.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let a;const s=[];for(;(a=Wo.exec(t))!==null;)if(a.index===Wo.lastIndex&&Wo.lastIndex++,a&&!e||e&&((r=a[1])!=null&&r.match(e))||e&&((n=a[2])!=null&&n.match(e))){const o=a[1]?a[1]:a[2],l=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;s.push({type:o,args:l})}return s.length===0?{type:t,args:null}:s.length===1?s[0]:s}catch(i){return q.error(`ERROR: ${i.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),X8=x(function(t){return t.replace(Wo,"")},"removeDirectives"),Q8=x(function(t,e){for(const[r,n]of e.entries())if(n.match(t))return r;return-1},"isSubstringInArray");function iy(t,e){if(!t)return e;const r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return V8[r]??e}x(iy,"interpolateToCurve");function a_(t,e){const r=t.trim();if(r)return e.securityLevel!=="loose"?GC(r):r}x(a_,"formatUrl");var K8=x((t,...e)=>{const r=t.split("."),n=r.length-1,i=r[n];let a=window;for(let s=0;s<n;s++)if(a=a[r[s]],!a){q.error(`Function name: ${t} not found in window`);return}a[i](...e)},"runFunc");function ay(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}x(ay,"distance");function s_(t){let e,r=0;t.forEach(i=>{r+=ay(i,e),e=i});const n=r/2;return sy(t,n)}x(s_,"traverseEdge");function o_(t){return t.length===1?t[0]:s_(t)}x(o_,"calcLabelPosition");var Y1=x((t,e=2)=>{const r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),sy=x((t,e)=>{let r,n=e;for(const i of t){if(r){const a=ay(i,r);if(a===0)return r;if(a<n)n-=a;else{const s=n/a;if(s<=0)return r;if(s>=1)return{x:i.x,y:i.y};if(s>0&&s<1)return{x:Y1((1-s)*r.x+s*i.x,5),y:Y1((1-s)*r.y+s*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),Z8=x((t,e,r)=>{q.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());const i=sy(e,25),a=t?10:5,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),o={x:0,y:0};return o.x=Math.sin(s)*a+(e[0].x+i.x)/2,o.y=-Math.cos(s)*a+(e[0].y+i.y)/2,o},"calcCardinalityPosition");function l_(t,e,r){const n=structuredClone(r);q.info("our points",n),e!=="start_left"&&e!=="start_right"&&n.reverse();const i=25+t,a=sy(n,i),s=10+t*.5,o=Math.atan2(n[0].y-a.y,n[0].x-a.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(o+Math.PI)*s+(n[0].x+a.x)/2,l.y=-Math.cos(o+Math.PI)*s+(n[0].y+a.y)/2):e==="end_right"?(l.x=Math.sin(o-Math.PI)*s+(n[0].x+a.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(n[0].y+a.y)/2-5):e==="end_left"?(l.x=Math.sin(o)*s+(n[0].x+a.x)/2-5,l.y=-Math.cos(o)*s+(n[0].y+a.y)/2-5):(l.x=Math.sin(o)*s+(n[0].x+a.x)/2,l.y=-Math.cos(o)*s+(n[0].y+a.y)/2),l}x(l_,"calcTerminalLabelPosition");function c_(t){let e="",r="";for(const n of t)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}x(c_,"getStylesFromArray");var G1=0,J8=x(()=>(G1++,"id-"+Math.random().toString(36).substr(2,12)+"-"+G1),"generateId");function u_(t){let e="";const r="0123456789abcdef",n=r.length;for(let i=0;i<t;i++)e+=r.charAt(Math.floor(Math.random()*n));return e}x(u_,"makeRandomHex");var tj=x(t=>u_(t.length),"random"),ej=x(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"),rj=x(function(t,e){const r=e.text.replace(zs.lineBreakRegex," "),[,n]=Yh(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",n),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),e.class!==void 0&&i.attr("class",e.class);const a=i.append("tspan");return a.attr("x",e.x+e.textMargin*2),a.attr("fill",e.fill),a.text(r),i},"drawSimpleText"),nj=Ol((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),zs.lineBreakRegex.test(t)))return t;const n=t.split(" ").filter(Boolean),i=[];let a="";return n.forEach((s,o)=>{const l=ei(`${s} `,r),c=ei(a,r);if(l>e){const{hyphenatedStrings:f,remainingWord:d}=ij(s,e,"-",r);i.push(a,...f),a=d}else c+l>=e?(i.push(a),a=s):a=[a,s].filter(Boolean).join(" ");o+1===n.length&&i.push(a)}),i.filter(s=>s!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),ij=Ol((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);const i=[...t],a=[];let s="";return i.forEach((o,l)=>{const c=`${s}${o}`;if(ei(c,n)>=e){const h=l+1,f=i.length===h,d=`${c}${r}`;a.push(f?c:d),s=""}else s=c}),{hyphenatedStrings:a,remainingWord:s}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function h_(t,e){return oy(t,e).height}x(h_,"calculateTextHeight");function ei(t,e){return oy(t,e).width}x(ei,"calculateTextWidth");var oy=Ol((t,e)=>{const{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};const[,a]=Yh(r),s=["sans-serif",n],o=t.split(zs.lineBreakRegex),l=[],c=Bt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const u=c.append("svg");for(const f of s){let d=0;const p={width:0,height:0,lineHeight:0};for(const g of o){const v=ej();v.text=g||U8;const m=rj(u,v).style("font-size",a).style("font-weight",i).style("font-family",f),y=(m._groups||m)[0][0].getBBox();if(y.width===0&&y.height===0)throw new Error("svg element not in render tree");p.width=Math.round(Math.max(p.width,y.width)),d=Math.round(y.height),p.height+=d,p.lineHeight=Math.round(Math.max(p.lineHeight,d))}l.push(p)}u.remove();const h=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[h]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),ms,aj=(ms=class{constructor(e=!1,r){this.count=0,this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}},x(ms,"InitIDGenerator"),ms),xc,sj=x(function(t){return xc=xc||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),xc.innerHTML=t,unescape(xc.textContent)},"entityDecode");function ly(t){return"str"in t}x(ly,"isDetailedError");var oj=x((t,e,r,n)=>{var a;if(!n)return;const i=(a=t.node())==null?void 0:a.getBBox();i&&t.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)},"insertTitle"),Yh=x(t=>{if(typeof t=="number")return[t,t+"px"];const e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function cy(t,e){return q8({},t,e)}x(cy,"cleanAndMerge");var bn={assignWithDepth:_e,wrapLabel:nj,calculateTextHeight:h_,calculateTextWidth:ei,calculateTextDimensions:oy,cleanAndMerge:cy,detectInit:G8,detectDirective:i_,isSubstringInArray:Q8,interpolateToCurve:iy,calcLabelPosition:o_,calcCardinalityPosition:Z8,calcTerminalLabelPosition:l_,formatUrl:a_,getStylesFromArray:c_,generateId:J8,random:tj,runFunc:K8,entityDecode:sj,insertTitle:oj,parseFontSize:Yh,InitIDGenerator:aj},lj=x(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){const n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"fl°°"+n+"¶ß":"fl°"+n+"¶ß"}),e},"encodeEntities"),Ea=x(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),gU=x((t,e,{counter:r=0,prefix:n,suffix:i},a)=>a||`${n?`${n}_`:""}${t}_${e}_${r}${i?`_${i}`:""}`,"getEdgeId");function Ke(t){return t??null}x(Ke,"handleUndefinedAttr");const cj=Object.freeze({left:0,top:0,width:16,height:16}),Ju=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),d_=Object.freeze({...cj,...Ju}),uj=Object.freeze({...d_,body:"",hidden:!1}),hj=Object.freeze({width:null,height:null}),dj=Object.freeze({...hj,...Ju}),fj=(t,e,r,n="")=>{const i=t.split(":");if(t.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const o=i.pop(),l=i.pop(),c={provider:i.length>0?i[0]:n,prefix:l,name:o};return rf(c)?c:null}const a=i[0],s=a.split("-");if(s.length>1){const o={provider:n,prefix:s.shift(),name:s.join("-")};return rf(o)?o:null}if(r&&n===""){const o={provider:n,prefix:"",name:a};return rf(o,r)?o:null}return null},rf=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function pj(t,e){const r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);const n=((t.rotate||0)+(e.rotate||0))%4;return n&&(r.rotate=n),r}function X1(t,e){const r=pj(t,e);for(const n in uj)n in Ju?n in t&&!(n in r)&&(r[n]=Ju[n]):n in e?r[n]=e[n]:n in t&&(r[n]=t[n]);return r}function gj(t,e){const r=t.icons,n=t.aliases||Object.create(null),i=Object.create(null);function a(s){if(r[s])return i[s]=[];if(!(s in i)){i[s]=null;const o=n[s]&&n[s].parent,l=o&&a(o);l&&(i[s]=[o].concat(l))}return i[s]}return(e||Object.keys(r).concat(Object.keys(n))).forEach(a),i}function Q1(t,e,r){const n=t.icons,i=t.aliases||Object.create(null);let a={};function s(o){a=X1(n[o]||i[o],a)}return s(e),r.forEach(s),X1(t,a)}function mj(t,e){if(t.icons[e])return Q1(t,e,[]);const r=gj(t,[e])[e];return r?Q1(t,e,r):null}const yj=/(-?[0-9.]*[0-9]+[0-9.]*)/g,xj=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function K1(t,e,r){if(e===1)return t;if(r=r||100,typeof t=="number")return Math.ceil(t*e*r)/r;if(typeof t!="string")return t;const n=t.split(yj);if(n===null||!n.length)return t;const i=[];let a=n.shift(),s=xj.test(a);for(;;){if(s){const o=parseFloat(a);isNaN(o)?i.push(a):i.push(Math.ceil(o*e*r)/r)}else i.push(a);if(a=n.shift(),a===void 0)return i.join("");s=!s}}function vj(t,e="defs"){let r="";const n=t.indexOf("<"+e);for(;n>=0;){const i=t.indexOf(">",n),a=t.indexOf("</"+e);if(i===-1||a===-1)break;const s=t.indexOf(">",a);if(s===-1)break;r+=t.slice(i+1,a).trim(),t=t.slice(0,n).trim()+t.slice(s+1)}return{defs:r,content:t}}function bj(t,e){return t?"<defs>"+t+"</defs>"+e:e}function wj(t,e,r){const n=vj(t);return bj(n.defs,e+n.content+r)}const kj=t=>t==="unset"||t==="undefined"||t==="none";function Cj(t,e){const r={...d_,...t},n={...dj,...e},i={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,n].forEach(g=>{const v=[],m=g.hFlip,y=g.vFlip;let b=g.rotate;m?y?b+=2:(v.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),v.push("scale(-1 1)"),i.top=i.left=0):y&&(v.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),v.push("scale(1 -1)"),i.top=i.left=0);let S;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:S=i.height/2+i.top,v.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:v.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:S=i.width/2+i.left,v.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}b%2===1&&(i.left!==i.top&&(S=i.left,i.left=i.top,i.top=S),i.width!==i.height&&(S=i.width,i.width=i.height,i.height=S)),v.length&&(a=wj(a,'<g transform="'+v.join(" ")+'">',"</g>"))});const s=n.width,o=n.height,l=i.width,c=i.height;let u,h;s===null?(h=o===null?"1em":o==="auto"?c:o,u=K1(h,l/c)):(u=s==="auto"?l:s,h=o===null?K1(u,c/l):o==="auto"?c:o);const f={},d=(g,v)=>{kj(v)||(f[g]=v.toString())};d("width",u),d("height",h);const p=[i.left,i.top,l,c];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:a}}const Sj=/\sid="(\S+)"/g,_j="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Tj=0;function Ej(t,e=_j){const r=[];let n;for(;n=Sj.exec(t);)r.push(n[1]);if(!r.length)return t;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(a=>{const s=typeof e=="function"?e(a):e+(Tj++).toString(),o=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+o+')([")]|\\.[a-z])',"g"),"$1"+s+i+"$3")}),t=t.replace(new RegExp(i,"g"),""),t}function Lj(t,e){let r=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in e)r+=" "+n+'="'+e[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}function uy(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var La=uy();function f_(t){La=t}var Vo={exec:()=>null};function Ot(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(Xe.caret,"$1"),r=r.replace(i,s),n},getRegex:()=>new RegExp(r,e)};return n}var Xe={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:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},Mj=/^(?:[ \t]*(?:\n|$))+/,Aj=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Bj=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,zl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Nj=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hy=/(?:[*+-]|\d{1,9}[.)])/,p_=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,g_=Ot(p_).replace(/bull/g,hy).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(),$j=Ot(p_).replace(/bull/g,hy).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(),dy=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Fj=/^[^\n]+/,fy=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Pj=Ot(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",fy).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ij=Ot(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,hy).getRegex(),Gh="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",py=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Rj=Ot("^ {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",py).replace("tag",Gh).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),m_=Ot(dy).replace("hr",zl).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",Gh).getRegex(),Oj=Ot(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",m_).getRegex(),gy={blockquote:Oj,code:Aj,def:Pj,fences:Bj,heading:Nj,hr:zl,html:Rj,lheading:g_,list:Ij,newline:Mj,paragraph:m_,table:Vo,text:Fj},Z1=Ot("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",zl).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",Gh).getRegex(),Dj={...gy,lheading:$j,table:Z1,paragraph:Ot(dy).replace("hr",zl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Z1).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",Gh).getRegex()},zj={...gy,html:Ot(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",py).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:Vo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ot(dy).replace("hr",zl).replace("heading",` *#{1,6} *[^
]`).replace("lheading",g_).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},jj=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Hj=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,y_=/^( {2,}|\\)\n(?!\s*$)/,Wj=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Xh=/[\p{P}\p{S}]/u,my=/[\s\p{P}\p{S}]/u,x_=/[^\s\p{P}\p{S}]/u,qj=Ot(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,my).getRegex(),v_=/(?!~)[\p{P}\p{S}]/u,Uj=/(?!~)[\s\p{P}\p{S}]/u,Vj=/(?:[^\s\p{P}\p{S}]|~)/u,Yj=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,b_=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Gj=Ot(b_,"u").replace(/punct/g,Xh).getRegex(),Xj=Ot(b_,"u").replace(/punct/g,v_).getRegex(),w_="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Qj=Ot(w_,"gu").replace(/notPunctSpace/g,x_).replace(/punctSpace/g,my).replace(/punct/g,Xh).getRegex(),Kj=Ot(w_,"gu").replace(/notPunctSpace/g,Vj).replace(/punctSpace/g,Uj).replace(/punct/g,v_).getRegex(),Zj=Ot("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,x_).replace(/punctSpace/g,my).replace(/punct/g,Xh).getRegex(),Jj=Ot(/\\(punct)/,"gu").replace(/punct/g,Xh).getRegex(),t9=Ot(/^<(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(),e9=Ot(py).replace("(?:-->|$)","-->").getRegex(),r9=Ot("^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",e9).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),th=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,n9=Ot(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",th).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),k_=Ot(/^!?\[(label)\]\[(ref)\]/).replace("label",th).replace("ref",fy).getRegex(),C_=Ot(/^!?\[(ref)\](?:\[\])?/).replace("ref",fy).getRegex(),i9=Ot("reflink|nolink(?!\\()","g").replace("reflink",k_).replace("nolink",C_).getRegex(),yy={_backpedal:Vo,anyPunctuation:Jj,autolink:t9,blockSkip:Yj,br:y_,code:Hj,del:Vo,emStrongLDelim:Gj,emStrongRDelimAst:Qj,emStrongRDelimUnd:Zj,escape:jj,link:n9,nolink:C_,punctuation:qj,reflink:k_,reflinkSearch:i9,tag:r9,text:Wj,url:Vo},a9={...yy,link:Ot(/^!?\[(label)\]\((.*?)\)/).replace("label",th).getRegex(),reflink:Ot(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",th).getRegex()},Zp={...yy,emStrongRDelimAst:Kj,emStrongLDelim:Xj,url:Ot(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},s9={...Zp,br:Ot(y_).replace("{2,}","*").getRegex(),text:Ot(Zp.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},vc={normal:gy,gfm:Dj,pedantic:zj},fo={normal:yy,gfm:Zp,breaks:s9,pedantic:a9},o9={"&":"&","<":"<",">":">",'"':""","'":"'"},J1=t=>o9[t];function fn(t,e){if(e){if(Xe.escapeTest.test(t))return t.replace(Xe.escapeReplace,J1)}else if(Xe.escapeTestNoEncode.test(t))return t.replace(Xe.escapeReplaceNoEncode,J1);return t}function tv(t){try{t=encodeURI(t).replace(Xe.percentDecode,"%")}catch{return null}return t}function ev(t,e){var a;let r=t.replace(Xe.findPipe,(s,o,l)=>{let c=!1,u=o;for(;--u>=0&&l[u]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Xe.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!((a=n.at(-1))!=null&&a.trim())&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(Xe.slashPipe,"|");return n}function po(t,e,r){let n=t.length;if(n===0)return"";let i=0;for(;i<n&&t.charAt(n-i-1)===e;)i++;return t.slice(0,n-i)}function l9(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let n=0;n<t.length;n++)if(t[n]==="\\")n++;else if(t[n]===e[0])r++;else if(t[n]===e[1]&&(r--,r<0))return n;return r>0?-2:-1}function rv(t,e,r,n,i){let a=e.href,s=e.title||null,o=t[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,l}function c9(t,e,r){let n=t.match(r.other.indentCodeCompensation);if(n===null)return e;let i=n[1];return e.split(`
`).map(a=>{let s=a.match(r.other.beginningSpace);if(s===null)return a;let[o]=s;return o.length>=i.length?a.slice(i.length):a}).join(`
`)}var eh=class{constructor(e){jt(this,"options");jt(this,"rules");jt(this,"lexer");this.options=e||La}space(e){let r=this.rules.block.newline.exec(e);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(e){let r=this.rules.block.code.exec(e);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:po(n,`
`)}}}fences(e){let r=this.rules.block.fences.exec(e);if(r){let n=r[0],i=c9(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(e){let r=this.rules.block.heading.exec(e);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let i=po(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let r=this.rules.block.hr.exec(e);if(r)return{type:"hr",raw:po(r[0],`
`)}}blockquote(e){let r=this.rules.block.blockquote.exec(e);if(r){let n=po(r[0],`
`).split(`
`),i="",a="",s=[];for(;n.length>0;){let o=!1,l=[],c;for(c=0;c<n.length;c++)if(this.rules.other.blockquoteStart.test(n[c]))l.push(n[c]),o=!0;else if(!o)l.push(n[c]);else break;n=n.slice(c);let u=l.join(`
`),h=u.replace(this.rules.other.blockquoteSetextReplace,`
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
${u}`:u,a=a?`${a}
${h}`:h;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,s,!0),this.lexer.state.top=f,n.length===0)break;let d=s.at(-1);if((d==null?void 0:d.type)==="code")break;if((d==null?void 0:d.type)==="blockquote"){let p=d,g=p.raw+`
`+n.join(`
`),v=this.blockquote(g);s[s.length-1]=v,i=i.substring(0,i.length-p.raw.length)+v.raw,a=a.substring(0,a.length-p.text.length)+v.text;break}else if((d==null?void 0:d.type)==="list"){let p=d,g=p.raw+`
`+n.join(`
`),v=this.list(g);s[s.length-1]=v,i=i.substring(0,i.length-d.raw.length)+v.raw,a=a.substring(0,a.length-p.raw.length)+v.raw,n=g.substring(s.at(-1).raw.length).split(`
`);continue}}return{type:"blockquote",raw:i,tokens:s,text:a}}}list(e){let r=this.rules.block.list.exec(e);if(r){let n=r[1].trim(),i=n.length>1,a={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let s=this.rules.other.listItemRegex(n),o=!1;for(;e;){let c=!1,u="",h="";if(!(r=s.exec(e))||this.rules.block.hr.test(e))break;u=r[0],e=e.substring(u.length);let f=r[2].split(`
`,1)[0].replace(this.rules.other.listReplaceTabs,y=>" ".repeat(3*y.length)),d=e.split(`
`,1)[0],p=!f.trim(),g=0;if(this.options.pedantic?(g=2,h=f.trimStart()):p?g=r[1].length+1:(g=r[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,h=f.slice(g),g+=r[1].length),p&&this.rules.other.blankLine.test(d)&&(u+=d+`
`,e=e.substring(d.length+1),c=!0),!c){let y=this.rules.other.nextBulletRegex(g),b=this.rules.other.hrRegex(g),S=this.rules.other.fencesBeginRegex(g),_=this.rules.other.headingBeginRegex(g),w=this.rules.other.htmlBeginRegex(g);for(;e;){let T=e.split(`
`,1)[0],N;if(d=T,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),N=d):N=d.replace(this.rules.other.tabCharGlobal," "),S.test(d)||_.test(d)||w.test(d)||y.test(d)||b.test(d))break;if(N.search(this.rules.other.nonSpaceChar)>=g||!d.trim())h+=`
`+N.slice(g);else{if(p||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||S.test(f)||_.test(f)||b.test(f))break;h+=`
`+d}!p&&!d.trim()&&(p=!0),u+=T+`
`,e=e.substring(T.length+1),f=N.slice(g)}}a.loose||(o?a.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0));let v=null,m;this.options.gfm&&(v=this.rules.other.listIsTask.exec(h),v&&(m=v[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:u,task:!!v,checked:m,loose:!1,text:h,tokens:[]}),a.raw+=u}let l=a.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let c=0;c<a.items.length;c++)if(this.lexer.state.top=!1,a.items[c].tokens=this.lexer.blockTokens(a.items[c].text,[]),!a.loose){let u=a.items[c].tokens.filter(f=>f.type==="space"),h=u.length>0&&u.some(f=>this.rules.other.anyLine.test(f.raw));a.loose=h}if(a.loose)for(let c=0;c<a.items.length;c++)a.items[c].loose=!0;return a}}html(e){let r=this.rules.block.html.exec(e);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(e){let r=this.rules.block.def.exec(e);if(r){let n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:a}}}table(e){var o;let r=this.rules.block.table.exec(e);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=ev(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(o=r[3])!=null&&o.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
`):[],s={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let l of i)this.rules.other.tableAlignRight.test(l)?s.align.push("right"):this.rules.other.tableAlignCenter.test(l)?s.align.push("center"):this.rules.other.tableAlignLeft.test(l)?s.align.push("left"):s.align.push(null);for(let l=0;l<n.length;l++)s.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:s.align[l]});for(let l of a)s.rows.push(ev(l,s.header.length).map((c,u)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:s.align[u]})));return s}}lheading(e){let r=this.rules.block.lheading.exec(e);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(e){let r=this.rules.block.paragraph.exec(e);if(r){let n=r[1].charAt(r[1].length-1)===`
`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let r=this.rules.block.text.exec(e);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(e){let r=this.rules.inline.escape.exec(e);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(e){let r=this.rules.inline.tag.exec(e);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(e){let r=this.rules.inline.link.exec(e);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let s=po(n.slice(0,-1),"\\");if((n.length-s.length)%2===0)return}else{let s=l9(r[2],"()");if(s===-2)return;if(s>-1){let o=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,o).trim(),r[3]=""}}let i=r[2],a="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(i);s&&(i=s[1],a=s[3])}else a=r[3]?r[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),rv(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,r){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[i.toLowerCase()];if(!a){let s=n[0].charAt(0);return{type:"text",raw:s,text:s}}return rv(n,a,n[0],this.lexer,this.rules)}}emStrong(e,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!n||this.rules.inline.punctuation.exec(n))){let a=[...i[0]].length-1,s,o,l=a,c=0,u=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,r=r.slice(-1*e.length+a);(i=u.exec(r))!=null;){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s)continue;if(o=[...s].length,i[3]||i[4]){l+=o;continue}else if((i[5]||i[6])&&a%3&&!((a+o)%3)){c+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l+c);let h=[...i[0]][0].length,f=e.slice(0,a+i.index+h+o);if(Math.min(a,o)%2){let p=f.slice(1,-1);return{type:"em",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}let d=f.slice(2,-2);return{type:"strong",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){let r=this.rules.inline.code.exec(e);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),a=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&a&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(e){let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e){let r=this.rules.inline.del.exec(e);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(e){let r=this.rules.inline.autolink.exec(e);if(r){let n,i;return r[2]==="@"?(n=r[1],i="mailto:"+n):(n=r[1],i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let r;if(r=this.rules.inline.url.exec(e)){let i,a;if(r[2]==="@")i=r[0],a="mailto:"+i;else{let s;do s=r[0],r[0]=((n=this.rules.inline._backpedal.exec(r[0]))==null?void 0:n[0])??"";while(s!==r[0]);i=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:i,href:a,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let r=this.rules.inline.text.exec(e);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},Un=class Jp{constructor(e){jt(this,"tokens");jt(this,"options");jt(this,"state");jt(this,"tokenizer");jt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||La,this.options.tokenizer=this.options.tokenizer||new eh,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Xe,block:vc.normal,inline:fo.normal};this.options.pedantic?(r.block=vc.pedantic,r.inline=fo.pedantic):this.options.gfm&&(r.block=vc.gfm,this.options.breaks?r.inline=fo.breaks:r.inline=fo.gfm),this.tokenizer.rules=r}static get rules(){return{block:vc,inline:fo}}static lex(e,r){return new Jp(r).lex(e)}static lexInline(e,r){return new Jp(r).inlineTokens(e)}lex(e){e=e.replace(Xe.carriageReturn,`
`),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],n=!1){var i,a,s;for(this.options.pedantic&&(e=e.replace(Xe.tabCharGlobal," ").replace(Xe.spaceLine,""));e;){let o;if((a=(i=this.options.extensions)==null?void 0:i.block)!=null&&a.some(c=>(o=c.call({lexer:this},e,r))?(e=e.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let c=r.at(-1);o.raw.length===1&&c!==void 0?c.raw+=`
`:r.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
`+o.raw,c.text+=`
`+o.text,this.inlineQueue.at(-1).src=c.text):r.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=`
`+o.raw,c.text+=`
`+o.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),r.push(o);continue}let l=e;if((s=this.options.extensions)!=null&&s.startBlock){let c=1/0,u=e.slice(1),h;this.options.extensions.startBlock.forEach(f=>{h=f.call({lexer:this},u),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(l=e.substring(0,c+1))}if(this.state.top&&(o=this.tokenizer.paragraph(l))){let c=r.at(-1);n&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=`
`+o.raw,c.text+=`
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(o),n=l.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=`
`+o.raw,c.text+=`
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(o);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){var o,l,c;let n=e,i=null;if(this.tokens.links){let u=Object.keys(this.tokens.links);if(u.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)u.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let a=!1,s="";for(;e;){a||(s=""),a=!1;let u;if((l=(o=this.options.extensions)==null?void 0:o.inline)!=null&&l.some(f=>(u=f.call({lexer:this},e,r))?(e=e.substring(u.raw.length),r.push(u),!0):!1))continue;if(u=this.tokenizer.escape(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.tag(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.link(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(u.raw.length);let f=r.at(-1);u.type==="text"&&(f==null?void 0:f.type)==="text"?(f.raw+=u.raw,f.text+=u.text):r.push(u);continue}if(u=this.tokenizer.emStrong(e,n,s)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.codespan(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.br(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.del(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.autolink(e)){e=e.substring(u.raw.length),r.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(e))){e=e.substring(u.raw.length),r.push(u);continue}let h=e;if((c=this.options.extensions)!=null&&c.startInline){let f=1/0,d=e.slice(1),p;this.options.extensions.startInline.forEach(g=>{p=g.call({lexer:this},d),typeof p=="number"&&p>=0&&(f=Math.min(f,p))}),f<1/0&&f>=0&&(h=e.substring(0,f+1))}if(u=this.tokenizer.inlineText(h)){e=e.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(s=u.raw.slice(-1)),a=!0;let f=r.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=u.raw,f.text+=u.text):r.push(u);continue}if(e){let f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return r}},rh=class{constructor(e){jt(this,"options");jt(this,"parser");this.options=e||La}space(e){return""}code({text:e,lang:r,escaped:n}){var s;let i=(s=(r||"").match(Xe.notSpaceStart))==null?void 0:s[0],a=e.replace(Xe.endingNewline,"")+`
`;return i?'<pre><code class="language-'+fn(i)+'">'+(n?a:fn(a,!0))+`</code></pre>
`:"<pre><code>"+(n?a:fn(a,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}heading({tokens:e,depth:r}){return`<h${r}>${this.parser.parseInline(e)}</h${r}>
`}hr(e){return`<hr>
`}list(e){let r=e.ordered,n=e.start,i="";for(let o=0;o<e.items.length;o++){let l=e.items[o];i+=this.listitem(l)}let a=r?"ol":"ul",s=r&&n!==1?' start="'+n+'"':"";return"<"+a+s+`>
`+i+"</"+a+`>
`}listitem(e){var n;let r="";if(e.task){let i=this.checkbox({checked:!!e.checked});e.loose?((n=e.tokens[0])==null?void 0:n.type)==="paragraph"?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=i+" "+fn(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):r+=i+" "}return r+=this.parser.parse(e.tokens,!!e.loose),`<li>${r}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let r="",n="";for(let a=0;a<e.header.length;a++)n+=this.tablecell(e.header[a]);r+=this.tablerow({text:n});let i="";for(let a=0;a<e.rows.length;a++){let s=e.rows[a];n="";for(let o=0;o<s.length;o++)n+=this.tablecell(s[o]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
<thead>
`+r+`</thead>
`+i+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){let r=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+r+`</${n}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${fn(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:r,tokens:n}){let i=this.parser.parseInline(n),a=tv(e);if(a===null)return i;e=a;let s='<a href="'+e+'"';return r&&(s+=' title="'+fn(r)+'"'),s+=">"+i+"</a>",s}image({href:e,title:r,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let a=tv(e);if(a===null)return fn(n);e=a;let s=`<img src="${e}" alt="${n}"`;return r&&(s+=` title="${fn(r)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:fn(e.text)}},xy=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Vn=class tg{constructor(e){jt(this,"options");jt(this,"renderer");jt(this,"textRenderer");this.options=e||La,this.options.renderer=this.options.renderer||new rh,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new xy}static parse(e,r){return new tg(r).parse(e)}static parseInline(e,r){return new tg(r).parseInline(e)}parse(e,r=!0){var i,a;let n="";for(let s=0;s<e.length;s++){let o=e[s];if((a=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&a[o.type]){let c=o,u=this.options.extensions.renderers[c.type].call({parser:this},c);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type)){n+=u||"";continue}}let l=o;switch(l.type){case"space":{n+=this.renderer.space(l);continue}case"hr":{n+=this.renderer.hr(l);continue}case"heading":{n+=this.renderer.heading(l);continue}case"code":{n+=this.renderer.code(l);continue}case"table":{n+=this.renderer.table(l);continue}case"blockquote":{n+=this.renderer.blockquote(l);continue}case"list":{n+=this.renderer.list(l);continue}case"html":{n+=this.renderer.html(l);continue}case"paragraph":{n+=this.renderer.paragraph(l);continue}case"text":{let c=l,u=this.renderer.text(c);for(;s+1<e.length&&e[s+1].type==="text";)c=e[++s],u+=`
`+this.renderer.text(c);r?n+=this.renderer.paragraph({type:"paragraph",raw:u,text:u,tokens:[{type:"text",raw:u,text:u,escaped:!0}]}):n+=u;continue}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return n}parseInline(e,r=this.renderer){var i,a;let n="";for(let s=0;s<e.length;s++){let o=e[s];if((a=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&a[o.type]){let c=this.options.extensions.renderers[o.type].call({parser:this},o);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){n+=c||"";continue}}let l=o;switch(l.type){case"escape":{n+=r.text(l);break}case"html":{n+=r.html(l);break}case"link":{n+=r.link(l);break}case"image":{n+=r.image(l);break}case"strong":{n+=r.strong(l);break}case"em":{n+=r.em(l);break}case"codespan":{n+=r.codespan(l);break}case"br":{n+=r.br(l);break}case"del":{n+=r.del(l);break}case"text":{n+=r.text(l);break}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return n}},df,Gc=(df=class{constructor(e){jt(this,"options");jt(this,"block");this.options=e||La}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Un.lex:Un.lexInline}provideParser(){return this.block?Vn.parse:Vn.parseInline}},jt(df,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"])),df),u9=class{constructor(...e){jt(this,"defaults",uy());jt(this,"options",this.setOptions);jt(this,"parse",this.parseMarkdown(!0));jt(this,"parseInline",this.parseMarkdown(!1));jt(this,"Parser",Vn);jt(this,"Renderer",rh);jt(this,"TextRenderer",xy);jt(this,"Lexer",Un);jt(this,"Tokenizer",eh);jt(this,"Hooks",Gc);this.use(...e)}walkTokens(e,r){var i,a;let n=[];for(let s of e)switch(n=n.concat(r.call(this,s)),s.type){case"table":{let o=s;for(let l of o.header)n=n.concat(this.walkTokens(l.tokens,r));for(let l of o.rows)for(let c of l)n=n.concat(this.walkTokens(c.tokens,r));break}case"list":{let o=s;n=n.concat(this.walkTokens(o.items,r));break}default:{let o=s;(a=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&a[o.type]?this.defaults.extensions.childTokens[o.type].forEach(l=>{let c=o[l].flat(1/0);n=n.concat(this.walkTokens(c,r))}):o.tokens&&(n=n.concat(this.walkTokens(o.tokens,r)))}}return n}use(...e){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=r.renderers[a.name];s?r.renderers[a.name]=function(...o){let l=a.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),i.extensions=r),n.renderer){let a=this.defaults.renderer||new rh(this.defaults);for(let s in n.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,l=n.renderer[o],c=a[o];a[o]=(...u)=>{let h=l.apply(a,u);return h===!1&&(h=c.apply(a,u)),h||""}}i.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new eh(this.defaults);for(let s in n.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,l=n.tokenizer[o],c=a[o];a[o]=(...u)=>{let h=l.apply(a,u);return h===!1&&(h=c.apply(a,u)),h}}i.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new Gc;for(let s in n.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,l=n.hooks[o],c=a[o];Gc.passThroughHooks.has(s)?a[o]=u=>{if(this.defaults.async)return Promise.resolve(l.call(a,u)).then(f=>c.call(a,f));let h=l.call(a,u);return c.call(a,h)}:a[o]=(...u)=>{let h=l.apply(a,u);return h===!1&&(h=c.apply(a,u)),h}}i.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,s=n.walkTokens;i.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),a&&(l=l.concat(a.call(this,o))),l}}this.defaults={...this.defaults,...i}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,r){return Un.lex(e,r??this.defaults)}parser(e,r){return Vn.parse(e,r??this.defaults)}parseMarkdown(e){return(r,n)=>{let i={...n},a={...this.defaults,...i},s=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));a.hooks&&(a.hooks.options=a,a.hooks.block=e);let o=a.hooks?a.hooks.provideLexer():e?Un.lex:Un.lexInline,l=a.hooks?a.hooks.provideParser():e?Vn.parse:Vn.parseInline;if(a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(r):r).then(c=>o(c,a)).then(c=>a.hooks?a.hooks.processAllTokens(c):c).then(c=>a.walkTokens?Promise.all(this.walkTokens(c,a.walkTokens)).then(()=>c):c).then(c=>l(c,a)).then(c=>a.hooks?a.hooks.postprocess(c):c).catch(s);try{a.hooks&&(r=a.hooks.preprocess(r));let c=o(r,a);a.hooks&&(c=a.hooks.processAllTokens(c)),a.walkTokens&&this.walkTokens(c,a.walkTokens);let u=l(c,a);return a.hooks&&(u=a.hooks.postprocess(u)),u}catch(c){return s(c)}}}onError(e,r){return n=>{if(n.message+=`
Please report this to https://github.com/markedjs/marked.`,e){let i="<p>An error occurred:</p><pre>"+fn(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},va=new u9;function Rt(t,e){return va.parse(t,e)}Rt.options=Rt.setOptions=function(t){return va.setOptions(t),Rt.defaults=va.defaults,f_(Rt.defaults),Rt};Rt.getDefaults=uy;Rt.defaults=La;Rt.use=function(...t){return va.use(...t),Rt.defaults=va.defaults,f_(Rt.defaults),Rt};Rt.walkTokens=function(t,e){return va.walkTokens(t,e)};Rt.parseInline=va.parseInline;Rt.Parser=Vn;Rt.parser=Vn.parse;Rt.Renderer=rh;Rt.TextRenderer=xy;Rt.Lexer=Un;Rt.lexer=Un.lex;Rt.Tokenizer=eh;Rt.Hooks=Gc;Rt.parse=Rt;Rt.options;Rt.setOptions;Rt.use;Rt.walkTokens;Rt.parseInline;Vn.parse;Un.lex;function S_(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var n=Array.from(typeof t=="string"?[t]:t);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var i=n.reduce(function(o,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?o.concat(c.map(function(u){var h,f;return(f=(h=u.match(/[\t ]/g))===null||h===void 0?void 0:h.length)!==null&&f!==void 0?f:0})):o},[]);if(i.length){var a=new RegExp(`
[ ]{`+Math.min.apply(Math,i)+"}","g");n=n.map(function(o){return o.replace(a,`
`)})}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return e.forEach(function(o,l){var c=s.match(/(?:^|\n)( *)$/),u=c?c[1]:"",h=o;typeof o=="string"&&o.includes(`
`)&&(h=String(o).split(`
`).map(function(f,d){return d===0?f:""+u+f}).join(`
`)),s+=h+n[l+1]}),s}var h9={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},eg=new Map,__=new Map,d9=x(t=>{for(const e of t){if(!e.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(q.debug("Registering icon pack:",e.name),"loader"in e)__.set(e.name,e.loader);else if("icons"in e)eg.set(e.name,e.icons);else throw q.error("Invalid icon loader:",e),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),T_=x(async(t,e)=>{const r=fj(t,!0,e!==void 0);if(!r)throw new Error(`Invalid icon name: ${t}`);const n=r.prefix||e;if(!n)throw new Error(`Icon name must contain a prefix: ${t}`);let i=eg.get(n);if(!i){const s=__.get(n);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{i={...await s(),prefix:n},eg.set(n,i)}catch(o){throw q.error(o),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=mj(i,r.name);if(!a)throw new Error(`Icon not found: ${t}`);return a},"getRegisteredIconData"),f9=x(async t=>{try{return await T_(t),!0}catch{return!1}},"isIconAvailable"),jl=x(async(t,e,r)=>{let n;try{n=await T_(t,e==null?void 0:e.fallbackPrefix)}catch(s){q.error(s),n=h9}const i=Cj(n,e);return Lj(Ej(i.body),{...i.attributes,...r})},"getIconSVG");function E_(t,{markdownAutoWrap:e}){const n=t.replace(/<br\/>/g,`
`).replace(/\n{2,}/g,`
`),i=S_(n);return e===!1?i.replace(/ /g," "):i}x(E_,"preprocessMarkdown");function L_(t,e={}){const r=E_(t,e),n=Rt.lexer(r),i=[[]];let a=0;function s(o,l="normal"){o.type==="text"?o.text.split(`
`).forEach((u,h)=>{h!==0&&(a++,i.push([])),u.split(" ").forEach(f=>{f=f.replace(/'/g,"'"),f&&i[a].push({content:f,type:l})})}):o.type==="strong"||o.type==="em"?o.tokens.forEach(c=>{s(c,o.type)}):o.type==="html"&&i[a].push({content:o.text,type:"normal"})}return x(s,"processNode"),n.forEach(o=>{var l;o.type==="paragraph"?(l=o.tokens)==null||l.forEach(c=>{s(c)}):o.type==="html"&&i[a].push({content:o.text,type:"normal"})}),i}x(L_,"markdownToLines");function M_(t,{markdownAutoWrap:e}={}){const r=Rt.lexer(t);function n(i){var a,s,o;return i.type==="text"?e===!1?i.text.replace(/\n */g,"<br/>").replace(/ /g," "):i.text.replace(/\n */g,"<br/>"):i.type==="strong"?`<strong>${(a=i.tokens)==null?void 0:a.map(n).join("")}</strong>`:i.type==="em"?`<em>${(s=i.tokens)==null?void 0:s.map(n).join("")}</em>`:i.type==="paragraph"?`<p>${(o=i.tokens)==null?void 0:o.map(n).join("")}</p>`:i.type==="space"?"":i.type==="html"?`${i.text}`:i.type==="escape"?i.text:`Unsupported markdown: ${i.type}`}return x(n,"output"),r.map(n).join("")}x(M_,"markdownToHTML");function A_(t){return Intl.Segmenter?[...new Intl.Segmenter().segment(t)].map(e=>e.segment):[...t]}x(A_,"splitTextToChars");function B_(t,e){const r=A_(e.content);return vy(t,[],r,e.type)}x(B_,"splitWordToFitWidth");function vy(t,e,r,n){if(r.length===0)return[{content:e.join(""),type:n},{content:"",type:n}];const[i,...a]=r,s=[...e,i];return t([{content:s.join(""),type:n}])?vy(t,s,a,n):(e.length===0&&i&&(e.push(i),r.shift()),[{content:e.join(""),type:n},{content:r.join(""),type:n}])}x(vy,"splitWordToFitWidthRecursion");function N_(t,e){if(t.some(({content:r})=>r.includes(`
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return nh(t,e)}x(N_,"splitLineToFitWidth");function nh(t,e,r=[],n=[]){if(t.length===0)return n.length>0&&r.push(n),r.length>0?r:[];let i="";t[0].content===" "&&(i=" ",t.shift());const a=t.shift()??{content:" ",type:"normal"},s=[...n];if(i!==""&&s.push({content:i,type:"normal"}),s.push(a),e(s))return nh(t,e,r,s);if(n.length>0)r.push(n),t.unshift(a);else if(a.content){const[o,l]=B_(e,a);r.push([o]),l.content&&t.unshift(l)}return nh(t,e,r)}x(nh,"splitLineToFitWidthRecursion");function rg(t,e){e&&t.attr("style",e)}x(rg,"applyStyle");async function $_(t,e,r,n,i=!1){const a=t.append("foreignObject");a.attr("width",`${10*r}px`),a.attr("height",`${10*r}px`);const s=a.append("xhtml:div");let o=e.label;e.label&&Es(e.label)&&(o=await Lm(e.label.replace(zs.lineBreakRegex,`
`),It()));const l=e.isNode?"nodeLabel":"edgeLabel",c=s.append("span");c.html(o),rg(c,e.labelStyle),c.attr("class",`${l} ${n}`),rg(s,e.labelStyle),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("line-height","1.5"),s.style("max-width",r+"px"),s.style("text-align","center"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),i&&s.attr("class","labelBkg");let u=s.node().getBoundingClientRect();return u.width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),u=s.node().getBoundingClientRect()),a.node()}x($_,"addHtmlSpan");function Qh(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}x(Qh,"createTspan");function F_(t,e,r){const n=t.append("text"),i=Qh(n,1,e);Kh(i,r);const a=i.node().getComputedTextLength();return n.remove(),a}x(F_,"computeWidthOfText");function p9(t,e,r){var s;const n=t.append("text"),i=Qh(n,1,e);Kh(i,[{content:r,type:"normal"}]);const a=(s=i.node())==null?void 0:s.getBoundingClientRect();return a&&n.remove(),a}x(p9,"computeDimensionOfText");function P_(t,e,r,n=!1){const a=e.append("g"),s=a.insert("rect").attr("class","background").attr("style","stroke: none"),o=a.append("text").attr("y","-10.1");let l=0;for(const c of r){const u=x(f=>F_(a,1.1,f)<=t,"checkWidth"),h=u(c)?[c]:N_(c,u);for(const f of h){const d=Qh(o,l,1.1);Kh(d,f),l++}}if(n){const c=o.node().getBBox(),u=2;return s.attr("x",c.x-u).attr("y",c.y-u).attr("width",c.width+2*u).attr("height",c.height+2*u),a.node()}else return o.node()}x(P_,"createFormattedText");function Kh(t,e){t.text(""),e.forEach((r,n)=>{const i=t.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");n===0?i.text(r.content):i.text(" "+r.content)})}x(Kh,"updateTextContentAndStyles");async function I_(t){const e=[];t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,i,a)=>(e.push((async()=>{const s=`${i}:${a}`;return await f9(s)?await jl(s,void 0,{class:"label-icon"}):`<i class='${Fh(n).replace(":"," ")}'></i>`})()),n));const r=await Promise.all(e);return t.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>r.shift()??"")}x(I_,"replaceIconSubstring");var ji=x(async(t,e="",{style:r="",isTitle:n=!1,classes:i="",useHtmlLabels:a=!0,isNode:s=!0,width:o=200,addSvgBackground:l=!1}={},c)=>{if(q.debug("XYZ createText",e,r,n,i,a,s,"addSvgBackground: ",l),a){const u=M_(e,c),h=await I_(Ea(u)),f=e.replace(/\\\\/g,"\\"),d={isNode:s,label:Es(e)?f:h,labelStyle:r.replace("fill:","color:")};return await $_(t,d,o,i,l)}else{const u=e.replace(/<br\s*\/?>/g,"<br/>"),h=L_(u.replace("<br>","<br/>"),c),f=P_(o,t,h,e?l:!1);if(s){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const d=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Bt(f).attr("style",d)}else{const d=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Bt(f).select("rect").attr("style",d.replace(/background:/g,"fill:"));const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Bt(f).select("text").attr("style",p)}return f}},"createText");function nf(t,e,r){if(t&&t.length){const[n,i]=e,a=Math.PI/180*r,s=Math.cos(a),o=Math.sin(a);for(const l of t){const[c,u]=l;l[0]=(c-n)*s-(u-i)*o+n,l[1]=(c-n)*o+(u-i)*s+i}}}function g9(t,e){return t[0]===e[0]&&t[1]===e[1]}function m9(t,e,r,n=1){const i=r,a=Math.max(e,.1),s=t[0]&&t[0][0]&&typeof t[0][0]=="number"?[t]:t,o=[0,0];if(i)for(const c of s)nf(c,o,i);const l=function(c,u,h){const f=[];for(const y of c){const b=[...y];g9(b[0],b[b.length-1])||b.push([b[0][0],b[0][1]]),b.length>2&&f.push(b)}const d=[];u=Math.max(u,.1);const p=[];for(const y of f)for(let b=0;b<y.length-1;b++){const S=y[b],_=y[b+1];if(S[1]!==_[1]){const w=Math.min(S[1],_[1]);p.push({ymin:w,ymax:Math.max(S[1],_[1]),x:w===S[1]?S[0]:_[0],islope:(_[0]-S[0])/(_[1]-S[1])})}}if(p.sort((y,b)=>y.ymin<b.ymin?-1:y.ymin>b.ymin?1:y.x<b.x?-1:y.x>b.x?1:y.ymax===b.ymax?0:(y.ymax-b.ymax)/Math.abs(y.ymax-b.ymax)),!p.length)return d;let g=[],v=p[0].ymin,m=0;for(;g.length||p.length;){if(p.length){let y=-1;for(let b=0;b<p.length&&!(p[b].ymin>v);b++)y=b;p.splice(0,y+1).forEach(b=>{g.push({s:v,edge:b})})}if(g=g.filter(y=>!(y.edge.ymax<=v)),g.sort((y,b)=>y.edge.x===b.edge.x?0:(y.edge.x-b.edge.x)/Math.abs(y.edge.x-b.edge.x)),(h!==1||m%u==0)&&g.length>1)for(let y=0;y<g.length;y+=2){const b=y+1;if(b>=g.length)break;const S=g[y].edge,_=g[b].edge;d.push([[Math.round(S.x),v],[Math.round(_.x),v]])}v+=h,g.forEach(y=>{y.edge.x=y.edge.x+h*y.edge.islope}),m++}return d}(s,a,n);if(i){for(const c of s)nf(c,o,-i);(function(c,u,h){const f=[];c.forEach(d=>f.push(...d)),nf(f,u,h)})(l,o,-i)}return l}function Hl(t,e){var r;const n=e.hachureAngle+90;let i=e.hachureGap;i<0&&(i=4*e.strokeWidth),i=Math.round(Math.max(i,.1));let a=1;return e.roughness>=1&&(((r=e.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=i),m9(t,i,n,a||1)}class by{constructor(e){this.helper=e}fillPolygons(e,r){return this._fillPolygons(e,r)}_fillPolygons(e,r){const n=Hl(e,r);return{type:"fillSketch",ops:this.renderLines(n,r)}}renderLines(e,r){const n=[];for(const i of e)n.push(...this.helper.doubleLineOps(i[0][0],i[0][1],i[1][0],i[1][1],r));return n}}function Zh(t){const e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}class y9 extends by{fillPolygons(e,r){let n=r.hachureGap;n<0&&(n=4*r.strokeWidth),n=Math.max(n,.1);const i=Hl(e,Object.assign({},r,{hachureGap:n})),a=Math.PI/180*r.hachureAngle,s=[],o=.5*n*Math.cos(a),l=.5*n*Math.sin(a);for(const[c,u]of i)Zh([c,u])&&s.push([[c[0]-o,c[1]+l],[...u]],[[c[0]+o,c[1]-l],[...u]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}}class x9 extends by{fillPolygons(e,r){const n=this._fillPolygons(e,r),i=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(e,i);return n.ops=n.ops.concat(a.ops),n}}class v9{constructor(e){this.helper=e}fillPolygons(e,r){const n=Hl(e,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(n,r)}dotsOnLines(e,r){const n=[];let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);let a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const s=i/4;for(const o of e){const l=Zh(o),c=l/i,u=Math.ceil(c)-1,h=l-u*i,f=(o[0][0]+o[1][0])/2-i/4,d=Math.min(o[0][1],o[1][1]);for(let p=0;p<u;p++){const g=d+h+p*i,v=f-s+2*Math.random()*s,m=g-s+2*Math.random()*s,y=this.helper.ellipse(v,m,a,a,r);n.push(...y.ops)}}return{type:"fillSketch",ops:n}}}class b9{constructor(e){this.helper=e}fillPolygons(e,r){const n=Hl(e,r);return{type:"fillSketch",ops:this.dashedLine(n,r)}}dashedLine(e,r){const n=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,i=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,a=[];return e.forEach(s=>{const o=Zh(s),l=Math.floor(o/(n+i)),c=(o+i-l*(n+i))/2;let u=s[0],h=s[1];u[0]>h[0]&&(u=s[1],h=s[0]);const f=Math.atan((h[1]-u[1])/(h[0]-u[0]));for(let d=0;d<l;d++){const p=d*(n+i),g=p+n,v=[u[0]+p*Math.cos(f)+c*Math.cos(f),u[1]+p*Math.sin(f)+c*Math.sin(f)],m=[u[0]+g*Math.cos(f)+c*Math.cos(f),u[1]+g*Math.sin(f)+c*Math.sin(f)];a.push(...this.helper.doubleLineOps(v[0],v[1],m[0],m[1],r))}}),a}}class w9{constructor(e){this.helper=e}fillPolygons(e,r){const n=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,i=r.zigzagOffset<0?n:r.zigzagOffset,a=Hl(e,r=Object.assign({},r,{hachureGap:n+i}));return{type:"fillSketch",ops:this.zigzagLines(a,i,r)}}zigzagLines(e,r,n){const i=[];return e.forEach(a=>{const s=Zh(a),o=Math.round(s/(2*r));let l=a[0],c=a[1];l[0]>c[0]&&(l=a[1],c=a[0]);const u=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let h=0;h<o;h++){const f=2*h*r,d=2*(h+1)*r,p=Math.sqrt(2*Math.pow(r,2)),g=[l[0]+f*Math.cos(u),l[1]+f*Math.sin(u)],v=[l[0]+d*Math.cos(u),l[1]+d*Math.sin(u)],m=[g[0]+p*Math.cos(u+Math.PI/4),g[1]+p*Math.sin(u+Math.PI/4)];i.push(...this.helper.doubleLineOps(g[0],g[1],m[0],m[1],n),...this.helper.doubleLineOps(m[0],m[1],v[0],v[1],n))}}),i}}const ir={};class k9{constructor(e){this.seed=e}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const C9=0,af=1,nv=2,bc={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 sf(t,e){return t.type===e}function wy(t){const e=[],r=function(s){const o=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))o[o.length]={type:C9,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];o[o.length]={type:af,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return o[o.length]={type:nv,text:""},o}(t);let n="BOD",i=0,a=r[i];for(;!sf(a,nv);){let s=0;const o=[];if(n==="BOD"){if(a.text!=="M"&&a.text!=="m")return wy("M0,0"+t);i++,s=bc[a.text],n=a.text}else sf(a,af)?s=bc[n]:(i++,s=bc[a.text],n=a.text);if(!(i+s<r.length))throw new Error("Path data ended short");for(let l=i;l<i+s;l++){const c=r[l];if(!sf(c,af))throw new Error("Param not a number: "+n+","+c.text);o[o.length]=+c.text}if(typeof bc[n]!="number")throw new Error("Bad segment: "+n);{const l={key:n,data:o};e.push(l),i+=s,a=r[i],n==="M"&&(n="L"),n==="m"&&(n="l")}}return e}function R_(t){let e=0,r=0,n=0,i=0;const a=[];for(const{key:s,data:o}of t)switch(s){case"M":a.push({key:"M",data:[...o]}),[e,r]=o,[n,i]=o;break;case"m":e+=o[0],r+=o[1],a.push({key:"M",data:[e,r]}),n=e,i=r;break;case"L":a.push({key:"L",data:[...o]}),[e,r]=o;break;case"l":e+=o[0],r+=o[1],a.push({key:"L",data:[e,r]});break;case"C":a.push({key:"C",data:[...o]}),e=o[4],r=o[5];break;case"c":{const l=o.map((c,u)=>u%2?c+r:c+e);a.push({key:"C",data:l}),e=l[4],r=l[5];break}case"Q":a.push({key:"Q",data:[...o]}),e=o[2],r=o[3];break;case"q":{const l=o.map((c,u)=>u%2?c+r:c+e);a.push({key:"Q",data:l}),e=l[2],r=l[3];break}case"A":a.push({key:"A",data:[...o]}),e=o[5],r=o[6];break;case"a":e+=o[5],r+=o[6],a.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],e,r]});break;case"H":a.push({key:"H",data:[...o]}),e=o[0];break;case"h":e+=o[0],a.push({key:"H",data:[e]});break;case"V":a.push({key:"V",data:[...o]}),r=o[0];break;case"v":r+=o[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...o]}),e=o[2],r=o[3];break;case"s":{const l=o.map((c,u)=>u%2?c+r:c+e);a.push({key:"S",data:l}),e=l[2],r=l[3];break}case"T":a.push({key:"T",data:[...o]}),e=o[0],r=o[1];break;case"t":e+=o[0],r+=o[1],a.push({key:"T",data:[e,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),e=n,r=i}return a}function O_(t){const e=[];let r="",n=0,i=0,a=0,s=0,o=0,l=0;for(const{key:c,data:u}of t){switch(c){case"M":e.push({key:"M",data:[...u]}),[n,i]=u,[a,s]=u;break;case"C":e.push({key:"C",data:[...u]}),n=u[4],i=u[5],o=u[2],l=u[3];break;case"L":e.push({key:"L",data:[...u]}),[n,i]=u;break;case"H":n=u[0],e.push({key:"L",data:[n,i]});break;case"V":i=u[0],e.push({key:"L",data:[n,i]});break;case"S":{let h=0,f=0;r==="C"||r==="S"?(h=n+(n-o),f=i+(i-l)):(h=n,f=i),e.push({key:"C",data:[h,f,...u]}),o=u[0],l=u[1],n=u[2],i=u[3];break}case"T":{const[h,f]=u;let d=0,p=0;r==="Q"||r==="T"?(d=n+(n-o),p=i+(i-l)):(d=n,p=i);const g=n+2*(d-n)/3,v=i+2*(p-i)/3,m=h+2*(d-h)/3,y=f+2*(p-f)/3;e.push({key:"C",data:[g,v,m,y,h,f]}),o=d,l=p,n=h,i=f;break}case"Q":{const[h,f,d,p]=u,g=n+2*(h-n)/3,v=i+2*(f-i)/3,m=d+2*(h-d)/3,y=p+2*(f-p)/3;e.push({key:"C",data:[g,v,m,y,d,p]}),o=h,l=f,n=d,i=p;break}case"A":{const h=Math.abs(u[0]),f=Math.abs(u[1]),d=u[2],p=u[3],g=u[4],v=u[5],m=u[6];h===0||f===0?(e.push({key:"C",data:[n,i,v,m,v,m]}),n=v,i=m):(n!==v||i!==m)&&(D_(n,i,v,m,h,f,d,p,g).forEach(function(y){e.push({key:"C",data:y})}),n=v,i=m);break}case"Z":e.push({key:"Z",data:[]}),n=a,i=s}r=c}return e}function go(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function D_(t,e,r,n,i,a,s,o,l,c){const u=(h=s,Math.PI*h/180);var h;let f=[],d=0,p=0,g=0,v=0;if(c)[d,p,g,v]=c;else{[t,e]=go(t,e,-u),[r,n]=go(r,n,-u);const j=(t-r)/2,P=(e-n)/2;let $=j*j/(i*i)+P*P/(a*a);$>1&&($=Math.sqrt($),i*=$,a*=$);const M=i*i,D=a*a,L=M*D-M*P*P-D*j*j,F=M*P*P+D*j*j,C=(o===l?-1:1)*Math.sqrt(Math.abs(L/F));g=C*i*P/a+(t+r)/2,v=C*-a*j/i+(e+n)/2,d=Math.asin(parseFloat(((e-v)/a).toFixed(9))),p=Math.asin(parseFloat(((n-v)/a).toFixed(9))),t<g&&(d=Math.PI-d),r<g&&(p=Math.PI-p),d<0&&(d=2*Math.PI+d),p<0&&(p=2*Math.PI+p),l&&d>p&&(d-=2*Math.PI),!l&&p>d&&(p-=2*Math.PI)}let m=p-d;if(Math.abs(m)>120*Math.PI/180){const j=p,P=r,$=n;p=l&&p>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,f=D_(r=g+i*Math.cos(p),n=v+a*Math.sin(p),P,$,i,a,s,0,l,[p,j,g,v])}m=p-d;const y=Math.cos(d),b=Math.sin(d),S=Math.cos(p),_=Math.sin(p),w=Math.tan(m/4),T=4/3*i*w,N=4/3*a*w,z=[t,e],I=[t+T*b,e-N*y],A=[r+T*_,n-N*S],R=[r,n];if(I[0]=2*z[0]-I[0],I[1]=2*z[1]-I[1],c)return[I,A,R].concat(f);{f=[I,A,R].concat(f);const j=[];for(let P=0;P<f.length;P+=3){const $=go(f[P][0],f[P][1],u),M=go(f[P+1][0],f[P+1][1],u),D=go(f[P+2][0],f[P+2][1],u);j.push([$[0],$[1],M[0],M[1],D[0],D[1]])}return j}}const S9={randOffset:function(t,e){return gt(t,e)},randOffsetWithRange:function(t,e,r){return ih(t,e,r)},ellipse:function(t,e,r,n,i){const a=j_(r,n,i);return ng(t,e,i,a).opset},doubleLineOps:function(t,e,r,n,i){return Fi(t,e,r,n,i,!0)}};function z_(t,e,r,n,i){return{type:"path",ops:Fi(t,e,r,n,i)}}function Xc(t,e,r){const n=(t||[]).length;if(n>2){const i=[];for(let a=0;a<n-1;a++)i.push(...Fi(t[a][0],t[a][1],t[a+1][0],t[a+1][1],r));return e&&i.push(...Fi(t[n-1][0],t[n-1][1],t[0][0],t[0][1],r)),{type:"path",ops:i}}return n===2?z_(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function _9(t,e,r,n,i){return function(a,s){return Xc(a,!0,s)}([[t,e],[t+r,e],[t+r,e+n],[t,e+n]],i)}function iv(t,e){if(t.length){const r=typeof t[0][0]=="number"?[t]:t,n=wc(r[0],1*(1+.2*e.roughness),e),i=e.disableMultiStroke?[]:wc(r[0],1.5*(1+.22*e.roughness),ov(e));for(let a=1;a<r.length;a++){const s=r[a];if(s.length){const o=wc(s,1*(1+.2*e.roughness),e),l=e.disableMultiStroke?[]:wc(s,1.5*(1+.22*e.roughness),ov(e));for(const c of o)c.op!=="move"&&n.push(c);for(const c of l)c.op!=="move"&&i.push(c)}}return{type:"path",ops:n.concat(i)}}return{type:"path",ops:[]}}function j_(t,e,r){const n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n)),a=2*Math.PI/i;let s=Math.abs(t/2),o=Math.abs(e/2);const l=1-r.curveFitting;return s+=gt(s*l,r),o+=gt(o*l,r),{increment:a,rx:s,ry:o}}function ng(t,e,r,n){const[i,a]=lv(n.increment,t,e,n.rx,n.ry,1,n.increment*ih(.1,ih(.4,1,r),r),r);let s=ah(i,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[o]=lv(n.increment,t,e,n.rx,n.ry,1.5,0,r),l=ah(o,null,r);s=s.concat(l)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}function av(t,e,r,n,i,a,s,o,l){const c=t,u=e;let h=Math.abs(r/2),f=Math.abs(n/2);h+=gt(.01*h,l),f+=gt(.01*f,l);let d=i,p=a;for(;d<0;)d+=2*Math.PI,p+=2*Math.PI;p-d>2*Math.PI&&(d=0,p=2*Math.PI);const g=2*Math.PI/l.curveStepCount,v=Math.min(g/2,(p-d)/2),m=cv(v,c,u,h,f,d,p,1,l);if(!l.disableMultiStroke){const y=cv(v,c,u,h,f,d,p,1.5,l);m.push(...y)}return s&&(o?m.push(...Fi(c,u,c+h*Math.cos(d),u+f*Math.sin(d),l),...Fi(c,u,c+h*Math.cos(p),u+f*Math.sin(p),l)):m.push({op:"lineTo",data:[c,u]},{op:"lineTo",data:[c+h*Math.cos(d),u+f*Math.sin(d)]})),{type:"path",ops:m}}function sv(t,e){const r=O_(R_(wy(t))),n=[];let i=[0,0],a=[0,0];for(const{key:s,data:o}of r)switch(s){case"M":a=[o[0],o[1]],i=[o[0],o[1]];break;case"L":n.push(...Fi(a[0],a[1],o[0],o[1],e)),a=[o[0],o[1]];break;case"C":{const[l,c,u,h,f,d]=o;n.push(...T9(l,c,u,h,f,d,a,e)),a=[f,d];break}case"Z":n.push(...Fi(a[0],a[1],i[0],i[1],e)),a=[i[0],i[1]]}return{type:"path",ops:n}}function of(t,e){const r=[];for(const n of t)if(n.length){const i=e.maxRandomnessOffset||0,a=n.length;if(a>2){r.push({op:"move",data:[n[0][0]+gt(i,e),n[0][1]+gt(i,e)]});for(let s=1;s<a;s++)r.push({op:"lineTo",data:[n[s][0]+gt(i,e),n[s][1]+gt(i,e)]})}}return{type:"fillPath",ops:r}}function Fa(t,e){return function(r,n){let i=r.fillStyle||"hachure";if(!ir[i])switch(i){case"zigzag":ir[i]||(ir[i]=new y9(n));break;case"cross-hatch":ir[i]||(ir[i]=new x9(n));break;case"dots":ir[i]||(ir[i]=new v9(n));break;case"dashed":ir[i]||(ir[i]=new b9(n));break;case"zigzag-line":ir[i]||(ir[i]=new w9(n));break;default:i="hachure",ir[i]||(ir[i]=new by(n))}return ir[i]}(e,S9).fillPolygons(t,e)}function ov(t){const e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}function H_(t){return t.randomizer||(t.randomizer=new k9(t.seed||0)),t.randomizer.next()}function ih(t,e,r,n=1){return r.roughness*n*(H_(r)*(e-t)+t)}function gt(t,e,r=1){return ih(-t,t,e,r)}function Fi(t,e,r,n,i,a=!1){const s=a?i.disableMultiStrokeFill:i.disableMultiStroke,o=ig(t,e,r,n,i,!0,!1);if(s)return o;const l=ig(t,e,r,n,i,!0,!0);return o.concat(l)}function ig(t,e,r,n,i,a,s){const o=Math.pow(t-r,2)+Math.pow(e-n,2),l=Math.sqrt(o);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let u=i.maxRandomnessOffset||0;u*u*100>o&&(u=l/10);const h=u/2,f=.2+.2*H_(i);let d=i.bowing*i.maxRandomnessOffset*(n-e)/200,p=i.bowing*i.maxRandomnessOffset*(t-r)/200;d=gt(d,i,c),p=gt(p,i,c);const g=[],v=()=>gt(h,i,c),m=()=>gt(u,i,c),y=i.preserveVertices;return s?g.push({op:"move",data:[t+(y?0:v()),e+(y?0:v())]}):g.push({op:"move",data:[t+(y?0:gt(u,i,c)),e+(y?0:gt(u,i,c))]}),s?g.push({op:"bcurveTo",data:[d+t+(r-t)*f+v(),p+e+(n-e)*f+v(),d+t+2*(r-t)*f+v(),p+e+2*(n-e)*f+v(),r+(y?0:v()),n+(y?0:v())]}):g.push({op:"bcurveTo",data:[d+t+(r-t)*f+m(),p+e+(n-e)*f+m(),d+t+2*(r-t)*f+m(),p+e+2*(n-e)*f+m(),r+(y?0:m()),n+(y?0:m())]}),g}function wc(t,e,r){if(!t.length)return[];const n=[];n.push([t[0][0]+gt(e,r),t[0][1]+gt(e,r)]),n.push([t[0][0]+gt(e,r),t[0][1]+gt(e,r)]);for(let i=1;i<t.length;i++)n.push([t[i][0]+gt(e,r),t[i][1]+gt(e,r)]),i===t.length-1&&n.push([t[i][0]+gt(e,r),t[i][1]+gt(e,r)]);return ah(n,null,r)}function ah(t,e,r){const n=t.length,i=[];if(n>3){const a=[],s=1-r.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(let o=1;o+2<n;o++){const l=t[o];a[0]=[l[0],l[1]],a[1]=[l[0]+(s*t[o+1][0]-s*t[o-1][0])/6,l[1]+(s*t[o+1][1]-s*t[o-1][1])/6],a[2]=[t[o+1][0]+(s*t[o][0]-s*t[o+2][0])/6,t[o+1][1]+(s*t[o][1]-s*t[o+2][1])/6],a[3]=[t[o+1][0],t[o+1][1]],i.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[3][1]]})}}else n===3?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):n===2&&i.push(...ig(t[0][0],t[0][1],t[1][0],t[1][1],r,!0,!0));return i}function lv(t,e,r,n,i,a,s,o){const l=[],c=[];if(o.roughness===0){t/=4,c.push([e+n*Math.cos(-t),r+i*Math.sin(-t)]);for(let u=0;u<=2*Math.PI;u+=t){const h=[e+n*Math.cos(u),r+i*Math.sin(u)];l.push(h),c.push(h)}c.push([e+n*Math.cos(0),r+i*Math.sin(0)]),c.push([e+n*Math.cos(t),r+i*Math.sin(t)])}else{const u=gt(.5,o)-Math.PI/2;c.push([gt(a,o)+e+.9*n*Math.cos(u-t),gt(a,o)+r+.9*i*Math.sin(u-t)]);const h=2*Math.PI+u-.01;for(let f=u;f<h;f+=t){const d=[gt(a,o)+e+n*Math.cos(f),gt(a,o)+r+i*Math.sin(f)];l.push(d),c.push(d)}c.push([gt(a,o)+e+n*Math.cos(u+2*Math.PI+.5*s),gt(a,o)+r+i*Math.sin(u+2*Math.PI+.5*s)]),c.push([gt(a,o)+e+.98*n*Math.cos(u+s),gt(a,o)+r+.98*i*Math.sin(u+s)]),c.push([gt(a,o)+e+.9*n*Math.cos(u+.5*s),gt(a,o)+r+.9*i*Math.sin(u+.5*s)])}return[c,l]}function cv(t,e,r,n,i,a,s,o,l){const c=a+gt(.1,l),u=[];u.push([gt(o,l)+e+.9*n*Math.cos(c-t),gt(o,l)+r+.9*i*Math.sin(c-t)]);for(let h=c;h<=s;h+=t)u.push([gt(o,l)+e+n*Math.cos(h),gt(o,l)+r+i*Math.sin(h)]);return u.push([e+n*Math.cos(s),r+i*Math.sin(s)]),u.push([e+n*Math.cos(s),r+i*Math.sin(s)]),ah(u,null,l)}function T9(t,e,r,n,i,a,s,o){const l=[],c=[o.maxRandomnessOffset||1,(o.maxRandomnessOffset||1)+.3];let u=[0,0];const h=o.disableMultiStroke?1:2,f=o.preserveVertices;for(let d=0;d<h;d++)d===0?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(f?0:gt(c[0],o)),s[1]+(f?0:gt(c[0],o))]}),u=f?[i,a]:[i+gt(c[d],o),a+gt(c[d],o)],l.push({op:"bcurveTo",data:[t+gt(c[d],o),e+gt(c[d],o),r+gt(c[d],o),n+gt(c[d],o),u[0],u[1]]});return l}function mo(t){return[...t]}function uv(t,e=0){const r=t.length;if(r<3)throw new Error("A curve must have at least three points.");const n=[];if(r===3)n.push(mo(t[0]),mo(t[1]),mo(t[2]),mo(t[2]));else{const i=[];i.push(t[0],t[0]);for(let o=1;o<t.length;o++)i.push(t[o]),o===t.length-1&&i.push(t[o]);const a=[],s=1-e;n.push(mo(i[0]));for(let o=1;o+2<i.length;o++){const l=i[o];a[0]=[l[0],l[1]],a[1]=[l[0]+(s*i[o+1][0]-s*i[o-1][0])/6,l[1]+(s*i[o+1][1]-s*i[o-1][1])/6],a[2]=[i[o+1][0]+(s*i[o][0]-s*i[o+2][0])/6,i[o+1][1]+(s*i[o][1]-s*i[o+2][1])/6],a[3]=[i[o+1][0],i[o+1][1]],n.push(a[1],a[2],a[3])}}return n}function Qc(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function E9(t,e,r){const n=Qc(e,r);if(n===0)return Qc(t,e);let i=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/n;return i=Math.max(0,Math.min(1,i)),Qc(t,Gi(e,r,i))}function Gi(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function ag(t,e,r,n){const i=n||[];if(function(o,l){const c=o[l+0],u=o[l+1],h=o[l+2],f=o[l+3];let d=3*u[0]-2*c[0]-f[0];d*=d;let p=3*u[1]-2*c[1]-f[1];p*=p;let g=3*h[0]-2*f[0]-c[0];g*=g;let v=3*h[1]-2*f[1]-c[1];return v*=v,d<g&&(d=g),p<v&&(p=v),d+p}(t,e)<r){const o=t[e+0];i.length?(a=i[i.length-1],s=o,Math.sqrt(Qc(a,s))>1&&i.push(o)):i.push(o),i.push(t[e+3])}else{const l=t[e+0],c=t[e+1],u=t[e+2],h=t[e+3],f=Gi(l,c,.5),d=Gi(c,u,.5),p=Gi(u,h,.5),g=Gi(f,d,.5),v=Gi(d,p,.5),m=Gi(g,v,.5);ag([l,f,g,m],0,r,i),ag([m,v,p,h],0,r,i)}var a,s;return i}function L9(t,e){return sh(t,0,t.length,e)}function sh(t,e,r,n,i){const a=i||[],s=t[e],o=t[r-1];let l=0,c=1;for(let u=e+1;u<r-1;++u){const h=E9(t[u],s,o);h>l&&(l=h,c=u)}return Math.sqrt(l)>n?(sh(t,e,c+1,n,a),sh(t,c,r,n,a)):(a.length||a.push(s),a.push(o)),a}function lf(t,e=.15,r){const n=[],i=(t.length-1)/3;for(let a=0;a<i;a++)ag(t,3*a,e,n);return r&&r>0?sh(n,0,n.length,r):n}const wr="none";class oh{constructor(e){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=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(e){return e?Object.assign({},this.defaultOptions,e):this.defaultOptions}_d(e,r,n){return{shape:e,sets:r||[],options:n||this.defaultOptions}}line(e,r,n,i,a){const s=this._o(a);return this._d("line",[z_(e,r,n,i,s)],s)}rectangle(e,r,n,i,a){const s=this._o(a),o=[],l=_9(e,r,n,i,s);if(s.fill){const c=[[e,r],[e+n,r],[e+n,r+i],[e,r+i]];s.fillStyle==="solid"?o.push(of([c],s)):o.push(Fa([c],s))}return s.stroke!==wr&&o.push(l),this._d("rectangle",o,s)}ellipse(e,r,n,i,a){const s=this._o(a),o=[],l=j_(n,i,s),c=ng(e,r,s,l);if(s.fill)if(s.fillStyle==="solid"){const u=ng(e,r,s,l).opset;u.type="fillPath",o.push(u)}else o.push(Fa([c.estimatedPoints],s));return s.stroke!==wr&&o.push(c.opset),this._d("ellipse",o,s)}circle(e,r,n,i){const a=this.ellipse(e,r,n,n,i);return a.shape="circle",a}linearPath(e,r){const n=this._o(r);return this._d("linearPath",[Xc(e,!1,n)],n)}arc(e,r,n,i,a,s,o=!1,l){const c=this._o(l),u=[],h=av(e,r,n,i,a,s,o,!0,c);if(o&&c.fill)if(c.fillStyle==="solid"){const f=Object.assign({},c);f.disableMultiStroke=!0;const d=av(e,r,n,i,a,s,!0,!1,f);d.type="fillPath",u.push(d)}else u.push(function(f,d,p,g,v,m,y){const b=f,S=d;let _=Math.abs(p/2),w=Math.abs(g/2);_+=gt(.01*_,y),w+=gt(.01*w,y);let T=v,N=m;for(;T<0;)T+=2*Math.PI,N+=2*Math.PI;N-T>2*Math.PI&&(T=0,N=2*Math.PI);const z=(N-T)/y.curveStepCount,I=[];for(let A=T;A<=N;A+=z)I.push([b+_*Math.cos(A),S+w*Math.sin(A)]);return I.push([b+_*Math.cos(N),S+w*Math.sin(N)]),I.push([b,S]),Fa([I],y)}(e,r,n,i,a,s,c));return c.stroke!==wr&&u.push(h),this._d("arc",u,c)}curve(e,r){const n=this._o(r),i=[],a=iv(e,n);if(n.fill&&n.fill!==wr)if(n.fillStyle==="solid"){const s=iv(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(s.ops)})}else{const s=[],o=e;if(o.length){const l=typeof o[0][0]=="number"?[o]:o;for(const c of l)c.length<3?s.push(...c):c.length===3?s.push(...lf(uv([c[0],c[0],c[1],c[2]]),10,(1+n.roughness)/2)):s.push(...lf(uv(c),10,(1+n.roughness)/2))}s.length&&i.push(Fa([s],n))}return n.stroke!==wr&&i.push(a),this._d("curve",i,n)}polygon(e,r){const n=this._o(r),i=[],a=Xc(e,!0,n);return n.fill&&(n.fillStyle==="solid"?i.push(of([e],n)):i.push(Fa([e],n))),n.stroke!==wr&&i.push(a),this._d("polygon",i,n)}path(e,r){const n=this._o(r),i=[];if(!e)return this._d("path",i,n);e=(e||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const a=n.fill&&n.fill!=="transparent"&&n.fill!==wr,s=n.stroke!==wr,o=!!(n.simplification&&n.simplification<1),l=function(u,h,f){const d=O_(R_(wy(u))),p=[];let g=[],v=[0,0],m=[];const y=()=>{m.length>=4&&g.push(...lf(m,h)),m=[]},b=()=>{y(),g.length&&(p.push(g),g=[])};for(const{key:_,data:w}of d)switch(_){case"M":b(),v=[w[0],w[1]],g.push(v);break;case"L":y(),g.push([w[0],w[1]]);break;case"C":if(!m.length){const T=g.length?g[g.length-1]:v;m.push([T[0],T[1]])}m.push([w[0],w[1]]),m.push([w[2],w[3]]),m.push([w[4],w[5]]);break;case"Z":y(),g.push([v[0],v[1]])}if(b(),!f)return p;const S=[];for(const _ of p){const w=L9(_,f);w.length&&S.push(w)}return S}(e,1,o?4-4*(n.simplification||1):(1+n.roughness)/2),c=sv(e,n);if(a)if(n.fillStyle==="solid")if(l.length===1){const u=sv(e,Object.assign(Object.assign({},n),{disableMultiStroke:!0,roughness:n.roughness?n.roughness+n.fillShapeRoughnessGain:0}));i.push({type:"fillPath",ops:this._mergedShape(u.ops)})}else i.push(of(l,n));else i.push(Fa(l,n));return s&&(o?l.forEach(u=>{i.push(Xc(u,!1,n))}):i.push(c)),this._d("path",i,n)}opsToPath(e,r){let n="";for(const i of e.ops){const a=typeof r=="number"&&r>=0?i.data.map(s=>+s.toFixed(r)):i.data;switch(i.op){case"move":n+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":n+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":n+=`L${a[0]} ${a[1]} `}}return n.trim()}toPaths(e){const r=e.sets||[],n=e.options||this.defaultOptions,i=[];for(const a of r){let s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:wr};break;case"fillPath":s={d:this.opsToPath(a),stroke:wr,strokeWidth:0,fill:n.fill||wr};break;case"fillSketch":s=this.fillSketch(a,n)}s&&i.push(s)}return i}fillSketch(e,r){let n=r.fillWeight;return n<0&&(n=r.strokeWidth/2),{d:this.opsToPath(e),stroke:r.fill||wr,strokeWidth:n,fill:wr}}_mergedShape(e){return e.filter((r,n)=>n===0||r.op!=="move")}}class M9{constructor(e,r){this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new oh(r)}draw(e){const r=e.sets||[],n=e.options||this.getDefaultOptions(),i=this.ctx,a=e.options.fixedDecimalPlaceDigits;for(const s of r)switch(s.type){case"path":i.save(),i.strokeStyle=n.stroke==="none"?"transparent":n.stroke,i.lineWidth=n.strokeWidth,n.strokeLineDash&&i.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(i.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(i,s,a),i.restore();break;case"fillPath":{i.save(),i.fillStyle=n.fill||"";const o=e.shape==="curve"||e.shape==="polygon"||e.shape==="path"?"evenodd":"nonzero";this._drawToContext(i,s,a,o),i.restore();break}case"fillSketch":this.fillSketch(i,s,n)}}fillSketch(e,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2),e.save(),n.fillLineDash&&e.setLineDash(n.fillLineDash),n.fillLineDashOffset&&(e.lineDashOffset=n.fillLineDashOffset),e.strokeStyle=n.fill||"",e.lineWidth=i,this._drawToContext(e,r,n.fixedDecimalPlaceDigits),e.restore()}_drawToContext(e,r,n,i="nonzero"){e.beginPath();for(const a of r.ops){const s=typeof n=="number"&&n>=0?a.data.map(o=>+o.toFixed(n)):a.data;switch(a.op){case"move":e.moveTo(s[0],s[1]);break;case"bcurveTo":e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case"lineTo":e.lineTo(s[0],s[1])}}r.type==="fillPath"?e.fill(i):e.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(e,r,n,i,a){const s=this.gen.line(e,r,n,i,a);return this.draw(s),s}rectangle(e,r,n,i,a){const s=this.gen.rectangle(e,r,n,i,a);return this.draw(s),s}ellipse(e,r,n,i,a){const s=this.gen.ellipse(e,r,n,i,a);return this.draw(s),s}circle(e,r,n,i){const a=this.gen.circle(e,r,n,i);return this.draw(a),a}linearPath(e,r){const n=this.gen.linearPath(e,r);return this.draw(n),n}polygon(e,r){const n=this.gen.polygon(e,r);return this.draw(n),n}arc(e,r,n,i,a,s,o=!1,l){const c=this.gen.arc(e,r,n,i,a,s,o,l);return this.draw(c),c}curve(e,r){const n=this.gen.curve(e,r);return this.draw(n),n}path(e,r){const n=this.gen.path(e,r);return this.draw(n),n}}const kc="http://www.w3.org/2000/svg";class A9{constructor(e,r){this.svg=e,this.gen=new oh(r)}draw(e){const r=e.sets||[],n=e.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,a=i.createElementNS(kc,"g"),s=e.options.fixedDecimalPlaceDigits;for(const o of r){let l=null;switch(o.type){case"path":l=i.createElementNS(kc,"path"),l.setAttribute("d",this.opsToPath(o,s)),l.setAttribute("stroke",n.stroke),l.setAttribute("stroke-width",n.strokeWidth+""),l.setAttribute("fill","none"),n.strokeLineDash&&l.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${n.strokeLineDashOffset}`);break;case"fillPath":l=i.createElementNS(kc,"path"),l.setAttribute("d",this.opsToPath(o,s)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",n.fill||""),e.shape!=="curve"&&e.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(i,o,n)}l&&a.appendChild(l)}return a}fillSketch(e,r,n){let i=n.fillWeight;i<0&&(i=n.strokeWidth/2);const a=e.createElementNS(kc,"path");return a.setAttribute("d",this.opsToPath(r,n.fixedDecimalPlaceDigits)),a.setAttribute("stroke",n.fill||""),a.setAttribute("stroke-width",i+""),a.setAttribute("fill","none"),n.fillLineDash&&a.setAttribute("stroke-dasharray",n.fillLineDash.join(" ").trim()),n.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${n.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(e,r){return this.gen.opsToPath(e,r)}line(e,r,n,i,a){const s=this.gen.line(e,r,n,i,a);return this.draw(s)}rectangle(e,r,n,i,a){const s=this.gen.rectangle(e,r,n,i,a);return this.draw(s)}ellipse(e,r,n,i,a){const s=this.gen.ellipse(e,r,n,i,a);return this.draw(s)}circle(e,r,n,i){const a=this.gen.circle(e,r,n,i);return this.draw(a)}linearPath(e,r){const n=this.gen.linearPath(e,r);return this.draw(n)}polygon(e,r){const n=this.gen.polygon(e,r);return this.draw(n)}arc(e,r,n,i,a,s,o=!1,l){const c=this.gen.arc(e,r,n,i,a,s,o,l);return this.draw(c)}curve(e,r){const n=this.gen.curve(e,r);return this.draw(n)}path(e,r){const n=this.gen.path(e,r);return this.draw(n)}}var ot={canvas:(t,e)=>new M9(t,e),svg:(t,e)=>new A9(t,e),generator:t=>new oh(t),newSeed:()=>oh.newSeed()},bt=x(async(t,e,r)=>{var h,f;let n;const i=e.useHtmlLabels||ye((h=It())==null?void 0:h.htmlLabels);r?n=r:n="node default";const a=t.insert("g").attr("class",n).attr("id",e.domId||e.id),s=a.insert("g").attr("class","label").attr("style",Ke(e.labelStyle));let o;e.label===void 0?o="":o=typeof e.label=="string"?e.label:e.label[0];const l=await ji(s,ga(Ea(o),It()),{useHtmlLabels:i,width:e.width||((f=It().flowchart)==null?void 0:f.wrappingWidth),cssClasses:"markdown-node-label",style:e.labelStyle,addSvgBackground:!!e.icon||!!e.img});let c=l.getBBox();const u=((e==null?void 0:e.padding)??0)/2;if(i){const d=l.children[0],p=Bt(l),g=d.getElementsByTagName("img");if(g){const v=o.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...g].map(m=>new Promise(y=>{function b(){if(m.style.display="flex",m.style.flexDirection="column",v){const S=It().fontSize?It().fontSize:window.getComputedStyle(document.body).fontSize,_=5,[w=t2.fontSize]=Yh(S),T=w*_+"px";m.style.minWidth=T,m.style.maxWidth=T}else m.style.width="100%";y(m)}x(b,"setupImage"),setTimeout(()=>{m.complete&&b()}),m.addEventListener("error",b),m.addEventListener("load",b)})))}c=d.getBoundingClientRect(),p.attr("width",c.width),p.attr("height",c.height)}return i?s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):s.attr("transform","translate(0, "+-c.height/2+")"),e.centerLabel&&s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:a,bbox:c,halfPadding:u,label:s}},"labelHelper"),cf=x(async(t,e,r)=>{var l,c,u,h,f,d;const n=r.useHtmlLabels||ye((c=(l=It())==null?void 0:l.flowchart)==null?void 0:c.htmlLabels),i=t.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await ji(i,ga(Ea(e),It()),{useHtmlLabels:n,width:r.width||((h=(u=It())==null?void 0:u.flowchart)==null?void 0:h.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let s=a.getBBox();const o=r.padding/2;if(ye((d=(f=It())==null?void 0:f.flowchart)==null?void 0:d.htmlLabels)){const p=a.children[0],g=Bt(a);s=p.getBoundingClientRect(),g.attr("width",s.width),g.attr("height",s.height)}return n?i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"):i.attr("transform","translate(0, "+-s.height/2+")"),r.centerLabel&&i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),i.insert("rect",":first-child"),{shapeSvg:t,bbox:s,halfPadding:o,label:i}},"insertLabel"),ut=x((t,e)=>{const r=e.node().getBBox();t.width=r.width,t.height=r.height},"updateNodeBounds"),mt=x((t,e)=>(t.look==="handDrawn"?"rough-node":"node")+" "+t.cssClasses+" "+(e||""),"getNodeClasses");function Nt(t){const e=t.map((r,n)=>`${n===0?"M":"L"}${r.x},${r.y}`);return e.push("Z"),e.join(" ")}x(Nt,"createPathFromPoints");function Pi(t,e,r,n,i,a){const s=[],l=r-t,c=n-e,u=l/a,h=2*Math.PI/u,f=e+c/2;for(let d=0;d<=50;d++){const p=d/50,g=t+p*l,v=f+i*Math.sin(h*(g-t));s.push({x:g,y:v})}return s}x(Pi,"generateFullSineWavePoints");function ky(t,e,r,n,i,a){const s=[],o=i*Math.PI/180,u=(a*Math.PI/180-o)/(n-1);for(let h=0;h<n;h++){const f=o+h*u,d=t+r*Math.cos(f),p=e+r*Math.sin(f);s.push({x:-d,y:-p})}return s}x(ky,"generateCirclePoints");var B9=x((t,e)=>{var r=t.x,n=t.y,i=e.x-r,a=e.y-n,s=t.width/2,o=t.height/2,l,c;return Math.abs(a)*s>Math.abs(i)*o?(a<0&&(o=-o),l=a===0?0:o*i/a,c=o):(i<0&&(s=-s),l=s,c=i===0?0:s*a/i),{x:r+l,y:n+c}},"intersectRect"),qs=B9;function W_(t,e){e&&t.attr("style",e)}x(W_,"applyStyle");async function q_(t){const e=Bt(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),r=e.append("xhtml:div");let n=t.label;t.label&&Es(t.label)&&(n=await Lm(t.label.replace(zs.lineBreakRegex,`
`),It()));const i=t.isNode?"nodeLabel":"edgeLabel";return r.html('<span class="'+i+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+n+"</span>"),W_(r,t.labelStyle),r.style("display","inline-block"),r.style("padding-right","1px"),r.style("white-space","nowrap"),r.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}x(q_,"addHtmlLabel");var N9=x(async(t,e,r,n)=>{let i=t||"";if(typeof i=="object"&&(i=i[0]),ye(It().flowchart.htmlLabels)){i=i.replace(/\\n|\n/g,"<br />"),q.info("vertexText"+i);const a={isNode:n,label:Ea(i).replace(/fa[blrs]?:fa-[\w-]+/g,o=>`<i class='${o.replace(":"," ")}'></i>`),labelStyle:e&&e.replace("fill:","color:")};return await q_(a)}else{const a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",e.replace("color:","fill:"));let s=[];typeof i=="string"?s=i.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(i)?s=i:s=[];for(const o of s){const l=document.createElementNS("http://www.w3.org/2000/svg","tspan");l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),l.setAttribute("dy","1em"),l.setAttribute("x","0"),r?l.setAttribute("class","title-row"):l.setAttribute("class","row"),l.textContent=o.trim(),a.appendChild(l)}return a}},"createLabel"),ia=N9,ii=x((t,e,r,n,i)=>["M",t+i,e,"H",t+r-i,"A",i,i,0,0,1,t+r,e+i,"V",e+n-i,"A",i,i,0,0,1,t+r-i,e+n,"H",t+i,"A",i,i,0,0,1,t,e+n-i,"V",e+i,"A",i,i,0,0,1,t+i,e,"Z"].join(" "),"createRoundedRectPathD"),U_=x(async(t,e)=>{q.info("Creating subgraph rect for ",e.id,e);const r=It(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:s}=n,{labelStyles:o,nodeStyles:l,borderStyles:c,backgroundStyles:u}=ht(e),h=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),f=ye(r.flowchart.htmlLabels),d=h.insert("g").attr("class","cluster-label "),p=await ji(d,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0});let g=p.getBBox();if(ye(r.flowchart.htmlLabels)){const T=p.children[0],N=Bt(p);g=T.getBoundingClientRect(),N.attr("width",g.width),N.attr("height",g.height)}const v=e.width<=g.width+e.padding?g.width+e.padding:e.width;e.width<=g.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;const m=e.height,y=e.x-v/2,b=e.y-m/2;q.trace("Data ",e,JSON.stringify(e));let S;if(e.look==="handDrawn"){const T=ot.svg(h),N=ct(e,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:i}),z=T.path(ii(y,b,v,m,0),N);S=h.insert(()=>(q.debug("Rough node insert CXC",z),z),":first-child"),S.select("path:nth-child(2)").attr("style",c.join(";")),S.select("path").attr("style",u.join(";").replace("fill","stroke"))}else S=h.insert("rect",":first-child"),S.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",y).attr("y",b).attr("width",v).attr("height",m);const{subGraphTitleTopMargin:_}=zm(r);if(d.attr("transform",`translate(${e.x-g.width/2}, ${e.y-e.height/2+_})`),o){const T=d.select("span");T&&T.attr("style",o)}const w=S.node().getBBox();return e.offsetX=0,e.width=w.width,e.height=w.height,e.offsetY=g.height-e.padding/2,e.intersect=function(T){return qs(e,T)},{cluster:h,labelBBox:g}},"rect"),$9=x((t,e)=>{const r=t.insert("g").attr("class","note-cluster").attr("id",e.id),n=r.insert("rect",":first-child"),i=0*e.padding,a=i/2;n.attr("rx",e.rx).attr("ry",e.ry).attr("x",e.x-e.width/2-a).attr("y",e.y-e.height/2-a).attr("width",e.width+i).attr("height",e.height+i).attr("fill","none");const s=n.node().getBBox();return e.width=s.width,e.height=s.height,e.intersect=function(o){return qs(e,o)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),F9=x(async(t,e)=>{const r=It(),{themeVariables:n,handDrawnSeed:i}=r,{altBackground:a,compositeBackground:s,compositeTitleBackground:o,nodeBorder:l}=n,c=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-id",e.id).attr("data-look",e.look),u=c.insert("g",":first-child"),h=c.insert("g").attr("class","cluster-label");let f=c.append("rect");const d=h.node().appendChild(await ia(e.label,e.labelStyle,void 0,!0));let p=d.getBBox();if(ye(r.flowchart.htmlLabels)){const z=d.children[0],I=Bt(d);p=z.getBoundingClientRect(),I.attr("width",p.width),I.attr("height",p.height)}const g=0*e.padding,v=g/2,m=(e.width<=p.width+e.padding?p.width+e.padding:e.width)+g;e.width<=p.width+e.padding?e.diff=(m-e.width)/2-e.padding:e.diff=-e.padding;const y=e.height+g,b=e.height+g-p.height-6,S=e.x-m/2,_=e.y-y/2;e.width=m;const w=e.y-e.height/2-v+p.height+2;let T;if(e.look==="handDrawn"){const z=e.cssClasses.includes("statediagram-cluster-alt"),I=ot.svg(c),A=e.rx||e.ry?I.path(ii(S,_,m,y,10),{roughness:.7,fill:o,fillStyle:"solid",stroke:l,seed:i}):I.rectangle(S,_,m,y,{seed:i});T=c.insert(()=>A,":first-child");const R=I.rectangle(S,w,m,b,{fill:z?a:s,fillStyle:z?"hachure":"solid",stroke:l,seed:i});T=c.insert(()=>A,":first-child"),f=c.insert(()=>R)}else T=u.insert("rect",":first-child"),T.attr("class","outer").attr("x",S).attr("y",_).attr("width",m).attr("height",y).attr("data-look",e.look),f.attr("class","inner").attr("x",S).attr("y",w).attr("width",m).attr("height",b);h.attr("transform",`translate(${e.x-p.width/2}, ${_+1-(ye(r.flowchart.htmlLabels)?0:3)})`);const N=T.node().getBBox();return e.height=N.height,e.offsetX=0,e.offsetY=p.height-e.padding/2,e.labelBBox=p,e.intersect=function(z){return qs(e,z)},{cluster:c,labelBBox:p}},"roundedWithTitle"),P9=x(async(t,e)=>{q.info("Creating subgraph rect for ",e.id,e);const r=It(),{themeVariables:n,handDrawnSeed:i}=r,{clusterBkg:a,clusterBorder:s}=n,{labelStyles:o,nodeStyles:l,borderStyles:c,backgroundStyles:u}=ht(e),h=t.insert("g").attr("class","cluster "+e.cssClasses).attr("id",e.id).attr("data-look",e.look),f=ye(r.flowchart.htmlLabels),d=h.insert("g").attr("class","cluster-label "),p=await ji(d,e.label,{style:e.labelStyle,useHtmlLabels:f,isNode:!0,width:e.width});let g=p.getBBox();if(ye(r.flowchart.htmlLabels)){const T=p.children[0],N=Bt(p);g=T.getBoundingClientRect(),N.attr("width",g.width),N.attr("height",g.height)}const v=e.width<=g.width+e.padding?g.width+e.padding:e.width;e.width<=g.width+e.padding?e.diff=(v-e.width)/2-e.padding:e.diff=-e.padding;const m=e.height,y=e.x-v/2,b=e.y-m/2;q.trace("Data ",e,JSON.stringify(e));let S;if(e.look==="handDrawn"){const T=ot.svg(h),N=ct(e,{roughness:.7,fill:a,stroke:s,fillWeight:4,seed:i}),z=T.path(ii(y,b,v,m,e.rx),N);S=h.insert(()=>(q.debug("Rough node insert CXC",z),z),":first-child"),S.select("path:nth-child(2)").attr("style",c.join(";")),S.select("path").attr("style",u.join(";").replace("fill","stroke"))}else S=h.insert("rect",":first-child"),S.attr("style",l).attr("rx",e.rx).attr("ry",e.ry).attr("x",y).attr("y",b).attr("width",v).attr("height",m);const{subGraphTitleTopMargin:_}=zm(r);if(d.attr("transform",`translate(${e.x-g.width/2}, ${e.y-e.height/2+_})`),o){const T=d.select("span");T&&T.attr("style",o)}const w=S.node().getBBox();return e.offsetX=0,e.width=w.width,e.height=w.height,e.offsetY=g.height-e.padding/2,e.intersect=function(T){return qs(e,T)},{cluster:h,labelBBox:g}},"kanbanSection"),I9=x((t,e)=>{const r=It(),{themeVariables:n,handDrawnSeed:i}=r,{nodeBorder:a}=n,s=t.insert("g").attr("class",e.cssClasses).attr("id",e.id).attr("data-look",e.look),o=s.insert("g",":first-child"),l=0*e.padding,c=e.width+l;e.diff=-e.padding;const u=e.height+l,h=e.x-c/2,f=e.y-u/2;e.width=c;let d;if(e.look==="handDrawn"){const v=ot.svg(s).rectangle(h,f,c,u,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:i});d=s.insert(()=>v,":first-child")}else d=o.insert("rect",":first-child"),d.attr("class","divider").attr("x",h).attr("y",f).attr("width",c).attr("height",u).attr("data-look",e.look);const p=d.node().getBBox();return e.height=p.height,e.offsetX=0,e.offsetY=0,e.intersect=function(g){return qs(e,g)},{cluster:s,labelBBox:{}}},"divider"),R9=U_,O9={rect:U_,squareRect:R9,roundedWithTitle:F9,noteGroup:$9,divider:I9,kanbanSection:P9},V_=new Map,D9=x(async(t,e)=>{const r=e.shape||"rect",n=await O9[r](t,e);return V_.set(e.id,n),n},"insertCluster"),wU=x(()=>{V_=new Map},"clear");function Y_(t,e){return t.intersect(e)}x(Y_,"intersectNode");var z9=Y_;function G_(t,e,r,n){var i=t.x,a=t.y,s=i-n.x,o=a-n.y,l=Math.sqrt(e*e*o*o+r*r*s*s),c=Math.abs(e*r*s/l);n.x<i&&(c=-c);var u=Math.abs(e*r*o/l);return n.y<a&&(u=-u),{x:i+c,y:a+u}}x(G_,"intersectEllipse");var X_=G_;function Q_(t,e,r){return X_(t,e,e,r)}x(Q_,"intersectCircle");var j9=Q_;function K_(t,e,r,n){var i,a,s,o,l,c,u,h,f,d,p,g,v,m,y;if(i=e.y-t.y,s=t.x-e.x,l=e.x*t.y-t.x*e.y,f=i*r.x+s*r.y+l,d=i*n.x+s*n.y+l,!(f!==0&&d!==0&&sg(f,d))&&(a=n.y-r.y,o=r.x-n.x,c=n.x*r.y-r.x*n.y,u=a*t.x+o*t.y+c,h=a*e.x+o*e.y+c,!(u!==0&&h!==0&&sg(u,h))&&(p=i*o-a*s,p!==0)))return g=Math.abs(p/2),v=s*c-o*l,m=v<0?(v-g)/p:(v+g)/p,v=a*l-i*c,y=v<0?(v-g)/p:(v+g)/p,{x:m,y}}x(K_,"intersectLine");function sg(t,e){return t*e>0}x(sg,"sameSign");var H9=K_;function Z_(t,e,r){let n=t.x,i=t.y,a=[],s=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;typeof e.forEach=="function"?e.forEach(function(u){s=Math.min(s,u.x),o=Math.min(o,u.y)}):(s=Math.min(s,e.x),o=Math.min(o,e.y));let l=n-t.width/2-s,c=i-t.height/2-o;for(let u=0;u<e.length;u++){let h=e[u],f=e[u<e.length-1?u+1:0],d=H9(t,r,{x:l+h.x,y:c+h.y},{x:l+f.x,y:c+f.y});d&&a.push(d)}return a.length?(a.length>1&&a.sort(function(u,h){let f=u.x-r.x,d=u.y-r.y,p=Math.sqrt(f*f+d*d),g=h.x-r.x,v=h.y-r.y,m=Math.sqrt(g*g+v*v);return p<m?-1:p===m?0:1}),a[0]):t}x(Z_,"intersectPolygon");var W9=Z_,at={node:z9,circle:j9,ellipse:X_,polygon:W9,rect:qs};function J_(t,e){const{labelStyles:r}=ht(e);e.labelStyle=r;const n=mt(e);let i=n;n||(i="anchor");const a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),s=1,{cssStyles:o}=e,l=ot.svg(a),c=ct(e,{fill:"black",stroke:"none",fillStyle:"solid"});e.look!=="handDrawn"&&(c.roughness=0);const u=l.circle(0,0,s*2,c),h=a.insert(()=>u,":first-child");return h.attr("class","anchor").attr("style",Ke(o)),ut(e,h),e.intersect=function(f){return q.info("Circle intersect",e,s,f),at.circle(e,s,f)},a}x(J_,"anchor");function og(t,e,r,n,i,a,s){const l=(t+r)/2,c=(e+n)/2,u=Math.atan2(n-e,r-t),h=(r-t)/2,f=(n-e)/2,d=h/i,p=f/a,g=Math.sqrt(d**2+p**2);if(g>1)throw new Error("The given radii are too small to create an arc between the points.");const v=Math.sqrt(1-g**2),m=l+v*a*Math.sin(u)*(s?-1:1),y=c-v*i*Math.cos(u)*(s?-1:1),b=Math.atan2((e-y)/a,(t-m)/i);let _=Math.atan2((n-y)/a,(r-m)/i)-b;s&&_<0&&(_+=2*Math.PI),!s&&_>0&&(_-=2*Math.PI);const w=[];for(let T=0;T<20;T++){const N=T/19,z=b+N*_,I=m+i*Math.cos(z),A=y+a*Math.sin(z);w.push({x:I,y:A})}return w}x(og,"generateArcPoints");async function tT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await bt(t,e,mt(e)),s=a.width+e.padding+20,o=a.height+e.padding,l=o/2,c=l/(2.5+o/50),{cssStyles:u}=e,h=[{x:s/2,y:-o/2},{x:-s/2,y:-o/2},...og(-s/2,-o/2,-s/2,o/2,c,l,!1),{x:s/2,y:o/2},...og(s/2,o/2,s/2,-o/2,c,l,!0)],f=ot.svg(i),d=ct(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=Nt(h),g=f.path(p,d),v=i.insert(()=>g,":first-child");return v.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",u),n&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",n),v.attr("transform",`translate(${c/2}, 0)`),ut(e,v),e.intersect=function(m){return at.polygon(e,h,m)},i}x(tT,"bowTieRect");function ai(t,e,r,n){return t.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}x(ai,"insertPolygonShape");async function eT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await bt(t,e,mt(e)),s=a.height+e.padding,o=12,l=a.width+e.padding+o,c=0,u=l,h=-s,f=0,d=[{x:c+o,y:h},{x:u,y:h},{x:u,y:f},{x:c,y:f},{x:c,y:h+o},{x:c+o,y:h}];let p;const{cssStyles:g}=e;if(e.look==="handDrawn"){const v=ot.svg(i),m=ct(e,{}),y=Nt(d),b=v.path(y,m);p=i.insert(()=>b,":first-child").attr("transform",`translate(${-l/2}, ${s/2})`),g&&p.attr("style",g)}else p=ai(i,l,s,d);return n&&p.attr("style",n),ut(e,p),e.intersect=function(v){return at.polygon(e,d,v)},i}x(eT,"card");function rT(t,e){const{nodeStyles:r}=ht(e);e.label="";const n=t.insert("g").attr("class",mt(e)).attr("id",e.domId??e.id),{cssStyles:i}=e,a=Math.max(28,e.width??0),s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],o=ot.svg(n),l=ct(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=Nt(s),u=o.path(c,l),h=n.insert(()=>u,":first-child");return i&&e.look!=="handDrawn"&&h.selectAll("path").attr("style",i),r&&e.look!=="handDrawn"&&h.selectAll("path").attr("style",r),e.width=28,e.height=28,e.intersect=function(f){return at.polygon(e,s,f)},n}x(rT,"choice");async function nT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,halfPadding:s}=await bt(t,e,mt(e)),o=a.width/2+s;let l;const{cssStyles:c}=e;if(e.look==="handDrawn"){const u=ot.svg(i),h=ct(e,{}),f=u.circle(0,0,o*2,h);l=i.insert(()=>f,":first-child"),l.attr("class","basic label-container").attr("style",Ke(c))}else l=i.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",o).attr("cx",0).attr("cy",0);return ut(e,l),e.intersect=function(u){return q.info("Circle intersect",e,o,u),at.circle(e,o,u)},i}x(nT,"circle");function iT(t){const e=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),n=t*2,i={x:n/2*e,y:n/2*r},a={x:-(n/2)*e,y:n/2*r},s={x:-(n/2)*e,y:-(n/2)*r},o={x:n/2*e,y:-(n/2)*r};return`M ${a.x},${a.y} L ${o.x},${o.y}
M ${i.x},${i.y} L ${s.x},${s.y}`}x(iT,"createLine");function aT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r,e.label="";const i=t.insert("g").attr("class",mt(e)).attr("id",e.domId??e.id),a=Math.max(30,(e==null?void 0:e.width)??0),{cssStyles:s}=e,o=ot.svg(i),l=ct(e,{});e.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=o.circle(0,0,a*2,l),u=iT(a),h=o.path(u,l),f=i.insert(()=>c,":first-child");return f.insert(()=>h),s&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",s),n&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",n),ut(e,f),e.intersect=function(d){return q.info("crossedCircle intersect",e,{radius:a,point:d}),at.circle(e,a,d)},i}x(aT,"crossedCircle");function Dn(t,e,r,n=100,i=0,a=180){const s=[],o=i*Math.PI/180,u=(a*Math.PI/180-o)/(n-1);for(let h=0;h<n;h++){const f=o+h*u,d=t+r*Math.cos(f),p=e+r*Math.sin(f);s.push({x:-d,y:-p})}return s}x(Dn,"generateCirclePoints");async function sT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=a.width+(e.padding??0),l=a.height+(e.padding??0),c=Math.max(5,l*.1),{cssStyles:u}=e,h=[...Dn(o/2,-l/2,c,30,-90,0),{x:-o/2-c,y:c},...Dn(o/2+c*2,-c,c,20,-180,-270),...Dn(o/2+c*2,c,c,20,-90,-180),{x:-o/2-c,y:-l/2},...Dn(o/2,l/2,c,20,0,90)],f=[{x:o/2,y:-l/2-c},{x:-o/2,y:-l/2-c},...Dn(o/2,-l/2,c,20,-90,0),{x:-o/2-c,y:-c},...Dn(o/2+o*.1,-c,c,20,-180,-270),...Dn(o/2+o*.1,c,c,20,-90,-180),{x:-o/2-c,y:l/2},...Dn(o/2,l/2,c,20,0,90),{x:-o/2,y:l/2+c},{x:o/2,y:l/2+c}],d=ot.svg(i),p=ct(e,{fill:"none"});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const v=Nt(h).replace("Z",""),m=d.path(v,p),y=Nt(f),b=d.path(y,{...p}),S=i.insert("g",":first-child");return S.insert(()=>b,":first-child").attr("stroke-opacity",0),S.insert(()=>m,":first-child"),S.attr("class","text"),u&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",u),n&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",n),S.attr("transform",`translate(${c}, 0)`),s.attr("transform",`translate(${-o/2+c-(a.x-(a.left??0))},${-l/2+(e.padding??0)/2-(a.y-(a.top??0))})`),ut(e,S),e.intersect=function(_){return at.polygon(e,f,_)},i}x(sT,"curlyBraceLeft");function zn(t,e,r,n=100,i=0,a=180){const s=[],o=i*Math.PI/180,u=(a*Math.PI/180-o)/(n-1);for(let h=0;h<n;h++){const f=o+h*u,d=t+r*Math.cos(f),p=e+r*Math.sin(f);s.push({x:d,y:p})}return s}x(zn,"generateCirclePoints");async function oT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=a.width+(e.padding??0),l=a.height+(e.padding??0),c=Math.max(5,l*.1),{cssStyles:u}=e,h=[...zn(o/2,-l/2,c,20,-90,0),{x:o/2+c,y:-c},...zn(o/2+c*2,-c,c,20,-180,-270),...zn(o/2+c*2,c,c,20,-90,-180),{x:o/2+c,y:l/2},...zn(o/2,l/2,c,20,0,90)],f=[{x:-o/2,y:-l/2-c},{x:o/2,y:-l/2-c},...zn(o/2,-l/2,c,20,-90,0),{x:o/2+c,y:-c},...zn(o/2+c*2,-c,c,20,-180,-270),...zn(o/2+c*2,c,c,20,-90,-180),{x:o/2+c,y:l/2},...zn(o/2,l/2,c,20,0,90),{x:o/2,y:l/2+c},{x:-o/2,y:l/2+c}],d=ot.svg(i),p=ct(e,{fill:"none"});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const v=Nt(h).replace("Z",""),m=d.path(v,p),y=Nt(f),b=d.path(y,{...p}),S=i.insert("g",":first-child");return S.insert(()=>b,":first-child").attr("stroke-opacity",0),S.insert(()=>m,":first-child"),S.attr("class","text"),u&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",u),n&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",n),S.attr("transform",`translate(${-c}, 0)`),s.attr("transform",`translate(${-o/2+(e.padding??0)/2-(a.x-(a.left??0))},${-l/2+(e.padding??0)/2-(a.y-(a.top??0))})`),ut(e,S),e.intersect=function(_){return at.polygon(e,f,_)},i}x(oT,"curlyBraceRight");function ke(t,e,r,n=100,i=0,a=180){const s=[],o=i*Math.PI/180,u=(a*Math.PI/180-o)/(n-1);for(let h=0;h<n;h++){const f=o+h*u,d=t+r*Math.cos(f),p=e+r*Math.sin(f);s.push({x:-d,y:-p})}return s}x(ke,"generateCirclePoints");async function lT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=a.width+(e.padding??0),l=a.height+(e.padding??0),c=Math.max(5,l*.1),{cssStyles:u}=e,h=[...ke(o/2,-l/2,c,30,-90,0),{x:-o/2-c,y:c},...ke(o/2+c*2,-c,c,20,-180,-270),...ke(o/2+c*2,c,c,20,-90,-180),{x:-o/2-c,y:-l/2},...ke(o/2,l/2,c,20,0,90)],f=[...ke(-o/2+c+c/2,-l/2,c,20,-90,-180),{x:o/2-c/2,y:c},...ke(-o/2-c/2,-c,c,20,0,90),...ke(-o/2-c/2,c,c,20,-90,0),{x:o/2-c/2,y:-c},...ke(-o/2+c+c/2,l/2,c,30,-180,-270)],d=[{x:o/2,y:-l/2-c},{x:-o/2,y:-l/2-c},...ke(o/2,-l/2,c,20,-90,0),{x:-o/2-c,y:-c},...ke(o/2+c*2,-c,c,20,-180,-270),...ke(o/2+c*2,c,c,20,-90,-180),{x:-o/2-c,y:l/2},...ke(o/2,l/2,c,20,0,90),{x:-o/2,y:l/2+c},{x:o/2-c-c/2,y:l/2+c},...ke(-o/2+c+c/2,-l/2,c,20,-90,-180),{x:o/2-c/2,y:c},...ke(-o/2-c/2,-c,c,20,0,90),...ke(-o/2-c/2,c,c,20,-90,0),{x:o/2-c/2,y:-c},...ke(-o/2+c+c/2,l/2,c,30,-180,-270)],p=ot.svg(i),g=ct(e,{fill:"none"});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const m=Nt(h).replace("Z",""),y=p.path(m,g),S=Nt(f).replace("Z",""),_=p.path(S,g),w=Nt(d),T=p.path(w,{...g}),N=i.insert("g",":first-child");return N.insert(()=>T,":first-child").attr("stroke-opacity",0),N.insert(()=>y,":first-child"),N.insert(()=>_,":first-child"),N.attr("class","text"),u&&e.look!=="handDrawn"&&N.selectAll("path").attr("style",u),n&&e.look!=="handDrawn"&&N.selectAll("path").attr("style",n),N.attr("transform",`translate(${c-c/4}, 0)`),s.attr("transform",`translate(${-o/2+(e.padding??0)/2-(a.x-(a.left??0))},${-l/2+(e.padding??0)/2-(a.y-(a.top??0))})`),ut(e,N),e.intersect=function(z){return at.polygon(e,d,z)},i}x(lT,"curlyBraces");async function cT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await bt(t,e,mt(e)),s=80,o=20,l=Math.max(s,(a.width+(e.padding??0)*2)*1.25,(e==null?void 0:e.width)??0),c=Math.max(o,a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),u=c/2,{cssStyles:h}=e,f=ot.svg(i),d=ct(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=l,g=c,v=p-u,m=g/4,y=[{x:v,y:0},{x:m,y:0},{x:0,y:g/2},{x:m,y:g},{x:v,y:g},...ky(-v,-g/2,u,50,270,90)],b=Nt(y),S=f.path(b,d),_=i.insert(()=>S,":first-child");return _.attr("class","basic label-container"),h&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",h),n&&e.look!=="handDrawn"&&_.selectChildren("path").attr("style",n),_.attr("transform",`translate(${-l/2}, ${-c/2})`),ut(e,_),e.intersect=function(w){return at.polygon(e,y,w)},i}x(cT,"curvedTrapezoid");var q9=x((t,e,r,n,i,a)=>[`M${t},${e+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createCylinderPathD"),U9=x((t,e,r,n,i,a)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`].join(" "),"createOuterCylinderPathD"),V9=x((t,e,r,n,i,a)=>[`M${t-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function uT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=Math.max(a.width+e.padding,e.width??0),l=o/2,c=l/(2.5+o/50),u=Math.max(a.height+c+e.padding,e.height??0);let h;const{cssStyles:f}=e;if(e.look==="handDrawn"){const d=ot.svg(i),p=U9(0,0,o,u,l,c),g=V9(0,c,o,u,l,c),v=d.path(p,ct(e,{})),m=d.path(g,ct(e,{fill:"none"}));h=i.insert(()=>m,":first-child"),h=i.insert(()=>v,":first-child"),h.attr("class","basic label-container"),f&&h.attr("style",f)}else{const d=q9(0,0,o,u,l,c);h=i.insert("path",":first-child").attr("d",d).attr("class","basic label-container").attr("style",Ke(f)).attr("style",n)}return h.attr("label-offset-y",c),h.attr("transform",`translate(${-o/2}, ${-(u/2+c)})`),ut(e,h),s.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+(e.padding??0)/1.5-(a.y-(a.top??0))})`),e.intersect=function(d){const p=at.rect(e,d),g=p.x-(e.x??0);if(l!=0&&(Math.abs(g)<(e.width??0)/2||Math.abs(g)==(e.width??0)/2&&Math.abs(p.y-(e.y??0))>(e.height??0)/2-c)){let v=c*c*(1-g*g/(l*l));v>0&&(v=Math.sqrt(v)),v=c-v,d.y-(e.y??0)>0&&(v=-v),p.y+=v}return p},i}x(uT,"cylinder");async function hT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=a.width+e.padding,l=a.height+e.padding,c=l*.2,u=-o/2,h=-l/2-c/2,{cssStyles:f}=e,d=ot.svg(i),p=ct(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:u,y:h+c},{x:-u,y:h+c},{x:-u,y:-h},{x:u,y:-h},{x:u,y:h},{x:-u,y:h},{x:-u,y:h+c}],v=d.polygon(g.map(y=>[y.x,y.y]),p),m=i.insert(()=>v,":first-child");return m.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",n),s.attr("transform",`translate(${u+(e.padding??0)/2-(a.x-(a.left??0))}, ${h+c+(e.padding??0)/2-(a.y-(a.top??0))})`),ut(e,m),e.intersect=function(y){return at.rect(e,y)},i}x(hT,"dividedRectangle");async function dT(t,e){var f,d;const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,halfPadding:s}=await bt(t,e,mt(e)),l=a.width/2+s+5,c=a.width/2+s;let u;const{cssStyles:h}=e;if(e.look==="handDrawn"){const p=ot.svg(i),g=ct(e,{roughness:.2,strokeWidth:2.5}),v=ct(e,{roughness:.2,strokeWidth:1.5}),m=p.circle(0,0,l*2,g),y=p.circle(0,0,c*2,v);u=i.insert("g",":first-child"),u.attr("class",Ke(e.cssClasses)).attr("style",Ke(h)),(f=u.node())==null||f.appendChild(m),(d=u.node())==null||d.appendChild(y)}else{u=i.insert("g",":first-child");const p=u.insert("circle",":first-child"),g=u.insert("circle");u.attr("class","basic label-container").attr("style",n),p.attr("class","outer-circle").attr("style",n).attr("r",l).attr("cx",0).attr("cy",0),g.attr("class","inner-circle").attr("style",n).attr("r",c).attr("cx",0).attr("cy",0)}return ut(e,u),e.intersect=function(p){return q.info("DoubleCircle intersect",e,l,p),at.circle(e,l,p)},i}x(dT,"doublecircle");function fT(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=ht(e);e.label="",e.labelStyle=n;const a=t.insert("g").attr("class",mt(e)).attr("id",e.domId??e.id),s=7,{cssStyles:o}=e,l=ot.svg(a),{nodeBorder:c}=r,u=ct(e,{fillStyle:"solid"});e.look!=="handDrawn"&&(u.roughness=0);const h=l.circle(0,0,s*2,u),f=a.insert(()=>h,":first-child");return f.selectAll("path").attr("style",`fill: ${c} !important;`),o&&o.length>0&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",o),i&&e.look!=="handDrawn"&&f.selectAll("path").attr("style",i),ut(e,f),e.intersect=function(d){return q.info("filledCircle intersect",e,{radius:s,point:d}),at.circle(e,s,d)},a}x(fT,"filledCircle");async function pT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=a.width+(e.padding??0),l=o+a.height,c=o+a.height,u=[{x:0,y:-l},{x:c,y:-l},{x:c/2,y:0}],{cssStyles:h}=e,f=ot.svg(i),d=ct(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=Nt(u),g=f.path(p,d),v=i.insert(()=>g,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`);return h&&e.look!=="handDrawn"&&v.selectChildren("path").attr("style",h),n&&e.look!=="handDrawn"&&v.selectChildren("path").attr("style",n),e.width=o,e.height=l,ut(e,v),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-l/2+(e.padding??0)/2+(a.y-(a.top??0))})`),e.intersect=function(m){return q.info("Triangle intersect",e,u,m),at.polygon(e,u,m)},i}x(pT,"flippedTriangle");function gT(t,e,{dir:r,config:{state:n,themeVariables:i}}){const{nodeStyles:a}=ht(e);e.label="";const s=t.insert("g").attr("class",mt(e)).attr("id",e.domId??e.id),{cssStyles:o}=e;let l=Math.max(70,(e==null?void 0:e.width)??0),c=Math.max(10,(e==null?void 0:e.height)??0);r==="LR"&&(l=Math.max(10,(e==null?void 0:e.width)??0),c=Math.max(70,(e==null?void 0:e.height)??0));const u=-1*l/2,h=-1*c/2,f=ot.svg(s),d=ct(e,{stroke:i.lineColor,fill:i.lineColor});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=f.rectangle(u,h,l,c,d),g=s.insert(()=>p,":first-child");o&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",o),a&&e.look!=="handDrawn"&&g.selectAll("path").attr("style",a),ut(e,g);const v=(n==null?void 0:n.padding)??0;return e.width&&e.height&&(e.width+=v/2||0,e.height+=v/2||0),e.intersect=function(m){return at.rect(e,m)},s}x(gT,"forkJoin");async function mT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const i=80,a=50,{shapeSvg:s,bbox:o}=await bt(t,e,mt(e)),l=Math.max(i,o.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),c=Math.max(a,o.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),u=c/2,{cssStyles:h}=e,f=ot.svg(s),d=ct(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=[{x:-l/2,y:-c/2},{x:l/2-u,y:-c/2},...ky(-l/2+u,0,u,50,90,270),{x:l/2-u,y:c/2},{x:-l/2,y:c/2}],g=Nt(p),v=f.path(g,d),m=s.insert(()=>v,":first-child");return m.attr("class","basic label-container"),h&&e.look!=="handDrawn"&&m.selectChildren("path").attr("style",h),n&&e.look!=="handDrawn"&&m.selectChildren("path").attr("style",n),ut(e,m),e.intersect=function(y){return q.info("Pill intersect",e,{radius:u,point:y}),at.polygon(e,p,y)},s}x(mT,"halfRoundedRectangle");var Y9=x((t,e,r,n,i)=>[`M${t+i},${e}`,`L${t+r-i},${e}`,`L${t+r},${e-n/2}`,`L${t+r-i},${e-n}`,`L${t+i},${e-n}`,`L${t},${e-n/2}`,"Z"].join(" "),"createHexagonPathD");async function yT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await bt(t,e,mt(e)),s=4,o=a.height+e.padding,l=o/s,c=a.width+2*l+e.padding,u=[{x:l,y:0},{x:c-l,y:0},{x:c,y:-o/2},{x:c-l,y:-o},{x:l,y:-o},{x:0,y:-o/2}];let h;const{cssStyles:f}=e;if(e.look==="handDrawn"){const d=ot.svg(i),p=ct(e,{}),g=Y9(0,0,c,o,l),v=d.path(g,p);h=i.insert(()=>v,":first-child").attr("transform",`translate(${-c/2}, ${o/2})`),f&&h.attr("style",f)}else h=ai(i,c,o,u);return n&&h.attr("style",n),e.width=c,e.height=o,ut(e,h),e.intersect=function(d){return at.polygon(e,u,d)},i}x(yT,"hexagon");async function xT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.label="",e.labelStyle=r;const{shapeSvg:i}=await bt(t,e,mt(e)),a=Math.max(30,(e==null?void 0:e.width)??0),s=Math.max(30,(e==null?void 0:e.height)??0),{cssStyles:o}=e,l=ot.svg(i),c=ct(e,{});e.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const u=[{x:0,y:0},{x:a,y:0},{x:0,y:s},{x:a,y:s}],h=Nt(u),f=l.path(h,c),d=i.insert(()=>f,":first-child");return d.attr("class","basic label-container"),o&&e.look!=="handDrawn"&&d.selectChildren("path").attr("style",o),n&&e.look!=="handDrawn"&&d.selectChildren("path").attr("style",n),d.attr("transform",`translate(${-a/2}, ${-s/2})`),ut(e,d),e.intersect=function(p){return q.info("Pill intersect",e,{points:u}),at.polygon(e,u,p)},i}x(xT,"hourglass");async function vT(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=ht(e);e.labelStyle=i;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=n==null?void 0:n.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:c,bbox:u,label:h}=await bt(t,e,"icon-shape default"),f=e.pos==="t",d=o,p=o,{nodeBorder:g}=r,{stylesMap:v}=js(e),m=-p/2,y=-d/2,b=e.label?8:0,S=ot.svg(c),_=ct(e,{stroke:"none",fill:"none"});e.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const w=S.rectangle(m,y,p,d,_),T=Math.max(p,u.width),N=d+u.height+b,z=S.rectangle(-T/2,-N/2,T,N,{..._,fill:"transparent",stroke:"none"}),I=c.insert(()=>w,":first-child"),A=c.insert(()=>z);if(e.icon){const R=c.append("g");R.html(`<g>${await jl(e.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const j=R.node().getBBox(),P=j.width,$=j.height,M=j.x,D=j.y;R.attr("transform",`translate(${-P/2-M},${f?u.height/2+b/2-$/2-D:-u.height/2-b/2-$/2-D})`),R.attr("style",`color: ${v.get("stroke")??g};`)}return h.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${f?-N/2:N/2-u.height})`),I.attr("transform",`translate(0,${f?u.height/2+b/2:-u.height/2-b/2})`),ut(e,A),e.intersect=function(R){if(q.info("iconSquare intersect",e,R),!e.label)return at.rect(e,R);const j=e.x??0,P=e.y??0,$=e.height??0;let M=[];return f?M=[{x:j-u.width/2,y:P-$/2},{x:j+u.width/2,y:P-$/2},{x:j+u.width/2,y:P-$/2+u.height+b},{x:j+p/2,y:P-$/2+u.height+b},{x:j+p/2,y:P+$/2},{x:j-p/2,y:P+$/2},{x:j-p/2,y:P-$/2+u.height+b},{x:j-u.width/2,y:P-$/2+u.height+b}]:M=[{x:j-p/2,y:P-$/2},{x:j+p/2,y:P-$/2},{x:j+p/2,y:P-$/2+d},{x:j+u.width/2,y:P-$/2+d},{x:j+u.width/2/2,y:P+$/2},{x:j-u.width/2,y:P+$/2},{x:j-u.width/2,y:P-$/2+d},{x:j-p/2,y:P-$/2+d}],at.polygon(e,M,R)},c}x(vT,"icon");async function bT(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=ht(e);e.labelStyle=i;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=n==null?void 0:n.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:c,bbox:u,label:h}=await bt(t,e,"icon-shape default"),f=20,d=e.label?8:0,p=e.pos==="t",{nodeBorder:g,mainBkg:v}=r,{stylesMap:m}=js(e),y=ot.svg(c),b=ct(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const S=m.get("fill");b.stroke=S??v;const _=c.append("g");e.icon&&_.html(`<g>${await jl(e.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const w=_.node().getBBox(),T=w.width,N=w.height,z=w.x,I=w.y,A=Math.max(T,N)*Math.SQRT2+f*2,R=y.circle(0,0,A,b),j=Math.max(A,u.width),P=A+u.height+d,$=y.rectangle(-j/2,-P/2,j,P,{...b,fill:"transparent",stroke:"none"}),M=c.insert(()=>R,":first-child"),D=c.insert(()=>$);return _.attr("transform",`translate(${-T/2-z},${p?u.height/2+d/2-N/2-I:-u.height/2-d/2-N/2-I})`),_.attr("style",`color: ${m.get("stroke")??g};`),h.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${p?-P/2:P/2-u.height})`),M.attr("transform",`translate(0,${p?u.height/2+d/2:-u.height/2-d/2})`),ut(e,D),e.intersect=function(L){return q.info("iconSquare intersect",e,L),at.rect(e,L)},c}x(bT,"iconCircle");async function wT(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=ht(e);e.labelStyle=i;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=n==null?void 0:n.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:c,bbox:u,halfPadding:h,label:f}=await bt(t,e,"icon-shape default"),d=e.pos==="t",p=o+h*2,g=o+h*2,{nodeBorder:v,mainBkg:m}=r,{stylesMap:y}=js(e),b=-g/2,S=-p/2,_=e.label?8:0,w=ot.svg(c),T=ct(e,{});e.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const N=y.get("fill");T.stroke=N??m;const z=w.path(ii(b,S,g,p,5),T),I=Math.max(g,u.width),A=p+u.height+_,R=w.rectangle(-I/2,-A/2,I,A,{...T,fill:"transparent",stroke:"none"}),j=c.insert(()=>z,":first-child").attr("class","icon-shape2"),P=c.insert(()=>R);if(e.icon){const $=c.append("g");$.html(`<g>${await jl(e.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const M=$.node().getBBox(),D=M.width,L=M.height,F=M.x,C=M.y;$.attr("transform",`translate(${-D/2-F},${d?u.height/2+_/2-L/2-C:-u.height/2-_/2-L/2-C})`),$.attr("style",`color: ${y.get("stroke")??v};`)}return f.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${d?-A/2:A/2-u.height})`),j.attr("transform",`translate(0,${d?u.height/2+_/2:-u.height/2-_/2})`),ut(e,P),e.intersect=function($){if(q.info("iconSquare intersect",e,$),!e.label)return at.rect(e,$);const M=e.x??0,D=e.y??0,L=e.height??0;let F=[];return d?F=[{x:M-u.width/2,y:D-L/2},{x:M+u.width/2,y:D-L/2},{x:M+u.width/2,y:D-L/2+u.height+_},{x:M+g/2,y:D-L/2+u.height+_},{x:M+g/2,y:D+L/2},{x:M-g/2,y:D+L/2},{x:M-g/2,y:D-L/2+u.height+_},{x:M-u.width/2,y:D-L/2+u.height+_}]:F=[{x:M-g/2,y:D-L/2},{x:M+g/2,y:D-L/2},{x:M+g/2,y:D-L/2+p},{x:M+u.width/2,y:D-L/2+p},{x:M+u.width/2/2,y:D+L/2},{x:M-u.width/2,y:D+L/2},{x:M-u.width/2,y:D-L/2+p},{x:M-g/2,y:D-L/2+p}],at.polygon(e,F,$)},c}x(wT,"iconRounded");async function kT(t,e,{config:{themeVariables:r,flowchart:n}}){const{labelStyles:i}=ht(e);e.labelStyle=i;const a=e.assetHeight??48,s=e.assetWidth??48,o=Math.max(a,s),l=n==null?void 0:n.wrappingWidth;e.width=Math.max(o,l??0);const{shapeSvg:c,bbox:u,halfPadding:h,label:f}=await bt(t,e,"icon-shape default"),d=e.pos==="t",p=o+h*2,g=o+h*2,{nodeBorder:v,mainBkg:m}=r,{stylesMap:y}=js(e),b=-g/2,S=-p/2,_=e.label?8:0,w=ot.svg(c),T=ct(e,{});e.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const N=y.get("fill");T.stroke=N??m;const z=w.path(ii(b,S,g,p,.1),T),I=Math.max(g,u.width),A=p+u.height+_,R=w.rectangle(-I/2,-A/2,I,A,{...T,fill:"transparent",stroke:"none"}),j=c.insert(()=>z,":first-child"),P=c.insert(()=>R);if(e.icon){const $=c.append("g");$.html(`<g>${await jl(e.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const M=$.node().getBBox(),D=M.width,L=M.height,F=M.x,C=M.y;$.attr("transform",`translate(${-D/2-F},${d?u.height/2+_/2-L/2-C:-u.height/2-_/2-L/2-C})`),$.attr("style",`color: ${y.get("stroke")??v};`)}return f.attr("transform",`translate(${-u.width/2-(u.x-(u.left??0))},${d?-A/2:A/2-u.height})`),j.attr("transform",`translate(0,${d?u.height/2+_/2:-u.height/2-_/2})`),ut(e,P),e.intersect=function($){if(q.info("iconSquare intersect",e,$),!e.label)return at.rect(e,$);const M=e.x??0,D=e.y??0,L=e.height??0;let F=[];return d?F=[{x:M-u.width/2,y:D-L/2},{x:M+u.width/2,y:D-L/2},{x:M+u.width/2,y:D-L/2+u.height+_},{x:M+g/2,y:D-L/2+u.height+_},{x:M+g/2,y:D+L/2},{x:M-g/2,y:D+L/2},{x:M-g/2,y:D-L/2+u.height+_},{x:M-u.width/2,y:D-L/2+u.height+_}]:F=[{x:M-g/2,y:D-L/2},{x:M+g/2,y:D-L/2},{x:M+g/2,y:D-L/2+p},{x:M+u.width/2,y:D-L/2+p},{x:M+u.width/2/2,y:D+L/2},{x:M-u.width/2,y:D+L/2},{x:M-u.width/2,y:D-L/2+p},{x:M-g/2,y:D-L/2+p}],at.polygon(e,F,$)},c}x(kT,"iconSquare");async function CT(t,e,{config:{flowchart:r}}){const n=new Image;n.src=(e==null?void 0:e.img)??"",await n.decode();const i=Number(n.naturalWidth.toString().replace("px","")),a=Number(n.naturalHeight.toString().replace("px",""));e.imageAspectRatio=i/a;const{labelStyles:s}=ht(e);e.labelStyle=s;const o=r==null?void 0:r.wrappingWidth;e.defaultWidth=r==null?void 0:r.wrappingWidth;const l=Math.max(e.label?o??0:0,(e==null?void 0:e.assetWidth)??i),c=e.constraint==="on"&&e!=null&&e.assetHeight?e.assetHeight*e.imageAspectRatio:l,u=e.constraint==="on"?c/e.imageAspectRatio:(e==null?void 0:e.assetHeight)??a;e.width=Math.max(c,o??0);const{shapeSvg:h,bbox:f,label:d}=await bt(t,e,"image-shape default"),p=e.pos==="t",g=-c/2,v=-u/2,m=e.label?8:0,y=ot.svg(h),b=ct(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const S=y.rectangle(g,v,c,u,b),_=Math.max(c,f.width),w=u+f.height+m,T=y.rectangle(-_/2,-w/2,_,w,{...b,fill:"none",stroke:"none"}),N=h.insert(()=>S,":first-child"),z=h.insert(()=>T);if(e.img){const I=h.append("image");I.attr("href",e.img),I.attr("width",c),I.attr("height",u),I.attr("preserveAspectRatio","none"),I.attr("transform",`translate(${-c/2},${p?w/2-u:-w/2})`)}return d.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${p?-u/2-f.height/2-m/2:u/2-f.height/2+m/2})`),N.attr("transform",`translate(0,${p?f.height/2+m/2:-f.height/2-m/2})`),ut(e,z),e.intersect=function(I){if(q.info("iconSquare intersect",e,I),!e.label)return at.rect(e,I);const A=e.x??0,R=e.y??0,j=e.height??0;let P=[];return p?P=[{x:A-f.width/2,y:R-j/2},{x:A+f.width/2,y:R-j/2},{x:A+f.width/2,y:R-j/2+f.height+m},{x:A+c/2,y:R-j/2+f.height+m},{x:A+c/2,y:R+j/2},{x:A-c/2,y:R+j/2},{x:A-c/2,y:R-j/2+f.height+m},{x:A-f.width/2,y:R-j/2+f.height+m}]:P=[{x:A-c/2,y:R-j/2},{x:A+c/2,y:R-j/2},{x:A+c/2,y:R-j/2+u},{x:A+f.width/2,y:R-j/2+u},{x:A+f.width/2/2,y:R+j/2},{x:A-f.width/2,y:R+j/2},{x:A-f.width/2,y:R-j/2+u},{x:A-c/2,y:R-j/2+u}],at.polygon(e,P,I)},h}x(CT,"imageSquare");async function ST(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await bt(t,e,mt(e)),s=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),o=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),l=[{x:0,y:0},{x:s,y:0},{x:s+3*o/6,y:-o},{x:-3*o/6,y:-o}];let c;const{cssStyles:u}=e;if(e.look==="handDrawn"){const h=ot.svg(i),f=ct(e,{}),d=Nt(l),p=h.path(d,f);c=i.insert(()=>p,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),u&&c.attr("style",u)}else c=ai(i,s,o,l);return n&&c.attr("style",n),e.width=s,e.height=o,ut(e,c),e.intersect=function(h){return at.polygon(e,l,h)},i}x(ST,"inv_trapezoid");async function Wl(t,e,r){const{labelStyles:n,nodeStyles:i}=ht(e);e.labelStyle=n;const{shapeSvg:a,bbox:s}=await bt(t,e,mt(e)),o=Math.max(s.width+r.labelPaddingX*2,(e==null?void 0:e.width)||0),l=Math.max(s.height+r.labelPaddingY*2,(e==null?void 0:e.height)||0),c=-o/2,u=-l/2;let h,{rx:f,ry:d}=e;const{cssStyles:p}=e;if(r!=null&&r.rx&&r.ry&&(f=r.rx,d=r.ry),e.look==="handDrawn"){const g=ot.svg(a),v=ct(e,{}),m=f||d?g.path(ii(c,u,o,l,f||0),v):g.rectangle(c,u,o,l,v);h=a.insert(()=>m,":first-child"),h.attr("class","basic label-container").attr("style",Ke(p))}else h=a.insert("rect",":first-child"),h.attr("class","basic label-container").attr("style",i).attr("rx",Ke(f)).attr("ry",Ke(d)).attr("x",c).attr("y",u).attr("width",o).attr("height",l);return ut(e,h),e.intersect=function(g){return at.rect(e,g)},a}x(Wl,"drawRect");async function _T(t,e){const{shapeSvg:r,bbox:n,label:i}=await bt(t,e,"label"),a=r.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),i.attr("transform",`translate(${-(n.width/2)-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),ut(e,a),e.intersect=function(l){return at.rect(e,l)},r}x(_T,"labelRect");async function TT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await bt(t,e,mt(e)),s=Math.max(a.width+(e.padding??0),(e==null?void 0:e.width)??0),o=Math.max(a.height+(e.padding??0),(e==null?void 0:e.height)??0),l=[{x:0,y:0},{x:s+3*o/6,y:0},{x:s,y:-o},{x:-(3*o)/6,y:-o}];let c;const{cssStyles:u}=e;if(e.look==="handDrawn"){const h=ot.svg(i),f=ct(e,{}),d=Nt(l),p=h.path(d,f);c=i.insert(()=>p,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),u&&c.attr("style",u)}else c=ai(i,s,o,l);return n&&c.attr("style",n),e.width=s,e.height=o,ut(e,c),e.intersect=function(h){return at.polygon(e,l,h)},i}x(TT,"lean_left");async function ET(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await bt(t,e,mt(e)),s=Math.max(a.width+(e.padding??0),(e==null?void 0:e.width)??0),o=Math.max(a.height+(e.padding??0),(e==null?void 0:e.height)??0),l=[{x:-3*o/6,y:0},{x:s,y:0},{x:s+3*o/6,y:-o},{x:0,y:-o}];let c;const{cssStyles:u}=e;if(e.look==="handDrawn"){const h=ot.svg(i),f=ct(e,{}),d=Nt(l),p=h.path(d,f);c=i.insert(()=>p,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),u&&c.attr("style",u)}else c=ai(i,s,o,l);return n&&c.attr("style",n),e.width=s,e.height=o,ut(e,c),e.intersect=function(h){return at.polygon(e,l,h)},i}x(ET,"lean_right");function LT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.label="",e.labelStyle=r;const i=t.insert("g").attr("class",mt(e)).attr("id",e.domId??e.id),{cssStyles:a}=e,s=Math.max(35,(e==null?void 0:e.width)??0),o=Math.max(35,(e==null?void 0:e.height)??0),l=7,c=[{x:s,y:0},{x:0,y:o+l/2},{x:s-2*l,y:o+l/2},{x:0,y:2*o},{x:s,y:o-l/2},{x:2*l,y:o-l/2}],u=ot.svg(i),h=ct(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const f=Nt(c),d=u.path(f,h),p=i.insert(()=>d,":first-child");return a&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",a),n&&e.look!=="handDrawn"&&p.selectAll("path").attr("style",n),p.attr("transform",`translate(-${s/2},${-o})`),ut(e,p),e.intersect=function(g){return q.info("lightningBolt intersect",e,g),at.polygon(e,c,g)},i}x(LT,"lightningBolt");var G9=x((t,e,r,n,i,a,s)=>[`M${t},${e+a}`,`a${i},${a} 0,0,0 ${r},0`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`,`M${t},${e+a+s}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),X9=x((t,e,r,n,i,a,s)=>[`M${t},${e+a}`,`M${t+r},${e+a}`,`a${i},${a} 0,0,0 ${-r},0`,`l0,${n}`,`a${i},${a} 0,0,0 ${r},0`,`l0,${-n}`,`M${t},${e+a+s}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),Q9=x((t,e,r,n,i,a)=>[`M${t-r/2},${-n/2}`,`a${i},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD");async function MT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=Math.max(a.width+(e.padding??0),e.width??0),l=o/2,c=l/(2.5+o/50),u=Math.max(a.height+c+(e.padding??0),e.height??0),h=u*.1;let f;const{cssStyles:d}=e;if(e.look==="handDrawn"){const p=ot.svg(i),g=X9(0,0,o,u,l,c,h),v=Q9(0,c,o,u,l,c),m=ct(e,{}),y=p.path(g,m),b=p.path(v,m);i.insert(()=>b,":first-child").attr("class","line"),f=i.insert(()=>y,":first-child"),f.attr("class","basic label-container"),d&&f.attr("style",d)}else{const p=G9(0,0,o,u,l,c,h);f=i.insert("path",":first-child").attr("d",p).attr("class","basic label-container").attr("style",Ke(d)).attr("style",n)}return f.attr("label-offset-y",c),f.attr("transform",`translate(${-o/2}, ${-(u/2+c)})`),ut(e,f),s.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+c-(a.y-(a.top??0))})`),e.intersect=function(p){const g=at.rect(e,p),v=g.x-(e.x??0);if(l!=0&&(Math.abs(v)<(e.width??0)/2||Math.abs(v)==(e.width??0)/2&&Math.abs(g.y-(e.y??0))>(e.height??0)/2-c)){let m=c*c*(1-v*v/(l*l));m>0&&(m=Math.sqrt(m)),m=c-m,p.y-(e.y??0)>0&&(m=-m),g.y+=m}return g},i}x(MT,"linedCylinder");async function AT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),l=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),c=l/4,u=l+c,{cssStyles:h}=e,f=ot.svg(i),d=ct(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=[{x:-o/2-o/2*.1,y:-u/2},{x:-o/2-o/2*.1,y:u/2},...Pi(-o/2-o/2*.1,u/2,o/2+o/2*.1,u/2,c,.8),{x:o/2+o/2*.1,y:-u/2},{x:-o/2-o/2*.1,y:-u/2},{x:-o/2,y:-u/2},{x:-o/2,y:u/2*1.1},{x:-o/2,y:-u/2}],g=f.polygon(p.map(m=>[m.x,m.y]),d),v=i.insert(()=>g,":first-child");return v.attr("class","basic label-container"),h&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",h),n&&e.look!=="handDrawn"&&v.selectAll("path").attr("style",n),v.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-o/2+(e.padding??0)+o/2*.1/2-(a.x-(a.left??0))},${-l/2+(e.padding??0)-c/2-(a.y-(a.top??0))})`),ut(e,v),e.intersect=function(m){return at.polygon(e,p,m)},i}x(AT,"linedWaveEdgedRect");async function BT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),l=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),c=5,u=-o/2,h=-l/2,{cssStyles:f}=e,d=ot.svg(i),p=ct(e,{}),g=[{x:u-c,y:h+c},{x:u-c,y:h+l+c},{x:u+o-c,y:h+l+c},{x:u+o-c,y:h+l},{x:u+o,y:h+l},{x:u+o,y:h+l-c},{x:u+o+c,y:h+l-c},{x:u+o+c,y:h-c},{x:u+c,y:h-c},{x:u+c,y:h},{x:u,y:h},{x:u,y:h+c}],v=[{x:u,y:h+c},{x:u+o-c,y:h+c},{x:u+o-c,y:h+l},{x:u+o,y:h+l},{x:u+o,y:h},{x:u,y:h}];e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=Nt(g),y=d.path(m,p),b=Nt(v),S=d.path(b,{...p,fill:"none"}),_=i.insert(()=>S,":first-child");return _.insert(()=>y,":first-child"),_.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",n),s.attr("transform",`translate(${-(a.width/2)-c-(a.x-(a.left??0))}, ${-(a.height/2)+c-(a.y-(a.top??0))})`),ut(e,_),e.intersect=function(w){return at.polygon(e,g,w)},i}x(BT,"multiRect");async function NT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),l=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),c=l/4,u=l+c,h=-o/2,f=-u/2,d=5,{cssStyles:p}=e,g=Pi(h-d,f+u+d,h+o-d,f+u+d,c,.8),v=g==null?void 0:g[g.length-1],m=[{x:h-d,y:f+d},{x:h-d,y:f+u+d},...g,{x:h+o-d,y:v.y-d},{x:h+o,y:v.y-d},{x:h+o,y:v.y-2*d},{x:h+o+d,y:v.y-2*d},{x:h+o+d,y:f-d},{x:h+d,y:f-d},{x:h+d,y:f},{x:h,y:f},{x:h,y:f+d}],y=[{x:h,y:f+d},{x:h+o-d,y:f+d},{x:h+o-d,y:v.y-d},{x:h+o,y:v.y-d},{x:h+o,y:f},{x:h,y:f}],b=ot.svg(i),S=ct(e,{});e.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const _=Nt(m),w=b.path(_,S),T=Nt(y),N=b.path(T,S),z=i.insert(()=>w,":first-child");return z.insert(()=>N),z.attr("class","basic label-container"),p&&e.look!=="handDrawn"&&z.selectAll("path").attr("style",p),n&&e.look!=="handDrawn"&&z.selectAll("path").attr("style",n),z.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-(a.width/2)-d-(a.x-(a.left??0))}, ${-(a.height/2)+d-c/2-(a.y-(a.top??0))})`),ut(e,z),e.intersect=function(I){return at.polygon(e,m,I)},i}x(NT,"multiWaveEdgedRectangle");async function $T(t,e,{config:{themeVariables:r}}){var y;const{labelStyles:n,nodeStyles:i}=ht(e);e.labelStyle=n,e.useHtmlLabels||((y=mr().flowchart)==null?void 0:y.htmlLabels)!==!1||(e.centerLabel=!0);const{shapeSvg:s,bbox:o,label:l}=await bt(t,e,mt(e)),c=Math.max(o.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),u=Math.max(o.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),h=-c/2,f=-u/2,{cssStyles:d}=e,p=ot.svg(s),g=ct(e,{fill:r.noteBkgColor,stroke:r.noteBorderColor});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const v=p.rectangle(h,f,c,u,g),m=s.insert(()=>v,":first-child");return m.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",d),i&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",i),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),ut(e,m),e.intersect=function(b){return at.rect(e,b)},s}x($T,"note");var K9=x((t,e,r)=>[`M${t+r/2},${e}`,`L${t+r},${e-r/2}`,`L${t+r/2},${e-r}`,`L${t},${e-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function FT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await bt(t,e,mt(e)),s=a.width+e.padding,o=a.height+e.padding,l=s+o,c=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let u;const{cssStyles:h}=e;if(e.look==="handDrawn"){const f=ot.svg(i),d=ct(e,{}),p=K9(0,0,l),g=f.path(p,d);u=i.insert(()=>g,":first-child").attr("transform",`translate(${-l/2}, ${l/2})`),h&&u.attr("style",h)}else u=ai(i,l,l,c);return n&&u.attr("style",n),ut(e,u),e.intersect=function(f){return q.debug(`APA12 Intersect called SPLIT
point:`,f,`
node:
`,e,`
res:`,at.polygon(e,c,f)),at.polygon(e,c,f)},i}x(FT,"question");async function PT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=Math.max(a.width+(e.padding??0),(e==null?void 0:e.width)??0),l=Math.max(a.height+(e.padding??0),(e==null?void 0:e.height)??0),c=-o/2,u=-l/2,h=u/2,f=[{x:c+h,y:u},{x:c,y:0},{x:c+h,y:-u},{x:-c,y:-u},{x:-c,y:u}],{cssStyles:d}=e,p=ot.svg(i),g=ct(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const v=Nt(f),m=p.path(v,g),y=i.insert(()=>m,":first-child");return y.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",d),n&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",n),y.attr("transform",`translate(${-h/2},0)`),s.attr("transform",`translate(${-h/2-a.width/2-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),ut(e,y),e.intersect=function(b){return at.polygon(e,f,b)},i}x(PT,"rect_left_inv_arrow");async function IT(t,e){var N,z;const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;let i;e.cssClasses?i="node "+e.cssClasses:i="node default";const a=t.insert("g").attr("class",i).attr("id",e.domId||e.id),s=a.insert("g"),o=a.insert("g").attr("class","label").attr("style",n),l=e.description,c=e.label,u=o.node().appendChild(await ia(c,e.labelStyle,!0,!0));let h={width:0,height:0};if(ye((z=(N=It())==null?void 0:N.flowchart)==null?void 0:z.htmlLabels)){const I=u.children[0],A=Bt(u);h=I.getBoundingClientRect(),A.attr("width",h.width),A.attr("height",h.height)}q.info("Text 2",l);const f=l||[],d=u.getBBox(),p=o.node().appendChild(await ia(f.join?f.join("<br/>"):f,e.labelStyle,!0,!0)),g=p.children[0],v=Bt(p);h=g.getBoundingClientRect(),v.attr("width",h.width),v.attr("height",h.height);const m=(e.padding||0)/2;Bt(p).attr("transform","translate( "+(h.width>d.width?0:(d.width-h.width)/2)+", "+(d.height+m+5)+")"),Bt(u).attr("transform","translate( "+(h.width<d.width?0:-(d.width-h.width)/2)+", 0)"),h=o.node().getBBox(),o.attr("transform","translate("+-h.width/2+", "+(-h.height/2-m+3)+")");const y=h.width+(e.padding||0),b=h.height+(e.padding||0),S=-h.width/2-m,_=-h.height/2-m;let w,T;if(e.look==="handDrawn"){const I=ot.svg(a),A=ct(e,{}),R=I.path(ii(S,_,y,b,e.rx||0),A),j=I.line(-h.width/2-m,-h.height/2-m+d.height+m,h.width/2+m,-h.height/2-m+d.height+m,A);T=a.insert(()=>(q.debug("Rough node insert CXC",R),j),":first-child"),w=a.insert(()=>(q.debug("Rough node insert CXC",R),R),":first-child")}else w=s.insert("rect",":first-child"),T=s.insert("line"),w.attr("class","outer title-state").attr("style",n).attr("x",-h.width/2-m).attr("y",-h.height/2-m).attr("width",h.width+(e.padding||0)).attr("height",h.height+(e.padding||0)),T.attr("class","divider").attr("x1",-h.width/2-m).attr("x2",h.width/2+m).attr("y1",-h.height/2-m+d.height+m).attr("y2",-h.height/2-m+d.height+m);return ut(e,w),e.intersect=function(I){return at.rect(e,I)},a}x(IT,"rectWithTitle");async function RT(t,e){const r={rx:5,ry:5,labelPaddingX:((e==null?void 0:e.padding)||0)*1,labelPaddingY:((e==null?void 0:e.padding)||0)*1};return Wl(t,e,r)}x(RT,"roundedRect");async function OT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=(e==null?void 0:e.padding)??0,l=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),c=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),u=-a.width/2-o,h=-a.height/2-o,{cssStyles:f}=e,d=ot.svg(i),p=ct(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=[{x:u,y:h},{x:u+l+8,y:h},{x:u+l+8,y:h+c},{x:u-8,y:h+c},{x:u-8,y:h},{x:u,y:h},{x:u,y:h+c}],v=d.polygon(g.map(y=>[y.x,y.y]),p),m=i.insert(()=>v,":first-child");return m.attr("class","basic label-container").attr("style",Ke(f)),n&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",n),f&&e.look!=="handDrawn"&&m.selectAll("path").attr("style",n),s.attr("transform",`translate(${-l/2+4+(e.padding??0)-(a.x-(a.left??0))},${-c/2+(e.padding??0)-(a.y-(a.top??0))})`),ut(e,m),e.intersect=function(y){return at.rect(e,y)},i}x(OT,"shadedProcess");async function DT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),l=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),c=-o/2,u=-l/2,{cssStyles:h}=e,f=ot.svg(i),d=ct(e,{});e.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=[{x:c,y:u},{x:c,y:u+l},{x:c+o,y:u+l},{x:c+o,y:u-l/2}],g=Nt(p),v=f.path(g,d),m=i.insert(()=>v,":first-child");return m.attr("class","basic label-container"),h&&e.look!=="handDrawn"&&m.selectChildren("path").attr("style",h),n&&e.look!=="handDrawn"&&m.selectChildren("path").attr("style",n),m.attr("transform",`translate(0, ${l/4})`),s.attr("transform",`translate(${-o/2+(e.padding??0)-(a.x-(a.left??0))}, ${-l/4+(e.padding??0)-(a.y-(a.top??0))})`),ut(e,m),e.intersect=function(y){return at.polygon(e,p,y)},i}x(DT,"slopedRect");async function zT(t,e){const r={rx:0,ry:0,labelPaddingX:((e==null?void 0:e.padding)||0)*2,labelPaddingY:((e==null?void 0:e.padding)||0)*1};return Wl(t,e,r)}x(zT,"squareRect");async function jT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await bt(t,e,mt(e)),s=a.height+e.padding,o=a.width+s/4+e.padding;let l;const{cssStyles:c}=e;if(e.look==="handDrawn"){const u=ot.svg(i),h=ct(e,{}),f=ii(-o/2,-s/2,o,s,s/2),d=u.path(f,h);l=i.insert(()=>d,":first-child"),l.attr("class","basic label-container").attr("style",Ke(c))}else l=i.insert("rect",":first-child"),l.attr("class","basic label-container").attr("style",n).attr("rx",s/2).attr("ry",s/2).attr("x",-o/2).attr("y",-s/2).attr("width",o).attr("height",s);return ut(e,l),e.intersect=function(u){return at.rect(e,u)},i}x(jT,"stadium");async function HT(t,e){return Wl(t,e,{rx:5,ry:5})}x(HT,"state");function WT(t,e,{config:{themeVariables:r}}){const{labelStyles:n,nodeStyles:i}=ht(e);e.labelStyle=n;const{cssStyles:a}=e,{lineColor:s,stateBorder:o,nodeBorder:l}=r,c=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),u=ot.svg(c),h=ct(e,{});e.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const f=u.circle(0,0,14,{...h,stroke:s,strokeWidth:2}),d=o??l,p=u.circle(0,0,5,{...h,fill:d,stroke:d,strokeWidth:2,fillStyle:"solid"}),g=c.insert(()=>f,":first-child");return g.insert(()=>p),a&&g.selectAll("path").attr("style",a),i&&g.selectAll("path").attr("style",i),ut(e,g),e.intersect=function(v){return at.circle(e,7,v)},c}x(WT,"stateEnd");function qT(t,e,{config:{themeVariables:r}}){const{lineColor:n}=r,i=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let a;if(e.look==="handDrawn"){const o=ot.svg(i).circle(0,0,14,PI(n));a=i.insert(()=>o),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14)}else a=i.insert("circle",":first-child"),a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14);return ut(e,a),e.intersect=function(s){return at.circle(e,7,s)},i}x(qT,"stateStart");async function UT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await bt(t,e,mt(e)),s=((e==null?void 0:e.padding)||0)/2,o=a.width+e.padding,l=a.height+e.padding,c=-a.width/2-s,u=-a.height/2-s,h=[{x:0,y:0},{x:o,y:0},{x:o,y:-l},{x:0,y:-l},{x:0,y:0},{x:-8,y:0},{x:o+8,y:0},{x:o+8,y:-l},{x:-8,y:-l},{x:-8,y:0}];if(e.look==="handDrawn"){const f=ot.svg(i),d=ct(e,{}),p=f.rectangle(c-8,u,o+16,l,d),g=f.line(c,u,c,u+l,d),v=f.line(c+o,u,c+o,u+l,d);i.insert(()=>g,":first-child"),i.insert(()=>v,":first-child");const m=i.insert(()=>p,":first-child"),{cssStyles:y}=e;m.attr("class","basic label-container").attr("style",Ke(y)),ut(e,m)}else{const f=ai(i,o,l,h);n&&f.attr("style",n),ut(e,f)}return e.intersect=function(f){return at.polygon(e,h,f)},i}x(UT,"subroutine");async function VT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await bt(t,e,mt(e)),s=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),o=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),l=-s/2,c=-o/2,u=.2*o,h=.2*o,{cssStyles:f}=e,d=ot.svg(i),p=ct(e,{}),g=[{x:l-u/2,y:c},{x:l+s+u/2,y:c},{x:l+s+u/2,y:c+o},{x:l-u/2,y:c+o}],v=[{x:l+s-u/2,y:c+o},{x:l+s+u/2,y:c+o},{x:l+s+u/2,y:c+o-h}];e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=Nt(g),y=d.path(m,p),b=Nt(v),S=d.path(b,{...p,fillStyle:"solid"}),_=i.insert(()=>S,":first-child");return _.insert(()=>y,":first-child"),_.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",n),ut(e,_),e.intersect=function(w){return at.polygon(e,g,w)},i}x(VT,"taggedRect");async function YT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),l=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),c=l/4,u=.2*o,h=.2*l,f=l+c,{cssStyles:d}=e,p=ot.svg(i),g=ct(e,{});e.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const v=[{x:-o/2-o/2*.1,y:f/2},...Pi(-o/2-o/2*.1,f/2,o/2+o/2*.1,f/2,c,.8),{x:o/2+o/2*.1,y:-f/2},{x:-o/2-o/2*.1,y:-f/2}],m=-o/2+o/2*.1,y=-f/2-h*.4,b=[{x:m+o-u,y:(y+l)*1.4},{x:m+o,y:y+l-h},{x:m+o,y:(y+l)*.9},...Pi(m+o,(y+l)*1.3,m+o-u,(y+l)*1.5,-l*.03,.5)],S=Nt(v),_=p.path(S,g),w=Nt(b),T=p.path(w,{...g,fillStyle:"solid"}),N=i.insert(()=>T,":first-child");return N.insert(()=>_,":first-child"),N.attr("class","basic label-container"),d&&e.look!=="handDrawn"&&N.selectAll("path").attr("style",d),n&&e.look!=="handDrawn"&&N.selectAll("path").attr("style",n),N.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-o/2+(e.padding??0)-(a.x-(a.left??0))},${-l/2+(e.padding??0)-c/2-(a.y-(a.top??0))})`),ut(e,N),e.intersect=function(z){return at.polygon(e,v,z)},i}x(YT,"taggedWaveEdgedRectangle");async function GT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await bt(t,e,mt(e)),s=Math.max(a.width+e.padding,(e==null?void 0:e.width)||0),o=Math.max(a.height+e.padding,(e==null?void 0:e.height)||0),l=-s/2,c=-o/2,u=i.insert("rect",":first-child");return u.attr("class","text").attr("style",n).attr("rx",0).attr("ry",0).attr("x",l).attr("y",c).attr("width",s).attr("height",o),ut(e,u),e.intersect=function(h){return at.rect(e,h)},i}x(GT,"text");var Z9=x((t,e,r,n,i,a)=>`M${t},${e}
a${i},${a} 0,0,1 0,${-n}
l${r},0
a${i},${a} 0,0,1 0,${n}
M${r},${-n}
a${i},${a} 0,0,0 0,${n}
l${-r},0`,"createCylinderPathD"),J9=x((t,e,r,n,i,a)=>[`M${t},${e}`,`M${t+r},${e}`,`a${i},${a} 0,0,0 0,${-n}`,`l${-r},0`,`a${i},${a} 0,0,0 0,${n}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),t7=x((t,e,r,n,i,a)=>[`M${t+r/2},${-n/2}`,`a${i},${a} 0,0,0 0,${n}`].join(" "),"createInnerCylinderPathD");async function XT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s,halfPadding:o}=await bt(t,e,mt(e)),l=e.look==="neo"?o*2:o,c=a.height+l,u=c/2,h=u/(2.5+c/50),f=a.width+h+l,{cssStyles:d}=e;let p;if(e.look==="handDrawn"){const g=ot.svg(i),v=J9(0,0,f,c,h,u),m=t7(0,0,f,c,h,u),y=g.path(v,ct(e,{})),b=g.path(m,ct(e,{fill:"none"}));p=i.insert(()=>b,":first-child"),p=i.insert(()=>y,":first-child"),p.attr("class","basic label-container"),d&&p.attr("style",d)}else{const g=Z9(0,0,f,c,h,u);p=i.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",Ke(d)).attr("style",n),p.attr("class","basic label-container"),d&&p.selectAll("path").attr("style",d),n&&p.selectAll("path").attr("style",n)}return p.attr("label-offset-x",h),p.attr("transform",`translate(${-f/2}, ${c/2} )`),s.attr("transform",`translate(${-(a.width/2)-h-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),ut(e,p),e.intersect=function(g){const v=at.rect(e,g),m=v.y-(e.y??0);if(u!=0&&(Math.abs(m)<(e.height??0)/2||Math.abs(m)==(e.height??0)/2&&Math.abs(v.x-(e.x??0))>(e.width??0)/2-h)){let y=h*h*(1-m*m/(u*u));y!=0&&(y=Math.sqrt(Math.abs(y))),y=h-y,g.x-(e.x??0)>0&&(y=-y),v.x+=y}return v},i}x(XT,"tiltedCylinder");async function QT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await bt(t,e,mt(e)),s=a.width+e.padding,o=a.height+e.padding,l=[{x:-3*o/6,y:0},{x:s+3*o/6,y:0},{x:s,y:-o},{x:0,y:-o}];let c;const{cssStyles:u}=e;if(e.look==="handDrawn"){const h=ot.svg(i),f=ct(e,{}),d=Nt(l),p=h.path(d,f);c=i.insert(()=>p,":first-child").attr("transform",`translate(${-s/2}, ${o/2})`),u&&c.attr("style",u)}else c=ai(i,s,o,l);return n&&c.attr("style",n),e.width=s,e.height=o,ut(e,c),e.intersect=function(h){return at.polygon(e,l,h)},i}x(QT,"trapezoid");async function KT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await bt(t,e,mt(e)),s=60,o=20,l=Math.max(s,a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),c=Math.max(o,a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),{cssStyles:u}=e,h=ot.svg(i),f=ct(e,{});e.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const d=[{x:-l/2*.8,y:-c/2},{x:l/2*.8,y:-c/2},{x:l/2,y:-c/2*.6},{x:l/2,y:c/2},{x:-l/2,y:c/2},{x:-l/2,y:-c/2*.6}],p=Nt(d),g=h.path(p,f),v=i.insert(()=>g,":first-child");return v.attr("class","basic label-container"),u&&e.look!=="handDrawn"&&v.selectChildren("path").attr("style",u),n&&e.look!=="handDrawn"&&v.selectChildren("path").attr("style",n),ut(e,v),e.intersect=function(m){return at.polygon(e,d,m)},i}x(KT,"trapezoidalPentagon");async function ZT(t,e){var y;const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=ye((y=It().flowchart)==null?void 0:y.htmlLabels),l=a.width+(e.padding??0),c=l+a.height,u=l+a.height,h=[{x:0,y:0},{x:u,y:0},{x:u/2,y:-c}],{cssStyles:f}=e,d=ot.svg(i),p=ct(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=Nt(h),v=d.path(g,p),m=i.insert(()=>v,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`);return f&&e.look!=="handDrawn"&&m.selectChildren("path").attr("style",f),n&&e.look!=="handDrawn"&&m.selectChildren("path").attr("style",n),e.width=l,e.height=c,ut(e,m),s.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${c/2-(a.height+(e.padding??0)/(o?2:1)-(a.y-(a.top??0)))})`),e.intersect=function(b){return q.info("Triangle intersect",e,h,b),at.polygon(e,h,b)},i}x(ZT,"triangle");async function JT(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),l=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),c=l/8,u=l+c,{cssStyles:h}=e,d=70-o,p=d>0?d/2:0,g=ot.svg(i),v=ct(e,{});e.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const m=[{x:-o/2-p,y:u/2},...Pi(-o/2-p,u/2,o/2+p,u/2,c,.8),{x:o/2+p,y:-u/2},{x:-o/2-p,y:-u/2}],y=Nt(m),b=g.path(y,v),S=i.insert(()=>b,":first-child");return S.attr("class","basic label-container"),h&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",h),n&&e.look!=="handDrawn"&&S.selectAll("path").attr("style",n),S.attr("transform",`translate(0,${-c/2})`),s.attr("transform",`translate(${-o/2+(e.padding??0)-(a.x-(a.left??0))},${-l/2+(e.padding??0)-c-(a.y-(a.top??0))})`),ut(e,S),e.intersect=function(_){return at.polygon(e,m,_)},i}x(JT,"waveEdgedRectangle");async function tE(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a}=await bt(t,e,mt(e)),s=100,o=50,l=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),c=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),u=l/c;let h=l,f=c;h>f*u?f=h/u:h=f*u,h=Math.max(h,s),f=Math.max(f,o);const d=Math.min(f*.2,f/4),p=f+d*2,{cssStyles:g}=e,v=ot.svg(i),m=ct(e,{});e.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=[{x:-h/2,y:p/2},...Pi(-h/2,p/2,h/2,p/2,d,1),{x:h/2,y:-p/2},...Pi(h/2,-p/2,-h/2,-p/2,d,-1)],b=Nt(y),S=v.path(b,m),_=i.insert(()=>S,":first-child");return _.attr("class","basic label-container"),g&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",g),n&&e.look!=="handDrawn"&&_.selectAll("path").attr("style",n),ut(e,_),e.intersect=function(w){return at.polygon(e,y,w)},i}x(tE,"waveRectangle");async function eE(t,e){const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const{shapeSvg:i,bbox:a,label:s}=await bt(t,e,mt(e)),o=Math.max(a.width+(e.padding??0)*2,(e==null?void 0:e.width)??0),l=Math.max(a.height+(e.padding??0)*2,(e==null?void 0:e.height)??0),c=5,u=-o/2,h=-l/2,{cssStyles:f}=e,d=ot.svg(i),p=ct(e,{}),g=[{x:u-c,y:h-c},{x:u-c,y:h+l},{x:u+o,y:h+l},{x:u+o,y:h-c}],v=`M${u-c},${h-c} L${u+o},${h-c} L${u+o},${h+l} L${u-c},${h+l} L${u-c},${h-c}
M${u-c},${h} L${u+o},${h}
M${u},${h-c} L${u},${h+l}`;e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=d.path(v,p),y=i.insert(()=>m,":first-child");return y.attr("transform",`translate(${c/2}, ${c/2})`),y.attr("class","basic label-container"),f&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",f),n&&e.look!=="handDrawn"&&y.selectAll("path").attr("style",n),s.attr("transform",`translate(${-(a.width/2)+c/2-(a.x-(a.left??0))}, ${-(a.height/2)+c/2-(a.y-(a.top??0))})`),ut(e,y),e.intersect=function(b){return at.polygon(e,g,b)},i}x(eE,"windowPane");async function Cy(t,e){var Y,E,et,nt;const r=e;if(r.alias&&(e.label=r.alias),e.look==="handDrawn"){const{themeVariables:J}=mr(),{background:tt}=J,Lt={...e,id:e.id+"-background",look:"default",cssStyles:["stroke: none",`fill: ${tt}`]};await Cy(t,Lt)}const n=mr();e.useHtmlLabels=n.htmlLabels;let i=((Y=n.er)==null?void 0:Y.diagramPadding)??10,a=((E=n.er)==null?void 0:E.entityPadding)??6;const{cssStyles:s}=e,{labelStyles:o,nodeStyles:l}=ht(e);if(r.attributes.length===0&&e.label){const J={rx:0,ry:0,labelPaddingX:i,labelPaddingY:i*1.5};ei(e.label,n)+J.labelPaddingX*2<n.er.minEntityWidth&&(e.width=n.er.minEntityWidth);const tt=await Wl(t,e,J);if(!ye(n.htmlLabels)){const Lt=tt.select("text"),St=(et=Lt.node())==null?void 0:et.getBBox();Lt.attr("transform",`translate(${-St.width/2}, 0)`)}return tt}n.htmlLabels||(i*=1.25,a*=1.25);let c=mt(e);c||(c="node default");const u=t.insert("g").attr("class",c).attr("id",e.domId||e.id),h=await Ra(u,e.label??"",n,0,0,["name"],o);h.height+=a;let f=0;const d=[],p=[];let g=0,v=0,m=0,y=0,b=!0,S=!0;for(const J of r.attributes){const tt=await Ra(u,J.type,n,0,f,["attribute-type"],o);g=Math.max(g,tt.width+i);const Lt=await Ra(u,J.name,n,0,f,["attribute-name"],o);v=Math.max(v,Lt.width+i);const St=await Ra(u,J.keys.join(),n,0,f,["attribute-keys"],o);m=Math.max(m,St.width+i);const _t=await Ra(u,J.comment,n,0,f,["attribute-comment"],o);y=Math.max(y,_t.width+i);const Ft=Math.max(tt.height,Lt.height,St.height,_t.height)+a;p.push({yOffset:f,rowHeight:Ft}),f+=Ft}let _=4;m<=i&&(b=!1,m=0,_--),y<=i&&(S=!1,y=0,_--);const w=u.node().getBBox();if(h.width+i*2-(g+v+m+y)>0){const J=h.width+i*2-(g+v+m+y);g+=J/_,v+=J/_,m>0&&(m+=J/_),y>0&&(y+=J/_)}const T=g+v+m+y,N=ot.svg(u),z=ct(e,{});e.look!=="handDrawn"&&(z.roughness=0,z.fillStyle="solid");let I=0;p.length>0&&(I=p.reduce((J,tt)=>J+((tt==null?void 0:tt.rowHeight)??0),0));const A=Math.max(w.width+i*2,(e==null?void 0:e.width)||0,T),R=Math.max((I??0)+h.height,(e==null?void 0:e.height)||0),j=-A/2,P=-R/2;u.selectAll("g:not(:first-child)").each((J,tt,Lt)=>{const St=Bt(Lt[tt]),_t=St.attr("transform");let Ft=0,se=0;if(_t){const je=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(_t);je&&(Ft=parseFloat(je[1]),se=parseFloat(je[2]),St.attr("class").includes("attribute-name")?Ft+=g:St.attr("class").includes("attribute-keys")?Ft+=g+v:St.attr("class").includes("attribute-comment")&&(Ft+=g+v+m))}St.attr("transform",`translate(${j+i/2+Ft}, ${se+P+h.height+a/2})`)}),u.select(".name").attr("transform","translate("+-h.width/2+", "+(P+a/2)+")");const $=N.rectangle(j,P,A,R,z),M=u.insert(()=>$,":first-child").attr("style",s.join("")),{themeVariables:D}=mr(),{rowEven:L,rowOdd:F,nodeBorder:C}=D;d.push(0);for(const[J,tt]of p.entries()){const St=(J+1)%2===0&&tt.yOffset!==0,_t=N.rectangle(j,h.height+P+(tt==null?void 0:tt.yOffset),A,tt==null?void 0:tt.rowHeight,{...z,fill:St?L:F,stroke:C});u.insert(()=>_t,"g.label").attr("style",s.join("")).attr("class",`row-rect-${St?"even":"odd"}`)}let W=N.line(j,h.height+P,A+j,h.height+P,z);u.insert(()=>W).attr("class","divider"),W=N.line(g+j,h.height+P,g+j,R+P,z),u.insert(()=>W).attr("class","divider"),b&&(W=N.line(g+v+j,h.height+P,g+v+j,R+P,z),u.insert(()=>W).attr("class","divider")),S&&(W=N.line(g+v+m+j,h.height+P,g+v+m+j,R+P,z),u.insert(()=>W).attr("class","divider"));for(const J of d)W=N.line(j,h.height+P+J,A+j,h.height+P+J,z),u.insert(()=>W).attr("class","divider");if(ut(e,M),l&&e.look!=="handDrawn"){const J=l.split(";"),tt=(nt=J==null?void 0:J.filter(Lt=>Lt.includes("stroke")))==null?void 0:nt.map(Lt=>`${Lt}`).join("; ");u.selectAll("path").attr("style",tt??""),u.selectAll(".row-rect-even path").attr("style",l)}return e.intersect=function(J){return at.rect(e,J)},u}x(Cy,"erBox");async function Ra(t,e,r,n=0,i=0,a=[],s=""){const o=t.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${n}, ${i})`).attr("style",s);e!==s1(e)&&(e=s1(e),e=e.replaceAll("<","<").replaceAll(">",">"));const l=o.node().appendChild(await ji(o,e,{width:ei(e,r)+100,style:s,useHtmlLabels:r.htmlLabels},r));if(e.includes("<")||e.includes(">")){let u=l.children[0];for(u.textContent=u.textContent.replaceAll("<","<").replaceAll(">",">");u.childNodes[0];)u=u.childNodes[0],u.textContent=u.textContent.replaceAll("<","<").replaceAll(">",">")}let c=l.getBBox();if(ye(r.htmlLabels)){const u=l.children[0];u.style.textAlign="start";const h=Bt(l);c=u.getBoundingClientRect(),h.attr("width",c.width),h.attr("height",c.height)}return c}x(Ra,"addText");async function rE(t,e,r,n,i=r.class.padding??12){const a=n?0:3,s=t.insert("g").attr("class",mt(e)).attr("id",e.domId||e.id);let o=null,l=null,c=null,u=null,h=0,f=0,d=0;if(o=s.insert("g").attr("class","annotation-group text"),e.annotations.length>0){const y=e.annotations[0];await Eo(o,{text:`«${y}»`},0),h=o.node().getBBox().height}l=s.insert("g").attr("class","label-group text"),await Eo(l,e,0,["font-weight: bolder"]);const p=l.node().getBBox();f=p.height,c=s.insert("g").attr("class","members-group text");let g=0;for(const y of e.members){const b=await Eo(c,y,g,[y.parseClassifier()]);g+=b+a}d=c.node().getBBox().height,d<=0&&(d=i/2),u=s.insert("g").attr("class","methods-group text");let v=0;for(const y of e.methods){const b=await Eo(u,y,v,[y.parseClassifier()]);v+=b+a}let m=s.node().getBBox();if(o!==null){const y=o.node().getBBox();o.attr("transform",`translate(${-y.width/2})`)}return l.attr("transform",`translate(${-p.width/2}, ${h})`),m=s.node().getBBox(),c.attr("transform",`translate(0, ${h+f+i*2})`),m=s.node().getBBox(),u.attr("transform",`translate(0, ${h+f+(d?d+i*4:i*2)})`),m=s.node().getBBox(),{shapeSvg:s,bbox:m}}x(rE,"textHelper");async function Eo(t,e,r,n=[]){const i=t.insert("g").attr("class","label").attr("style",n.join("; ")),a=mr();let s="useHtmlLabels"in e?e.useHtmlLabels:ye(a.htmlLabels)??!0,o="";"text"in e?o=e.text:o=e.label,!s&&o.startsWith("\\")&&(o=o.substring(1)),Es(o)&&(s=!0);const l=await ji(i,Fh(Ea(o)),{width:ei(o,a)+50,classes:"markdown-node-label",useHtmlLabels:s},a);let c,u=1;if(s){const h=l.children[0],f=Bt(l);u=h.innerHTML.split("<br>").length,h.innerHTML.includes("</math>")&&(u+=h.innerHTML.split("<mrow>").length-1);const d=h.getElementsByTagName("img");if(d){const p=o.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...d].map(g=>new Promise(v=>{function m(){var y;if(g.style.display="flex",g.style.flexDirection="column",p){const b=((y=a.fontSize)==null?void 0:y.toString())??window.getComputedStyle(document.body).fontSize,_=parseInt(b,10)*5+"px";g.style.minWidth=_,g.style.maxWidth=_}else g.style.width="100%";v(g)}x(m,"setupImage"),setTimeout(()=>{g.complete&&m()}),g.addEventListener("error",m),g.addEventListener("load",m)})))}c=h.getBoundingClientRect(),f.attr("width",c.width),f.attr("height",c.height)}else{n.includes("font-weight: bolder")&&Bt(l).selectAll("tspan").attr("font-weight",""),u=l.children.length;const h=l.children[0];(l.textContent===""||l.textContent.includes(">"))&&(h.textContent=o[0]+o.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),o[1]===" "&&(h.textContent=h.textContent[0]+" "+h.textContent.substring(1))),h.textContent==="undefined"&&(h.textContent=""),c=l.getBBox()}return i.attr("transform","translate(0,"+(-c.height/(2*u)+r)+")"),c.height}x(Eo,"addText");async function nE(t,e){var z,I;const r=It(),n=r.class.padding??12,i=n,a=e.useHtmlLabels??ye(r.htmlLabels)??!0,s=e;s.annotations=s.annotations??[],s.members=s.members??[],s.methods=s.methods??[];const{shapeSvg:o,bbox:l}=await rE(t,e,r,a,i),{labelStyles:c,nodeStyles:u}=ht(e);e.labelStyle=c,e.cssStyles=s.styles||"";const h=((z=s.styles)==null?void 0:z.join(";"))||u||"";e.cssStyles||(e.cssStyles=h.replaceAll("!important","").split(";"));const f=s.members.length===0&&s.methods.length===0&&!((I=r.class)!=null&&I.hideEmptyMembersBox),d=ot.svg(o),p=ct(e,{});e.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const g=l.width;let v=l.height;s.members.length===0&&s.methods.length===0?v+=i:s.members.length>0&&s.methods.length===0&&(v+=i*2);const m=-g/2,y=-v/2,b=d.rectangle(m-n,y-n-(f?n:s.members.length===0&&s.methods.length===0?-n/2:0),g+2*n,v+2*n+(f?n*2:s.members.length===0&&s.methods.length===0?-n:0),p),S=o.insert(()=>b,":first-child");S.attr("class","basic label-container");const _=S.node().getBBox();o.selectAll(".text").each((A,R,j)=>{var F;const P=Bt(j[R]),$=P.attr("transform");let M=0;if($){const W=RegExp(/translate\(([^,]+),([^)]+)\)/).exec($);W&&(M=parseFloat(W[2]))}let D=M+y+n-(f?n:s.members.length===0&&s.methods.length===0?-n/2:0);a||(D-=4);let L=m;(P.attr("class").includes("label-group")||P.attr("class").includes("annotation-group"))&&(L=-((F=P.node())==null?void 0:F.getBBox().width)/2||0,o.selectAll("text").each(function(C,W,Y){window.getComputedStyle(Y[W]).textAnchor==="middle"&&(L=0)})),P.attr("transform",`translate(${L}, ${D})`)});const w=o.select(".annotation-group").node().getBBox().height-(f?n/2:0)||0,T=o.select(".label-group").node().getBBox().height-(f?n/2:0)||0,N=o.select(".members-group").node().getBBox().height-(f?n/2:0)||0;if(s.members.length>0||s.methods.length>0||f){const A=d.line(_.x,w+T+y+n,_.x+_.width,w+T+y+n,p);o.insert(()=>A).attr("class","divider").attr("style",h)}if(f||s.members.length>0||s.methods.length>0){const A=d.line(_.x,w+T+N+y+i*2+n,_.x+_.width,w+T+N+y+n+i*2,p);o.insert(()=>A).attr("class","divider").attr("style",h)}if(s.look!=="handDrawn"&&o.selectAll("path").attr("style",h),S.select(":nth-child(2)").attr("style",h),o.selectAll(".divider").select("path").attr("style",h),e.labelStyle?o.selectAll("span").attr("style",e.labelStyle):o.selectAll("span").attr("style",h),!a){const A=RegExp(/color\s*:\s*([^;]*)/),R=A.exec(h);if(R){const j=R[0].replace("color","fill");o.selectAll("tspan").attr("style",j)}else if(c){const j=A.exec(c);if(j){const P=j[0].replace("color","fill");o.selectAll("tspan").attr("style",P)}}}return ut(e,S),e.intersect=function(A){return at.rect(e,A)},o}x(nE,"classBox");async function iE(t,e){var w,T;const{labelStyles:r,nodeStyles:n}=ht(e);e.labelStyle=r;const i=e,a=e,s=20,o=20,l="verifyMethod"in e,c=mt(e),u=t.insert("g").attr("class",c).attr("id",e.domId??e.id);let h;l?h=await pn(u,`<<${i.type}>>`,0,e.labelStyle):h=await pn(u,"<<Element>>",0,e.labelStyle);let f=h;const d=await pn(u,i.name,f,e.labelStyle+"; font-weight: bold;");if(f+=d+o,l){const N=await pn(u,`${i.requirementId?`id: ${i.requirementId}`:""}`,f,e.labelStyle);f+=N;const z=await pn(u,`${i.text?`Text: ${i.text}`:""}`,f,e.labelStyle);f+=z;const I=await pn(u,`${i.risk?`Risk: ${i.risk}`:""}`,f,e.labelStyle);f+=I,await pn(u,`${i.verifyMethod?`Verification: ${i.verifyMethod}`:""}`,f,e.labelStyle)}else{const N=await pn(u,`${a.type?`Type: ${a.type}`:""}`,f,e.labelStyle);f+=N,await pn(u,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,f,e.labelStyle)}const p=(((w=u.node())==null?void 0:w.getBBox().width)??200)+s,g=(((T=u.node())==null?void 0:T.getBBox().height)??200)+s,v=-p/2,m=-g/2,y=ot.svg(u),b=ct(e,{});e.look!=="handDrawn"&&(b.roughness=0,b.fillStyle="solid");const S=y.rectangle(v,m,p,g,b),_=u.insert(()=>S,":first-child");if(_.attr("class","basic label-container").attr("style",n),u.selectAll(".label").each((N,z,I)=>{const A=Bt(I[z]),R=A.attr("transform");let j=0,P=0;if(R){const L=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(R);L&&(j=parseFloat(L[1]),P=parseFloat(L[2]))}const $=P-g/2;let M=v+s/2;(z===0||z===1)&&(M=j),A.attr("transform",`translate(${M}, ${$+s})`)}),f>h+d+o){const N=y.line(v,m+h+d+o,v+p,m+h+d+o,b);u.insert(()=>N).attr("style",n)}return ut(e,_),e.intersect=function(N){return at.rect(e,N)},u}x(iE,"requirementBox");async function pn(t,e,r,n=""){if(e==="")return 0;const i=t.insert("g").attr("class","label").attr("style",n),a=It(),s=a.htmlLabels??!0,o=await ji(i,Fh(Ea(e)),{width:ei(e,a)+50,classes:"markdown-node-label",useHtmlLabels:s,style:n},a);let l;if(s){const c=o.children[0],u=Bt(o);l=c.getBoundingClientRect(),u.attr("width",l.width),u.attr("height",l.height)}else{const c=o.children[0];for(const u of c.children)u.textContent=u.textContent.replaceAll(">",">").replaceAll("<","<"),n&&u.setAttribute("style",n);l=o.getBBox(),l.height+=6}return i.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}x(pn,"addText");var e7=x(t=>{switch(t){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 aE(t,e,{config:r}){var R,j;const{labelStyles:n,nodeStyles:i}=ht(e);e.labelStyle=n||"";const a=10,s=e.width;e.width=(e.width??200)-10;const{shapeSvg:o,bbox:l,label:c}=await bt(t,e,mt(e)),u=e.padding||10;let h="",f;"ticket"in e&&e.ticket&&((R=r==null?void 0:r.kanban)!=null&&R.ticketBaseUrl)&&(h=(j=r==null?void 0:r.kanban)==null?void 0:j.ticketBaseUrl.replace("#TICKET#",e.ticket),f=o.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",h).attr("target","_blank"));const d={useHtmlLabels:e.useHtmlLabels,labelStyle:e.labelStyle||"",width:e.width,img:e.img,padding:e.padding||8,centerLabel:!1};let p,g;f?{label:p,bbox:g}=await cf(f,"ticket"in e&&e.ticket||"",d):{label:p,bbox:g}=await cf(o,"ticket"in e&&e.ticket||"",d);const{label:v,bbox:m}=await cf(o,"assigned"in e&&e.assigned||"",d);e.width=s;const y=10,b=(e==null?void 0:e.width)||0,S=Math.max(g.height,m.height)/2,_=Math.max(l.height+y*2,(e==null?void 0:e.height)||0)+S,w=-b/2,T=-_/2;c.attr("transform","translate("+(u-b/2)+", "+(-S-l.height/2)+")"),p.attr("transform","translate("+(u-b/2)+", "+(-S+l.height/2)+")"),v.attr("transform","translate("+(u+b/2-m.width-2*a)+", "+(-S+l.height/2)+")");let N;const{rx:z,ry:I}=e,{cssStyles:A}=e;if(e.look==="handDrawn"){const P=ot.svg(o),$=ct(e,{}),M=z||I?P.path(ii(w,T,b,_,z||0),$):P.rectangle(w,T,b,_,$);N=o.insert(()=>M,":first-child"),N.attr("class","basic label-container").attr("style",A||null)}else{N=o.insert("rect",":first-child"),N.attr("class","basic label-container __APA__").attr("style",i).attr("rx",z??5).attr("ry",I??5).attr("x",w).attr("y",T).attr("width",b).attr("height",_);const P="priority"in e&&e.priority;if(P){const $=o.append("line"),M=w+2,D=T+Math.floor((z??0)/2),L=T+_-Math.floor((z??0)/2);$.attr("x1",M).attr("y1",D).attr("x2",M).attr("y2",L).attr("stroke-width","4").attr("stroke",e7(P))}}return ut(e,N),e.height=_,e.intersect=function(P){return at.rect(e,P)},o}x(aE,"kanbanItem");var r7=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:zT},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:RT},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:jT},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:UT},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:uT},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:nT},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:FT},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:yT},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:ET},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:TT},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:QT},{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:ST},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:dT},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:GT},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:eT},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:OT},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:qT},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:WT},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:gT},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:xT},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:sT},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:oT},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:lT},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:LT},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:JT},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:mT},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:XT},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:MT},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:cT},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:hT},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:ZT},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:eE},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:fT},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:KT},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:pT},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:DT},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:NT},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:BT},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:tT},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:aT},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:YT},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:VT},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:tE},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:PT},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:AT}],n7=x(()=>{const e=[...Object.entries({state:HT,choice:rT,note:$T,rectWithTitle:IT,labelRect:_T,iconSquare:kT,iconCircle:bT,icon:vT,iconRounded:wT,imageSquare:CT,anchor:J_,kanbanItem:aE,classBox:nE,erBox:Cy,requirementBox:iE}),...r7.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(i=>[i,r.handler]))];return Object.fromEntries(e)},"generateShapeMap"),sE=n7();function i7(t){return t in sE}x(i7,"isValidShape");var Jh=new Map;async function oE(t,e,r){let n,i;e.shape==="rect"&&(e.rx&&e.ry?e.shape="roundedRect":e.shape="squareRect");const a=e.shape?sE[e.shape]:void 0;if(!a)throw new Error(`No such shape: ${e.shape}. Please check your syntax.`);if(e.link){let s;r.config.securityLevel==="sandbox"?s="_top":e.linkTarget&&(s=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",s??null),i=await a(n,e,r)}else i=await a(t,e,r),n=i;return e.tooltip&&i.attr("title",e.tooltip),Jh.set(e.id,n),e.haveCallback&&n.attr("class",n.attr("class")+" clickable"),n}x(oE,"insertNode");var kU=x((t,e)=>{Jh.set(e.id,t)},"setNodeElem"),CU=x(()=>{Jh.clear()},"clear"),SU=x(t=>{const e=Jh.get(t.id);q.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=8,n=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+n-t.width/2)+", "+(t.y-t.height/2-r)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),n},"positionNode"),a7=x((t,e,r,n,i,a)=>{e.arrowTypeStart&&hv(t,"start",e.arrowTypeStart,r,n,i,a),e.arrowTypeEnd&&hv(t,"end",e.arrowTypeEnd,r,n,i,a)},"addEdgeMarkers"),s7={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}},hv=x((t,e,r,n,i,a,s)=>{var h;const o=s7[r];if(!o){q.warn(`Unknown arrow type: ${r}`);return}const l=o.type,u=`${i}_${a}-${l}${e==="start"?"Start":"End"}`;if(s&&s.trim()!==""){const f=s.replace(/[^\dA-Za-z]/g,"_"),d=`${u}_${f}`;if(!document.getElementById(d)){const p=document.getElementById(u);if(p){const g=p.cloneNode(!0);g.id=d,g.querySelectorAll("path, circle, line").forEach(m=>{m.setAttribute("stroke",s),o.fill&&m.setAttribute("fill",s)}),(h=p.parentNode)==null||h.appendChild(g)}}t.attr(`marker-${e}`,`url(${n}#${d})`)}else t.attr(`marker-${e}`,`url(${n}#${u})`)},"addEdgeMarker"),lh=new Map,Se=new Map,_U=x(()=>{lh.clear(),Se.clear()},"clear"),yo=x(t=>t?t.reduce((r,n)=>r+";"+n,""):"","getLabelStyles"),o7=x(async(t,e)=>{let r=ye(It().flowchart.htmlLabels);const n=await ji(t,e.label,{style:yo(e.labelStyle),useHtmlLabels:r,addSvgBackground:!0,isNode:!1});q.info("abc82",e,e.labelType);const i=t.insert("g").attr("class","edgeLabel"),a=i.insert("g").attr("class","label");a.node().appendChild(n);let s=n.getBBox();if(r){const l=n.children[0],c=Bt(n);s=l.getBoundingClientRect(),c.attr("width",s.width),c.attr("height",s.height)}a.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),lh.set(e.id,i),e.width=s.width,e.height=s.height;let o;if(e.startLabelLeft){const l=await ia(e.startLabelLeft,yo(e.labelStyle)),c=t.insert("g").attr("class","edgeTerminals"),u=c.insert("g").attr("class","inner");o=u.node().appendChild(l);const h=l.getBBox();u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),Se.get(e.id)||Se.set(e.id,{}),Se.get(e.id).startLeft=c,Lo(o,e.startLabelLeft)}if(e.startLabelRight){const l=await ia(e.startLabelRight,yo(e.labelStyle)),c=t.insert("g").attr("class","edgeTerminals"),u=c.insert("g").attr("class","inner");o=c.node().appendChild(l),u.node().appendChild(l);const h=l.getBBox();u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),Se.get(e.id)||Se.set(e.id,{}),Se.get(e.id).startRight=c,Lo(o,e.startLabelRight)}if(e.endLabelLeft){const l=await ia(e.endLabelLeft,yo(e.labelStyle)),c=t.insert("g").attr("class","edgeTerminals"),u=c.insert("g").attr("class","inner");o=u.node().appendChild(l);const h=l.getBBox();u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),c.node().appendChild(l),Se.get(e.id)||Se.set(e.id,{}),Se.get(e.id).endLeft=c,Lo(o,e.endLabelLeft)}if(e.endLabelRight){const l=await ia(e.endLabelRight,yo(e.labelStyle)),c=t.insert("g").attr("class","edgeTerminals"),u=c.insert("g").attr("class","inner");o=u.node().appendChild(l);const h=l.getBBox();u.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),c.node().appendChild(l),Se.get(e.id)||Se.set(e.id,{}),Se.get(e.id).endRight=c,Lo(o,e.endLabelRight)}return n},"insertEdgeLabel");function Lo(t,e){It().flowchart.htmlLabels&&t&&(t.style.width=e.length*9+"px",t.style.height="12px")}x(Lo,"setTerminalWidth");var l7=x((t,e)=>{q.debug("Moving label abc88 ",t.id,t.label,lh.get(t.id),e);let r=e.updatedPath?e.updatedPath:e.originalPath;const n=It(),{subGraphTitleTotalMargin:i}=zm(n);if(t.label){const a=lh.get(t.id);let s=t.x,o=t.y;if(r){const l=bn.calcLabelPosition(r);q.debug("Moving label "+t.label+" from (",s,",",o,") to (",l.x,",",l.y,") abc88"),e.updatedPath&&(s=l.x,o=l.y)}a.attr("transform",`translate(${s}, ${o+i/2})`)}if(t.startLabelLeft){const a=Se.get(t.id).startLeft;let s=t.x,o=t.y;if(r){const l=bn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.startLabelRight){const a=Se.get(t.id).startRight;let s=t.x,o=t.y;if(r){const l=bn.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelLeft){const a=Se.get(t.id).endLeft;let s=t.x,o=t.y;if(r){const l=bn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(t.endLabelRight){const a=Se.get(t.id).endRight;let s=t.x,o=t.y;if(r){const l=bn.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),c7=x((t,e)=>{const r=t.x,n=t.y,i=Math.abs(e.x-r),a=Math.abs(e.y-n),s=t.width/2,o=t.height/2;return i>=s||a>=o},"outsideNode"),u7=x((t,e,r)=>{q.debug(`intersection calc abc89:
outsidePoint: ${JSON.stringify(e)}
insidePoint : ${JSON.stringify(r)}
node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const n=t.x,i=t.y,a=Math.abs(n-r.x),s=t.width/2;let o=r.x<e.x?s-a:s+a;const l=t.height/2,c=Math.abs(e.y-r.y),u=Math.abs(e.x-r.x);if(Math.abs(i-e.y)*s>Math.abs(n-e.x)*l){let h=r.y<e.y?e.y-l-i:i-l-e.y;o=u*h/c;const f={x:r.x<e.x?r.x+o:r.x-u+o,y:r.y<e.y?r.y+c-h:r.y-c+h};return o===0&&(f.x=e.x,f.y=e.y),u===0&&(f.x=e.x),c===0&&(f.y=e.y),q.debug(`abc89 top/bottom calc, Q ${c}, q ${h}, R ${u}, r ${o}`,f),f}else{r.x<e.x?o=e.x-s-n:o=n-s-e.x;let h=c*o/u,f=r.x<e.x?r.x+u-o:r.x-u+o,d=r.y<e.y?r.y+h:r.y-h;return q.debug(`sides calc abc89, Q ${c}, q ${h}, R ${u}, r ${o}`,{_x:f,_y:d}),o===0&&(f=e.x,d=e.y),u===0&&(f=e.x),c===0&&(d=e.y),{x:f,y:d}}},"intersection"),dv=x((t,e)=>{q.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(a=>{if(q.info("abc88 checking point",a,e),!c7(e,a)&&!i){const s=u7(e,n,a);q.debug("abc88 inside",a,n,s),q.debug("abc88 intersection",s,e);let o=!1;r.forEach(l=>{o=o||l.x===s.x&&l.y===s.y}),r.some(l=>l.x===s.x&&l.y===s.y)?q.warn("abc88 no intersect",s,r):r.push(s),i=!0}else q.warn("abc88 outside",a,n),n=a,i||r.push(a)}),q.debug("returning points",r),r},"cutPathAtIntersect");function lE(t){const e=[],r=[];for(let n=1;n<t.length-1;n++){const i=t[n-1],a=t[n],s=t[n+1];(i.x===a.x&&a.y===s.y&&Math.abs(a.x-s.x)>5&&Math.abs(a.y-i.y)>5||i.y===a.y&&a.x===s.x&&Math.abs(a.x-i.x)>5&&Math.abs(a.y-s.y)>5)&&(e.push(a),r.push(n))}return{cornerPoints:e,cornerPointPositions:r}}x(lE,"extractCornerPoints");var fv=x(function(t,e,r){const n=e.x-t.x,i=e.y-t.y,a=Math.sqrt(n*n+i*i),s=r/a;return{x:e.x-s*n,y:e.y-s*i}},"findAdjacentPoint"),h7=x(function(t){const{cornerPointPositions:e}=lE(t),r=[];for(let n=0;n<t.length;n++)if(e.includes(n)){const i=t[n-1],a=t[n+1],s=t[n],o=fv(i,s,5),l=fv(a,s,5),c=l.x-o.x,u=l.y-o.y;r.push(o);const h=Math.sqrt(2)*2;let f={x:s.x,y:s.y};if(Math.abs(a.x-i.x)>10&&Math.abs(a.y-i.y)>=10){q.debug("Corner point fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));const d=5;s.x===o.x?f={x:c<0?o.x-d+h:o.x+d-h,y:u<0?o.y-h:o.y+h}:f={x:c<0?o.x-h:o.x+h,y:u<0?o.y-d+h:o.y+d-h}}else q.debug("Corner point skipping fixing",Math.abs(a.x-i.x),Math.abs(a.y-i.y));r.push(f,l)}else r.push(t[n]);return r},"fixCorners"),d7=x(function(t,e,r,n,i,a,s){var z;const{handDrawnSeed:o}=It();let l=e.points,c=!1;const u=i;var h=a;const f=[];for(const I in e.cssCompiledStyles)YC(I)||f.push(e.cssCompiledStyles[I]);h.intersect&&u.intersect&&(l=l.slice(1,e.points.length-1),l.unshift(u.intersect(l[0])),q.debug("Last point APA12",e.start,"-->",e.end,l[l.length-1],h,h.intersect(l[l.length-1])),l.push(h.intersect(l[l.length-1]))),e.toCluster&&(q.info("to cluster abc88",r.get(e.toCluster)),l=dv(e.points,r.get(e.toCluster).node),c=!0),e.fromCluster&&(q.debug("from cluster abc88",r.get(e.fromCluster),JSON.stringify(l,null,2)),l=dv(l.reverse(),r.get(e.fromCluster).node).reverse(),c=!0);let d=l.filter(I=>!Number.isNaN(I.y));d=h7(d);let p=Yc;switch(p=Uu,e.curve){case"linear":p=Uu;break;case"basis":p=Yc;break;case"cardinal":p=MS;break;case"bumpX":p=SS;break;case"bumpY":p=_S;break;case"catmullRom":p=BS;break;case"monotoneX":p=RS;break;case"monotoneY":p=OS;break;case"natural":p=zS;break;case"step":p=jS;break;case"stepAfter":p=WS;break;case"stepBefore":p=HS;break;default:p=Yc}const{x:g,y:v}=FI(e),m=l6().x(g).y(v).curve(p);let y;switch(e.thickness){case"normal":y="edge-thickness-normal";break;case"thick":y="edge-thickness-thick";break;case"invisible":y="edge-thickness-invisible";break;default:y="edge-thickness-normal"}switch(e.pattern){case"solid":y+=" edge-pattern-solid";break;case"dotted":y+=" edge-pattern-dotted";break;case"dashed":y+=" edge-pattern-dashed";break;default:y+=" edge-pattern-solid"}let b,S=m(d);const _=Array.isArray(e.style)?e.style:e.style?[e.style]:[];let w=_.find(I=>I==null?void 0:I.startsWith("stroke:"));if(e.look==="handDrawn"){const I=ot.svg(t);Object.assign([],d);const A=I.path(S,{roughness:.3,seed:o});y+=" transition",b=Bt(A).select("path").attr("id",e.id).attr("class"," "+y+(e.classes?" "+e.classes:"")).attr("style",_?_.reduce((j,P)=>j+";"+P,""):"");let R=b.attr("d");b.attr("d",R),t.node().appendChild(b.node())}else{const I=f.join(";"),A=_?_.reduce((P,$)=>P+$+";",""):"";let R="";e.animate&&(R=" edge-animation-fast"),e.animation&&(R=" edge-animation-"+e.animation);const j=I?I+";"+A+";":A;b=t.append("path").attr("d",S).attr("id",e.id).attr("class"," "+y+(e.classes?" "+e.classes:"")+(R??"")).attr("style",j),w=(z=j.match(/stroke:([^;]+)/))==null?void 0:z[1]}let T="";(It().flowchart.arrowMarkerAbsolute||It().state.arrowMarkerAbsolute)&&(T=c2(!0)),q.info("arrowTypeStart",e.arrowTypeStart),q.info("arrowTypeEnd",e.arrowTypeEnd),a7(b,e,T,s,n,w);let N={};return c&&(N.updatedPath=l),N.originalPath=e.points,N},"insertEdge"),f7=x((t,e,r,n)=>{e.forEach(i=>{M7[i](t,r,n)})},"insertMarkers"),p7=x((t,e,r)=>{q.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).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"),g7=x((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).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"),m7=x((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).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"),y7=x((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).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"),x7=x((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).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),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).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"),v7=x((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).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"),b7=x((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).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"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).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"),w7=x((t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).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"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).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"),k7=x((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-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"),C7=x((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneStart").attr("class","marker onlyOne "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-onlyOneEnd").attr("class","marker onlyOne "+e).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"),S7=x((t,e,r)=>{const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneStart").attr("class","marker zeroOrOne "+e).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("d","M9,0 L9,18");const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+e).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),i.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),_7=x((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreStart").attr("class","marker oneOrMore "+e).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"),t.append("defs").append("marker").attr("id",r+"_"+e+"-oneOrMoreEnd").attr("class","marker oneOrMore "+e).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"),T7=x((t,e,r)=>{const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+e).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");n.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const i=t.append("defs").append("marker").attr("id",r+"_"+e+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+e).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),i.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),E7=x((t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
L20,10
M20,10
L0,20`)},"requirement_arrow"),L7=x((t,e,r)=>{const n=t.append("defs").append("marker").attr("id",r+"_"+e+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");n.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),n.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),n.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),M7={extension:p7,composition:g7,aggregation:m7,dependency:y7,lollipop:x7,point:v7,circle:b7,cross:w7,barb:k7,only_one:C7,zero_or_one:S7,one_or_more:_7,zero_or_more:T7,requirement_arrow:E7,requirement_contains:L7},A7=f7,B7={common:zs,getConfig:mr,insertCluster:D9,insertEdge:d7,insertEdgeLabel:o7,insertMarkers:A7,insertNode:oE,interpolateToCurve:iy,labelHelper:bt,log:q,positionEdgeLabel:l7},Cl={},cE=x(t=>{for(const e of t)Cl[e.name]=e},"registerLayoutLoaders"),N7=x(()=>{cE([{name:"dagre",loader:x(async()=>await zt(()=>import("./dagre-JOIXM2OF-C-NPVAZj.js"),__vite__mapDeps([0,1,2,3,4,5])),"loader")}])},"registerDefaultLayoutLoaders");N7();var TU=x(async(t,e)=>{if(!(t.layoutAlgorithm in Cl))throw new Error(`Unknown layout algorithm: ${t.layoutAlgorithm}`);const r=Cl[t.layoutAlgorithm];return(await r.loader()).render(t,e,B7,{algorithm:r.algorithm})},"render"),EU=x((t="",{fallback:e="dagre"}={})=>{if(t in Cl)return t;if(e in Cl)return q.warn(`Layout algorithm ${t} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${t} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm"),pv={name:"mermaid",version:"11.9.0",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.0.4","@iconify/utils":"^2.1.33","@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.11",dayjs:"^1.11.13",dompurify:"^3.2.5",katex:"^0.16.22",khroma:"^2.1.0","lodash-es":"^4.17.21",marked:"^16.0.0",roughjs:"^4.6.6",stylis:"^4.3.6","ts-dedent":"^2.2.0",uuid:"^11.1.0"},devDependencies:{"@adobe/jsonschema2md":"^8.0.2","@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.0",chokidar:"3.6.0",concurrently:"^9.1.2","csstree-validator":"^4.0.1",globby:"^14.0.2",jison:"^0.4.18","js-base64":"^3.7.7",jsdom:"^26.1.0","json-schema-to-typescript":"^15.0.4",micromatch:"^4.0.8","path-browserify":"^1.0.1",prettier:"^3.5.2",remark:"^15.0.1","remark-frontmatter":"^5.0.0","remark-gfm":"^4.0.1",rimraf:"^6.0.1","start-server-and-test":"^2.0.10","type-fest":"^4.35.0",typedoc:"^0.27.8","typedoc-plugin-markdown":"^4.4.2",typescript:"~5.7.3","unist-util-flatmap":"^1.0.0","unist-util-visit":"^5.0.0",vitepress:"^1.0.2","vitepress-plugin-search":"1.0.4-alpha.22"},files:["dist/","README.md"],publishConfig:{access:"public"}},$7=x(t=>{var i;const{securityLevel:e}=It();let r=Bt("body");if(e==="sandbox"){const s=((i=Bt(`#i${t}`).node())==null?void 0:i.contentDocument)??document;r=Bt(s.body)}return r.select(`#${t}`)},"selectSvgElement"),uE="comm",hE="rule",dE="decl",F7="@import",P7="@namespace",I7="@keyframes",R7="@layer",fE=Math.abs,Sy=String.fromCharCode;function pE(t){return t.trim()}function Kc(t,e,r){return t.replace(e,r)}function O7(t,e,r){return t.indexOf(e,r)}function ls(t,e){return t.charCodeAt(e)|0}function Ns(t,e,r){return t.slice(e,r)}function yn(t){return t.length}function D7(t){return t.length}function Cc(t,e){return e.push(t),t}var td=1,$s=1,gE=0,Wr=0,ue=0,Us="";function _y(t,e,r,n,i,a,s,o){return{value:t,root:e,parent:r,type:n,props:i,children:a,line:td,column:$s,length:s,return:"",siblings:o}}function z7(){return ue}function j7(){return ue=Wr>0?ls(Us,--Wr):0,$s--,ue===10&&($s=1,td--),ue}function rn(){return ue=Wr<gE?ls(Us,Wr++):0,$s++,ue===10&&($s=1,td++),ue}function bi(){return ls(Us,Wr)}function Zc(){return Wr}function ed(t,e){return Ns(Us,t,e)}function Sl(t){switch(t){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 H7(t){return td=$s=1,gE=yn(Us=t),Wr=0,[]}function W7(t){return Us="",t}function uf(t){return pE(ed(Wr-1,lg(t===91?t+2:t===40?t+1:t)))}function q7(t){for(;(ue=bi())&&ue<33;)rn();return Sl(t)>2||Sl(ue)>3?"":" "}function U7(t,e){for(;--e&&rn()&&!(ue<48||ue>102||ue>57&&ue<65||ue>70&&ue<97););return ed(t,Zc()+(e<6&&bi()==32&&rn()==32))}function lg(t){for(;rn();)switch(ue){case t:return Wr;case 34:case 39:t!==34&&t!==39&&lg(ue);break;case 40:t===41&&lg(t);break;case 92:rn();break}return Wr}function V7(t,e){for(;rn()&&t+ue!==57;)if(t+ue===84&&bi()===47)break;return"/*"+ed(e,Wr-1)+"*"+Sy(t===47?t:rn())}function Y7(t){for(;!Sl(bi());)rn();return ed(t,Wr)}function G7(t){return W7(Jc("",null,null,null,[""],t=H7(t),0,[0],t))}function Jc(t,e,r,n,i,a,s,o,l){for(var c=0,u=0,h=s,f=0,d=0,p=0,g=1,v=1,m=1,y=0,b="",S=i,_=a,w=n,T=b;v;)switch(p=y,y=rn()){case 40:if(p!=108&&ls(T,h-1)==58){O7(T+=Kc(uf(y),"&","&\f"),"&\f",fE(c?o[c-1]:0))!=-1&&(m=-1);break}case 34:case 39:case 91:T+=uf(y);break;case 9:case 10:case 13:case 32:T+=q7(p);break;case 92:T+=U7(Zc()-1,7);continue;case 47:switch(bi()){case 42:case 47:Cc(X7(V7(rn(),Zc()),e,r,l),l),(Sl(p||1)==5||Sl(bi()||1)==5)&&yn(T)&&Ns(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*g:o[c++]=yn(T)*m;case 125*g:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+u:m==-1&&(T=Kc(T,/\f/g,"")),d>0&&(yn(T)-h||g===0&&p===47)&&Cc(d>32?mv(T+";",n,r,h-1,l):mv(Kc(T," ","")+";",n,r,h-2,l),l);break;case 59:T+=";";default:if(Cc(w=gv(T,e,r,c,u,i,o,b,S=[],_=[],h,a),a),y===123)if(u===0)Jc(T,e,w,w,S,a,h,o,_);else{switch(f){case 99:if(ls(T,3)===110)break;case 108:if(ls(T,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Jc(t,w,w,n&&Cc(gv(t,w,w,0,0,i,o,b,i,S=[],h,_),_),i,_,h,o,n?S:_):Jc(T,w,w,w,[""],_,0,o,_)}}c=u=d=0,g=m=1,b=T="",h=s;break;case 58:h=1+yn(T),d=p;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&j7()==125)continue}switch(T+=Sy(y),y*g){case 38:m=u>0?1:(T+="\f",-1);break;case 44:o[c++]=(yn(T)-1)*m,m=1;break;case 64:bi()===45&&(T+=uf(rn())),f=bi(),u=h=yn(b=T+=Y7(Zc())),y++;break;case 45:p===45&&yn(T)==2&&(g=0)}}return a}function gv(t,e,r,n,i,a,s,o,l,c,u,h){for(var f=i-1,d=i===0?a:[""],p=D7(d),g=0,v=0,m=0;g<n;++g)for(var y=0,b=Ns(t,f+1,f=fE(v=s[g])),S=t;y<p;++y)(S=pE(v>0?d[y]+" "+b:Kc(b,/&\f/g,d[y])))&&(l[m++]=S);return _y(t,e,r,i===0?hE:o,l,c,u,h)}function X7(t,e,r,n){return _y(t,e,r,uE,Sy(z7()),Ns(t,2,-2),0,n)}function mv(t,e,r,n,i){return _y(t,e,r,dE,Ns(t,0,n),Ns(t,n+1,-1),n,i)}function cg(t,e){for(var r="",n=0;n<t.length;n++)r+=e(t[n],n,t,e)||"";return r}function Q7(t,e,r,n){switch(t.type){case R7:if(t.children.length)break;case F7:case P7:case dE:return t.return=t.return||t.value;case uE:return"";case I7:return t.return=t.value+"{"+cg(t.children,n)+"}";case hE:if(!yn(t.value=t.props.join(",")))return""}return yn(r=cg(t.children,n))?t.return=t.value+"{"+r+"}":""}var K7=YS(Object.keys,Object),Z7=Object.prototype,J7=Z7.hasOwnProperty;function tH(t){if(!Uh(t))return K7(t);var e=[];for(var r in Object(t))J7.call(t,r)&&r!="constructor"&&e.push(r);return e}var ug=Ta(Ln,"DataView"),hg=Ta(Ln,"Promise"),dg=Ta(Ln,"Set"),fg=Ta(Ln,"WeakMap"),yv="[object Map]",eH="[object Object]",xv="[object Promise]",vv="[object Set]",bv="[object WeakMap]",wv="[object DataView]",rH=_a(ug),nH=_a(kl),iH=_a(hg),aH=_a(dg),sH=_a(fg),Xi=Hs;(ug&&Xi(new ug(new ArrayBuffer(1)))!=wv||kl&&Xi(new kl)!=yv||hg&&Xi(hg.resolve())!=xv||dg&&Xi(new dg)!=vv||fg&&Xi(new fg)!=bv)&&(Xi=function(t){var e=Hs(t),r=e==eH?t.constructor:void 0,n=r?_a(r):"";if(n)switch(n){case rH:return wv;case nH:return yv;case iH:return xv;case aH:return vv;case sH:return bv}return e});var oH="[object Map]",lH="[object Set]",cH=Object.prototype,uH=cH.hasOwnProperty;function kv(t){if(t==null)return!0;if(Vh(t)&&(Zu(t)||typeof t=="string"||typeof t.splice=="function"||ry(t)||ny(t)||Ku(t)))return!t.length;var e=Xi(t);if(e==oH||e==lH)return!t.size;if(Uh(t))return!tH(t).length;for(var r in t)if(uH.call(t,r))return!1;return!0}var mE="c4",hH=x(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),dH=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./c4Diagram-6F6E4RAY-Bg8MDzLU.js");return{diagram:e}},__vite__mapDeps([6,7]));return{id:mE,diagram:t}},"loader"),fH={id:mE,detector:hH,loader:dH},pH=fH,yE="flowchart",gH=x((t,e)=>{var r,n;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="elk"?!1:/^\s*graph/.test(t)},"detector"),mH=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./flowDiagram-KYDEHFYC-BaEtj3ag.js");return{diagram:e}},__vite__mapDeps([8,9,10,11,12]));return{id:yE,diagram:t}},"loader"),yH={id:yE,detector:gH,loader:mH},xH=yH,xE="flowchart-v2",vH=x((t,e)=>{var r,n,i;return((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((n=e==null?void 0:e.flowchart)==null?void 0:n.defaultRenderer)==="elk"&&(e.layout="elk"),/^\s*graph/.test(t)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(t))},"detector"),bH=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./flowDiagram-KYDEHFYC-BaEtj3ag.js");return{diagram:e}},__vite__mapDeps([8,9,10,11,12]));return{id:xE,diagram:t}},"loader"),wH={id:xE,detector:vH,loader:bH},kH=wH,vE="er",CH=x(t=>/^\s*erDiagram/.test(t),"detector"),SH=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./erDiagram-3M52JZNH-BD6DQtD0.js");return{diagram:e}},__vite__mapDeps([13,10,11,12]));return{id:vE,diagram:t}},"loader"),_H={id:vE,detector:CH,loader:SH},TH=_H,bE="gitGraph",EH=x(t=>/^\s*gitGraph/.test(t),"detector"),LH=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./gitGraphDiagram-GW3U2K7C-Bqvk3g_k.js");return{diagram:e}},__vite__mapDeps([14,15,16,17,2,4,5]));return{id:bE,diagram:t}},"loader"),MH={id:bE,detector:EH,loader:LH},AH=MH,wE="gantt",BH=x(t=>/^\s*gantt/.test(t),"detector"),NH=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./ganttDiagram-EK5VF46D-B8MNPXpZ.js");return{diagram:e}},__vite__mapDeps([18,19,20,21]));return{id:wE,diagram:t}},"loader"),$H={id:wE,detector:BH,loader:NH},FH=$H,kE="info",PH=x(t=>/^\s*info/.test(t),"detector"),IH=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./infoDiagram-LHK5PUON-K3yTkJqY.js");return{diagram:e}},__vite__mapDeps([22,17,2,4,5]));return{id:kE,diagram:t}},"loader"),RH={id:kE,detector:PH,loader:IH},CE="pie",OH=x(t=>/^\s*pie/.test(t),"detector"),DH=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./pieDiagram-NIOCPIFQ-BoCRWq_L.js");return{diagram:e}},__vite__mapDeps([23,15,17,2,4,5,24,25,20]));return{id:CE,diagram:t}},"loader"),zH={id:CE,detector:OH,loader:DH},SE="quadrantChart",jH=x(t=>/^\s*quadrantChart/.test(t),"detector"),HH=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./quadrantDiagram-2OG54O6I-Cg1kIyap.js");return{diagram:e}},__vite__mapDeps([26,19,20,21]));return{id:SE,diagram:t}},"loader"),WH={id:SE,detector:jH,loader:HH},qH=WH,_E="xychart",UH=x(t=>/^\s*xychart-beta/.test(t),"detector"),VH=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./xychartDiagram-H2YORKM3-CVKvLHY1.js");return{diagram:e}},__vite__mapDeps([27,20,25,19,21]));return{id:_E,diagram:t}},"loader"),YH={id:_E,detector:UH,loader:VH},GH=YH,TE="requirement",XH=x(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),QH=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./requirementDiagram-QOLK2EJ7-BT7_9GHx.js");return{diagram:e}},__vite__mapDeps([28,10,11]));return{id:TE,diagram:t}},"loader"),KH={id:TE,detector:XH,loader:QH},ZH=KH,EE="sequence",JH=x(t=>/^\s*sequenceDiagram/.test(t),"detector"),tW=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./sequenceDiagram-SKLFT4DO-uPyU9k_L.js");return{diagram:e}},__vite__mapDeps([29,7,16]));return{id:EE,diagram:t}},"loader"),eW={id:EE,detector:JH,loader:tW},rW=eW,LE="class",nW=x((t,e)=>{var r;return((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t)},"detector"),iW=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./classDiagram-M3E45YP4-BNXK0uma.js");return{diagram:e}},__vite__mapDeps([30,31,9,10,11]));return{id:LE,diagram:t}},"loader"),aW={id:LE,detector:nW,loader:iW},sW=aW,ME="classDiagram",oW=x((t,e)=>{var r;return/^\s*classDiagram/.test(t)&&((r=e==null?void 0:e.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t)},"detector"),lW=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./classDiagram-v2-YAWTLIQI-BNXK0uma.js");return{diagram:e}},__vite__mapDeps([32,31,9,10,11]));return{id:ME,diagram:t}},"loader"),cW={id:ME,detector:oW,loader:lW},uW=cW,AE="state",hW=x((t,e)=>{var r;return((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t)},"detector"),dW=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./stateDiagram-MI5ZYTHO-oYxlXWt5.js");return{diagram:e}},__vite__mapDeps([33,34,10,11,1,2,3,4]));return{id:AE,diagram:t}},"loader"),fW={id:AE,detector:hW,loader:dW},pW=fW,BE="stateDiagram",gW=x((t,e)=>{var r;return!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&((r=e==null?void 0:e.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),mW=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./stateDiagram-v2-5AN5P6BG-CfFcieY2.js");return{diagram:e}},__vite__mapDeps([35,34,10,11]));return{id:BE,diagram:t}},"loader"),yW={id:BE,detector:gW,loader:mW},xW=yW,NE="journey",vW=x(t=>/^\s*journey/.test(t),"detector"),bW=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./journeyDiagram-EWQZEKCU-DY8T6eAg.js");return{diagram:e}},__vite__mapDeps([36,7,9,24]));return{id:NE,diagram:t}},"loader"),wW={id:NE,detector:vW,loader:bW},kW=wW,CW=x((t,e,r)=>{q.debug(`rendering svg for syntax error
`);const n=$7(e),i=n.append("g");n.attr("viewBox","0 0 2412 512"),u2(n,100,512,!0),i.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),i.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),i.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),i.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),i.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),i.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),i.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),i.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),$E={draw:CW},SW=$E,_W={db:{},renderer:$E,parser:{parse:x(()=>{},"parse")}},TW=_W,FE="flowchart-elk",EW=x((t,e={})=>{var r;return/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((r=e==null?void 0:e.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(e.layout="elk",!0):!1},"detector"),LW=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./flowDiagram-KYDEHFYC-BaEtj3ag.js");return{diagram:e}},__vite__mapDeps([8,9,10,11,12]));return{id:FE,diagram:t}},"loader"),MW={id:FE,detector:EW,loader:LW},AW=MW,PE="timeline",BW=x(t=>/^\s*timeline/.test(t),"detector"),NW=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./timeline-definition-MYPXXCX6-EqEi9qBE.js");return{diagram:e}},__vite__mapDeps([37,24]));return{id:PE,diagram:t}},"loader"),$W={id:PE,detector:BW,loader:NW},FW=$W,IE="mindmap",PW=x(t=>/^\s*mindmap/.test(t),"detector"),IW=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./mindmap-definition-6CBA2TL7-BMdzYvxF.js");return{diagram:e}},__vite__mapDeps([38,39]));return{id:IE,diagram:t}},"loader"),RW={id:IE,detector:PW,loader:IW},OW=RW,RE="kanban",DW=x(t=>/^\s*kanban/.test(t),"detector"),zW=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./kanban-definition-ZSS6B67P-CNUKi9dE.js");return{diagram:e}},__vite__mapDeps([40,9]));return{id:RE,diagram:t}},"loader"),jW={id:RE,detector:DW,loader:zW},HW=jW,OE="sankey",WW=x(t=>/^\s*sankey-beta/.test(t),"detector"),qW=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./sankeyDiagram-4UZDY2LN-14VllK8v.js");return{diagram:e}},__vite__mapDeps([41,25,20]));return{id:OE,diagram:t}},"loader"),UW={id:OE,detector:WW,loader:qW},VW=UW,DE="packet",YW=x(t=>/^\s*packet(-beta)?/.test(t),"detector"),GW=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./diagram-5UYTHUR4-C11j7Pfm.js");return{diagram:e}},__vite__mapDeps([42,15,17,2,4,5]));return{id:DE,diagram:t}},"loader"),XW={id:DE,detector:YW,loader:GW},zE="radar",QW=x(t=>/^\s*radar-beta/.test(t),"detector"),KW=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./diagram-ZTM2IBQH--PZgpt5z.js");return{diagram:e}},__vite__mapDeps([43,15,17,2,4,5]));return{id:zE,diagram:t}},"loader"),ZW={id:zE,detector:QW,loader:KW},jE="block",JW=x(t=>/^\s*block-beta/.test(t),"detector"),tq=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./blockDiagram-6J76NXCF-DZnJsYbC.js");return{diagram:e}},__vite__mapDeps([44,9,5,2,1,12]));return{id:jE,diagram:t}},"loader"),eq={id:jE,detector:JW,loader:tq},rq=eq,HE="architecture",nq=x(t=>/^\s*architecture/.test(t),"detector"),iq=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./architectureDiagram-SUXI7LT5-Dog-MiLd.js");return{diagram:e}},__vite__mapDeps([45,15,16,17,2,4,5,39]));return{id:HE,diagram:t}},"loader"),aq={id:HE,detector:nq,loader:iq},sq=aq,WE="treemap",oq=x(t=>/^\s*treemap/.test(t),"detector"),lq=x(async()=>{const{diagram:t}=await zt(async()=>{const{diagram:e}=await import("./diagram-VMROVX33-s4x0_S_J.js");return{diagram:e}},__vite__mapDeps([46,11,15,17,2,4,5,21,25,20]));return{id:WE,diagram:t}},"loader"),cq={id:WE,detector:oq,loader:lq},Cv=!1,rd=x(()=>{Cv||(Cv=!0,Nu("error",TW,t=>t.toLowerCase().trim()==="error"),Nu("---",{db:{clear:x(()=>{},"clear")},styles:{},renderer:{draw:x(()=>{},"draw")},parser:{parse:x(()=>{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:x(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),wp(AW,OW,sq),wp(pH,HW,uW,sW,TH,FH,RH,zH,ZH,rW,kH,xH,FW,AH,xW,pW,kW,qH,VW,XW,GH,rq,ZW,cq))},"addDiagrams"),uq=x(async()=>{q.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(pa).map(async([r,{detector:n,loader:i}])=>{if(i)try{_p(r)}catch{try{const{diagram:a,id:s}=await i();Nu(s,a,n)}catch(a){throw q.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete pa[r],a}}}))).filter(r=>r.status==="rejected");if(e.length>0){q.error(`Failed to load ${e.length} external diagrams`);for(const r of e)q.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}},"loadRegisteredDiagrams"),hq="graphics-document document";function qE(t,e){t.attr("role",hq),e!==""&&t.attr("aria-roledescription",e)}x(qE,"setA11yDiagramInfo");function UE(t,e,r,n){if(t.insert!==void 0){if(r){const i=`chart-desc-${n}`;t.attr("aria-describedby",i),t.insert("desc",":first-child").attr("id",i).text(r)}if(e){const i=`chart-title-${n}`;t.attr("aria-labelledby",i),t.insert("title",":first-child").attr("id",i).text(e)}}}x(UE,"addSVGa11yTitleDescription");var la,pg=(la=class{constructor(e,r,n,i,a){this.type=e,this.text=r,this.db=n,this.parser=i,this.renderer=a}static async fromText(e,r={}){var c,u;const n=mr(),i=Em(e,n);e=lj(e)+`
`;try{_p(i)}catch{const h=PF(i);if(!h)throw new Qk(`Diagram ${i} not found.`);const{id:f,diagram:d}=await h();Nu(f,d)}const{db:a,parser:s,renderer:o,init:l}=_p(i);return s.parser&&(s.parser.yy=a),(c=a.clear)==null||c.call(a),l==null||l(n),r.title&&((u=a.setDiagramTitle)==null||u.call(a,r.title)),await s.parse(e),new la(i,e,a,s,o)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}},x(la,"Diagram"),la),Sv=[],dq=x(()=>{Sv.forEach(t=>{t()}),Sv=[]},"attachFunctions"),fq=x(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function VE(t){const e=t.match(Xk);if(!e)return{text:t,metadata:{}};let r=$I(e[1],{schema:NI})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};const n={};return r.displayMode&&(n.displayMode=r.displayMode.toString()),r.title&&(n.title=r.title.toString()),r.config&&(n.config=r.config),{text:t.slice(e[0].length),metadata:n}}x(VE,"extractFrontMatter");var pq=x(t=>t.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(e,r,n)=>"<"+r+n.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),gq=x(t=>{const{text:e,metadata:r}=VE(t),{displayMode:n,title:i,config:a={}}=r;return n&&(a.gantt||(a.gantt={}),a.gantt.displayMode=n),{title:i,config:a,text:e}},"processFrontmatter"),mq=x(t=>{const e=bn.detectInit(t)??{},r=bn.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:n})=>n==="wrap"):(r==null?void 0:r.type)==="wrap"&&(e.wrap=!0),{text:X8(t),directive:e}},"processDirectives");function Ty(t){const e=pq(t),r=gq(e),n=mq(r.text),i=cy(r.config,n.directive);return t=fq(n.text),{code:t,title:r.title,config:i}}x(Ty,"preprocessDiagram");function YE(t){const e=new TextEncoder().encode(t),r=Array.from(e,n=>String.fromCodePoint(n)).join("");return btoa(r)}x(YE,"toBase64");var yq=5e4,xq="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",vq="sandbox",bq="loose",wq="http://www.w3.org/2000/svg",kq="http://www.w3.org/1999/xlink",Cq="http://www.w3.org/1999/xhtml",Sq="100%",_q="100%",Tq="border:0;margin:0;",Eq="margin:0",Lq="allow-top-navigation-by-user-activation allow-popups",Mq='The "iframe" tag is not supported by your browser.',Aq=["foreignobject"],Bq=["dominant-baseline"];function Ey(t){const e=Ty(t);return Au(),KF(e.config??{}),e}x(Ey,"processAndSetConfigs");async function GE(t,e){rd();try{const{code:r,config:n}=Ey(t);return{diagramType:(await QE(r)).type,config:n}}catch(r){if(e!=null&&e.suppressErrors)return!1;throw r}}x(GE,"parse");var _v=x((t,e,r=[])=>`
.${t} ${e} { ${r.join(" !important; ")} !important; }`,"cssImportantStyles"),Nq=x((t,e=new Map)=>{var n;let r="";if(t.themeCSS!==void 0&&(r+=`
${t.themeCSS}`),t.fontFamily!==void 0&&(r+=`
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(r+=`
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),e instanceof Map){const o=t.htmlLabels??((n=t.flowchart)==null?void 0:n.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];e.forEach(l=>{kv(l.styles)||o.forEach(c=>{r+=_v(l.id,c,l.styles)}),kv(l.textStyles)||(r+=_v(l.id,"tspan",((l==null?void 0:l.textStyles)||[]).map(c=>c.replace("color","fill"))))})}return r},"createCssStyles"),$q=x((t,e,r,n)=>{const i=Nq(t,r),a=gP(e,i,t.themeVariables);return cg(G7(`${n}{${a}}`),Q7)},"createUserStyles"),Fq=x((t="",e,r)=>{let n=t;return!r&&!e&&(n=n.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),n=Ea(n),n=n.replace(/<br>/g,"<br/>"),n},"cleanUpSvgCode"),Pq=x((t="",e)=>{var i,a;const r=(a=(i=e==null?void 0:e.viewBox)==null?void 0:i.baseVal)!=null&&a.height?e.viewBox.baseVal.height+"px":_q,n=YE(`<body style="${Eq}">${t}</body>`);return`<iframe style="width:${Sq};height:${r};${Tq}" src="data:text/html;charset=UTF-8;base64,${n}" sandbox="${Lq}">
${Mq}
</iframe>`},"putIntoIFrame"),Tv=x((t,e,r,n,i)=>{const a=t.append("div");a.attr("id",r),n&&a.attr("style",n);const s=a.append("svg").attr("id",e).attr("width","100%").attr("xmlns",wq);return i&&s.attr("xmlns:xlink",i),s.append("g"),t},"appendDivSvgG");function gg(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}x(gg,"sandboxedIframe");var Iq=x((t,e,r,n)=>{var i,a,s;(i=t.getElementById(e))==null||i.remove(),(a=t.getElementById(r))==null||a.remove(),(s=t.getElementById(n))==null||s.remove()},"removeExistingElements"),Rq=x(async function(t,e,r){var R,j,P,$,M,D;rd();const n=Ey(e);e=n.code;const i=mr();q.debug(i),e.length>((i==null?void 0:i.maxTextSize)??yq)&&(e=xq);const a="#"+t,s="i"+t,o="#"+s,l="d"+t,c="#"+l,u=x(()=>{const F=Bt(f?o:c).node();F&&"remove"in F&&F.remove()},"removeTempElements");let h=Bt("body");const f=i.securityLevel===vq,d=i.securityLevel===bq,p=i.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const L=gg(Bt(r),s);h=Bt(L.nodes()[0].contentDocument.body),h.node().style.margin=0}else h=Bt(r);Tv(h,t,l,`font-family: ${p}`,kq)}else{if(Iq(document,t,l,s),f){const L=gg(Bt("body"),s);h=Bt(L.nodes()[0].contentDocument.body),h.node().style.margin=0}else h=Bt("body");Tv(h,t,l)}let g,v;try{g=await pg.fromText(e,{title:n.title})}catch(L){if(i.suppressErrorRendering)throw u(),L;g=await pg.fromText("error"),v=L}const m=h.select(c).node(),y=g.type,b=m.firstChild,S=b.firstChild,_=(j=(R=g.renderer).getClasses)==null?void 0:j.call(R,e,g),w=$q(i,y,_,a),T=document.createElement("style");T.innerHTML=w,b.insertBefore(T,S);try{await g.renderer.draw(e,t,pv.version,g)}catch(L){throw i.suppressErrorRendering?u():SW.draw(e,t,pv.version),L}const N=h.select(`${c} svg`),z=($=(P=g.db).getAccTitle)==null?void 0:$.call(P),I=(D=(M=g.db).getAccDescription)==null?void 0:D.call(M);KE(y,N,z,I),h.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",Cq);let A=h.select(c).node().innerHTML;if(q.debug("config.arrowMarkerAbsolute",i.arrowMarkerAbsolute),A=Fq(A,f,ye(i.arrowMarkerAbsolute)),f){const L=h.select(c+" svg").node();A=Pq(A,L)}else d||(A=Ss.sanitize(A,{ADD_TAGS:Aq,ADD_ATTR:Bq,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(dq(),v)throw v;return u(),{diagramType:y,svg:A,bindFunctions:g.db.bindFunctions}},"render");function XE(t={}){var n;const e=_e({},t);e!=null&&e.fontFamily&&!((n=e.themeVariables)!=null&&n.fontFamily)&&(e.themeVariables||(e.themeVariables={}),e.themeVariables.fontFamily=e.fontFamily),XF(e),e!=null&&e.theme&&e.theme in Gn?e.themeVariables=Gn[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=Gn.default.getThemeVariables(e.themeVariables));const r=typeof e=="object"?GF(e):r2();Tm(r.logLevel),rd()}x(XE,"initialize");var QE=x((t,e={})=>{const{code:r}=Ty(t);return pg.fromText(r,e)},"getDiagramFromText");function KE(t,e,r,n){qE(e,t),UE(e,r,n,e.attr("id"))}x(KE,"addA11yInfo");var ba=Object.freeze({render:Rq,parse:GE,getDiagramFromText:QE,initialize:XE,getConfig:mr,setConfig:n2,getSiteConfig:r2,updateSiteConfig:QF,reset:x(()=>{Au()},"reset"),globalReset:x(()=>{Au(_s)},"globalReset"),defaultConfig:_s});Tm(mr().logLevel);Au(mr());var Oq=x((t,e,r)=>{q.warn(t),ly(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),ZE=x(async function(t={querySelector:".mermaid"}){try{await Dq(t)}catch(e){if(ly(e)&&q.error(e.str),Er.parseError&&Er.parseError(e),!t.suppressErrors)throw q.error("Use the suppressErrors option to suppress these errors"),e}},"run"),Dq=x(async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){const n=ba.getConfig();q.debug(`${t?"":"No "}Callback function found`);let i;if(r)i=r;else if(e)i=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");q.debug(`Found ${i.length} diagrams`),(n==null?void 0:n.startOnLoad)!==void 0&&(q.debug("Start On Load: "+(n==null?void 0:n.startOnLoad)),ba.updateSiteConfig({startOnLoad:n==null?void 0:n.startOnLoad}));const a=new bn.InitIDGenerator(n.deterministicIds,n.deterministicIDSeed);let s;const o=[];for(const l of Array.from(i)){if(q.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${a.next()}`;s=l.innerHTML,s=S_(bn.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const u=bn.detectInit(s);u&&q.debug("Detected early reinit: ",u);try{const{svg:h,bindFunctions:f}=await rL(c,s,l);l.innerHTML=h,t&&await t(c),f&&f(l)}catch(h){Oq(h,o,Er.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),JE=x(function(t){ba.initialize(t)},"initialize"),zq=x(async function(t,e,r){q.warn("mermaid.init is deprecated. Please use run instead."),t&&JE(t);const n={postRenderCallback:r,querySelector:".mermaid"};typeof e=="string"?n.querySelector=e:e&&(e instanceof HTMLElement?n.nodes=[e]:n.nodes=e),await ZE(n)},"init"),jq=x(async(t,{lazyLoad:e=!0}={})=>{rd(),wp(...t),e===!1&&await uq()},"registerExternalDiagrams"),tL=x(function(){if(Er.startOnLoad){const{startOnLoad:t}=ba.getConfig();t&&Er.run().catch(e=>q.error("Mermaid failed to initialize",e))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",tL,!1);var Hq=x(function(t){Er.parseError=t},"setParseErrorHandler"),ch=[],hf=!1,eL=x(async()=>{if(!hf){for(hf=!0;ch.length>0;){const t=ch.shift();if(t)try{await t()}catch(e){q.error("Error executing queue",e)}}hf=!1}},"executeQueue"),Wq=x(async(t,e)=>new Promise((r,n)=>{const i=x(()=>new Promise((a,s)=>{ba.parse(t,e).then(o=>{a(o),r(o)},o=>{var l;q.error("Error parsing",o),(l=Er.parseError)==null||l.call(Er,o),s(o),n(o)})}),"performCall");ch.push(i),eL().catch(n)}),"parse"),rL=x((t,e,r)=>new Promise((n,i)=>{const a=x(()=>new Promise((s,o)=>{ba.render(t,e,r).then(l=>{s(l),n(l)},l=>{var c;q.error("Error parsing",l),(c=Er.parseError)==null||c.call(Er,l),o(l),i(l)})}),"performCall");ch.push(a),eL().catch(i)}),"render"),qq=x(()=>Object.keys(pa).map(t=>({id:t})),"getRegisteredDiagramsMetadata"),Er={startOnLoad:!0,mermaidAPI:ba,parse:Wq,render:rL,init:zq,run:ZE,registerExternalDiagrams:jq,registerLayoutLoaders:cE,initialize:JE,parseError:void 0,contentLoaded:tL,setParseErrorHandler:Hq,detectType:Em,registerIconPacks:d9,getRegisteredDiagramsMetadata:qq},Sc=Er;/*! Check if previously processed *//*!
* Wait for document loaded before starting the execution
*/function Uq({code:t}){const[e,r]=Q.useState("rendered"),[n,i]=Q.useState(""),[a,s]=Q.useState(1),[o,l]=Q.useState({x:0,y:0}),[c,u]=Q.useState(!1),[h,f]=Q.useState({x:0,y:0}),d=Q.useRef(null),p=Q.useRef(null),[g,v]=Q.useState(null),[m,y]=Q.useState(!0),[b,S]=Q.useState(!1),[_,w]=Q.useState(!1),T=async()=>{try{await navigator.clipboard.writeText(t),S(!0),setTimeout(()=>S(!1),2e3)}catch(M){console.error("Failed to copy text: ",M)}},N=async()=>{try{y(!0),v(null);const M=document.documentElement.classList.contains("dark")||window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches;if(Sc.initialize({startOnLoad:!1,theme:M?"dark":"default",securityLevel:"loose",logLevel:"error",themeVariables:M?{primaryColor:"#1f2937",primaryTextColor:"#e5e7eb",primaryBorderColor:"#374151",lineColor:"#6b7280",secondaryColor:"#374151",tertiaryColor:"#4b5563",background:"#111827",mainBkg:"#1f2937",secondBkg:"#374151",tertiaryBkg:"#4b5563",textColor:"#e5e7eb",labelTextColor:"#e5e7eb",errorBkgColor:"#7f1d1d",errorTextColor:"#fecaca"}:{}}),Sc.parseError=(F,C)=>{console.error("Mermaid parse error:",F);let W=(F==null?void 0:F.str)||(F==null?void 0:F.message)||"Unknown parsing error";const Y=W.match(/line (\\d+)/i);Y&&(W=`Error at line ${Y[1]}: ${W}`),v(W)},await Sc.parse(t,{suppressErrors:!0})===!1){y(!1),v("Invalid Mermaid syntax. Please check your diagram code."),i("");return}const L=await Sc.render(`mermaid-${Date.now()}`,t);i(L.svg),y(!1)}catch(M){y(!1);const D=M instanceof Error?M.message:"Unknown error occurred";v(D),i(""),console.warn("Mermaid rendering failed:",D)}};Q.useEffect(()=>{N();const M=new MutationObserver(D=>{D.forEach(L=>{L.type==="attributes"&&L.attributeName==="class"&&N()})});return M.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),()=>{M.disconnect(),document.querySelectorAll("div#d-mermaid-0").forEach(F=>F.remove()),document.querySelectorAll("body > div:not([class]):not([id])").forEach(F=>{var C,W;((C=F.textContent)!=null&&C.includes("Parse error")||(W=F.textContent)!=null&&W.includes("Syntax error"))&&F.remove()})}},[t]);const z=()=>{s(M=>Math.min(M*1.2,3))},I=()=>{s(M=>Math.max(M/1.2,.1))},A=()=>{s(1),l({x:0,y:0})},R=M=>{M.preventDefault();const D=M.deltaY>0?.9:1.1;s(L=>Math.max(.1,Math.min(3,L*D)))},j=M=>{g||(u(!0),f({x:M.clientX-o.x,y:M.clientY-o.y}))},P=M=>{!c||g||l({x:M.clientX-h.x,y:M.clientY-h.y})},$=()=>{u(!1)};return k.jsxs("div",{className:"border rounded-lg overflow-hidden bg-card border-border",children:[k.jsxs("div",{className:"bg-muted border-b border-border flex",children:[k.jsx("button",{onClick:()=>r("rendered"),className:`px-4 py-2 text-sm font-medium transition-colors ${e==="rendered"?"bg-background text-foreground border-b-2 border-primary":"text-muted-foreground hover:text-foreground"}`,children:"Mermaid Diagram"}),k.jsx("button",{onClick:()=>r("source"),className:`px-4 py-2 text-sm font-medium transition-colors ${e==="source"?"bg-background text-foreground border-b-2 border-primary":"text-muted-foreground hover:text-foreground"}`,children:"Source"}),k.jsxs("div",{className:"flex-1 bg-muted px-4 py-2 text-sm text-muted-foreground flex justify-end items-center gap-2",children:[k.jsxs("button",{onClick:()=>w(!0),className:"flex items-center gap-1 px-2 py-1 text-xs text-muted-foreground hover:text-foreground hover:bg-accent rounded transition-colors",title:"View in fullscreen",children:[k.jsx(Uw,{size:14}),"Fullscreen"]}),k.jsxs("button",{onClick:T,className:"flex items-center gap-1 px-2 py-1 text-xs text-muted-foreground hover:text-foreground hover:bg-accent rounded transition-colors",title:"Copy Mermaid code",children:[b?k.jsx(Su,{size:14}):k.jsx(_u,{size:14}),b?"Copied!":"Copy"]})]})]}),k.jsx("div",{className:"min-h-[600px] relative",children:e==="rendered"?k.jsx(k.Fragment,{children:m?k.jsx("div",{className:"flex justify-center items-center h-full",children:k.jsx("div",{className:"text-muted-foreground",children:"Loading diagram..."})}):g?k.jsx("div",{className:"p-8",children:k.jsxs("div",{className:"bg-destructive/10 border border-destructive/20 rounded-lg p-4 max-w-4xl mx-auto",children:[k.jsx("h3",{className:"text-destructive font-medium mb-2",children:"Mermaid Parse Error"}),k.jsx("pre",{className:"text-destructive text-sm whitespace-pre-wrap font-mono bg-destructive/5 p-3 rounded mb-3 text-left overflow-x-auto",children:g}),g.includes("line")&&k.jsxs("div",{className:"mb-3",children:[k.jsx("p",{className:"text-gray-600 dark:text-gray-400 text-sm mb-2",children:"Code with line numbers:"}),k.jsx("div",{className:"bg-muted rounded overflow-hidden text-sm",children:k.jsx("pre",{className:"p-3 font-mono text-gray-700 dark:text-gray-300",children:t.split("\\n").map((M,D)=>{const L=D+1,F=g.includes(`line ${L}`);return k.jsxs("div",{className:`${F?"bg-destructive/20":""}`,children:[k.jsx("span",{className:"inline-block w-10 text-right pr-2 text-gray-500 dark:text-gray-500",children:L}),k.jsx("span",{className:F?"text-destructive font-bold":"",children:M||" "})]},D)})})})]})]})}):n?k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"absolute top-4 right-4 z-10 flex flex-col gap-2 bg-popover rounded-lg shadow-lg border border-border p-2",children:[k.jsx("button",{onClick:z,className:"p-2 hover:bg-accent rounded transition-colors text-popover-foreground",title:"Zoom In",children:k.jsx(X0,{size:16})}),k.jsx("button",{onClick:I,className:"p-2 hover:bg-accent rounded transition-colors text-popover-foreground",title:"Zoom Out",children:k.jsx(Q0,{size:16})}),k.jsx("button",{onClick:A,className:"p-2 hover:bg-accent rounded transition-colors text-popover-foreground",title:"Reset Zoom",children:k.jsx(G0,{size:16})}),k.jsxs("div",{className:"text-xs text-gray-500 dark:text-gray-400 text-center px-1",children:[Math.round(a*100),"%"]})]}),k.jsxs("div",{className:"absolute top-4 left-4 z-10 bg-popover rounded-lg shadow-lg border border-border p-2 text-xs text-muted-foreground flex items-center gap-1",children:[k.jsx(Y0,{size:12}),"Drag to pan"]}),k.jsx("div",{ref:p,className:"w-full h-full overflow-hidden cursor-grab active:cursor-grabbing p-8",onWheel:R,onMouseDown:j,onMouseMove:P,onMouseUp:$,onMouseLeave:$,children:k.jsx("div",{ref:d,className:"flex justify-center items-start transition-transform duration-100",style:{transform:`translate(${o.x}px, ${o.y}px) scale(${a})`,transformOrigin:"center top",minHeight:"500px"},dangerouslySetInnerHTML:{__html:n}})})]}):null}):k.jsx("div",{className:"p-0",children:k.jsx(Lu,{language:"mermaid",showLineNumbers:!0,children:t})})}),k.jsx(Dk,{isOpen:_,onClose:()=>w(!1),title:"Mermaid Diagram",children:k.jsx("div",{className:"w-full h-full relative",children:m?k.jsx("div",{className:"flex justify-center items-center h-full",children:k.jsx("div",{className:"text-muted-foreground",children:"Loading diagram..."})}):g?k.jsx("div",{className:"p-8 h-full overflow-auto",children:k.jsxs("div",{className:"bg-destructive/10 border border-destructive/20 rounded-lg p-4 max-w-4xl mx-auto",children:[k.jsx("h3",{className:"text-destructive font-medium mb-2",children:"Mermaid Parse Error"}),k.jsx("pre",{className:"text-destructive text-sm whitespace-pre-wrap font-mono bg-destructive/5 p-3 rounded mb-3 text-left overflow-x-auto",children:g}),g.includes("line")&&k.jsxs("div",{className:"mb-3",children:[k.jsx("p",{className:"text-gray-600 dark:text-gray-400 text-sm mb-2",children:"Code with line numbers:"}),k.jsx("div",{className:"bg-muted rounded overflow-hidden text-sm",children:k.jsx("pre",{className:"p-3 font-mono text-gray-700 dark:text-gray-300",children:t.split(`
`).map((M,D)=>{const L=D+1,F=g.includes(`line ${L}`);return k.jsxs("div",{className:`${F?"bg-destructive/20":""}`,children:[k.jsx("span",{className:"inline-block w-10 text-right pr-2 text-gray-500 dark:text-gray-500",children:L}),k.jsx("span",{className:F?"text-destructive font-bold":"",children:M||" "})]},D)})})})]})]})}):n?k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"absolute top-4 right-4 z-10 flex flex-col gap-2 bg-popover rounded-lg shadow-lg border border-border p-2",children:[k.jsx("button",{onClick:z,className:"p-2 hover:bg-accent rounded transition-colors text-popover-foreground",title:"Zoom In",children:k.jsx(X0,{size:16})}),k.jsx("button",{onClick:I,className:"p-2 hover:bg-accent rounded transition-colors text-popover-foreground",title:"Zoom Out",children:k.jsx(Q0,{size:16})}),k.jsx("button",{onClick:A,className:"p-2 hover:bg-accent rounded transition-colors text-popover-foreground",title:"Reset Zoom",children:k.jsx(G0,{size:16})}),k.jsxs("div",{className:"text-xs text-gray-500 dark:text-gray-400 text-center px-1",children:[Math.round(a*100),"%"]})]}),k.jsxs("div",{className:"absolute top-4 left-4 z-10 bg-popover rounded-lg shadow-lg border border-border p-2 text-xs text-muted-foreground flex items-center gap-1",children:[k.jsx(Y0,{size:12}),"Drag to pan"]}),k.jsx("div",{className:"w-full h-full overflow-hidden cursor-grab active:cursor-grabbing p-8",onWheel:R,onMouseDown:j,onMouseMove:P,onMouseUp:$,onMouseLeave:$,children:k.jsx("div",{className:"flex justify-center items-start transition-transform duration-100",style:{transform:`translate(${o.x}px, ${o.y}px) scale(${a})`,transformOrigin:"center top",minHeight:"calc(100vh - 200px)"},dangerouslySetInnerHTML:{__html:n}})})]}):null})})]})}const Vq={js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rb:"ruby",sh:"bash",yml:"yaml",md:"markdown"};function Yq({className:t,children:e,enableHtmlPreview:r=!0,enableMermaid:n=!0,enableSyntaxHighlight:i=!0,codeTheme:a="vscDarkPlus",showLineNumbers:s=!0}){const[o,l]=Q.useState(!1),c=(t==null?void 0:t.replace("language-",""))||"",u=Vq[c]||c,h=async()=>{try{await navigator.clipboard.writeText(e),l(!0),setTimeout(()=>l(!1),2e3)}catch(f){console.error("Failed to copy text: ",f)}};return c==="html-preview"&&r?k.jsx("div",{className:"my-6",children:k.jsx(tF,{code:e})}):c==="mermaid"&&n?k.jsx("div",{className:"my-6",children:k.jsx(Uq,{code:e})}):c&&i?k.jsxs("div",{className:"my-6",children:[k.jsxs("div",{className:"bg-muted px-4 py-2 text-sm font-medium text-muted-foreground border-b border-border rounded-t-lg flex justify-between items-center",children:[k.jsxs("div",{className:"flex items-center gap-4",children:[k.jsx("span",{children:c}),k.jsxs("span",{className:"text-xs text-muted-foreground/70",children:[e.split("\\n").length," lines"]})]}),k.jsxs("button",{onClick:h,className:"flex items-center gap-1 px-2 py-1 text-xs text-muted-foreground hover:text-foreground hover:bg-accent rounded transition-colors",title:"Copy code",children:[o?k.jsx(Su,{size:14}):k.jsx(_u,{size:14}),o?"Copied!":"Copy"]})]}),k.jsx(Lu,{language:u,theme:a,showLineNumbers:s,children:e})]}):k.jsxs("div",{className:"my-6",children:[k.jsxs("div",{className:"bg-muted px-4 py-2 text-sm font-medium text-muted-foreground border-b border-border rounded-t-lg flex justify-between items-center",children:[k.jsx("span",{children:"code"}),k.jsxs("button",{onClick:h,className:"flex items-center gap-1 px-2 py-1 text-xs text-muted-foreground hover:text-foreground hover:bg-accent rounded transition-colors",title:"Copy code",children:[o?k.jsx(Su,{size:14}):k.jsx(_u,{size:14}),o?"Copied!":"Copy"]})]}),k.jsx("div",{className:"bg-zinc-900 text-zinc-200 p-4 rounded-b-lg overflow-x-auto",children:k.jsx("code",{className:"block whitespace-pre font-mono text-sm text-zinc-200",children:e})})]})}function Pa(t){return`heading-${encodeURIComponent(t.replace(/\s+/g,"-"))}`}function Gq({content:t,className:e="",enableHtmlPreview:r=!0,enableMermaid:n=!0,enableSyntaxHighlight:i=!0,codeTheme:a="vscDarkPlus",showLineNumbers:s=!0}){return k.jsx("div",{className:`${e}`,children:k.jsx(G$,{components:{code:({node:o,className:l,children:c,...u})=>{const h=u.inline,f=String(c).replace(/\n$/,"");return h===!0||!l&&!f.includes(`
`)?k.jsx("code",{className:"bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 mx-1 rounded text-sm font-mono text-gray-800 dark:text-gray-200 border border-gray-200 dark:border-gray-700",...u,children:c}):k.jsx(Yq,{className:l,children:String(c),enableHtmlPreview:r,enableMermaid:n,enableSyntaxHighlight:i,codeTheme:a,showLineNumbers:s})},pre:({children:o})=>k.jsx(k.Fragment,{children:o}),p:({children:o,node:l})=>{var u;return((u=l==null?void 0:l.children)==null?void 0:u.some(h=>{var f,d;return h.type==="element"&&h.tagName==="code"&&((d=(f=h.properties)==null?void 0:f.className)==null?void 0:d.some(p=>p.startsWith("language-")))}))?k.jsx("div",{className:"mb-4",children:o}):k.jsx("p",{className:"mb-4 text-gray-600 dark:text-gray-300 leading-relaxed",children:o})},h1:({children:o})=>{const l=Pa(String(o));return k.jsxs("h1",{id:l,className:"text-3xl font-bold mb-6 text-gray-900 dark:text-gray-100 scroll-mt-32 group relative",children:[o,k.jsx("button",{onClick:()=>{const c=document.getElementById("toc");c&&c.scrollIntoView({behavior:"smooth",block:"start"})},className:"ml-2 text-xs text-gray-400 hover:text-gray-600 opacity-0 group-hover:opacity-100 transition-opacity",children:"↑"})]})},h2:({children:o})=>{const l=Pa(String(o));return k.jsxs("h2",{id:l,className:"text-2xl font-semibold mb-4 text-gray-800 dark:text-gray-200 scroll-mt-32 group relative",children:[o,k.jsx("button",{onClick:()=>{const c=document.getElementById("toc");c&&c.scrollIntoView({behavior:"smooth",block:"start"})},className:"ml-2 text-xs text-gray-400 hover:text-gray-600 opacity-0 group-hover:opacity-100 transition-opacity",children:"↑"})]})},h3:({children:o})=>{const l=Pa(String(o));return k.jsxs("h3",{id:l,className:"text-xl font-medium mb-3 text-gray-700 dark:text-gray-300 scroll-mt-32 group relative",children:[o,k.jsx("button",{onClick:()=>{const c=document.getElementById("toc");c&&c.scrollIntoView({behavior:"smooth",block:"start"})},className:"ml-2 text-xs text-gray-400 hover:text-gray-600 opacity-0 group-hover:opacity-100 transition-opacity",children:"↑"})]})},h4:({children:o})=>{const l=Pa(String(o));return k.jsxs("h4",{id:l,className:"text-lg font-medium mb-2 text-gray-700 dark:text-gray-300 scroll-mt-32 group relative",children:[o,k.jsx("button",{onClick:()=>{const c=document.getElementById("toc");c&&c.scrollIntoView({behavior:"smooth",block:"start"})},className:"ml-2 text-xs text-gray-400 hover:text-gray-600 opacity-0 group-hover:opacity-100 transition-opacity",children:"↑"})]})},h5:({children:o})=>{const l=Pa(String(o));return k.jsxs("h5",{id:l,className:"text-base font-medium mb-2 text-gray-700 dark:text-gray-300 scroll-mt-32 group relative",children:[o,k.jsx("button",{onClick:()=>{const c=document.getElementById("toc");c&&c.scrollIntoView({behavior:"smooth",block:"start"})},className:"ml-2 text-xs text-gray-400 hover:text-gray-600 opacity-0 group-hover:opacity-100 transition-opacity",children:"↑"})]})},h6:({children:o})=>{const l=Pa(String(o));return k.jsxs("h6",{id:l,className:"text-sm font-medium mb-2 text-gray-700 dark:text-gray-300 scroll-mt-32 group relative",children:[o,k.jsx("button",{onClick:()=>{const c=document.getElementById("toc");c&&c.scrollIntoView({behavior:"smooth",block:"start"})},className:"ml-2 text-xs text-gray-400 hover:text-gray-600 opacity-0 group-hover:opacity-100 transition-opacity",children:"↑"})]})},ul:({children:o})=>k.jsx("ul",{className:"mb-4 pl-6 space-y-2 list-disc",children:o}),ol:({children:o})=>k.jsx("ol",{className:"mb-4 pl-6 space-y-2 list-decimal",children:o}),li:({children:o})=>k.jsx("li",{className:"text-gray-600 dark:text-gray-300",children:o}),strong:({children:o})=>k.jsx("strong",{className:"font-bold text-black dark:text-white",children:o}),b:({children:o})=>k.jsx("b",{className:"font-bold text-black dark:text-white",children:o})},children:t})})}function Xq(){const[t,e]=Q.useState(!1);Q.useEffect(()=>{const n=()=>{window.pageYOffset>100?e(!0):e(!1)};let i;const a=()=>{clearTimeout(i),i=setTimeout(n,100)};return window.addEventListener("scroll",a),()=>{window.removeEventListener("scroll",a),clearTimeout(i)}},[]);const r=()=>{window.scrollTo({top:0,behavior:"smooth"})};return t?k.jsx("button",{onClick:r,className:`
fixed bottom-6 right-6 z-50
w-10 h-10 rounded-full
bg-gray-600 hover:bg-gray-700 text-white
transition-opacity duration-300 ease-in-out
flex items-center justify-center
`,"aria-label":"Scroll to top",children:k.jsx(DA,{className:"h-4 w-4"})}):null}function Qq({content:t}){const[e,r]=Q.useState(!1),[n,i]=Q.useState([]);Q.useEffect(()=>{const s=/^(#{1,6})\s+(.+)$/gm,o=[];let l;for(;(l=s.exec(t))!==null;){const c=l[1].length,u=l[2].trim(),h=`heading-${encodeURIComponent(u.replace(/\s+/g,"-"))}`;o.push({id:h,text:u,level:c})}i(o)},[t]);const a=s=>{const o=document.getElementById(s);o&&o.scrollIntoView({behavior:"smooth",block:"start"})};return n.length===0?null:k.jsxs("div",{id:"toc",className:"bg-card border border-border rounded-lg mt-6 mb-4 scroll-mt-20",children:[k.jsxs("div",{className:"flex items-center justify-between p-4 cursor-pointer hover:bg-muted/50 transition-colors",onClick:()=>r(!e),children:[k.jsxs("div",{className:"flex items-center space-x-2",children:[k.jsx(WA,{className:"h-4 w-4 text-muted-foreground"}),k.jsx("h3",{className:"text-sm font-medium",children:"目次"}),k.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",n.length," items)"]})]}),k.jsx("div",{className:"transition-transform duration-200",children:e?k.jsx(Ww,{className:"h-4 w-4 text-muted-foreground"}):k.jsx(OA,{className:"h-4 w-4 text-muted-foreground"})})]}),k.jsx("div",{className:`
overflow-hidden transition-all duration-300 ease-in-out
${e?"max-h-0":"max-h-none"}
`,children:k.jsx("div",{className:"px-4 pb-4 space-y-1",children:n.map((s,o)=>k.jsx("button",{onClick:()=>a(s.id),className:"w-full text-left px-2 py-1 text-sm hover:bg-muted/50 transition-colors",style:{paddingLeft:`${(s.level-1)*16+8}px`},children:k.jsx("span",{className:"truncate block",children:s.text})},o))})})]})}function Kq({content:t}){const[e,r]=Q.useState([]),[n,i]=Q.useState([]);Q.useEffect(()=>{const s=setTimeout(()=>{const o=/^(#{1,6})\s+(.+)$/gm,l=[];let c;for(;(c=o.exec(t))!==null;){const u=c[1].length,h=c[2].trim(),f=`heading-${encodeURIComponent(h.replace(/\s+/g,"-"))}`,d=document.getElementById(f);d&&l.push({id:f,text:h,level:u,element:d})}i(l)},100);return()=>clearTimeout(s)},[t]),Q.useEffect(()=>{if(n.length===0)return;const s=()=>{const d=n.filter(m=>m.element.getBoundingClientRect().top<=100);if(d.length===0){r([]);return}const p=[];let g=6;const v=d[d.length-1];p.unshift(v),g=v.level-1;for(let m=d.length-2;m>=0;m--){const y=d[m];y.level<=g&&(p.unshift(y),g=y.level-1)}r(p)};let o;const l=()=>{clearTimeout(o),o=setTimeout(s,50)};window.addEventListener("scroll",l),window.addEventListener("hashchange",s);let c=window.pageYOffset;const h=setInterval(()=>{const f=window.pageYOffset;Math.abs(f-c)>10&&(s(),c=f)},200);return s(),()=>{window.removeEventListener("scroll",l),window.removeEventListener("hashchange",s),clearInterval(h),clearTimeout(o)}},[n]);const a=s=>{const o=document.getElementById(s);o&&(o.scrollIntoView({behavior:"smooth",block:"start"}),setTimeout(()=>{const c=n.filter(d=>d.element.getBoundingClientRect().top<=100);if(c.length===0){r([]);return}const u=[];let h=6;const f=c[c.length-1];u.unshift(f),h=f.level-1;for(let d=c.length-2;d>=0;d--){const p=c[d];p.level<=h&&(u.unshift(p),h=p.level-1)}r(u)},800))};return e.length===0?null:k.jsx("div",{className:"fixed top-16 left-0 right-0 z-30 bg-white/95 dark:bg-gray-900/95 backdrop-blur-sm border-b border-gray-200 dark:border-gray-700",children:k.jsx("div",{className:"max-w-4xl mx-auto px-6 py-2",children:k.jsx("div",{className:"flex items-center space-x-2 text-sm",children:e.map((s,o)=>k.jsxs("div",{className:"flex items-center space-x-2",children:[k.jsx("button",{onClick:()=>a(s.id),className:"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 transition-colors truncate max-w-xs",style:{paddingLeft:`${Math.max(0,(s.level-1)*8)}px`,fontWeight:o===e.length-1?"600":"400"},children:s.text}),o<e.length-1&&k.jsx(Ww,{className:"h-3 w-3 text-gray-400 flex-shrink-0"})]},s.id))})})})}function Zq(){const{ticket:t,loading:e,error:r,isConnected:n,refetch:i}=rk();if(console.log("TicketViewer state:",{loading:e,error:!!r,ticket:!!t}),Q.useEffect(()=>{const o=l=>{const c=l.target;if(!(c.tagName==="BUTTON"||c.tagName==="A"||c.tagName==="INPUT"||c.tagName==="TEXTAREA"||c.closest("button")||c.closest("a")||c.closest('[role="button"]'))){const h=document.getElementById("toc");h&&h.scrollIntoView({behavior:"smooth",block:"start"})}};return document.addEventListener("dblclick",o),()=>{document.removeEventListener("dblclick",o)}},[]),e)return k.jsx("div",{className:"flex items-center justify-center h-64",children:k.jsxs("div",{className:"flex items-center space-x-3",children:[k.jsx(oc,{className:"h-5 w-5 animate-spin text-muted-foreground"}),k.jsx("span",{className:"text-muted-foreground",children:"Loading ticket..."})]})});if(r)return k.jsxs("div",{className:"flex flex-col items-center justify-center h-64 space-y-4",children:[k.jsxs("div",{className:"flex items-center space-x-3 text-destructive",children:[k.jsx(zA,{className:"h-6 w-6"}),k.jsx("span",{className:"text-lg font-medium",children:"Error loading ticket"})]}),k.jsx("p",{className:"text-muted-foreground text-center max-w-md",children:r.message}),k.jsxs(hl,{onClick:i,variant:"outline",size:"sm",children:[k.jsx(oc,{className:"h-4 w-4 mr-2"}),"Try again"]})]});if(!t)return k.jsxs("div",{className:"max-w-4xl mx-auto",children:[k.jsx("div",{className:"mb-6",children:k.jsxs("div",{className:"flex items-center justify-between",children:[k.jsx("div",{className:"flex items-center space-x-2",children:n?k.jsxs(k.Fragment,{children:[k.jsx(Yw,{className:"h-4 w-4 text-green-500"}),k.jsx("span",{className:"text-sm text-green-600 dark:text-green-400",children:"Connected"})]}):k.jsxs(k.Fragment,{children:[k.jsx(Vw,{className:"h-4 w-4 text-orange-500"}),k.jsx("span",{className:"text-sm text-orange-600 dark:text-orange-400",children:"Disconnected"})]})}),k.jsxs(hl,{onClick:i,variant:"ghost",size:"sm",children:[k.jsx(oc,{className:"h-4 w-4 mr-2"}),"Refresh"]})]})}),k.jsxs("div",{className:"text-center mb-8",children:[k.jsxs("div",{className:"flex items-center justify-center space-x-3 text-muted-foreground mb-4",children:[k.jsx(V0,{className:"h-8 w-8"}),k.jsx("span",{className:"text-2xl font-semibold",children:"No Active Ticket"})]}),k.jsx("p",{className:"text-muted-foreground max-w-md mx-auto",children:"There is no current-ticket.md file in the project root. Choose an action below to get started."})]}),k.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-8",children:[k.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 hover:shadow-md transition-shadow",children:[k.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[k.jsx("div",{className:"p-3 bg-blue-500/10 rounded-lg",children:k.jsx(YA,{className:"h-6 w-6 text-blue-600 dark:text-blue-400"})}),k.jsxs("div",{children:[k.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"Create New"}),k.jsx("p",{className:"text-sm text-muted-foreground",children:"Start a new ticket"})]})]}),k.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Create a new ticket with a unique ID and description. Perfect for planning new features or bug fixes."}),k.jsxs("div",{className:"space-y-2",children:[k.jsx("div",{className:"text-xs text-muted-foreground",children:"Command:"}),k.jsx("code",{className:"block text-xs bg-muted p-2 rounded font-mono",children:"./ticket.sh new feature-name"})]})]}),k.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 hover:shadow-md transition-shadow",children:[k.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[k.jsx("div",{className:"p-3 bg-green-500/10 rounded-lg",children:k.jsx(VA,{className:"h-6 w-6 text-green-600 dark:text-green-400"})}),k.jsxs("div",{children:[k.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"Start Existing"}),k.jsx("p",{className:"text-sm text-muted-foreground",children:"Resume work on a ticket"})]})]}),k.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Start working on an existing ticket from the tickets directory. Creates a feature branch and symlink."}),k.jsxs("div",{className:"space-y-2",children:[k.jsx("div",{className:"text-xs text-muted-foreground",children:"Commands:"}),k.jsxs("code",{className:"block text-xs bg-muted p-2 rounded font-mono",children:["./ticket.sh list",k.jsx("br",{}),"./ticket.sh start TICKET-ID"]})]})]}),k.jsxs("div",{className:"bg-card border border-border rounded-lg p-6 hover:shadow-md transition-shadow",children:[k.jsxs("div",{className:"flex items-center space-x-3 mb-4",children:[k.jsx("div",{className:"p-3 bg-purple-500/10 rounded-lg",children:k.jsx(GA,{className:"h-6 w-6 text-purple-600 dark:text-purple-400"})}),k.jsxs("div",{children:[k.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"Close Work"}),k.jsx("p",{className:"text-sm text-muted-foreground",children:"Complete and merge"})]})]}),k.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Complete your current work, squash commits, and merge to the main branch. Cleans up feature branch."}),k.jsxs("div",{className:"space-y-2",children:[k.jsx("div",{className:"text-xs text-muted-foreground",children:"Command:"}),k.jsx("code",{className:"block text-xs bg-muted p-2 rounded font-mono",children:"./ticket.sh close"})]})]})]}),k.jsx("div",{className:"bg-muted/30 border border-border rounded-lg p-6",children:k.jsxs("div",{className:"flex items-start space-x-3",children:[k.jsx(jA,{className:"h-5 w-5 text-muted-foreground mt-0.5"}),k.jsxs("div",{children:[k.jsx("h4",{className:"text-sm font-semibold text-foreground mb-2",children:"Quick Workflow"}),k.jsxs("div",{className:"text-sm text-muted-foreground space-y-1",children:[k.jsxs("div",{className:"flex items-center space-x-2",children:[k.jsx(qw,{className:"h-3 w-3"}),k.jsx("span",{children:"All work is done on feature branches"})]}),k.jsxs("div",{className:"flex items-center space-x-2",children:[k.jsx(V0,{className:"h-3 w-3"}),k.jsx("span",{children:"current-ticket.md shows your active work"})]}),k.jsxs("div",{className:"flex items-center space-x-2",children:[k.jsx(oc,{className:"h-3 w-3"}),k.jsx("span",{children:"This page updates automatically when you start work"})]})]})]})]})})]});const{metadata:a,content:s}=t;return k.jsxs(k.Fragment,{children:[k.jsx(Kq,{content:s}),k.jsxs("div",{className:"max-w-4xl mx-auto mt-6 pt-4",children:[k.jsxs("div",{className:"bg-card bg-gray-100 dark:bg-gray-800 border border-border rounded-lg mb-6",children:[k.jsx("div",{className:"p-4 border-b border-border",children:k.jsx("div",{className:"flex items-start justify-between",children:k.jsxs("div",{className:"space-y-4",children:[k.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:(a==null?void 0:a.description)||"Untitled Ticket"}),k.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[(a==null?void 0:a.priority)&&k.jsxs("div",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-muted border border-border",children:["Priority ",a.priority]}),(a==null?void 0:a.tags)&&a.tags.length>0&&k.jsxs("div",{className:"flex items-center gap-1",children:[k.jsx("span",{className:"text-xs",children:"Tags:"}),a.tags.map(o=>k.jsx("div",{className:"inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-secondary text-secondary-foreground",children:o},o))]})]})]})})}),k.jsx("div",{className:"p-4",children:k.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 text-sm",children:[k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("div",{className:"text-muted-foreground",children:"📅"}),k.jsxs("div",{children:[k.jsx("p",{className:"text-xs text-muted-foreground",children:"Created"}),k.jsx("p",{className:"text-sm font-medium",children:a!=null&&a.created_at?new Date(a.created_at).toLocaleString("ja-JP",{hour12:!1}):"Not set"})]})]}),k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("div",{className:"text-muted-foreground",children:"⏰"}),k.jsxs("div",{children:[k.jsx("p",{className:"text-xs text-muted-foreground",children:"Started"}),k.jsx("p",{className:"text-sm font-medium",children:a!=null&&a.started_at?new Date(a.started_at).toLocaleString("ja-JP",{hour12:!1}):"Not set"})]})]}),k.jsxs("div",{className:"flex items-center gap-2",children:[k.jsx("div",{className:"text-muted-foreground",children:"⏰"}),k.jsxs("div",{children:[k.jsx("p",{className:"text-xs text-muted-foreground",children:"Closed"}),k.jsx("p",{className:"text-sm font-medium",children:a!=null&&a.closed_at?new Date(a.closed_at).toLocaleString("ja-JP",{hour12:!1}):"Not set"})]})]})]})})]}),k.jsx(Qq,{content:s}),k.jsx("div",{className:"bg-card border border-border rounded-lg p-6",children:k.jsx("div",{className:"prose prose-base lg:prose-lg max-w-none dark:prose-invert prose-headings:scroll-mt-20 prose-ol:list-decimal prose-ul:list-disc",children:k.jsx(Gq,{content:s,enableHtmlPreview:!0,enableMermaid:!0,enableSyntaxHighlight:!0,codeTheme:"vscDarkPlus",showLineNumbers:!0})})}),k.jsx(Xq,{})]})]})}function Jq(){return k.jsx($A,{defaultTheme:"system",storageKey:"vite-ui-theme",attribute:"class",enableSystem:!0,disableTransitionOnChange:!0,children:k.jsxs("div",{className:"min-h-screen bg-background",children:[k.jsx(dB,{}),k.jsx("main",{className:"pt-16 px-4 py-8",children:k.jsx(Zq,{})}),k.jsx(hB,{richColors:!0,position:"bottom-right"})]})})}zw(document.getElementById("root")).render(k.jsx(Q.StrictMode,{children:k.jsx(Jq,{})}));export{h2 as $,Ho as A,$F as B,SP as C,cy as D,mr as E,t2 as F,tj as G,$7 as H,pv as I,NI as J,jF as K,Es as L,eU as M,Yh as N,c2 as O,Lm as P,s1 as Q,l6 as R,Yc as S,J8 as T,Fl as U,dP as V,$l as W,it as X,pt as Y,U8 as Z,x as _,xP as a,YC as a$,i6 as a0,M1 as a1,L1 as a2,dU as a3,oU as a4,uU as a5,cU as a6,aU as a7,$a as a8,Xm as a9,j8 as aA,$z as aB,F8 as aC,ty as aD,kv as aE,p9 as aF,a6 as aG,Yo as aH,_l as aI,jl as aJ,d9 as aK,h9 as aL,Um as aM,gi as aN,k1 as aO,OO as aP,vl as aQ,Sa as aR,H8 as aS,e_ as aT,Hh as aU,Vh as aV,Zu as aW,n_ as aX,t_ as aY,x8 as aZ,ht as a_,hU as aa,sU as ab,pU as ac,fU as ad,lU as ae,D9 as af,oE as ag,SU as ah,FI as ai,ye as aj,ji as ak,zm as al,I_ as am,Ea as an,c_ as ao,xt as ap,_n as aq,A7 as ar,CU as as,_U as at,wU as au,ut as av,kU as aw,d7 as ax,l7 as ay,o7 as az,yP as b,hr as b0,BO as b1,qm as b2,lS as b3,Rl as b4,hS as b5,iU as b6,iF as b7,z8 as b8,$8 as b9,dg as bA,W8 as bB,Uh as bC,zt as bD,bz as ba,ey as bb,p8 as bc,q8 as bd,Dl as be,Hs as bf,Xu as bg,_8 as bh,tH as bi,Ol as bj,Ku as bk,v8 as bl,GS as bm,Cz as bn,Sz as bo,Xi as bp,q1 as bq,_z as br,ry as bs,kz as bt,Lz as bu,Ws as bv,zi as bw,D1 as bx,ny as by,QS as bz,It as c,Bt as d,u2 as e,_e as f,bP as g,ei as h,ga as i,GC as j,zs as k,q as l,h_ as m,rU as n,EU as o,wP as p,kP as q,TU as r,vP as s,$I as t,bn as u,i7 as v,nj as w,gU as x,mP as y,nU as z};