PageSourceSearch

https://dashboard.velocity.in/assets/mermaid.core-utAIzOV_.js

js velocity.in collected 2026-09-24 09:25:10 UTC 703,343 bytes, 312 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid-VLURNSYL-CPd_SwGs.js","assets/index-2CwtICst.js","assets/index-BoBYvmN_.css","assets/clsx-B-dksMZM.js","assets/index-8OkMnkqS.js","assets/Expand-CgWQn8r0.js","assets/index-CuJiRo7R.js","assets/Portal-m7W4unkL.js","assets/getScrollBarSize-CHB1zEd-.js","assets/useId-BeW6vcu-.js","assets/Keyframes-kYrXGAxm.js","assets/CheckOutlined-BXgii8XF.js","assets/CloseCircleFilled-CbIeIgTN.js","assets/CloseOutlined-DrYqvwGF.js","assets/DownOutlined-DqNR-cNR.js","assets/LoadingOutlined-GuF8KcDa.js","assets/QuestionCircleOutlined-BHQTwf_S.js","assets/QuestionCircleOutlined-CkfPyHQh.js","assets/CheckCircleFilled-BVfbTM6t.js","assets/ExclamationCircleFilled-OdkGiaQF.js","assets/advancedFormat-BfkFdl6d.js","assets/customParseFormat-DUp0oxMC.js","assets/SwapRightOutlined-ZhesmLeu.js","assets/ClockCircleOutlined-P-L76-YC.js","assets/EyeInvisibleOutlined-BKFvEu8x.js","assets/EyeOutlined-BpOvbIOU.js","assets/Expand-08jYzemz.css","assets/profile_dropdown-BHkxBqf_.js","assets/constants-CNHr-9z-.js","assets/KeyLine-DbHrvLov.js","assets/BillLine-D4PgZmiD.js","assets/MessageFill-DoJFk5G_.js","assets/PackageSmall-DXcoG-iG.js","assets/ClipboardLineIcon-Bh2KJsdr.js","assets/ExchangeLine-DasM4eUe.js","assets/index-D3pD5RCc.js","assets/dropdown-1Xi7yUr8.js","assets/Dropdown-CSDSyzzq.js","assets/isNumeric-OYazz19Q.js","assets/profile_dropdown-B2T2i0hN.css","assets/humbleicons_ai-R1B9qVKG.js","assets/modal_header-Zzno9Dew.js","assets/humbleicons_ai-p1bkHfAz.css","assets/utils-D_KRJni2.js","assets/utils-Byo2OGEK.js","assets/react-number-format.es-Dr0FQMRn.js","assets/index-D_ey_yow.js","assets/index-BCDMll3A.js","assets/CloseIcon-CdU2swGf.js","assets/index-CKFX8CyF.css","assets/index-IOqWghCC.js","assets/index-CUYKYEVB.js","assets/index-BblLubfX.css","assets/walletPromo-7iFugMAD.js","assets/WalletOutlined-CJ-LESdj.js","assets/form_utils-BRD3em_d.js","assets/index-DdKyALA4.js","assets/css-CG3sgCP8.js","assets/DialogWrap-DDRffVA8.js","assets/index-l3dd8B4K.js","assets/use_is_mobile-QmlX2oD9.js","assets/index-jD7EqV93.css","assets/constant-BEBLfsgt.js","assets/utils-CJar-MsZ.js","assets/PackageMedium-p3o-GjjV.js","assets/CartTrolley-BJIgsVV3.js","assets/layout.module-CnEu4Xzs.js","assets/layout-xv8cuHWt.css","assets/ExportOutlined-DuChcwzc.js","assets/utils-CzUamQOJ.css","assets/index-BC4zRIry.js","assets/PlayCircleOutlined-CNZtebN0.js","assets/modal_component-CQ9TsgKw.js","assets/FeatureStar-BbUMKN2L.js","assets/firebase-C6tfLYOi.js","assets/RightOutlined-CDcErbka.js","assets/LeftOutlined-DYhGbq7x.js","assets/index-FOo2YWt8.js","assets/download-BsIsPJWO.js","assets/utils-CvYDbZK_.js","assets/ShieldLine-DjIMDgH1.js","assets/TimerLine-DK0gYHeS.js","assets/WhatsappLine-DmaXxmCB.js","assets/utils-Bs0LRNLQ.css","assets/index-CVVwWOkW.css","assets/header.module-_RWwLwqI.js","assets/header-DPZ5-mk_.css","assets/MenuFoldOutlined-DL8AyJaH.js","assets/MenuUnfoldOutlined-nOCx9wos.js","assets/index-BRNAGDIA.js","assets/index-C06G1oJB.css","assets/common-Cfql01h7.js","assets/index-DlFsGudq.js","assets/company_assets-Bi-ysXYs.js","assets/index-C3amc44W.js","assets/index-WwLacq_2.css","assets/constants-CJSAtiCy.js","assets/InboundAgentsHeadphone-BlmFZdUZ.js","assets/constants-CJ-_Y_wA.js","assets/index-sjF6j1Zg.js","assets/Table-CwvOdCcz.js","assets/index-BxPsFHPt.js","assets/isEqual-DAIv1GAa.js","assets/LinkOutlined-DMDRFYKB.js","assets/index-pcX5y_VX.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/StarOutlined-Ck9YYAOI.js","assets/constant-BCdx9S_W.js","assets/TagsOutlined-DBhx8-he.js","assets/DownloadOutlined-hBiodi2E.js","assets/DownloadOutlined-DTidZHln.js","assets/progress-BiVrF1Ei.js","assets/MinusCircleOutlined-pGlfcGRc.js","assets/CloseCircleOutlined-DBPHwA5-.js","assets/Collapse-LLLXNv2l.js","assets/product_guide_activity_provider-DkIj5k50.js","assets/index.es-BTgDkHSF.js","assets/FileTextOutlined-HaoSIRzv.js","assets/MessageOutlined-Dmd04f_E.js","assets/index-CgThkLrm.js","assets/InfoCircleOutlined-WJAwMEA5.js","assets/index-HKbg6tCc.css","assets/mermaid-VLURNSYL-CN9em_mw.css","assets/sizeCapture-INFHLROL-SPzmkbiW.js","assets/color-K1w_5xbN.js","assets/dagre-GXQ25YYZ-DlW8e028.js","assets/layout-CFG3ObXZ.js","assets/swimlanes-42K2YHIH-CPkQrYQe.js","assets/cose-bilkent-JH36ORCC-DOxx64t9.js","assets/cytoscape.esm-C5JX3QLV.js","assets/c4Diagram-7LVT6UL2-BGaFmujM.js","assets/chunk-F27PBJKO-BNT25z3S.js","assets/flowDiagram-HODETNUW-DGGiR99w.js","assets/chunk-5VM5RSS4-CQPcxqHW.js","assets/chunk-XXDRQBXY-DbvXprkO.js","assets/chunk-POPQ4Y6H-LS5QsUbW.js","assets/channel-DK7tBn39.js","assets/swimlanesDiagram-VR7AAH4N-BEpXJ9X8.js","assets/erDiagram-RLTQ6QDP-Dj7FTak8.js","assets/gitGraphDiagram-WWUBYQGX-A1xPRix4.js","assets/chunk-2Q5K7J3B-Dz2-_Y1G.js","assets/chunk-JWPE2WC7-B0YTVgLC.js","assets/cynefin-OW5HDTMX-B4RyR-De.js","assets/ganttDiagram-EL5Y4UJY-CoeD2RnC.js","assets/duration-DUuELGkf.js","assets/time-00_ENvVj.js","assets/linear-DqMv3kL-.js","assets/init-Dmth1JHB.js","assets/defaultLocale-5voVPcsN.js","assets/infoDiagram-27XIBGKW-BNbJnPvJ.js","assets/pieDiagram-E7YTZNPT-DEqY0DIC.js","assets/arc-CZEjBBKj.js","assets/ordinal-DILIJJjt.js","assets/quadrantDiagram-AXDQQJYC-BQ8wCmHm.js","assets/xychartDiagram-S5SC5T6Z-Dc7WWu09.js","assets/band-CquvqAHh.js","assets/requirementDiagram-BXWQKSXE-DKihlbfc.js","assets/sequenceDiagram-WJ2MYXX4-xzSHi5BN.js","assets/classDiagram-ZZMXUADV-Bj_UdB2Q.js","assets/chunk-TICWLB2K-DFJo8378.js","assets/classDiagram-v2-VYDZK3BY-Bj_UdB2Q.js","assets/stateDiagram-D77RDMKH-DXo29ndy.js","assets/chunk-IMKFNOWR-Rb5GGsvM.js","assets/stateDiagram-v2-MP3YSRHH-BDMbe9kd.js","assets/journeyDiagram-3NMN7TZE-CaY27_fa.js","assets/timeline-definition-24CTP7MA-Cu8mmSTL.js","assets/mindmap-definition-YA3MSWOX-B4vVfgNO.js","assets/kanban-definition-UXKFOSKX-CKUxBq21.js","assets/sankeyDiagram-P5KCCOFB-at4SknDJ.js","assets/diagram-Z3DM3KII-BZI5OKRM.js","assets/diagram-UQ7AKVKN-Bkmt_g8K.js","assets/blockDiagram-I7D4REHJ-CnIoD11v.js","assets/diagram-S7CK7UJ4-Djja2E2G.js","assets/architectureDiagram-5GKGNRK7-DxnkvGAg.js","assets/diagram-VSXAHHWV-DyF0XhXn.js","assets/ishikawaDiagram-5VMMS53U-F683Dhd3.js","assets/vennDiagram-4TSXK5OY-RDoms4Iv.js","assets/diagram-VX7I27RA-CBAxlqhE.js","assets/wardleyDiagram-VM6X3IG4-pUuxu4WO.js","assets/cynefinDiagram-5FMLGOSQ-DQno89
1kM.js","assets/railroadDiagram-O6MQD6OU-D5RKxaa0.js","assets/chunk-SVP7TREG-D0ZN36e2.js","assets/ebnfDiagram-PWID7BFC-DMk8KOd7.js","assets/abnfDiagram-VCTEODGH-Dr1OEC4i.js","assets/pegDiagram-XKGWAZYB-CzOhmT2x.js"])))=>i.map(i=>d[i]);
2var q0=Object.defineProperty;var W0=(e,t,r)=>t in e?q0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Kt=(e,t,r)=>W0(e,typeof t!="symbol"?t+"":t,r);import{mQ as z0,aA as H0,bv as It,ap as $d,cO as tc,mR as ec,lo as Xe,le as Y0,mS as U0,lC as G0,lz as Zo,mT as So,lt as ul,mU as X0,mV as j0,li as V0,mW as rc,mX as ic,mY as wn,lm as Tn,lw as ho,ln as Od,mZ as Sn,lf as K0,lx as _r,m_ as Z0,lh as Q0,lg as dl,m$ as J0,n0 as tx,ly as ex,n1 as rx,n2 as ix,n3 as _a,lu as sc,n4 as sx,n5 as ox,n6 as ax,n7 as oc,n8 as nx,n9 as lx,na as hx,nb as cx,nc as ux}from"./index-2CwtICst.js";import{I as Dd,J as _o,e as ac,r as nc,o as lc,u as Id,v as Rd,z as Pd,A as Nd,B as qd,C as Wd,D as dx,q as co,E as zd,F as Hd,G as fx,H as px,k as _n,l as gx}from"./color-K1w_5xbN.js";function mx(e){var t=z0(e);return function(r,i,s,o){for(var a="",n=0;n<t;n++)a+=e[n](r,i,s,o)||"";return a}}function Yd(e,t){this._basis=new Dd(e),this._beta=t}Yd.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(r>0)for(var i=e[0],s=t[0],o=e[r]-i,a=t[r]-s,n=-1,l;++n<=r;)l=n/r,this._basis.point(this._beta*e[n]+(1-this._beta)*(i+l*o),this._beta*t[n]+(1-this._beta)*(s+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const yx=function e(t){function r(i){return t===1?new Dd(i):new Yd(i,t)}return r.beta=function(i){return e(+i)},r}(.85);function vo(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function fl(e,t){this._context=e,this._k=(1-t)/6}fl.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:vo(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:vo(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ud=function e(t){function r(i){return new fl(i,t)}return r.tension=function(i){return e(+i)},r}(0);function pl(e,t){this._context=e,this._k=(1-t)/6}pl.prototype={areaStart:_o,areaEnd:_o,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:vo(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const xx=function e(t){function r(i){return new pl(i,t)}return r.tension=function(i){return e(+i)},r}(0);function gl(e,t){this._context=e,this._k=(1-t)/6}gl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:vo(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Cx=function e(t){function r(i){return new gl(i,t)}return r.tension=function(i){return e(+i)},r}(0);function ml(e,t,r){var i=e._x1,s=e._y1,o=e._x2,a=e._y2;if(e._l01_a>ac){var n=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*n-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,s=(s*n-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>ac){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,h=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/h,a=(a*c+e._y1*e._l23_2a-r*e._l12_2a)/h}e._context.bezierCurveTo(i,s,o,a,e._x2,e._y2)}function Gd(e,t){this._context=e,this._alpha=t}Gd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:ml(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Xd=function e(t){function r(i){return t?new Gd(i,t):new fl(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);
2function jd(e,t){this._context=e,this._alpha=t}jd.prototype={areaStart:_o,areaEnd:_o,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:ml(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const bx=function e(t){function r(i){return t?new jd(i,t):new pl(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);function Vd(e,t){this._context=e,this._alpha=t}Vd.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ml(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const kx=function e(t){function r(i){return t?new Vd(i,t):new gl(i,0)}return r.alpha=function(i){return e(+i)},r}(.5);var Kd=Object.defineProperty,p=(e,t)=>Kd(e,"name",{value:t,configurable:!0}),wx=(e,t)=>{for(var r in t)Kd(e,r,{get:t[r],enumerable:!0})},br={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},I={trace:p((...e)=>{},"trace"),debug:p((...e)=>{},"debug"),info:p((...e)=>{},"info"),warn:p((...e)=>{},"warn"),error:p((...e)=>{},"error"),fatal:p((...e)=>{},"fatal")},yl=p(function(e="fatal"){let t=br.fatal;typeof e=="string"?e.toLowerCase()in br&&(t=br[e]):typeof e=="number"&&(t=e),I.trace=()=>{},I.debug=()=>{},I.info=()=>{},I.warn=()=>{},I.error=()=>{},I.fatal=()=>{},t<=br.fatal&&(I.fatal=console.error?console.error.bind(console,qe("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",qe("FATAL"))),t<=br.error&&(I.error=console.error?console.error.bind(console,qe("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",qe("ERROR"))),t<=br.warn&&(I.warn=console.warn?console.warn.bind(console,qe("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",qe("WARN"))),t<=br.info&&(I.info=console.info?console.info.bind(console,qe("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",qe("INFO"))),t<=br.debug&&(I.debug=console.debug?console.debug.bind(console,qe("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",qe("DEBUG"))),t<=br.trace&&(I.trace=console.debug?console.debug.bind(console,qe("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",qe("TRACE")))},"setLogLevel"),qe=p(e=>`%c${H0().format("ss.SSS")} : ${e} : `,"format");const uo={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:(e,t,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e),hsl2rgb:({h:e,s:t,l:r},i)=>{if(!t)return r*2.55;e/=360,t/=100,r/=100;const s=r<.5?r*(1+t):r+t-r*t,o=2*r-s;switch(i){case"r":return uo.hue2rgb(o,s,e+1/3)*255;case"g":return uo.hue2rgb(o,s,e)*255;case"b":return uo.hue2rgb(o,s,e-1/3)*255}},rgb2hsl:({r:e,g:t,b:r},i)=>{e/=255,t/=255,r/=255;const s=Math.max(e,t,r),o=Math.min(e,t,r),a=(s+o)/2;if(i==="l")return a*100;if(s===o)return 0;const n=s-o,l=a>.5?n/(2-s-o):n/(s+o);if(i==="s")return l*100;switch(s){case e:return((t-r)/n+(t<r?6:0))*60;case t:return((r-e)/n+2)*60;case r:return((e-t)/n+4)*60;default:return-1}}},Tx={clamp:(e,t,r)=>t>r?Math.min(t,Math.max(r,e)):Math.min(r,Math.max(t,e)),round:e=>Math.round(e*1e10)/1e10},Sx={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},At={channel:uo,lang:Tx,unit:Sx},Or={};for(let e=0;e<=255;e++)Or[e]=At.unit.dec2hex(e);const ge={ALL:0,RGB:1,HSL:2};let _x=class{constructor(){this.type=ge.ALL}get(){return this.type}
2set(t){if(this.type&&this.type!==t)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=t}reset(){this.type=ge.ALL}is(t){return this.type===t}};class vx{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new _x}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=ge.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:s}=t;r===void 0&&(t.h=At.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=At.channel.rgb2hsl(t,"s")),s===void 0&&(t.l=At.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:s}=t;r===void 0&&(t.r=At.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=At.channel.hsl2rgb(t,"g")),s===void 0&&(t.b=At.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(ge.HSL)&&r!==void 0?r:(this._ensureHSL(),At.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(ge.HSL)&&r!==void 0?r:(this._ensureHSL(),At.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(ge.HSL)&&r!==void 0?r:(this._ensureHSL(),At.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(ge.RGB)&&r!==void 0?r:(this._ensureRGB(),At.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(ge.RGB)&&r!==void 0?r:(this._ensureRGB(),At.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(ge.RGB)&&r!==void 0?r:(this._ensureRGB(),At.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(ge.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(ge.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(ge.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(ge.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(ge.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(ge.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const Qo=new vx({r:0,g:0,b:0,a:0},"transparent"),yi={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(yi.re);if(!t)return;const r=t[1],i=parseInt(r,16),s=r.length,o=s%4===0,a=s>4,n=a?1:17,l=a?8:4,c=o?0:-1,h=a?255:15;return Qo.set({r:(i>>l*(c+3)&h)*n,g:(i>>l*(c+2)&h)*n,b:(i>>l*(c+1)&h)*n,a:o?(i&h)*n/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:s}=e;return s<1?`#${Or[Math.round(t)]}${Or[Math.round(r)]}${Or[Math.round(i)]}${Or[Math.round(s*255)]}`:`#${Or[Math.round(t)]}${Or[Math.round(r)]}${Or[Math.round(i)]}`}},Vr={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const t=e.match(Vr.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return At.channel.clamp.h(parseFloat(r)*.9);case"rad":return At.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return At.channel.clamp.h(parseFloat(r)*360)}}return At.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(Vr.re);if(!r)return;const[,i,s,o,a,n]=r;return Qo.set({h:Vr._hue2deg(i),s:At.channel.clamp.s(parseFloat(s)),l:At.channel.clamp.l(parseFloat(o)),a:a?At.channel.clamp.a(n?parseFloat(a)/100:parseFloat(a)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:s}=e;return s<1?`hsla(${At.lang.round(t)}, ${At.lang.round(r)}%, ${At.lang.round(i)}%, ${s})`:`hsl(${At.lang.round(t)}, ${At.lang.round(r)}%, ${At.lang.round(i)}%)`}},ms={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",s
2almon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const t=ms.colors[e];if(t)return yi.parse(t)},stringify:e=>{const t=yi.stringify(e);for(const r in ms.colors)if(ms.colors[r]===t)return r}},os={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const t=e.charCodeAt(0);if(t!==114&&t!==82)return;const r=e.match(os.re);if(!r)return;const[,i,s,o,a,n,l,c,h]=r;return Qo.set({r:At.channel.clamp.r(s?parseFloat(i)*2.55:parseFloat(i)),g:At.channel.clamp.g(a?parseFloat(o)*2.55:parseFloat(o)),b:At.channel.clamp.b(l?parseFloat(n)*2.55:parseFloat(n)),a:c?At.channel.clamp.a(h?parseFloat(c)/100:parseFloat(c)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:s}=e;return s<1?`rgba(${At.lang.round(t)}, ${At.lang.round(r)}, ${At.lang.round(i)}, ${At.lang.round(s)})`:`rgb(${At.lang.round(t)}, ${At.lang.round(r)}, ${At.lang.round(i)})`}},hr={format:{keyword:ms,hex:yi,rgb:os,rgba:os,hsl:Vr,hsla:Vr},parse:e=>{if(typeof e!="string")return e;const t=yi.parse(e)||os.parse(e)||Vr.parse(e)||ms.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(ge.HSL)||e.data.r===void 0?Vr.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?os.stringify(e):yi.stringify(e)},Zd=(e,t)=>{const r=hr.parse(e);for(const i in t)r[i]=At.channel.clamp[i](t[i]);return hr.stringify(r)},Pr=(e,t,r=0,i=1)=>{if(typeof e!="number")return Zd(e,{a:t});const s=Qo.set({r:At.channel.clamp.r(e),g:At.channel.clamp.g(t),b:At.channel.clamp.b(r),a:At.channel.clamp.a(i)});return hr.stringify(s)},Bx=e=>{const{r:t,g:r,b:i}=hr.parse(e),s=.2126*At.channel.toLinear(t)+.7152*At.channel.toLinear(r)+.0722*At.channel.toLinear(i);return At.lang.round(s)},Lx=e=>Bx(e)>=.5,Ve=e=>!Lx(e),Qd=(e,t,r)=>{const i=hr.parse(e),s=i[t],o=At.channel.clamp[t](s+r);return s!==o&&(i[t]=o),hr.stringify(i)},R=(e,t)=>Qd(e,"l",t),P=(e,t)=>Qd(e,"l",-t),b=(e,t)=>{const r=hr.parse(e),i={};for(const s in t)t[s]&&(i[s]=r[s]+t[s]);return Zd(e,i)},Fx=(e,t,r=50)=>{const{r:i,g:s,b:o,a}=hr.parse(e),{r:n,g:l,b:c,a:h}=hr.parse(t),u=r/100,d=u*2-1,f=a-h,y=((d*f===-1?d:(d+f)/(1+d*f))+1)/2,C=1-y,x=i*y+n*C,k=s*y+l*C,T=o*y+c*C,S=a*u+h*(1-u);return Pr(x,k,T,S)},F=(e,t=100)=>{const r=hr.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Fx(r,e,t)};/*! @license DOMPurify 3.4.15 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.15/LICENSE */function hc(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function Ax(e){if(Array.isArray(e))return e}function Ex(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,s,o,a,n=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,t!==0)for(;!(l=(i=o.call(r)).done)&&(n.push(i.value),n.length!==t);l=!0);}catch(h){c=!0,s=h}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw s}}return n}}function Mx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $x(e,t){return Ax(e)||Ex(e,t)||Ox(e,t)||Mx()}function Ox(e,t){if(e){if(typeof e=="string")return hc(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hc(e,t):void 0}}
vendor: 6,064 bytes, line 3
3const Jd=Object.entries,cc=Object.setPrototypeOf,Dx=Object.isFrozen,Ix=Object.getPrototypeOf,Rx=Object.getOwnPropertyDescriptor;let ae=Object.freeze,he=Object.seal,di=Object.create,tf=typeof Reflect<"u"&&Reflect,vn=tf.apply,Bn=tf.construct;ae||(ae=function(t){return t});he||(he=function(t){return t});vn||(vn=function(t,r){for(var i=arguments.length,s=new Array(i>2?i-2:0),o=2;o<i;o++)s[o-2]=arguments[o];return t.apply(r,s)});Bn||(Bn=function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return new t(...i)});const Xr=oe(Array.prototype.forEach),Px=oe(Array.prototype.lastIndexOf),uc=oe(Array.prototype.pop),Vi=oe(Array.prototype.push),Nx=oe(Array.prototype.splice),xi=Array.isArray,as=oe(String.prototype.toLowerCase),va=oe(String.prototype.toString),dc=oe(String.prototype.match),Ki=oe(String.prototype.replace),fc=oe(String.prototype.indexOf),qx=oe(String.prototype.trim),Wx=oe(Number.prototype.toString),zx=oe(Boolean.prototype.toString),pc=typeof BigInt>"u"?null:oe(BigInt.prototype.toString),gc=typeof Symbol>"u"?null:oe(Symbol.prototype.toString),Ae=oe(Object.prototype.hasOwnProperty),Zi=oe(Object.prototype.toString),pe=oe(RegExp.prototype.test),Hr=Hx(TypeError);function oe(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return vn(e,t,i)}}function Hx(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Bn(e,r)}}function Yt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:as;if(cc&&cc(e,null),!xi(t))return e;let i=t.length;for(;i--;){let s=t[i];if(typeof s=="string"){const o=r(s);o!==s&&(Dx(t)||(t[i]=o),s=o)}e[s]=!0}return e}function Yx(e){for(let t=0;t<e.length;t++)Ae(e,t)||(e[t]=null);return e}function Oe(e){const t=di(null);for(const i of Jd(e)){var r=$x(i,2);const s=r[0],o=r[1];Ae(e,s)&&(xi(o)?t[s]=Yx(o):o&&typeof o=="object"&&o.constructor===Object?t[s]=Oe(o):t[s]=o)}return t}function Ux(e){switch(typeof e){case"string":return e;case"number":return Wx(e);case"boolean":return zx(e);case"bigint":return pc?pc(e):"0";case"symbol":return gc?gc(e):"Symbol()";case"undefined":return Zi(e);case"function":case"object":{if(e===null)return Zi(e);const t=e,r=We(t,"toString");if(typeof r=="function"){const i=r(t);return typeof i=="string"?i:Zi(i)}return Zi(e)}default:return Zi(e)}}function We(e,t){for(;e!==null;){const i=Rx(e,t);if(i){if(i.get)return oe(i.get);if(typeof i.value=="function")return oe(i.value)}e=Ix(e)}function r(){return null}return r}function Gx(e){try{return pe(e,""),!0}catch{return!1}}const mc=ae(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ba=ae(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),La=ae(["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"]),Xx=ae(["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"]),Fa=ae(["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"]),jx=ae(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),yc=ae(["#text"]),xc=ae(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
3spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Aa=ae(["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","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","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-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","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"]),Cc=ae(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),js=ae(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Vx=he(/{{[\w\W]*|^[\w\W]*}}/g),Kx=he(/<%[\w\W]*|^[\w\W]*%>/g),Zx=he(/\${[\w\W]*/g),Qx=he(/^data-[\-\w.\u00B7-\uFFFF]+$/),Jx=he(/^aria-[\-\w]+$/),bc=he(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),tC=he(/^(?:\w+script|data):/i),eC=he(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),rC=he(/^html$/i),iC=he(/^[a-z][.\w]*(-[.\w]+)+$/i),kc=he(/<[/\w!]/g),wc=he(/<[/\w]/g),sC=he(/<\/no(script|embed|frames)/i),oC=he(/\/>/i),Me={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ef=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],aC=ae(Yt({},ef)),nC=function(){const e={};return Xr(ef,t=>{e[t]=he(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),ae(e)}(),lC=function(){return typeof window>"u"?null:window},hC=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null;
vendor: 13,227 bytes, line 3
3const s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(i=r.getAttribute(s));const o="dompurify"+(i?"#"+i:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},Tc=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Mr=function(t,r,i,s){return Ae(t,r)&&xi(t[r])?Yt(s.base?Oe(s.base):{},t[r],s.transform):i},Ea=function(t,r,i){const s=Ae(t,r)?t[r]:void 0;return s&&typeof s=="object"?Oe(s):i()};function rf(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lC();const t=ot=>rf(ot);if(t.version="3.4.15",t.removed=[],!e||!e.document||e.document.nodeType!==Me.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const i=r,s=i.currentScript;e.DocumentFragment;const o=e.HTMLTemplateElement,a=e.Node,n=e.Element,l=e.NodeFilter,c=e.NamedNodeMap;c===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const h=e.DOMParser,u=e.trustedTypes,d=n.prototype,f=We(d,"cloneNode"),m=We(d,"remove"),y=We(d,"removeAttributeNode"),C=We(d,"nextSibling"),x=We(d,"childNodes"),k=We(d,"parentNode"),T=We(d,"shadowRoot"),S=We(d,"attributes"),v=a&&a.prototype?We(a.prototype,"nodeType"):null,B=a&&a.prototype?We(a.prototype,"nodeName"):null,L=a&&a.prototype?We(a.prototype,"ownerDocument"):null,O=function(_){return v?v(_):_.nodeType},U=function(_){return B?B(_):_.nodeName};if(typeof o=="function"){const ot=r.createElement("template");ot.content&&ot.content.ownerDocument&&(r=ot.content.ownerDocument)}let N,Y="",st,q=!1,W=0;const K=function(){if(W>0)throw Hr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},A=function(_){K(),W++;try{return N.createHTML(_)}finally{W--}},V=function(_){K(),W++;try{return N.createScriptURL(_)}finally{W--}},et=function(){return q||(st=hC(u,s),q=!0),st},Z=r,lt=Z.implementation,_t=Z.createNodeIterator,St=Z.createDocumentFragment,Lt=Z.getElementsByTagName,Mt=i.importNode;let ht=Tc();t.isSupported=typeof Jd=="function"&&typeof k=="function"&&lt&&lt.createHTMLDocument!==void 0;const Rt=Vx,Dt=Kx,Ut=Zx,Et=Qx,mt=Jx,xt=tC,$t=eC,qt=iC;let Gt=bc,M=null;const Tt=Yt({},[...mc,...Ba,...La,...Fa,...yc]);let Wt=null;const Te=Yt({},[...xc,...Aa,...Cc,...js]);let de=Object.seal(di(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}})),Ne=null,mr=null;const Se=Object.seal(di(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let _e=!0,yr=!0,xr=!1,Cr=!0,ve=!1,g=!0,E=!1,H=!1,X=null,z=null,it=!1,w=!1,D=!1,J=!1,G=!0,j=!1;const rt="user-content-";let Q=!0,dt=!1,nt={},yt=null;const wt=Yt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Pt=null;const Vt=Yt({},["audio","video","img","source","image","track"]);let Gi=null;const Ar=Yt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Ws="http://www.w3.org/2000/svg",tr="http://www.w3.org/1999/xhtml";let ai=tr,ya=!1,xa=null;const S0=Yt({},[Je,Ws,tr],va),Ph=ae(["mi","mo","mn","ms","mtext"]);let Ca=Yt({},Ph);const Nh=ae(["annotation-xml"]);let ba=Yt({},Nh);const _0=Yt({},["title","style","font","a","script"]);let Xi=null;const v0=["application/xhtml+xml","text/html"],B0="text/html";let re=null,ni=null;const L0=r.createElement("form"),qh=function(_){return _ instanceof RegExp||_ instanceof Function},ka=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ni&&ni===_)return;(!_||typeof _!="object")&&(_={}),_=Oe(_),Xi=v0.indexOf(_.PARSER_MEDIA_TYPE)===-1?B0:_.PARSER_MEDIA_TYPE,re=Xi==="application/xhtml+xml"?va:as,M=Mr(_,"ALLOWED_TAGS",Tt,{transform:re}),Wt=Mr(_,"ALLOWED_ATTR",Te,{transform:re}),xa=Mr(_,"ALLOWED_NAMESPACES",S0,{transform:va}),Gi=Mr(_,"ADD_URI_SAFE_ATTR",Ar,{transform:re,base:Ar}),Pt=Mr(_,"ADD_DATA_URI_TAGS",Vt,{transform:re,base:Vt}),yt=Mr(_,"FORBID_CONTENTS",wt,{transform:re}),Ne=Mr(_,"FORBID_TAGS",Oe({}),{transform:re}),mr=Mr(_,"FORBID_ATTR",Oe({}),{transform:re}),nt=Ae(_,"USE_PROFILES")?_.USE_PROFILES&&typeof _.USE_PROFILES=="object"?Oe(_.USE_PROFILES):_.USE_PROFILES:!1,_e=_.ALLOW_ARIA_ATTR!==!1,yr=_.ALLOW_DATA_ATTR!==!1,xr=_.ALLOW_UNKNOWN_PROTOCOLS||!1,Cr=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ve=_.SAFE_FOR_TEMPLATES||!1,g=_.SAFE_FOR_XML!==!1,E=_.WHOLE_DOCUMENT||!1,w=_.RETURN_DOM||!1,D=_.RETURN_DOM_FRAGMENT||!1,J=_.RETURN_TRUSTED_TYPE||!1,it=_.FORCE_BODY||!1,G=_.SANITIZE_DOM!==!1,j=_.SANITIZE_NAMED_PROPS||!1,Q=_.KEEP_CONTENT!==!1,dt=_.IN_PLACE||!1,Gt=Gx(_.ALLOWED_URI_REGEXP)?_.ALLOWED_URI_REGEXP:bc,ai=typeof _.NAMESPACE=="string"?_.NAMESPACE:tr,Ca=Ea(_,"MATHML_TEXT_INTEGRATION_POINTS",()=>Yt({},Ph)),ba=Ea(_,"HTML_INTEGRATION_POINTS",()=>Yt({},Nh));const $=Ea(_,"CUSTOM_ELEMENT_HANDLING",()=>di(null));if(de=di(null),Ae($,"tagNameCheck")&&qh($.tagNameCheck)&&(de.tagNameCheck=$.tagNameCheck),Ae($,"attributeNameCheck")&&qh($.attributeNameCheck)&&(de.attributeNameCheck=$.attributeNameCheck),Ae($,"allowCustomizedBuiltInElements")&&typeof $.allowCustomizedBuiltInElements=="boolean"&&(de.allowCustomizedBuiltInElements=$.allowCustomizedBuiltInElements),he(de),ve&&(yr=!1),D&&(w=!0),nt&&(M=Yt({},yc),Wt=di(null),nt.html===!0&&(Yt(M,mc),Yt(Wt,xc)),nt.svg===!0&&(Yt(M,Ba),Yt(Wt,Aa),Yt(Wt,js)),nt.svgFilters===!0&&(Yt(M,La),Yt(Wt,Aa),Yt(Wt,js)),nt.mathMl===!0&&(Yt(M,Fa),Yt(Wt,Cc),Yt(Wt,js))),Se.tagCheck=null,Se.attributeCheck=null,Ae(_,"ADD_TAGS")&&(typeof _.ADD_TAGS=="function"?Se.tagCheck=_.ADD_TAGS:xi(_.ADD_TAGS)&&(M===Tt&&(M=Oe(M)),Yt(M,_.ADD_TAGS,re))),Ae(_,"ADD_ATTR")&&(typeof _.ADD_ATTR=="function"?Se.attributeCheck=_.ADD_ATTR:xi(_.ADD_ATTR)&&(Wt===Te&&(Wt=Oe(Wt)),Yt(Wt,_.ADD_ATTR,re))),Ae(_,"ADD_FORBID_CONTENTS")&&xi(_.ADD_FORBID_CONTENTS)&&(yt===wt&&(yt=Oe(yt)),Yt(yt,_.ADD_FORBID_CONTENTS,re)),Q&&(M["#text"]=!0),E&&Yt(M,["html","head","body"]),M.table&&(Yt(M,["tbody"]),delete Ne.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw Hr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Hr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const tt=N;N=_.TRUSTED_TYPES_POLICY;try{Y=A("")}catch(ft){throw N=tt,ft}}else _.TRUSTED_TYPES_POLICY===null?(N=void 0,Y=""):(N===void 0&&(N=et()),N&&typeof Y=="string"&&(Y=A("")));ae&&ae(_),ni=_},Wh=Yt({},[...Ba,...La,...Xx]),zh=Yt({},[...Fa,...jx]),F0=function(_,$,tt){return $.namespaceURI===tr?_==="svg":$.namespaceURI===Je?_==="svg"&&(tt==="annotation-xml"||Ca[tt]):!!Wh[_]},A0=function(_,$,tt){return $.namespaceURI===tr?_==="math":$.namespaceURI===Ws?_==="math"&&ba[tt]:!!zh[_]},E0=function(_,$,tt){return $.namespaceURI===Ws&&!ba[tt]||$.namespaceURI===Je&&!Ca[tt]?!1:!zh[_]&&(_0[_]||!Wh[_])},M0=function(_){let $=k(_);(!$||!$.tagName)&&($={namespaceURI:ai,tagName:"template"});const tt=as(_.tagName),ft=as($.tagName);return xa[_.namespaceURI]?_.namespaceURI===Ws?F0(tt,$,ft):_.namespaceURI===Je?A0(tt,$,ft):_.namespaceURI===tr?E0(tt,$,ft):!!(Xi==="application/xhtml+xml"&&xa[_.namespaceURI]):!1},Er=function(_){Vi(t.removed,{element:_});try{k(_).removeChild(_)}catch{if(m(_),!k(_))throw Hr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Hh=function(_,$,tt){try{y(_,$)}catch{try{_.removeAttribute(tt)}catch{}}},zs=function(_){Hs(_);const $=x(_);if($){const ft=[];Xr($,kt=>{Vi(ft,kt)}),Xr(ft,kt=>{try{m(kt)}catch{}})}const tt=S(_);if(tt)for(let ft=tt.length-1;ft>=0;--ft){const kt=tt[ft],Ft=kt&&kt.name;typeof Ft=="string"&&Hh(_,kt,Ft)}},zr=function(_,$,tt){if(!tt)try{tt=$.getAttributeNode(_)}catch{tt=null}Vi(t.removed,{attribute:tt||null,from:$});try{tt?y($,tt):$.removeAttribute(_)}catch{try{$.removeAttribute(_)}catch{}}if(_==="is")if(w||D)try{Er($)}catch{}else try{$.setAttribute(_,"")}catch{}},$0=function(_){const $=S(_);if($)for(let tt=$.length-1;tt>=0;--tt){const ft=$[tt],kt=ft&&ft.name;typeof kt!="string"||Wt[re(kt)]||Hh(_,ft,kt)}},Hs=function(_){const $=[_];for(;$.length>0;){const tt=$.pop();O(tt)===Me.element&&$0(tt);const kt=x(tt);if(kt)for(let Ft=kt.length-1;Ft>=0;--Ft)$.push(kt[Ft])}},Yh=function(_,$){return g?_==="patchsrc"?!0:_==="for"&&$!=="label"&&$!=="output":!1},O0=function(_){if(!g)return;const $=[_];for(;$.length>0;){const tt=$.pop(),ft=O(tt);if(ft===Me.processingInstruction||ft===Me.comment&&pe(wc,tt.data)){try{m(tt)}catch{}continue}if(ft===Me.element){const Ft=tt,Zt=re(U(tt));try{Ft.hasAttribute&&Ft.hasAttribute("patchsrc")&&Ft.removeAttribute("patchsrc"),Ft.hasAttribute&&Ft.hasAttribute("for")&&Yh("for",Zt)&&Ft.removeAttribute("for")}catch{}}const kt=x(tt);if(kt)for(let Ft=kt.length-1;Ft>=0;--Ft)$.push(kt[Ft])}},Uh=function(_){let $=null,tt=null;if(it)_="<remove></remove>"+_;else{const Ft=dc(_,/^[\r\n\t ]+/);tt=Ft&&Ft[0]}Xi==="application/xhtml+xml"&&ai===tr&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const ft=N?A(_):_;if(ai===tr)try{$=new h().parseFromString(ft,Xi)}catch{}if(!$||!$.documentElement){$=lt.createDocument(ai,"template",null);try{$.documentElement.innerHTML=ya?Y:ft}catch{}}const kt=$.body||$.documentElement;return _&&tt&&kt.insertBefore(r.createTextNode(tt),kt.childNodes[0]||null),ai===tr?Lt.call($,E?"html":"body")[0]:E?$.documentElement:kt},Gh=function(_){const $=L?L(_):_.ownerDocument;return _t.call($||_,_,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Ys=function(_){return _=Ki(_,Rt," "),_=Ki(_,Dt," "),_=Ki(_,Ut," "),_},wa=function(_){var $;_.normalize();const tt=L?L(_):_.ownerDocument,ft=_t.call(tt||_,_,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let kt=ft.nextNode();for(;kt;)kt.data=Ys(kt.data),kt=ft.nextNode();const Ft=($=_.querySelectorAll)===null||$===void 0?void 0:$.call(_,"template");Ft&&Xr(Ft,Zt=>{li(Zt.content)&&wa(Zt.content)})},Us=function(_){const $=B?B(_):null;return typeof $!="string"||re($)!=="form"?!1:typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||_.attributes!==S(_)||typeof _.removeAttribute!="function"||typeof _.removeAttributeNode!="function"||typeof _.getAttributeNode!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function"||_.nodeType!==v(_)||_.childNodes!==x(_)},li=function(_){if(!v||typeof _!="object"||_===null)return!1;try{return v(_)===Me.documentFragment}catch{return!1}},ji=function(_){if(!v||typeof _!="object"||_===null)return!1;try{return typeof v(_)=="number"}catch{return!1}};function er(ot,_,$){ot.length!==0&&Xr(ot,tt=>{tt.call(t,_,$,ni)})}const D0=function(_,$){return!!(g&&_.hasChildNodes()&&!ji(_.firstElementChild)&&pe(kc,_.textContent)&&pe(kc,_.innerHTML)||g&&_.namespaceURI===tr&&aC[$]&&(ji(_.firstElementChild)||typeof _.textContent=="string"&&pe(nC[$],_.textContent))||_.nodeType===Me.processingInstruction||g&&_.nodeType===Me.comment&&pe(wc,_.data))},Gs=function(_,$){if(_ instanceof RegExp)return pe(_,$);if(_ instanceof Function){for(var tt=arguments.length,ft=new Array(tt>2?tt-2:0),kt=2;kt<tt;kt++)ft[kt-2]=arguments[kt];return!!_($,...ft)}return!1},I0=function(_,$,tt){if(!Ne[$]&&Zh($)&&Gs(de.tagNameCheck,$))return!1;if(Q&&!yt[$]){const ft=k(_),kt=x(_);if(kt&&ft){const Ft=kt.length;for(let Zt=Ft-1;Zt>=0;--Zt){const te=_===tt?f(kt[Zt],!0):kt[Zt];ft.insertBefore(te,C(_))}}}return Er(_),!0},Xh=function(_,$,tt,ft){return _.length===0?$:$===tt||$===ft?Oe($):$},jh=function(_,$){return _===$||k(_)!==null?!1:(dt&&Hs(_),!0)},Vh=function(_,$){if(er(ht.beforeSanitizeElements,_,null),jh(_,$))return!0;if(Us(_))return Er(_),!0;const tt=re(U(_));if(M=Xh(ht.uponSanitizeElement,M,Tt,X),er(ht.uponSanitizeElement,_,{tagName:tt,allowedTags:M}),jh(_,$))return!0;if(D0(_,tt))return Er(_),!0;if(Ne[tt]||!(Se.tagCheck instanceof Function&&Se.tagCheck(tt))&&!M[tt]){const kt=I0(_,tt,$);return kt===!1&&er(ht.afterSanitizeElements,_,null),kt}if(O(_)===Me.element&&!M0(_)||(tt==="noscript"||tt==="noembed"||tt==="noframes")&&pe(sC,_.innerHTML))return Er(_),!0;if(ve&&_.nodeType===Me.text){const kt=Ys(_.textContent);_.textContent!==kt&&(Vi(t.removed,{element:_.cloneNode()}),_.textContent=kt)}return er(ht.afterSanitizeElements,_,null),!1},Kh=function(_,$,tt){if(mr[$]||Yh($,_)||G&&($==="id"||$==="name")&&(tt in r||tt in L0))return!1;
3const ft=Wt[$]||Se.attributeCheck instanceof Function&&Se.attributeCheck($,_);return yr&&pe(Et,$)||_e&&pe(mt,$)?!0:ft?Gi[$]||pe(Gt,Ki(tt,$t,""))||($==="src"||$==="xlink:href"||$==="href")&&_!=="script"&&fc(tt,"data:")===0&&Pt[_]||xr&&!pe(xt,Ki(tt,$t,""))?!0:!tt:Zh(_)&&Gs(de.tagNameCheck,_)&&Gs(de.attributeNameCheck,$,_)||$==="is"&&de.allowCustomizedBuiltInElements&&Gs(de.tagNameCheck,tt)},R0=Yt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Zh=function(_){return!R0[as(_)]&&pe(qt,_)},P0=function(_,$,tt,ft){if(N&&typeof u=="object"&&typeof u.getAttributeType=="function"&&!tt)switch(u.getAttributeType(_,$)){case"TrustedHTML":return A(ft);case"TrustedScriptURL":return V(ft)}return ft},N0=function(_,$,tt,ft){try{return tt?_.setAttributeNS(tt,$,ft):_.setAttribute($,ft),Us(_)?(Er(_),!1):!0}catch{return zr($,_),!1}},Qh=function(_){er(ht.beforeSanitizeAttributes,_,null);const $=_.attributes;if(!$||Us(_))return;Wt=Xh(ht.uponSanitizeAttribute,Wt,Te,z);const tt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Wt,forceKeepAttr:void 0};let ft=$.length;const kt=re(_.nodeName);for(;ft--;){const Ft=$[ft],Zt=Ft.name,te=Ft.namespaceURI,Be=Ft.value,Le=re(Zt),Sa=Be;let ke=Zt==="value"?Sa:qx(Sa),Jh=!1;if(tt.attrName=Le,tt.attrValue=ke,tt.keepAttr=!0,tt.forceKeepAttr=void 0,er(ht.uponSanitizeAttribute,_,tt),ke=tt.attrValue,j&&(Le==="id"||Le==="name")&&fc(ke,rt)!==0&&(zr(Zt,_,Ft),ke=rt+ke,Jh=!0),g&&pe(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ke)){zr(Zt,_,Ft);continue}if(Le==="attributename"&&dc(ke,"href")){zr(Zt,_,Ft);continue}if(!tt.forceKeepAttr){if(!tt.keepAttr){zr(Zt,_,Ft);continue}if(!Cr&&pe(oC,ke)){zr(Zt,_,Ft);continue}if(ve&&(ke=Ys(ke)),!Kh(kt,Le,ke)){zr(Zt,_,Ft);continue}ke=P0(kt,Le,te,ke),ke!==Sa&&N0(_,Zt,te,ke)&&Jh&&uc(t.removed)}}er(ht.afterSanitizeAttributes,_,null)},Xs=function(_){let $=null;const tt=Gh(_);for(er(ht.beforeSanitizeShadowDOM,_,null);$=tt.nextNode();)if(er(ht.uponSanitizeShadowNode,$,null),Vh($,_),Qh($),li($.content)&&Xs($.content),O($)===Me.element){const ft=T($);li(ft)&&(Ta(ft),Xs(ft))}er(ht.afterSanitizeShadowDOM,_,null)},Ta=function(_){const $=[{node:_,shadow:null}];for(;$.length>0;){const tt=$.pop();if(tt.shadow){Xs(tt.shadow);continue}const ft=tt.node,Ft=O(ft)===Me.element,Zt=x(ft);if(Zt)for(let te=Zt.length-1;te>=0;--te)$.push({node:Zt[te],shadow:null});if(Ft){const te=B?B(ft):null;if(typeof te=="string"&&re(te)==="template"){const Be=ft.content;li(Be)&&$.push({node:Be,shadow:null})}}if(Ft){const te=T(ft);li(te)&&$.push({node:null,shadow:te},{node:te,shadow:null})}}};return t.sanitize=function(ot){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=null,tt=null,ft=null,kt=null;if(ya=!ot,ya&&(ot="<!-->"),typeof ot!="string"&&!ji(ot)&&(ot=Ux(ot),typeof ot!="string"))throw Hr("dirty is not a string, aborting");if(!t.isSupported)return ot;H?(M=X,Wt=z):ka(_),(ht.uponSanitizeElement.length>0||ht.uponSanitizeAttribute.length>0)&&(M=Oe(M)),ht.uponSanitizeAttribute.length>0&&(Wt=Oe(Wt)),t.removed=[];const Ft=dt&&typeof ot!="string"&&ji(ot);if(Ft){O0(ot);const Be=U(ot);if(typeof Be=="string"){const Le=re(Be);if(!M[Le]||Ne[Le])throw zs(ot),Hr("root node is forbidden and cannot be sanitized in-place")}if(Us(ot))throw zs(ot),Hr("root node is clobbered and cannot be sanitized in-place");try{Ta(ot)}catch(Le){throw zs(ot),Le}}else if(ji(ot))$=Uh("<!---->"),tt=$.ownerDocument.importNode(ot,!0),tt.nodeType===Me.element&&tt.nodeName==="BODY"||tt.nodeName==="HTML"?$=tt:$.appendChild(tt),Ta($);else{if(!w&&!ve&&!E&&ot.indexOf("<")===-1)return N&&J?A(ot):ot;if($=Uh(ot),!$)return w?null:J?Y:""}$&&it&&Er($.firstChild);const Zt=Ft?ot:$;try{const Be=Gh(Zt);for(;ft=Be.nextNode();)Vh(ft,Zt),Qh(ft),li(ft.content)&&Xs(ft.content)}catch(Be){throw Ft&&(zs(ot),Xr(t.removed,Le=>{Le.element&&Hs(Le.element)})),Be}if(Ft)return Xr(t.removed,Be=>{Be.element&&Hs(Be.element)}),ve&&wa(ot),ot;if(w){if(ve&&wa($),D)for(kt=St.call($.ownerDocument);$.firstChild;)kt.appendChild($.firstChild);else kt=$;return(Wt.shadowroot||Wt.shadowrootmode)&&(kt=Mt.call(i,kt,!0)),kt}let te=E?$.outerHTML:$.innerHTML;return E&&M["!doctype"]&&$.ownerDocument&&$.ownerDocument.doctype&&$.ownerDocument.doctype.name&&pe(rC,$.ownerDocument.doctype.name)&&(te="<!DOCTYPE "+$.ownerDocument.doctype.name+`>
4`+te),ve&&(te=Ys(te)),N&&J?A(te):te},t.setConfig=function(){let ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ka(ot),H=!0,X=M,z=Wt},t.clearConfig=function(){ni=null,H=!1,X=null,z=null,N=st,Y=""},t.isValidAttribute=function(ot,_,$){ni||ka({});const tt=re(ot),ft=re(_);return Kh(tt,ft,$)},t.addHook=function(ot,_){typeof _=="function"&&Ae(ht,ot)&&Vi(ht[ot],_)},t.removeHook=function(ot,_){if(Ae(ht,ot)){if(_!==void 0){const $=Px(ht[ot],_);return $===-1?void 0:Nx(ht[ot],$,1)[0]}return uc(ht[ot])}},t.removeHooks=function(ot){Ae(ht,ot)&&(ht[ot]=[])},t.removeAllHooks=function(){ht=Tc()},t}var Ii=rf(),Ln=p((e,t,{depth:r=2}={})=>{const i={depth:r};if(Array.isArray(t)&&!Array.isArray(e))return t.forEach(s=>Ln(e,s,i)),e;if(Array.isArray(t)&&Array.isArray(e))return t.forEach(s=>{e.includes(s)||e.push(s)}),e;if(e==null||r<=0)return e!=null&&typeof e=="object"&&typeof t=="object"?Object.assign(e,t):t;if(t!=null&&typeof e=="object"&&typeof t=="object"){const s=e;Object.entries(t).forEach(([o,a])=>{if(typeof a=="object"){if(a===null)return;Object.hasOwn(e,o)||Object.defineProperty(e,o,{value:void 0,writable:!0,enumerable:!0,configurable:!0}),s[o]===void 0&&(s[o]=Array.isArray(a)?[]:{}),typeof s[o]=="object"&&(s[o]=Ln(s[o],a,{depth:r-1}))}else typeof s[o]!="object"&&(Object.hasOwn(e,o)?s[o]=a:Object.defineProperty(e,o,{value:a,writable:!0,enumerable:!0,configurable:!0}))})}return e},"assignWithDepth"),le=Ln,cr="#ffffff",ur="#f2f2f2",Bt=p((e,t)=>t?b(e,{s:-40,l:10}):b(e,{s:-40,l:-10}),"mkBorder"),ki,cC=(ki=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.useGradient=!0,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var r,i,s,o,a,n,l,c,h,u,d,f,m,y,C,x,k,T,S,v,B,L,O,U,N,Y,st,q,W,K,A,V,et,Z,lt,_t,St,Lt,Mt,ht,Rt,Dt,Ut,Et,mt,xt,$t,qt,Gt,M;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Bt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Bt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Bt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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.edgeLabelBackgroun
4d=this.edgeLabelBackground||(this.darkMode?P(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||P(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||R(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||"navy",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.darkMode?(this.rowOdd=this.rowOdd||P(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||P(this.mainBkg,10)):(this.rowOdd=this.rowOdd||R(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||R(this.mainBkg,5)),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let Tt=0;Tt<this.THEME_COLOR_LIMIT;Tt++)this["cScale"+Tt]=P(this["cScale"+Tt],75);else for(let Tt=0;Tt<this.THEME_COLOR_LIMIT;Tt++)this["cScale"+Tt]=P(this["cScale"+Tt],25);for(let Tt=0;Tt<this.THEME_COLOR_LIMIT;Tt++)this["cScaleInv"+Tt]=this["cScaleInv"+Tt]||F(this["cScale"+Tt]);for(let Tt=0;Tt<this.THEME_COLOR_LIMIT;Tt++)this.darkMode?this["cScalePeer"+Tt]=this["cScalePeer"+Tt]||R(this["cScale"+Tt],10):this["cScalePeer"+Tt]=this["cScalePeer"+Tt]||P(this["cScale"+Tt],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let Tt=0;Tt<this.THEME_COLOR_LIMIT;Tt++)this["cScaleLabel"+Tt]=this["cScaleLabel"+Tt]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let Tt=0;Tt<5;Tt++)this["surface"+Tt]=this["surface"+Tt]||b(this.mainBkg,{h:180,s:-15,l:t*(5+Tt*3)}),this["surfacePeer"+Tt]=this["surfacePeer"+Tt]||b(this.mainBkg,{h:180,s:-15,l:t*(8+Tt*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((r=this.cynefin)==null?void 0:r.domainFontSize)||16,itemFontSize:((i=this.cynefin)==null?void 0:i.itemFontSize)||12,boundaryColor:((s=this.cynefin)==null?void 0:s.boundaryColor)||this.lineColor,boundaryWidth:((o=this.cynefin)==null?void 0:o.boundaryWidth)||2,cliffColor:((a=this.cynefin)==null?void 0:a.cliffColor)||"#8B0000",cliffWidth:((n=this.cynefin)==null?void 0:n.cliffWidth)||4,arrowColor:((l=this.cynefin)==null?void 0:l.arrowColor)||this.lineColor,arrowWidth:((c=this.cynefin)==null?void 0:c.arrowWidth)||2,complexBg:((h=this.cynefin)==null?void 0:h.complexBg)||"#E8F5E9",complicatedBg:((u=this.cynefin)==null?void 0:u.complicatedBg)||"#E3F2FD",chaoticBg:((d=this.cynefin)==null?void 0:d.chaoticBg)||"#FBE9E7",clearBg:((f=this.cynefin)==null?void 0:f.clearBg)||"#FFF8E1",confusionBg:((m=this.cynefin)==null?void 0:m.confusionBg)||"#F3E5F5",textColor:((y=this.cynefin)==null?void 0:y.textColor)||this.textColor,labelColor:((C=this.cynefin)==null?void 0:C.labelColor)||this.primaryTextColor},this.radar={axisColor:((x=this.radar)==null?void 0:x.axisColor)||this.lineColor,axisStrokeWidth:((k=this.radar)==null?void 0:k.axisStrokeWidth)||2,axisLabelFontSize:((T=this.radar)==null?void 0:T.axisLabelFontSize)||12,curveOpacity:((S=this.radar)==null?void 0:S.curveOpacity)||.5,curveStrokeWidth:((v=this.radar)==null?void 0:v.curveStrokeWidth)||2,graticuleColor:((B=this.radar)==null?void 0:B.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((L=this.radar)==null?void 0:L.graticuleStrokeWidth)||1,graticuleOpacity:((O=this.radar)==null?void 0:O.graticuleOpacity)||.3,legendBoxSize:((U=this.radar)==null?void 0:U.legendBoxSize)||12,legendFontSize:((N=this.radar)==null?void 0:N.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((Y=this.wardley)==null?void 0:Y.backgroundColor)||this.background,axisColor:((st=this.wardley)==null?void 0:st.axisColor)||this.lineColor,axisTextColor:((q=this.wardley)==null?void 0:q.axisTextColor)||this.primaryTextColor,gridColor:((W=this.wardley)==null?void 0:W.gridColor)||this.gridColor,componentFill:((K=this.wardley)==null?void 0:K.componentFill)||this.background,componentStroke:((A=this.wardley)==null?void 0:A.componentStroke)||this.lineColor,componentLabelColor:((V=this.wardley)==null?void 0:V.componentLabelColor)||this.primaryTextColor,linkStroke:((et=this.wardley)==null?void 0:et.linkStroke)||this.lineColor,evolutionStroke:((Z=this.wardley)==null?void 0:Z.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((lt=this.wardley)==null?void 0:lt.annotationStroke)||this.lineColor,annotationTextColor:((_t=this.wardley)==null?void 0:_t.annotationTextColor)||this.primaryTextColor,annotationFill:((St=this.wardley)==null?void 0:St.annotationFill)||this.background},this.archEdgeColor=this.archEdgeColor||"#777",this.archEdgeArrowColor=this.archEdgeArrowColor||"#777",this.archEdgeWidth=this.archEdgeWidth||"3",this.archGroupBorderColor=this.archGroupBorderColor||"#000",this.archGroupBorderWidth=this.archGroupBorderWidth||"2px",this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ve(this.quadrant1Fill)?R(this.quadrant1Fill):P(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.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((Lt=this.xyChart)==null?void 0:Lt.backgroundColor)||this.background,titleColor:((Mt=this.xyChart)==null?void 0:Mt.titleColor)||this.primaryTextColor,dataLabelColor:((ht=this.xyChart)==null?void 0:ht.dataLabelColor)||this.primaryTextColor,legendTextColor:((Rt=this.xyChart)==null?void 0:Rt.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((Dt=this.xyChart)==null?void 0:Dt.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((Ut=this.xyChart)==null?void 0:Ut.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((Et=this.xyChart)==null?void 0:Et.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((mt=this.xyChart)==null?void 0:mt.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((xt=this.xyChart)==null?void 0:xt.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:(($t=this.xyChart)==null?void 0:$t.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((qt=this.xyChart)==null?void 0:qt.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((Gt=this.xyChart)==null?void 0:Gt.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((M=this.xyChart)==null?void 0:M.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadMo
4delFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||cr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(ki,"Theme"),ki),uC=p(e=>{const t=new cC;return t.calculate(e),t},"getThemeVariables"),wi,dC=(wi=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=R(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=F(this.background),this.secondaryBorderColor=Bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.lineColor=F(this.background),this.textColor=F(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=R(F("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Pr(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.clusterBkg="#302F3D",this.sectionBkgColor=P("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=P(this.sectionBkgColor,10),this.taskBorderColor=Pr(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Pr(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||R(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||P(this.mainBkg,10),this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal"}updateColors(){var t,r,i,s,o,a,n,l,c,h,u,d,f,m,y,C,x,k,T,S,v,B,L,O,U,N,Y,st,q,W,K,A,V,et,Z,lt,_t,St,Lt,Mt,ht,Rt,Dt,Ut,Et,mt,xt,$t,qt,Gt;this.secondBkg=R(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.edgeLabelBackgroun
4d=R(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.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=R(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=F(this.doneTaskBkgColor),this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330});for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleInv"+M]=this["cScaleInv"+M]||F(this["cScale"+M]);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScalePeer"+M]=this["cScalePeer"+M]||R(this["cScale"+M],10);for(let M=0;M<5;M++)this["surface"+M]=this["surface"+M]||b(this.mainBkg,{h:30,s:-30,l:-(-10+M*4)}),this["surfacePeer"+M]=this["surfacePeer"+M]||b(this.mainBkg,{h:30,s:-30,l:-(-7+M*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleLabel"+M]=this["cScaleLabel"+M]||this.scaleLabelColor;for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["pie"+M]=this["cScale"+M];this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.mainContrastColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.mainContrastColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let M=0;M<8;M++)this["venn"+(M+1)]=this["venn"+(M+1)]??R(this["cScale"+M],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((s=this.cynefin)==null?void 0:s.boundaryWidth)||2,cliffColor:((o=this.cynefin)==null?void 0:o.cliffColor)||"#FF6B6B",cliffWidth:((a=this.cynefin)==null?void 0:a.cliffWidth)||4,arrowColor:((n=this.cynefin)==null?void 0:n.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((c=this.cynefin)==null?void 0:c.complexBg)||"#1B5E20",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#0D47A1",chaoticBg:((u=this.cynefin)==null?void 0:u.chaoticBg)||"#BF360C",clearBg:((d=this.cynefin)==null?void 0:d.clearBg)||"#F57F17",confusionBg:((f=this.cynefin)==null?void 0:f.confusionBg)||"#4A148
4C",textColor:((m=this.cynefin)==null?void 0:m.textColor)||this.textColor,labelColor:((y=this.cynefin)==null?void 0:y.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ve(this.quadrant1Fill)?R(this.quadrant1Fill):P(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:((C=this.xyChart)==null?void 0:C.backgroundColor)||this.background,titleColor:((x=this.xyChart)==null?void 0:x.titleColor)||this.primaryTextColor,dataLabelColor:((k=this.xyChart)==null?void 0:k.dataLabelColor)||this.primaryTextColor,legendTextColor:((T=this.xyChart)==null?void 0:T.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((S=this.xyChart)==null?void 0:S.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((v=this.xyChart)==null?void 0:v.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((B=this.xyChart)==null?void 0:B.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((L=this.xyChart)==null?void 0:L.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((O=this.xyChart)==null?void 0:O.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((U=this.xyChart)==null?void 0:U.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((N=this.xyChart)==null?void 0:N.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((Y=this.xyChart)==null?void 0:Y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((st=this.xyChart)==null?void 0:st.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:((q=this.radar)==null?void 0:q.axisColor)||this.lineColor,axisStrokeWidth:((W=this.radar)==null?void 0:W.axisStrokeWidth)||2,axisLabelFontSize:((K=this.radar)==null?void 0:K.axisLabelFontSize)||12,curveOpacity:((A=this.radar)==null?void 0:A.curveOpacity)||.5,curveStrokeWidth:((V=this.radar)==null?void 0:V.curveStrokeWidth)||2,graticuleColor:((et=this.radar)==null?void 0:et.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((Z=this.radar)==null?void 0:Z.graticuleStrokeWidth)||1,graticuleOpacity:((lt=this.radar)==null?void 0:lt.graticuleOpacity)||.3,legendBoxSize:((_t=this.radar)==null?void 0:_t.legendBoxSize)||12,legendFontSize:((St=this.radar)==null?void 0:St.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:((Lt=this.wardley)==null?void 0:Lt.backgroundColor)||this.background,axisColor:((Mt=this.wardley)==null?void 0:Mt.axisColor)||this.lineColor,axisTextColor:((ht=this.wardley)==null?void 0:ht.axisTextColor)||this.primaryTextColor,gridColor:((Rt=this.wardley)==null?void 0:Rt.gridColor)||this.gridColor,componentFill:((Dt=this.wardley)==null?void 0:Dt.componentFill)||this.mainBkg,componentStroke:((Ut=this.wardley)==null?void 0:Ut.componentStroke)||this.lineColor,componentLabelColor:((Et=this.wardley)==null?void 0:Et.componentLabelColor)||this.primaryTextColor,linkStroke:((mt=this.wardley)==null?void 0:mt.linkStroke)||this.lineColor,evolutionStroke:((xt=this.wardley)==null?void 0:xt.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:(($t=this.wardley)==null?void 0:$t.annotationStroke)||this.lineColor,annotationTextColor:((qt=this.wardley)==null?void 0:qt.annotationTextColor)||this.primaryTextColor,annotationFill:((Gt=this.wardley)==null?void 0:Gt.annotationFill)||this.mainBkg}
4,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?P(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=R(this.secondaryColor,20),this.git1=R(this.pie2||this.secondaryColor,20),this.git2=R(this.pie3||this.tertiaryColor,20),this.git3=R(this.pie4||b(this.primaryColor,{h:-30}),20),this.git4=R(this.pie5||b(this.primaryColor,{h:-60}),20),this.git5=R(this.pie6||b(this.primaryColor,{h:-90}),10),this.git6=R(this.pie7||b(this.primaryColor,{h:60}),10),this.git7=R(this.pie8||b(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||F(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||F(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.emUiFill=this.emUiFill||"#2d2d2d",this.emUiStroke=this.emUiStroke||"#555",this.emProcessorFill=this.emProcessorFill||R("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||R("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||R("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||R("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||R(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||R(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||R(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||R(this.background,2),this.nodeBorder=this.nodeBorder||"#999"}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(wi,"Theme"),wi),fC=p(e=>{const t=new dC;return t.calculate(e),t},"getThemeVariables"),Ti,pC=(Ti=class{constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=b(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=Bt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.lineColor=F(this.background),this.textColor=F(this.background),this.background="white",this.mainBkg="#
4ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=Bt(this.primaryColor,this.darkMode),this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.clusterBkg="#FBFBFF",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.sectionBkgColor=Pr(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="navy",this.noteFontWeight=this.noteFontWeight||"normal",this.fontWeight=this.fontWeight||"normal",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.rowOdd="calculated",this.rowEven="calculated",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!1,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))",this.updateColors()}updateColors(){var t,r,i,s,o,a,n,l,c,h,u,d,f,m,y,C,x,k,T,S,v,B,L,O,U,N,Y,st,q,W,K,A,V,et,Z,lt,_t,St,Lt,Mt,ht,Rt,Dt,Ut,Et,mt,xt,$t,qt,Gt;this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||P(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||P(this.tertiaryColor,40);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScale"+M]=P(this["cScale"+M],10),this["cScalePeer"+M]=this["cScalePeer"+M]||P(this["cScale"+M],25);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleInv"+M]=this["cScaleInv"+M]||b(this["cScale"+M],{h:180});for(let M=0;M<5;M++)this["surface"+M]=this["surface"+M]||b(this.mainBkg,{h:30,l:-(5+M*5)}),this["surfacePeer"+M]=this["surfacePeer"+M]||b(this.mainBkg,{h:30,l:-(7+M*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||F(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||F(this.labelTextColor);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleLabel"+M]=this["cScaleLabel"+M]||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.edgeLabelBackgroun
4d=this.labelBackground,this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.signalColor=this.textColor,this.signalTextColor=this.textColor,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||R(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||R(this.primaryColor,1),this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||b(this.tertiaryColor,{l:-40}),this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-30}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-20}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-20}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-40}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:-40}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-40}),this.pie11=this.pie11||b(this.primaryColor,{h:-90,l:-40}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-30}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-40}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((s=this.cynefin)==null?void 0:s.boundaryWidth)||2,cliffColor:((o=this.cynefin)==null?void 0:o.cliffColor)||"#8B0000",cliffWidth:((a=this.cynefin)==null?void 0:a.cliffWidth)||4,arrowColor:((n=this.cynefin)==null?void 0:n.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((c=this.cynefin)==null?void 0:c.complexBg)||"#E8F5E9",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#E3F2FD",chaoticBg:((u=this.cynefin)==null?void 0:u.chaoticBg)||"#FBE9E7",clearBg:((d=this.cynefin)==null?void 0:d.clearBg)||"#FFF8E1",confusionBg:((f=this.cynefin)==null?void 0:f.confusionBg)||"#F3E5F5",textColor:((m=this.cynefin)==null?void 0:m.textColor)||this.textColor,labelColor:((y=this.cynefin)==null?void 0:y.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ve(this.quadrant1Fill)?R(this.quadrant1Fill):P(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.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.radar={axisColor:((C=this.radar)==null?void 0:C.axisColor)||this.lineColor,axisStrokeWidth:((x=this.radar)==null?void 0:x.axisStrokeWidth)||2,axisLabelFontSize:((k=this.radar)==null?void 0:k.axisLabelFontSize)||12,curveOpacity:((T=this.radar)==null?void 0:T.curveOpacity)||.5,curveStrokeWidth:((S=this.radar)==null?void 0:S.curveStrokeWidth)||2,graticuleColor:((v=this.radar)==null?void 0:v.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((B=this.radar)==null?void 0:B.graticuleStrokeWidth)||1,graticuleOpacity:((L=this.radar)==null?void 0:L.graticuleOpacity)||.3,legendBoxSize:((O=this.radar)==null?void 0:O.legendBoxSize)||12,legendFontSize:((U=this.radar)==null?void 0:U.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((N=this.wardley)==null?void 0:N.backgroundColor)||this.background,axisColor:((Y=this.wardley)==null?void 0:Y.axisColor)||this.lineColor,axisTextColor:((st=this.wardley)==null?void 0:st.axisTextColor)||this.primaryTextColor,gridColor:((q=this.wardley)==null?void 0:q.gridColor)||this.gridColor,componentFill:((W=this.wardley)==null?void 0:W.componentFill)||this.background,componentStroke:((K=this.wardley)==null?void 0:K.componentStroke)||this.lineColor,componentLabelColor:((A=this.wardley)==null?void 0:A.componentLabelColor)||this.primaryTextColor,linkStroke:((V=this.wardley)==null?void 0:V.linkStroke)||this.lineColor,evolutionStroke:((et=this.wardley)==null?void 0:et.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((Z=this.wardley)==null?void 0:Z.annotationStroke)||this.lineColor,annotationTextColor:((lt=this.wardley)==null?void 0:lt.annotationTextColor)||this.primaryTextColor,annotationFill:((_t=this.wardley)==null?void 0:_t.annotationFill)||this.background},this.xyChart={backgroundColor:((St=this.xyChart)==null?void 0:St.backgroundColor)||this.background,titleColor:((Lt=this.xyChart)==null?void 0:Lt.titleColor)||this.primaryTextColor,dataLabelColor:((Mt=this.xyChart)==null?void 0:Mt.dataLabelColor)||this.primaryTextColor,legendTextColor:((ht=this.xyChart)==null?void 0:ht.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((Rt=this.xyChart)==null?void 0:Rt.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((Dt=this.xyChart)==null?void 0:Dt.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((Ut=this.xyChart)==null?void 0:Ut.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((Et=this.xyChart)==null?void 0:Et.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((mt=this.xyChart)==null?void 0:mt.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((xt=this.xyChart)==null?void 0:xt.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(($t=this.xyChart)==null?void 0:$t.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((qt=this.xyChart)==null?void 0:qt.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((Gt=this.xyChart)==null?void 0:Gt.plotColorPalette)||"#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.labelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||P(F(this.git0),25),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||F(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||F(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.tagLabelBackgroun
vendor: 7,063 bytes, line 4
4d=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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||cr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}calculate(t){if(Object.keys(this).forEach(i=>{this[i]==="calculated"&&(this[i]=void 0)}),typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Ti,"Theme"),Ti),gC=p(e=>{const t=new pC;return t.calculate(e),t},"getThemeVariables"),Si,mC=(Si=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=R("#cde498",10),this.primaryBorderColor=Bt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.primaryColor),this.lineColor=F(this.background),this.textColor=F(this.background),this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.vertLineColor="#00BFFF",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))"}updateColors(){var t,r,i,s,o,a,n,l,c,h,u,d,f,m,y,C,x,k,T,S,v,B,L,O,U,N,Y,st,q,W,K,A,V,et,Z,lt,_t,St,Lt,Mt,ht,Rt,Dt,Ut,Et,mt,xt,$t,qt,Gt;this.actorBorder=P(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.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||P(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||P(this.tertiaryColor,40);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScale"+M]=P(this["cScale"+M],10),this["cScalePeer"+M]=this["cScalePeer"+M]||P(this["cScale"+M],25);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleInv"+M]=this["cScaleInv"+M]||b(this["cScale"+M],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleLabel"+M]=this["cScaleLabel"+M]||this.scaleLabelColor;for(let M=0;M<5;M++)this["surface"+M]=this["surface"+M]||b(this.mainBkg,{h:30,s:-30,l:-(5+M*5)}),this["surfacePeer"+M]=this["surfacePeer"+M]||b(this.mainBkg,{h:30,s:-30,l:-(8+M*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||R(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||R(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.labelBackgroun
4dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor=this.lineColor,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||b(this.primaryColor,{l:-30}),this.pie5=this.pie5||b(this.secondaryColor,{l:-30}),this.pie6=this.pie6||b(this.tertiaryColor,{h:40,l:-40}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-50}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-50}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-50}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.venn1=this.venn1??b(this.primaryColor,{l:-30}),this.venn2=this.venn2??b(this.secondaryColor,{l:-30}),this.venn3=this.venn3??b(this.tertiaryColor,{l:-30}),this.venn4=this.venn4??b(this.primaryColor,{h:60,l:-30}),this.venn5=this.venn5??b(this.primaryColor,{h:-60,l:-30}),this.venn6=this.venn6??b(this.secondaryColor,{h:60,l:-30}),this.venn7=this.venn7??b(this.primaryColor,{h:120,l:-30}),this.venn8=this.venn8??b(this.secondaryColor,{h:120,l:-30}),this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((s=this.cynefin)==null?void 0:s.boundaryWidth)||2,cliffColor:((o=this.cynefin)==null?void 0:o.cliffColor)||"#8B4513",cliffWidth:((a=this.cynefin)==null?void 0:a.cliffWidth)||4,arrowColor:((n=this.cynefin)==null?void 0:n.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((c=this.cynefin)==null?void 0:c.complexBg)||"#C8E6C9",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#DCEDC8",chaoticBg:((u=this.cynefin)==null?void 0:u.chaoticBg)||"#FFE0B2",clearBg:((d=this.cynefin)==null?void 0:d.clearBg)||"#FFF9C4",confusionBg:((f=this.cynefin)==null?void 0:f.confusionBg)||"#D7CCC8",textColor:((m=this.cynefin)==null?void 0:m.textColor)||this.textColor,labelColor:((y=this.cynefin)==null?void 0:y.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ve(this.quadrant1Fill)?R(this.quadrant1Fill):P(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.quadrantExter
4nalBorderStrokeFill=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:((C=this.radar)==null?void 0:C.axisColor)||this.lineColor,axisStrokeWidth:((x=this.radar)==null?void 0:x.axisStrokeWidth)||2,axisLabelFontSize:((k=this.radar)==null?void 0:k.axisLabelFontSize)||12,curveOpacity:((T=this.radar)==null?void 0:T.curveOpacity)||.5,curveStrokeWidth:((S=this.radar)==null?void 0:S.curveStrokeWidth)||2,graticuleColor:((v=this.radar)==null?void 0:v.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((B=this.radar)==null?void 0:B.graticuleStrokeWidth)||1,graticuleOpacity:((L=this.radar)==null?void 0:L.graticuleOpacity)||.3,legendBoxSize:((O=this.radar)==null?void 0:O.legendBoxSize)||12,legendFontSize:((U=this.radar)==null?void 0:U.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((N=this.wardley)==null?void 0:N.backgroundColor)||this.background,axisColor:((Y=this.wardley)==null?void 0:Y.axisColor)||this.lineColor,axisTextColor:((st=this.wardley)==null?void 0:st.axisTextColor)||this.primaryTextColor,gridColor:((q=this.wardley)==null?void 0:q.gridColor)||this.gridColor,componentFill:((W=this.wardley)==null?void 0:W.componentFill)||this.background,componentStroke:((K=this.wardley)==null?void 0:K.componentStroke)||this.lineColor,componentLabelColor:((A=this.wardley)==null?void 0:A.componentLabelColor)||this.primaryTextColor,linkStroke:((V=this.wardley)==null?void 0:V.linkStroke)||this.lineColor,evolutionStroke:((et=this.wardley)==null?void 0:et.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((Z=this.wardley)==null?void 0:Z.annotationStroke)||this.lineColor,annotationTextColor:((lt=this.wardley)==null?void 0:lt.annotationTextColor)||this.primaryTextColor,annotationFill:((_t=this.wardley)==null?void 0:_t.annotationFill)||this.background},this.xyChart={backgroundColor:((St=this.xyChart)==null?void 0:St.backgroundColor)||this.background,titleColor:((Lt=this.xyChart)==null?void 0:Lt.titleColor)||this.primaryTextColor,dataLabelColor:((Mt=this.xyChart)==null?void 0:Mt.dataLabelColor)||this.primaryTextColor,legendTextColor:((ht=this.xyChart)==null?void 0:ht.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((Rt=this.xyChart)==null?void 0:Rt.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((Dt=this.xyChart)==null?void 0:Dt.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((Ut=this.xyChart)==null?void 0:Ut.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((Et=this.xyChart)==null?void 0:Et.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((mt=this.xyChart)==null?void 0:mt.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((xt=this.xyChart)==null?void 0:xt.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:(($t=this.xyChart)==null?void 0:$t.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((qt=this.xyChart)==null?void 0:qt.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((Gt=this.xyChart)==null?void 0:Gt.plotColorPalette)||"#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||this.edgeLabelBackground,this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||F(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||F(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.tagLabelBackgroun
vendor: 7,484 bytes, line 4
4d=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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||cr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Si,"Theme"),Si),yC=p(e=>{const t=new mC;return t.calculate(e),t},"getThemeVariables"),_i,xC=(_i=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=R(this.contrast,55),this.background="#ffffff",this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=Bt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.lineColor=F(this.background),this.textColor=F(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.radius=5,this.strokeWidth=1,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.vertLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal",this.rowOdd=this.rowOdd||R(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||"#f4f4f4",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.useGradient=!0,this.gradientStart=this.primaryBorderColor,this.gradientStop=this.secondaryBorderColor,this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,1))"}updateColors(){var t,r,i,s,o,a,n,l,c,h,u,d,f,m,y,C,x,k,T,S,v,B,L,O,U,N,Y,st,q,W,K,A,V,et,Z,lt,_t,St,Lt,Mt,ht,Rt,Dt,Ut,Et,mt,xt,$t,qt,Gt;this.secondBkg=R(this.contrast,55),this.border2=this.contrast,this.actorBorder=R(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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 M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleInv"+M]=this["cScaleInv"+M]||F(this["cScale"+M]);for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this.darkMode?this["cScalePeer"+M]=this["cScalePeer"+M]||R(this["cScale"+M],10):this["cScalePeer"+M]=this["cScalePeer"+M]||P(this["cScale"+M],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["cScaleLabel"+M]=this["cScaleLabel"+M]||this.scaleLabelColor;for(let M=0;M<5;M++)this["surface"+M]=this["surface"+M]||b(this.mainBkg,{l:-(5+M*5)}),this["surfacePeer"+M]=this["surfacePeer"+M]||b(this.mainBkg,{l:-(8+M*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=R(this.contrast,30),this.sectionBkgColor2=R(this.contrast,30),this.taskBorderColor=P(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=R(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=P(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.labelBackgroun
4dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f4f4f4",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.stateBorder=this.stateBorder||"#000",this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#222",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.classText=this.primaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=b(this.primaryColor,{h:64}),this.fillType3=b(this.secondaryColor,{h:64}),this.fillType4=b(this.primaryColor,{h:-64}),this.fillType5=b(this.secondaryColor,{h:-64}),this.fillType6=b(this.primaryColor,{h:128}),this.fillType7=b(this.secondaryColor,{h:128});for(let M=0;M<this.THEME_COLOR_LIMIT;M++)this["pie"+M]=this["cScale"+M];this.pie12=this.pie0,this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7";for(let M=0;M<8;M++)this["venn"+(M+1)]=this["venn"+(M+1)]??this["cScale"+M];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((s=this.cynefin)==null?void 0:s.boundaryWidth)||2,cliffColor:((o=this.cynefin)==null?void 0:o.cliffColor)||"#8B0000",cliffWidth:((a=this.cynefin)==null?void 0:a.cliffWidth)||4,arrowColor:((n=this.cynefin)==null?void 0:n.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((c=this.cynefin)==null?void 0:c.complexBg)||"#E8F5E9",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#E3F2FD",chaoticBg:((u=this.cynefin)==null?void 0:u.chaoticBg)||"#FBE9E7",clearBg:((d=this.cynefin)==null?void 0:d.clearBg)||"#FFF8E1",confusionBg:((f=this.cynefin)==null?void 0:f.confusionBg)||"#F3E5F5",textColor:((m=this.cynefin)==null?void 0:m.textColor)||this.textColor,labelColor:((y=this.cynefin)==null?void 0:y.labelColor)||this.primaryTextColor},this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ve(this.quadrant1Fill)?R(this.quadrant1Fill):P(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:((C=this.xyChart)==null?void 0:C.backgroundColor)||this.background,titleColor:((x=this.xyChart)==null?void 0:x.titleColor)||this.primaryTextColor,dataLabelColor:((k=this.xyChart)==null?void 0:k.dataLabelColor)||this.primaryTextColor,legendTextColor:((T=this.xyChart)==null?void 0:T.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((S=this.xyChart)==null?void 0:S.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((v=this.xyChart)==null?void 0:v.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((B=this.xyChart)==null?void 0:B.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((L=this.xyChart)==null?void 0:L.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((O=this.xyChart)==null?void 0:O.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((U=this.xyChart)==null?void 0:U.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((N=this.xyChart)==null?void 0:N.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((Y=this.xyChart)==null?void 0:Y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((st=this.xyChart)==null?void 0:st.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((q=this.radar)==null?void 0:q.axisColor)||this.lineColor,axisStrokeWidth:((W=this.radar)==null?void 0:W.axisStrokeWidth)||2,axisLabelFontSize:((K=this.radar)==null?void 0:K.axisLabelFontSize)||12,curveOpacity:((A=this.radar)==null?void 0:A.curveOpacity)||.5,curveStrokeWidth:((V=this.radar)==null?void 0:V.curveStrokeWidth)||2,graticuleColor:((et=this.radar)==null?void 0:et.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((Z=this.radar)==null?void 0:Z.graticuleStrokeWidth)||1,graticuleOpacity:((lt=this.radar)==null?void 0:lt.graticuleOpacity)||.3,legendBoxSize:((_t=this.radar)==null?void 0:_t.legendBoxSize)||12,legendFontSize:((St=this.radar)==null?void 0:St.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((Lt=this.wardley)==null?void 0:Lt.backgroundColor)||this.background,axisColor:((Mt=this.wardley)==null?void 0:Mt.axisColor)||this.lineColor,axisTextColor:((ht=this.wardley)==null?void 0:ht.axisTextColor)||this.primaryTextColor,gridColor:((Rt=this.wardley)==null?void 0:Rt.gridColor)||this.gridColor,componentFill:((Dt=this.wardley)==null?void 0:Dt.componentFill)||this.background,componentStroke:((Ut=this.wardley)==null?void 0:Ut.componentStroke)||this.lineColor,componentLabelColor:((Et=this.wardley)==null?void 0:Et.componentLabelColor)||this.primaryTextColor,linkStroke:((mt=this.wardley)==null?void 0:mt.linkStroke)||this.lineColor,evolutionStroke:((xt=this.wardley)==null?void 0:xt.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:(($t=this.wardley)==null?void 0:$t.annotationStroke)||this.lineColor,annotationTextColor:((qt=this.wardley)==null?void 0:qt.annotationTextColor)||this.primaryTextColor,annotationFill:((Gt=this.wardley)==null?void 0:Gt.annotationFill)||this.background}
4,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=P(this.pie1,25)||this.primaryColor,this.git1=this.pie2||this.secondaryColor,this.git2=this.pie3||this.tertiaryColor,this.git3=this.pie4||b(this.primaryColor,{h:-30}),this.git4=this.pie5||b(this.primaryColor,{h:-60}),this.git5=this.pie6||b(this.primaryColor,{h:-90}),this.git6=this.pie7||b(this.primaryColor,{h:60}),this.git7=this.pie8||b(this.primaryColor,{h:120}),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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.emUiFill=this.emUiFill||"white",this.emUiStroke=this.emUiStroke||"#dbdada",this.emProcessorFill=this.emProcessorFill||"#edb3f6",this.emProcessorStroke=this.emProcessorStroke||"#b88cbf",this.emReadModelFill=this.emReadModelFill||"#d3f1a2",this.emReadModelStroke=this.emReadModelStroke||"#a3b732",this.emCommandFill=this.emCommandFill||"#bcd6fe",this.emCommandStroke=this.emCommandStroke||"#679ac3",this.emEventFill=this.emEventFill||"#ffb778",this.emEventStroke=this.emEventStroke||"#c19a0f",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||"rgb(250,250,250)",this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||"rgb(240,240,240)",this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||cr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(_i,"Theme"),_i),CC=p(e=>{const t=new xC;return t.calculate(e),t},"getThemeVariables"),vi,bC=(vi=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=2,this.primaryBorderColor=Bt(this.primaryColor,this.darkMode),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.nodeBorder="#000000",this.stateBorder="#000000",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));",this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var o,a,n,l,c,h,u,d,f,m,y,C;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Bt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Bt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Bt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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.edgeLabelBackgroun
vendor: 7,150 bytes, line 4
4d=this.edgeLabelBackground||(this.darkMode?P(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||P(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const t="#ECECFE",r="#E9E9F1",i=b(t,{h:180,l:5});if(this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||R(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||t,this.cScale1=this.cScale1||r,this.cScale2=this.cScale2||i,this.cScale3=this.cScale3||b(t,{h:30}),this.cScale4=this.cScale4||b(t,{h:60}),this.cScale5=this.cScale5||b(t,{h:90}),this.cScale6=this.cScale6||b(t,{h:120}),this.cScale7=this.cScale7||b(t,{h:150}),this.cScale8=this.cScale8||b(t,{h:210,l:150}),this.cScale9=this.cScale9||b(t,{h:270}),this.cScale10=this.cScale10||b(t,{h:300}),this.cScale11=this.cScale11||b(t,{h:330}),this.darkMode)for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=P(this["cScale"+x],75);else for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=P(this["cScale"+x],25);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleInv"+x]=this["cScaleInv"+x]||F(this["cScale"+x]);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this.darkMode?this["cScalePeer"+x]=this["cScalePeer"+x]||R(this["cScale"+x],10):this["cScalePeer"+x]=this["cScalePeer"+x]||P(this["cScale"+x],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleLabel"+x]=this["cScaleLabel"+x]||this.scaleLabelColor;const s=this.darkMode?-4:-1;for(let x=0;x<5;x++)this["surface"+x]=this["surface"+x]||b(this.mainBkg,{h:180,s:-15,l:s*(5+x*3)}),this["surfacePeer"+x]=this["surfacePeer"+x]||b(this.mainBkg,{h:180,s:-15,l:s*(8+x*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||b(t,{h:64}),this.fillType3=this.fillType3||b(r,{h:64}),this.fillType4=this.fillType4||b(t,{h:-64}),this.fillType5=this.fillType5||b(r,{h:-64}),this.fillType6=this.fillType6||b(t,{h:128}),this.fillType7=this.fillType7||b(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||b(t,{l:-10}),this.pie5=this.pie5||b(r,{l:-10}),this.pie6=this.pie6||b(i,{l:-10}),this.pie7=this.pie7||b(t,{h:60,l:-10}),this.pie8=this.pie8||b(t,{h:-60,l:-10}),this.pie9=this.pie9||b(t,{h:120,l:0}),this.pie10=this.pie10||b(t,{h:60,l:-20}),this.pie11=this.pie11||b(t,{h:-60,l:-20}),this.pie12=this.pie12||b(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||b(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ve(this.quadrant1Fill)?R(this.quadrant1Fill):P(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.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((a=this.xyChart)==null?void 0:a.titleColor)||this.primaryTextColor,legendTextColor:((n=this.xyChart)==null?void 0:n.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((c=this.xyChart)==null?void 0:c.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((m=this.xyChart)==null?void 0:m.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((y=this.xyChart)==null?void 0:y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||b(t,{h:-30}),this.git4=this.git4||b(t,{h:-60}),this.git5=this.git5||b(t,{h:-90}),this.git6=this.git6||b(t,{h:60}),this.git7=this.git7||b(t,{h:120}),this.darkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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||cr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>
vendor: 5,678 bytes, line 4
4{this[i]=t[i]})}},p(vi,"Theme"),vi),kC=p(e=>{const t=new bC;return t.calculate(e),t},"getThemeVariables"),Bi,wC=(Bi=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=R(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=F(this.background),this.secondaryBorderColor=Bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=R(F("#323D47"),10),this.border1="#ccc",this.border2=Pr(255,255,255,.25),this.arrowheadColor=F(this.background),this.fontFamily="arial, sans-serif",this.fontSize="14px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=3,this.strokeWidth=1,this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily="arial, sans-serif",this.fontSize="14px",this.useGradient=!0,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.noteFontWeight="normal",this.fontWeight="normal"}updateColors(){var r,i,s,o,a,n,l,c,h,u,d,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Bt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Bt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Bt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?P(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||P(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||R(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 5,036 bytes, line 4
4dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=P(this["cScale"+m],75);else for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=P(this["cScale"+m],25);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleInv"+m]=this["cScaleInv"+m]||F(this["cScale"+m]);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this.darkMode?this["cScalePeer"+m]=this["cScalePeer"+m]||R(this["cScale"+m],10):this["cScalePeer"+m]=this["cScalePeer"+m]||P(this["cScale"+m],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleLabel"+m]=this["cScaleLabel"+m]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let m=0;m<5;m++)this["surface"+m]=this["surface"+m]||b(this.mainBkg,{h:180,s:-15,l:t*(5+m*3)}),this["surfacePeer"+m]=this["surfacePeer"+m]||b(this.mainBkg,{h:180,s:-15,l:t*(8+m*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ve(this.quadrant1Fill)?R(this.quadrant1Fill):P(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.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,legendTextColor:((s=this.xyChart)==null?void 0:s.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((c=this.xyChart)==null?void 0:c.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||"#0b0000",this.git1=this.git1||"#4d1037",this.git2=this.git2||"#3f5258",this.git3=this.git3||"#4f2f1b",this.git4=this.git4||"#6e0a0a",this.git5=this.git5||"#3b0048",this.git6=this.git6||"#995a01",this.git7=this.git7||"#154706",this.gitDarkMode=!0,this.gitDarkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(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||cr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>
4{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Bi,"Theme"),Bi),TC=p(e=>{const t=new wC;return t.calculate(e),t},"getThemeVariables"),Li,SC=(Li=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Bt("#28253D",this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.clusterBkg="#F9F9FB",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.filterColor="#000000"}updateColors(){var o,a,n,l,c,h,u,d,f,m,y,C;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Bt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Bt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Bt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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?P(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.noteFontWeight=600,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||P(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const t="#ECECFE",r="#E9E9F1",i=b(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||R(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.compositeTitleBackgroun
vendor: 4,225 bytes, line 4
4d="#F9F9FB",this.altBackground="#F9F9FB",this.stateEdgeLabelBackground="#FFFFFF",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor;for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=this.mainBkg;if(this.darkMode)for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=P(this["cScale"+x],75);else for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScale"+x]=P(this["cScale"+x],25);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleInv"+x]=this["cScaleInv"+x]||F(this["cScale"+x]);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this.darkMode?this["cScalePeer"+x]=this["cScalePeer"+x]||R(this["cScale"+x],10):this["cScalePeer"+x]=this["cScalePeer"+x]||P(this["cScale"+x],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleLabel"+x]=this["cScaleLabel"+x]||this.scaleLabelColor;const s=this.darkMode?-4:-1;for(let x=0;x<5;x++)this["surface"+x]=this["surface"+x]||b(this.mainBkg,{h:180,s:-15,l:s*(5+x*3)}),this["surfacePeer"+x]=this["surfacePeer"+x]||b(this.mainBkg,{h:180,s:-15,l:s*(8+x*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||b(t,{h:64}),this.fillType3=this.fillType3||b(r,{h:64}),this.fillType4=this.fillType4||b(t,{h:-64}),this.fillType5=this.fillType5||b(r,{h:-64}),this.fillType6=this.fillType6||b(t,{h:128}),this.fillType7=this.fillType7||b(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||b(t,{l:-10}),this.pie5=this.pie5||b(r,{l:-10}),this.pie6=this.pie6||b(i,{l:-10}),this.pie7=this.pie7||b(t,{h:60,l:-10}),this.pie8=this.pie8||b(t,{h:-60,l:-10}),this.pie9=this.pie9||b(t,{h:120,l:0}),this.pie10=this.pie10||b(t,{h:60,l:-20}),this.pie11=this.pie11||b(t,{h:-60,l:-20}),this.pie12=this.pie12||b(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||b(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ve(this.quadrant1Fill)?R(this.quadrant1Fill):P(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.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((a=this.xyChart)==null?void 0:a.titleColor)||this.primaryTextColor,legendTextColor:((n=this.xyChart)==null?void 0:n.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((c=this.xyChart)==null?void 0:c.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((m=this.xyChart)==null?void 0:m.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((y=this.xyChart)==null?void 0:y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#FFFFFF",this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||b(t,{h:-30}),this.git4=this.git4||b(t,{h:-60}),this.git5=this.git5||b(t,{h:-90}),this.git6=this.git6||b(t,{h:60}),this.git7=this.git7||b(t,{h:120}),this.darkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||cr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>
vendor: 5,996 bytes, line 4
4{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Li,"Theme"),Li),_C=p(e=>{const t=new SC;return t.calculate(e),t},"getThemeVariables"),Fi,vC=(Fi=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=R(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=F(this.background),this.secondaryBorderColor=Bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=R(F("#323D47"),10),this.border1="#ccc",this.border2=Pr(255,255,255,.25),this.arrowheadColor=F(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.filterColor="#FFFFFF"}updateColors(){var r,i,s,o,a,n,l,c,h,u,d,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Bt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Bt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Bt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||P(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||R(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.compositeBackgroun
vendor: 5,238 bytes, line 4
4d="#16141F",this.altBackground="#16141F",this.compositeTitleBackground="#16141F",this.stateEdgeLabelBackground="#16141F",this.fontWeight=600,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||b(this.primaryColor,{h:30}),this.cScale4=this.cScale4||b(this.primaryColor,{h:60}),this.cScale5=this.cScale5||b(this.primaryColor,{h:90}),this.cScale6=this.cScale6||b(this.primaryColor,{h:120}),this.cScale7=this.cScale7||b(this.primaryColor,{h:150}),this.cScale8=this.cScale8||b(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||b(this.primaryColor,{h:270}),this.cScale10=this.cScale10||b(this.primaryColor,{h:300}),this.cScale11=this.cScale11||b(this.primaryColor,{h:330}),this.darkMode)for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=P(this["cScale"+m],75);else for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScale"+m]=P(this["cScale"+m],25);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleInv"+m]=this["cScaleInv"+m]||F(this["cScale"+m]);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this.darkMode?this["cScalePeer"+m]=this["cScalePeer"+m]||R(this["cScale"+m],10):this["cScalePeer"+m]=this["cScalePeer"+m]||P(this["cScale"+m],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleLabel"+m]=this["cScaleLabel"+m]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let m=0;m<5;m++)this["surface"+m]=this["surface"+m]||b(this.mainBkg,{h:180,s:-15,l:t*(5+m*3)}),this["surfacePeer"+m]=this["surfacePeer"+m]||b(this.mainBkg,{h:180,s:-15,l:t*(8+m*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ve(this.quadrant1Fill)?R(this.quadrant1Fill):P(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.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,legendTextColor:((s=this.xyChart)==null?void 0:s.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((c=this.xyChart)==null?void 0:c.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.requirementEdgeLabelBackground="#16141F",this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.erEdgeLabelBackgroun
4d="#16141F",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||cr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Fi,"Theme"),Fi),BC=p(e=>{const t=new vC;return t.calculate(e),t},"getThemeVariables"),Ai,LC=(Ai=class{constructor(){this.background="#ffffff",this.primaryColor="#cccccc",this.mainBkg="#ffffff",this.noteBkgColor="#fff5ad",this.noteTextColor="#28253D",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.primaryBorderColor=Bt(this.primaryColor,this.darkMode),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#28253D",this.stateBorder="#28253D",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.tertiaryColor="#ffffff",this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.actorBorder="#28253D",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=["#FDF4FF","#F0FDFA","#FFF7ED","#ECFEFF","#F0FDF4","#F5F3FF","#FEF2F2","#FEFCE8","#EEF2FF","#F7FEE7","#F0F9FF","#FFF1F2"],this.filterColor="#000000"}updateColors(){var o,a,n,l,c,h,u,d,f,m,y,C;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#28253D"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Bt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Bt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Bt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(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?P(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||P(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;const t="#ECECFE",r="#E9E9F1",i=b(t,{h:180,l:5});this.sectionBkgColor=this.sectionBkgColor||i,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||r,this.sectionBkgColor2=this.sectionBkgColor2||t,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||t,this.activeTaskBorderColor=this.activeTaskBorderColor||t,this.activeTaskBkgColor=this.activeTaskBkgColor||R(t,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 4,256 bytes, line 4
4dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleInv"+x]=this["cScaleInv"+x]||F(this["cScale"+x]);for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this.darkMode?this["cScalePeer"+x]=this["cScalePeer"+x]||R(this["cScale"+x],10):this["cScalePeer"+x]=this["cScalePeer"+x]||P(this["cScale"+x],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let x=0;x<this.THEME_COLOR_LIMIT;x++)this["cScaleLabel"+x]=this["cScaleLabel"+x]||this.scaleLabelColor;const s=this.darkMode?-4:-1;for(let x=0;x<5;x++)this["surface"+x]=this["surface"+x]||b(this.mainBkg,{h:180,s:-15,l:s*(5+x*3)}),this["surfacePeer"+x]=this["surfacePeer"+x]||b(this.mainBkg,{h:180,s:-15,l:s*(8+x*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||t,this.fillType1=this.fillType1||r,this.fillType2=this.fillType2||b(t,{h:64}),this.fillType3=this.fillType3||b(r,{h:64}),this.fillType4=this.fillType4||b(t,{h:-64}),this.fillType5=this.fillType5||b(r,{h:-64}),this.fillType6=this.fillType6||b(t,{h:128}),this.fillType7=this.fillType7||b(r,{h:128}),this.pie1=this.pie1||t,this.pie2=this.pie2||r,this.pie3=this.pie3||i,this.pie4=this.pie4||b(t,{l:-10}),this.pie5=this.pie5||b(r,{l:-10}),this.pie6=this.pie6||b(i,{l:-10}),this.pie7=this.pie7||b(t,{h:60,l:-10}),this.pie8=this.pie8||b(t,{h:-60,l:-10}),this.pie9=this.pie9||b(t,{h:120,l:0}),this.pie10=this.pie10||b(t,{h:60,l:-20}),this.pie11=this.pie11||b(t,{h:-60,l:-20}),this.pie12=this.pie12||b(t,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||t,this.quadrant2Fill=this.quadrant2Fill||b(t,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(t,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(t,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ve(this.quadrant1Fill)?R(this.quadrant1Fill):P(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.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((o=this.xyChart)==null?void 0:o.backgroundColor)||this.background,titleColor:((a=this.xyChart)==null?void 0:a.titleColor)||this.primaryTextColor,legendTextColor:((n=this.xyChart)==null?void 0:n.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((l=this.xyChart)==null?void 0:l.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((c=this.xyChart)==null?void 0:c.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((h=this.xyChart)==null?void 0:h.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((u=this.xyChart)==null?void 0:u.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((d=this.xyChart)==null?void 0:d.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((f=this.xyChart)==null?void 0:f.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((m=this.xyChart)==null?void 0:m.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((y=this.xyChart)==null?void 0:y.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((C=this.xyChart)==null?void 0:C.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||t,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||t,this.git1=this.git1||r,this.git2=this.git2||i,this.git3=this.git3||b(t,{h:-30}),this.git4=this.git4||b(t,{h:-60}),this.git5=this.git5||b(t,{h:-90}),this.git6=this.git6||b(t,{h:60}),this.git7=this.git7||b(t,{h:120}),this.darkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLineColor=this.commitLineColor??"#BDBCCC",this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.fontWeight=600,this.erEdgeLabelBackground="#FFFFFF",this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||cr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>
4{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Ai,"Theme"),Ai),FC=p(e=>{const t=new LC;return t.calculate(e),t},"getThemeVariables"),Ei,AC=(Ei=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=R(this.primaryColor,16),this.tertiaryColor=b(this.primaryColor,{h:-160}),this.primaryBorderColor=F(this.background),this.secondaryBorderColor=Bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Bt(this.tertiaryColor,this.darkMode),this.primaryTextColor=F(this.primaryColor),this.secondaryTextColor=F(this.secondaryColor),this.tertiaryTextColor=F(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=R(F("#323D47"),10),this.border1="#ccc",this.border2=Pr(255,255,255,.25),this.arrowheadColor=F(this.background),this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.labelBackground="#111113",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.radius=12,this.strokeWidth=2,this.noteBkgColor=this.noteBkgColor??"#FEF9C3",this.noteTextColor=this.noteTextColor??"#28253D",this.THEME_COLOR_LIMIT=12,this.fontFamily='"Recursive Variable", arial, sans-serif',this.fontSize="14px",this.nodeBorder="#FFFFFF",this.stateBorder="#FFFFFF",this.useGradient=!1,this.gradientStart="#0042eb",this.gradientStop="#eb0042",this.dropShadow="url(#drop-shadow)",this.nodeShadow=!0,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.clusterBkg="#1E1A2E",this.clusterBorder="#BDBCCC",this.noteBorderColor="#FACC15",this.noteFontWeight=600,this.borderColorArray=["#E879F9","#2DD4BF","#FB923C","#22D3EE","#4ADE80","#A78BFA","#F87171","#FACC15","#818CF8","#A3E635 ","#38BDF8","#FB7185"],this.bkgColorArray=[],this.filterColor="#FFFFFF"}updateColors(){var r,i,s,o,a,n,l,c,h,u,d,f;this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#FFFFFF"),this.secondaryColor=this.secondaryColor||b(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||b(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||Bt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Bt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Bt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Bt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||F(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||F(this.tertiaryColor),this.lineColor=this.lineColor||F(this.background),this.arrowheadColor=this.arrowheadColor||F(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.border1,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder="#FFFFFF",this.signalColor="#FFFFFF",this.labelBoxBorderColor="#BDBCCC",this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||P(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||F(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.rootLabelColor="#FFFFFF",this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||R(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.vertLineColor=this.vertLineColor||this.primaryBorderColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroun
vendor: 4,633 bytes, line 4
4dColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#f0f0f0",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||"#f4a8ff",this.cScale1=this.cScale1||"#46ecd5",this.cScale2=this.cScale2||"#ffb86a",this.cScale3=this.cScale3||"#dab2ff",this.cScale4=this.cScale4||"#7bf1a8",this.cScale5=this.cScale5||"#c4b4ff",this.cScale6=this.cScale6||"#ffa2a2",this.cScale7=this.cScale7||"#ffdf20",this.cScale8=this.cScale8||"#a3b3ff",this.cScale9=this.cScale9||"#bbf451",this.cScale10=this.cScale10||"#74d4ff",this.cScale11=this.cScale11||"#ffa1ad";for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleInv"+m]=this["cScaleInv"+m]||F(this["cScale"+m]);for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this.darkMode?this["cScalePeer"+m]=this["cScalePeer"+m]||R(this["cScale"+m],10):this["cScalePeer"+m]=this["cScalePeer"+m]||P(this["cScale"+m],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let m=0;m<this.THEME_COLOR_LIMIT;m++)this["cScaleLabel"+m]=P(this["cScale"+m],75);const t=this.darkMode?-4:-1;for(let m=0;m<5;m++)this["surface"+m]=this["surface"+m]||b(this.mainBkg,{h:180,s:-15,l:t*(5+m*3)}),this["surfacePeer"+m]=this["surfacePeer"+m]||b(this.mainBkg,{h:180,s:-15,l:t*(8+m*3)});this.classText=this.classText||this.textColor,this.fillType0=this.fillType0||this.primaryColor,this.fillType1=this.fillType1||this.secondaryColor,this.fillType2=this.fillType2||b(this.primaryColor,{h:64}),this.fillType3=this.fillType3||b(this.secondaryColor,{h:64}),this.fillType4=this.fillType4||b(this.primaryColor,{h:-64}),this.fillType5=this.fillType5||b(this.secondaryColor,{h:-64}),this.fillType6=this.fillType6||b(this.primaryColor,{h:128}),this.fillType7=this.fillType7||b(this.secondaryColor,{h:128}),this.pie1=this.pie1||this.primaryColor,this.pie2=this.pie2||this.secondaryColor,this.pie3=this.pie3||this.tertiaryColor,this.pie4=this.pie4||b(this.primaryColor,{l:-10}),this.pie5=this.pie5||b(this.secondaryColor,{l:-10}),this.pie6=this.pie6||b(this.tertiaryColor,{l:-10}),this.pie7=this.pie7||b(this.primaryColor,{h:60,l:-10}),this.pie8=this.pie8||b(this.primaryColor,{h:-60,l:-10}),this.pie9=this.pie9||b(this.primaryColor,{h:120,l:0}),this.pie10=this.pie10||b(this.primaryColor,{h:60,l:-20}),this.pie11=this.pie11||b(this.primaryColor,{h:-60,l:-20}),this.pie12=this.pie12||b(this.primaryColor,{h:120,l:-10}),this.pieTitleTextSize=this.pieTitleTextSize||"25px",this.pieTitleTextColor=this.pieTitleTextColor||this.taskTextDarkColor,this.pieSectionTextSize=this.pieSectionTextSize||"17px",this.pieSectionTextColor=this.pieSectionTextColor||this.textColor,this.pieLegendTextSize=this.pieLegendTextSize||"17px",this.pieLegendTextColor=this.pieLegendTextColor||this.taskTextDarkColor,this.pieStrokeColor=this.pieStrokeColor||"black",this.pieStrokeWidth=this.pieStrokeWidth||"2px",this.pieOuterStrokeWidth=this.pieOuterStrokeWidth||"2px",this.pieOuterStrokeColor=this.pieOuterStrokeColor||"black",this.pieOpacity=this.pieOpacity||"0.7",this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.quadrant1Fill=this.quadrant1Fill||this.primaryColor,this.quadrant2Fill=this.quadrant2Fill||b(this.primaryColor,{r:5,g:5,b:5}),this.quadrant3Fill=this.quadrant3Fill||b(this.primaryColor,{r:10,g:10,b:10}),this.quadrant4Fill=this.quadrant4Fill||b(this.primaryColor,{r:15,g:15,b:15}),this.quadrant1TextFill=this.quadrant1TextFill||this.primaryTextColor,this.quadrant2TextFill=this.quadrant2TextFill||b(this.primaryTextColor,{r:-5,g:-5,b:-5}),this.quadrant3TextFill=this.quadrant3TextFill||b(this.primaryTextColor,{r:-10,g:-10,b:-10}),this.quadrant4TextFill=this.quadrant4TextFill||b(this.primaryTextColor,{r:-15,g:-15,b:-15}),this.quadrantPointFill=this.quadrantPointFill||Ve(this.quadrant1Fill)?R(this.quadrant1Fill):P(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.quadrantExter
4nalBorderStrokeFill=this.quadrantExternalBorderStrokeFill||this.primaryBorderColor,this.quadrantTitleFill=this.quadrantTitleFill||this.primaryTextColor,this.xyChart={backgroundColor:((r=this.xyChart)==null?void 0:r.backgroundColor)||this.background,titleColor:((i=this.xyChart)==null?void 0:i.titleColor)||this.primaryTextColor,legendTextColor:((s=this.xyChart)==null?void 0:s.legendTextColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((n=this.xyChart)==null?void 0:n.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((l=this.xyChart)==null?void 0:l.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((c=this.xyChart)==null?void 0:c.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((h=this.xyChart)==null?void 0:h.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((u=this.xyChart)==null?void 0:u.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((d=this.xyChart)==null?void 0:d.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((f=this.xyChart)==null?void 0:f.plotColorPalette)||"#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"},this.requirementBackground=this.requirementBackground||this.primaryColor,this.requirementBorderColor=this.requirementBorderColor||this.primaryBorderColor,this.requirementBorderSize=this.requirementBorderSize||"1",this.requirementTextColor=this.requirementTextColor||this.primaryTextColor,this.relationColor=this.relationColor||this.lineColor,this.relationLabelBackground=this.relationLabelBackground||(this.darkMode?P(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=this.git0||this.primaryColor,this.git1=this.git1||this.secondaryColor,this.git2=this.git2||this.tertiaryColor,this.git3=this.git3||b(this.primaryColor,{h:-30}),this.git4=this.git4||b(this.primaryColor,{h:-60}),this.git5=this.git5||b(this.primaryColor,{h:-90}),this.git6=this.git6||b(this.primaryColor,{h:60}),this.git7=this.git7||b(this.primaryColor,{h:120}),this.darkMode?(this.git0=R(this.git0,25),this.git1=R(this.git1,25),this.git2=R(this.git2,25),this.git3=R(this.git3,25),this.git4=R(this.git4,25),this.git5=R(this.git5,25),this.git6=R(this.git6,25),this.git7=R(this.git7,25)):(this.git0=P(this.git0,25),this.git1=P(this.git1,25),this.git2=P(this.git2,25),this.git3=P(this.git3,25),this.git4=P(this.git4,25),this.git5=P(this.git5,25),this.git6=P(this.git6,25),this.git7=P(this.git7,25)),this.gitInv0=this.gitInv0||F(this.git0),this.gitInv1=this.gitInv1||F(this.git1),this.gitInv2=this.gitInv2||F(this.git2),this.gitInv3=this.gitInv3||F(this.git3),this.gitInv4=this.gitInv4||F(this.git4),this.gitInv5=this.gitInv5||F(this.git5),this.gitInv6=this.gitInv6||F(this.git6),this.gitInv7=this.gitInv7||F(this.git7),this.branchLabelColor=this.branchLabelColor||(this.darkMode?"black":this.labelTextColor),this.gitBranchLabel0=this.gitBranchLabel0||this.branchLabelColor,this.gitBranchLabel1=this.gitBranchLabel1||this.branchLabelColor,this.gitBranchLabel2=this.gitBranchLabel2||this.branchLabelColor,this.gitBranchLabel3=this.gitBranchLabel3||this.branchLabelColor,this.gitBranchLabel4=this.gitBranchLabel4||this.branchLabelColor,this.gitBranchLabel5=this.gitBranchLabel5||this.branchLabelColor,this.gitBranchLabel6=this.gitBranchLabel6||this.branchLabelColor,this.gitBranchLabel7=this.gitBranchLabel7||this.branchLabelColor,this.tagLabelColor=this.tagLabelColor||this.primaryTextColor,this.tagLabelBackground=this.tagLabelBackground||this.primaryColor,this.tagLabelBorder=this.tagBorder||this.primaryBorderColor,this.tagLabelFontSize=this.tagLabelFontSize||"10px",this.commitLabelColor=this.commitLabelColor||this.secondaryTextColor,this.commitLabelBackground=this.commitLabelBackground||this.secondaryColor,this.commitLabelFontSize=this.commitLabelFontSize||"10px",this.commitLineColor=this.commitLineColor??"#BDBCCC",this.fontWeight=600,this.erEdgeLabelBackground="#16141F",this.attributeBackgroun
4dColorOdd=this.attributeBackgroundColorOdd||cr,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||ur}calculate(t){if(typeof t!="object"){this.updateColors();return}const r=Object.keys(t);r.forEach(i=>{this[i]=t[i]}),this.updateColors(),r.forEach(i=>{this[i]=t[i]})}},p(Ei,"Theme"),Ei),EC=p(e=>{const t=new AC;return t.calculate(e),t},"getThemeVariables"),vr={base:{getThemeVariables:uC},dark:{getThemeVariables:fC},default:{getThemeVariables:gC},forest:{getThemeVariables:yC},neutral:{getThemeVariables:CC},neo:{getThemeVariables:kC},"neo-dark":{getThemeVariables:TC},redux:{getThemeVariables:_C},"redux-dark":{getThemeVariables:BC},"redux-color":{getThemeVariables:FC},"redux-dark-color":{getThemeVariables:EC}},ce={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:null,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200,inheritDir:!1},swimlane:{useMaxWidth:!0,lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!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,hierarchicalNamespaces:!0},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,donutHole:0,legendPosition:"right",highlightSlice:""},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showDataLabel:!1,showDataLabelOutsideBar:!1,showTitle:!0,showLegend:!0,legendFontSize:14,legendPadding:10,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWi
vendor: 6,420 bytes, line 4
4dth:2,labelRotation:0},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,labelRotation:0},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200,layoutAlgorithm:"cose-bilkent"},ishikawa:{useMaxWidth:!0,diagramPadding:20},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:"",nodeWidth:10,nodePadding:12,labelStyle:"legacy"},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},treeView:{useMaxWidth:!0,rowIndent:10,paddingX:5,paddingY:5,lineThickness:1,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},eventmodeling:{useMaxWidth:!0,padding:30,rowHeight:32},radar:{useMaxWidth:!0,width:600,height:600,marginTop:50,marginRight:50,marginBottom:50,marginLeft:50,axisScaleFactor:1,axisLabelFactor:1.05,curveTension:.
vendor: 5,626 bytes, line 4
417},venn:{useMaxWidth:!0,width:800,height:450,padding:8,useDebugLayout:!1},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},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},sf={...ce,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",nodePlacementAlignment:"NONE",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES",keepEntryNodeOnTop:!1},themeCSS:void 0,themeVariables:vr.default.getThemeVariables(),sequence:{...ce.sequence,messageFont:p(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:p(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:p(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{defaultRenderer:"dagre-wrapper",hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...ce.gantt,tickInterval:void 0,useWidth:void 0},c4:{...ce.c4,useWidth:void 0,personFont:p(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...ce.flowchart,inheritDir:!1},external_personFont:p(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:p(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:p(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:p(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:p(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:p(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:p(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:p(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:p(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:p(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:p(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:p(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:p(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:p(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:p(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:p(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:p(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:p(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:p(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:p(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:p(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...ce.pie,useWidth:984}
4,xyChart:{...ce.xyChart,useWidth:void 0},requirement:{...ce.requirement,useWidth:void 0},packet:{...ce.packet},eventmodeling:{...ce.eventmodeling},treeView:{...ce.treeView,useWidth:void 0},radar:{...ce.radar},railroad:{...ce.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...ce.ishikawa},sankey:{...ce.sankey,nodeColors:void 0},treemap:{useMaxWidth:!0,padding:10,diagramPadding:8,showValues:!0,nodeWidth:100,nodeHeight:40,borderWidth:1,valueFontSize:12,labelFontSize:14,valueFormat:","},venn:{...ce.venn},cynefin:{...ce.cynefin}},of=p((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...of(e[i],"")]:[...r,t+i],[]),"keyify"),MC=new Set(of(sf,"")),af=sf,$C={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},OC=p((e,t)=>{for(const r of Object.keys(e)){const i=e[r];(r.startsWith("__")||r.includes("proto")||r.includes("constr")||typeof i!="string"||!t.test(i))&&(I.debug("sanitize deleting dictionary entry:",r,i),delete e[r])}},"sanitizeDictionaryConfig"),Bo=p(e=>{if(I.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>Bo(t));return}for(const t of Object.keys(e)){if(I.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!MC.has(t)||e[t]==null){I.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){const i=$C[t];i?OC(e[t],i):(I.debug("sanitizing object",t),Bo(e[t]));continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(I.debug("sanitizing css option",t),e[t]=nf(e[t]))}if(e.themeVariables)for(const t of Object.keys(e.themeVariables)){const r=e.themeVariables[t];r!=null&&r.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(e.themeVariables[t]="")}I.debug("After sanitization",e)}},"sanitizeDirective"),nf=p(e=>{let t=0,r=0;for(const i of e){if(t<r)return"{ /* ERROR: Unbalanced CSS */ }";i==="{"?t++:i==="}"&&r++}return t!==r?"{ /* ERROR: Unbalanced CSS */ }":e},"sanitizeCss"),Ri=Object.freeze(af),dr=p(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Ee=le({},Ri),Lo,Qr=[],ys=le({},Ri),As=p((e,t)=>{let r=le({},e),i={};for(const s of t)cf(s),i=le(i,s);if(r=le(r,i),i.theme&&i.theme in vr){const s=le({},Lo),o=le(s.themeVariables||{},i.themeVariables);r.theme&&r.theme in vr&&(r.themeVariables=vr[r.theme].getThemeVariables(o))}return ys=r,qC(ys),ys},"updateCurrentConfig"),DC=p(e=>(Ee=le({},Ri),Ee=le(Ee,e),e.theme&&vr[e.theme]&&(Ee.themeVariables=vr[e.theme].getThemeVariables(e.themeVariables)),As(Ee,Qr),Ee),"setSiteConfig"),IC=p(e=>{Lo=le({},e)},"saveConfigFromInitialize"),RC=p(e=>(Ee=le(Ee,e),As(Ee,Qr),Ee),"updateSiteConfig"),lf=p(()=>le({},Ee),"getSiteConfig"),hf=p(e=>(As(ys,[e]),Jt()),"setConfig"),Jt=p(()=>le({},ys),"getConfig"),cf=p(e=>{e&&(["secure",...Ee.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(I.debug(`Denied attempt to modify a secure key ${t}`,e[t]),delete e[t])}),Object.keys(e).forEach(t=>{t.startsWith("__")&&delete e[t]}),Object.keys(e).forEach(t=>{typeof e[t]=="string"&&(e[t].includes("<")||e[t].includes(">")||e[t].includes("url(data:"))&&delete e[t],typeof e[t]=="object"&&cf(e[t])}))},"sanitize"),PC=p(e=>{var t;Bo(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Qr.push(e),As(Ee,Qr)}
4,"addDirective"),Fo=p((e=Ee)=>{Qr=[],As(e,Qr)},"reset"),NC={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",FLOWCHART_HTML_LABELS_DEPRECATED:"flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."},Sc={},uf=p(e=>{Sc[e]||(I.warn(NC[e]),Sc[e]=!0)},"issueWarning"),qC=p(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&uf("LAZY_LOAD_DEPRECATED")},"checkConfig"),Z5=p(()=>{let e={};Lo&&(e=le(e,Lo));for(const t of Qr)e=le(e,t);return e},"getUserDefinedConfig"),Ce=p(e=>{var t,r;return((t=e.flowchart)==null?void 0:t.htmlLabels)!=null&&uf("FLOWCHART_HTML_LABELS_DEPRECATED"),dr(e.htmlLabels??((r=e.flowchart)==null?void 0:r.htmlLabels)??!0)},"getEffectiveHtmlLabels"),df=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,xs=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,WC=/\s*%%.*\n/gm,Mi,ff=(Mi=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},p(Mi,"UnknownDiagramError"),Mi),Jr={},xl=p(function(e,t){e=e.replace(df,"").replace(xs,"").replace(WC,`
5`);for(const[r,{detector:i}]of Object.entries(Jr))if(i(e,t))return r;throw new ff(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),Fn=p((...e)=>{for(const{id:t,detector:r,loader:i}of e)pf(t,r,i)},"registerLazyLoadedDiagrams"),pf=p((e,t,r)=>{Jr[e]&&I.warn(`Detector with key ${e} already exists. Overwriting.`),Jr[e]={detector:t,loader:r},I.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),zC=p(e=>Jr[e].loader,"getDiagramLoader"),Es=/<br\s*\/?>/gi,HC=p(e=>
5e?yf(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),YC=(()=>{let e=!1;return()=>{e||(gf(),e=!0)}})();function gf(){const e="data-temp-href-target";Ii.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Ii.addHook("afterSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute(e)&&(t.setAttribute("target",t.getAttribute(e)??""),t.removeAttribute(e),t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener"))})}p(gf,"setupDompurifyHooks");var mf=p(e=>(YC(),Ii.sanitize(e)),"removeScript"),_c=p((e,t)=>{if(Ce(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=mf(e):r!=="loose"&&(e=yf(e),e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"),e=e.replace(/=/g,"&equals;"),e=jC(e))}return e},"sanitizeMore"),ze=p((e,t)=>e&&(t.dompurifyConfig?e=Ii.sanitize(_c(e,t),t.dompurifyConfig).toString():e=Ii.sanitize(_c(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),UC=p((e,t)=>typeof e=="string"?ze(e,t):e.flat().map(r=>ze(r,t)),"sanitizeTextOrArray"),GC=p(e=>Es.test(e),"hasBreaks"),XC=p(e=>e.split(Es),"splitBreaks"),jC=p(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),yf=p(e=>e.replace(Es,"#br#"),"breakToPlaceholder"),VC=p(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),KC=p(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),ZC=p(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),vc=p(function(e){const t=e.split(/(,)/),r=[];for(let i=0;i<t.length;i++){let s=t[i];if(s===","&&i>0&&i+1<t.length){const o=t[i-1],a=t[i+1];QC(o,a)&&(s=o+","+a,i++,r.pop())}r.push(JC(s))}return r.join("")},"parseGenericTypes"),An=p((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),QC=p((e,t)=>{const r=An(e,"~"),i=An(t,"~");return r===1&&i===1},"shouldCombineSets"),JC=p(e=>{const t=An(e,"~");let r=!1;if(t<=1)return e;t%2!==0&&e.startsWith("~")&&(e=e.substring(1),r=!0);const i=[...e];let s=i.indexOf("~"),o=i.lastIndexOf("~");for(;s!==-1&&o!==-1&&s!==o;)i[s]="<",i[o]=">",s=i.indexOf("~"),o=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),Bc=p(()=>window.MathMLElement!==void 0,"isMathMLSupported"),En=/\$\$(.*?)\$\$/g,bs=p(e=>{var t;return(((t=e.match(En))==null?void 0:t.length)??0)>0},"hasKatex"),Q5=p(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await xf(e,t),r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0";const i=document.querySelector("body");i==null||i.insertAdjacentElement("beforeend",r);const s={width:r.clientWidth,height:r.clientHeight};return r.remove(),s},"calculateMathMLDimensions"),tb=p(async(e,t)=>{if(!bs(e))return e;if(!(Bc()||t.legacyMathML||t.forceLegacyMathML))return e.replace(En,"MathML is unsupported in this environment.");{const{default:r}=await It(async()=>{const{default:s}=await import("./mermaid-VLURNSYL-CPd_SwGs.js").then(o=>o.T);return{default:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122])),i=t.forceLegacyMathML||!Bc()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Es).map(s=>bs(s)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${s}</div>`:`<div>${s}</div>`).join("").replace(En,(s,o)=>r.renderToString(o,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),xf=p(async(e,t)=>ze(await tb(e,t),t),"renderKatexSanitized"),Ms={getRows:HC,sanitizeText:ze,sanitizeTextOrArray:UC,hasBreaks:GC,splitBreaks:XC,lineBreakRegex:Es,removeScript:mf,getUrl:VC,evaluate:dr,getMax:KC,getMin:ZC},eb=p(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),rb=p(function(e,t,r){let i=new Map;return r?(i.set("width","100%"),i.set("style",`max-width: ${t}px;`)):(i.set("height",e),i.set("width",t)),i},"calculateSvgSizeAttrs"),Cf=p(function(e,t,r,i){const s=rb(t,r,i);eb(e,s)},"configureSvgSize"),ib=p(function(e,t,r,i){const s=t.node().getBBox(),o=s.width,a=s.height;I.info(`SVG bounds: ${o}x${a}`,s);let n=0,l=0;I.info(`Graph bounds: ${n}x${l}`,e),n=o+r*2,l=a+r*2,I.info(`Calculated bounds: ${n}x${l}`),Cf(t,l,n,i);const c=`${s.x-r} ${s.y-r} ${s.width+2*r} ${s.height+2*r}`;t.attr("viewBox",c)},"setupGraphViewbox"),fo={};function Mn(e){return[...e.cssRules].map(t=>t.cssText).join(`
6`)}p(Mn,"cssStyleSheetToString");var sb=p((e,t,r,i)=>{let s="";return e in fo&&fo[e]?s=fo[e]({...r,svgId:i}):I.warn(`No theme found for ${e}`),`& {
7    font-family: ${r.fontFamily};
8    font-size: ${r.fontSize};
9    fill: ${r.textColor}
10  }
11  @keyframes edge-animation-frame {
12    from {
13      stroke-dashoffset: 0;
14    }
15  }
16  @keyframes dash {
17    to {
18      stroke-dashoffset: 0;
19    }
20  }
21  & .edge-animation-slow {
22    stroke-dasharray: 9,5 !important;
23    stroke-dashoffset: 900;
24    animation: dash 50s linear infinite;
25    stroke-linecap: round;
26  }
27  & .edge-animation-fast {
28    stroke-dasharray: 9,5 !important;
29    stroke-dashoffset: 900;
30    animation: dash 20s linear infinite;
31    stroke-linecap: round;
32  }
33  /* Classes common for multiple diagrams */
34
35  & .error-icon {
36    fill: ${r.errorBkgColor};
37  }
38  & .error-text {
39    fill: ${r.errorTextColor};
40    stroke: ${r.errorTextColor};
41  }
42
43  & .edge-thickness-normal {
44    stroke-width: ${r.strokeWidth??1}px;
45  }
46  & .edge-thickness-thick {
47    stroke-width: 3.5px
48  }
49  & .edge-pattern-solid {
50    stroke-dasharray: 0;
51  }
52  & .edge-thickness-invisible {
53    stroke-width: 0;
54    fill: none;
55  }
56  & .edge-pattern-dashed{
57    stroke-dasharray: 3;
58  }
59  .edge-pattern-dotted {
60    stroke-dasharray: 2;
61  }
62
63  & .marker {
64    fill: ${r.lineColor};
65    stroke: ${r.lineColor};
66  }
67  & .marker.cross {
68    stroke: ${r.lineColor};
69  }
70
71  & svg {
72    font-family: ${r.fontFamily};
73    font-size: ${r.fontSize};
74  }
75   & p {
76    margin: 0
77   }
78
79  ${s}
80  .node .neo-node {
81    stroke: ${r.nodeBorder};
82  }
83
84  [data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
85    stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
86    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
87  }
88  [data-look="neo"].swimlane.cluster rect {
89    filter: none;
90  }
91
92
93  [data-look="neo"].node path {
94    stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
95    stroke-width: ${r.strokeWidth??1}px;
96  }
97
98  [data-look="neo"].node .outer-path {
99    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
100  }
101
102  [data-look="neo"].node .neo-line path {
103    stroke: ${r.nodeBorder};
104    filter: none;
105  }
106
107  [data-look="neo"].node circle{
108    stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
109    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
110  }
111
112  [data-look="neo"].node circle .state-start{
113    fill: #000000;
114  }
115
116  [data-look="neo"].icon-shape .icon {
117    fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
118    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
119  }
120
121    [data-look="neo"].icon-shape .icon-neo path {
122    stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
123    filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
124  }
125
126  ${t}
127`},"getStyles"),ob=p((e,t)=>{t!==void 0&&(fo[e]=t)},"addStylesForDiagram"),ab=sb,bf={};wx(bf,{clear:()=>nb,getAccDescription:()=>ub,getAccTitle:()=>hb,getDiagramTitle:()=>fb,setAccDescription:()=>cb,setAccTitle:()=>lb,setDiagramTitle:()=>db});
127var Cl="",bl="",kl="",wl=p(e=>ze(e,Jt()),"sanitizeText"),nb=p(()=>{Cl="",kl="",bl=""},"clear"),lb=p(e=>{Cl=wl(e).replace(/^\s+/g,"")},"setAccTitle"),hb=p(()=>Cl,"getAccTitle"),cb=p(e=>{kl=wl(e).replace(/\n\s+/g,`
128`)},"setAccDescription"),ub=p(()=>kl,"getAccDescription"),db=p(e=>{bl=wl(e)},"setDiagramTitle"),fb=p(()=>bl,"getDiagramTitle"),Lc=I,pb=yl,Nt=Jt,J5=hf,t3=Ri,Tl=p(e=>ze(e,Nt()),"sanitizeText"),gb=ib,mb=p(()=>bf,"getCommonDb"),Ao={},Eo=p((e,t,r)=>{var i;Ao[e]&&Lc.warn(`Diagram with id ${e} already registered. Overwriting.`),Ao[e]=t,r&&pf(e,r),ob(e,t.styles),(i=t.injectUtils)==null||i.call(t,Lc,pb,Nt,Tl,gb,mb(),()=>{})},"registerDiagram"),$n=p(e=>{if(e in Ao)return Ao[e];throw new yb(e)},"getDiagram"),$i,yb=($i=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},p($i,"DiagramNotFoundError"),$i),On="http://www.w3.org/1999/xhtml";const Fc={svg:"http://www.w3.org/2000/svg",xhtml:On,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Jo(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Fc.hasOwnProperty(t)?{space:Fc[t],local:e}:e}function xb(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===On&&t.documentElement.namespaceURI===On?t.createElement(e):t.createElementNS(r,e)}}function Cb(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function kf(e){var t=Jo(e);return(t.local?Cb:xb)(t)}function bb(){}function Sl(e){return e==null?bb:function(){return this.querySelector(e)}}function kb(e){typeof e!="function"&&(e=Sl(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var o=t[s],a=o.length,n=i[s]=new Array(a),l,c,h=0;h<a;++h)(l=o[h])&&(c=e.call(l,l.__data__,h,o))&&("__data__"in l&&(c.__data__=l.__data__),n[h]=c);return new je(i,this._parents)}function wb(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Tb(){return[]}function wf(e){return e==null?Tb:function(){return this.querySelectorAll(e)}}function Sb(e){return function(){return wb(e.apply(this,arguments))}}function _b(e){typeof e=="function"?e=Sb(e):e=wf(e);for(var t=this._groups,r=t.length,i=[],s=[],o=0;o<r;++o)for(var a=t[o],n=a.length,l,c=0;c<n;++c)(l=a[c])&&(i.push(e.call(l,l.__data__,c,a)),s.push(l));return new je(i,s)}function Tf(e){return function(){return this.matches(e)}}function Sf(e){return function(t){return t.matches(e)}}var vb=Array.prototype.find;function Bb(e){return function(){return vb.call(this.children,e)}}function Lb(){return this.firstElementChild}function Fb(e){return this.select(e==null?Lb:Bb(typeof e=="function"?e:Sf(e)))}var Ab=Array.prototype.filter;function Eb(){return Array.from(this.children)}function Mb(e){return function(){return Ab.call(this.children,e)}}function $b(e){return this.selectAll(e==null?Eb:Mb(typeof e=="function"?e:Sf(e)))}function Ob(e){typeof e!="function"&&(e=Tf(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var o=t[s],a=o.length,n=i[s]=[],l,c=0;c<a;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&n.push(l);return new je(i,this._parents)}function _f(e){return new Array(e.length)}function Db(){return new je(this._enter||this._groups.map(_f),this._parents)}function Mo(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Mo.prototype={constructor:Mo,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Ib(e){return function(){return e}}function Rb(e,t,r,i,s,o){for(var a=0,n,l=t.length,c=o.length;a<c;++a)(n=t[a])?(n.__data__=o[a],i[a]=n):r[a]=new Mo(e,o[a]);for(;a<l;++a)(n=t[a])&&(s[a]=n)}function Pb(e,t,r,i,s,o,a){var n,l,c=new Map,h=t.length,u=o.length,d=new Array(h),f;for(n=0;n<h;++n)(l=t[n])&&(d[n]=f=a.call(l,l.__data__,n,t)+"",c.has(f)?s[n]=l:c.set(f,l));for(n=0;n<u;++n)f=a.call(e,o[n],n,o)+"",(l=c.get(f))?(i[n]=l,l.__data__=o[n],c.delete(f)):r[n]=new Mo(e,o[n]);for(n=0;n<h;++n)(l=t[n])&&c.get(d[n])===l&&(s[n]=l)}function Nb(e){return e.__data__}function qb(e,t){if(!arguments.length)return Array.from(this,Nb);
vendor: 65,641 bytes, line 128
128var r=t?Pb:Rb,i=this._parents,s=this._groups;typeof e!="function"&&(e=Ib(e));for(var o=s.length,a=new Array(o),n=new Array(o),l=new Array(o),c=0;c<o;++c){var h=i[c],u=s[c],d=u.length,f=Wb(e.call(h,h&&h.__data__,c,i)),m=f.length,y=n[c]=new Array(m),C=a[c]=new Array(m),x=l[c]=new Array(d);r(h,u,y,C,x,f,t);for(var k=0,T=0,S,v;k<m;++k)if(S=y[k]){for(k>=T&&(T=k+1);!(v=C[T])&&++T<m;);S._next=v||null}}return a=new je(a,i),a._enter=n,a._exit=l,a}function Wb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function zb(){return new je(this._exit||this._groups.map(_f),this._parents)}function Hb(e,t,r){var i=this.enter(),s=this,o=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?o.remove():r(o),i&&s?i.merge(s).order():s}function Yb(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,s=r.length,o=i.length,a=Math.min(s,o),n=new Array(s),l=0;l<a;++l)for(var c=r[l],h=i[l],u=c.length,d=n[l]=new Array(u),f,m=0;m<u;++m)(f=c[m]||h[m])&&(d[m]=f);for(;l<s;++l)n[l]=r[l];return new je(n,this._parents)}function Ub(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],s=i.length-1,o=i[s],a;--s>=0;)(a=i[s])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function Gb(e){e||(e=Xb);function t(u,d){return u&&d?e(u.__data__,d.__data__):!u-!d}for(var r=this._groups,i=r.length,s=new Array(i),o=0;o<i;++o){for(var a=r[o],n=a.length,l=s[o]=new Array(n),c,h=0;h<n;++h)(c=a[h])&&(l[h]=c);l.sort(t)}return new je(s,this._parents).order()}function Xb(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function jb(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Vb(){return Array.from(this)}function Kb(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],s=0,o=i.length;s<o;++s){var a=i[s];if(a)return a}return null}function Zb(){let e=0;for(const t of this)++e;return e}function Qb(){return!this.node()}function Jb(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var s=t[r],o=0,a=s.length,n;o<a;++o)(n=s[o])&&e.call(n,n.__data__,o,s);return this}function t1(e){return function(){this.removeAttribute(e)}}function e1(e){return function(){this.removeAttributeNS(e.space,e.local)}}function r1(e,t){return function(){this.setAttribute(e,t)}}function i1(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function s1(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function o1(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function a1(e,t){var r=Jo(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?e1:t1:typeof t=="function"?r.local?o1:s1:r.local?i1:r1)(r,t))}function vf(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function n1(e){return function(){this.style.removeProperty(e)}}function l1(e,t,r){return function(){this.style.setProperty(e,t,r)}}function h1(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function c1(e,t,r){return arguments.length>1?this.each((t==null?n1:typeof t=="function"?h1:l1)(e,t,r??"")):Pi(this.node(),e)}function Pi(e,t){return e.style.getPropertyValue(t)||vf(e).getComputedStyle(e,null).getPropertyValue(t)}function u1(e){return function(){delete this[e]}}function d1(e,t){return function(){this[e]=t}}function f1(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function p1(e,t){return arguments.length>1?this.each((t==null?u1:typeof t=="function"?f1:d1)(e,t)):this.node()[e]}function Bf(e){return e.trim().split(/^|\s+/)}function _l(e){return e.classList||new Lf(e)}function Lf(e){this._node=e,this._names=Bf(e.getAttribute("class")||"")}Lf.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ff(e,t){for(var r=_l(e),i=-1,s=t.length;++i<s;)r.add(t[i])}function Af(e,t){for(var r=_l(e),i=-1,s=t.length;++i<s;)r.remove(t[i])}function g1(e){return function(){Ff(this,e)}}function m1(e){return function(){Af(this,e)}}function y1(e,t){return function(){(t.apply(this,arguments)?Ff:Af)(this,e)}}function x1(e,t){var r=Bf(e+"");if(arguments.length<2){for(var i=_l(this.node()),s=-1,o=r.length;++s<o;)if(!i.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?y1:t?g1:m1)(r,t))}function C1(){this.textContent=""}function b1(e){return function(){this.textContent=e}}function k1(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function w1(e){return arguments.length?this.each(e==null?C1:(typeof e=="function"?k1:b1)(e)):this.node().textContent}function T1(){this.innerHTML=""}function S1(e){return function(){this.innerHTML=e}}function _1(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function v1(e){return arguments.length?this.each(e==null?T1:(typeof e=="function"?_1:S1)(e)):this.node().innerHTML}function B1(){this.nextSibling&&this.parentNode.appendChild(this)}function L1(){return this.each(B1)}function F1(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function A1(){return this.each(F1)}function E1(e){var t=typeof e=="function"?e:kf(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function M1(){return null}function $1(e,t){var r=typeof e=="function"?e:kf(e),i=t==null?M1:typeof t=="function"?t:Sl(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function O1(){var e=this.parentNode;e&&e.removeChild(this)}function D1(){return this.each(O1)}function I1(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function R1(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function P1(e){return this.select(e?R1:I1)}function N1(e){return arguments.length?this.property("__data__",e):this.node().__data__}function q1(e){return function(t){e.call(this,t,this.__data__)}}function W1(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function z1(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,s=t.length,o;r<s;++r)o=t[r],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++i]=o;++i?t.length=i:delete this.__on}}}function H1(e,t,r){return function(){var i=this.__on,s,o=q1(t);if(i){for(var a=0,n=i.length;a<n;++a)if((s=i[a]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=o,s.options=r),s.value=t;return}}this.addEventListener(e.type,o,r),s={type:e.type,name:e.name,value:t,listener:o,options:r},i?i.push(s):this.__on=[s]}}function Y1(e,t,r){var i=W1(e+""),s,o=i.length,a;if(arguments.length<2){var n=this.node().__on;if(n){for(var l=0,c=n.length,h;l<c;++l)for(s=0,h=n[l];s<o;++s)if((a=i[s]).type===h.type&&a.name===h.name)return h.value}return}for(n=t?H1:z1,s=0;s<o;++s)this.each(n(i[s],t,r));return this}function Ef(e,t,r){var i=vf(e),s=i.CustomEvent;typeof s=="function"?s=new s(t,r):(s=i.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function U1(e,t){return function(){return Ef(this,e,t)}}function G1(e,t){return function(){return Ef(this,e,t.apply(this,arguments))}}function X1(e,t){return this.each((typeof t=="function"?G1:U1)(e,t))}function*j1(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],s=0,o=i.length,a;s<o;++s)(a=i[s])&&(yield a)}var V1=[null];function je(e,t){this._groups=e,this._parents=t}function $s(){return new je([[document.documentElement]],V1)}function K1(){return this}je.prototype=$s.prototype={constructor:je,select:kb,selectAll:_b,selectChild:Fb,selectChildren:$b,filter:Ob,data:qb,enter:Db,exit:zb,join:Hb,merge:Yb,selection:K1,order:Ub,sort:Gb,call:jb,nodes:Vb,node:Kb,size:Zb,empty:Qb,each:Jb,attr:a1,style:c1,property:p1,classed:x1,text:w1,html:v1,raise:L1,lower:A1,append:E1,insert:$1,remove:D1,clone:P1,datum:N1,on:Y1,dispatch:X1,[Symbol.iterator]:j1};const Mf=e=>()=>e;function Z1(e,t){return function(r){return e+r*t}}function Q1(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function J1(e){return(e=+e)==1?$f:function(t,r){return r-t?Q1(t,r,e):Mf(isNaN(t)?r:t)}}function $f(e,t){var r=t-e;return r?Z1(e,r):Mf(isNaN(e)?t:e)}const Ac=function e(t){var r=J1(t);function i(s,o){var a=r((s=nc(s)).r,(o=nc(o)).r),n=r(s.g,o.g),l=r(s.b,o.b),c=$f(s.opacity,o.opacity);return function(h){return s.r=a(h),s.g=n(h),s.b=l(h),s.opacity=c(h),s+""}}return i.gamma=e,i}(1);function Dr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Dn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ma=new RegExp(Dn.source,"g");function tk(e){return function(){return e}}function ek(e){return function(t){return e(t)+""}}function rk(e,t){var r=Dn.lastIndex=Ma.lastIndex=0,i,s,o,a=-1,n=[],l=[];for(e=e+"",t=t+"";(i=Dn.exec(e))&&(s=Ma.exec(t));)(o=s.index)>r&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(s=s[0])?n[a]?n[a]+=s:n[++a]=s:(n[++a]=null,l.push({i:a,x:Dr(i,s)})),r=Ma.lastIndex;return r<t.length&&(o=t.slice(r),n[a]?n[a]+=o:n[++a]=o),n.length<2?l[0]?ek(l[0].x):tk(t):(t=l.length,function(c){for(var h=0,u;h<t;++h)n[(u=l[h]).i]=u.x(c);return n.join("")})}var Ec=180/Math.PI,In={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Of(e,t,r,i,s,o){var a,n,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(n=Math.sqrt(r*r+i*i))&&(r/=n,i/=n,l/=n),e*i<t*r&&(e=-e,t=-t,l=-l,a=-a),{translateX:s,translateY:o,rotate:Math.atan2(t,e)*Ec,skewX:Math.atan(l)*Ec,scaleX:a,scaleY:n}}var Vs;function ik(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?In:Of(t.a,t.b,t.c,t.d,t.e,t.f)}function sk(e){return e==null||(Vs||(Vs=document.createElementNS("http://www.w3.org/2000/svg","g")),Vs.setAttribute("transform",e),!(e=Vs.transform.baseVal.consolidate()))?In:(e=e.matrix,Of(e.a,e.b,e.c,e.d,e.e,e.f))}function Df(e,t,r,i){function s(c){return c.length?c.pop()+" ":""}function o(c,h,u,d,f,m){if(c!==u||h!==d){var y=f.push("translate(",null,t,null,r);m.push({i:y-4,x:Dr(c,u)},{i:y-2,x:Dr(h,d)})}else(u||d)&&f.push("translate("+u+t+d+r)}function a(c,h,u,d){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),d.push({i:u.push(s(u)+"rotate(",null,i)-2,x:Dr(c,h)})):h&&u.push(s(u)+"rotate("+h+i)}function n(c,h,u,d){c!==h?d.push({i:u.push(s(u)+"skewX(",null,i)-2,x:Dr(c,h)}):h&&u.push(s(u)+"skewX("+h+i)}function l(c,h,u,d,f,m){if(c!==u||h!==d){var y=f.push(s(f)+"scale(",null,",",null,")");m.push({i:y-4,x:Dr(c,u)},{i:y-2,x:Dr(h,d)})}else(u!==1||d!==1)&&f.push(s(f)+"scale("+u+","+d+")")}return function(c,h){var u=[],d=[];return c=e(c),h=e(h),o(c.translateX,c.translateY,h.translateX,h.translateY,u,d),a(c.rotate,h.rotate,u,d),n(c.skewX,h.skewX,u,d),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,d),c=h=null,function(f){for(var m=-1,y=d.length,C;++m<y;)u[(C=d[m]).i]=C.x(f);return u.join("")}}}var ok=Df(ik,"px, ","px)","deg)"),ak=Df(sk,", ",")",")"),nk={value:()=>{}};function If(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new po(r)}function po(e){this._=e}function lk(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",s=r.indexOf(".");if(s>=0&&(i=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}po.prototype=If.prototype={constructor:po,on:function(e,t){var r=this._,i=lk(e+"",r),s,o=-1,a=i.length;if(arguments.length<2){for(;++o<a;)if((s=(e=i[o]).type)&&(s=hk(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<a;)if(s=(e=i[o]).type)r[s]=Mc(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Mc(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new po(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),i=0,s,o;i<s;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],i=0,s=o.length;i<s;++i)o[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],s=0,o=i.length;s<o;++s)i[s].value.apply(t,r)}};function hk(e,t){for(var r=0,i=e.length,s;r<i;++r)if((s=e[r]).name===t)return s.value}function Mc(e,t,r){for(var i=0,s=e.length;i<s;++i)if(e[i].name===t){e[i]=nk,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var Ni=0,ns=0,Qi=0,Rf=1e3,$o,ls,Oo=0,ti=0,ta=0,ks=typeof performance=="object"&&performance.now?performance:Date,Pf=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ea(){return ti||(Pf(ck),ti=ks.now()+ta)}function ck(){ti=0}function Do(){this._call=this._time=this._next=null}Do.prototype=vl.prototype={constructor:Do,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?ea():+r)+(t==null?0:+t),!this._next&&ls!==this&&(ls?ls._next=this:$o=this,ls=this),this._call=e,this._time=r,Rn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Rn())}};function vl(e,t,r){var i=new Do;return i.restart(e,t,r),i}function uk(){ea(),++Ni;for(var e=$o,t;e;)(t=ti-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ni}function $c(){ti=(Oo=ks.now())+ta,Ni=ns=0;try{uk()}finally{Ni=0,fk(),ti=0}}function dk(){var e=ks.now(),t=e-Oo;t>Rf&&(ta-=t,Oo=e)}function fk(){for(var e,t=$o,r,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:$o=r);ls=e,Rn(i)}function Rn(e){if(!Ni){ns&&(ns=clearTimeout(ns));var t=e-ti;t>24?(e<1/0&&(ns=setTimeout($c,e-ks.now()-ta)),Qi&&(Qi=clearInterval(Qi))):(Qi||(Oo=ks.now(),Qi=setInterval(dk,Rf)),Ni=1,Pf($c))}}function Io(e,t,r){var i=new Do;return t=t==null?0:+t,i.restart(s=>{i.stop(),e(s+t)},t,r),i}var pk=If("start","end","cancel","interrupt"),gk=[],Nf=0,Oc=1,Pn=2,go=3,Dc=4,Nn=5,mo=6;function ra(e,t,r,i,s,o){var a=e.__transition;if(!a)e.__transition={};else if(r in a)return;mk(e,r,{name:t,index:i,group:s,on:pk,tween:gk,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Nf})}function Bl(e,t){var r=Ke(e,t);if(r.state>Nf)throw new Error("too late; already scheduled");return r}function fr(e,t){var r=Ke(e,t);if(r.state>go)throw new Error("too late; already running");return r}function Ke(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function mk(e,t,r){var i=e.__transition,s;i[t]=r,r.timer=vl(o,0,r.time);function o(c){r.state=Oc,r.timer.restart(a,r.delay,r.time),r.delay<=c&&a(c-r.delay)}function a(c){var h,u,d,f;if(r.state!==Oc)return l();for(h in i)if(f=i[h],f.name===r.name){if(f.state===go)return Io(a);f.state===Dc?(f.state=mo,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[h]):+h<t&&(f.state=mo,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[h])}if(Io(function(){r.state===go&&(r.state=Dc,r.timer.restart(n,r.delay,r.time),n(c))}),r.state=Pn,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Pn){for(r.state=go,s=new Array(d=r.tween.length),h=0,u=-1;h<d;++h)(f=r.tween[h].value.call(e,e.__data__,r.index,r.group))&&(s[++u]=f);s.length=u+1}}function n(c){for(var h=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=Nn,1),u=-1,d=s.length;++u<d;)s[u].call(e,h);r.state===Nn&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=mo,r.timer.stop(),delete i[t];for(var c in i)return;delete e.__transition}}function yk(e,t){var r=e.__transition,i,s,o=!0,a;if(r){t=t==null?null:t+"";for(a in r){if((i=r[a]).name!==t){o=!1;continue}s=i.state>Pn&&i.state<Nn,i.state=mo,i.timer.stop(),i.on.call(s?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[a]}o&&delete e.__transition}}function xk(e){return this.each(function(){yk(this,e)})}function Ck(e,t){var r,i;return function(){var s=fr(this,e),o=s.tween;if(o!==r){i=r=o;for(var a=0,n=i.length;a<n;++a)if(i[a].name===t){i=i.slice(),i.splice(a,1);break}}s.tween=i}}function bk(e,t,r){var i,s;if(typeof r!="function")throw new Error;return function(){var o=fr(this,e),a=o.tween;if(a!==i){s=(i=a).slice();for(var n={name:t,value:r},l=0,c=s.length;l<c;++l)if(s[l].name===t){s[l]=n;break}l===c&&s.push(n)}o.tween=s}}function kk(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=Ke(this.node(),r).tween,s=0,o=i.length,a;s<o;++s)if((a=i[s]).name===e)return a.value;return null}return this.each((t==null?Ck:bk)(r,e,t))}function Ll(e,t,r){var i=e._id;return e.each(function(){var s=fr(this,i);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Ke(s,i).value[t]}}function qf(e,t){var r;return(typeof t=="number"?Dr:t instanceof lc?Ac:(r=lc(t))?(t=r,Ac):rk)(e,t)}function wk(e){return function(){this.removeAttribute(e)}}function Tk(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Sk(e,t,r){var i,s=r+"",o;return function(){var a=this.getAttribute(e);return a===s?null:a===i?o:o=t(i=a,r)}}function _k(e,t,r){var i,s=r+"",o;return function(){var a=this.getAttributeNS(e.space,e.local);return a===s?null:a===i?o:o=t(i=a,r)}}function vk(e,t,r){var i,s,o;return function(){var a,n=r(this),l;return n==null?void this.removeAttribute(e):(a=this.getAttribute(e),l=n+"",a===l?null:a===i&&l===s?o:(s=l,o=t(i=a,n)))}}function Bk(e,t,r){var i,s,o;return function(){var a,n=r(this),l;return n==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),l=n+"",a===l?null:a===i&&l===s?o:(s=l,o=t(i=a,n)))}}function Lk(e,t){var r=Jo(e),i=r==="transform"?ak:qf;return this.attrTween(e,typeof t=="function"?(r.local?Bk:vk)(r,i,Ll(this,"attr."+e,t)):t==null?(r.local?Tk:wk)(r):(r.local?_k:Sk)(r,i,t))}function Fk(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Ak(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Ek(e,t){var r,i;function s(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&Ak(e,o)),r}return s._value=t,s}function Mk(e,t){var r,i;function s(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&Fk(e,o)),r}return s._value=t,s}function $k(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=Jo(e);return this.tween(r,(i.local?Ek:Mk)(i,t))}function Ok(e,t){return function(){Bl(this,e).delay=+t.apply(this,arguments)}}function Dk(e,t){return t=+t,function(){Bl(this,e).delay=t}}function Ik(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Ok:Dk)(t,e)):Ke(this.node(),t).delay}function Rk(e,t){return function(){fr(this,e).duration=+t.apply(this,arguments)}}function Pk(e,t){return t=+t,function(){fr(this,e).duration=t}}function Nk(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Rk:Pk)(t,e)):Ke(this.node(),t).duration}function qk(e,t){if(typeof t!="function")throw new Error;return function(){fr(this,e).ease=t}}function Wk(e){var t=this._id;return arguments.length?this.each(qk(t,e)):Ke(this.node(),t).ease}function zk(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;fr(this,e).ease=r}}function Hk(e){if(typeof e!="function")throw new Error;return this.each(zk(this._id,e))}function Yk(e){typeof e!="function"&&(e=Tf(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var o=t[s],a=o.length,n=i[s]=[],l,c=0;c<a;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&n.push(l);return new Br(i,this._parents,this._name,this._id)}function Uk(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,s=r.length,o=Math.min(i,s),a=new Array(i),n=0;n<o;++n)for(var l=t[n],c=r[n],h=l.length,u=a[n]=new Array(h),d,f=0;f<h;++f)(d=l[f]||c[f])&&(u[f]=d);for(;n<i;++n)a[n]=t[n];return new Br(a,this._parents,this._name,this._id)}function Gk(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Xk(e,t,r){var i,s,o=Gk(t)?Bl:fr;return function(){var a=o(this,e),n=a.on;n!==i&&(s=(i=n).copy()).on(t,r),a.on=s}}function jk(e,t){var r=this._id;return arguments.length<2?Ke(this.node(),r).on.on(e):this.each(Xk(r,e,t))}function Vk(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Kk(){return this.on("end.remove",Vk(this._id))}function Zk(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Sl(e));for(var i=this._groups,s=i.length,o=new Array(s),a=0;a<s;++a)for(var n=i[a],l=n.length,c=o[a]=new Array(l),h,u,d=0;d<l;++d)(h=n[d])&&(u=e.call(h,h.__data__,d,n))&&("__data__"in h&&(u.__data__=h.__data__),c[d]=u,ra(c[d],t,r,d,c,Ke(h,r)));return new Br(o,this._parents,t,r)}function Qk(e){var t=this._name,r=this._id;typeof e!="function"&&(e=wf(e));for(var i=this._groups,s=i.length,o=[],a=[],n=0;n<s;++n)for(var l=i[n],c=l.length,h,u=0;u<c;++u)if(h=l[u]){for(var d=e.call(h,h.__data__,u,l),f,m=Ke(h,r),y=0,C=d.length;y<C;++y)(f=d[y])&&ra(f,t,r,y,d,m);o.push(d),a.push(h)}return new Br(o,a,t,r)}var Jk=$s.prototype.constructor;function t2(){return new Jk(this._groups,this._parents)}function e2(e,t){var r,i,s;return function(){var o=Pi(this,e),a=(this.style.removeProperty(e),Pi(this,e));return o===a?null:o===r&&a===i?s:s=t(r=o,i=a)}}function Wf(e){return function(){this.style.removeProperty(e)}}function r2(e,t,r){var i,s=r+"",o;return function(){var a=Pi(this,e);return a===s?null:a===i?o:o=t(i=a,r)}}function i2(e,t,r){var i,s,o;return function(){var a=Pi(this,e),n=r(this),l=n+"";return n==null&&(l=n=(this.style.removeProperty(e),Pi(this,e))),a===l?null:a===i&&l===s?o:(s=l,o=t(i=a,n))}}function s2(e,t){var r,i,s,o="style."+t,a="end."+o,n;return function(){var l=fr(this,e),c=l.on,h=l.value[o]==null?n||(n=Wf(t)):void 0;(c!==r||s!==h)&&(i=(r=c).copy()).on(a,s=h),l.on=i}}function o2(e,t,r){var i=(e+="")=="transform"?ok:qf;return t==null?this.styleTween(e,e2(e,i)).on("end.style."+e,Wf(e)):typeof t=="function"?this.styleTween(e,i2(e,i,Ll(this,"style."+e,t))).each(s2(this._id,e)):this.styleTween(e,r2(e,i,t),r).on("end.style."+e,null)}function a2(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function n2(e,t,r){var i,s;function o(){var a=t.apply(this,arguments);return a!==s&&(i=(s=a)&&a2(e,a,r)),i}return o._value=t,o}function l2(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,n2(e,t,r??""))}function h2(e){return function(){this.textContent=e}}function c2(e){return function(){var t=e(this);this.textContent=t??""}}function u2(e){return this.tween("text",typeof e=="function"?c2(Ll(this,"text",e)):h2(e==null?"":e+""))}function d2(e){return function(t){this.textContent=e.call(this,t)}}function f2(e){var t,r;function i(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&d2(s)),t}return i._value=e,i}function p2(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,f2(e))}function g2(){for(var e=this._name,t=this._id,r=zf(),i=this._groups,s=i.length,o=0;o<s;++o)for(var a=i[o],n=a.length,l,c=0;c<n;++c)if(l=a[c]){var h=Ke(l,t);ra(l,e,r,c,a,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Br(i,this._parents,e,r)}function m2(){var e,t,r=this,i=r._id,s=r.size();return new Promise(function(o,a){var n={value:a},l={value:function(){--s===0&&o()}};r.each(function(){var c=fr(this,i),h=c.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(n),t._.interrupt.push(n),t._.end.push(l)),c.on=t}),s===0&&o()})}var y2=0;function Br(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function zf(){return++y2}var kr=$s.prototype;Br.prototype={constructor:Br,select:Zk,selectAll:Qk,selectChild:kr.selectChild,selectChildren:kr.selectChildren,filter:Yk,merge:Uk,selection:t2,transition:g2,call:kr.call,nodes:kr.nodes,node:kr.node,size:kr.size,empty:kr.empty,each:kr.each,on:jk,attr:Lk,attrTween:$k,style:o2,styleTween:l2,text:u2,textTween:p2,remove:Kk,tween:kk,delay:Ik,duration:Nk,ease:Wk,easeVarying:Hk,end:m2,[Symbol.iterator]:kr[Symbol.iterator]};function Hf(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var x2={time:null,delay:0,duration:250,ease:Hf};function C2(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function b2(e){var t,r;e instanceof Br?(t=e._id,e=e._name):(t=zf(),(r=x2).time=ea(),e=e==null?null:e+"");for(var i=this._groups,s=i.length,o=0;o<s;++o)for(var a=i[o],n=a.length,l,c=0;c<n;++c)(l=a[c])&&ra(l,e,t,c,a,r||C2(l,t));return new Br(i,this._parents,e,t)}$s.prototype.interrupt=xk;$s.prototype.transition=b2;var qn="http://www.w3.org/1999/xhtml";const Ic={svg:"http://www.w3.org/2000/svg",xhtml:qn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ia(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Ic.hasOwnProperty(t)?{space:Ic[t],local:e}:e}function k2(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===qn&&t.documentElement.namespaceURI===qn?t.createElement(e):t.createElementNS(r,e)}}function w2(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Yf(e){var t=ia(e);return(t.local?w2:k2)(t)}function T2(){}function Fl(e){return e==null?T2:function(){return this.querySelector(e)}}function S2(e){typeof e!="function"&&(e=Fl(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var o=t[s],a=o.length,n=i[s]=new Array(a),l,c,h=0;h<a;++h)(l=o[h])&&(c=e.call(l,l.__data__,h,o))&&("__data__"in l&&(c.__data__=l.__data__),n[h]=c);return new Pe(i,this._parents)}function _2(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function v2(){return[]}function Uf(e){return e==null?v2:function(){return this.querySelectorAll(e)}}function B2(e){return function(){return _2(e.apply(this,arguments))}}function L2(e){typeof e=="function"?e=B2(e):e=Uf(e);for(var t=this._groups,r=t.length,i=[],s=[],o=0;o<r;++o)for(var a=t[o],n=a.length,l,c=0;c<n;++c)(l=a[c])&&(i.push(e.call(l,l.__data__,c,a)),s.push(l));return new Pe(i,s)}function Gf(e){return function(){return this.matches(e)}}function Xf(e){return function(t){return t.matches(e)}}var F2=Array.prototype.find;function A2(e){return function(){return F2.call(this.children,e)}}function E2(){return this.firstElementChild}function M2(e){return this.select(e==null?E2:A2(typeof e=="function"?e:Xf(e)))}var $2=Array.prototype.filter;function O2(){return Array.from(this.children)}function D2(e){return function(){return $2.call(this.children,e)}}function I2(e){return this.selectAll(e==null?O2:D2(typeof e=="function"?e:Xf(e)))}function R2(e){typeof e!="function"&&(e=Gf(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var o=t[s],a=o.length,n=i[s]=[],l,c=0;c<a;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&n.push(l);return new Pe(i,this._parents)}function jf(e){return new Array(e.length)}function P2(){return new Pe(this._enter||this._groups.map(jf),this._parents)}function Ro(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ro.prototype={constructor:Ro,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function N2(e){return function(){return e}}function q2(e,t,r,i,s,o){for(var a=0,n,l=t.length,c=o.length;a<c;++a)(n=t[a])?(n.__data__=o[a],i[a]=n):r[a]=new Ro(e,o[a]);for(;a<l;++a)(n=t[a])&&(s[a]=n)}function W2(e,t,r,i,s,o,a){var n,l,c=new Map,h=t.length,u=o.length,d=new Array(h),f;for(n=0;n<h;++n)(l=t[n])&&(d[n]=f=a.call(l,l.__data__,n,t)+"",c.has(f)?s[n]=l:c.set(f,l));for(n=0;n<u;++n)f=a.call(e,o[n],n,o)+"",(l=c.get(f))?(i[n]=l,l.__data__=o[n],c.delete(f)):r[n]=new Ro(e,o[n]);for(n=0;n<h;++n)(l=t[n])&&c.get(d[n])===l&&(s[n]=l)}function z2(e){return e.__data__}function H2(e,t){if(!arguments.length)return Array.from(this,z2);var r=t?W2:q2,i=this._parents,s=this._groups;typeof e!="function"&&(e=N2(e));for(var o=s.length,a=new Array(o),n=new Array(o),l=new Array(o),c=0;c<o;++c){var h=i[c],u=s[c],d=u.length,f=Y2(e.call(h,h&&h.__data__,c,i)),m=f.length,y=n[c]=new Array(m),C=a[c]=new Array(m),x=l[c]=new Array(d);r(h,u,y,C,x,f,t);for(var k=0,T=0,S,v;k<m;++k)if(S=y[k]){for(k>=T&&(T=k+1);!(v=C[T])&&++T<m;);S._next=v||null}}return a=new Pe(a,i),a._enter=n,a._exit=l,a}function Y2(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function U2(){return new Pe(this._exit||this._groups.map(jf),this._parents)}function G2(e,t,r){var i=this.enter(),s=this,o=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?o.remove():r(o),i&&s?i.merge(s).order():s}function X2(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,s=r.length,o=i.length,a=Math.min(s,o),n=new Array(s),l=0;l<a;++l)for(var c=r[l],h=i[l],u=c.length,d=n[l]=new Array(u),f,m=0;m<u;++m)(f=c[m]||h[m])&&(d[m]=f);for(;l<s;++l)n[l]=r[l];return new Pe(n,this._parents)}function j2(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],s=i.length-1,o=i[s],a;--s>=0;)(a=i[s])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function V2(e){e||(e=K2);function t(u,d){return u&&d?e(u.__data__,d.__data__):!u-!d}for(var r=this._groups,i=r.length,s=new Array(i),o=0;o<i;++o){for(var a=r[o],n=a.length,l=s[o]=new Array(n),c,h=0;h<n;++h)(c=a[h])&&(l[h]=c);l.sort(t)}return new Pe(s,this._parents).order()}function K2(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Z2(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Q2(){return Array.from(this)}function J2(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],s=0,o=i.length;s<o;++s){var a=i[s];if(a)return a}return null}function tw(){let e=0;for(const t of this)++e;return e}function ew(){return!this.node()}function rw(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var s=t[r],o=0,a=s.length,n;o<a;++o)(n=s[o])&&e.call(n,n.__data__,o,s);return this}function iw(e){return function(){this.removeAttribute(e)}}function sw(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ow(e,t){return function(){this.setAttribute(e,t)}}function aw(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function nw(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function lw(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function hw(e,t){var r=ia(e);if(arguments.length<2){var i=this.node();return r.local?i.getAttributeNS(r.space,r.local):i.getAttribute(r)}return this.each((t==null?r.local?sw:iw:typeof t=="function"?r.local?lw:nw:r.local?aw:ow)(r,t))}function Vf(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function cw(e){return function(){this.style.removeProperty(e)}}function uw(e,t,r){return function(){this.style.setProperty(e,t,r)}}function dw(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function fw(e,t,r){return arguments.length>1?this.each((t==null?cw:typeof t=="function"?dw:uw)(e,t,r??"")):qi(this.node(),e)}function qi(e,t){return e.style.getPropertyValue(t)||Vf(e).getComputedStyle(e,null).getPropertyValue(t)}function pw(e){return function(){delete this[e]}}function gw(e,t){return function(){this[e]=t}}function mw(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function yw(e,t){return arguments.length>1?this.each((t==null?pw:typeof t=="function"?mw:gw)(e,t)):this.node()[e]}function Kf(e){return e.trim().split(/^|\s+/)}function Al(e){return e.classList||new Zf(e)}function Zf(e){this._node=e,this._names=Kf(e.getAttribute("class")||"")}Zf.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Qf(e,t){for(var r=Al(e),i=-1,s=t.length;++i<s;)r.add(t[i])}function Jf(e,t){for(var r=Al(e),i=-1,s=t.length;++i<s;)r.remove(t[i])}function xw(e){return function(){Qf(this,e)}}function Cw(e){return function(){Jf(this,e)}}function bw(e,t){return function(){(t.apply(this,arguments)?Qf:Jf)(this,e)}}function kw(e,t){var r=Kf(e+"");if(arguments.length<2){for(var i=Al(this.node()),s=-1,o=r.length;++s<o;)if(!i.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?bw:t?xw:Cw)(r,t))}function ww(){this.textContent=""}function Tw(e){return function(){this.textContent=e}}function Sw(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function _w(e){return arguments.length?this.each(e==null?ww:(typeof e=="function"?Sw:Tw)(e)):this.node().textContent}function vw(){this.innerHTML=""}function Bw(e){return function(){this.innerHTML=e}}function Lw(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Fw(e){return arguments.length?this.each(e==null?vw:(typeof e=="function"?Lw:Bw)(e)):this.node().innerHTML}function Aw(){this.nextSibling&&this.parentNode.appendChild(this)}function Ew(){return this.each(Aw)}function Mw(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function $w(){return this.each(Mw)}function Ow(e){var t=typeof e=="function"?e:Yf(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Dw(){return null}function Iw(e,t){var r=typeof e=="function"?e:Yf(e),i=t==null?Dw:typeof t=="function"?t:Fl(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function Rw(){var e=this.parentNode;e&&e.removeChild(this)}function Pw(){return this.each(Rw)}function Nw(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function qw(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ww(e){return this.select(e?qw:Nw)}function zw(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Hw(e){return function(t){e.call(this,t,this.__data__)}}function Yw(e){return e.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{type:t,name:r}})}function Uw(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,s=t.length,o;r<s;++r)o=t[r],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++i]=o;++i?t.length=i:delete this.__on}}}function Gw(e,t,r){return function(){var i=this.__on,s,o=Hw(t);if(i){for(var a=0,n=i.length;a<n;++a)if((s=i[a]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=o,s.options=r),s.value=t;return}}this.addEventListener(e.type,o,r),s={type:e.type,name:e.name,value:t,listener:o,options:r},i?i.push(s):this.__on=[s]}}function Xw(e,t,r){var i=Yw(e+""),s,o=i.length,a;if(arguments.length<2){var n=this.node().__on;if(n){for(var l=0,c=n.length,h;l<c;++l)for(s=0,h=n[l];s<o;++s)if((a=i[s]).type===h.type&&a.name===h.name)return h.value}return}for(n=t?Gw:Uw,s=0;s<o;++s)this.each(n(i[s],t,r));return this}function tp(e,t,r){var i=Vf(e),s=i.CustomEvent;typeof s=="function"?s=new s(t,r):(s=i.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function jw(e,t){return function(){return tp(this,e,t)}}function Vw(e,t){return function(){return tp(this,e,t.apply(this,arguments))}}function Kw(e,t){return this.each((typeof t=="function"?Vw:jw)(e,t))}function*Zw(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],s=0,o=i.length,a;s<o;++s)(a=i[s])&&(yield a)}var ep=[null];function Pe(e,t){this._groups=e,this._parents=t}function Os(){return new Pe([[document.documentElement]],ep)}function Qw(){return this}Pe.prototype=Os.prototype={constructor:Pe,select:S2,selectAll:L2,selectChild:M2,selectChildren:I2,filter:R2,data:H2,enter:P2,exit:U2,join:G2,merge:X2,selection:Qw,order:j2,sort:V2,call:Z2,nodes:Q2,node:J2,size:tw,empty:ew,each:rw,attr:hw,style:fw,property:yw,classed:kw,text:_w,html:Fw,raise:Ew,lower:$w,append:Ow,insert:Iw,remove:Pw,clone:Ww,datum:zw,on:Xw,dispatch:Kw,[Symbol.iterator]:Zw};function Ot(e){return typeof e=="string"?new Pe([[document.querySelector(e)]],[document.documentElement]):new Pe([[e]],ep)}function El(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function rp(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function Ds(){}var ws=.7,Po=1/ws,Ci="\\s*([+-]?\\d+)\\s*",Ts="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",nr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jw=/^#([0-9a-f]{3,8})$/,tT=new RegExp("^rgb\\("+[Ci,Ci,Ci]+"\\)$"),eT=new RegExp("^rgb\\("+[nr,nr,nr]+"\\)$"),rT=new RegExp("^rgba\\("+[Ci,Ci,Ci,Ts]+"\\)$"),iT=new RegExp("^rgba\\("+[nr,nr,nr,Ts]+"\\)$"),sT=new RegExp("^hsl\\("+[Ts,nr,nr]+"\\)$"),oT=new RegExp("^hsla\\("+[Ts,nr,nr,Ts]+"\\)$"),Rc={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};El(Ds,Ml,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Pc,formatHex:Pc,formatHsl:aT,formatRgb:Nc,toString:Nc});function Pc(){return this.rgb().formatHex()}function aT(){return ip(this).formatHsl()}function Nc(){return this.rgb().formatRgb()}function Ml(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Jw.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?qc(t):r===3?new De(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ks(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ks(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=tT.exec(e))?new De(t[1],t[2],t[3],1):(t=eT.exec(e))?new De(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=rT.exec(e))?Ks(t[1],t[2],t[3],t[4]):(t=iT.exec(e))?Ks(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=sT.exec(e))?Hc(t[1],t[2]/100,t[3]/100,1):(t=oT.exec(e))?Hc(t[1],t[2]/100,t[3]/100,t[4]):Rc.hasOwnProperty(e)?qc(Rc[e]):e==="transparent"?new De(NaN,NaN,NaN,0):null}function qc(e){return new De(e>>16&255,e>>8&255,e&255,1)}function Ks(e,t,r,i){return i<=0&&(e=t=r=NaN),new De(e,t,r,i)}function nT(e){return e instanceof Ds||(e=Ml(e)),e?(e=e.rgb(),new De(e.r,e.g,e.b,e.opacity)):new De}function Wn(e,t,r,i){return arguments.length===1?nT(e):new De(e,t,r,i??1)}function De(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}El(De,Wn,rp(Ds,{brighter:function(e){return e=e==null?Po:Math.pow(Po,e),new De(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?ws:Math.pow(ws,e),new De(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:Wc,formatHex:Wc,formatRgb:zc,toString:zc}));function Wc(){return"#"+$a(this.r)+$a(this.g)+$a(this.b)}function zc(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function $a(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function Hc(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new sr(e,t,r,i)}function ip(e){if(e instanceof sr)return new sr(e.h,e.s,e.l,e.opacity);if(e instanceof Ds||(e=Ml(e)),!e)return new sr;if(e instanceof sr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,s=Math.min(t,r,i),o=Math.max(t,r,i),a=NaN,n=o-s,l=(o+s)/2;return n?(t===o?a=(r-i)/n+(r<i)*6:r===o?a=(i-t)/n+2:a=(t-r)/n+4,n/=l<.5?o+s:2-o-s,a*=60):n=l>0&&l<1?0:a,new sr(a,n,l,e.opacity)}function lT(e,t,r,i){return arguments.length===1?ip(e):new sr(e,t,r,i??1)}function sr(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}El(sr,lT,rp(Ds,{brighter:function(e){return e=e==null?Po:Math.pow(Po,e),new sr(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?ws:Math.pow(ws,e),new sr(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,s=2*r-i;return new De(Oa(e>=240?e-240:e+120,s,i),Oa(e,s,i),Oa(e<120?e+240:e-120,s,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function Oa(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const $l=e=>()=>e;function sp(e,t){return function(r){return e+r*t}}function hT(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(i){return Math.pow(e+i*t,r)}}function e3(e,t){var r=t-e;return r?sp(e,r>180||r<-180?r-360*Math.round(r/360):r):$l(isNaN(e)?t:e)}function cT(e){return(e=+e)==1?op:function(t,r){return r-t?hT(t,r,e):$l(isNaN(t)?r:t)}}function op(e,t){var r=t-e;return r?sp(e,r):$l(isNaN(e)?t:e)}const Yc=function e(t){var r=cT(t);function i(s,o){var a=r((s=Wn(s)).r,(o=Wn(o)).r),n=r(s.g,o.g),l=r(s.b,o.b),c=op(s.opacity,o.opacity);return function(h){return s.r=a(h),s.g=n(h),s.b=l(h),s.opacity=c(h),s+""}}return i.gamma=e,i}(1);function Ir(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var zn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Da=new RegExp(zn.source,"g");function uT(e){return function(){return e}}function dT(e){return function(t){return e(t)+""}}function fT(e,t){var r=zn.lastIndex=Da.lastIndex=0,i,s,o,a=-1,n=[],l=[];for(e=e+"",t=t+"";(i=zn.exec(e))&&(s=Da.exec(t));)(o=s.index)>r&&(o=t.slice(r,o),n[a]?n[a]+=o:n[++a]=o),(i=i[0])===(s=s[0])?n[a]?n[a]+=s:n[++a]=s:(n[++a]=null,l.push({i:a,x:Ir(i,s)})),r=Da.lastIndex;return r<t.length&&(o=t.slice(r),n[a]?n[a]+=o:n[++a]=o),n.length<2?l[0]?dT(l[0].x):uT(t):(t=l.length,function(c){for(var h=0,u;h<t;++h)n[(u=l[h]).i]=u.x(c);return n.join("")})}var Uc=180/Math.PI,Hn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ap(e,t,r,i,s,o){var a,n,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(n=Math.sqrt(r*r+i*i))&&(r/=n,i/=n,l/=n),e*i<t*r&&(e=-e,t=-t,l=-l,a=-a),{translateX:s,translateY:o,rotate:Math.atan2(t,e)*Uc,skewX:Math.atan(l)*Uc,scaleX:a,scaleY:n}}var Zs;function pT(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Hn:ap(t.a,t.b,t.c,t.d,t.e,t.f)}function gT(e){return e==null||(Zs||(Zs=document.createElementNS("http://www.w3.org/2000/svg","g")),Zs.setAttribute("transform",e),!(e=Zs.transform.baseVal.consolidate()))?Hn:(e=e.matrix,ap(e.a,e.b,e.c,e.d,e.e,e.f))}function np(e,t,r,i){function s(c){return c.length?c.pop()+" ":""}function o(c,h,u,d,f,m){if(c!==u||h!==d){var y=f.push("translate(",null,t,null,r);m.push({i:y-4,x:Ir(c,u)},{i:y-2,x:Ir(h,d)})}else(u||d)&&f.push("translate("+u+t+d+r)}function a(c,h,u,d){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),d.push({i:u.push(s(u)+"rotate(",null,i)-2,x:Ir(c,h)})):h&&u.push(s(u)+"rotate("+h+i)}function n(c,h,u,d){c!==h?d.push({i:u.push(s(u)+"skewX(",null,i)-2,x:Ir(c,h)}):h&&u.push(s(u)+"skewX("+h+i)}function l(c,h,u,d,f,m){if(c!==u||h!==d){var y=f.push(s(f)+"scale(",null,",",null,")");m.push({i:y-4,x:Ir(c,u)},{i:y-2,x:Ir(h,d)})}else(u!==1||d!==1)&&f.push(s(f)+"scale("+u+","+d+")")}return function(c,h){var u=[],d=[];return c=e(c),h=e(h),o(c.translateX,c.translateY,h.translateX,h.translateY,u,d),a(c.rotate,h.rotate,u,d),n(c.skewX,h.skewX,u,d),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,d),c=h=null,function(f){for(var m=-1,y=d.length,C;++m<y;)u[(C=d[m]).i]=C.x(f);return u.join("")}}}var mT=np(pT,"px, ","px)","deg)"),yT=np(gT,", ",")",")"),xT={value:()=>{}};function lp(){for(var e=0,t=arguments.length,r={},i;e<t;++e){if(!(i=arguments[e]+"")||i in r||/[\s.]/.test(i))throw new Error("illegal type: "+i);r[i]=[]}return new yo(r)}function yo(e){this._=e}function CT(e,t){return e.trim().split(/^|\s+/).map(function(r){var i="",s=r.indexOf(".");if(s>=0&&(i=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:i}})}yo.prototype=lp.prototype={constructor:yo,on:function(e,t){var r=this._,i=CT(e+"",r),s,o=-1,a=i.length;if(arguments.length<2){for(;++o<a;)if((s=(e=i[o]).type)&&(s=bT(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<a;)if(s=(e=i[o]).type)r[s]=Gc(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Gc(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new yo(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),i=0,s,o;i<s;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],i=0,s=o.length;i<s;++i)o[i].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],s=0,o=i.length;s<o;++s)i[s].value.apply(t,r)}};function bT(e,t){for(var r=0,i=e.length,s;r<i;++r)if((s=e[r]).name===t)return s.value}function Gc(e,t,r){for(var i=0,s=e.length;i<s;++i)if(e[i].name===t){e[i]=xT,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var kT=lp("start","end","cancel","interrupt"),wT=[],hp=0,Xc=1,Yn=2,xo=3,jc=4,Un=5,Co=6;function sa(e,t,r,i,s,o){var a=e.__transition;if(!a)e.__transition={};else if(r in a)return;TT(e,r,{name:t,index:i,group:s,on:kT,tween:wT,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:hp})}function Ol(e,t){var r=Ze(e,t);if(r.state>hp)throw new Error("too late; already scheduled");return r}function pr(e,t){var r=Ze(e,t);if(r.state>xo)throw new Error("too late; already running");return r}function Ze(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function TT(e,t,r){var i=e.__transition,s;i[t]=r,r.timer=vl(o,0,r.time);function o(c){r.state=Xc,r.timer.restart(a,r.delay,r.time),r.delay<=c&&a(c-r.delay)}function a(c){var h,u,d,f;if(r.state!==Xc)return l();for(h in i)if(f=i[h],f.name===r.name){if(f.state===xo)return Io(a);f.state===jc?(f.state=Co,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete i[h]):+h<t&&(f.state=Co,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete i[h])}if(Io(function(){r.state===xo&&(r.state=jc,r.timer.restart(n,r.delay,r.time),n(c))}),r.state=Yn,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Yn){for(r.state=xo,s=new Array(d=r.tween.length),h=0,u=-1;h<d;++h)(f=r.tween[h].value.call(e,e.__data__,r.index,r.group))&&(s[++u]=f);s.length=u+1}}function n(c){for(var h=c<r.duration?r.ease.call(null,c/r.duration):(r.timer.restart(l),r.state=Un,1),u=-1,d=s.length;++u<d;)s[u].call(e,h);r.state===Un&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=Co,r.timer.stop(),delete i[t];for(var c in i)return;delete e.__transition}}function ST(e,t){var r=e.__transition,i,s,o=!0,a;if(r){t=t==null?null:t+"";for(a in r){if((i=r[a]).name!==t){o=!1;continue}s=i.state>Yn&&i.state<Un,i.state=Co,i.timer.stop(),i.on.call(s?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[a]}o&&delete e.__transition}}function _T(e){return this.each(function(){ST(this,e)})}function vT(e,t){var r,i;return function(){var s=pr(this,e),o=s.tween;if(o!==r){i=r=o;for(var a=0,n=i.length;a<n;++a)if(i[a].name===t){i=i.slice(),i.splice(a,1);break}}s.tween=i}}function BT(e,t,r){var i,s;if(typeof r!="function")throw new Error;return function(){var o=pr(this,e),a=o.tween;if(a!==i){s=(i=a).slice();for(var n={name:t,value:r},l=0,c=s.length;l<c;++l)if(s[l].name===t){s[l]=n;break}l===c&&s.push(n)}o.tween=s}}function LT(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=Ze(this.node(),r).tween,s=0,o=i.length,a;s<o;++s)if((a=i[s]).name===e)return a.value;return null}return this.each((t==null?vT:BT)(r,e,t))}function Dl(e,t,r){var i=e._id;return e.each(function(){var s=pr(this,i);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Ze(s,i).value[t]}}function Il(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function cp(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function Is(){}var Ss=.7,No=1/Ss,bi="\\s*([+-]?\\d+)\\s*",_s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",lr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",FT=/^#([0-9a-f]{3,8})$/,AT=new RegExp("^rgb\\("+[bi,bi,bi]+"\\)$"),ET=new RegExp("^rgb\\("+[lr,lr,lr]+"\\)$"),MT=new RegExp("^rgba\\("+[bi,bi,bi,_s]+"\\)$"),$T=new RegExp("^rgba\\("+[lr,lr,lr,_s]+"\\)$"),OT=new RegExp("^hsl\\("+[_s,lr,lr]+"\\)$"),DT=new RegExp("^hsla\\("+[_s,lr,lr,_s]+"\\)$"),Vc={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};Il(Is,vs,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Kc,formatHex:Kc,formatHsl:IT,formatRgb:Zc,toString:Zc});function Kc(){return this.rgb().formatHex()}function IT(){return up(this).formatHsl()}function Zc(){return this.rgb().formatRgb()}function vs(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=FT.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Qc(t):r===3?new Ie(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Qs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Qs(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=AT.exec(e))?new Ie(t[1],t[2],t[3],1):(t=ET.exec(e))?new Ie(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=MT.exec(e))?Qs(t[1],t[2],t[3],t[4]):(t=$T.exec(e))?Qs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=OT.exec(e))?eu(t[1],t[2]/100,t[3]/100,1):(t=DT.exec(e))?eu(t[1],t[2]/100,t[3]/100,t[4]):Vc.hasOwnProperty(e)?Qc(Vc[e]):e==="transparent"?new Ie(NaN,NaN,NaN,0):null}function Qc(e){return new Ie(e>>16&255,e>>8&255,e&255,1)}function Qs(e,t,r,i){return i<=0&&(e=t=r=NaN),new Ie(e,t,r,i)}function RT(e){return e instanceof Is||(e=vs(e)),e?(e=e.rgb(),new Ie(e.r,e.g,e.b,e.opacity)):new Ie}function PT(e,t,r,i){return arguments.length===1?RT(e):new Ie(e,t,r,i??1)}function Ie(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}Il(Ie,PT,cp(Is,{brighter:function(e){return e=e==null?No:Math.pow(No,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Ss:Math.pow(Ss,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:Jc,formatHex:Jc,formatRgb:tu,toString:tu}));function Jc(){return"#"+Ia(this.r)+Ia(this.g)+Ia(this.b)}function tu(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function Ia(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function eu(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new or(e,t,r,i)}function up(e){if(e instanceof or)return new or(e.h,e.s,e.l,e.opacity);if(e instanceof Is||(e=vs(e)),!e)return new or;if(e instanceof or)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,s=Math.min(t,r,i),o=Math.max(t,r,i),a=NaN,n=o-s,l=(o+s)/2;return n?(t===o?a=(r-i)/n+(r<i)*6:r===o?a=(i-t)/n+2:a=(t-r)/n+4,n/=l<.5?o+s:2-o-s,a*=60):n=l>0&&l<1?0:a,new or(a,n,l,e.opacity)}function NT(e,t,r,i){return arguments.length===1?up(e):new or(e,t,r,i??1)}function or(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}Il(or,NT,cp(Is,{brighter:function(e){return e=e==null?No:Math.pow(No,e),new or(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Ss:Math.pow(Ss,e),new or(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*t,s=2*r-i;return new Ie(Ra(e>=240?e-240:e+120,s,i),Ra(e,s,i),Ra(e<120?e+240:e-120,s,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function Ra(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function dp(e,t){var r;return(typeof t=="number"?Ir:t instanceof vs?Yc:(r=vs(t))?(t=r,Yc):fT)(e,t)}function qT(e){return function(){this.removeAttribute(e)}}function WT(e){return function(){this.removeAttributeNS(e.space,e.local)}}function zT(e,t,r){var i,s=r+"",o;return function(){var a=this.getAttribute(e);return a===s?null:a===i?o:o=t(i=a,r)}}function HT(e,t,r){var i,s=r+"",o;return function(){var a=this.getAttributeNS(e.space,e.local);return a===s?null:a===i?o:o=t(i=a,r)}}function YT(e,t,r){var i,s,o;return function(){var a,n=r(this),l;return n==null?void this.removeAttribute(e):(a=this.getAttribute(e),l=n+"",a===l?null:a===i&&l===s?o:(s=l,o=t(i=a,n)))}}function UT(e,t,r){var i,s,o;return function(){var a,n=r(this),l;return n==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),l=n+"",a===l?null:a===i&&l===s?o:(s=l,o=t(i=a,n)))}}function GT(e,t){var r=ia(e),i=r==="transform"?yT:dp;return this.attrTween(e,typeof t=="function"?(r.local?UT:YT)(r,i,Dl(this,"attr."+e,t)):t==null?(r.local?WT:qT)(r):(r.local?HT:zT)(r,i,t))}function XT(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function jT(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function VT(e,t){var r,i;function s(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&jT(e,o)),r}return s._value=t,s}function KT(e,t){var r,i;function s(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&XT(e,o)),r}return s._value=t,s}function ZT(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var i=ia(e);return this.tween(r,(i.local?VT:KT)(i,t))}function QT(e,t){return function(){Ol(this,e).delay=+t.apply(this,arguments)}}function JT(e,t){return t=+t,function(){Ol(this,e).delay=t}}function tS(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?QT:JT)(t,e)):Ze(this.node(),t).delay}function eS(e,t){return function(){pr(this,e).duration=+t.apply(this,arguments)}}function rS(e,t){return t=+t,function(){pr(this,e).duration=t}}function iS(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?eS:rS)(t,e)):Ze(this.node(),t).duration}function sS(e,t){if(typeof t!="function")throw new Error;return function(){pr(this,e).ease=t}}function oS(e){var t=this._id;return arguments.length?this.each(sS(t,e)):Ze(this.node(),t).ease}function aS(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;pr(this,e).ease=r}}function nS(e){if(typeof e!="function")throw new Error;return this.each(aS(this._id,e))}function lS(e){typeof e!="function"&&(e=Gf(e));for(var t=this._groups,r=t.length,i=new Array(r),s=0;s<r;++s)for(var o=t[s],a=o.length,n=i[s]=[],l,c=0;c<a;++c)(l=o[c])&&e.call(l,l.__data__,c,o)&&n.push(l);return new Lr(i,this._parents,this._name,this._id)}function hS(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,s=r.length,o=Math.min(i,s),a=new Array(i),n=0;n<o;++n)for(var l=t[n],c=r[n],h=l.length,u=a[n]=new Array(h),d,f=0;f<h;++f)(d=l[f]||c[f])&&(u[f]=d);for(;n<i;++n)a[n]=t[n];return new Lr(a,this._parents,this._name,this._id)}function cS(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function uS(e,t,r){var i,s,o=cS(t)?Ol:pr;return function(){var a=o(this,e),n=a.on;n!==i&&(s=(i=n).copy()).on(t,r),a.on=s}}function dS(e,t){var r=this._id;return arguments.length<2?Ze(this.node(),r).on.on(e):this.each(uS(r,e,t))}function fS(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function pS(){return this.on("end.remove",fS(this._id))}function gS(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Fl(e));for(var i=this._groups,s=i.length,o=new Array(s),a=0;a<s;++a)for(var n=i[a],l=n.length,c=o[a]=new Array(l),h,u,d=0;d<l;++d)(h=n[d])&&(u=e.call(h,h.__data__,d,n))&&("__data__"in h&&(u.__data__=h.__data__),c[d]=u,sa(c[d],t,r,d,c,Ze(h,r)));return new Lr(o,this._parents,t,r)}function mS(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Uf(e));for(var i=this._groups,s=i.length,o=[],a=[],n=0;n<s;++n)for(var l=i[n],c=l.length,h,u=0;u<c;++u)if(h=l[u]){for(var d=e.call(h,h.__data__,u,l),f,m=Ze(h,r),y=0,C=d.length;y<C;++y)(f=d[y])&&sa(f,t,r,y,d,m);o.push(d),a.push(h)}return new Lr(o,a,t,r)}var yS=Os.prototype.constructor;function xS(){return new yS(this._groups,this._parents)}function CS(e,t){var r,i,s;return function(){var o=qi(this,e),a=(this.style.removeProperty(e),qi(this,e));return o===a?null:o===r&&a===i?s:s=t(r=o,i=a)}}function fp(e){return function(){this.style.removeProperty(e)}}function bS(e,t,r){var i,s=r+"",o;return function(){var a=qi(this,e);return a===s?null:a===i?o:o=t(i=a,r)}}function kS(e,t,r){var i,s,o;return function(){var a=qi(this,e),n=r(this),l=n+"";return n==null&&(l=n=(this.style.removeProperty(e),qi(this,e))),a===l?null:a===i&&l===s?o:(s=l,o=t(i=a,n))}}function wS(e,t){var r,i,s,o="style."+t,a="end."+o,n;return function(){var l=pr(this,e),c=l.on,h=l.value[o]==null?n||(n=fp(t)):void 0;(c!==r||s!==h)&&(i=(r=c).copy()).on(a,s=h),l.on=i}}function TS(e,t,r){var i=(e+="")=="transform"?mT:dp;return t==null?this.styleTween(e,CS(e,i)).on("end.style."+e,fp(e)):typeof t=="function"?this.styleTween(e,kS(e,i,Dl(this,"style."+e,t))).each(wS(this._id,e)):this.styleTween(e,bS(e,i,t),r).on("end.style."+e,null)}function SS(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function _S(e,t,r){var i,s;function o(){var a=t.apply(this,arguments);return a!==s&&(i=(s=a)&&SS(e,a,r)),i}return o._value=t,o}function vS(e,t,r){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,_S(e,t,r??""))}function BS(e){return function(){this.textContent=e}}function LS(e){return function(){var t=e(this);this.textContent=t??""}}function FS(e){return this.tween("text",typeof e=="function"?LS(Dl(this,"text",e)):BS(e==null?"":e+""))}function AS(e){return function(t){this.textContent=e.call(this,t)}}function ES(e){var t,r;function i(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&AS(s)),t}return i._value=e,i}function MS(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,ES(e))}
vendor: 1,087 bytes, line 128
128function $S(){for(var e=this._name,t=this._id,r=pp(),i=this._groups,s=i.length,o=0;o<s;++o)for(var a=i[o],n=a.length,l,c=0;c<n;++c)if(l=a[c]){var h=Ze(l,t);sa(l,e,r,c,a,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Lr(i,this._parents,e,r)}function OS(){var e,t,r=this,i=r._id,s=r.size();return new Promise(function(o,a){var n={value:a},l={value:function(){--s===0&&o()}};r.each(function(){var c=pr(this,i),h=c.on;h!==e&&(t=(e=h).copy(),t._.cancel.push(n),t._.interrupt.push(n),t._.end.push(l)),c.on=t}),s===0&&o()})}var DS=0;function Lr(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function pp(){return++DS}var wr=Os.prototype;Lr.prototype={constructor:Lr,select:gS,selectAll:mS,selectChild:wr.selectChild,selectChildren:wr.selectChildren,filter:lS,merge:hS,selection:xS,transition:$S,call:wr.call,nodes:wr.nodes,node:wr.node,size:wr.size,empty:wr.empty,each:wr.each,on:dS,attr:GT,attrTween:ZT,style:TS,styleTween:vS,text:FS,textTween:MS,remove:pS,tween:LT,delay:tS,duration:iS,ease:oS,easeVarying:nS,end:OS,[Symbol.iterator]:wr[
128Symbol.iterator]};var IS={time:null,delay:0,duration:250,ease:Hf};function RS(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function PS(e){var t,r;e instanceof Lr?(t=e._id,e=e._name):(t=pp(),(r=IS).time=ea(),e=e==null?null:e+"");for(var i=this._groups,s=i.length,o=0;o<s;++o)for(var a=i[o],n=a.length,l,c=0;c<n;++c)(l=a[c])&&sa(l,e,t,c,a,r||RS(l,t));return new Lr(i,this._parents,e,t)}Os.prototype.interrupt=_T;Os.prototype.transition=PS;function hs(e,t,r){this.k=e,this.x=t,this.y=r}hs.prototype={constructor:hs,scale:function(e){return e===1?this:new hs(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new hs(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};hs.prototype;var NS=p(e=>{var s;const{securityLevel:t}=Nt();let r=Ot("body");if(t==="sandbox"){const a=((s=Ot(`#i${e}`).node())==null?void 0:s.contentDocument)??document;r=Ot(a.body)}return r.select(`#${e}`)},"selectSvgElement"),qS=p(e=>{const{handDrawnSeed:t}=Nt();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),WS=p(e=>Array.isArray(e)?e:e?e.split(";").map(t=>t.trim()).filter(Boolean):[],"normalizeStyleList"),zi=p(e=>{const t=zS([...e.cssCompiledStyles||[],...e.cssStyles||[],...WS(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),zS=p(e=>{const t=new Map;return e.forEach(r=>{const[i,s]=r.split(":");t.set(i.trim(),s==null?void 0:s.trim())}),t},"styles2Map"),gp=p(e=>e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens","isLabelStyle"),gt=p(e=>{const{stylesArray:t}=zi(e),r=[],i=[],s=[],o=[];return t.forEach(a=>{const n=a[0];gp(n)?r.push(a.join(":")+" !important"):(i.push(a.join(":")+" !important"),n.includes("stroke")&&s.push(a.join(":")+" !important"),n==="fill"&&o.push(a.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:s,backgroundStyles:o}},"styles2String"),ct=p((e,t)=>{var l;const{themeVariables:r,handDrawnSeed:i}=Nt(),{nodeBorder:s,mainBkg:o}=r,{stylesMap:a}=zi(e);return Object.assign({roughness:.7,fill:a.get("fill")||o,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:a.get("stroke")||s,seed:i,strokeWidth:((l=a.get("stroke-width"))==null?void 0:l.replace("px",""))||1.3,fillLineDash:[0,0],strokeLineDash:HS(a.get("stroke-dasharray"))},t)},"userNodeOverrides"),HS=p(e=>{if(!e)return[0,0];const t=e.trim().split(/\s+/).map(Number);if(t.length===1){const s=isNaN(t[0])?0:t[0];return[s,s]}const r=isNaN(t[0])?0:t[0],i=isNaN(t[1])?0:t[1];return[r,i]},"getStrokeDashArray");const YS=Object.freeze({left:0,top:0,width:16,height:16}),qo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),mp=Object.freeze({...YS,...qo}),US=Object.freeze({...mp,body:"",hidden:!1}),GS=Object.freeze({width:null,height:null}),XS=Object.freeze({...GS,...qo}),jS=(e,t,r,i="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;i=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const n=s.pop(),l=s.pop(),c={provider:s.length>0?s[0]:i,prefix:l,name:n};return Pa(c)?c:null}const o=s[0],a=o.split("-");if(a.length>1){const n={provider:i,prefix:a.shift(),name:a.join("-")};return Pa(n)?n:null}if(r&&i===""){const n={provider:i,prefix:"",name:o};return Pa(n,r)?n:null}return null},Pa=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function VS(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const i=((e.rotate||0)+(t.rotate||0))%4;return i&&(r.rotate=i),r}function ru(e,t){const r=VS(e,t);for(const i in US)i in qo?i in e&&!(i in r)&&(r[i]=qo[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function KS(e,t){const r=e.icons,i=e.aliases||Object.create(null),s=Object.create(null);function o(a){if(r[a])return s[a]=[];if(!(a in s)){s[a]=null;const n=i[a]&&i[a].parent,l=n&&o(n);l&&(s[a]=[n].concat(l))}return s[a]}
128return(t||Object.keys(r).concat(Object.keys(i))).forEach(o),s}function iu(e,t,r){const i=e.icons,s=e.aliases||Object.create(null);let o={};function a(n){o=ru(i[n]||s[n],o)}return a(t),r.forEach(a),ru(e,o)}function ZS(e,t){if(e.icons[t])return iu(e,t,[]);const r=KS(e,[t])[t];return r?iu(e,t,r):null}const QS=/(-?[0-9.]*[0-9]+[0-9.]*)/g,JS=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function su(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const i=e.split(QS);if(i===null||!i.length)return e;const s=[];let o=i.shift(),a=JS.test(o);for(;;){if(a){const n=parseFloat(o);isNaN(n)?s.push(o):s.push(Math.ceil(n*t*r)/r)}else s.push(o);if(o=i.shift(),o===void 0)return s.join("");a=!a}}function t_(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const s=e.indexOf(">",i),o=e.indexOf("</"+t);if(s===-1||o===-1)break;const a=e.indexOf(">",o);if(a===-1)break;r+=e.slice(s+1,o).trim(),e=e.slice(0,i).trim()+e.slice(a+1)}return{defs:r,content:e}}function e_(e,t){return e?"<defs>"+e+"</defs>"+t:t}function r_(e,t,r){const i=t_(e);return e_(i.defs,t+i.content+r)}const i_=e=>e==="unset"||e==="undefined"||e==="none";function s_(e,t){const r={...mp,...e},i={...XS,...t},s={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,i].forEach(y=>{const C=[],x=y.hFlip,k=y.vFlip;let T=y.rotate;x?k?T+=2:(C.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),C.push("scale(-1 1)"),s.top=s.left=0):k&&(C.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),C.push("scale(1 -1)"),s.top=s.left=0);let S;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:S=s.height/2+s.top,C.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:C.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:S=s.width/2+s.left,C.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")")}T%2===1&&(s.left!==s.top&&(S=s.left,s.left=s.top,s.top=S),s.width!==s.height&&(S=s.width,s.width=s.height,s.height=S)),C.length&&(o=r_(o,'<g transform="'+C.join(" ")+'">',"</g>"))});const a=i.width,n=i.height,l=s.width,c=s.height;let h,u;a===null?(u=n===null?"1em":n==="auto"?c:n,h=su(u,l/c)):(h=a==="auto"?l:a,u=n===null?su(h,c/l):n==="auto"?c:n);const d={},f=(y,C)=>{i_(C)||(d[y]=C.toString())};f("width",h),f("height",u);const m=[s.left,s.top,l,c];return d.viewBox=m.join(" "),{attributes:d,viewBox:m,body:o}}const o_=/\sid="(\S+)"/g,ou=new Map;function a_(e){e=e.replace(/[0-9]+$/,"")||"a";const t=ou.get(e)||0;return ou.set(e,t+1),t?`${e}${t}`:e}function n_(e){const t=[];let r;for(;r=o_.exec(e);)t.push(r[1]);if(!t.length)return e;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(s=>{const o=a_(s),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function l_(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in t)r+=" "+i+'="'+t[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}var h_={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},Gn=new Map,yp=new Map,c_=p(e=>{for(const t of e){if(!t.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(I.debug("Registering icon pack:",t.name),"loader"in t)yp.set(t.name,t.loader);else if("icons"in t)Gn.set(t.name,t.icons);else throw I.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),xp=p(async(e,t)=>{const r=jS(e,!0,t!==void 0);if(!r)throw new Error(`Invalid icon name: ${e}`);const i=r.prefix||t;if(!i)throw new Error(`Icon name must contain a prefix: ${e}`);let s=Gn.get(i);if(!s){const a=yp.get(i);if(!a)throw new Error(`Icon set not found: ${r.prefix}`);try{s={...await a(),prefix:i},Gn.set(i,s)}catch(n){throw I.error(n),new Error(`Failed to load icon set: ${r.prefix}`)}}const o=ZS(s,r.name);if(!o)throw new Error(`Icon not found: ${e}`);return o},"getRegisteredIconData"),u_=p(async e=>
128{try{return await xp(e),!0}catch{return!1}},"isIconAvailable"),Rs=p(async(e,t,r)=>{let i;try{i=await xp(e,t==null?void 0:t.fallbackPrefix)}catch(a){I.error(a),i=h_}const s=s_(i,t),o=l_(n_(s.body),{...s.attributes,...r});return ze(o,Jt())},"getIconSVG"),Cp={},ne={};Object.defineProperty(ne,"__esModule",{value:!0});ne.BLANK_URL=ne.relativeFirstCharacters=ne.whitespaceEscapeCharsRegex=ne.urlSchemeRegex=ne.ctrlCharactersRegex=ne.htmlCtrlEntityRegex=ne.htmlEntitiesRegex=ne.invalidProtocolRegex=void 0;ne.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im;ne.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g;ne.htmlCtrlEntityRegex=/&(newline|tab);/gi;ne.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;ne.urlSchemeRegex=/^.+(:|&colon;)/gim;ne.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g;ne.relativeFirstCharacters=[".","/"];ne.BLANK_URL="about:blank";Object.defineProperty(Cp,"__esModule",{value:!0});var d_=Cp.sanitizeUrl=m_,me=ne;function f_(e){return me.relativeFirstCharacters.indexOf(e[0])>-1}function p_(e){var t=e.replace(me.ctrlCharactersRegex,"");return t.replace(me.htmlEntitiesRegex,function(r,i){return String.fromCharCode(i)})}function g_(e){return URL.canParse(e)}function au(e){try{return decodeURIComponent(e)}catch{return e}}function m_(e){if(!e)return me.BLANK_URL;var t,r=au(e.trim());do r=p_(r).replace(me.htmlCtrlEntityRegex,"").replace(me.ctrlCharactersRegex,"").replace(me.whitespaceEscapeCharsRegex,"").trim(),r=au(r),t=r.match(me.ctrlCharactersRegex)||r.match(me.htmlEntitiesRegex)||r.match(me.htmlCtrlEntityRegex)||r.match(me.whitespaceEscapeCharsRegex);while(t&&t.length>0);var i=r;if(!i)return me.BLANK_URL;if(f_(i))return i;var s=i.trimStart(),o=s.match(me.urlSchemeRegex);if(!o)return i;var a=o[0].toLowerCase().trim();if(me.invalidProtocolRegex.test(a))return me.BLANK_URL;var n=s.replace(/\\/g,"/");if(a==="mailto:"||a.includes("://"))return n;if(a==="http:"||a==="https:"){if(!g_(n))return me.BLANK_URL;var l=new URL(n);return l.protocol=l.protocol.toLowerCase(),l.hostname=l.hostname.toLowerCase(),l.toString()}return n}function Na(e){var r;if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){const i=e[Symbol.toStringTag];return i==null||!((r=Object.getOwnPropertyDescriptor(e,Symbol.toStringTag))!=null&&r.writable)?!1:e.toString()===`[object ${i}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function y_(){}function bp(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Rl(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const x_="[object RegExp]",kp="[object String]",wp="[object Number]",Tp="[object Boolean]",Sp="[object Arguments]",C_="[object Symbol]",b_="[object Date]",k_="[object Map]",w_="[object Set]",T_="[object Array]",S_="[object ArrayBuffer]",__="[object Object]",v_="[object DataView]",B_="[object Uint8Array]",L_="[object Uint8ClampedArray]",F_="[object Uint16Array]",A_="[object Uint32Array]",E_="[object Int8Array]",M_="[object Int16Array]",$_="[object Int32Array]",O_="[object Float32Array]",D_="[object Float64Array]",nu=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||function(){return this}();function Pl(e){return typeof nu.Buffer<"u"&&nu.Buffer.isBuffer(e)}function I_(e){return Number.isSafeInteger(e)&&e>=0}function _p(e){return e!=null&&typeof e!="function"&&I_(e.length)}function R_(e){return e==="__proto__"}function Nl(e){return e==null||typeof e!="object"&&typeof e!="function"}function ql(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function P_(e,t){return mi(e,void 0,e,new Map,t)}function mi(e,t,r,i=new Map,s=void 0){const o=s==null?void 0:s(e,t,r,i);if(o!==void 0)return o;if(Nl(e))return e;if(i.has(e))return i.get(e);if(Array.isArray(e)){const a=new Array(e.length);i.set(e,a);for(let n=0;n<e.length;n++)a[n]=mi(e[n],n,r,i,s);
128return Object.hasOwn(e,"index")&&(a.index=e.index),Object.hasOwn(e,"input")&&(a.input=e.input),a}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const a=new RegExp(e.source,e.flags);return a.lastIndex=e.lastIndex,a}if(e instanceof Map){const a=new Map;i.set(e,a);for(const[n,l]of e)a.set(n,mi(l,n,r,i,s));return a}if(e instanceof Set){const a=new Set;i.set(e,a);for(const n of e)a.add(mi(n,void 0,r,i,s));return a}if(Pl(e))return e.subarray();if(ql(e)){const a=new(Object.getPrototypeOf(e)).constructor(e.length);i.set(e,a);for(let n=0;n<e.length;n++)a[n]=mi(e[n],n,r,i,s);return a}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const a=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return i.set(e,a),Ye(a,e,r,i,s),a}if(typeof File<"u"&&e instanceof File){const a=new File([e],e.name,{type:e.type});return i.set(e,a),Ye(a,e,r,i,s),a}if(typeof Blob<"u"&&e instanceof Blob){const a=new Blob([e],{type:e.type});return i.set(e,a),Ye(a,e,r,i,s),a}if(e instanceof Error){const a=structuredClone(e);return i.set(e,a),a.message=e.message,a.name=e.name,a.stack=e.stack,a.cause=e.cause,a.constructor=e.constructor,Ye(a,e,r,i,s),a}if(e instanceof Boolean){const a=new Boolean(e.valueOf());return i.set(e,a),Ye(a,e,r,i,s),a}if(e instanceof Number){const a=new Number(e.valueOf());return i.set(e,a),Ye(a,e,r,i,s),a}if(e instanceof String){const a=new String(e.valueOf());return i.set(e,a),Ye(a,e,r,i,s),a}if(typeof e=="object"&&N_(e)){const a=Object.create(Object.getPrototypeOf(e));return i.set(e,a),Ye(a,e,r,i,s),a}return e}function Ye(e,t,r=e,i,s){const o=[...Object.keys(t),...bp(t)];for(let a=0;a<o.length;a++){const n=o[a],l=Object.getOwnPropertyDescriptor(e,n);(l==null||l.writable)&&(e[n]=mi(t[n],n,r,i,s))}}function N_(e){switch(Rl(e)){case Sp:case T_:case S_:case v_:case Tp:case b_:case O_:case D_:case E_:case M_:case $_:case k_:case wp:case __:case x_:case w_:case kp:case C_:case B_:case L_:case F_:case A_:return!0;default:return!1}}function q_(e,t){return P_(e,(r,i,s,o)=>{if(typeof e=="object"){if(Rl(e)==="[object Object]"&&typeof e.constructor!="function"){const a={};return o.set(e,a),Ye(a,e,s,o),a}switch(Object.prototype.toString.call(e)){case wp:case kp:case Tp:{const a=new e.constructor(e==null?void 0:e.valueOf());return Ye(a,e),a}case Sp:{const a={};return Ye(a,e),a.length=e.length,a[Symbol.iterator]=e[Symbol.iterator],a}default:return}}})}function lu(e){return q_(e)}function Xn(e){return e!==null&&typeof e=="object"&&Rl(e)==="[object Arguments]"}function jn(e){return typeof e=="object"&&e!==null}function W_(e){return jn(e)&&_p(e)}function bo(e){return ql(e)}function z_(e){const t=e==null?void 0:e.constructor;return e===(typeof t=="function"?t.prototype:Object.prototype)}function Ps(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");const r=function(...i){const s=t?t.apply(this,i):i[0],o=r.cache;if(o.has(s))return o.get(s);const a=e.apply(this,i);return r.cache=o.set(s,a)||o,a};return r.cache=new(Ps.Cache||Map),r}Ps.Cache=Map;function H_(e){if(Nl(e))return e;if(Array.isArray(e)||ql(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);const t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);const r=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new r(e);if(e instanceof RegExp){const i=new r(e);return i.lastIndex=e.lastIndex,i}if(e instanceof DataView)return new r(e.buffer.slice(0));if(e instanceof Error){let i;return e instanceof AggregateError?i=new r(e.errors,e.message,{cause:e.cause}):i=new r(e.message,{cause:e.cause}),i.stack=e.stack,Object.assign(i,e),i}return typeof File<"u"&&e instanceof File?new r([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e=="object"?Object.assign(Object.create(t),e):e}function Y_(e,...t){const r=t.slice(0,-1),i=t[t.length-1];let s=e;for(let o=0;o<r.length;o++){const a=r[o];s=ko(s,a,i,new Map)}return s}function ko(e,t,r,i){if(Nl(e)&&(e=Object(e)),t==null||typeof t!="object")return e;if(i.has(t))return H_(i.get(t));if(i.set(t,e),Array.isArray(t)){t=t.slice();for(let o=0;o<t.length;o++)o in t||(t[o]=void 0)}const s=[...Object.keys(t),...bp(t)];for(let o=0;o<s.length;o++){const a=s[o];if(R_(a))continue;let n=t[a],l=e[a];if(Xn(n)&&(n={...n}),Xn(l)&&(l={...l}),Pl(n)&&(n=lu(n)),Array.isArray(n))if(Array.isArray(l)){const h=[],u=Reflect.ownKeys(l);for(let d=0;d<u.length;d++){const f=u[d];h[f]=l[f]}l=h}else if(W_(l)){const h=[];for(let u=0;u<l.length;u++)h[u]=l[u];l=h}else l=[];const c=r(l,n,a,e,t,i);c!==void 0?e[a]=c:Array.isArray(n)||jn(l)&&jn(n)&&(Na(l)||Na(n)||bo(l)||bo(n))?e[a]=ko(l,n,r,i):l==null&&Na(n)?e[a]=ko({},n,r,i):l==null&&bo(n)?e[a]=lu(n):(l===void 0||n!==void 0)&&(e[a]=n)}return e}function U_(e,...t){return Y_(e,...t,y_)}function hu(e){if(e==null)return!0;
128if(_p(e))return typeof e.splice!="function"&&typeof e!="string"&&!Pl(e)&&!bo(e)&&!Xn(e)?!1:e.length===0;if(typeof e=="object"||typeof e=="function"){if(e instanceof Map||e instanceof Set)return e.size===0;const t=Object.keys(e);return z_(e)?t.filter(r=>r!=="constructor").length===0:t.length===0}return!0}var G_="​",X_={curveBasis:_n,curveBasisClosed:px,curveBasisOpen:fx,curveBumpX:Hd,curveBumpY:zd,curveBundle:yx,curveCardinalClosed:xx,curveCardinalOpen:Cx,curveCardinal:Ud,curveCatmullRomClosed:bx,curveCatmullRomOpen:kx,curveCatmullRom:Xd,curveLinear:co,curveLinearClosed:dx,curveMonotoneX:Wd,curveMonotoneY:qd,curveNatural:Nd,curveStep:Pd,curveStepAfter:Rd,curveStepBefore:Id},j_=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,V_=p(function(e,t){const r=vp(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const a=r.map(n=>n.args);Bo(a),i=le(i,[...a])}else i=r.args;if(!i)return;let s=xl(e,t);const o="config";return i[o]!==void 0&&(s==="flowchart-v2"&&(s="flowchart"),i[s]=i[o],delete i[o]),i},"detectInit"),vp=p(function(e,t=null){var r,i;try{const s=new RegExp(`[%]{2}(?![{]${j_.source})(?=[}][%]{2}).*
129`,"ig");e=e.trim().replace(s,"").replace(/'/gm,'"'),I.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let o;const a=[];for(;(o=xs.exec(e))!==null;)if(o.index===xs.lastIndex&&xs.lastIndex++,o&&!t||t&&((r=o[1])!=null&&r.match(t))||t&&((i=o[2])!=null&&i.match(t))){const n=o[1]?o[1]:o[2],l=o[3]?o[3].trim():o[4]?JSON.parse(o[4].trim()):null;a.push({type:n,args:l})}return a.length===0?{type:e,args:null}:a.length===1?a[0]:a}catch(s){return I.error(`ERROR: ${s.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),K_=p(function(e){return e.replace(xs,"")},"removeDirectives"),Z_=p(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function Wl(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return X_[r]??t}p(Wl,"interpolateToCurve");function Bp(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?d_(r):r}p(Bp,"formatUrl");var Q_=p((e,...t)=>{const r=e.split("."),i=r.length-1,s=r[i];let o=window;for(let a=0;a<i;a++)if(o=o[r[a]],!o){I.error(`Function name: ${e} not found in window`);return}o[s](...t)},"runFunc");function zl(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}p(zl,"distance");function Lp(e){let t,r=0;e.forEach(s=>{r+=zl(s,t),t=s});const i=r/2;return Hl(e,i)}p(Lp,"traverseEdge");function Fp(e){return e.length===1?e[0]:Lp(e)}p(Fp,"calcLabelPosition");var cu=p((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),Hl=p((e,t)=>{let r,i=t;for(const s of e){if(r){const o=zl(s,r);if(o===0)return r;if(o<i)i-=o;else{const a=i/o;if(a<=0)return r;if(a>=1)return{x:s.x,y:s.y};if(a>0&&a<1)return{x:cu((1-a)*r.x+a*s.x,5),y:cu((1-a)*r.y+a*s.y,5)}}}r=s}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),J_=p((e,t,r)=>{I.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const s=Hl(t,25),o=e?10:5,a=Math.atan2(t[0].y-s.y,t[0].x-s.x),n={x:0,y:0};return n.x=Math.sin(a)*o+(t[0].x+s.x)/2,n.y=-Math.cos(a)*o+(t[0].y+s.y)/2,n},"calcCardinalityPosition");function Ap(e,t,r){const i=structuredClone(r);I.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const s=25+e,o=Hl(i,s),a=10+e*.5,n=Math.atan2(i[0].y-o.y,i[0].x-o.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(n+Math.PI)*a+(i[0].x+o.x)/2,l.y=-Math.cos(n+Math.PI)*a+(i[0].y+o.y)/2):t==="end_right"?(l.x=Math.sin(n-Math.PI)*a+(i[0].x+o.x)/2-5,l.y=-Math.cos(n-Math.PI)*a+(i[0].y+o.y)/2-5):t==="end_left"?(l.x=Math.sin(n)*a+(i[0].x+o.x)/2-5,l.y=-Math.cos(n)*a+(i[0].y+o.y)/2-5):(l.x=Math.sin(n)*a+(i[0].x+o.x)/2,l.y=-Math.cos(n)*a+(i[0].y+o.y)/2),l}p(Ap,"calcTerminalLabelPosition");function Ep(e){let t="",r="";for(const i of e)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":t=t+i+";");return{style:t,labelStyle:r}}p(Ep,"getStylesFromArray");var uu=0,tv=p(()=>(uu++,"id-"+Math.random().toString(36).substr(2,12)+"-"+uu),"generateId");function Mp(e){let t="";const r="0123456789abcdef",i=r.length;for(let s=0;s<e;s++)t+=r.charAt(Math.floor(Math.random()*i));return t}p(Mp,"makeRandomHex");var ev=p(e=>Mp(e.length),"random"),rv=p(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:""}}
129,"getTextObj"),iv=p(function(e,t){const r=t.text.replace(Ms.lineBreakRegex," "),[,i]=oa(t.fontSize),s=e.append("text");s.attr("x",t.x),s.attr("y",t.y),s.style("text-anchor",t.anchor),s.style("font-family",t.fontFamily),s.style("font-size",i),s.style("font-weight",t.fontWeight),s.attr("fill",t.fill),t.class!==void 0&&s.attr("class",t.class);const o=s.append("tspan");return o.attr("x",t.x+t.textMargin*2),o.attr("fill",t.fill),o.text(r),s},"drawSimpleText"),sv=Ps((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Ms.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),s=[];let o="";return i.forEach((a,n)=>{const l=Fr(`${a} `,r),c=Fr(o,r);if(l>t){const{hyphenatedStrings:d,remainingWord:f}=ov(a,t,"-",r);s.push(o,...d),o=f}else c+l>=t?(s.push(o),o=a):o=[o,a].filter(Boolean).join(" ");n+1===i.length&&s.push(o)}),s.filter(a=>a!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),ov=Ps((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const s=[...e],o=[];let a="";return s.forEach((n,l)=>{const c=`${a}${n}`;if(Fr(c,i)>=t){const u=l+1,d=s.length===u,f=`${c}${r}`;o.push(d?c:f),a=""}else a=c}),{hyphenatedStrings:o,remainingWord:a}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function $p(e,t){return Yl(e,t).height}p($p,"calculateTextHeight");function Fr(e,t){return Yl(e,t).width}p(Fr,"calculateTextWidth");var Yl=Ps((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:s=400}=t;if(!e)return{width:0,height:0};const[,o]=oa(r),a=["sans-serif",i],n=e.split(Ms.lineBreakRegex),l=[],c=Ot("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const d of a){let f=0;const m={width:0,height:0,lineHeight:0};for(const y of n){const C=rv();C.text=y||G_;const x=iv(h,C).style("font-size",o).style("font-weight",s).style("font-family",d),k=(x._groups||x)[0][0].getBBox();if(k.width===0&&k.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,k.width)),f=Math.round(k.height),m.height+=f,m.lineHeight=Math.round(Math.max(m.lineHeight,f))}l.push(m)}h.remove();const u=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1;return l[u]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Oi,av=(Oi=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},p(Oi,"InitIDGenerator"),Oi),Js,nv=p(function(e){return Js=Js||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),Js.innerHTML=e,unescape(Js.textContent)},"entityDecode");function Ul(e){return"str"in e}p(Ul,"isDetailedError");var lv=p((e,t,r,i)=>{var o;if(!i)return;const s=(o=e.node())==null?void 0:o.getBBox();s&&e.append("text").text(i).attr("text-anchor","middle").attr("x",s.x+s.width/2).attr("y",-r).attr("class",t)},"insertTitle"),oa=p(e=>{if(typeof e=="number")return[e,e+"px"];const t=parseInt(e??"",10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+"px"]:[t,e]},"parseFontSize");function Gl(e,t){return U_({},e,t)}p(Gl,"cleanAndMerge");var xe={assignWithDepth:le,wrapLabel:sv,calculateTextHeight:$p,calculateTextWidth:Fr,calculateTextDimensions:Yl,cleanAndMerge:Gl,detectInit:V_,detectDirective:vp,isSubstringInArray:Z_,interpolateToCurve:Wl,calcLabelPosition:Fp,calcCardinalityPosition:J_,calcTerminalLabelPosition:Ap,formatUrl:Bp,getStylesFromArray:Ep,generateId:tv,random:ev,runFunc:Q_,entityDecode:nv,insertTitle:lv,isLabelCoordinateInPath:Op,parseFontSize:oa,InitIDGenerator:av},hv=p(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),t=t.replace(/#\w+;/g,function(r){const i=r.substring(1,r.length-1);return/^\+?\d+$/.test(i)?"fl°°"+i+"¶ß":"fl°"+i+"¶ß"}),t},"encodeEntities"),Nr=p(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),r3=p((e,t,{counter:r=0,prefix:i,suffix:s},o)=>o||`${i?`${i}_`:""}${e}_${t}_${r}${s?`_${s}`:""}`,"getEdgeId");function se(e){return e??null}p(se,"handleUndefinedAttr");function Op(e,t){const r=Math.round(e.x),i=Math.round(e.y),s=t.replace(/(\d+\.\d+)/g,o=>Math.round(parseFloat(o)).toString());return s.includes(r.toString())||s.includes(i.toString())}p(Op,"isLabelCoordinateInPath");var Dp={exports:{}};(function(e){(function(t){var r=function(){},i=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(h){return setTimeout(h,16)};function s(){var h=this;h.reads=[],h.writes=[],h.raf=i.bind(t)}s.prototype={constructor:s,runTasks:function(h){for(var u;u=h.shift();)u()},measure:function(h,u){var d=u?h.bind(u):h;return this.reads.push(d),o(this),d},mutate:function(h,u){var d=u?h.bind(u):h;return this.writes.push(d),o(this),d},clear:function(h){return n(this.reads,h)||n(this.writes,h)},extend:function(h){if(typeof h!="object")throw new Error("expected object");var u=Object.create(this);return l(u,h),u.fastdom=this,u.initialize&&u.initialize(),u},catch:null};function o(h){h.scheduled||(h.scheduled=!0,h.raf(a.bind(null,h)))}function a(h){var u=h.writes,d=h.reads,f;try{r("flushing reads",d.length),h.runTasks(d),r("flushing writes",u.length),h.runTasks(u)}catch(m){f=m}if(h.scheduled=!1,(d.length||u.length)&&o(h),f)if(r("task errored",f.message),h.catch)h.catch(f);else throw f}function n(h,u){var d=h.indexOf(u);return!!~d&&!!h.splice(d,1)}function l(h,u){for(var d in u)u.hasOwnProperty(d)&&(h[d]=u[d])}var c=t.fastdom=t.fastdom||new s;e.exports=c})(typeof window<"u"?window:typeof tc<"u"?tc:globalThis)})(Dp);var cv=Dp.exports;const uv=$d(cv);var Ip={exports:{}};(function(e){(function(){var t={initialize:function(){this._tasks=new Map},mutate:function(i,s){return r(this,"mutate",i,s)},measure:function(i,s){return r(this,"measure",i,s)},clear:function(i){var s=this._tasks,o=s.get(i);this.fastdom.clear(o),s.delete(i)}};function r(i,s,o,a){var n=i._tasks,l=i.fastdom,c,h=new Promise(function(u,d){c=l[s](function(){n.delete(h);try{u(a?o.call(a):o())}catch(f){d(f)}},a)});return n.set(h,c),h}e.exports=t})()})(Ip);var dv=Ip.exports;const fv=$d(dv);function Xl(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var si=Xl();function Rp(e){si=e}var Cs={exec:()=>null};
vendor: 4,374 bytes, line 129
129function Xt(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(s,o)=>{let a=typeof o=="string"?o:o.source;return a=a.replace(we.caret,"$1"),r=r.replace(s,a),i},getRegex:()=>new RegExp(r,t)};return i}var pv=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),we={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},gv=/^(?:[ \t]*(?:\n|$))+/,mv=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,yv=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ns=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,xv=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,jl=/(?:[*+-]|\d{1,9}[.)])/,Pp=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Np=Xt(Pp).replace(/bull/g,jl).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(),Cv=Xt(Pp).replace(/bull/g,jl).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(),Vl=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,bv=/^[^\n]+/,Kl=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,kv=Xt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Kl).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),wv=Xt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,jl).getRegex(),aa="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",Zl=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Tv=Xt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
129)[\\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",Zl).replace("tag",aa).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),qp=Xt(Vl).replace("hr",Ns).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",aa).getRegex(),Sv=Xt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",qp).getRegex(),Ql={blockquote:Sv,code:mv,def:kv,fences:yv,heading:xv,hr:Ns,html:Tv,lheading:Np,list:wv,newline:gv,paragraph:qp,table:Cs,text:bv},du=Xt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ns).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",aa).getRegex(),_v={...Ql,lheading:Cv,table:du,paragraph:Xt(Vl).replace("hr",Ns).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",du).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",aa).getRegex()},vv={...Ql,html:Xt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Zl).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:Cs,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Xt(Vl).replace("hr",Ns).replace("heading",` *#{1,6} *[^
130]`).replace("lheading",Np).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Bv=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Lv=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Wp=/^( {2,}|\\)\n(?!\s*$)/,Fv=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,na=/[\p{P}\p{S}]/u,Jl=/[\s\p{P}\p{S}]/u,zp=/[^\s\p{P}\p{S}]/u,Av=Xt(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Jl).getRegex(),Hp=/(?!~)[\p{P}\p{S}]/u,Ev=/(?!~)[\s\p{P}\p{S}]/u,Mv=/(?:[^\s\p{P}\p{S}]|~)/u,$v=Xt(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",pv?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Yp=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Ov=Xt(Yp,"u").replace(/punct/g,na).getRegex(),Dv=Xt(Yp,"u").replace(/punct/g,Hp).getRegex(),Up="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Iv=Xt(Up,"gu").replace(/notPunctSpace/g,zp).replace(/punctSpace/g,Jl).replace(/punct/g,na).getRegex(),Rv=Xt(Up,"gu").replace(/notPunctSpace/g,Mv).replace(/punctSpace/g,Ev).replace(/punct/g,Hp).getRegex(),Pv=Xt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,zp).replace(/punctSpace/g,Jl).replace(/punct/g,na).getRegex(),Nv=Xt(/\\(punct)/,"gu").replace(/punct/g,na).getRegex(),qv=Xt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Wv=Xt(Zl).replace("(?:-->|$)","-->").getRegex(),zv=Xt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Wv).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Wo=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Hv=Xt(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Wo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Gp=Xt(/^!?\[(label)\]\[(ref)\]/).replace("label",Wo).replace("ref",Kl).getRegex(),Xp=Xt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Kl).getRegex(),Yv=Xt("reflink|nolink(?!\\()","g").replace("reflink",Gp).replace("nolink",Xp).getRegex(),fu=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,th={_backpedal:Cs,anyPunctuation:Nv,autolink:qv,blockSkip:$v,br:Wp,code:Lv,del:Cs,emStrongLDelim:Ov,emStrongRDelimAst:Iv,emStrongRDelimUnd:Pv,escape:Bv,link:Hv,nolink:Xp,punctuation:Av,reflink:Gp,reflinkSearch:Yv,tag:zv,text:Fv,url:Cs},Uv={...th,link:Xt(/^!?\[(label)\]\((.*?)\)/).replace("label",Wo).getRegex(),reflink:Xt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Wo).getRegex()},Vn={...th,emStrongRDelimAst:Rv,emStrongLDelim:Dv,url:Xt(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",fu).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Xt(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",fu).getRegex()},Gv={...Vn,br:Xt(Wp).replace("{2,}","*").getRegex(),text:Xt(Vn.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},to={normal:Ql,gfm:_v,pedantic:vv},Ji={normal:th,gfm:Vn,breaks:Gv,pedantic:Uv},Xv={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},pu=e=>Xv[e];function rr(e,t){if(t){if(we.escapeTest.test(e))return e.replace(we.escapeReplace,pu)}else if(we.escapeTestNoEncode.test(e))return e.replace(we.escapeReplaceNoEncode,pu);return e}function gu(e){try{e=encodeURI(e).replace(we.percentDecode,"%")}catch{return null}return e}function mu(e,t){var o;let r=e.replace(we.findPipe,(a,n,l)=>{let c=!1,h=n;for(;--h>=0&&l[h]==="\\";)c=!c;return c?"|":" |"}),i=r.split(we.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((o=i.at(-1))!=null&&o.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(we.slashPipe,"|");return i}function ts(e,t,r){let i=e.length;if(i===0)return"";let s=0;for(;s<i&&e.charAt(i-s-1)===t;)s++;return e.slice(0,i-s)}function jv(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function yu(e,t,r,i,s){let o=t.href,a=t.title||null,n=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:o,title:a,text:n,tokens:i.inl
vendor: 21,396 bytes, lines 130-187
130ineTokens(n)};return i.state.inLink=!1,l}function Vv(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let s=i[1];return t.split(`
131`).map(o=>{let a=o.match(r.other.beginningSpace);if(a===null)return o;let[n]=a;return n.length>=s.length?o.slice(s.length):o}).join(`
132`)}var zo=class{constructor(t){Kt(this,"options");Kt(this,"rules");Kt(this,"lexer");this.options=t||si}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:ts(i,`
133`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=Vv(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:s}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let s=ts(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:ts(r[0],`
134`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=ts(r[0],`
135`).split(`
136`),s="",o="",a=[];for(;i.length>0;){let n=!1,l=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))l.push(i[c]),n=!0;else if(!n)l.push(i[c]);else break;i=i.slice(c);let h=l.join(`
137`),u=h.replace(this.rules.other.blockquoteSetextReplace,`
138    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
139${h}`:h,o=o?`${o}
140${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,a,!0),this.lexer.state.top=d,i.length===0)break;let f=a.at(-1);if((f==null?void 0:f.type)==="code")break;if((f==null?void 0:f.type)==="blockquote"){let m=f,y=m.raw+`
141`+i.join(`
142`),C=this.blockquote(y);a[a.length-1]=C,s=s.substring(0,s.length-m.raw.length)+C.raw,o=o.substring(0,o.length-m.text.length)+C.text;break}else if((f==null?void 0:f.type)==="list"){let m=f,y=m.raw+`
143`+i.join(`
144`),C=this.list(y);a[a.length-1]=C,s=s.substring(0,s.length-f.raw.length)+C.raw,o=o.substring(0,o.length-m.raw.length)+C.raw,i=y.substring(a.at(-1).raw.length).split(`
145`);continue}}return{type:"blockquote",raw:s,tokens:a,text:o}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),s=i.length>1,o={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let a=this.rules.other.listItemRegex(i),n=!1;for(;t;){let c=!1,h="",u="";if(!(r=a.exec(t))||this.rules.block.hr.test(t))break;h=r[0],t=t.substring(h.length);let d=r[2].split(`
146`,1)[0].replace(this.rules.other.listReplaceTabs,k=>" ".repeat(3*k.length)),f=t.split(`
147`,1)[0],m=!d.trim(),y=0;if(this.options.pedantic?(y=2,u=d.trimStart()):m?y=r[1].length+1:(y=r[2].search(this.rules.other.nonSpaceChar),y=y>4?1:y,u=d.slice(y),y+=r[1].length),m&&this.rules.other.blankLine.test(f)&&(h+=f+`
148`,t=t.substring(f.length+1),c=!0),!c){let k=this.rules.other.nextBulletRegex(y),T=this.rules.other.hrRegex(y),S=this.rules.other.fencesBeginRegex(y),v=this.rules.other.headingBeginRegex(y),B=this.rules.other.htmlBeginRegex(y);for(;t;){let L=t.split(`
149`,1)[0],O;if(f=L,this.options.pedantic?(f=f.replace(this.rules.other.listReplaceNesting,"  "),O=f):O=f.replace(this.rules.other.tabCharGlobal,"    "),S.test(f)||v.test(f)||B.test(f)||k.test(f)||T.test(f))break;if(O.search(this.rules.other.nonSpaceChar)>=y||!f.trim())u+=`
150`+O.slice(y);else{if(m||d.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||S.test(d)||v.test(d)||T.test(d))break;u+=`
151`+f}!m&&!f.trim()&&(m=!0),h+=L+`
152`,t=t.substring(L.length+1),d=O.slice(y)}}o.loose||(n?o.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(n=!0));let C=null,x;this.options.gfm&&(C=this.rules.other.listIsTask.exec(u),C&&(x=C[0]!=="[ ] ",u=u.replace(this.rules.other.listReplaceTask,""))),o.items.push({type:"list_item",raw:h,task:!!C,checked:x,loose:!1,text:u,tokens:[]}),o.raw+=h}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let c=0;c<o.items.length;c++)if(this.lexer.state.top=!1,o.items[c].tokens=this.lexer.blockTokens(o.items[c].text,[]),!o.loose){let h=o.items[c].tokens.filter(d=>d.type==="space"),u=h.length>0&&h.some(d=>this.rules.other.anyLine.test(d.raw));o.loose=u}if(o.loose)for(let c=0;c<o.items.length;c++)o.items[c].loose=!0;return o}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:s,title:o}}}table(t){var n;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=mu(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(n=r[3])!=null&&n.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
153`):[],a={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let l of s)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<i.length;l++)a.header.push({text:i[l],tokens:this.lexer.inline(i[l]),header:!0,align:a.align[l]});for(let l of o)a.rows.push(mu(l,a.header.length).map((c,h)=>({text:c,tokens:this.lexer.inline(c),header:!1,align:a.align[h]})));return a}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let i=r[1].charAt(r[1].length-1)===`
154`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let a=ts(i.slice(0,-1),"\\");if((i.length-a.length)%2===0)return}else{let a=jv(r[2],"()");if(a===-2)return;if(a>-1){let n=(r[0].indexOf("!")===0?5:4)+r[1].length+a;r[2]=r[2].substring(0,a),r[0]=r[0].substring(0,n).trim(),r[3]=""}}let s=r[2],o="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(s);a&&(s=a[1],o=a[3])}else o=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),yu(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:o&&o.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),o=r[s.toLowerCase()];if(!o){let a=i[0].charAt(0);return{type:"text",raw:a,text:a}}return yu(i,o,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let o=[...s[0]].length-1,a,n,l=o,c=0,h=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*t.length+o);(s=h.exec(r))!=null;){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(n=[...a].length,s[3]||s[4]){l+=n;continue}else if((s[5]||s[6])&&o%3&&!((o+n)%3)){c+=n;continue}if(l-=n,l>0)continue;n=Math.min(n,n+l+c);let u=[...s[0]][0].length,d=t.slice(0,o+s.index+u+n);if(Math.min(o,n)%2){let m=d.slice(1,-1);return{type:"em",raw:d,text:m,tokens:this.lexer.inlineTokens(m)}}let f=d.slice(2,-2);return{type:"strong",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),o=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&o&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let i,s;return r[2]==="@"?(i=r[1],s="mailto:"+i):(i=r[1],s=i),{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let s,o;if(r[2]==="@")s=r[0],o="mailto:"+s;else{let a;do a=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(a!==r[0]);s=r[0],r[1]==="www."?o="http://"+r[0]:o=r[0]}return{type:"link",raw:r[0],text:s,href:o,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},Ue=class Kn{constructor(t){Kt(this,"tokens");Kt(this,"options");Kt(this,"state");Kt(this,"tokenizer");Kt(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||si,this.options.tokenizer=this.options.tokenizer||new zo,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:we,block:to.normal,inline:Ji.normal};this.options.pedantic?(r.block=to.pedantic,r.inline=Ji.pedantic):this.options.gfm&&(r.block=to.gfm,this.options.breaks?r.inline=Ji.breaks:r.inline=Ji.gfm),this.tokenizer.rules=r}static get rules(){return{block:to,inline:Ji}}static lex(t,r){return new Kn(r).lex(t)}static lexInline(t,r){return new Kn(r).inlineTokens(t)}lex(t){t=t.replace(we.carriageReturn,`
155`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var s,o,a;for(this.options.pedantic&&(t=t.replace(we.tabCharGlobal,"    ").replace(we.spaceLine,""));t;){let n;if((o=(s=this.options.extensions)==null?void 0:s.block)!=null&&o.some(c=>(n=c.call({lexer:this},t,r))?(t=t.substring(n.raw.length),r.push(n),!0):!1))continue;if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length);let c=r.at(-1);n.raw.length===1&&c!==void 0?c.raw+=`
156`:r.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
157`)?"":`
158`)+n.raw,c.text+=`
159`+n.text,this.inlineQueue.at(-1).src=c.text):r.push(n);continue}if(n=this.tokenizer.fences(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.heading(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.hr(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.blockquote(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.list(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.html(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.def(t)){t=t.substring(n.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
160`)?"":`
161`)+n.raw,c.text+=`
162`+n.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},r.push(n));continue}if(n=this.tokenizer.table(t)){t=t.substring(n.raw.length),r.push(n);continue}if(n=this.tokenizer.lheading(t)){t=t.substring(n.raw.length),r.push(n);continue}let l=t;if((a=this.options.extensions)!=null&&a.startBlock){let c=1/0,h=t.slice(1),u;this.options.extensions.startBlock.forEach(d=>{u=d.call({lexer:this},h),typeof u=="number"&&u>=0&&(c=Math.min(c,u))}),c<1/0&&c>=0&&(l=t.substring(0,c+1))}if(this.state.top&&(n=this.tokenizer.paragraph(l))){let c=r.at(-1);i&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(`
163`)?"":`
164`)+n.raw,c.text+=`
165`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(n),i=l.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length);let c=r.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
166`)?"":`
167`)+n.raw,c.text+=`
168`+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):r.push(n);continue}if(t){let c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var l,c,h,u,d;let i=t,s=null;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)f.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let o;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)o=s[2]?s[2].length:0,i=i.slice(0,s.index+o)+"["+"a".repeat(s[0].length-o-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((c=(l=this.options.hooks)==null?void 0:l.emStrongMask)==null?void 0:c.call({lexer:this},i))??i;let a=!1,n="";for(;t;){a||(n=""),a=!1;let f;if((u=(h=this.options.extensions)==null?void 0:h.inline)!=null&&u.some(y=>(f=y.call({lexer:this},t,r))?(t=t.substring(f.raw.length),r.push(f),!0):!1))continue;if(f=this.tokenizer.escape(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.tag(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.link(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(f.raw.length);let y=r.at(-1);f.type==="text"&&(y==null?void 0:y.type)==="text"?(y.raw+=f.raw,y.text+=f.text):r.push(f);continue}if(f=this.tokenizer.emStrong(t,i,n)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.codespan(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.br(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.del(t)){t=t.substring(f.raw.length),r.push(f);continue}if(f=this.tokenizer.autolink(t)){t=t.substring(f.raw.length),r.push(f);continue}if(!this.state.inLink&&(f=this.tokenizer.url(t))){t=t.substring(f.raw.length),r.push(f);continue}let m=t;if((d=this.options.extensions)!=null&&d.startInline){let y=1/0,C=t.slice(1),x;this.options.extensions.startInline.forEach(k=>{x=k.call({lexer:this},C),typeof x=="number"&&x>=0&&(y=Math.min(y,x))}),y<1/0&&y>=0&&(m=t.substring(0,y+1))}if(f=this.tokenizer.inlineText(m)){t=t.substring(f.raw.length),f.raw.slice(-1)!=="_"&&(n=f.raw.slice(-1)),a=!0;let y=r.at(-1);(y==null?void 0:y.type)==="text"?(y.raw+=f.raw,y.text+=f.text):r.push(f);continue}if(t){let y="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(y);break}else throw new Error(y)}}return r}},Ho=class{constructor(t){Kt(this,"options");Kt(this,"parser");this.options=t||si}space(t){return""}code({text:t,lang:r,escaped:i}){var a;let s=(a=(r||"").match(we.notSpaceStart))==null?void 0:a[0],o=t.replace(we.endingNewline,"")+`
169`;return s?'<pre><code class="language-'+rr(s)+'">'+(i?o:rr(o,!0))+`</code></pre>
170`:"<pre><code>"+(i?o:rr(o,!0))+`</code></pre>
171`}blockquote({tokens:t}){return`<blockquote>
172${this.parser.parse(t)}</blockquote>
173`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
174`}hr(t){return`<hr>
175`}list(t){let r=t.ordered,i=t.start,s="";for(let n=0;n<t.items.length;n++){let l=t.items[n];s+=this.listitem(l)}let o=r?"ol":"ul",a=r&&i!==1?' start="'+i+'"':"";return"<"+o+a+`>
176`+s+"</"+o+`>
177`}listitem(t){var i;let r="";if(t.task){let s=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=s+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=s+" "+rr(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):r+=s+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
178`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
179`}table(t){let r="",i="";for(let o=0;o<t.header.length;o++)i+=this.tablecell(t.header[o]);r+=this.tablerow({text:i});let s="";for(let o=0;o<t.rows.length;o++){let a=t.rows[o];i="";for(let n=0;n<a.length;n++)i+=this.tablecell(a[n]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
180<thead>
181`+r+`</thead>
182`+s+`</table>
183`}tablerow({text:t}){return`<tr>
184${t}</tr>
185`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
186`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${rr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let s=this.parser.parseInline(i),o=gu(t);if(o===null)return s;t=o;let a='<a href="'+t+'"';return r&&(a+=' title="'+rr(r)+'"'),a+=">"+s+"</a>",a}image({href:t,title:r,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let o=gu(t);if(o===null)return rr(i);t=o;let a=`<img src="${t}" alt="${i}"`;return r&&(a+=` title="${rr(r)}"`),a+=">",a}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:rr(t.text)}},eh=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},Ge=class Zn{constructor(t){Kt(this,"options");Kt(this,"renderer");Kt(this,"textRenderer");this.options=t||si,this.options.renderer=this.options.renderer||new Ho,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new eh}static parse(t,r){return new Zn(r).parse(t)}static parseInline(t,r){return new Zn(r).parseInline(t)}parse(t,r=!0){var s,o;let i="";for(let a=0;a<t.length;a++){let n=t[a];if((o=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&o[n.type]){let c=n,h=this.options.extensions.renderers[c.type].call({parser:this},c);if(h!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(c.type)){i+=h||"";continue}}let l=n;switch(l.type){case"space":{i+=this.renderer.space(l);continue}case"hr":{i+=this.renderer.hr(l);continue}case"heading":{i+=this.renderer.heading(l);continue}case"code":{i+=this.renderer.code(l);continue}case"table":{i+=this.renderer.table(l);continue}case"blockquote":{i+=this.renderer.blockquote(l);continue}case"list":{i+=this.renderer.list(l);continue}case"html":{i+=this.renderer.html(l);continue}case"def":{i+=this.renderer.def(l);continue}case"paragraph":{i+=this.renderer.paragraph(l);continue}case"text":{let c=l,h=this.renderer.text(c);for(;a+1<t.length&&t[a+1].type==="text";)c=t[++a],h+=`
187`+this.renderer.text(c);r?i+=this.renderer.paragraph({type:"paragraph",raw:h,text:h,tokens:[{type:"text",raw:h,text:h,escaped:!0}]}):i+=h;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 i}parseInline(t,r=this.renderer){var s,o;let i="";for(let a=0;a<t.length;a++){let n=t[a];if((o=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&o[n.type]){let c=this.options.extensions.renderers[n.type].call({parser:this},n);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(n.t
187ype)){i+=c||"";continue}}let l=n;switch(l.type){case"escape":{i+=r.text(l);break}case"html":{i+=r.html(l);break}case"link":{i+=r.link(l);break}case"image":{i+=r.image(l);break}case"strong":{i+=r.strong(l);break}case"em":{i+=r.em(l);break}case"codespan":{i+=r.codespan(l);break}case"br":{i+=r.br(l);break}case"del":{i+=r.del(l);break}case"text":{i+=r.text(l);break}default:{let c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return i}},lo,cs=(lo=class{constructor(t){Kt(this,"options");Kt(this,"block");this.options=t||si}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Ue.lex:Ue.lexInline}provideParser(){return this.block?Ge.parse:Ge.parseInline}},Kt(lo,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Kt(lo,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),lo),Kv=class{constructor(...t){Kt(this,"defaults",Xl());Kt(this,"options",this.setOptions);Kt(this,"parse",this.parseMarkdown(!0));Kt(this,"parseInline",this.parseMarkdown(!1));Kt(this,"Parser",Ge);Kt(this,"Renderer",Ho);Kt(this,"TextRenderer",eh);Kt(this,"Lexer",Ue);Kt(this,"Tokenizer",zo);Kt(this,"Hooks",cs);this.use(...t)}walkTokens(t,r){var s,o;let i=[];for(let a of t)switch(i=i.concat(r.call(this,a)),a.type){case"table":{let n=a;for(let l of n.header)i=i.concat(this.walkTokens(l.tokens,r));for(let l of n.rows)for(let c of l)i=i.concat(this.walkTokens(c.tokens,r));break}case"list":{let n=a;i=i.concat(this.walkTokens(n.items,r));break}default:{let n=a;(o=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&o[n.type]?this.defaults.extensions.childTokens[n.type].forEach(l=>{let c=n[l].flat(1/0);i=i.concat(this.walkTokens(c,r))}):n.tokens&&(i=i.concat(this.walkTokens(n.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(o=>{if(!o.name)throw new Error("extension name required");if("renderer"in o){let a=r.renderers[o.name];a?r.renderers[o.name]=function(...n){let l=o.renderer.apply(this,n);return l===!1&&(l=a.apply(this,n)),l}:r.renderers[o.name]=o.renderer}if("tokenizer"in o){if(!o.level||o.level!=="block"&&o.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=r[o.level];a?a.unshift(o.tokenizer):r[o.level]=[o.tokenizer],o.start&&(o.level==="block"?r.startBlock?r.startBlock.push(o.start):r.startBlock=[o.start]:o.level==="inline"&&(r.startInline?r.startInline.push(o.start):r.startInline=[o.start]))}"childTokens"in o&&o.childTokens&&(r.childTokens[o.name]=o.childTokens)}),s.extensions=r),i.renderer){let o=this.defaults.renderer||new Ho(this.defaults);for(let a in i.renderer){if(!(a in o))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let n=a,l=i.renderer[n],c=o[n];o[n]=(...h)=>{let u=l.apply(o,h);return u===!1&&(u=c.apply(o,h)),u||""}}s.renderer=o}if(i.tokenizer){let o=this.defaults.tokenizer||new zo(this.defaults);for(let a in i.tokenizer){if(!(a in o))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let n=a,l=i.tokenizer[n],c=o[n];o[n]=(...h)=>{let u=l.apply(o,h);return u===!1&&(u=c.apply(o,h)),u}}s.tokenizer=o}if(i.hooks){let o=this.defaults.hooks||new cs;for(let a in i.hooks){if(!(a in o))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let n=a,l=i.hooks[n],c=o[n];cs.passThroughHooks.has(a)?o[n]=h=>{if(this.defaults.async&&cs.passThroughHooksRespectAsync.has(a))return(async()=>{let d=await l.call(o,h);return c.call(o,d)})();let u=l.call(o,h);return c.call(o,u)}:o[n]=(...h)=>{if(this.defaults.async)return(async()=>{let d=await l.apply(o,h);return d===!1&&(d=await c.apply(o,h)),d})();let u=l.apply(o,h);return u===!1&&(u=c.apply(o,h)),u}}s.hooks=o}if(i.walkTokens){let o=this.defaults.walkTokens,a=i.walkTokens;s.walkTokens=function(n){let l=[];return l.push(a.call(this,n)),o&&(l=l.concat(o.call(this,n))),l}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Ue.lex(t,r??this.defaults)}parser(t,r){return Ge.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let s={...i},o={...this.defaults,...s},a=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&s.async===!1)return a(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 a(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o,o.hooks.block=t),o.async)return(async()=>{let n=o.hooks?await o.hooks.preprocess(r):r,l=await(o.hooks?await o.hooks.provideLexer():t?Ue.lex:Ue.lexInline)(n,o),c=o.hooks?await o.hooks.processAllTokens(l):l;o.walkTokens&&await Promise.all(this.walkTokens(c,o.walkTokens));let h=await(o.hooks?await o.hooks.provideParser():t?Ge.parse:Ge.parseInline)(c,o);return o.hooks?await o.hooks.postprocess(h):h})().catch(a);try{o.hooks&&(r=o.hooks.preprocess(r));let n=(o.hooks?o.hooks.provideLexer():t?Ue.lex:Ue.lexInline)(r,o);o.hooks&&(n=o.hooks.processAllTokens(n)),o.walkTokens&&this.walkTokens(n,o.walkTokens);let l=(o.hooks?o.hooks.provideParser():t?Ge.parse:Ge.parseInline)(n,o);return o.hooks&&(l=o.hooks.postprocess(l)),l}catch(n){return a(n)}}}onError(t,r){return i=>{if(i.message+=`
188Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+rr(i.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(i);throw i}}},ei=new Kv;function jt(e,t){return ei.parse(e,t)}jt.options=jt.setOptions=function(e){return ei.setOptions(e),jt.defaults=ei.defaults,Rp(jt.defaults),jt};jt.getDefaults=Xl;jt.defaults=si;
188jt.use=function(...e){return ei.use(...e),jt.defaults=ei.defaults,Rp(jt.defaults),jt};jt.walkTokens=function(e,t){return ei.walkTokens(e,t)};jt.parseInline=ei.parseInline;jt.Parser=Ge;jt.parser=Ge.parse;jt.Renderer=Ho;jt.TextRenderer=eh;jt.Lexer=Ue;jt.lexer=Ue.lex;jt.Tokenizer=zo;jt.Hooks=cs;jt.parse=jt;jt.options;jt.setOptions;jt.use;jt.walkTokens;jt.parseInline;Ge.parse;Ue.lex;function jp(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=Array.from(typeof e=="string"?[e]:e);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var s=i.reduce(function(n,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?n.concat(c.map(function(h){var u,d;return(d=(u=h.match(/[\t ]/g))===null||u===void 0?void 0:u.length)!==null&&d!==void 0?d:0})):n},[]);if(s.length){var o=new RegExp(`
189[	 ]{`.concat(Math.min.apply(Math,s),"}"),"g");i=i.map(function(n){return n.replace(o,`
190`)})}i[0]=i[0].replace(/^\r?\n/,"");var a=i[0];return t.forEach(function(n,l){var c=a.match(/(?:^|\n)( *)$/),h=c?c[1]:"",u=n;typeof n=="string"&&n.includes(`
191`)&&(u=String(n).split(`
192`).map(function(d,f){return f===0?d:"".concat(h).concat(d)}).join(`
193`)),a+=u+i[l+1]}),a}var Qn=typeof performance<"u"&&typeof performance.now=="function",hi=p(()=>Qn?performance.now():0,"now"),qa="🧜 ",Zv="Mermaid render",Qv="Mermaid",Jv={parse:"tertiary",prepare:"secondary",measure:"primary",layout:"primary-dark",layoutCore:"error",draw:"primary-light",paint:"secondary-dark",serialize:"tertiary-dark",render:"primary-light"},Di;Di=class{constructor(){this.enabled=!1,this.autoPrint=!0,this.records=[],this.maxRecords=200,this.roots=[],this.stack=[],this.buckets={}}enable(){return this.enabled=!0,this}disable(){return this.enabled=!1,this}start(t){this.enabled&&(this.roots=[],this.stack=[],this.buckets={},this.begin(t))}tickSync(t,r){if(!this.enabled)return r();const i=hi();try{return r()}finally{this.buckets[t]=(this.buckets[t]??0)+(hi()-i)}}async tick(t,r){if(!this.enabled)return r();const i=hi();try{return await r()}finally{this.buckets[t]=(this.buckets[t]??0)+(hi()-i)}}stop(){if(!this.enabled)return;for(;this.stack.length>0;)this.end();const t=this.roots.at(-1),r=this.runLabel??(t==null?void 0:t.name);return t&&(this.records.push({label:r??t.name,tree:t,buckets:{...this.buckets}}),this.records.length>this.maxRecords&&this.records.splice(0,this.records.length-this.maxRecords),this.autoPrint&&this.printSummary(t,r)),this.runLabel=void 0,t}begin(t){if(!this.enabled)return;const r={name:t,start:hi(),duration:-1,children:[]},i=this.stack.at(-1);if(i?i.children.push(r):this.roots.push(r),this.stack.push(r),Qn&&typeof performance.mark=="function")try{performance.mark(`${qa}${t} ▶`)}catch{}}end(){if(!this.enabled)return;const t=this.stack.pop();if(!t)return;const r=hi();if(t.duration=r-t.start,Qn&&typeof performance.measure=="function")try{performance.measure(`${qa}${t.name}`,{start:t.start,end:r,detail:{devtools:{dataType:"track-entry",track:Zv,trackGroup:Qv,color:Jv[t.name]??"primary",tooltipText:`${t.name} — ${t.duration.toFixed(1)} ms`}}})}catch{}}async span(t,r){if(!this.enabled)return r();this.begin(t);try{return await r()}finally{this.end()}}report(){var t;return((t=this.records.at(-1))==null?void 0:t.tree)??this.roots.at(-1)}clear(){this.records.length=0,this.roots=[],this.stack=[],this.runLabel=void 0}reset(){this.roots=[],this.stack=[]}printSummary(t=this.report(),r){if(!t)return;const i=t.duration,s=r&&r!==t.name?`${t.name} [${r}]`:t.name,o=["ms        %    phase"],a=p((l,c)=>{const h="  ".repeat(c),u=l.duration.toFixed(1).padStart(8),d=i>0?`${(l.duration/i*100).toFixed(0).padStart(3)}%`:"   -";o.push(`${u}  ${d}  ${h}${l.name}`);for(const f of l.children)a(f,c+1);if(l.children.length>0){const f=l.children.reduce((y,C)=>y+C.duration,0),m=l.duration-f;if(m>.5){const y=m.toFixed(1).padStart(8);o.push(`${y}       ${h}  (self)`)}}},"walk");a(t,0);const n=Object.keys(this.buckets);if(n.length>0){o.push("—— buckets (summed) ——");for(const l of n)o.push(`${this.buckets[l].toFixed(1).padStart(8)}       ${l}`)}console.log(`${qa}mermaid render profile · ${s}
194${o.join(`
195`)}`)}},p(Di,"Profiler");globalThis.injected??(globalThis.injected={includeLargeFeatures:!0,profiling:!1,version:"0.0.0"});var tB=uv.extend({raf(e){typeof queueMicrotask=="function"?queueMicrotask(e):setTimeout(e,0)}}).extend(fv),ri=tB;function Vp(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
196`).replace(/\n{2,}/g,`
197`);return jp(i)}p(Vp,"preprocessMarkdown");function Kp(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(t=>{var r;return((r=t.trim().match(/<[^>]+>|[^\s<>]+/g))==null?void 0:r.map(i=>({content:i,type:"normal"})))??[]})}p(Kp,"nonMarkdownToLines");function Zp(e,t={}){const r=Vp(e,t),i=jt.lexer(r),s=[[]];let o=0;function a(n,l="normal"){n.type==="text"?n.text.split(`
198`).forEach((h,u)=>{u!==0&&(o++,s.push([])),h.split(" ").forEach(d=>{d=d.replace(/&#39;/g,"'"),d&&s[o].push({content:d,type:l})})}):n.type==="strong"||n.type==="em"?n.tokens.forEach(c=>{a(c,n.type)}):n.type==="html"&&s[o].push({content:n.text,type:"normal"})}
198return p(a,"processNode"),i.forEach(n=>{var l;n.type==="paragraph"?(l=n.tokens)==null||l.forEach(c=>{a(c)}):n.type==="html"?s[o].push({content:n.text,type:"normal"}):s[o].push({content:n.raw,type:"normal"})}),s}p(Zp,"markdownToLines");function Qp(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}p(Qp,"nonMarkdownToHTML");function Jp(e,{markdownAutoWrap:t}={}){const r=jt.lexer(e);function i(s){var o,a,n;return s.type==="text"?t===!1?s.text.replace(/\n */g,"<br/>").replace(/ /g,"&nbsp;"):s.text.replace(/\n */g,"<br/>"):s.type==="strong"?`<strong>${(o=s.tokens)==null?void 0:o.map(i).join("")}</strong>`:s.type==="em"?`<em>${(a=s.tokens)==null?void 0:a.map(i).join("")}</em>`:s.type==="paragraph"?`<p>${(n=s.tokens)==null?void 0:n.map(i).join("")}</p>`:s.type==="space"?"":s.type==="html"?`${s.text}`:s.type==="escape"?s.text:(I.warn(`Unsupported markdown: ${s.type}`),s.raw)}return p(i,"output"),r.map(i).join("")}p(Jp,"markdownToHTML");function tg(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}p(tg,"splitTextToChars");function eg(e,t){const r=tg(t.content);return rh(e,[],r,t.type)}p(eg,"splitWordToFitWidth");function rh(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[s,...o]=r,a=[...t,s];return e([{content:a.join(""),type:i}])?rh(e,a,o,i):(t.length===0&&s&&(t.push(s),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}p(rh,"splitWordToFitWidthRecursion");function rg(e,t){if(e.some(({content:r})=>r.includes(`
199`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return Yo(e,t)}p(rg,"splitLineToFitWidth");function Yo(e,t,r=[],i=[]){if(e.length===0)return i.length>0&&r.push(i),r.length>0?r:[];let s="";e[0].content===" "&&(s=" ",e.shift());const o=e.shift()??{content:" ",type:"normal"},a=[...i];if(s!==""&&a.push({content:s,type:"normal"}),a.push(o),t(a))return Yo(e,t,r,a);if(i.length>0)r.push(i),e.unshift(o);else if(o.content){const[n,l]=eg(t,o);r.push([n]),l.content&&e.unshift(l)}return Yo(e,t,r)}p(Yo,"splitLineToFitWidthRecursion");function Jn(e,t){t&&e.attr("style",t)}p(Jn,"applyStyle");var xu=16384;async function ig(e,t,r,i,s=!1,o=Jt()){const a=e.append("foreignObject");a.attr("width",`${Math.min(10*r,xu)}px`),a.attr("height",`${Math.min(10*r,xu)}px`);const n=a.append("xhtml:div"),l=bs(t.label)?await xf(t.label.replace(Ms.lineBreakRegex,`
200`),o):ze(t.label,o),c=t.isNode?"nodeLabel":"edgeLabel",h=n.append("span");return h.html(l),Jn(h,t.labelStyle),h.attr("class",`${c} ${i}`),Jn(n,t.labelStyle),n.style("display","table-cell"),n.style("white-space","nowrap"),n.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(n.style("max-width",r+"px"),n.style("text-align","center")),n.attr("xmlns","http://www.w3.org/1999/xhtml"),s&&n.attr("class","labelBkg"),(await ri.measure(()=>n.node().getBoundingClientRect())).width===r&&(n.style("display","table"),n.style("white-space","break-spaces"),n.style("width",r+"px")),a.node()}p(ig,"addHtmlSpan");function la(e,t,r,i=!1){const s=e.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",t*r-.1+"em").attr("dy",r+"em");return i&&s.attr("text-anchor","middle"),s}p(la,"createTspan");function sg(e,t,r){const i=e.append("text"),s=la(i,1,t);ha(s,r);const o=s.node().getComputedTextLength();return i.remove(),o}p(sg,"computeWidthOfText");function eB(e,t,r){var a;const i=e.append("text"),s=la(i,1,t);ha(s,[{content:r,type:"normal"}]);const o=(a=s.node())==null?void 0:a.getBoundingClientRect();return o&&i.remove(),o}p(eB,"computeDimensionOfText");function og(e,t,r,i=!1,s=!1){const a=t.append("g"),n=a.insert("rect").attr("class","background").attr("style","stroke: none"),l=a.append("text").attr("y","-10.1");s&&l.attr("text-anchor","middle");let c=0;for(const h of r){const u=p(f=>sg(a,1.1,f)<=e,"checkWidth"),d=u(h)?[h]:rg(h,u);for(const f of d){const m=la(l,c,1.1,s);ha(m,f),c++}}if(i){const h=l.node().getBBox(),u=2;return n.attr("x",h.x-u).attr("y",h.y-u).attr("width",h.width+2*u).attr("height",h.height+2*u),a.node()}else return l.node()}p(og,"createFormattedText");function tl(e){const t=/&(amp|lt|gt);/g;return e.replace(t,(r,i)=>{switch(i){case"amp":return"&";case"lt":return"<";case"gt":return">";default:return r}})}p(tl,"decodeHTMLEntities");function ha(e,t){e.text(""),t.forEach((r,i)=>{const s=e.append("tspan").attr("font-style",r.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",r.type==="strong"?"bold":"normal");i===0?s.text(tl(r.content)):s.text(" "+tl(r.content))})}p(ha,"updateTextContentAndStyles");async function ag(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(s,o,a)=>(r.push((async()=>{const n=`${o}:${a}`;return await u_(n)?await Rs(n,void 0,{class:"label-icon"}):`<i class='${ze(s,t).replace(":"," ")}'></i>`})()),s));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}p(ag,"replaceIconSubstring");var Qe=p(async(e,t="",{style:r="",isTitle:i=!1,classes:s="",useHtmlLabels:o=!0,markdown:a=!0,isNode:n=!0,width:l=200,addSvgBackgroun
200d:c=!1}={},h)=>{if(I.debug("XYZ createText",t,r,i,s,o,n,"addSvgBackground: ",c),o){const u=a?Jp(t,h):Qp(t),d=await ag(Nr(u),h),f=t.replace(/\\\\/g,"\\"),m={isNode:n,label:bs(t)?f:d,labelStyle:r.replace("fill:","color:")};return await ig(e,m,l,s,c,h)}else{const u=Nr(t.replace(/<br\s*\/?>/g,"<br/>")),d=a?Zp(u.replace("<br>","<br/>"),h):Kp(u),f=og(l,e,d,t?c:!1,!n);if(n){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Ot(f).attr("style",m)}else{const m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");Ot(f).select("rect").attr("style",m.replace(/background:/g,"fill:"));const y=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");Ot(f).select("text").attr("style",y)}return i?Ot(f).selectAll("tspan.text-outer-tspan").classed("title-row",!0):Ot(f).selectAll("tspan.text-outer-tspan").classed("row",!0),f}},"createText");function Wa(e,t,r){if(e&&e.length){const[i,s]=t,o=Math.PI/180*r,a=Math.cos(o),n=Math.sin(o);for(const l of e){const[c,h]=l;l[0]=(c-i)*a-(h-s)*n+i,l[1]=(c-i)*n+(h-s)*a+s}}}function rB(e,t){return e[0]===t[0]&&e[1]===t[1]}function iB(e,t,r,i=1){const s=r,o=Math.max(t,.1),a=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,n=[0,0];if(s)for(const c of a)Wa(c,n,s);const l=function(c,h,u){const d=[];for(const k of c){const T=[...k];rB(T[0],T[T.length-1])||T.push([T[0][0],T[0][1]]),T.length>2&&d.push(T)}const f=[];h=Math.max(h,.1);const m=[];for(const k of d)for(let T=0;T<k.length-1;T++){const S=k[T],v=k[T+1];if(S[1]!==v[1]){const B=Math.min(S[1],v[1]);m.push({ymin:B,ymax:Math.max(S[1],v[1]),x:B===S[1]?S[0]:v[0],islope:(v[0]-S[0])/(v[1]-S[1])})}}if(m.sort((k,T)=>k.ymin<T.ymin?-1:k.ymin>T.ymin?1:k.x<T.x?-1:k.x>T.x?1:k.ymax===T.ymax?0:(k.ymax-T.ymax)/Math.abs(k.ymax-T.ymax)),!m.length)return f;let y=[],C=m[0].ymin,x=0;for(;y.length||m.length;){if(m.length){let k=-1;for(let T=0;T<m.length&&!(m[T].ymin>C);T++)k=T;m.splice(0,k+1).forEach(T=>{y.push({s:C,edge:T})})}if(y=y.filter(k=>!(k.edge.ymax<=C)),y.sort((k,T)=>k.edge.x===T.edge.x?0:(k.edge.x-T.edge.x)/Math.abs(k.edge.x-T.edge.x)),(u!==1||x%h==0)&&y.length>1)for(let k=0;k<y.length;k+=2){const T=k+1;if(T>=y.length)break;const S=y[k].edge,v=y[T].edge;f.push([[Math.round(S.x),C],[Math.round(v.x),C]])}C+=u,y.forEach(k=>{k.edge.x=k.edge.x+u*k.edge.islope}),x++}return f}(a,o,i);if(s){for(const c of a)Wa(c,n,-s);(function(c,h,u){const d=[];c.forEach(f=>d.push(...f)),Wa(d,h,u)})(l,n,-s)}return l}function qs(e,t){var r;const i=t.hachureAngle+90;let s=t.hachureGap;s<0&&(s=4*t.strokeWidth),s=Math.round(Math.max(s,.1));let o=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(o=s),iB(e,s,i,o||1)}class ih{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=qs(t,r);return{type:"fillSketch",ops:this.renderLines(i,r)}}renderLines(t,r){const i=[];for(const s of t)i.push(...this.helper.doubleLineOps(s[0][0],s[0][1],s[1][0],s[1][1],r));return i}}function ca(e){const t=e[0],r=e[1];return Math.sqrt(Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2))}class sB extends ih{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const s=qs(t,Object.assign({},r,{hachureGap:i})),o=Math.PI/180*r.hachureAngle,a=[],n=.5*i*Math.cos(o),l=.5*i*Math.sin(o);for(const[c,h]of s)ca([c,h])&&a.push([[c[0]-n,c[1]+l],[...h]],[[c[0]+n,c[1]-l],[...h]]);return{type:"fillSketch",ops:this.renderLines(a,r)}}}class oB extends ih{fillPolygons(t,r){const i=this._fillPolygons(t,r),s=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),o=this._fillPolygons(t,s);return i.ops=i.ops.concat(o.ops),i}}class aB{constructor(t){this.helper=t}fillPolygons(t,r){const i=qs(t,r=Object.assign({},r,{hachureAngle:0}));return this.dotsOnLines(i,r)}dotsOnLines(t,r){const i=[];let s=r.hachureGap;s<0&&(s=4*r.strokeWidth),s=Math.max(s,.1);let o=r.fillWeight;o<0&&(o=r.strokeWidth/2);const a=s/4;for(const n of t){const l=ca(n),c=l/s,h=Math.ceil(c)-1,u=l-h*s,d=(n[0][0]+n[1][0])/2-s/4,f=Math.min(n[0][1],n[1][1]);for(let m=0;m<h;m++){const y=f+u+m*s,C=d-a+2*Math.random()*a,x=y-a+2*Math.random()*a,k=this.helper.ellipse(C,x,o,o,r);i.push(...k.ops)}}return{type:"fillSketch",ops:i}}}class nB{constructor(t){this.helper=t}fillPolygons(t,r){const i=qs(t,r);return{type:"fillSketch",ops:this.dashedLine(i,r)}}dashedLine(t,r){const i=r.dashOffset<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashOffset,s=r.dashGap<0?r.hachureGap<0?4*r.strokeWidth:r.hachureGap:r.dashGap,o=[];return t.forEach(a=>{const n=ca(a),l=Math.floor(n/(i+s)),c=(n+s-l*(i+s))/2;let h=a[0],u=a[1];h[0]>u[0]&&(h=a[1],u=a[0]);const d=Math.atan((u[1]-h[1])/(u[0]-h[0]));for(let f=0;f<l;f++){const m=f*(i+s),y=m+i,C=[h[0]+m*Math.cos(d)+c*Math.cos(d),h[1]+m*Math.sin(d)+c*
200Math.sin(d)],x=[h[0]+y*Math.cos(d)+c*Math.cos(d),h[1]+y*Math.sin(d)+c*Math.sin(d)];o.push(...this.helper.doubleLineOps(C[0],C[1],x[0],x[1],r))}}),o}}class lB{constructor(t){this.helper=t}fillPolygons(t,r){const i=r.hachureGap<0?4*r.strokeWidth:r.hachureGap,s=r.zigzagOffset<0?i:r.zigzagOffset,o=qs(t,r=Object.assign({},r,{hachureGap:i+s}));return{type:"fillSketch",ops:this.zigzagLines(o,s,r)}}zigzagLines(t,r,i){const s=[];return t.forEach(o=>{const a=ca(o),n=Math.round(a/(2*r));let l=o[0],c=o[1];l[0]>c[0]&&(l=o[1],c=o[0]);const h=Math.atan((c[1]-l[1])/(c[0]-l[0]));for(let u=0;u<n;u++){const d=2*u*r,f=2*(u+1)*r,m=Math.sqrt(2*Math.pow(r,2)),y=[l[0]+d*Math.cos(h),l[1]+d*Math.sin(h)],C=[l[0]+f*Math.cos(h),l[1]+f*Math.sin(h)],x=[y[0]+m*Math.cos(h+Math.PI/4),y[1]+m*Math.sin(h+Math.PI/4)];s.push(...this.helper.doubleLineOps(y[0],y[1],x[0],x[1],i),...this.helper.doubleLineOps(x[0],x[1],C[0],C[1],i))}}),s}}const Fe={};class hB{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}}const cB=0,za=1,Cu=2,eo={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 Ha(e,t){return e.type===t}function sh(e){const t=[],r=function(a){const n=new Array;for(;a!=="";)if(a.match(/^([ \t\r\n,]+)/))a=a.substr(RegExp.$1.length);else if(a.match(/^([aAcChHlLmMqQsStTvVzZ])/))n[n.length]={type:cB,text:RegExp.$1},a=a.substr(RegExp.$1.length);else{if(!a.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];n[n.length]={type:za,text:`${parseFloat(RegExp.$1)}`},a=a.substr(RegExp.$1.length)}return n[n.length]={type:Cu,text:""},n}(e);let i="BOD",s=0,o=r[s];for(;!Ha(o,Cu);){let a=0;const n=[];if(i==="BOD"){if(o.text!=="M"&&o.text!=="m")return sh("M0,0"+e);s++,a=eo[o.text],i=o.text}else Ha(o,za)?a=eo[i]:(s++,a=eo[o.text],i=o.text);if(!(s+a<r.length))throw new Error("Path data ended short");for(let l=s;l<s+a;l++){const c=r[l];if(!Ha(c,za))throw new Error("Param not a number: "+i+","+c.text);n[n.length]=+c.text}if(typeof eo[i]!="number")throw new Error("Bad segment: "+i);{const l={key:i,data:n};t.push(l),s+=a,o=r[s],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function ng(e){let t=0,r=0,i=0,s=0;const o=[];for(const{key:a,data:n}of e)switch(a){case"M":o.push({key:"M",data:[...n]}),[t,r]=n,[i,s]=n;break;case"m":t+=n[0],r+=n[1],o.push({key:"M",data:[t,r]}),i=t,s=r;break;case"L":o.push({key:"L",data:[...n]}),[t,r]=n;break;case"l":t+=n[0],r+=n[1],o.push({key:"L",data:[t,r]});break;case"C":o.push({key:"C",data:[...n]}),t=n[4],r=n[5];break;case"c":{const l=n.map((c,h)=>h%2?c+r:c+t);o.push({key:"C",data:l}),t=l[4],r=l[5];break}case"Q":o.push({key:"Q",data:[...n]}),t=n[2],r=n[3];break;case"q":{const l=n.map((c,h)=>h%2?c+r:c+t);o.push({key:"Q",data:l}),t=l[2],r=l[3];break}case"A":o.push({key:"A",data:[...n]}),t=n[5],r=n[6];break;case"a":t+=n[5],r+=n[6],o.push({key:"A",data:[n[0],n[1],n[2],n[3],n[4],t,r]});break;case"H":o.push({key:"H",data:[...n]}),t=n[0];break;case"h":t+=n[0],o.push({key:"H",data:[t]});break;case"V":o.push({key:"V",data:[...n]}),r=n[0];break;case"v":r+=n[0],o.push({key:"V",data:[r]});break;case"S":o.push({key:"S",data:[...n]}),t=n[2],r=n[3];break;case"s":{const l=n.map((c,h)=>h%2?c+r:c+t);o.push({key:"S",data:l}),t=l[2],r=l[3];break}case"T":o.push({key:"T",data:[...n]}),t=n[0],r=n[1];break;case"t":t+=n[0],r+=n[1],o.push({key:"T",data:[t,r]});break;case"Z":case"z":o.push({key:"Z",data:[]}),t=i,r=s}return o}function lg(e){const t=[];let r="",i=0,s=0,o=0,a=0,n=0,l=0;for(const{key:c,data:h}of e){switch(c){case"M":t.push({key:"M",data:[...h]}),[i,s]=h,[o,a]=h;break;case"C":t.push({key:"C",data:[...h]}),i=h[4],s=h[5],n=h[2],l=h[3];break;case"L":t.push({key:"L",data:[...h]}),[i,s]=h;break;case"H":i=h[0],t.push({key:"L",data:[i,s]});break;case"V":s=h[0],t.push({key:"L",data:[i,s]});break;case"S":{let u=0,d=0;r==="C"||r==="S"?(u=i+(i-n),d=s+(s-l)):(u=i,d=s),t.push({key:"C",data:[u,d,...h]}),n=h[0],l=h[1],i=h[2],s=h[3];break}case"T":{const[u,d]=h;let f=0,m=0;r==="Q"||r==="T"?(f=i+(i-n),m=s+(s-l)):(f=i,m=s);const y=i+2*(f-i)/3,C=s+2*(m-s)/3,x=u+2*(f-u)/3,k=d+2*(m-d)/3;t.push({key:"C",data:[y,C,x,k,u,d]}),n=f,l=m,i=u,s=d;break}case"Q":{const[u,d,f,m]=h,y=i+2*(u-i)/3,C=s+2*(d-s)/3,x=f+2*(u-f)/3,k=m+2*(d-m)/3;t.push({key:"C",data:[y,C,x,k,f,m]}),n=u,l=d,i=f,s=m;break}case"A":{const u=Math.abs(h[0]),d=Math.abs(h[1]),f=h[2],m=h[3],y=h[4],C=h[5],x=h[6];u===0||d===0?(t.push({key:"C",data:[i,s,C,x,C,x]}
200),i=C,s=x):(i!==C||s!==x)&&(hg(i,s,C,x,u,d,f,m,y).forEach(function(k){t.push({key:"C",data:k})}),i=C,s=x);break}case"Z":t.push({key:"Z",data:[]}),i=o,s=a}r=c}return t}function es(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function hg(e,t,r,i,s,o,a,n,l,c){const h=(u=a,Math.PI*u/180);var u;let d=[],f=0,m=0,y=0,C=0;if(c)[f,m,y,C]=c;else{[e,t]=es(e,t,-h),[r,i]=es(r,i,-h);const q=(e-r)/2,W=(t-i)/2;let K=q*q/(s*s)+W*W/(o*o);K>1&&(K=Math.sqrt(K),s*=K,o*=K);const A=s*s,V=o*o,et=A*V-A*W*W-V*q*q,Z=A*W*W+V*q*q,lt=(n===l?-1:1)*Math.sqrt(Math.abs(et/Z));y=lt*s*W/o+(e+r)/2,C=lt*-o*q/s+(t+i)/2,f=Math.asin(parseFloat(((t-C)/o).toFixed(9))),m=Math.asin(parseFloat(((i-C)/o).toFixed(9))),e<y&&(f=Math.PI-f),r<y&&(m=Math.PI-m),f<0&&(f=2*Math.PI+f),m<0&&(m=2*Math.PI+m),l&&f>m&&(f-=2*Math.PI),!l&&m>f&&(m-=2*Math.PI)}let x=m-f;if(Math.abs(x)>120*Math.PI/180){const q=m,W=r,K=i;m=l&&m>f?f+120*Math.PI/180*1:f+120*Math.PI/180*-1,d=hg(r=y+s*Math.cos(m),i=C+o*Math.sin(m),W,K,s,o,a,0,l,[m,q,y,C])}x=m-f;const k=Math.cos(f),T=Math.sin(f),S=Math.cos(m),v=Math.sin(m),B=Math.tan(x/4),L=4/3*s*B,O=4/3*o*B,U=[e,t],N=[e+L*T,t-O*k],Y=[r+L*v,i-O*S],st=[r,i];if(N[0]=2*U[0]-N[0],N[1]=2*U[1]-N[1],c)return[N,Y,st].concat(d);{d=[N,Y,st].concat(d);const q=[];for(let W=0;W<d.length;W+=3){const K=es(d[W][0],d[W][1],h),A=es(d[W+1][0],d[W+1][1],h),V=es(d[W+2][0],d[W+2][1],h);q.push([K[0],K[1],A[0],A[1],V[0],V[1]])}return q}}const uB={randOffset:function(e,t){return vt(e,t)},randOffsetWithRange:function(e,t,r){return Uo(e,t,r)},ellipse:function(e,t,r,i,s){const o=ug(r,i,s);return el(e,t,s,o).opset},doubleLineOps:function(e,t,r,i,s){return qr(e,t,r,i,s,!0)}};function cg(e,t,r,i,s){return{type:"path",ops:qr(e,t,r,i,s)}}function wo(e,t,r){const i=(e||[]).length;if(i>2){const s=[];for(let o=0;o<i-1;o++)s.push(...qr(e[o][0],e[o][1],e[o+1][0],e[o+1][1],r));return t&&s.push(...qr(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:s}}return i===2?cg(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function dB(e,t,r,i,s){return function(o,a){return wo(o,!0,a)}([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],s)}function bu(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=ro(r[0],1*(1+.2*t.roughness),t),s=t.disableMultiStroke?[]:ro(r[0],1.5*(1+.22*t.roughness),Tu(t));for(let o=1;o<r.length;o++){const a=r[o];if(a.length){const n=ro(a,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:ro(a,1.5*(1+.22*t.roughness),Tu(t));for(const c of n)c.op!=="move"&&i.push(c);for(const c of l)c.op!=="move"&&s.push(c)}}return{type:"path",ops:i.concat(s)}}return{type:"path",ops:[]}}function ug(e,t,r){const i=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(e/2,2)+Math.pow(t/2,2))/2)),s=Math.ceil(Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*i)),o=2*Math.PI/s;let a=Math.abs(e/2),n=Math.abs(t/2);const l=1-r.curveFitting;return a+=vt(a*l,r),n+=vt(n*l,r),{increment:o,rx:a,ry:n}}function el(e,t,r,i){const[s,o]=Su(i.increment,e,t,i.rx,i.ry,1,i.increment*Uo(.1,Uo(.4,1,r),r),r);let a=Go(s,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[n]=Su(i.increment,e,t,i.rx,i.ry,1.5,0,r),l=Go(n,null,r);a=a.concat(l)}return{estimatedPoints:o,opset:{type:"path",ops:a}}}function ku(e,t,r,i,s,o,a,n,l){const c=e,h=t;let u=Math.abs(r/2),d=Math.abs(i/2);u+=vt(.01*u,l),d+=vt(.01*d,l);let f=s,m=o;for(;f<0;)f+=2*Math.PI,m+=2*Math.PI;m-f>2*Math.PI&&(f=0,m=2*Math.PI);const y=2*Math.PI/l.curveStepCount,C=Math.min(y/2,(m-f)/2),x=_u(C,c,h,u,d,f,m,1,l);if(!l.disableMultiStroke){const k=_u(C,c,h,u,d,f,m,1.5,l);x.push(...k)}return a&&(n?x.push(...qr(c,h,c+u*Math.cos(f),h+d*Math.sin(f),l),...qr(c,h,c+u*Math.cos(m),h+d*Math.sin(m),l)):x.push({op:"lineTo",data:[c,h]},{op:"lineTo",data:[c+u*Math.cos(f),h+d*Math.sin(f)]})),{type:"path",ops:x}}function wu(e,t){const r=lg(ng(sh(e))),i=[];let s=[0,0],o=[0,0];for(const{key:a,data:n}of r)switch(a){case"M":o=[n[0],n[1]],s=[n[0],n[1]];break;case"L":i.push(...qr(o[0],o[1],n[0],n[1],t)),o=[n[0],n[1]];break;case"C":{const[l,c,h,u,d,f]=n;i.push(...fB(l,c,h,u,d,f,o,t)),o=[d,f];break}case"Z":i.push(...qr(o[0],o[1],s[0],s[1],t)),o=[s[0],s[1]]}return{type:"path",ops:i}}function Ya(e,t){const r=[];for(const i of e)if(i.length){const s=t.maxRandomnessOffset||0,o=i.length;if(o>2){r.push({op:"move",data:[i[0][0]+vt(s,t),i[0][1]+vt(s,t)]});for(let a=1;a<o;a++)r.push({op:"lineTo",data:[i[a][0]+vt(s,t),i[a][1]+vt(s,t)]})}}return{type:"fillPath",ops:r}}function ci(e,t){return function(r,i){let s=r.fillStyle||"hachure";if(!Fe[s])switch(s){case"zigzag":Fe[s]||(Fe[s]=new sB(i));break;case"cross-hatch":Fe[s]||(Fe[s]=new oB(i));break;case"dots":Fe[s]||(Fe[s]=new aB(i));break;case"dashed":Fe[s]||(Fe[s]=new nB(i));break;case"zigzag-line":Fe[s]||(Fe[s]=new lB(i));break;default:s="hachure",Fe[s]||(Fe[s]=new ih(i))}return Fe[s]}(t,uB).fillPolygons(e,t)}function Tu(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function dg(e){return e.randomizer||(e.randomizer=new hB(e.seed||0)),e.randomizer.next()}function Uo(e,t,r,i=1){return r.roughness*i*(dg(r)*(t-e)+e)}function vt(e,t,r=1){return Uo(-e,e,t,r)}function qr(e,t,r,i,s,o=!1){const a=o?s.disableMultiStrokeFill:s.disableMultiStroke,n=rl(e,t,r,i,s,!0,!1);if(a)return n;const l=rl(e,t,r,i,s,!0,!0);return n.concat(l)}function rl(e,t,r,i,s,o,a){const n=Math.pow(e-r,2)+Math.pow(t-i,2),l=Math.sqrt(n);let c=1;c=l<200?1:l>500?.4:-.0016668*l+1.233334;let h=s.maxRandomnessOffset||0;h*h*100>n&&(h=l/10);const u=h/2,d=.2+.2*dg(s);let f=s.bowing*s.maxRandomnessOffset*(i-t)/200,m=s.bowing*s.maxRandomnessOffset*(e-r)/200;f=vt(f,s,c),m=vt(m,s,c);const y=[],C=()=>vt(u,s,c),x=()=>vt(h,s,c),k=s.preserveVertices;return a?y.push({op:"move",data:[e+(k?0:C()),t+(k?0:C())]}):y.push({op:"move",data:[e+(k?0:vt(h,s,c)),t+(k?0:vt(h,s,c))]}),a?y.push({op:"bcurveTo",data:[f+e+(r-e)*d+C(),m+t+(i-t)*d+C(),f+e+2*(r-e)*d+C(),m+t+2*(i-t)*d+C(),r+(k?0:C()),i+(k?0:C())]}):y.push({op:"bcurveTo",data:[f+e+(r-e)*d+x(),m+t+(i-t)*d+x(),f+e+2*(r-e)*d+x(),m+t+2*(i-t)*d+x(),r+(k?0:x()),i+(k?0:x())]}),y}function ro(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+vt(t,r),e[0][1]+vt(t,r)]),i.push([e[0][0]+vt(t,r),e[0][1]+vt(t,r)]);for(let s=1;s<e.length;s++)i.push([e[s][0]+vt(t,r),e[s][1]+vt(t,r)]),s===e.length-1&&i.push([e[s][0]+vt(t,r),e[s][1]+vt(t,r)]);return Go(i,null,r)}function Go(e,t,r){const i=e.length,s=[];if(i>3){const o=[],a=1-r.curveTightness;s.push({op:"move",data:[e[1][0],e[1][1]]});for(let n=1;n+2<i;n++){const l=e[n];o[0]=[l[0],l[1]],o[1]=[l[0]+(a*e[n+1][0]-a*e[n-1][0])/6,l[1]+(a*e[n+1][1]-a*e[n-1][1])/6],o[2]=[e[n+1][0]+(a*e[n][0]-a*e[n+2][0])/6,e[n+1][1]+(a*e[n][1]-a*e[n+2][1])/6],o[3]=[e[n+1][0],e[n+1][1]],s.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}}else i===3?(s.push({op:"move",data:[e[1][0],e[1][1]]}),s.push({op:"bcurveTo",data:[e[1][0],e[1][1],e[2][0],e[2][1],e[2][0],e[2][1]]})):i===2&&s.push(...rl(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return s}function Su(e,t,r,i,s,o,a,n){const l=[],c=[];if(n.roughness===0){e/=4,c.push([t+i*Math.cos(-e),r+s*Math.sin(-e)]);for(let h=0;h<=2*Math.PI;h+=e){const u=[t+i*Math.cos(h),r+s*Math.sin(h)];l.push(u),c.push(u)}c.push([t+i*Math.cos(0),r+s*Math.sin(0)]),c.push([t+i*Math.cos(e),r+s*Math.sin(e)])}else{const h=vt(.5,n)-Math.PI/2;c.push([vt(o,n)+t+.9*i*Math.cos(h-e),vt(o,n)+r+.9*s*Math.sin(h-e)]);const u=2*Math.PI+h-.01;for(let d=h;d<u;d+=e){const f=[vt(o,n)+t+i*Math.cos(d),vt(o,n)+r+s*Math.sin(d)];l.push(f),c.push(f)}c.push([vt(o,n)+t+i*Math.cos(h+2*Math.PI+.5*a),vt(o,n)+r+s*Math.sin(h+2*Math.PI+.5*a)]),c.push([vt(o,n)+t+.98*i*Math.cos(h+a),vt(o,n)+r+.98*s*Math.sin(h+a)]),c.push([vt(o,n)+t+.9*i*Math.cos(h+.5*a),vt(o,n)+r+.9*s*Math.sin(h+.5*a)])}return[c,l]}function _u(e,t,r,i,s,o,a,n,l){const c=o+vt(.1,l),h=[];h.push([vt(n,l)+t+.9*i*Math.cos(c-e),vt(n,l)+r+.9*s*Math.sin(c-e)]);for(let u=c;u<=a;u+=e)h.push([vt(n,l)+t+i*Math.cos(u),vt(n,l)+r+s*Math.sin(u)]);return h.push([t+i*Math.cos(a),r+s*Math.sin(a)]),h.push([t+i*Math.cos(a),r+s*Math.sin(a)]),Go(h,null,l)}function fB(e,t,r,i,s,o,a,n){const l=[],c=[n.maxRandomnessOffset||1,(n.maxRandomnessOffset||1)+.3];let h=[0,0];const u=n.disableMultiStroke?1:2,d=n.preserveVertices;for(let f=0;f<u;f++)f===0?l.push({op:"move",data:[a[0],a[1]]}):l.push({op:"move",data:[a[0]+(d?0:vt(c[0],n)),a[1]+(d?0:vt(c[0],n))]}),h=d?[s,o]:[s+vt(c[f],n),o+vt(c[f],n)],l.push({op:"bcurveTo",data:[e+vt(c[f],n),t+vt(c[f],n),r+vt(c[f],n),i+vt(c[f],n),h[0],h[1]]});return l}function rs(e){return[...e]}function vu(e,t=0){const r=e.length;if(r<3)throw new Error("A curve must have at least three points.");const i=[];if(r===3)i.push(rs(e[0]),rs(e[1]),rs(e[2]),rs(e[2]));else{const s=[];
200s.push(e[0],e[0]);for(let n=1;n<e.length;n++)s.push(e[n]),n===e.length-1&&s.push(e[n]);const o=[],a=1-t;i.push(rs(s[0]));for(let n=1;n+2<s.length;n++){const l=s[n];o[0]=[l[0],l[1]],o[1]=[l[0]+(a*s[n+1][0]-a*s[n-1][0])/6,l[1]+(a*s[n+1][1]-a*s[n-1][1])/6],o[2]=[s[n+1][0]+(a*s[n][0]-a*s[n+2][0])/6,s[n+1][1]+(a*s[n][1]-a*s[n+2][1])/6],o[3]=[s[n+1][0],s[n+1][1]],i.push(o[1],o[2],o[3])}}return i}function To(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function pB(e,t,r){const i=To(t,r);if(i===0)return To(e,t);let s=((e[0]-t[0])*(r[0]-t[0])+(e[1]-t[1])*(r[1]-t[1]))/i;return s=Math.max(0,Math.min(1,s)),To(e,jr(t,r,s))}function jr(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function il(e,t,r,i){const s=i||[];if(function(n,l){const c=n[l+0],h=n[l+1],u=n[l+2],d=n[l+3];let f=3*h[0]-2*c[0]-d[0];f*=f;let m=3*h[1]-2*c[1]-d[1];m*=m;let y=3*u[0]-2*d[0]-c[0];y*=y;let C=3*u[1]-2*d[1]-c[1];return C*=C,f<y&&(f=y),m<C&&(m=C),f+m}(e,t)<r){const n=e[t+0];s.length?(o=s[s.length-1],a=n,Math.sqrt(To(o,a))>1&&s.push(n)):s.push(n),s.push(e[t+3])}else{const l=e[t+0],c=e[t+1],h=e[t+2],u=e[t+3],d=jr(l,c,.5),f=jr(c,h,.5),m=jr(h,u,.5),y=jr(d,f,.5),C=jr(f,m,.5),x=jr(y,C,.5);il([l,d,y,x],0,r,s),il([x,C,m,u],0,r,s)}var o,a;return s}function gB(e,t){return Xo(e,0,e.length,t)}function Xo(e,t,r,i,s){const o=s||[],a=e[t],n=e[r-1];let l=0,c=1;for(let h=t+1;h<r-1;++h){const u=pB(e[h],a,n);u>l&&(l=u,c=h)}return Math.sqrt(l)>i?(Xo(e,t,c+1,i,o),Xo(e,c,r,i,o)):(o.length||o.push(a),o.push(n)),o}function Ua(e,t=.15,r){const i=[],s=(e.length-1)/3;for(let o=0;o<s;o++)il(e,3*o,t,i);return r&&r>0?Xo(i,0,i.length,r):i}const $e="none";class jo{constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,r,i){return{shape:t,sets:r||[],options:i||this.defaultOptions}}line(t,r,i,s,o){const a=this._o(o);return this._d("line",[cg(t,r,i,s,a)],a)}rectangle(t,r,i,s,o){const a=this._o(o),n=[],l=dB(t,r,i,s,a);if(a.fill){const c=[[t,r],[t+i,r],[t+i,r+s],[t,r+s]];a.fillStyle==="solid"?n.push(Ya([c],a)):n.push(ci([c],a))}return a.stroke!==$e&&n.push(l),this._d("rectangle",n,a)}ellipse(t,r,i,s,o){const a=this._o(o),n=[],l=ug(i,s,a),c=el(t,r,a,l);if(a.fill)if(a.fillStyle==="solid"){const h=el(t,r,a,l).opset;h.type="fillPath",n.push(h)}else n.push(ci([c.estimatedPoints],a));return a.stroke!==$e&&n.push(c.opset),this._d("ellipse",n,a)}circle(t,r,i,s){const o=this.ellipse(t,r,i,i,s);return o.shape="circle",o}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[wo(t,!1,i)],i)}arc(t,r,i,s,o,a,n=!1,l){const c=this._o(l),h=[],u=ku(t,r,i,s,o,a,n,!0,c);if(n&&c.fill)if(c.fillStyle==="solid"){const d=Object.assign({},c);d.disableMultiStroke=!0;const f=ku(t,r,i,s,o,a,!0,!1,d);f.type="fillPath",h.push(f)}else h.push(function(d,f,m,y,C,x,k){const T=d,S=f;let v=Math.abs(m/2),B=Math.abs(y/2);v+=vt(.01*v,k),B+=vt(.01*B,k);let L=C,O=x;for(;L<0;)L+=2*Math.PI,O+=2*Math.PI;O-L>2*Math.PI&&(L=0,O=2*Math.PI);const U=(O-L)/k.curveStepCount,N=[];for(let Y=L;Y<=O;Y+=U)N.push([T+v*Math.cos(Y),S+B*Math.sin(Y)]);return N.push([T+v*Math.cos(O),S+B*Math.sin(O)]),N.push([T,S]),ci([N],k)}(t,r,i,s,o,a,c));return c.stroke!==$e&&h.push(u),this._d("arc",h,c)}curve(t,r){const i=this._o(r),s=[],o=bu(t,i);if(i.fill&&i.fill!==$e)if(i.fillStyle==="solid"){const a=bu(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(a.ops)})}else{const a=[],n=t;if(n.length){const l=typeof n[0][0]=="number"?[n]:n;for(const c of l)c.length<3?a.push(...c):c.length===3?a.push(...Ua(vu([c[0],c[0],c[
2001],c[2]]),10,(1+i.roughness)/2)):a.push(...Ua(vu(c),10,(1+i.roughness)/2))}a.length&&s.push(ci([a],i))}return i.stroke!==$e&&s.push(o),this._d("curve",s,i)}polygon(t,r){const i=this._o(r),s=[],o=wo(t,!0,i);return i.fill&&(i.fillStyle==="solid"?s.push(Ya([t],i)):s.push(ci([t],i))),i.stroke!==$e&&s.push(o),this._d("polygon",s,i)}path(t,r){const i=this._o(r),s=[];if(!t)return this._d("path",s,i);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");const o=i.fill&&i.fill!=="transparent"&&i.fill!==$e,a=i.stroke!==$e,n=!!(i.simplification&&i.simplification<1),l=function(h,u,d){const f=lg(ng(sh(h))),m=[];let y=[],C=[0,0],x=[];const k=()=>{x.length>=4&&y.push(...Ua(x,u)),x=[]},T=()=>{k(),y.length&&(m.push(y),y=[])};for(const{key:v,data:B}of f)switch(v){case"M":T(),C=[B[0],B[1]],y.push(C);break;case"L":k(),y.push([B[0],B[1]]);break;case"C":if(!x.length){const L=y.length?y[y.length-1]:C;x.push([L[0],L[1]])}x.push([B[0],B[1]]),x.push([B[2],B[3]]),x.push([B[4],B[5]]);break;case"Z":k(),y.push([C[0],C[1]])}if(T(),!d)return m;const S=[];for(const v of m){const B=gB(v,d);B.length&&S.push(B)}return S}(t,1,n?4-4*(i.simplification||1):(1+i.roughness)/2),c=wu(t,i);if(o)if(i.fillStyle==="solid")if(l.length===1){const h=wu(t,Object.assign(Object.assign({},i),{disableMultiStroke:!0,roughness:i.roughness?i.roughness+i.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(h.ops)})}else s.push(Ya(l,i));else s.push(ci(l,i));return a&&(n?l.forEach(h=>{s.push(wo(h,!1,i))}):s.push(c)),this._d("path",s,i)}opsToPath(t,r){let i="";for(const s of t.ops){const o=typeof r=="number"&&r>=0?s.data.map(a=>+a.toFixed(r)):s.data;switch(s.op){case"move":i+=`M${o[0]} ${o[1]} `;break;case"bcurveTo":i+=`C${o[0]} ${o[1]}, ${o[2]} ${o[3]}, ${o[4]} ${o[5]} `;break;case"lineTo":i+=`L${o[0]} ${o[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,s=[];for(const o of r){let a=null;switch(o.type){case"path":a={d:this.opsToPath(o),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:$e};break;case"fillPath":a={d:this.opsToPath(o),stroke:$e,strokeWidth:0,fill:i.fill||$e};break;case"fillSketch":a=this.fillSketch(o,i)}a&&s.push(a)}return s}fillSketch(t,r){let i=r.fillWeight;return i<0&&(i=r.strokeWidth/2),{d:this.opsToPath(t),stroke:r.fill||$e,strokeWidth:i,fill:$e}}_mergedShape(t){return t.filter((r,i)=>i===0||r.op!=="move")}}class mB{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new jo(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),s=this.ctx,o=t.options.fixedDecimalPlaceDigits;for(const a of r)switch(a.type){case"path":s.save(),s.strokeStyle=i.stroke==="none"?"transparent":i.stroke,s.lineWidth=i.strokeWidth,i.strokeLineDash&&s.setLineDash(i.strokeLineDash),i.strokeLineDashOffset&&(s.lineDashOffset=i.strokeLineDashOffset),this._drawToContext(s,a,o),s.restore();break;case"fillPath":{s.save(),s.fillStyle=i.fill||"";const n=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(s,a,o,n),s.restore();break}case"fillSketch":this.fillSketch(s,a,i)}}fillSketch(t,r,i){let s=i.fillWeight;s<0&&(s=i.strokeWidth/2),t.save(),i.fillLineDash&&t.setLineDash(i.fillLineDash),i.fillLineDashOffset&&(t.lineDashOffset=i.fillLineDashOffset),t.strokeStyle=i.fill||"",t.lineWidth=s,this._drawToContext(t,r,i.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,r,i,s="nonzero"){t.beginPath();for(const o of r.ops){const a=typeof i=="number"&&i>=0?o.data.map(n=>+n.toFixed(i)):o.data;switch(o.op){case"move":t.moveTo(a[0],a[1]);break;case"bcurveTo":t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"lineTo":t.lineTo(a[0],a[1])}}r.type==="fillPath"?t.fill(s):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,r,i,s,o){const a=this.gen.line(t,r,i,s,o);return this.draw(a),a}rectangle(t,r,i,s,o){const a=this.gen.rectangle(t,r,i,s,o);return this.draw(a),a}ellipse(t,r,i,s,o){const a=this.gen.ellipse(t,r,i,s,o);return this.draw(a),a}circle(t,r,i,s){const o=this.gen.circle(t,r,i,s);return this.draw(o),o}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i),i}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i),i}arc(t,r,i,s,o,a,n=!1,l){const c=this.gen.arc(t,r,i,s,o,a,n,l);return this.draw(c),c}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i),i}path(t,r){const i=this.gen.path(t,r);return this.draw(i),i}}const io="http://www.w3.org/2000/svg";class yB{constructor(t,r){this.svg=t,this.gen=new jo(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),s=this.svg.ownerDocument||window.document,o=s.createElementNS(io,"g"),a=t.options.fixedDecimalPlaceDigits;for(const n of r){let l=null;switch(n.type){case"path":l=s.createElementNS(io,"path"),l.setAttribute("d",this.opsToPath(n,a)),l.setAttribute("stroke",i.stroke),l.setAttribute("stroke-width",i.strokeWidth+""),l.setAttribute("fill","none"),i.strokeLineDash&&l.setAttribute("stroke-dasharray",i.strokeLineDash.join(" ").trim()),i.strokeLineDashOffset&&l.setAttribute("stroke-dashoffset",`${i.strokeLineDashOffset}`);break;case"fillPath":l=s.createElementNS(io,"path"),l.setAttribute("d",this.opsToPath(n,a)),l.setAttribute("stroke","none"),l.setAttribute("stroke-width","0"),l.setAttribute("fill",i.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||l.setAttribute("fill-rule","evenodd");break;case"fillSketch":l=this.fillSketch(s,n,i)}l&&o.appendChild(l)}return o}fillSketch(t,r,i){let s=i.fillWeight;s<0&&(s=i.strokeWidth/2);const o=t.createElementNS(io,"path");return o.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),o.setAttribute("stroke",i.fill||""),o.setAttribute("stroke-width",s+""),o.setAttribute("fill","none"),i.fillLineDash&&o.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&o.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),o}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,s,o){const a=this.gen.line(t,r,i,s,o);return this.draw(a)}rectangle(t,r,i,s,o){const a=this.gen.rectangle(t,r,i,s,o);return this.draw(a)}ellipse(t,r,i,s,o){const a=this.gen.ellipse(t,r,i,s,o);return this.draw(a)}circle(t,r,i,s){const o=this.gen.circle(t,r,i,s);return this.draw(o)}linearPath(t,r){const i=this.gen.linearPath(t,r);return this.draw(i)}polygon(t,r){const i=this.gen.polygon(t,r);return this.draw(i)}arc(t,r,i,s,o,a,n=!1,l){const c=this.gen.arc(t,r,i,s,o,a,n,l);return this.draw(c)}curve(t,r){const i=this.gen.curve(t,r);return this.draw(i)}path(t,r){const i=this.gen.path(t,r);return this.draw(i)}}var ut={canvas:(e,t)=>new mB(e,t),svg:(e,t)=>new yB(e,t),generator:e=>new jo(e),newSeed:()=>jo.newSeed()},xB=1,CB=3;async function oh(e){const t=e.getElementsByTagName("img");if(!t||t.length===0)return;const r=!ah(e);await Promise.all([...t].map(i=>new Promise(s=>{function o(){if(i.style.display="flex",i.style.flexDirection="column",r){const a=Nt().fontSize?Nt().fontSize:window.getComputedStyle(document.body).fontSize,n=5,[l=af.fontSize]=oa(a),c=l*n+"px";i.style.minWidth=c,i.style.maxWidth=c}else i.style.width="100%";s(i)}p(o,"setupImage"),setTimeout(()=>{i.complete&&o()}),i.addEventListener("error",o),i.addEventListener("load",o)})))}p(oh,"configureLabelImages");function ah(e){var r;
200return e.nodeType===CB?((r=e.textContent)==null?void 0:r.trim())!=="":e.nodeType!==xB||e.tagName.toLowerCase()==="img"?!1:[...e.childNodes].some(ah)}p(ah,"hasTextBesidesImages");var Bu=3,bB=32,kB=p(async(e,t,r)=>{var x,k,T;const i=Nt(),s=e.insert("g").attr("class",r??"node default").attr("id",t.domId||t.id),o=s.insert("g").attr("class","label").attr("style",se(t.labelStyle)),n=[{text:typeof t.label=="string"?t.label:((x=t.label)==null?void 0:x[0])??"",cssClass:"c4-name"},{text:t.stereotype,cssClass:"c4-type"},...(t.description??[]).map(S=>({text:S,cssClass:"c4-descr"}))].filter(S=>S.text),l=t.width?Math.max(t.width-2*(t.padding??0),bB):((k=Nt().flowchart)==null?void 0:k.wrappingWidth)??200,h=((T=i.c4)==null?void 0:T.wrap)??!0?l:Number.POSITIVE_INFINITY,u=await Promise.all(n.map(async S=>{const v=o.append("g").attr("class",S.cssClass),B=await Qe(v,ze(Nr(S.text??""),i),{useHtmlLabels:!1,markdown:!1,isNode:!0,width:h,style:t.labelStyle},i);return Ot(B).selectAll("tspan.text-outer-tspan").attr("text-anchor","middle"),Ot(B).selectAll("tspan.text-inner-tspan").attr("font-weight",null).attr("font-style",null),{el:v,box:v.node().getBBox()}})),d=Math.max(...u.map(({box:S})=>S.width),0);let f=0;for(const{el:S,box:v}of u)S.attr("transform",`translate(${d/2-v.x-v.width/2}, ${f-v.y})`),f+=v.height+Bu;const m=u.length>0?f-Bu:0;o.insert("rect",":first-child"),o.attr("transform",`translate(${-d/2}, ${-m/2})`);const y=o.node().getBBox(),C=(t.padding??0)/2;return{shapeSvg:s,bbox:y,halfPadding:C,label:o}},"c4LabelHelper"),Ct=p(async(e,t,r)=>{var f,m;if(t.stereotype!==void 0)return kB(e,t,r);let i;const s=t.useHtmlLabels||dr((f=Nt())==null?void 0:f.htmlLabels);r?i=r:i="node default";const o=e.insert("g").attr("class",i).attr("id",t.domId||t.id),a=o.insert("g").attr("class","label").attr("style",se(t.labelStyle));let n;t.label===void 0?n="":n=typeof t.label=="string"?t.label:t.label[0];const l=!!t.icon||!!t.img,c=t.labelType==="markdown",h=await Qe(a,ze(Nr(n),Nt()),{useHtmlLabels:s,width:t.width||t.wrappingWidth||((m=Nt().flowchart)==null?void 0:m.wrappingWidth),classes:c?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:l,markdown:c},Nt()),u=((t==null?void 0:t.padding)??0)/2;let d;if(s){const y=h.children[0],C=Ot(h);await oh(y),d=await ri.measure(()=>y.getBoundingClientRect()),C.attr("width",d.width),C.attr("height",d.height)}else d=await ri.measure(()=>h.getBBox());return s?a.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"):a.attr("transform","translate(0, "+-d.height/2+")"),t.centerLabel&&a.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),a.insert("rect",":first-child"),{shapeSvg:o,bbox:d,halfPadding:u,label:a}},"labelHelper"),Ga=p(async(e,t,r)=>{var l,c;const i=r.useHtmlLabels??Ce(Nt()),s=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),o=await Qe(s,ze(Nr(t),Nt()),{useHtmlLabels:i,width:r.width||((c=(l=Nt())==null?void 0:l.flowchart)==null?void 0:c.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img}),a=r.padding/2;let n;if(Ce(Nt())){const h=o.children[0],u=Ot(o);n=await ri.measure(()=>h.getBoundingClientRect()),u.attr("width",n.width),u.attr("height",n.height)}else n=await ri.measure(()=>o.getBBox());return i?s.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"):s.attr("transform","translate(0, "+-n.height/2+")"),r.centerLabel&&s.attr("transform","translate("+-n.width/2+", "+-n.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:e,bbox:n,halfPadding:a,label:s}},"insertLabel"),pt=p((e,t,r)=>{if(r){e.width=r.width,e.height=r.height;return}const i=t.node().getBBox();e.width=i.width,e.height=i.height},"updateNodeBounds"),bt=p((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function Ht(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}p(Ht,"createPathFromPoints");function Wr(e,t,r,i,s,o){const a=[],l=r-e,c=i-t,h=l/o,u=2*Math.PI/h,d=t+c/2;for(let f=0;f<=50;f++){const m=f/50,y=e+m*l,C=d+s*Math.sin(u*(y-e));a.push({x:y,y:C})}return a}p(Wr,"generateFullSineWavePoints");function ar(e,t,r,i,s,o){const a=[],n=s*Math.PI/180,h=(o*Math.PI/180-n)/(i-1);for(let u=0;u<i;u++){const d=n+u*h,f=e+r*Math.cos(d),m=t+r*Math.sin(d);a.push({x:-f,y:-m})}return a}p(ar,"generateCirclePoints");function sl(e){const t=Array.from(e.childNodes).filter(l=>l.tagName==="path"),r=document.createElementNS("http://www.w3.org/2000/svg","path"),i=t.map(l=>l.getAttribute("d")).filter(l=>l!==null).join(" ");r.setAttribute("d",i);const s=t.find(l=>l.getAttribute("fill")!=="none"),o=t.find(l=>l.getAttribute("stroke")!=="none"),a=p((l,c)=>(l==null?void 0:l.getAttribute(c))??void 0,"getAttr");if(s){const l={fill:a(s,"fill"),"fill-opacity":a(s,"fill-opacity")??"1"};Object.entries(l).forEach(([c,h])=>{h&&r.setAttribute(c,h)})}if(o){const l={stroke:a(o,"stroke"),"stroke-width":a(o,"stroke-width")??"1","stroke-opacity":a(o,"stroke-opacity")??"1"};Object.entries(l).forEach(([c,h])=>{h&&r.setAttribute(c,h)})}const n=document.createElementNS("http://www.w3.org/2000/svg","g");return n.appendChild(r),n}p(sl,"mergePaths");var wB=p((e,t)=>{var r=e.x,i=e.y,s=t.x-r,o=t.y-i,a=e.width/2,n=e.height/2,l,c;return Math.abs(o)*a>Math.abs(s)*n?(o<0&&(n=-n),l=o===0?0:n*s/o,c=n):(s<0&&(a=-a),l=a,c=s===0?0:a*o/s),{x:r+l,y:i+c}},"intersectRect"),oi=wB,He=p((e,t,r,i,s)=>["M",e+s,t,"H",e+r-s,"A",s,s,0,0,1,e+r,t+s,"V",t+i-s,"A",s,s,0,0,1,e+r-s,t+i,"H",e+s,"A",s,s,0,0,1,e,t+i-s,"V",t+s,"A",s,s,0,0,1,e+s,t,"Z"].join(" "),"createRoundedRectPathD"),TB=p(async(e,t,r,i=!1,s=!1)=>{let o=t||"";typeof o=="object"&&(o=o[0]);const a=Nt(),n=Ce(a);return await Qe(e,o,{style:r,isTitle:i,useHtmlLabels:n,markdown:!1,isNode:s,width:Number.POSITIVE_INFINITY},a)},"createLabel"),Rr=TB;function fg(e,t){return e.intersect(t)}p(fg,"intersectNode");var SB=fg;
200function pg(e,t,r,i){var s=e.x,o=e.y,a=s-i.x,n=o-i.y,l=Math.sqrt(t*t*n*n+r*r*a*a),c=Math.abs(t*r*a/l);i.x<s&&(c=-c);var h=Math.abs(t*r*n/l);return i.y<o&&(h=-h),{x:s+c,y:o+h}}p(pg,"intersectEllipse");var gg=pg;function mg(e,t,r){return gg(e,t,t,r)}p(mg,"intersectCircle");var _B=mg;function yg(e,t,r,i){{const s=t.y-e.y,o=e.x-t.x,a=t.x*e.y-e.x*t.y,n=s*r.x+o*r.y+a,l=s*i.x+o*i.y+a,c=1e-6;if(n!==0&&l!==0&&ol(n,l))return;const h=i.y-r.y,u=r.x-i.x,d=i.x*r.y-r.x*i.y,f=h*e.x+u*e.y+d,m=h*t.x+u*t.y+d;if(Math.abs(f)<c&&Math.abs(m)<c&&ol(f,m))return;const y=s*u-h*o;if(y===0)return;const C=Math.abs(y/2);let x=o*d-u*a;const k=x<0?(x-C)/y:(x+C)/y;x=h*a-s*d;const T=x<0?(x-C)/y:(x+C)/y;return{x:k,y:T}}}p(yg,"intersectLine");function ol(e,t){return e*t>0}p(ol,"sameSign");var vB=yg;function xg(e,t,r){let i=e.x,s=e.y,o=[],a=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(h){a=Math.min(a,h.x),n=Math.min(n,h.y)}):(a=Math.min(a,t.x),n=Math.min(n,t.y));let l=i-e.width/2-a,c=s-e.height/2-n;for(let h=0;h<t.length;h++){let u=t[h],d=t[h<t.length-1?h+1:0],f=vB(e,r,{x:l+u.x,y:c+u.y},{x:l+d.x,y:c+d.y});f&&o.push(f)}return o.length?(o.length>1&&o.sort(function(h,u){let d=h.x-r.x,f=h.y-r.y,m=Math.sqrt(d*d+f*f),y=u.x-r.x,C=u.y-r.y,x=Math.sqrt(y*y+C*C);return m<x?-1:m===x?0:1}),o[0]):e}p(xg,"intersectPolygon");var BB=xg,at={node:SB,circle:_B,ellipse:gg,polygon:BB,rect:oi};function Cg(e,t){const{labelStyles:r}=gt(t);t.labelStyle=r;const i=bt(t);let s=i;i||(s="anchor");const o=e.insert("g").attr("class",s).attr("id",t.domId||t.id),a=1,{cssStyles:n}=t,l=ut.svg(o),c=ct(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const h=l.circle(0,0,a*2,c),u=o.insert(()=>h,":first-child");return u.attr("class","anchor").attr("style",se(n)),pt(t,u),t.intersect=function(d){return I.info("Circle intersect",t,a,d),at.circle(t,a,d)},o}p(Cg,"anchor");function al(e,t,r,i,s,o,a){const l=(e+r)/2,c=(t+i)/2,h=Math.atan2(i-t,r-e),u=(r-e)/2,d=(i-t)/2,f=u/s,m=d/o,y=Math.sqrt(f**2+m**2);if(y>1)throw new Error("The given radii are too small to create an arc between the points.");const C=Math.sqrt(1-y**2),x=l+C*o*Math.sin(h)*(a?-1:1),k=c-C*s*Math.cos(h)*(a?-1:1),T=Math.atan2((t-k)/o,(e-x)/s);let v=Math.atan2((i-k)/o,(r-x)/s)-T;a&&v<0&&(v+=2*Math.PI),!a&&v>0&&(v-=2*Math.PI);const B=[];for(let L=0;L<20;L++){const O=L/19,U=T+O*v,N=x+s*Math.cos(U),Y=k+o*Math.sin(U);B.push({x:N,y:Y})}return B}p(al,"generateArcPoints");function bg(e,t,r){const[i,s]=[t,r].sort((o,a)=>a-o);return s*(1-Math.sqrt(1-(e/i/2)**2))}p(bg,"calculateArcSagitta");async function kg(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s,n=p(U=>U+a,"calcTotalHeight"),l=p(U=>{const N=U/2;return[N/(2.5+U/50),N]},"calcEllipseRadius"),{shapeSvg:c,bbox:h}=await Ct(e,t,bt(t)),u=n(t!=null&&t.height?t==null?void 0:t.height:h.height),[d,f]=l(u),m=bg(u,d,f),C=(t!=null&&t.width?t==null?void 0:t.width:h.width)+o*2+m-m,x=u,{cssStyles:k}=t,T=[{x:C/2,y:-x/2},{x:-C/2,y:-x/2},...al(-C/2,-x/2,-C/2,x/2,d,f,!1),{x:C/2,y:x/2},...al(C/2,x/2,C/2,-x/2,d,f,!0)],S=ut.svg(c),v=ct(t,{});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const B=Ht(T),L=S.path(B,v),O=c.insert(()=>L,":first-child");return O.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",i),O.attr("transform",`translate(${d/2}, 0)`),pt(t,O),t.intersect=function(U){return at.polygon(t,T,U)},c}p(kg,"bowTieRect");async function wg(e,t,{config:{themeVariables:r}}){var L;const{labelStyles:i,nodeStyles:s}=gt(t);t.labelStyle=i;const{shapeSvg:o,bbox:a,label:n}=await Ct(e,t,bt(t)),l=(r==null?void 0:r.nodeBorder)??(r==null?void 0:r.lineColor)??"currentColor",c=t.padding??12,h=Math.max(a.width+c*2,t.width??0,80),u=Math.max(Math.min(h*.08,12),5),d=Math.max(a.height+c*2+u,t.height??0),f=-d/2+u,m=d/2,y=h*.72,C=[`M${-h/2},${f}`,`L${-y/2},${m}`,`A${y/2},${u} 0 0 0 ${y/2},${m}`,`L${h/2},${f}`,`A${h/2},${u} 0 0 0 ${-h/2},${f}`,"Z"].join(" "),{cssStyles:x}=t,k=o.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const U=ut.svg(o).path(C,ct(t,{}));(L=k.node())==null||L.appendChild(U),x&&k.attr("style",x)}else k.append("path").attr("d",C).attr("style",s);k.append("ellipse").attr("cx",0).attr("cy",f).attr("rx",h/2).attr("ry",u).attr("style",`fill:none;stroke:${l};stroke-width:1px`),pt(t,k);const T=f+(m-f)/2;n.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${T-a.height/2-(a.y-(a.top??0))})`);const S=12,v=p((O,U,N)=>Array.from({length:S+1},(Y,st)=>{const q=Math.PI-st*Math.PI/S;return{x:O*Math.cos(q),y:U+N*u*Math.sin(q)}}),"arc"),B=[...v(h/2,f,-1),...v(y/2,m,1).reverse()];return t.intersect=function(O){return at.polygon(t,B,O)},o}p(wg,"bucket");var Lu=20,Fu=8,LB=80,Xa=8;async function Tg(e,t){const{themeVariables:r}
200=Nt(),i=r.clusterBkg,s=r.clusterBorder,{nodeStyles:o}=gt(t),{shapeSvg:a,bbox:n}=await Ct(e,t,bt(t)),l=t.padding??8,c=n.height,h=Math.max(n.width+l*2,LB,(t==null?void 0:t.width)??0),u=Math.max(c+Fu+Lu+l*2,(t==null?void 0:t.height)??0),d=-h/2,f=-u/2,m=-28/2,y=a.select(".label");y&&(t.useHtmlLabels??Ce(Nt())?y.attr("transform",`translate(${-n.width/2}, ${-n.height/2+m})`):y.attr("transform",`translate(0, ${-n.height/2+m})`));let C;if(t.look==="handDrawn"){const v=ut.svg(a),B=ct(t,{fill:i,stroke:s,fillStyle:"solid"}),L=v.path(He(d,f,h,u,Xa),B);C=a.insert(()=>L,":first-child"),C.attr("class","basic label-container collapsed-group").attr("style",se(t.cssStyles))}else C=a.insert("rect",":first-child"),C.attr("class","basic label-container collapsed-group").attr("style",o).attr("rx",Xa).attr("ry",Xa).attr("x",d).attr("y",f).attr("width",h).attr("height",u).attr("fill",i).attr("stroke",s);const x=f+l+c+Fu;a.append("line").attr("class","collapsed-separator").attr("x1",d+8).attr("y1",x).attr("x2",d+h-8).attr("y2",x).attr("stroke",s).attr("stroke-dasharray","3, 3");const k=x+Lu/2,T=2.5,S=10;for(let v=-1;v<=1;v++)a.append("circle").attr("class","collapsed-indicator").attr("cx",v*S).attr("cy",k).attr("r",T).attr("fill",s);return pt(t,C),t.calcIntersect=function(v,B){return at.rect(v,B)},t.intersect=function(v){return at.rect(t,v)},a}p(Tg,"collapsedGroup");function gr(e,t,r,i){return e.insert("polygon",":first-child").attr("points",i.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}p(gr,"insertPolygonShape");var FB=["right","left","up","down"],nh="point",AB=p(e=>{const t=new Set;for(const r of e)switch(r){case"x":t.add("right"),t.add("left");break;case"y":t.add("up"),t.add("down");break;default:t.add(r);break}return t},"expandAndDeduplicateDirections"),EB=p(e=>FB.filter(t=>e.has(t)).join("|")||nh,"getDirectionKey"),Au={"right|left|up|down":p(({height:e,midpoint:t,padding:r,width:i})=>[{x:0,y:0},{x:t,y:0},{x:i/2,y:2*r},{x:i-t,y:0},{x:i,y:0},{x:i,y:-e/3},{x:i+2*r,y:-e/2},{x:i,y:-2*e/3},{x:i,y:-e},{x:i-t,y:-e},{x:i/2,y:-e-2*r},{x:t,y:-e},{x:0,y:-e},{x:0,y:-2*e/3},{x:-2*r,y:-e/2},{x:0,y:-e/3}],"right|left|up|down"),"right|left|up":p(({height:e,midpoint:t,width:r})=>[{x:t,y:0},{x:r-t,y:0},{x:r,y:-e/2},{x:r-t,y:-e},{x:t,y:-e},{x:0,y:-e/2}],"right|left|up"),"right|left|down":p(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:t,y:-e},{x:r-t,y:-e},{x:r,y:0}],"right|left|down"),"right|up|down":p(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:r,y:-t},{x:r,y:-e+t},{x:0,y:-e}],"right|up|down"),"left|up|down":p(({height:e,midpoint:t,width:r})=>[{x:r,y:0},{x:0,y:-t},{x:0,y:-e+t},{x:r,y:-e}],"left|up|down"),"right|left":p(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:0},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:0},{x:i,y:-e/2},{x:i-t,y:-e},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e},{x:0,y:-e/2}],"right|left"),"up|down":p(({height:e,midpoint:t,padding:r,width:i})=>[{x:i/2,y:0},{x:0,y:-r},{x:t,y:-r},{x:t,y:-e+r},{x:0,y:-e+r},{x:i/2,y:-e},{x:i,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r},{x:i,y:-r}],"up|down"),"right|up":p(({height:e,midpoint:t,width:r})=>[{x:0,y:0},{x:r,y:-t},{x:0,y:-e}],"right|up"),"right|down":p(({height:e,width:t})=>[{x:0,y:0},{x:t,y:0},{x:0,y:-e}],"right|down"),"left|up":p(({height:e,midpoint:t,width:r})=>[{x:r,y:0},{x:0,y:-t},{x:r,y:-e}],"left|up"),"left|down":p(({height:e,width:t})=>[{x:t,y:0},{x:0,y:0},{x:t,y:-e}],"left|down"),right:p(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:-r},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:0},{x:i,y:-e/2},{x:i-t,y:-e},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e+r}],"right"),left:p(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:0},{x:t,y:-r},{x:i-t,y:-r},{x:i-t,y:-e+r},{x:t,y:-e+r},{x:t,y:-e},{x:0,y:-e/2}],"left"),up:p(({height:e,midpoint:t,padding:r,width:i})=>[{x:t,y:-r},{x:t,y:-e+r},{x:0,y:-e+r},{x:i/2,y:-e},{x:i,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r}],"up"),down:p(({height:e,midpoint:t,padding:r,width:i})=>[{x:i/2,y:0},{x:0,y:-r},{x:t,y:-r},{x:t,y:-e+r},{x:i-t,y:-e+r},{x:i-t,y:-r},{x:i,y:-r}],"down"),[nh]:()=>[{x:0,y:0}]},MB=p((e,t,r,i)=>
200{const s=AB(e),o=(r.padding??0)/2,a=t.height+4*o,n=a/2,l=i??t.width+2*n+2*o,c=EB(s);return(Au[c]??Au[nh])({height:a,midpoint:n,padding:o,width:l})},"getArrowPoints");async function Sg(e,t){const r=t,{shapeSvg:i,bbox:s}=await Ct(e,r,bt(r)),o=r.padding??0,a=s.height+2*o,n=a/2,l=s.width+2*n+o,c=r.width??0,u=r.positioned&&(r.widthInColumns??1)>1&&c>l?c:l,d=MB(r.directions??[],s,r,u),f=gr(i,u,a,d);return f.attr("style",r.style??null),pt(r,f),r.intersect=function(m){return at.polygon(r,d,m)},i}p(Sg,"block_arrow");async function _g(e,t,{config:{themeVariables:r}}){var k;const{labelStyles:i,nodeStyles:s}=gt(t);t.labelStyle=i;const{shapeSvg:o,bbox:a,label:n}=await Ct(e,t,bt(t)),l=(r==null?void 0:r.nodeBorder)??(r==null?void 0:r.lineColor)??"currentColor",c=t.padding??12,h=18,u=12,d=Math.max(a.width+c*2,t.width??0,90),f=Math.max(a.height+c*2+h,t.height??0),m=-f/2,{cssStyles:y}=t,C=o.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const S=ut.svg(o).path(He(-d/2,m,d,f,u),ct(t,{}));(k=C.node())==null||k.appendChild(S),y&&C.attr("style",y)}else C.append("rect").attr("x",-d/2).attr("y",m).attr("width",d).attr("height",f).attr("rx",u).attr("ry",u).attr("style",s);C.append("line").attr("x1",-d/2).attr("y1",m+h).attr("x2",d/2).attr("y2",m+h).attr("style",`stroke:${l};stroke-width:1px`);for(let T=0;T<3;T++)C.append("circle").attr("cx",-d/2+12+T*9).attr("cy",m+h/2).attr("r",2.5).attr("style",`fill:${l};stroke:none`);C.append("rect").attr("class","browser-address-bar").attr("x",-d/2+44).attr("y",m+4).attr("width",Math.max(d-56,10)).attr("height",h-8).attr("rx",3).attr("ry",3).attr("style",`fill:none;stroke:${l};stroke-width:1px;opacity:0.6`),pt(t,C);const x=m+h+(f-h)/2;return n.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${x-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(T){return at.rect(t,T)},o}p(_g,"browser");var so=12;async function vg(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?28:s,a=t.look==="neo"?24:s,{shapeSvg:n,bbox:l}=await Ct(e,t,bt(t)),c=((t==null?void 0:t.width)??l.width)+(t.look==="neo"?o*2:o+so),h=((t==null?void 0:t.height)??l.height)+(t.look==="neo"?a*2:a),u=0,d=c,f=-h,m=0,y=[{x:u+so,y:f},{x:d,y:f},{x:d,y:m},{x:u,y:m},{x:u,y:f+so},{x:u+so,y:f}];let C;const{cssStyles:x}=t;if(t.look==="handDrawn"){const k=ut.svg(n),T=ct(t,{}),S=Ht(y),v=k.path(S,T);C=n.insert(()=>v,":first-child").attr("transform",`translate(${-c/2}, ${h/2})`),x&&C.attr("style",x)}else C=gr(n,c,h,y);return i&&C.attr("style",i),pt(t,C),t.intersect=function(k){return at.polygon(t,y,k)},n}p(vg,"card");function Bg(e,t){const{nodeStyles:r}=gt(t);t.label="";const i=e.insert("g").attr("class",bt(t)).attr("id",t.domId??t.id),{cssStyles:s}=t,o=Math.max(28,t.width??0),a=[{x:0,y:o/2},{x:o/2,y:0},{x:0,y:-o/2},{x:-o/2,y:0}],n=ut.svg(i),l=ct(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=Ht(a),h=n.path(c,l),u=i.insert(()=>h,":first-child");return s&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",s),r&&t.look!=="handDrawn"&&u.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(d){return at.polygon(t,a,d)},i}p(Bg,"choice");async function lh(e,t,r){const{labelStyles:i,nodeStyles:s}=gt(t);t.labelStyle=i;const{shapeSvg:o,bbox:a,halfPadding:n}=await Ct(e,t,bt(t)),l=16,c=(r==null?void 0:r.padding)??n,h=t.look==="neo"?a.width/2+l*2:a.width/2+c;let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const f=ut.svg(o),m=ct(t,{}),y=f.circle(0,0,h*2,m);u=o.insert(()=>y,":first-child"),u.attr("class","basic label-container").attr("style",se(d))}else u=o.insert("circle",":first-child").attr("class","basic label-container").attr("style",s).attr("r",h).attr("cx",0).attr("cy",0);return pt(t,u),t.calcIntersect=function(f,m){const y=f.width/2;return at.circle(f,y,m)},t.intersect=function(f){return I.info("Circle intersect",t,h,f),at.circle(t,h,f)},o}p(lh,"circle");async function Lg(e,t){const r=t,i=["node",r.cssClasses,r.class].filter(Boolean).join(" "),{shapeSvg:s,bbox:o,halfPadding:a}=await Ct(e,r,i),n=s.insert("rect",":first-child"),l=r.padding??0,c=r.positioned?r.width??0:o.width+l,h=r.positioned?r.height??0:o.height+l,u=r.positioned?-c/2:-o.width/2-a,d=r.positioned?-h/2:-o.height/2-a;return n.attr("class","basic cluster composite label-container").attr("style",r.style??null).attr("rx",r.rx??null).attr("ry",r.ry??null).attr("x",u).attr("y",d).attr("width",c).attr("height",h),pt(r,n),r.intersect=function(f){return at.rect(r,f)},s}p(Lg,"composite");
200async function Fg(e,t,{config:{themeVariables:r}}){var k;const{labelStyles:i,nodeStyles:s}=gt(t);t.labelStyle=i;const{shapeSvg:o,bbox:a,label:n}=await Ct(e,t,bt(t)),l=(r==null?void 0:r.nodeBorder)??(r==null?void 0:r.lineColor)??"currentColor",c=t.padding??12,h=20,u=12,d=Math.max(a.width+c*2,t.width??0,90),f=Math.max(a.height+c*2+h,t.height??0),m=-f/2,{cssStyles:y}=t,C=o.insert("g",":first-child").attr("class","basic label-container");if(t.look==="handDrawn"){const S=ut.svg(o).path(He(-d/2,m,d,f,u),ct(t,{}));(k=C.node())==null||k.appendChild(S),y&&C.attr("style",y)}else C.append("rect").attr("x",-d/2).attr("y",m).attr("width",d).attr("height",f).attr("rx",u).attr("ry",u).attr("style",s);C.append("text").attr("x",-d/2+12).attr("y",m+16).attr("class","console-glyph").attr("style",`font-family:monospace;font-weight:bold;font-size:14px;fill:${l}`).text(">_"),pt(t,C);const x=m+h+(f-h)/2;return n.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${x-a.height/2-(a.y-(a.top??0))})`),t.intersect=function(T){return at.rect(t,T)},o}p(Fg,"consoleWindow");function Ag(e){const t=Math.cos(Math.PI/4),r=Math.sin(Math.PI/4),i=e*2,s={x:i/2*t,y:i/2*r},o={x:-(i/2)*t,y:i/2*r},a={x:-(i/2)*t,y:-(i/2)*r},n={x:i/2*t,y:-(i/2)*r};return`M ${o.x},${o.y} L ${n.x},${n.y}
201                   M ${s.x},${s.y} L ${a.x},${a.y}`}p(Ag,"createLine");function Eg(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r,t.label="";const s=e.insert("g").attr("class",bt(t)).attr("id",t.domId??t.id),o=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:a}=t,n=ut.svg(s),l=ct(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const c=n.circle(0,0,o*2,l),h=Ag(o),u=n.path(h,l),d=s.insert(()=>c,":first-child");return d.insert(()=>u),d.attr("class","outer-path"),a&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",i),pt(t,d),t.intersect=function(f){return I.info("crossedCircle intersect",t,{radius:o,point:f}),at.circle(t,o,f)},s}p(Eg,"crossedCircle");function Tr(e,t,r,i=100,s=0,o=180){const a=[],n=s*Math.PI/180,h=(o*Math.PI/180-n)/(i-1);for(let u=0;u<i;u++){const d=n+u*h,f=e+r*Math.cos(d),m=t+r*Math.sin(d);a.push({x:-f,y:-m})}return a}p(Tr,"generateCirclePoints");async function Mg(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await Ct(e,t,bt(t)),n=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=o.width+n,h=o.height+l,u=Math.max(5,h*.1),{cssStyles:d}=t,f=[...Tr(c/2,-h/2,u,30,-90,0),{x:-c/2-u,y:u},...Tr(c/2+u*2,-u,u,20,-180,-270),...Tr(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:-h/2},...Tr(c/2,h/2,u,20,0,90)],m=[{x:c/2,y:-h/2-u},{x:-c/2,y:-h/2-u},...Tr(c/2,-h/2,u,20,-90,0),{x:-c/2-u,y:-u},...Tr(c/2+c*.1,-u,u,20,-180,-270),...Tr(c/2+c*.1,u,u,20,-90,-180),{x:-c/2-u,y:h/2},...Tr(c/2,h/2,u,20,0,90),{x:-c/2,y:h/2+u},{x:c/2,y:h/2+u}],y=ut.svg(s),C=ct(t,{fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=Ht(f).replace("Z",""),T=y.path(k,C),S=Ht(m),v=y.path(S,{...C}),B=s.insert("g",":first-child");return B.insert(()=>v,":first-child").attr("stroke-opacity",0),B.insert(()=>T,":first-child"),B.attr("class","text"),d&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(${u}, 0)`),a.attr("transform",`translate(${-c/2+u-(o.x-(o.left??0))},${-h/2+(t.padding??0)/2-(o.y-(o.top??0))})`),pt(t,B),t.intersect=function(L){return at.polygon(t,m,L)},s}p(Mg,"curlyBraceLeft");function Sr(e,t,r,i=100,s=0,o=180){const a=[],n=s*Math.PI/180,h=(o*Math.PI/180-n)/(i-1);for(let u=0;u<i;u++){const d=n+u*h,f=e+r*Math.cos(d),m=t+r*Math.sin(d);a.push({x:f,y:m})}return a}p(Sr,"generateCirclePoints");async function $g(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await Ct(e,t,bt(t)),n=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=o.width+(t.look==="neo"?n*2:n),h=o.height+(t.look==="neo"?l*2:l),u=Math.max(5,h*.1),{cssStyles:d}=t,f=[...Sr(c/2,-h/2,u,20,-90,0),{x:c/2+u,y:-u},...Sr(c/2+u*2,-u,u,20,-180,-270),...Sr(c/2+u*2,u,u,20,-90,-180),{x:c/2+u,y:h/2},...Sr(c/2,h/2,u,20,0,90)],m=[{x:-c/2,y:-h/2-u},{x:c/2,y:-h/2-u}
vendor: 4,836 bytes, line 201
201,...Sr(c/2,-h/2,u,20,-90,0),{x:c/2+u,y:-u},...Sr(c/2+u*2,-u,u,20,-180,-270),...Sr(c/2+u*2,u,u,20,-90,-180),{x:c/2+u,y:h/2},...Sr(c/2,h/2,u,20,0,90),{x:c/2,y:h/2+u},{x:-c/2,y:h/2+u}],y=ut.svg(s),C=ct(t,{fill:"none"});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const k=Ht(f).replace("Z",""),T=y.path(k,C),S=Ht(m),v=y.path(S,{...C}),B=s.insert("g",":first-child");return B.insert(()=>v,":first-child").attr("stroke-opacity",0),B.insert(()=>T,":first-child"),B.attr("class","text"),d&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&B.selectAll("path").attr("style",i),B.attr("transform",`translate(${-u}, 0)`),a.attr("transform",`translate(${-c/2+(t.padding??0)/2-(o.x-(o.left??0))},${-h/2+(t.padding??0)/2-(o.y-(o.top??0))})`),pt(t,B),t.intersect=function(L){return at.polygon(t,m,L)},s}p($g,"curlyBraceRight");function ue(e,t,r,i=100,s=0,o=180){const a=[],n=s*Math.PI/180,h=(o*Math.PI/180-n)/(i-1);for(let u=0;u<i;u++){const d=n+u*h,f=e+r*Math.cos(d),m=t+r*Math.sin(d);a.push({x:-f,y:-m})}return a}p(ue,"generateCirclePoints");async function Og(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await Ct(e,t,bt(t)),n=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,c=o.width+(t.look==="neo"?n*2:n),h=o.height+(t.look==="neo"?l*2:l),u=Math.max(5,h*.1),{cssStyles:d}=t,f=[...ue(c/2,-h/2,u,30,-90,0),{x:-c/2-u,y:u},...ue(c/2+u*2,-u,u,20,-180,-270),...ue(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:-h/2},...ue(c/2,h/2,u,20,0,90)],m=[...ue(-c/2+u+u/2,-h/2,u,20,-90,-180),{x:c/2-u/2,y:u},...ue(-c/2-u/2,-u,u,20,0,90),...ue(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...ue(-c/2+u+u/2,h/2,u,30,-180,-270)],y=[{x:c/2,y:-h/2-u},{x:-c/2,y:-h/2-u},...ue(c/2,-h/2,u,20,-90,0),{x:-c/2-u,y:-u},...ue(c/2+u*2,-u,u,20,-180,-270),...ue(c/2+u*2,u,u,20,-90,-180),{x:-c/2-u,y:h/2},...ue(c/2,h/2,u,20,0,90),{x:-c/2,y:h/2+u},{x:c/2-u-u/2,y:h/2+u},...ue(-c/2+u+u/2,-h/2,u,20,-90,-180),{x:c/2-u/2,y:u},...ue(-c/2-u/2,-u,u,20,0,90),...ue(-c/2-u/2,u,u,20,-90,0),{x:c/2-u/2,y:-u},...ue(-c/2+u+u/2,h/2,u,30,-180,-270)],C=ut.svg(s),x=ct(t,{fill:"none"});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const T=Ht(f).replace("Z",""),S=C.path(T,x),B=Ht(m).replace("Z",""),L=C.path(B,x),O=Ht(y),U=C.path(O,{...x}),N=s.insert("g",":first-child");return N.insert(()=>U,":first-child").attr("stroke-opacity",0),N.insert(()=>S,":first-child"),N.insert(()=>L,":first-child"),N.attr("class","text"),d&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",i),N.attr("transform",`translate(${u-u/4}, 0)`),a.attr("transform",`translate(${-c/2+(t.padding??0)/2-(o.x-(o.left??0))},${-h/2+(t.padding??0)/2-(o.y-(o.top??0))})`),pt(t,N),t.intersect=function(Y){return at.polygon(t,y,Y)},s}p(Og,"curlyBraces");async function Dg(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s,n=20,l=5,{shapeSvg:c,bbox:h}=await Ct(e,t,bt(t)),u=Math.max(n,(h.width+o*2)*1.25,(t==null?void 0:t.width)??0),d=Math.max(l,h.height+a*2,(t==null?void 0:t.height)??0),f=d/2,{cssStyles:m}=t,y=ut.svg(c),C=ct(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=u,k=d,T=x-f,S=k/4,v=[{x:T,y:0},{x:S,y:0},{x:0,y:k/2},{x:S,y:k},{x:T,y:k},...ar(-T,-k/2,f,50,270,90)],B=Ht(v),L=y.path(B,C),O=c.insert(()=>L,":first-child");return O.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&O.selectChildren("path").attr("style",m),i&&t.look!=="handDrawn"&&O.selectChildren("path").attr("style",i),O.attr("transform",`translate(${-u/2}, ${-d/2})`),pt(t,O),t.intersect=function(U){return at.polygon(t,v,U)},c}p(Dg,"curvedTrapezoid");async function Ig(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await Ct(e,t,bt(t)),n=t.padding??20,l=Math.max(o.width+n*2,t.width??0,100),c=Math.min(Math.max(l*.23,16),56),h=c*.27,u=Math.max(o.height+n*2,t.height?t.height-(2*c-h):0),d=Math.min(l*.177,u*.45),f=u+2*c-h,m=-f/2,y=m+2*c-h,C=s.insert("g",":first-child").attr("class","basic label-container"),{cssStyles:x}=t;if(t.look==="handDrawn"){const O=ut.svg(s),U=ct(t,{}),N=O.path(He(-l/2,y,l,u,d),U),Y=O.circle(0,m+c,c*2,U);C.insert(()=>Y,":first-child"),C.insert(()=>N,":first-child"),x&&C.attr("style",x)}else C.append("rect").attr("x",-l/2).attr("y",y).attr("width",l).attr("height",u).attr("rx",d).attr("ry",d).attr("style",i),C.append("circle").attr("cx",0).attr("cy",m+c).attr("r",c).attr("style",i);pt(t,C);const k=y+u/2;a.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${k-o.height/2-(o.y-(o.top??0))})`);const T=m+c,S=Math.asin(Math.min(1,(y-T)/c))*180/Math.PI,L=[...ar(0,-T,c,24,180+S,-S),...ar(-(-l/2+d),-(y+d),d,12,90,0),...ar(-(-l/2+d),-(f/2-d),d,12,360,270),...ar(-(l/2-d
201),-(f/2-d),d,12,270,180),...ar(-(l/2-d),-(y+d),d,12,180,90)];return t.intersect=function(O){return at.polygon(t,L,O)},s}p(Ig,"person");var $B=p((e,t,r,i,s,o)=>[`M${e},${t+o}`,`a${s},${o} 0,0,0 ${r},0`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),OB=p((e,t,r,i,s,o)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),DB=p((e,t,r,i,s,o)=>[`M${e-r/2},${-i/2}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Eu=8,Mu=8;async function Rg(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?24:s,a=t.look==="neo"?24:s,n=t.width??0;if(t.width&&(t.width=t.width-a,t.width<Mu&&(t.width=Mu)),t.height){const k=n/2/(2.5+n/50);t.height=t.height-o-k*3,t.height<Eu&&(t.height=Eu)}const{shapeSvg:l,bbox:c,label:h}=await Ct(e,t,bt(t)),u=Math.max(t.width??0,c.width)+a,d=u/2,f=d/(2.5+u/50),m=Math.max(t.height??0,c.height)+o+f;let y;const{cssStyles:C}=t;if(t.look==="handDrawn"){const x=ut.svg(l),k=OB(0,0,u,m,d,f),T=DB(0,f,u,m,d,f),S=ct(t,{}),v=x.path(k,S),B=x.path(T,ct(t,{fill:"none"}));y=l.insert(()=>B,":first-child"),y=l.insert(()=>v,":first-child"),y.attr("class","basic label-container"),C&&y.attr("style",C)}else{const x=$B(0,0,u,m,d,f);y=l.insert("path",":first-child").attr("d",x).attr("class","basic label-container outer-path").attr("style",se(C)).attr("style",i)}return y.attr("label-offset-y",f),y.attr("transform",`translate(${-u/2}, ${-(m/2+f)})`),pt(t,y),h.attr("transform",`translate(${-(c.width/2)-(c.x-(c.left??0))}, ${-(c.height/2)+(t.padding??0)/1.5-(c.y-(c.top??0))})`),t.intersect=function(x){const k=at.rect(t,x),T=k.x-(t.x??0);if(d!=0&&(Math.abs(T)<(t.width??0)/2||Math.abs(T)==(t.width??0)/2&&Math.abs(k.y-(t.y??0))>(t.height??0)/2-f)){let S=f*f*(1-T*T/(d*d));S>0&&(S=Math.sqrt(S)),S=f-S,x.y-(t.y??0)>0&&(S=-S),k.y+=S}return k},l}p(Rg,"cylinder");async function Hi(e,t,r){const{labelStyles:i,nodeStyles:s}=gt(t);t.labelStyle=i;const{shapeSvg:o,bbox:a}=await Ct(e,t,bt(t)),n=Math.max(a.width+r.labelPaddingX*2,(t==null?void 0:t.width)||0),l=Math.max(a.height+r.labelPaddingY*2,(t==null?void 0:t.height)||0),c=-n/2,h=-l/2;let u,{rx:d,ry:f}=t;const{cssStyles:m}=t;if(r!=null&&r.rx&&r.ry&&(d=r.rx,f=r.ry),t.look==="handDrawn"){const y=ut.svg(o),C=ct(t,{}),x=d||f?y.path(He(c,h,n,l,d||0),C):y.rectangle(c,h,n,l,C);u=o.insert(()=>x,":first-child"),u.attr("class","basic label-container").attr("style",se(m))}else u=o.insert("rect",":first-child"),u.attr("class","basic label-container").attr("style",s).attr("rx",se(d)).attr("ry",se(f)).attr("x",c).attr("y",h).attr("width",n).attr("height",l);return pt(t,u,t.look==="handDrawn"?void 0:{width:n,height:l}),t.calcIntersect=function(y,C){return at.rect(y,C)},t.intersect=function(y){return at.rect(t,y)},o}p(Hi,"drawRect");async function Pg(e,t){const{cssClasses:r,labelPaddingX:i,labelPaddingY:s,padding:o,width:a,height:n}=t,l={rx:0,ry:0,labelPaddingX:i??(o??0)*2,labelPaddingY:s??o??0},c=await Hi(e,t,l);if(t.look==="handDrawn"){const f=ut.svg(c),m=ct(t,{}),y=c.select(".basic.label-container > path:nth-child(2)"),C=y.node();if(!C)return c;let x=null;if(C instanceof SVGGraphicsElement)x=C.getBBox();else return c;return c.insert(()=>f.line(x.x,x.y,x.x+x.width,x.y,m),".basic.label-container g.label"),c.insert(()=>f.line(x.x,x.y+x.height,x.x+x.width,x.y+x.height,m),".basic.label-container g.label"),y.remove(),c}const h=c.select(".basic.label-container"),u=(Number(h.attr("width"))||a)??0,d=(Number(h.attr("height"))||n)??0;return u>0&&d>0&&h.attr("stroke-dasharray",`${u} ${d}`),c}p(Pg,"datastore");async function Ng(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?16:t.padding??0,{shapeSvg:a,bbox:n,label:l}=await Ct(e,t,bt(t)),c=n.width+s,h=n.height+o,u=h*.2,d=-c/2,f=-h/2-u/2,{cssStyles:m}=t,y=ut.svg(a),C=ct(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=[{x:d,y:f+u},{x:-d,y:f+u},{x:-d,y:-f},{x:d,y:-f},{x:d,y:f},{x:-d,y:f},{x:-d,y:f+u}],k=y.polygon(x.map(S=>[S.x,S.y]),C),T=a.insert(()=>k,":first-child");return T.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),l.attr("transform",`translate(${d+(t.padding??0)
201/2-(n.x-(n.left??0))}, ${f+u+(t.padding??0)/2-(n.y-(n.top??0))})`),pt(t,T),t.intersect=function(S){return at.rect(t,S)},a}p(Ng,"dividedRectangle");async function qg(e,t){var f,m;const{labelStyles:r,nodeStyles:i}=gt(t),s=t.look==="neo"?12:5;t.labelStyle=r;const o=t.padding??0,a=t.look==="neo"?16:o,{shapeSvg:n,bbox:l}=await Ct(e,t,bt(t)),c=(t!=null&&t.width?(t==null?void 0:t.width)/2:l.width/2)+(a??0),h=c-s;let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const y=ut.svg(n),C=ct(t,{roughness:.2,strokeWidth:2.5}),x=ct(t,{roughness:.2,strokeWidth:1.5}),k=y.circle(0,0,c*2,C),T=y.circle(0,0,h*2,x);u=n.insert("g",":first-child"),u.attr("class",se(t.cssClasses)).attr("style",se(d)),(f=u.node())==null||f.appendChild(k),(m=u.node())==null||m.appendChild(T)}else{u=n.insert("g",":first-child");const y=u.insert("circle",":first-child"),C=u.insert("circle");u.attr("class","basic label-container").attr("style",i),y.attr("class","outer-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0),C.attr("class","inner-circle").attr("style",i).attr("r",h).attr("cx",0).attr("cy",0)}return pt(t,u),t.intersect=function(y){return I.info("DoubleCircle intersect",t,c,y),at.circle(t,c,y)},n}p(qg,"doublecircle");function Wg(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=gt(t);t.label="",t.labelStyle=i;const o=e.insert("g").attr("class",bt(t)).attr("id",t.domId??t.id),a=7,{cssStyles:n}=t,l=ut.svg(o),{nodeBorder:c}=r,h=ct(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(h.roughness=0);const u=l.circle(0,0,a*2,h),d=o.insert(()=>u,":first-child");return d.selectAll("path").attr("style",`fill: ${c} !important;`),n&&n.length>0&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",n),s&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",s),pt(t,d),t.intersect=function(f){return I.info("filledCircle intersect",t,{radius:a,point:f}),at.circle(t,a,f)},o}p(Wg,"filledCircle");var $u=10,Ou=10;async function zg(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?s*2:s;(t.width||t.height)&&(t.height=(t==null?void 0:t.height)??0,t.height<$u&&(t.height=$u),t.width=((t==null?void 0:t.width)??0)-o-o/2,t.width<Ou&&(t.width=Ou));const{shapeSvg:a,bbox:n,label:l}=await Ct(e,t,bt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:n.width)+(o??0),h=t!=null&&t.height?t==null?void 0:t.height:c+n.height,u=h,d=[{x:0,y:-h},{x:u,y:-h},{x:u/2,y:0}],{cssStyles:f}=t,m=ut.svg(a),y=ct(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=Ht(d),x=m.path(C,y),k=a.insert(()=>x,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`).attr("class","outer-path");return f&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),t.width=c,t.height=h,pt(t,k),l.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${-h/2+(t.padding??0)/2+(n.y-(n.top??0))})`),t.intersect=function(T){return I.info("Triangle intersect",t,d,T),at.polygon(t,d,T)},a}p(zg,"flippedTriangle");async function Hg(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await Ct(e,t,bt(t)),n=t.padding??12,l=Math.max(o.width+n*2,t.width??0,90),c=o.height+n*2,h=Math.max(Math.min(c*.16,14),8),u=Math.max(c+h,t.height??0),d=u-h,f=Math.max(l*.38,28),m=-u/2,y=[{x:-l/2,y:m},{x:-l/2+f,y:m},{x:-l/2+f,y:m+h},{x:l/2,y:m+h},{x:l/2,y:u/2},{x:-l/2,y:u/2}],C=[`M${y[0].x},${y[0].y}`,...y.slice(1).map(S=>`L${S.x},${S.y}`),"Z"].join(" "),{cssStyles:x}=t;let k;if(t.look==="handDrawn"){const v=ut.svg(s).path(C,ct(t,{}));k=s.insert(()=>v,":first-child").attr("class","basic label-container"),x&&k.attr("style",x)}else k=s.insert("path",":first-child").attr("d",C).attr("class","basic label-container").attr("style",i);t.look==="handDrawn"?pt(t,k):pt(t,k,{width:l,height:u});const T=m+h+d/2;return a.attr("transform",`translate(${-(o.width/2)-(o.x-(o.left??0))}, ${T-o.height/2-(o.y-(o.top??0))})`),t.intersect=function(S){return at.polygon(t,y,S)},s}p(Hg,"folder");function Yg(e,t,{dir:r,config:{state:i,themeVariables:s}}){const{nodeStyles:o}=gt(t);t.label="";const a=e.insert("g").attr("class",bt(t)).attr("id",t.domId??t.id),{cssStyles:n}=t;let l=Math.max(70,(t==null?void 0:t.width)??0),c=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(l=Math.max(10,(t==null?void 0:t.width)??0),c=Math.max(70,(t==null?void 0:t.height)??0));const h=-1*l/2,u=-1*c/2,d=ut.svg(a),f=ct(t,{stroke:s.lineColor,fill:s.lineColor});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const m=d.rectangle(h,u,l,c,f),y=a.insert(()=>m,":first-child");n&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",n),o&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",o),pt(t,y);const C=(i==null?void 0:i.padding)??0;return t.width&&t.height&&(t.width+=C/2||0,t.height+=C/2||0),t.intersect=function(x){return at.rect(t,x)},a}p(Yg,"forkJoin");async function Ug(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=15,o=10,a=t.look==="neo"?16:t.padding??0,n=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=((t==null?void 0:t.height)??0)-n*2,t.height<o&&(t.height=o
201),t.width=((t==null?void 0:t.width)??0)-a*2,t.width<s&&(t.width=s));const{shapeSvg:l,bbox:c}=await Ct(e,t,bt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:Math.max(s,c.width))+a*2,u=(t!=null&&t.height?t==null?void 0:t.height:Math.max(o,c.height))+n*2,d=u/2,{cssStyles:f}=t,m=ut.svg(l),y=ct(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=[{x:-h/2,y:-u/2},{x:h/2-d,y:-u/2},...ar(-h/2+d,0,d,50,90,270),{x:h/2-d,y:u/2},{x:-h/2,y:u/2}],x=Ht(C),k=m.path(x,y),T=l.insert(()=>k,":first-child");return T.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),pt(t,T),t.intersect=function(S){return I.info("Pill intersect",t,{radius:d,point:S}),at.polygon(t,C,S)},l}p(Ug,"halfRoundedRectangle");var IB=p((e,t,r,i,s)=>[`M${e+s},${t}`,`L${e+r-s},${t}`,`L${e+r},${t-i/2}`,`L${e+r-s},${t-i}`,`L${e+s},${t-i}`,`L${e},${t-i/2}`,"Z"].join(" "),"createHexagonPathD");async function Gg(e,t){const{labelStyles:r,nodeStyles:i}=gt(t),s=t.look==="neo"?3.5:4;t.labelStyle=r;const o=t.padding??0,a=70,n=32,l=t.look==="neo"?a:o,c=t.look==="neo"?n:o;if(t.width||t.height){const T=(t.height??0)/s;t.width=((t==null?void 0:t.width)??0)-2*T-c,t.height=(t.height??0)-l}const{shapeSvg:h,bbox:u}=await Ct(e,t,bt(t)),d=(t!=null&&t.height?t==null?void 0:t.height:u.height)+l,f=d/s,m=(t!=null&&t.width?t==null?void 0:t.width:u.width)+2*f+c,y=[{x:f,y:0},{x:m-f,y:0},{x:m,y:-d/2},{x:m-f,y:-d},{x:f,y:-d},{x:0,y:-d/2}];let C;const{cssStyles:x}=t;if(t.look==="handDrawn"){const k=ut.svg(h),T=ct(t,{}),S=IB(0,0,m,d,f),v=k.path(S,T);C=h.insert(()=>v,":first-child").attr("transform",`translate(${-m/2}, ${d/2})`),x&&C.attr("style",x)}else C=gr(h,m,d,y);return i&&C.attr("style",i),t.width=m,t.height=d,pt(t,C),t.intersect=function(k){return at.polygon(t,y,k)},h}p(Gg,"hexagon");async function Xg(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.label="",t.labelStyle=r;const{shapeSvg:s}=await Ct(e,t,bt(t)),o=Math.max(30,(t==null?void 0:t.width)??0),a=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:n}=t,l=ut.svg(s),c=ct(t,{});t.look!=="handDrawn"&&(c.roughness=0,c.fillStyle="solid");const h=[{x:0,y:0},{x:o,y:0},{x:0,y:a},{x:o,y:a}],u=Ht(h),d=l.path(u,c),f=s.insert(()=>d,":first-child");return f.attr("class","basic label-container outer-path"),n&&t.look!=="handDrawn"&&f.selectChildren("path").attr("style",n),i&&t.look!=="handDrawn"&&f.selectChildren("path").attr("style",i),f.attr("transform",`translate(${-o/2}, ${-a/2})`),pt(t,f),t.intersect=function(m){return I.info("Pill intersect",t,{points:h}),at.polygon(t,h,m)},s}p(Xg,"hourglass");async function jg(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=gt(t);t.labelStyle=s;const o=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(o,a),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(n,l??0);const{shapeSvg:c,bbox:h,label:u}=await Ct(e,t,"icon-shape default"),d=t.pos==="t",f=n,m=n,{nodeBorder:y}=r,{stylesMap:C}=zi(t),x=-m/2,k=-f/2,T=t.label?8:0,S=ut.svg(c),v=ct(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(v.roughness=0,v.fillStyle="solid");const B=S.rectangle(x,k,m,f,v),L=Math.max(m,h.width),O=f+h.height+T,U=S.rectangle(-L/2,-O/2,L,O,{...v,fill:"transparent",stroke:"none"}),N=c.insert(()=>B,":first-child"),Y=c.insert(()=>U);if(t.icon){const st=c.append("g");st.html(`<g>${await Rs(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const q=st.node().getBBox(),W=q.width,K=q.height,A=q.x,V=q.y;st.attr("transform",`translate(${-W/2-A},${d?h.height/2+T/2-K/2-V:-h.height/2-T/2-K/2-V})`),st.attr("style",`color: ${C.get("stroke")??y};`)}return u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${d?-O/2:O/2-h.height})`),N.attr("transform",`translate(0,${d?h.height/2+T/2:-h.height/2-T/2})`),pt(t,Y),t.intersect=function(st){if(I.info("iconSquare intersect",t,st),!t.label)return at.rect(t,st);const q=t.x??0,W=t.y??0,K=t.height??0;let A=[];return d?A=[{x:q-h.width/2,y:W-K/2},{x:q+h.width/2,y:W-K/2},{x:q+h.width/2,y:W-K/2+h.height+T},{x:q+m/2,y:W-K/2+h.height+T},{x:q+m/2,y:W+K/2},{x:q-m/2,y:W+K/2},{x:q-m/2,y:W-K/2+h.height+T},{x:q-h.width/2,y:W-K/2+h.height+T}]:A=[{x:q-m/2,y:W-K/2},{x:q+m/2,y:W-K/2},{x:q+m/2,y:W-K/2+f},{x:q+h.width/2,y:W-K/2+f},{x:q+h.width/2/2,y:W+K/2},{x:q-h.width/2,y:W+K/2},{x:q-h.width/2,y:W-K/2+f},{x:q-m/2,y:W-K/2+f}],at.polygon(t,A,st)},c}p(jg,"icon");
201async function Vg(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=gt(t);t.labelStyle=s;const o=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(o,a),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(n,l??0);const{shapeSvg:c,bbox:h,label:u}=await Ct(e,t,"icon-shape default"),d=20,f=t.label?8:0,m=t.pos==="t",{nodeBorder:y,mainBkg:C}=r,{stylesMap:x}=zi(t),k=ut.svg(c),T=ct(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const S=x.get("fill");T.stroke=S??C;const v=c.append("g");t.icon&&v.html(`<g>${await Rs(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const B=v.node().getBBox(),L=B.width,O=B.height,U=B.x,N=B.y,Y=Math.max(L,O)*Math.SQRT2+d*2,st=k.circle(0,0,Y,T),q=Math.max(Y,h.width),W=Y+h.height+f,K=k.rectangle(-q/2,-W/2,q,W,{...T,fill:"transparent",stroke:"none"}),A=c.insert(()=>st,":first-child"),V=c.insert(()=>K);return v.attr("transform",`translate(${-L/2-U},${m?h.height/2+f/2-O/2-N:-h.height/2-f/2-O/2-N})`),v.attr("style",`color: ${x.get("stroke")??y};`),u.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${m?-W/2:W/2-h.height})`),A.attr("transform",`translate(0,${m?h.height/2+f/2:-h.height/2-f/2})`),pt(t,V),t.intersect=function(et){return I.info("iconSquare intersect",t,et),at.rect(t,et)},c}p(Vg,"iconCircle");async function Kg(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=gt(t);t.labelStyle=s;const o=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(o,a),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(n,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:d}=await Ct(e,t,"icon-shape default"),f=t.pos==="t",m=n+u*2,y=n+u*2,{nodeBorder:C,mainBkg:x}=r,{stylesMap:k}=zi(t),T=-y/2,S=-m/2,v=t.label?8:0,B=ut.svg(c),L=ct(t,{});t.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");const O=k.get("fill");L.stroke=O??x;const U=B.path(He(T,S,y,m,5),L),N=Math.max(y,h.width),Y=m+h.height+v,st=B.rectangle(-N/2,-Y/2,N,Y,{...L,fill:"transparent",stroke:"none"}),q=c.insert(()=>U,":first-child").attr("class","icon-shape2"),W=c.insert(()=>st);if(t.icon){const K=c.append("g");K.html(`<g>${await Rs(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const A=K.node().getBBox(),V=A.width,et=A.height,Z=A.x,lt=A.y;K.attr("transform",`translate(${-V/2-Z},${f?h.height/2+v/2-et/2-lt:-h.height/2-v/2-et/2-lt})`),K.attr("style",`color: ${k.get("stroke")??C};`)}return d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-Y/2:Y/2-h.height})`),q.attr("transform",`translate(0,${f?h.height/2+v/2:-h.height/2-v/2})`),pt(t,W),t.intersect=function(K){if(I.info("iconSquare intersect",t,K),!t.label)return at.rect(t,K);const A=t.x??0,V=t.y??0,et=t.height??0;let Z=[];return f?Z=[{x:A-h.width/2,y:V-et/2},{x:A+h.width/2,y:V-et/2},{x:A+h.width/2,y:V-et/2+h.height+v},{x:A+y/2,y:V-et/2+h.height+v},{x:A+y/2,y:V+et/2},{x:A-y/2,y:V+et/2},{x:A-y/2,y:V-et/2+h.height+v},{x:A-h.width/2,y:V-et/2+h.height+v}]:Z=[{x:A-y/2,y:V-et/2},{x:A+y/2,y:V-et/2},{x:A+y/2,y:V-et/2+m},{x:A+h.width/2,y:V-et/2+m},{x:A+h.width/2/2,y:V+et/2},{x:A-h.width/2,y:V+et/2},{x:A-h.width/2,y:V-et/2+m},{x:A-y/2,y:V-et/2+m}],at.polygon(t,Z,K)},c}p(Kg,"iconRounded");async function Zg(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:s}=gt(t);t.labelStyle=s;const o=t.assetHeight??48,a=t.assetWidth??48,n=Math.max(o,a),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(n,l??0);const{shapeSvg:c,bbox:h,halfPadding:u,label:d}=await Ct(e,t,"icon-shape default"),f=t.pos==="t",m=n+u*2,y=n+u*2,{nodeBorder:C,mainBkg:x}=r,{stylesMap:k}=zi(t),T=-y/2,S=-m/2,v=t.label?8:0,B=ut.svg(c),L=ct(t,{});t.look!=="handDrawn"&&(L.roughness=0,L.fillStyle="solid");const O=k.get("fill");L.stroke=O??x;const U=B.path(He(T,S,y,m,.1),L),N=Math.max(y,h.width),Y=m+h.height+v,st=B.rectangle(-N/2,-Y/2,N,Y,{...L,fill:"transparent",stroke:"none"}),q=c.insert(()=>U,":first-child"),W=c.insert(()=>st);if(t.icon){const K=c.append("g");K.html(`<g>${await Rs(t.icon,{height:n,width:n,fallbackPrefix:""})}</g>`);const A=K.node().getBBox(),V=A.width,et=A.height,Z=A.x,lt=A.y;K.attr("transform",`translate(${-V/2-Z},${f?h.height/2+v/2-et/2-lt:-h.height/2-v/2-et/2-lt})`),K.attr("style",`color: ${k.get("stroke")??C};`)}return d.attr("transform",`translate(${-h.width/2-(h.x-(h.left??0))},${f?-Y/2:Y/2-h.height})`),q.attr("transform",`translate(0,${f?h.height/2+v/2:-h.height/2-v/2})`),pt(t,W),t.intersect=function(K){if(I.info("iconSquare intersect",t,K),!t.label)return at.rect(t,K);const A=t.x??0,V=t.y??0,et=t.height??0;let Z=[];return f?Z=[{x:A-h.width/2,y:V-et/2},{x:A+h.width/2,y:V-et/2},{x:A+h.width/2,y:V-et/2+h.height+v},{x:A+y/2,y:V-et/2+h.height+v},{x:A+y/2,y:V+et/2},{x:A-y/2,y:V+et/2},{x:A-y/2,y:V-et/2+h.height+v},{x:A-h.width/2,y:V-et/2+h.height+v}]:Z=[{x:A-y/2,y:V-et/2},{x:A+y/2,y:V-et/2},{x:A+y/2,y:V-et/2+m},{x:A+h.width/2,y:V-et/2+m},{x:A+h.width/2/2,y:V+et/2},{x:A-h.width/2,y:V+et/2},{x:A-h.width/2,y:V-et/2+m},{x:A-y/2,y:V-et/2+m}],at.polygon(t,Z,K)},c}p(Zg,"iconSquare");
201async function Qg(e,t,{config:{flowchart:r}}){const i=new Image;i.src=(t==null?void 0:t.img)??"",await i.decode();const s=Number(i.naturalWidth.toString().replace("px","")),o=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=s/o;const{labelStyles:a}=gt(t);t.labelStyle=a;const n=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const l=Math.max(t.label?n??0:0,(t==null?void 0:t.assetWidth)??s),c=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:l,h=t.constraint==="on"?c/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??o;t.width=Math.max(c,n??0);const{shapeSvg:u,bbox:d,label:f}=await Ct(e,t,"image-shape default"),m=t.pos==="t",y=-c/2,C=-h/2,x=t.label?8:0,k=ut.svg(u),T=ct(t,{});t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const S=k.rectangle(y,C,c,h,T),v=Math.max(c,d.width),B=h+d.height+x,L=k.rectangle(-v/2,-B/2,v,B,{...T,fill:"none",stroke:"none"}),O=u.insert(()=>S,":first-child"),U=u.insert(()=>L);if(t.img){const N=u.append("image");N.attr("href",t.img),N.attr("width",c),N.attr("height",h),N.attr("preserveAspectRatio","none"),N.attr("transform",`translate(${-c/2},${m?B/2-h:-B/2})`)}return f.attr("transform",`translate(${-d.width/2-(d.x-(d.left??0))},${m?-h/2-d.height/2-x/2:h/2-d.height/2+x/2})`),O.attr("transform",`translate(0,${m?d.height/2+x/2:-d.height/2-x/2})`),pt(t,U),t.intersect=function(N){if(I.info("iconSquare intersect",t,N),!t.label)return at.rect(t,N);const Y=t.x??0,st=t.y??0,q=t.height??0;let W=[];return m?W=[{x:Y-d.width/2,y:st-q/2},{x:Y+d.width/2,y:st-q/2},{x:Y+d.width/2,y:st-q/2+d.height+x},{x:Y+c/2,y:st-q/2+d.height+x},{x:Y+c/2,y:st+q/2},{x:Y-c/2,y:st+q/2},{x:Y-c/2,y:st-q/2+d.height+x},{x:Y-d.width/2,y:st-q/2+d.height+x}]:W=[{x:Y-c/2,y:st-q/2},{x:Y+c/2,y:st-q/2},{x:Y+c/2,y:st-q/2+h},{x:Y+d.width/2,y:st-q/2+h},{x:Y+d.width/2/2,y:st+q/2},{x:Y-d.width/2,y:st+q/2},{x:Y-d.width/2,y:st-q/2+h},{x:Y-c/2,y:st-q/2+h}],at.polygon(t,W,N)},u}p(Qg,"imageSquare");async function Jg(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=s,a=t.look==="neo"?s*2:s,{shapeSvg:n,bbox:l}=await Ct(e,t,bt(t)),c=Math.max(l.height+o*2,t.height??0),h=Math.max(l.width+a*2,(t.width??0)-c),u=[{x:0,y:0},{x:h,y:0},{x:h+3*c/6,y:-c},{x:-3*c/6,y:-c}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const m=ut.svg(n),y=ct(t,{}),C=Ht(u),x=m.path(C,y);d=n.insert(()=>x,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),f&&d.attr("style",f)}else d=gr(n,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,pt(t,d),t.intersect=function(m){return at.polygon(t,u,m)},n}p(Jg,"inv_trapezoid");async function tm(e,t){const{shapeSvg:r,bbox:i,label:s}=await Ct(e,t,"label"),o=r.insert("rect",":first-child");return o.attr("width",.1).attr("height",.1),r.attr("class","label edgeLabel"),s.attr("transform",`translate(${-(i.width/2)-(i.x-(i.left??0))}, ${-(i.height/2)-(i.y-(i.top??0))})`),pt(t,o),t.intersect=function(l){return at.rect(t,l)},r}p(tm,"labelRect");async function em(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=s,a=t.look==="neo"?s*2:s,{shapeSvg:n,bbox:l}=await Ct(e,t,bt(t)),c=Math.max(l.height+o,t.height??0),h=Math.max(l.width+a,(t.width??0)-c),u=[{x:0,y:0},{x:h+3*c/6,y:0},{x:h,y:-c},{x:-(3*c)/6,y:-c}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const m=ut.svg(n),y=ct(t,{}),C=Ht(u),x=m.path(C,y);d=n.insert(()=>x,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),f&&d.attr("style",f)}else d=gr(n,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,pt(t,d),t.intersect=function(m){return at.polygon(t,u,m)},n}p(em,"lean_left");async function rm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=s,a=t.look==="neo"?s*2:s,{shapeSvg:n,bbox:l}=await Ct(e,t,bt(t)),c=Math.max(l.height+o,t.height??0),h=Math.max(l.width+a,(t.width??0)-c),u=[{x:-3*c/6,y:0},{x:h,y:0},{x:h+3*c/6,y:-c},{x:0,y:-c}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const m=ut.svg(n),y=ct(t,{}),C=Ht(u),x=m.path(C,y);d=n.insert(()=>x,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),f&&d.attr("style",f)}else d=gr(n,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,pt(t,d),t.intersect=function(m){return at.polygon(t,u,m)},n}p(rm,"lean_right");function im(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.label="",t.labelStyle=r;const s=e.insert("g").attr("class",bt(t)).attr("id",t.domId??t.id),{cssStyles:o}=t,a=Math.max(35,(t==null?void 0:t.width)??0),n=Math.max(35,(t==null?void 0:t.height)??0),l=7,c=[{x:a,y:0},{x:0,y:n+l/2},{x:a-2*l,y:n+l/2},{x:0,y:2*n},{x:a,y:n-l/2},{x:2*l,y:n-l/2}],h=ut.svg(s),u=ct(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const d=Ht(c),f=h.path(d,u),m=s.insert(()=>f,":first-child");return m.attr("class","outer-path"),o&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",o),i&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",i),m.attr("transform",`translate(-${a/2},${-n})`),pt(t,m),t.intersect=function(y){return I.info("lightningBolt intersect",t,y),at.polygon(t,c,y)},s}p(im,"lightningBolt");var RB=p((e,t,r,i,s,o,a)=>[`M${e},${t+o}`,`a${s},${o} 0,0,0 ${r},0`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+o+a}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),PB=p((e,t,r,i,s,o,a)=>[`M${e},${t+o}`,`M${e+r},${t+o}`,`a${s},${o} 0,0,0 ${-r},0`,`l0,${i}`,`a${s},${o} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+o+a}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),NB=p((e,t,r,i,s,o)=>[`M${e-r/2},${-i/2}`,`a${s},${o} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),Du=10,Iu=10;async function sm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?24:s;if(t.width||t.height){const x=t.width??0;t.width=(t.width??0)-o,t.width<Iu&&(t.width=Iu);const T=x/2/(2.5+x/50);t.height=(t.height??0)-a-T*3,t.height<Du&&(t.height=Du)}const{shapeSvg:n,bbox:l,label:c}=await Ct(e,t,bt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:l.width)+o*2,u=h/2,d=u/(2.5+h/50),f=(t!=null&&t.height?t==null?void 0:t.height:l.height)+d+a*2,m=f*.1;let y;const{cssStyles:C}=t;if(t.look==="handDrawn"){const x=ut.svg(n),k=PB(0,0,h,f,u,d,m),T=NB(0,d,h,f,u,d),S=ct(t,{}),v=x.path(k,S),B=x.path(T,S);n.insert(()=>B,":first-child").attr("class","line"),y=n.insert(()=>v,":first-child"),y.attr("class","basic label-container"),C&&y.attr("style",C)}
201else{const x=RB(0,0,h,f,u,d,m);y=n.insert("path",":first-child").attr("d",x).attr("class","basic label-container outer-path").attr("style",se(C)).attr("style",i)}return y.attr("label-offset-y",d),y.attr("transform",`translate(${-h/2}, ${-(f/2+d)})`),pt(t,y),c.attr("transform",`translate(${-(l.width/2)-(l.x-(l.left??0))}, ${-(l.height/2)+d-(l.y-(l.top??0))})`),t.intersect=function(x){const k=at.rect(t,x),T=k.x-(t.x??0);if(u!=0&&(Math.abs(T)<(t.width??0)/2||Math.abs(T)==(t.width??0)/2&&Math.abs(k.y-(t.y??0))>(t.height??0)/2-d)){let S=d*d*(1-T*T/(u*u));S>0&&(S=Math.sqrt(S)),S=d-S,x.y-(t.y??0)>0&&(S=-S),k.y+=S}return k},n}p(sm,"linedCylinder");async function om(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s;if(t.width||t.height){const S=t.width;t.width=(S??0)*10/11-o*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-a*2,t.height<10&&(t.height=10)}const{shapeSvg:n,bbox:l,label:c}=await Ct(e,t,bt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:l.width)+(o??0)*2,u=(t!=null&&t.height?t==null?void 0:t.height:l.height)+(a??0)*2,d=t.look==="neo"?u/4:u/8,f=u+d,{cssStyles:m}=t,y=ut.svg(n),C=ct(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=[{x:-h/2-h/2*.1,y:-f/2},{x:-h/2-h/2*.1,y:f/2},...Wr(-h/2-h/2*.1,f/2,h/2+h/2*.1,f/2,d,.8),{x:h/2+h/2*.1,y:-f/2},{x:-h/2-h/2*.1,y:-f/2},{x:-h/2,y:-f/2},{x:-h/2,y:f/2*1.1},{x:-h/2,y:-f/2}],k=y.polygon(x.map(S=>[S.x,S.y]),C),T=n.insert(()=>k,":first-child");return T.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),T.attr("transform",`translate(0,${-d/2})`),c.attr("transform",`translate(${-h/2+(t.padding??0)+h/2*.1/2-(l.x-(l.left??0))},${-u/2+(t.padding??0)-d/2-(l.y-(l.top??0))})`),pt(t,T),t.intersect=function(S){return at.polygon(t,x,S)},n}p(om,"linedWaveEdgedRect");async function am(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s,n=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-o*2-2*n,10),t.height=Math.max(((t==null?void 0:t.height)??0)-a*2-2*n,10));const{shapeSvg:l,bbox:c,label:h}=await Ct(e,t,bt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:c.width)+o*2+2*n,d=(t!=null&&t.height?t==null?void 0:t.height:c.height)+a*2+2*n,f=u-2*n,m=d-2*n,y=-f/2,C=-m/2,{cssStyles:x}=t,k=ut.svg(l),T=ct(t,{}),S=[{x:y-n,y:C+n},{x:y-n,y:C+m+n},{x:y+f-n,y:C+m+n},{x:y+f-n,y:C+m},{x:y+f,y:C+m},{x:y+f,y:C+m-n},{x:y+f+n,y:C+m-n},{x:y+f+n,y:C-n},{x:y+n,y:C-n},{x:y+n,y:C},{x:y,y:C},{x:y,y:C+n}],v=[{x:y,y:C+n},{x:y+f-n,y:C+n},{x:y+f-n,y:C+m},{x:y+f,y:C+m},{x:y+f,y:C},{x:y,y:C}];t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const B=Ht(S);let L=k.path(B,T);const O=Ht(v);let U=k.path(O,T);t.look!=="handDrawn"&&(L=sl(L),U=sl(U));const N=l.insert("g",":first-child");return N.insert(()=>L),N.insert(()=>U),N.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",i),h.attr("transform",`translate(${-(c.width/2)-n-(c.x-(c.left??0))}, ${-(c.height/2)+n-(c.y-(c.top??0))})`),pt(t,N),t.intersect=function(Y){return at.polygon(t,S,Y)},l}p(am,"multiRect");async function nm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await Ct(e,t,bt(t)),n=t.padding??0,l=t.look==="neo"?16:n,c=t.look==="neo"?12:n;let h=!0;(t.width||t.height)&&(h=!1,t.width=((t==null?void 0:t.width)??0)-l*2,t.height=((t==null?void 0:t.height)??0)-c*3);const u=Math.max(o.width,(t==null?void 0:t.width)??0)+l*2,d=Math.max(o.height,(t==null?void 0:t.height)??0)+c*3,f=t.look==="neo"?d/4:d/8,m=d+(h?f/2:-f/2),y=-u/2,C=-m/2,x=10,{cssStyles:k}=t,T=Wr(y-x,C+m+x,y+u-x,C+m+x,f,.8),S=T==null?void 0:T[T.length-1],v=[{x:y-x,y:C+x},{x:y-x,y:C+m+x},...T,{x:y+u-x,y:S.y-x},{x:y+u,y:S.y-x},{x:y+u,y:S.y-2*x},{x:y+u+x,y:S.y-2*x},{x:y+u+x,y:C-x},{x:y+x,y:C-x},{x:y+x,y:C},{x:y,y:C},{x:y,y:C+x}],B=[{x:y,y:C+x},{x:y+u-x,y:C+x},{x:y+u-x,y:S.y-x},{x:y+u,y:S.y-x},{x:y+u,y:C},{x:y,y:C}],L=ut.svg(s),O=ct(t,{});t.look!=="handDrawn"&&(O.roughness=0,O.fillStyle="solid");
201const U=Ht(v),N=L.path(U,O),Y=Ht(B),st=L.path(Y,O),q=s.insert(()=>N,":first-child");return q.insert(()=>st),q.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&q.selectAll("path").attr("style",i),q.attr("transform",`translate(0,${-f/2})`),a.attr("transform",`translate(${-(o.width/2)-x-(o.x-(o.left??0))}, ${-(o.height/2)+x-f/2-(o.y-(o.top??0))})`),pt(t,q),t.intersect=function(W){return at.polygon(t,v,W)},s}p(nm,"multiWaveEdgedRectangle");async function lm(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:s}=gt(t);t.labelStyle=i,t.useHtmlLabels||Ce(Jt())||(t.centerLabel=!0);const{shapeSvg:a,bbox:n,label:l}=await Ct(e,t,bt(t)),c=Math.max(n.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),h=Math.max(n.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=-c/2,d=-h/2,{cssStyles:f}=t,m=ut.svg(a),y=ct(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=m.rectangle(u,d,c,h,y),x=a.insert(()=>C,":first-child");return x.attr("class","basic label-container outer-path"),l.attr("class","label noteLabel"),f&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",f),s&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",s),l.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),pt(t,x),t.intersect=function(k){return at.rect(t,k)},a}p(lm,"note");var qB=p((e,t,r)=>[`M${e+r/2},${t}`,`L${e+r},${t-r/2}`,`L${e+r/2},${t-r}`,`L${e},${t-r/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function hm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Ct(e,t,bt(t)),a=o.width+(t.padding??0),n=o.height+(t.padding??0),l=a+n,c=.5,h=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let u;const{cssStyles:d}=t;if(t.look==="handDrawn"){const f=ut.svg(s),m=ct(t,{}),y=qB(0,0,l),C=f.path(y,m);u=s.insert(()=>C,":first-child").attr("transform",`translate(${-l/2+c}, ${l/2})`),d&&u.attr("style",d)}else u=gr(s,l,l,h),u.attr("transform",`translate(${-l/2+c}, ${l/2})`);return i&&u.attr("style",i),pt(t,u),t.calcIntersect=function(f,m){const y=f.width,C=[{x:y/2,y:0},{x:y,y:-y/2},{x:y/2,y:-y},{x:0,y:-y/2}],x=at.polygon(f,C,m);return{x:x.x-.5,y:x.y-.5}},t.intersect=function(f){return this.calcIntersect(t,f)},s}p(hm,"question");async function cm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?21:s??0,a=t.look==="neo"?12:s??0,{shapeSvg:n,bbox:l,label:c}=await Ct(e,t,bt(t)),h=l.width+(t.look==="neo"?o*2:o),u=Math.max(l.height+(t.look==="neo"?a*2:a),t.height??0),d=u/4,m=-Math.max(h,(t.width??0)-d)/2,y=-u/2,C=y/2,x=[{x:m+C,y},{x:m,y:0},{x:m+C,y:-y},{x:-m,y:-y},{x:-m,y}],{cssStyles:k}=t,T=ut.svg(n),S=ct(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const v=Ht(x),B=T.path(v,S),L=n.insert(()=>B,":first-child");return L.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&L.selectAll("path").attr("style",i),L.attr("transform",`translate(${-C/2},0)`),c.attr("transform",`translate(${-C/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),pt(t,L),t.intersect=function(O){return at.polygon(t,x,O)},n}p(cm,"rect_left_inv_arrow");async function um(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;let s;t.cssClasses?s="node "+t.cssClasses:s="node default";const o=e.insert("g").attr("class",s).attr("id",t.domId||t.id),a=o.insert("g"),n=o.insert("g").attr("class","label").attr("style",i),l=t.description,c=t.label,h=await Rr(n,c,t.labelStyle,!0,!0);let u={width:0,height:0};if(Ce(Nt())){const O=h.children[0],U=Ot(h);u=O.getBoundingClientRect(),U.attr("width",u.width),U.attr("height",u.height)}I.info("Text 2",l);const d=l||[],f=h.getBBox(),m=await Rr(n,Array.isArray(d)?d.join("<br/>"):d,t.labelStyle,!0,!0),y=m.children[0],C=Ot(m);u=y.getBoundingClientRect(),C.attr("width",u.width),C.attr("height",u.height);const x=(t.padding||0)/2;Ot(m).attr("transform","translate( "+(u.width>f.width?0:(f.width-u.width)/2)+", "+(f.height+x+5)+")"),Ot(h).attr("transform","translate( "+(u.width<f.width?0:-(f.width-u.width)/2)+", 0)"),u=n.node().getBBox(),n.attr("transform","translate("+-u.width/2+", "+(-u.height/2-x+3)+")");const k=u.width+(t.padding||0),T=u.height+(t.padding||0),S=-u.width/2-x,v=-u.height/2-x;let B,L;if(t.look==="handDrawn"){const O=ut.svg(o),U=ct(t,{}),N=O.path(He(S,v,k,T,t.rx||0),U),Y=O.line(-u.width/2-x,-u.height/2-x+f.height+x,u.width/2+x,-u.height/2-x+f.height+x,U);L=o.insert(()=>(I.debug("Rough node insert CXC",N),Y),":first-child"),B=o.insert(()=>(I.debug("Rough node insert CXC",N),N),":first-child")}else B=a.insert("rect",":first-child"),L=a.insert("line"),B.attr("class","outer title-state").attr("style",i).attr("x",-u.width/2-x).attr("y",-u.height/2-x).attr("width",u.width+(t.padding||0)).attr("height",u.height+(t.padding||0)),L.attr("class","divider").attr("x1",-u.width/2-x).attr("x2",u.width/2+x).attr("y1",-u.height/2-x+f.height+x
201).attr("y2",-u.height/2-x+f.height+x);return pt(t,B),t.intersect=function(O){return at.rect(t,O)},o}p(um,"rectWithTitle");async function dm(e,t,{config:{themeVariables:r}}){const i=(r==null?void 0:r.radius)??5,s={rx:i,ry:i,labelPaddingX:((t==null?void 0:t.padding)??0)*1,labelPaddingY:((t==null?void 0:t.padding)??0)*1};return Hi(e,t,s)}p(dm,"roundedRect");var Yr=8;async function fm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?12:t.padding??0,{shapeSvg:a,bbox:n,label:l}=await Ct(e,t,bt(t)),c=((t==null?void 0:t.width)??n.width)+s*2+(t.look==="neo"?Yr:Yr*2),h=((t==null?void 0:t.height)??n.height)+o*2,u=c-Yr,d=h,f=Yr-c/2,m=-h/2,{cssStyles:y}=t,C=ut.svg(a),x=ct(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const k=[{x:f,y:m},{x:f+u,y:m},{x:f+u,y:m+d},{x:f-Yr,y:m+d},{x:f-Yr,y:m},{x:f,y:m},{x:f,y:m+d}],T=C.polygon(k.map(v=>[v.x,v.y]),x),S=a.insert(()=>T,":first-child");return S.attr("class","basic label-container outer-path").attr("style",se(y)),i&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),y&&t.look!=="handDrawn"&&S.selectAll("path").attr("style",i),l.attr("transform",`translate(${Yr/2-n.width/2-(n.x-(n.left??0))}, ${-(n.height/2)-(n.y-(n.top??0))})`),pt(t,S),t.intersect=function(v){return at.rect(t,v)},a}p(fm,"shadedProcess");async function pm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-o*2,10),t.height=Math.max(((t==null?void 0:t.height)??0)/1.5-a*2,10));const{shapeSvg:n,bbox:l,label:c}=await Ct(e,t,bt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:l.width)+o*2,u=((t!=null&&t.height?t==null?void 0:t.height:l.height)+a*2)*1.5,d=h,f=u/1.5,m=-d/2,y=-f/2,{cssStyles:C}=t,x=ut.svg(n),k=ct(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const T=[{x:m,y},{x:m,y:y+f},{x:m+d,y:y+f},{x:m+d,y:y-f/2}],S=Ht(T),v=x.path(S,k),B=n.insert(()=>v,":first-child");return B.attr("class","basic label-container  outer-path"),C&&t.look!=="handDrawn"&&B.selectChildren("path").attr("style",C),i&&t.look!=="handDrawn"&&B.selectChildren("path").attr("style",i),B.attr("transform",`translate(0, ${f/4})`),c.attr("transform",`translate(${-d/2+(t.padding??0)-(l.x-(l.left??0))}, ${-f/4+(t.padding??0)-(l.y-(l.top??0))})`),pt(t,B),t.intersect=function(L){return at.polygon(t,T,L)},n}p(pm,"slopedRect");async function gm(e,t){const r=t.padding??0,i=t.look==="neo"?16:r*2,s=t.look==="neo"?12:r,o={rx:0,ry:0,labelPaddingX:t.labelPaddingX??i,labelPaddingY:s};return Hi(e,t,o)}p(gm,"squareRect");async function mm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?20:s,a=t.look==="neo"?12:s,{shapeSvg:n,bbox:l}=await Ct(e,t,bt(t)),c=l.height+(t.look==="neo"?a*2:a),h=l.width+c/4+(t.look==="neo"?o*2:o),u=c/2,{cssStyles:d}=t,f=ut.svg(n),m=ct(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const y=[{x:-h/2+u,y:-c/2},{x:h/2-u,y:-c/2},...ar(-h/2+u,0,u,50,90,270),{x:h/2-u,y:c/2},...ar(h/2-u,0,u,50,270,450)],C=Ht(y),x=f.path(C,m),k=n.insert(()=>x,":first-child");return k.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),pt(t,k),t.intersect=function(T){return at.polygon(t,y,T)},n}p(mm,"stadium");async function ym(e,t){const r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5};return Hi(e,t,r)}p(ym,"state");function xm(e,t,{config:{themeVariables:r}}){var k,T;const{labelStyles:i,nodeStyles:s}=gt(t);t.labelStyle=i;const{cssStyles:o}=t,{lineColor:a,stateBorder:n,nodeBorder:l,nodeShadow:c}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const h=e.insert("g").attr("class","node default").attr("id",t.domId??t.id),u=ut.svg(h),d=ct(t,{});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const f=u.circle(0,0,t.width,{...d,stroke:a,strokeWidth:2}),m=n??l,y=(t.width??0)*5/14,C=u.circle(0,0,y,{...d,fill:m,stroke:m,strokeWidth:2,fillStyle:"solid"}),x=h.insert(()=>f,":first-child");if(x.insert(()=>C),t.look!=="handDrawn"&&x.attr("class","outer-path"),o&&x.selectAll("path").attr("style",o),s&&x.selectAll("path").attr("style",s),t.width<25&&c&&t.look!=="handDrawn"){const S=((T=(k=e.node())==null?void 0:k.ownerSVGElement)==null?void 0:T.id)??"",v=S?`${S}-drop-shadow-small`:"drop-shadow-small";x.attr("style",`filter:url(#${v})`)}return pt(t,x),t.intersect=function(S){return at.circle(t,(t.width??0)/2,S)},h}p(xm,"stateEnd");function Cm(e,t,{config:{themeVariables:r}}){var n,l;const{lineColor:i,nodeShadow:s}=r;(t.width||t.height)&&((t.width??0)<14&&(t.width=14),(t.height??0)<14&&(t.height=14)),t.width||(t.width=14),t.height||(t.height=14);const o=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let a;if(t.look==="handDrawn"){const h=ut.svg(o).circle(0,0,t.width,qS(i));a=o.insert(()=>h),a.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14)}else a=o.insert("circle",":first-child"),a.attr("class","state-start").attr("r",(t.width??7)/2).attr("width",t.width??14).attr("height",t.height??14);if(t.width<25&&s&&t.look!=="handDrawn"){const c=((l=(n=e.node())==null?void 0:n.ownerSVGElement)==null?void 0:l.id)??"",h=c?`${c}-drop-shadow-small`:"drop-shadow-small";a.attr("style",`filter:url(#${h})`)}return pt(t,a),t.intersect=function(c){return at.circle(t,(t.width??7)/2,c)},o}p(Cm,"stateStart");var ui=8;async function bm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=(t==null?void 0:t.padding)??8,o=t.look==="neo"?28:s,a=t.look==="neo"?12:s,{shapeSvg:n,bbox:l}=await Ct(e,t,bt(t)),c=Math.max(l.width+2*ui+o,t.width??0),h=Math.max(l.height+a,t.height??0),u=c-2*ui,d=h,f=-c/2,m=-h/2,y=[{x:0,y:0},{x:u,y:0},{x:u,y:-d},{x:0,y:-d},{x:0,y:0},{x:-8,y:0}
201,{x:u+8,y:0},{x:u+8,y:-d},{x:-8,y:-d},{x:-8,y:0}];if(t.look==="handDrawn"){const C=ut.svg(n),x=ct(t,{}),k=C.rectangle(f,m,u+16,d,x),T=C.line(f+ui,m,f+ui,m+d,x),S=C.line(f+ui+u,m,f+ui+u,m+d,x);n.insert(()=>T,":first-child"),n.insert(()=>S,":first-child");const v=n.insert(()=>k,":first-child"),{cssStyles:B}=t;v.attr("class","basic label-container").attr("style",se(B)),pt(t,v)}else{const C=gr(n,u,d,y);i&&C.attr("style",i),pt(t,C)}return t.intersect=function(C){return at.polygon(t,y,C)},n}p(bm,"subroutine");var ja=.2;async function km(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s;(t.width||t.height)&&(t.height=Math.max(((t==null?void 0:t.height)??0)-a*2,10),t.width=Math.max(((t==null?void 0:t.width)??0)-o*2-ja*(t.height+a*2),10));const{shapeSvg:n,bbox:l}=await Ct(e,t,bt(t)),c=(t!=null&&t.height?t==null?void 0:t.height:l.height)+a*2,h=ja*c,u=ja*c,f=(t!=null&&t.width?t==null?void 0:t.width:l.width)+o*2+h-h,m=c,y=-f/2,C=-m/2,{cssStyles:x}=t,k=ut.svg(n),T=ct(t,{}),S=[{x:y-h/2,y:C},{x:y+f+h/2,y:C},{x:y+f+h/2,y:C+m},{x:y-h/2,y:C+m}],v=[{x:y+f-h/2,y:C+m},{x:y+f+h/2,y:C+m},{x:y+f+h/2,y:C+m-u}];t.look!=="handDrawn"&&(T.roughness=0,T.fillStyle="solid");const B=Ht(S),L=k.path(B,T),O=Ht(v),U=k.path(O,{...T,fillStyle:"solid"}),N=n.insert(()=>U,":first-child");return N.insert(()=>L,":first-child"),N.attr("class","basic label-container outer-path"),x&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",x),i&&t.look!=="handDrawn"&&N.selectAll("path").attr("style",i),pt(t,N),t.intersect=function(Y){return at.polygon(t,S,Y)},n}p(km,"taggedRect");async function wm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,label:a}=await Ct(e,t,bt(t)),n=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),c=l/8,h=.2*n,u=.2*l,d=l+c,{cssStyles:f}=t,m=ut.svg(s),y=ct(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=[{x:-n/2-n/2*.1,y:d/2},...Wr(-n/2-n/2*.1,d/2,n/2+n/2*.1,d/2,c,.8),{x:n/2+n/2*.1,y:-d/2},{x:-n/2-n/2*.1,y:-d/2}],x=-n/2+n/2*.1,k=-d/2-u*.4,T=[{x:x+n-h,y:(k+l)*1.3},{x:x+n,y:k+l-u},{x:x+n,y:(k+l)*.9},...Wr(x+n,(k+l)*1.25,x+n-h,(k+l)*1.3,-l*.02,.5)],S=Ht(C),v=m.path(S,y),B=Ht(T),L=m.path(B,{...y,fillStyle:"solid"}),O=s.insert(()=>L,":first-child");return O.insert(()=>v,":first-child"),O.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",i),O.attr("transform",`translate(0,${-c/2})`),a.attr("transform",`translate(${-n/2+(t.padding??0)-(o.x-(o.left??0))},${-l/2+(t.padding??0)-c/2-(o.y-(o.top??0))})`),pt(t,O),t.intersect=function(U){return at.polygon(t,C,U)},s}p(wm,"taggedWaveEdgedRectangle");async function Tm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o}=await Ct(e,t,bt(t)),a=Math.max(o.width+(t.padding??0),(t==null?void 0:t.width)||0),n=Math.max(o.height+(t.padding??0),(t==null?void 0:t.height)||0),l=-a/2,c=-n/2,h=s.insert("rect",":first-child");return h.attr("class","text").attr("style",i).attr("rx",0).attr("ry",0).attr("x",l).attr("y",c).attr("width",a).attr("height",n),pt(t,h),t.intersect=function(u){return at.rect(t,u)},s}p(Tm,"text");var WB=p((e,t,r,i,s,o)=>`M${e},${t}
202    a${s},${o} 0,0,1 0,${-i}
203    l${r},0
204    a${s},${o} 0,0,1 0,${i}
205    M${r},${-i}
206    a${s},${o} 0,0,0 0,${i}
207    l${-r},0`,"createCylinderPathD"),zB=p((e,t,r,i,s,o)=>[`M${e},${t}`,`M${e+r},${t}`,`a${s},${o} 0,0,0 0,${-i}`,`l${-r},0`,`a${s},${o} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),HB=p((e,t,r,i,s,o)=>[`M${e+r/2},${-i/2}`,`a${s},${o} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),Ru=5,Pu=10;async function Sm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?12:s/2,a=t.height??0;if(t.height&&(t.height=t.height-o,t.height<Ru&&(t.height=Ru)),t.width){const x=a/2/(2.5+a/50);t.width=t.width-o-x*3,t.width<Pu&&(t.width=Pu)}const{shapeSvg:n,bbox:l,label:c}=await Ct(e,t,bt(t)),h=Math.max(t.height??0,l.height)+o,u=h/2,d=u/(2.5+h/50),f=Math.max(t.width??0,l.width)+d+o,{cssStyles:m}=t;let y;if(t.look==="handDrawn"){const C=ut.svg(n),x=zB(0,0,f,h,d,u),k=HB(0,0,f,h,d,u),T=C.path(x,ct(t,{})),S=C.path(k,ct(t,{fill:"none"}));y=n.insert(()=>S,":first-child"),y=n.insert(()=>T,":first-child"),y.attr("class","basic label-container"),m&&y.attr("style",m)}else{const C=WB(0,0,f,h,d,u);y=n.insert("path",":first-child").attr("d",C).attr("class","basic label-container").attr("style",se(m)).attr("style",i),y.attr("class","basic label-container outer-path"),m&&y.selectAll("path").attr("style",m),i&&y.selectAll("path").attr("style",i)}return y.attr("label-offset-x",d),y.attr("transform",`translate(${-f/2}, ${h/2} )`),c.attr("transform",`translate(${-(l.width/2)-d-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),pt(t,y),t.intersect=function(C){const x=at.rect(t,C),k=x.y-(t.y??0);if(u!=0&&(Math.abs(k)<(t.height??0)/2||Math.abs(k)==(t.height??0)/2&&Math.abs(x.x-(t.x??0))>(t.width??0)/2-d)){let T=d*d*(1-k*k/(u*u));T!=0&&(T=Math.sqrt(Math.abs(T))),T=d-T,C.x-(t.x??0)>0&&(T=-T),x.x+=T}return x},n}p(Sm,"tiltedCylinder");async function _m(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=(t.look==="neo",s),a=t.look==="neo"?s*2:s,{shapeSvg:n,bbox:l}=await Ct(e,t,bt(t)),c=Math.max(l.height+o,t.height??0),h=Math.max(l.width+a,(t.width??0)-c),u=[{x:-3*c/6,y:0},{x:h+3*c/6,y:0},{x:h,y:-c},{x:0,y:-c}];let d;const{cssStyles:f}=t;if(t.look==="handDrawn"){const m=ut.svg(n),y=ct(t,{}),C=Ht(u),x=m.path(C,y);d=n.insert(()=>x,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),f&&d.attr("style",f)}else d=gr(n,h,c,u);return i&&d.attr("style",i),t.width=h,t.height=c,pt(t,d),t.intersect=function(m){return at.polygon(t,u,m)},n}p(_m,"trapezoid");async function vm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s,n=15,l=5;
207(t.width||t.height)&&(t.height=(t.height??0)-a*2,t.height<l&&(t.height=l),t.width=(t.width??0)-o*2,t.width<n&&(t.width=n));const{shapeSvg:c,bbox:h}=await Ct(e,t,bt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:h.width)+o*2,d=(t!=null&&t.height?t==null?void 0:t.height:h.height)+a*2,{cssStyles:f}=t,m=ut.svg(c),y=ct(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=[{x:-u/2*.8,y:-d/2},{x:u/2*.8,y:-d/2},{x:u/2,y:-d/2*.6},{x:u/2,y:d/2},{x:-u/2,y:d/2},{x:-u/2,y:-d/2*.6}],x=Ht(C),k=m.path(x,y),T=c.insert(()=>k,":first-child");return T.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),pt(t,T),t.intersect=function(S){return at.polygon(t,C,S)},c}p(vm,"trapezoidalPentagon");var Nu=10,qu=10;async function Bm(e,t){var S;const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?s*2:s;(t.width||t.height)&&(t.width=(((t==null?void 0:t.width)??0)-o)/2,t.width<qu&&(t.width=qu),t.height=(t==null?void 0:t.height)??0,t.height<Nu&&(t.height=Nu));const{shapeSvg:a,bbox:n,label:l}=await Ct(e,t,bt(t)),c=dr((S=Nt().flowchart)==null?void 0:S.htmlLabels),h=(t!=null&&t.width?t==null?void 0:t.width:n.width)+o,u=t!=null&&t.height?t==null?void 0:t.height:h+n.height,d=u,f=[{x:0,y:0},{x:d,y:0},{x:d/2,y:-u}],{cssStyles:m}=t,y=ut.svg(a),C=ct(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=Ht(f),k=y.path(x,C),T=a.insert(()=>k,":first-child").attr("transform",`translate(${-u/2}, ${u/2})`).attr("class","outer-path");return m&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",m),i&&t.look!=="handDrawn"&&T.selectChildren("path").attr("style",i),t.width=h,t.height=u,pt(t,T),l.attr("transform",`translate(${-n.width/2-(n.x-(n.left??0))}, ${u/2-(n.height+(t.padding??0)/(c?2:1)-(n.y-(n.top??0)))})`),t.intersect=function(v){return I.info("Triangle intersect",t,f,v),at.polygon(t,f,v)},a}p(Bm,"triangle");async function Lm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?12:s;let n=!0;(t.width||t.height)&&(n=!1,t.width=((t==null?void 0:t.width)??0)-o*2,t.width<10&&(t.width=10),t.height=((t==null?void 0:t.height)??0)-a*2,t.height<10&&(t.height=10));const{shapeSvg:l,bbox:c,label:h}=await Ct(e,t,bt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:c.width)+(o??0)*2,d=(t!=null&&t.height?t==null?void 0:t.height:c.height)+(a??0)*2,f=t.look==="neo"?d/4:d/8,m=d+(n?f:-f),{cssStyles:y}=t,x=14-u,k=x>0?x/2:0,T=ut.svg(l),S=ct(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");const v=[{x:-u/2-k,y:m/2},...Wr(-u/2-k,m/2,u/2+k,m/2,f,.8),{x:u/2+k,y:-m/2},{x:-u/2-k,y:-m/2}],B=Ht(v),L=T.path(B,S),O=l.insert(()=>L,":first-child");return O.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&O.selectAll("path").attr("style",i),O.attr("transform",`translate(0,${-f/2})`),h.attr("transform",`translate(${-u/2+(t.padding??0)-(c.x-(c.left??0))},${-d/2+(t.padding??0)-f-(c.y-(c.top??0))})`),pt(t,O),t.intersect=function(U){return at.polygon(t,v,U)},l}p(Lm,"waveEdgedRectangle");async function Fm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.padding??0,o=t.look==="neo"?16:s,a=t.look==="neo"?20:s;if(t.width||t.height){t.width=(t==null?void 0:t.width)??0,t.width<20&&(t.width=20),t.height=(t==null?void 0:t.height)??0,t.height<10&&(t.height=10);const S=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-a-S*(20/9)),t.width=t.width-o*2}const{shapeSvg:n,bbox:l}=await Ct(e,t,bt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:l.width)+o*2,h=(t!=null&&t.height?t==null?void 0:t.height:l.height)+a,u=h/8,d=h+u*2,{cssStyles:f}=t,m=ut.svg(n),y=ct(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const C=[{x:-c/2,y:d/2},...Wr(-c/2,d/2,c/2,d/2,u,1),{x:c/2,y:-d/2},...Wr(c/2,-d/2,-c/2,-d/2,u,-1)],x=Ht(C),k=m.path(x,y),T=n.insert(()=>k,":first-child");return T.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&T.selectAll("path").attr("style",i),pt(t,T),t.intersect=function(S){return at.polygon(t,C,S)},n}p(Fm,"waveRectangle");var ee=10;async function Am(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-s*2-ee,10),t.height=Math.max(((t==null?void 0:t.height)??0)-o*2-ee,10));const{shapeSvg:a,bbox:n,label:l}=await Ct(e,t,bt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:n.width)+s*2+ee,h=(t!=null&&t.height?t==null?void 0:t.height:n.height)+o*2+ee,u=c-ee,d=h-ee,f=-u/2,m=-d/2,{cssStyles:y}=t,C=ut.svg(a),x=ct(t,{}),k=[{x:f-ee,y:m-ee},{x:f-ee,y:m+d},{x:f+u,y:m+d},{x:f+u,y:m-ee}],T=`M${f-ee},${m-ee}
207 L${f+u},${m-ee} L${f+u},${m+d} L${f-ee},${m+d} L${f-ee},${m-ee}
208                M${f-ee},${m} L${f+u},${m}
209                M${f},${m-ee} L${f},${m+d}`;t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");const S=C.path(T,x),v=a.insert(()=>S,":first-child");return v.attr("transform",`translate(${ee/2}, ${ee/2})`),v.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&v.selectAll("path").attr("style",i),l.attr("transform",`translate(${-(n.width/2)+ee/2-(n.x-(n.left??0))}, ${-(n.height/2)+ee/2-(n.y-(n.top??0))})`),pt(t,v),t.intersect=function(B){return at.polygon(t,k,B)},a}p(Am,"windowPane");var Wu=new Set(["redux-color","redux-dark-color"]),YB=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function hh(e,t){var Rt,Dt,Ut,Et;const r=t;r.alias&&(t.label=r.alias);const{theme:i,themeVariables:s}=Jt(),{rowEven:o,rowOdd:a,nodeBorder:n,borderColorArray:l}=s;if(t.look==="handDrawn"){const{themeVariables:mt}=Jt(),{background:xt}=mt,$t={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${xt}`]};await hh(e,$t)}const c=Jt();t.useHtmlLabels=c.htmlLabels;let h=((Rt=c.er)==null?void 0:Rt.diagramPadding)??10,u=((Dt=c.er)==null?void 0:Dt.entityPadding)??6;const{cssStyles:d}=t,{labelStyles:f,nodeStyles:m}=gt(t);if(r.attributes.length===0&&t.label){const mt={rx:0,ry:0,labelPaddingX:h,labelPaddingY:h*1.5};Fr(t.label,c)+mt.labelPaddingX*2<c.er.minEntityWidth&&(t.width=c.er.minEntityWidth);const xt=await Hi(e,t,mt);if(i!=null&&Wu.has(i)){const $t=r.colorIndex??0;xt.attr("data-color-id",`color-${$t%l.length}`)}if(!dr(c.htmlLabels)){const $t=xt.select("text"),qt=(Ut=$t.node())==null?void 0:Ut.getBBox();$t.attr("transform",`translate(${-qt.width/2}, 0)`)}return xt}c.htmlLabels||(h*=1.25,u*=1.25);let y=bt(t);y||(y="node default");const C=e.insert("g").attr("class",y).attr("id",t.domId||t.id),x=await fi(C,t.label??"",c,0,0,["name"],f);x.height+=u;let k=0;const T=[],S=[];let v=0,B=0,L=0,O=0,U=!0,N=!0;for(const mt of r.attributes){const xt=await fi(C,mt.type,c,0,k,["attribute-type"],f);v=Math.max(v,xt.width+h);const $t=await fi(C,mt.name,c,0,k,["attribute-name"],f);B=Math.max(B,$t.width+h);const qt=await fi(C,mt.keys.join(),c,0,k,["attribute-keys"],f);L=Math.max(L,qt.width+h);const Gt=await fi(C,mt.comment,c,0,k,["attribute-comment"],f);O=Math.max(O,Gt.width+h);const M=Math.max(xt.height,$t.height,qt.height,Gt.height)+u;S.push({yOffset:k,rowHeight:M}),k+=M}let Y=4;L<=h&&(U=!1,L=0,Y--),O<=h&&(N=!1,O=0,Y--);const st=C.node().getBBox();if(x.width+h*2-(v+B+L+O)>0){const mt=x.width+h*2-(v+B+L+O);v+=mt/Y,B+=mt/Y,L>0&&(L+=mt/Y),O>0&&(O+=mt/Y)}const q=v+B+L+O,W=ut.svg(C),K=ct(t,{});t.look!=="handDrawn"&&(K.roughness=0,K.fillStyle="solid");let A=0;S.length>0&&(A=S.reduce((mt,xt)=>mt+((xt==null?void 0:xt.rowHeight)??0),0));const V=Math.max(st.width+h*2,(t==null?void 0:t.width)||0,q),et=Math.max((A??0)+x.height,(t==null?void 0:t.height)||0),Z=-V/2,lt=-et/2;if(C.selectAll("g:not(:first-child)").each((mt,xt,$t)=>{const qt=Ot($t[xt]),Gt=qt.attr("transform");let M=0,Tt=0;if(Gt){const Te=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(Gt);Te&&(M=parseFloat(Te[1]),Tt=parseFloat(Te[2]),qt.attr("class").includes("attribute-name")?M+=v:qt.attr("class").includes("attribute-keys")?M+=v+B:qt.attr("class").includes("attribute-comment")&&(M+=v+B+L))}qt.attr("transform",`translate(${Z+h/2+M}, ${Tt+lt+x.height+u/2})`)}),C.select(".name").attr("transform","translate("+-x.width/2+", "+(lt+u/2)+")"),i!=null&&Wu.has(i)){const mt=r.colorIndex??0;C.attr("data-color-id",`color-${mt%l.length}`)}const _t=W.rectangle(Z,lt,V,et,K),St=C.insert(()=>_t,":first-child").attr("class","outer-path").attr("style",d.join(""));T.push(0);for(const[mt,xt]of S.entries()){const qt=(mt+1)%2===0&&xt.yOffset!==0,Gt=W.rectangle(Z,x.height+lt+(xt==null?void 0:xt.yOffset),V,xt==null?void 0:xt.rowHeight,{...K,fill:qt?o:a,stroke:n});C.insert(()=>Gt,"g.label").attr("style",d.join("")).attr("class",`row-rect-${qt?"even":"odd"}`)}const Lt=1e-4;let Mt=pi(Z,x.height+lt,V+Z,x.height+lt,Lt),ht=W.polygon(Mt.map(mt=>[mt.x,mt.y]),K);if(C.insert(()=>ht).attr("class","divider"),Mt=pi(v+Z,x.height+lt,v+Z,et+lt,Lt),ht=W.polygon(Mt.map(mt=>[mt.x,mt.y]),K),C.insert(()=>ht).attr("class","divider"),U){const mt=v+B+Z;Mt=pi(mt,x.height+lt,mt,et+lt,Lt),ht=W.polygon(Mt.map(xt=>[xt.x,xt.y]),K),C.insert(()=>ht).attr("class","divider")}if(N){const mt=v+B+L+Z;Mt=pi(mt,x.height+lt,mt,et+lt,Lt),ht=W.polygon(Mt.map(xt=>[xt.x,xt.y]),K),C.insert(()=>ht).attr("class","divider")}for(const mt of T){const xt=x.height+lt+mt;Mt=pi(Z,xt,V+Z,xt,Lt),ht=W.polygon(Mt.map($t=>[$t.x,$t.y]),K),C.insert(()=>ht).attr("class","divider")}if(pt(t,St),m&&t.look!=="handDrawn")if(i!=null&&YB.has(i))C.selectAll("path").attr("style",m);else{const mt=m.split(";"),xt=(Et=mt==null?void 0:mt.filter($t=>$t.includes("stroke")))==null?void 0:Et.map($t=>`${$t}`).join("; ");C.selectAll("path").attr("style",xt??""),C.selectAll(".row-rect-even path").attr("style",m)}return t.intersect=function(mt){return at.rect(t,mt)},C}
209p(hh,"erBox");async function fi(e,t,r,i=0,s=0,o=[],a=""){const n=e.insert("g").attr("class",`label ${o.join(" ")}`).attr("transform",`translate(${i}, ${s})`).attr("style",a);t!==vc(t)&&(t=vc(t),t=t.replaceAll("<","&lt;").replaceAll(">","&gt;"));const l=n.node().appendChild(await Qe(n,t,{width:Fr(t,r)+100,style:a,useHtmlLabels:r.htmlLabels},r));if(t.includes("&lt;")||t.includes("&gt;")){let h=l.children[0];for(h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">");h.childNodes[0];)h=h.childNodes[0],h.textContent=h.textContent.replaceAll("&lt;","<").replaceAll("&gt;",">")}let c=l.getBBox();if(dr(r.htmlLabels)){const h=l.children[0];h.style.textAlign="start";const u=Ot(l);c=h.getBoundingClientRect(),u.attr("width",c.width),u.attr("height",c.height)}return c}p(fi,"addText");function pi(e,t,r,i,s){return e===r?[{x:e-s/2,y:t},{x:e+s/2,y:t},{x:r+s/2,y:i},{x:r-s/2,y:i}]:[{x:e,y:t-s/2},{x:e,y:t+s/2},{x:r,y:i+s/2},{x:r,y:i-s/2}]}p(pi,"lineToPolygon");async function Em(e,t,r,i,s=r.class.padding??12){const o=i?0:3,a=e.insert("g").attr("class",bt(t)).attr("id",t.domId||t.id);let n=null,l=null,c=null,h=null,u=0,d=0,f=0;if(n=a.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const k=t.annotations[0];await us(n,{text:`«${k}»`},0),u=n.node().getBBox().height}l=a.insert("g").attr("class","label-group text"),await us(l,t,0,["font-weight: bolder"]);const m=l.node().getBBox();d=m.height,c=a.insert("g").attr("class","members-group text");let y=0;for(const k of t.members){const T=await us(c,k,y,[k.parseClassifier()]);y+=T+o}f=c.node().getBBox().height,f<=0&&(f=s/2),h=a.insert("g").attr("class","methods-group text");let C=0;for(const k of t.methods){const T=await us(h,k,C,[k.parseClassifier()]);C+=T+o}let x=a.node().getBBox();if(n!==null){const k=n.node().getBBox();n.attr("transform",`translate(${-k.width/2})`)}return l.attr("transform",`translate(${-m.width/2}, ${u})`),x=a.node().getBBox(),c.attr("transform",`translate(0, ${u+d+s*2})`),x=a.node().getBBox(),h.attr("transform",`translate(0, ${u+d+(f?f+s*4:s*2)})`),x=a.node().getBBox(),{shapeSvg:a,bbox:x}}p(Em,"textHelper");async function us(e,t,r,i=[]){const s=e.insert("g").attr("class","label").attr("style",i.join("; ")),o=Jt();let a="useHtmlLabels"in t?t.useHtmlLabels:dr(o.htmlLabels)??!0,n="";"text"in t?n=t.text:n=t.label,!a&&n.startsWith("\\")&&(n=n.substring(1)),bs(n)&&(a=!0);const l=await Qe(s,Tl(Nr(n)),{width:Fr(n,o)+50,classes:"markdown-node-label",useHtmlLabels:a},o);let c,h=1;if(a){const u=l.children[0],d=Ot(l);h=u.innerHTML.split("<br>").length,u.innerHTML.includes("</math>")&&(h+=u.innerHTML.split("<mrow>").length-1),await oh(u),c=u.getBoundingClientRect(),d.attr("width",c.width),d.attr("height",c.height)}else{i.includes("font-weight: bolder")&&Ot(l).selectAll("tspan").attr("font-weight",""),h=l.children.length;const u=l.children[0];(l.textContent===""||l.textContent.includes("&gt"))&&(u.textContent=n[0]+n.substring(1).replaceAll("&gt;",">").replaceAll("&lt;","<").trim(),n[1]===" "&&(u.textContent=u.textContent[0]+" "+u.textContent.substring(1))),u.textContent==="undefined"&&(u.textContent=""),c=l.getBBox()}return s.attr("transform","translate(0,"+(-c.height/(2*h)+r)+")"),c.height}p(us,"addText");async function Mm(e,t){var W,K;const r=Nt(),{themeVariables:i}=r,{useGradient:s}=i,o=r.class.padding??12,a=o,n=t.useHtmlLabels??dr(r.htmlLabels)??!0,l=t;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:c,bbox:h}=await Em(e,t,r,n,a),{labelStyles:u,nodeStyles:d}=gt(t);t.labelStyle=u,t.cssStyles=l.styles||"";const f=((W=l.styles)==null?void 0:W.join(";"))||d||"";t.cssStyles||(t.cssStyles=f.replaceAll("!important","").split(";"));const m=l.members.length===0&&l.methods.length===0&&!((K=r.class)!=null&&K.hideEmptyMembersBox),y=ut.svg(c),C=ct(t,{});t.look!=="handDrawn"&&(C.roughness=0,C.fillStyle="solid");const x=Math.max(t.width??0,h.width);let k=Math.max(t.height??0,h.height);const T=(t.height??0)>h.height;l.members.length===0&&l.methods.length===0?k+=a:l.members.length>0&&l.methods.length===0&&(k+=a*2);const S=-x/2,v=-k/2;let B=m?o*2:l.members.length===0&&l.methods.length===0?-o:0;T&&(B=o*2);const L=y.rectangle(S-o,v-o-(m?o:l.members.length===0&&l.methods.length===0?-o/2:0),x+2*o,k+2*o+B,C),O=c.insert(()=>L,":first-child");O.attr("class","basic label-container outer-path");const U=O.node().getBBox(),N=c.select(".annotation-group").node().getBBox().height-(m?o/2:0)||0,Y=c.select(".label-group").node().getBBox().height-(m?o/2:0)||0,st=c.select(".members-group").node().getBBox().height-(m?o/2:0)||0,q=(N+Y+v+o-(v-o-(m?o:l.members.length===0&&l.methods.length===0?-o/2:0)))/2;if(c.selectAll(".text").each((A,V,et)=>{var Mt,ht;const Z=Ot(et[V]),lt=Z.attr("transform");let _t=0;if(lt){const Dt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(lt);Dt&&(_t=parseFloat(Dt[2]))}let St=_t+v+o-(m?o:l.members.length===0&&l.methods.length===0?-o/2:0);if(Z.attr("class").includes("methods-group")){const Rt=Math.max(st,a/2);T?St=Math.max(q,N+Y+Rt+v+a*2+o)+a*2:St=N+Y+Rt+v+a*4+o}l.members.length===0&&l.methods.length===0&&((Mt=r.class)!=null&&Mt.hideEmptyMembersBox)&&(l.annotations.length>0?St=_t-a:St=_t),n||(St-=4);let Lt=S;(Z.attr("class").includes("label-group")||Z.attr("class").includes("annotation-group"))&&(Lt=-((ht=Z.node())==null?void 0:ht.getBBox().width)/2||0,c.selectAll("text").each(function(Rt,Dt,Ut){window.getComputedStyle(Ut[Dt]).textAnchor==="middle"&&(Lt=0)})),Z.attr("transform",`translate(${Lt}, ${St})`)}),l.members.length>0||l.methods.length>0||m){const A=N+Y+v+o,V=y.line(U.x,A,U.x+U.width,A+.001,C);c.insert(()=>V).attr("class",`divider${t.look==="neo"&&!s?" neo-line":""}`).attr("style",f)}if(m||l.members.length>0||l.methods.length>
2090){const A=N+Y+st+v+a*2+o,V=y.line(U.x,T?Math.max(q,A):A,U.x+U.width,(T?Math.max(q,A):A)+.001,C);c.insert(()=>V).attr("class",`divider${t.look==="neo"&&!s?" neo-line":""}`).attr("style",f)}if(l.look!=="handDrawn"&&c.selectAll("path").attr("style",f),O.select(":nth-child(2)").attr("style",f),c.selectAll(".divider").select("path").attr("style",f),t.labelStyle?c.selectAll("span").attr("style",t.labelStyle):c.selectAll("span").attr("style",f),!n){const A=RegExp(/color\s*:\s*([^;]*)/),V=A.exec(f);if(V){const et=V[0].replace("color","fill");c.selectAll("tspan").attr("style",et)}else if(u){const et=A.exec(u);if(et){const Z=et[0].replace("color","fill");c.selectAll("tspan").attr("style",Z)}}}return pt(t,O),t.intersect=function(A){return at.rect(t,A)},c}p(Mm,"classBox");async function $m(e,t){var Y,st;const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const s=t,o=t,a=20,n=20,l="verifyMethod"in t,c=bt(t),h=Nt(),{themeVariables:u}=h,{borderColorArray:d,requirementEdgeLabelBackground:f}=u,m=h.layout==="elk"?"start":"center",y=e.insert("g").attr("class",c).attr("id",t.domId??t.id);let C;l?C=await ir(y,`&lt;&lt;${s.type}&gt;&gt;`,0,t.labelStyle):C=await ir(y,"&lt;&lt;Element&gt;&gt;",0,t.labelStyle);let x=C;const k=await ir(y,s.name,x,t.labelStyle+"; font-weight: bold;");if(x+=k+n,l){const q=await ir(y,`${s.requirementId?`ID: ${s.requirementId}`:""}`,x,t.labelStyle,m);x+=q;const W=await ir(y,`${s.text?`Text: ${s.text}`:""}`,x,t.labelStyle,m);x+=W;const K=await ir(y,`${s.risk?`Risk: ${s.risk}`:""}`,x,t.labelStyle,m);x+=K,await ir(y,`${s.verifyMethod?`Verification: ${s.verifyMethod}`:""}`,x,t.labelStyle,m)}else{const q=await ir(y,`${o.type?`Type: ${o.type}`:""}`,x,t.labelStyle,m);x+=q,await ir(y,`${o.docRef?`Doc Ref: ${o.docRef}`:""}`,x,t.labelStyle,m)}const T=(((Y=y.node())==null?void 0:Y.getBBox().width)??200)+a,S=(((st=y.node())==null?void 0:st.getBBox().height)??200)+a,v=-T/2,B=-S/2,L=ut.svg(y),O=ct(t,{});t.look!=="handDrawn"&&(O.roughness=0,O.fillStyle="solid");const U=L.rectangle(v,B,T,S,O),N=y.insert(()=>U,":first-child");if(N.attr("class","basic label-container outer-path").attr("style",i),d!=null&&d.length){const q=t.colorIndex??0;y.attr("data-color-id",`color-${q%d.length}`)}if(y.selectAll(".label").each((q,W,K)=>{const A=Ot(K[W]),V=A.attr("transform");let et=0,Z=0;if(V){const Lt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(V);Lt&&(et=parseFloat(Lt[1]),Z=parseFloat(Lt[2]))}const lt=Z-S/2;let _t=v+a/2;(W===0||W===1)&&(_t=et),A.attr("transform",`translate(${_t}, ${lt+a})`)}),x>C+k+n){const q=B+C+k+n;let W;if(t.look==="neo"){const V=[[v,q],[v+T,q],[v+T,q+.001],[v,q+.001]];W=L.polygon(V,O)}else W=L.line(v,q,v+T,q,O);y.insert(()=>W).attr("class","divider")}return pt(t,N),t.intersect=function(q){return at.rect(t,q)},i&&t.look!=="handDrawn"&&(f||d!=null&&d.length)&&y.selectAll("path").attr("style",i),y}p($m,"requirementBox");async function ir(e,t,r,i="",s="center"){if(t==="")return 0;const o=e.insert("g").attr("class","label").attr("style",i),a=Nt(),n=a.htmlLabels??!0,l=await Qe(o,Tl(Nr(t)),{width:Fr(t,a)+50,classes:"markdown-node-label",useHtmlLabels:n,style:i},a);let c;if(n){const h=l.children[0],u=Ot(l);s==="start"&&Ot(h).style("text-align","left"),c=h.getBoundingClientRect(),u.attr("width",c.width),u.attr("height",c.height)}else{const h=l.children[0];for(const u of h.children)i&&u.setAttribute("style",i);if(s==="start"){h.setAttribute("text-anchor","start");for(const u of h.children)u.setAttribute("text-anchor","start")}c=l.getBBox(),c.height+=6}return o.attr("transform",`translate(${-c.width/2},${-c.height/2+r})`),c.height}p(ir,"addText");var UB=p(e=>{switch(e){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function Om(e,t,{config:r}){var st,q;const{labelStyles:i,nodeStyles:s}=gt(t);t.labelStyle=i||"";const o=10,a=t.width;t.width=(t.width??200)-10;const{shapeSvg:n,bbox:l,label:c}=await Ct(e,t,bt(t)),h=t.padding||10;let u="",d;"ticket"in t&&t.ticket&&((st=r==null?void 0:r.kanban)!=null&&st.ticketBaseUrl)&&(u=(q=r==null?void 0:r.kanban)==null?void 0:q.ticketBaseUrl.replace("#TICKET#",t.ticket),d=n.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",u).attr("target","_blank"));const f={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let m,y;d?{label:m,bbox:y}=await Ga(d,"ticket"in t&&t.ticket||"",f):{label:m,bbox:y}=await Ga(n,"ticket"in t&&t.ticket||"",f);const{label:C,bbox:x}=await Ga(n,"assigned"in t&&t.assigned||"",f);t.width=a;const k=10,T=(t==null?void 0:t.width)||0,S=Math.max(y.height,x.height)/2,v=Math.max(l.height+k*2,(t==null?void 0:t.height)||0)+S,B=-T/2,L=-v/2;c.attr("transform","translate("+(h-T/2)+", "+(-S-l.height/2)+")"),m.attr("transform","translate("+(h-T/2)+", "+(-S+l.height/2)+")"),C.attr("transform","translate("+(h+T/2-x.width-2*o)+", "+(-S+l.height/2)+")");let O;const{rx:U,ry:N}=t,{cssStyles:Y}=t;if(t.look==="handDrawn"){const W=ut.svg(n),K=ct(t,{}),A=U||N?W.path(He(B,L,T,v,U||0),K):W.rectangle(B,L,T,v,K);O=n.insert(()=>A,":first-child"),O.attr("class","basic label-container").attr("style",Y||null)}else{O=n.insert("rect",":first-child"),O.attr("class","basic label-container __APA__").attr("style",s).attr("rx",U??5).attr("ry",N??5).attr("x",B).attr("y",L).attr("width",T).attr("height",v);const W="priority"in t&&t.priority;if(W){const K=n.append("line"),A=B+2,V=L+Math.floor((U??0)/2),et=L+v-Math.floor((U??0)/2);K.attr("x1",A).attr("y1",V).attr("x2",A).attr("y2",et).attr("stroke-width","4").attr("stroke",UB(W))}}return pt(t,O),t.height=v,t.intersect=function(W){return at.rect(t,W)},n}p(Om,"kanbanItem");async function Dm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:a,label:n}=await Ct(e,t,bt(t)),l=o.width+10*a,c=o.height+8*a,h=.15*l,{cssStyles:u}=t,d=o.width+20,f=o.height+20,m=Math.max(l,d),y=Math.max(c,f);n.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`);let C;const x=`M0 0 
210    a${h},${h} 1 0,0 ${m*.25},${-1*y*.1}
211    a${h},${h} 1 0,0 ${m*.25},0
212    a${h},${h} 1 0,0 ${m*.25},0
213    a${h},${h} 1 0,0 ${m*.25},${y*.1}
214
215    a${h},${h} 1 0,0 ${m*.15},${y*.33}
216    a${h*.8},${h*.8} 1 0,0 0,${y*.34}
217    a${h},${h} 1 0,0 ${-1*m*.15},${y*.33}
218
219    a${h},${h} 1 0,0 ${-1*m*.25},${y*.15}
220    a${h},${h} 1 0,0 ${-1*m*.25},0
221    a${h},${h} 1 0,0 ${-1*m*.25},0
222    a${h},${h} 1 0,0 ${-1*m*.25},${-1*y*.15}
223
224    a${h},${h} 1 0,0 ${-1*m*.1},${-1*y*.33}
225    a${h*.8},${h*.8} 1 0,0 0,${-1*y*.34}
226    a${h},${h} 1 0,0 ${m*.1},${-1*y*.33}
227  H0 V0 Z`;if(t.look==="handDrawn"){const k=ut.svg(s),T=ct(t,{}),S=k.path(x,T);C=s.insert(()=>S,":first-child"),C.attr("class","basic label-container").attr("style",se(u))}else C=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",x);return C.attr("transform",`translate(${-m/2}, ${-y/2})`),pt(t,C),t.calcIntersect=function(k,T){return at.rect(k,T)},t.intersect=function(k){return I.info("Bang intersect",t,k),at.rect(t,k)},s}p(Dm,"bang");async function Im(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:a,label:n}=await Ct(e,t,bt(t)),l=o.width+2*a,c=o.height+2*a,h=.15*l,u=.25*l,d=.35*l,f=.2*l,{cssStyles:m}=t;let y;const C=`M0 0 
228    a${h},${h} 0 0,1 ${l*.25},${-1*l*.1}
229    a${d},${d} 1 0,1 ${l*.4},${-1*l*.1}
230    a${u},${u} 1 0,1 ${l*.35},${l*.2}
231
232    a${h},${h} 1 0,1 ${l*.15},${c*.35}
233    a${f},${f} 1 0,1 ${-1*l*.15},${c*.65}
234
235    a${u},${h} 1 0,1 ${-1*l*.25},${l*.15}
236    a${d},${d} 1 0,1 ${-1*l*.5},0
237    a${h},${h} 1 0,1 ${-1*l*.25},${-1*l*.15}
238
239    a${h},${h} 1 0,1 ${-1*l*.1},${-1*c*.35}
240    a${f},${f} 1 0,1 ${l*.1},${-1*c*.65}
241  H0 V0 Z`;if(t.look==="handDrawn"){const x=ut.svg(s),k=ct(t,{}),T=x.path(C,k);y=s.insert(()=>T,":first-child"),y.attr("class","basic label-container").attr("style",se(m))}else y=s.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",C);return n.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),y.attr("transform",`translate(${-l/2}, ${-c/2})`),pt(t,y),t.calcIntersect=function(x,k){return at.rect(x,k)},t.intersect=function(x){return I.info("Cloud intersect",t,x),at.rect(t,x)},s}p(Im,"cloud");async function Rm(e,t){const{labelStyles:r,nodeStyles:i}=gt(t);t.labelStyle=r;const{shapeSvg:s,bbox:o,halfPadding:a,label:n}=await Ct(e,t,bt(t)),l=o.width+8*a,c=o.height+2*a,h=5,u=t.look==="neo"?`
242    M${-l/2} ${c/2-h}
243    v${-c+2*h}
244    q0,-${h} ${h},-${h}
245    h${l-2*h}
246    q${h},0 ${h},${h}
247    v${c-h}
248    H${-l/2}
249    Z
250  `:`
251    M${-l/2} ${c/2-h}
252    v${-c+2*h}
253    q0,-${h} ${h},-${h}
254    h${l-2*h}
255    q${h},0 ${h},${h}
256    v${c-2*h}
257    q0,${h} ${-h},${h}
258    h${-(l-2*h)}
259    q${-h},0 ${-h},${-h}
260    Z
261  `;if(!t.domId)throw new Error(`defaultMindmapNode: node "${t.id}" is missing a domId — was render.ts domId prefixing skipped?`);const d=s.append("path").attr("id",t.domId).attr("class","node-bkg node-"+t.type).attr("style",i).attr("d",u);return s.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",c/2).attr("x2",l/2).attr("y2",c/2),n.attr("transform",`translate(${-o.width/2}, ${-o.height/2})`),s.append(()=>n.node()),pt(t,d),t.calcIntersect=function(f,m){return at.rect(f,m)},t.intersect=function(f){return at.rect(t,f)},s}p(Rm,"defaultMindmapNode");async function Pm(e,t){const r={padding:t.padding??0};return lh(e,t,r)}p(Pm,"mindmapCircle");var GB=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:gm},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:dm},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:mm},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","
261subproc","framed-rectangle","subroutine"],handler:bm},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Rg},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:Pg},{semanticName:"Folder",name:"Folder",shortName:"folder",description:"Folder or directory",aliases:["directory"],handler:Hg},{semanticName:"Bucket",name:"Bucket",shortName:"bucket",description:"Object storage bucket",handler:wg},{semanticName:"Console",name:"Console (terminal window)",shortName:"console",description:"Terminal or console window",handler:Fg},{semanticName:"Browser",name:"Browser",shortName:"browser",description:"Browser window",handler:_g},{semanticName:"Person",name:"Person",shortName:"person",description:"Person (circular head above a rounded body)",handler:Ig},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:lh},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Dm},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:Im}
261,{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:hm},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Gg},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:rm},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:em},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:_m},{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:Jg},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:qg},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Tm}
261,{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:vg},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:fm},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Cm},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:xm},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Yg},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Xg},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Mg},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:$g},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:Og},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:im}
261,{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Lm},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Ug},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:Sm},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:sm},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:Dg},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Ng},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Bm},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Am},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:Wg},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:vm},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:zg},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:pm},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:nm},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:am},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:kg},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Eg},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:wm},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:km},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Fm},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:cm},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:om}],XB=p(()=>{const t=[...Object.entries({state:ym,choice:Bg,note:lm,composite:Lg,rectWithTitle:um,labelRect:tm,block_arrow:Sg,collapsedGroup:Tg,iconSquare:Zg,iconCircle:Vg,icon:jg,iconRounded:Kg,imageSquare:Qg,anchor:Cg,kanbanItem:Om,mindmapCircle:Pm,defaultMindmapNode:Rm,classBox:Mm,erBox:hh,requirementBox:$m}),...GB.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(s=>[s,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),Nm=XB();function jB(e){return e in Nm}p(jB,"isValidShape");var ua=p(({flowchart:e})=>{var s,o;const t=((s=e==null?void 0:e.subGraphTitleMargin)==null?void 0:s.top)??0,r=((o=e==null?void 0:e.subGraphTitleMargin)==null?void 0:o.bottom)??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins"),da=new Map;async function ch(e,t,r){let i,s;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const o=t.shape?Nm[t.shape]:void 0;if(!o)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let a;r.config.securityLevel==="sandbox"?a="_top":t.linkTarget&&(a=t.linkTarget||"_blank"),i=e.insert("svg:a").attr("xlink:href",t.link).attr("target",a??null),s=await o(i,t,r)}else s=await o(e,t,r),i=s;return i.attr("data-look",se(t.look)),t.tooltip&&s.attr("title",t.tooltip),da.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}
261p(ch,"insertNode");var l3=p((e,t)=>{da.set(t.id,e)},"setNodeElem"),VB=p(()=>{da.clear()},"clear"),zu=p(e=>{const t=da.get(e.id);I.trace("Transforming node",e.diff,e,"translate("+(e.x-e.width/2-5)+", "+e.width/2+")");const r=8,i=e.diff||0;return e.clusterNode?t.attr("transform","translate("+(e.x+i-e.width/2)+", "+(e.y-e.height/2-r)+")"):t.attr("transform","translate("+e.x+", "+e.y+")"),i},"positionNode"),KB=p(async(e,t)=>{const r=Nt(),{themeVariables:i,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:a}=i,n=a,{labelStyles:l,nodeStyles:c,borderStyles:h,backgroundStyles:u}=gt(t),d=e.insert("g").attr("class","cluster swimlane "+(t.cssClasses||"")).attr("id",t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look),f=dr(r.flowchart.htmlLabels),m=t.direction==="LR",y=d.insert("g").attr("class","cluster-label swimlane-label"),C=await Qe(y,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width});let x=C.getBBox();if(f){const q=C.children[0],W=Ot(C);x=q.getBoundingClientRect(),W.attr("width",x.width),W.attr("height",x.height)}const k=t.padding??0,T=t.width<=x.width+k?x.width+k:t.width;t.width<=x.width+k?t.diff=(T-t.width)/2-k:t.diff=-k;const S=t.height,v=t.y-S/2,B=t.y+S/2,L=t.x-T/2,O=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:v+S/3,U=m?4:0,N=x.height+2*U;let Y,st;if(m){const q=Math.max(N,x.height+2*U),W=L+q,K=Math.max(0,T-q);if(t.look==="handDrawn"){const et=ut.svg(d),Z=ct(t,{roughness:.7,fill:o,stroke:n,fillWeight:3,seed:s}),lt=ct(t,{roughness:.7,fill:"none",stroke:n,seed:s}),_t=et.rectangle(L,v,q,S,Z);Y=d.insert(()=>_t,":first-child");const St=et.rectangle(W,v,K,S,lt);st=d.insert(()=>St,":first-child"),Y.select("path:nth-child(2)").attr("style",h.join(";")),Y.select("path").attr("style",u.join(";").replace("fill","stroke"))}else Y=d.insert("rect",":first-child"),st=d.insert("rect",":first-child"),Y.attr("class","swimlane-title").attr("style",c).attr("x",L).attr("y",v).attr("width",q).attr("height",S).attr("fill",o).attr("stroke",n),st.attr("class","swimlane-body").attr("style",c).attr("x",W).attr("y",v).attr("width",K).attr("height",S).attr("fill","none").attr("stroke",n);const A=L+q/2,V=t.y;y.attr("transform",`translate(${A}, ${V}) rotate(-90) translate(${-x.width/2}, ${-x.height/2})`)}else{const q=Math.max(0,O-v),W=Math.min(N,q),K=v+W,A=Math.max(0,B-K),V=t.x-T/2;if(t.look==="handDrawn"){const lt=ut.svg(d),_t=ct(t,{roughness:.7,fill:o,stroke:n,fillWeight:3,seed:s}),St=ct(t,{roughness:.7,fill:"none",stroke:n,seed:s}),Lt=lt.rectangle(V,v,T,W,_t);Y=d.insert(()=>Lt,":first-child");const Mt=lt.rectangle(V,K,T,A,St);st=d.insert(()=>Mt,":first-child"),Y.select("path:nth-child(2)").attr("style",h.join(";")),Y.select("path").attr("style",u.join(";").replace("fill","stroke"))}else Y=d.insert("rect",":first-child"),st=d.insert("rect",":first-child"),Y.attr("class","swimlane-title").attr("style",c).attr("x",V).attr("y",v).attr("width",T).attr("height",W).attr("fill",o).attr("stroke",n),st.attr("class","swimlane-body").attr("style",c).attr("x",V).attr("y",K).attr("width",T).attr("height",A).attr("fill","none").attr("stroke",n);const et=t.x-x.width/2,Z=v+(W-x.height)/2;y.attr("transform",`translate(${et}, ${Z})`)}if(I.trace("Swimlane data ",t,JSON.stringify(t)),l){const q=y.select("span");q&&q.attr("style",l)}return t.offsetX=0,t.width=T,t.height=S,t.offsetY=x.height-k/2,t.intersect=function(q){return oi(t,q)},{cluster:d,labelBBox:x}},"swimlane"),qm=p(async(e,t)=>{I.info("Creating subgraph rect for ",t.id,t);const r=Nt(),{themeVariables:i,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:a}=i,{labelStyles:n,nodeStyles:l,borderStyles:c,backgroundStyles:h}=gt(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),d=Ce(r),f=u.insert("g").attr("class","cluster-label ");let m;t.labelType==="markdown"?m=await Qe(f,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width}):m=await Rr(f,t.label,t.labelStyle||"",!1,!0);let y=m.getBBox();if(Ce(r)){const L=m.children[0],O=Ot(m);y=L.getBoundingClientRect(),O.attr("width",y.width),O.attr("height",y.height)}const C=t.width<=y.width+t.padding?y.width+t.padding:t.width;t.width<=y.width+t.padding?t.diff=(C-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height,k=t.x-C/2,T=t.y-x/2;I.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){const L=ut.svg(u),O=ct(t,{roughness:.7,fill:o,stroke:a,fillWeight:3,seed:s}),U=L.path(He(k,T,C,x,0),O);S=u.insert(()=>(I.debug("Rough node insert CXC",U),U),":first-child"),S.select("path:nth-child(2)").attr("style",c.join(";")),S.select("path").attr("style",h.join(";").replace("fill","stroke"))}else S=u.insert("rect",":first-child"),S.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",k).attr("y",T).attr("width",C).attr("height",x);const{subGraphTitleTopMargin:v}=ua(r);if(f.attr("transform",`translate(${t.x-y.width/2}, ${t.y-t.height/2+v})`),n){const L=f.select("span");L&&L.attr("style",n)}const B=S.node().getBBox();return t.offsetX=0,t.width=B.width,t.height=B.height,t.offsetY=y.height-t.padding/2,t.intersect=function(L){return oi(t,L)},{cluster:u,labelBBox:y}},"rect"),ZB=p((e,t)=>{const r=e.insert("g").attr("class","note-cluster").attr("id",t.domId),i=r.insert("rect",":first-child"),s=0*t.padding,o=s/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-o).attr("y",t.y-t.height/2-o).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");const a=i.node().getBBox();return t.width=a.width,t.height=a.height,t.intersect=function(n){return oi(t,n)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),QB=p(async(e,t)=>
261{const r=Nt(),{themeVariables:i,handDrawnSeed:s}=r,{altBackground:o,compositeBackground:a,compositeTitleBackground:n,nodeBorder:l}=i,c=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),h=c.insert("g",":first-child"),u=c.insert("g").attr("class","cluster-label");let d=c.append("rect");const f=await Rr(u,t.label,t.labelStyle,void 0,!0);let m=f.getBBox();if(Ce(r)){const U=f.children[0],N=Ot(f);m=U.getBoundingClientRect(),N.attr("width",m.width),N.attr("height",m.height)}const y=0*t.padding,C=y/2,x=(t.width<=m.width+t.padding?m.width+t.padding:t.width)+y;t.width<=m.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;const k=t.height+y,T=t.height+y-m.height-6,S=t.x-x/2,v=t.y-k/2;t.width=x;const B=t.y-t.height/2-C+m.height+2;let L;if(t.look==="handDrawn"){const U=t.cssClasses.includes("statediagram-cluster-alt"),N=ut.svg(c),Y=t.rx||t.ry?N.path(He(S,v,x,k,10),{roughness:.7,fill:n,fillStyle:"solid",stroke:l,seed:s}):N.rectangle(S,v,x,k,{seed:s});L=c.insert(()=>Y,":first-child");const st=N.rectangle(S,B,x,T,{fill:U?o:a,fillStyle:U?"hachure":"solid",stroke:l,seed:s});L=c.insert(()=>Y,":first-child"),d=c.insert(()=>st)}else L=h.insert("rect",":first-child"),L.attr("class","outer").attr("x",S).attr("y",v).attr("width",x).attr("height",k).attr("data-look",t.look),d.attr("class","inner").attr("x",S).attr("y",B).attr("width",x).attr("height",T);u.attr("transform",`translate(${t.x-m.width/2}, ${v+1-(Ce(r)?0:3)})`);const O=L.node().getBBox();return t.height=O.height,t.offsetX=0,t.offsetY=m.height-t.padding/2,t.labelBBox=m,t.intersect=function(U){return oi(t,U)},{cluster:c,labelBBox:m}},"roundedWithTitle"),JB=p(async(e,t)=>{I.info("Creating subgraph rect for ",t.id,t);const r=Nt(),{themeVariables:i,handDrawnSeed:s}=r,{clusterBkg:o,clusterBorder:a}=i,{labelStyles:n,nodeStyles:l,borderStyles:c,backgroundStyles:h}=gt(t),u=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),d=Ce(r),f=u.insert("g").attr("class","cluster-label "),m=await Qe(f,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width});let y=m.getBBox();if(Ce(r)){const L=m.children[0],O=Ot(m);y=L.getBoundingClientRect(),O.attr("width",y.width),O.attr("height",y.height)}const C=t.width<=y.width+t.padding?y.width+t.padding:t.width;t.width<=y.width+t.padding?t.diff=(C-t.width)/2-t.padding:t.diff=-t.padding;const x=t.height,k=t.x-C/2,T=t.y-x/2;I.trace("Data ",t,JSON.stringify(t));let S;if(t.look==="handDrawn"){const L=ut.svg(u),O=ct(t,{roughness:.7,fill:o,stroke:a,fillWeight:4,seed:s}),U=L.path(He(k,T,C,x,t.rx),O);S=u.insert(()=>(I.debug("Rough node insert CXC",U),U),":first-child"),S.select("path:nth-child(2)").attr("style",c.join(";")),S.select("path").attr("style",h.join(";").replace("fill","stroke"))}else S=u.insert("rect",":first-child"),S.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",k).attr("y",T).attr("width",C).attr("height",x);const{subGraphTitleTopMargin:v}=ua(r);if(f.attr("transform",`translate(${t.x-y.width/2}, ${t.y-t.height/2+v})`),n){const L=f.select("span");L&&L.attr("style",n)}const B=S.node().getBBox();return t.offsetX=0,t.width=B.width,t.height=B.height,t.offsetY=y.height-t.padding/2,t.intersect=function(L){return oi(t,L)},{cluster:u,labelBBox:y}},"kanbanSection"),tL=p((e,t)=>{const r=Nt(),{themeVariables:i,handDrawnSeed:s}=r,{nodeBorder:o}=i,a=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),n=a.insert("g",":first-child"),l=0*t.padding,c=t.width+l;t.diff=-t.padding;const h=t.height+l,u=t.x-c/2,d=t.y-h/2;t.width=c;let f;if(t.look==="handDrawn"){const C=ut.svg(a).rectangle(u,d,c,h,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:o,seed:s});f=a.insert(()=>C,":first-child")}else{f=n.insert("rect",":first-child");let y="outer";t.look,y="divider",f.attr("class",y).attr("x",u).attr("y",d).attr("width",c).attr("height",h).attr("data-look",t.look)}const m=f.node().getBBox();return t.height=m.height,t.offsetX=0,t.offsetY=0,t.intersect=function(y){return oi(t,y)},{cluster:a,labelBBox:{}}}
261,"divider"),eL=qm,rL={rect:qm,squareRect:eL,roundedWithTitle:QB,noteGroup:ZB,divider:tL,kanbanSection:JB,swimlane:KB},Wm=new Map,zm=p(async(e,t)=>{const r=t.shape||"rect",i=await rL[r](e,t);return Wm.set(t.id,i),i},"insertCluster"),iL=p(()=>{Wm=new Map},"clear"),is=p((e,t)=>{if(t)return"translate("+-e.width/2+", "+-e.height/2+")";const r=e.x??0,i=e.y??0;return"translate("+-(r+e.width/2)+", "+-(i+e.height/2)+")"},"computeLabelTransform"),ye={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Hu={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function ds(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=Qt(e),t=Qt(t);const[r,i]=[e.x,e.y],[s,o]=[t.x,t.y],a=s-r,n=o-i;return{angle:Math.atan(n/a),deltaX:a,deltaY:n}}p(ds,"calculateDeltaAndAngle");var Qt=p(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),sL=p(e=>({x:p(function(t,r,i){let s=0;const o=Qt(i[0]).x<Qt(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(ye,e.arrowTypeStart)){const{angle:f,deltaX:m}=ds(i[0],i[1]);s=ye[e.arrowTypeStart]*Math.cos(f)*(m>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(ye,e.arrowTypeEnd)){const{angle:f,deltaX:m}=ds(i[i.length-1],i[i.length-2]);s=ye[e.arrowTypeEnd]*Math.cos(f)*(m>=0?1:-1)}const a=Math.abs(Qt(t).x-Qt(i[i.length-1]).x),n=Math.abs(Qt(t).y-Qt(i[i.length-1]).y),l=Math.abs(Qt(t).x-Qt(i[0]).x),c=Math.abs(Qt(t).y-Qt(i[0]).y),h=ye[e.arrowTypeStart],u=ye[e.arrowTypeEnd],d=1;if(a<u&&a>0&&n<u){let f=u+d-a;f*=o==="right"?-1:1,s-=f}if(l<h&&l>0&&c<h){let f=h+d-l;f*=o==="right"?-1:1,s+=f}return Qt(t).x+s},"x"),y:p(function(t,r,i){let s=0;const o=Qt(i[0]).y<Qt(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(ye,e.arrowTypeStart)){const{angle:f,deltaY:m}=ds(i[0],i[1]);s=ye[e.arrowTypeStart]*Math.abs(Math.sin(f))*(m>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(ye,e.arrowTypeEnd)){const{angle:f,deltaY:m}=ds(i[i.length-1],i[i.length-2]);s=ye[e.arrowTypeEnd]*Math.abs(Math.sin(f))*(m>=0?1:-1)}const a=Math.abs(Qt(t).y-Qt(i[i.length-1]).y),n=Math.abs(Qt(t).x-Qt(i[i.length-1]).x),l=Math.abs(Qt(t).y-Qt(i[0]).y),c=Math.abs(Qt(t).x-Qt(i[0]).x),h=ye[e.arrowTypeStart],u=ye[e.arrowTypeEnd],d=1;if(a<u&&a>0&&n<u){let f=u+d-a;f*=o==="up"?-1:1,s-=f}if(l<h&&l>0&&c<h){let f=h+d-l;f*=o==="up"?-1:1,s+=f}return Qt(t).y+s},"y")}),"getLineFunctionsWithOffset"),oL=p((e,t,r,i,s,o=!1,a)=>{t.arrowTypeStart&&Yu(e,"start",t.arrowTypeStart,r,i,s,o,a),t.arrowTypeEnd&&Yu(e,"end",t.arrowTypeEnd,r,i,s,o,a)},"addEdgeMarkers"),aL={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},nL=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],Yu=p((e,t,r,i,s,o,a=!1,n)=>{var m;if(!r||r==="none")return;const l=aL[r],c=l&&nL.includes(l.type);if(!l){I.warn(`Unknown arrow type: ${r}`);return}const h=l.type,f=`${s}_${o}-${h}${t==="start"?"Start":"End"}${a&&c?"-margin":""}`;if(n&&n.trim()!==""){const y=n.replace(/[^\dA-Za-z]/g,"_"),C=`${f}_${y}`;if(!document.getElementById(C)){const x=document.getElementById(f);if(x){const k=x.cloneNode(!0);k.id=C,k.querySelectorAll("path, circle, line").forEach(S=>{S.setAttribute("stroke",n),l.fill&&S.setAttribute("fill",n)}),(m=x.parentNode)==null||m.appendChild(k)}}e.attr(`marker-${t}`,`url(${i}#${C})`)}else e.attr(`marker-${t}`,`url(${i}#${f})`)},"addEdgeMarker"),lL=p(e=>{var t,r;return typeof e=="string"?e:(r=(t=Nt())==null?void 0:t.flowchart)==null?void 0:r.curve},"resolveEdgeCurveType"),Wi=new Map,ie=new Map,hL=p(()=>{Wi.clear(),ie.clear()},"clear"),Hm=p(e=>!!(e.label||e.startLabelLeft||e.startLabelRight||e.endLabelLeft||e.endLabelRight),"hasEdgeLabel"),ss=p(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),uh=p(async(e,t)=>{const r=Nt();let i=Ce(r);const{labelStyles:s}=gt(t);t.labelStyle=s;const o=e.insert("g").attr("class","edgeLabel"),a=o.insert("g").attr("class","label").attr("data-id",t.id),n=t.labelType==="markdown",c=await Qe(e,t.label,{style:ss(t.labelStyle),useHtmlLabels:i,addSvgBackgroun
261d:!0,isNode:!1,markdown:n,width:n?void 0:void 0},r);a.node().appendChild(c),I.info("abc82",t,t.labelType);let h,u;if(i){const f=c.children[0],m=Ot(c);h=await ri.measure(()=>f.getBoundingClientRect()),u=h,m.attr("width",h.width),m.attr("height",h.height)}else{const f=Ot(c).select("text").node();await ri.measure(()=>{h=c.getBBox(),f&&typeof f.getBBox=="function"?u=f.getBBox():u=h})}a.attr("transform",is(u,i)),Wi.set(t.id,o),t.width=h.width,t.height=h.height;let d;if(t.startLabelLeft){const f=e.insert("g").attr("class","edgeTerminals"),m=f.insert("g").attr("class","inner"),y=await Rr(m,t.startLabelLeft,ss(t.labelStyle)||"",!1,!1);d=y;let C=y.getBBox();if(i){const x=y.children[0],k=Ot(y);C=x.getBoundingClientRect(),k.attr("width",C.width),k.attr("height",C.height)}m.attr("transform",is(C,i)),ie.get(t.id)||ie.set(t.id,{}),ie.get(t.id).startLeft=f,fs(d,t.startLabelLeft)}if(t.startLabelRight){const f=e.insert("g").attr("class","edgeTerminals"),m=f.insert("g").attr("class","inner"),y=await Rr(m,t.startLabelRight,ss(t.labelStyle)||"",!1,!1);d=y;let C=y.getBBox();if(i){const x=y.children[0],k=Ot(y);C=x.getBoundingClientRect(),k.attr("width",C.width),k.attr("height",C.height)}m.attr("transform",is(C,i)),ie.get(t.id)||ie.set(t.id,{}),ie.get(t.id).startRight=f,fs(d,t.startLabelRight)}if(t.endLabelLeft){const f=e.insert("g").attr("class","edgeTerminals"),m=f.insert("g").attr("class","inner"),y=await Rr(f,t.endLabelLeft,ss(t.labelStyle)||"",!1,!1);d=y;let C=y.getBBox();if(i){const x=y.children[0],k=Ot(y);C=x.getBoundingClientRect(),k.attr("width",C.width),k.attr("height",C.height)}m.attr("transform",is(C,i)),ie.get(t.id)||ie.set(t.id,{}),ie.get(t.id).endLeft=f,fs(d,t.endLabelLeft)}if(t.endLabelRight){const f=e.insert("g").attr("class","edgeTerminals"),m=f.insert("g").attr("class","inner"),y=await Rr(f,t.endLabelRight,ss(t.labelStyle)||"",!1,!1);d=y;let C=y.getBBox();if(i){const x=y.children[0],k=Ot(y);C=x.getBoundingClientRect(),k.attr("width",C.width),k.attr("height",C.height)}m.attr("transform",is(C,i)),ie.get(t.id)||ie.set(t.id,{}),ie.get(t.id).endRight=f,fs(d,t.endLabelRight)}return c},"insertEdgeLabel");function fs(e,t){Ce(Nt())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}p(fs,"setTerminalWidth");var cL=p((e,t)=>{I.debug("Moving label abc88 ",e.id,e.label,Wi.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=Nt(),{subGraphTitleTotalMargin:s}=ua(i);if(e.label){const o=Wi.get(e.id);let a=e.x,n=e.y;if(r){const l=xe.calcLabelPosition(r);I.debug("Moving label "+e.label+" from (",a,",",n,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(a=l.x,n=l.y)}o.attr("transform",`translate(${a}, ${n+s/2})`)}if(e.startLabelLeft){const o=ie.get(e.id).startLeft;let a=e.x,n=e.y;if(r){const l=xe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.startLabelRight){const o=ie.get(e.id).startRight;let a=e.x,n=e.y;if(r){const l=xe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.endLabelLeft){const o=ie.get(e.id).endLeft;let a=e.x,n=e.y;if(r){const l=xe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.endLabelRight){const o=ie.get(e.id).endRight;let a=e.x,n=e.y;if(r){const l=xe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}},"positionEdgeLabel"),uL=p((e,t)=>{var a;if(!(e!=null&&e.isLabelEdge)||!((a=e==null?void 0:e.id)!=null&&a.endsWith("-to-label"))||!Array.isArray(t)||t.length!==2)return t;const[r,i]=t,s=Math.abs(i.x-r.x),o=Math.abs(i.y-r.y);return s<.001||o<.001?t:o>=s?[r,{x:r.x,y:i.y},i]:[r,{x:i.x,y:r.y},i]},"orthogonalizeToLabelClippedPoints"),dL=p((e,t)=>{const r=e.x,i=e.y,s=Math.abs(t.x-r),o=Math.abs(t.y-i),a=e.width/2,n=e.height/2;return s>=a||o>=n},"outsideNode"),fL=p((e,t,r)=>{I.debug(`intersection calc abc89:
262  outsidePoint: ${JSON.stringify(t)}
263  insidePoint : ${JSON.stringify(r)}
264  node        : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,s=e.y,o=Math.abs(i-r.x),a=e.width/2;let n=r.x<t.x?a-o:a+o;
264const l=e.height/2,c=Math.abs(t.y-r.y),h=Math.abs(t.x-r.x);if(Math.abs(s-t.y)*a>Math.abs(i-t.x)*l){let u=r.y<t.y?t.y-l-s:s-l-t.y;n=h*u/c;const d={x:r.x<t.x?r.x+n:r.x-h+n,y:r.y<t.y?r.y+c-u:r.y-c+u};return n===0&&(d.x=t.x,d.y=t.y),h===0&&(d.x=t.x),c===0&&(d.y=t.y),I.debug(`abc89 top/bottom calc, Q ${c}, q ${u}, R ${h}, r ${n}`,d),d}else{r.x<t.x?n=t.x-a-i:n=i-a-t.x;let u=c*n/h,d=r.x<t.x?r.x+h-n:r.x-h+n,f=r.y<t.y?r.y+u:r.y-u;return I.debug(`sides calc abc89, Q ${c}, q ${u}, R ${h}, r ${n}`,{_x:d,_y:f}),n===0&&(d=t.x,f=t.y),h===0&&(d=t.x),c===0&&(f=t.y),{x:d,y:f}}},"intersection"),Uu=p((e,t)=>{I.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],s=!1;return e.forEach(o=>{if(I.info("abc88 checking point",o,t),!dL(t,o)&&!s){const a=fL(t,i,o);I.debug("abc88 inside",o,i,a),I.debug("abc88 intersection",a,t);let n=!1;r.forEach(l=>{n=n||l.x===a.x&&l.y===a.y}),r.some(l=>l.x===a.x&&l.y===a.y)?I.warn("abc88 no intersect",a,r):r.push(a),s=!0}else I.warn("abc88 outside",o,i),i=o,s||r.push(o)}),I.debug("returning points",r),r},"cutPathAtIntersect");function Ym(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const s=e[i-1],o=e[i],a=e[i+1];(s.x===o.x&&o.y===a.y&&Math.abs(o.x-a.x)>5&&Math.abs(o.y-s.y)>5||s.y===o.y&&o.x===a.x&&Math.abs(o.x-s.x)>5&&Math.abs(o.y-a.y)>5)&&(t.push(o),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}p(Ym,"extractCornerPoints");var Gu=p(function(e,t,r){const i=t.x-e.x,s=t.y-e.y,o=Math.sqrt(i*i+s*s),a=r/o;return{x:t.x-a*i,y:t.y-a*s}},"findAdjacentPoint"),pL=p(function(e){const{cornerPointPositions:t}=Ym(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const s=e[i-1],o=e[i+1],a=e[i],n=Gu(s,a,5),l=Gu(o,a,5),c=l.x-n.x,h=l.y-n.y;r.push(n);const u=Math.sqrt(2)*2;let d={x:a.x,y:a.y};if(Math.abs(o.x-s.x)>10&&Math.abs(o.y-s.y)>=10){I.debug("Corner point fixing",Math.abs(o.x-s.x),Math.abs(o.y-s.y));const f=5;a.x===n.x?d={x:c<0?n.x-f+u:n.x+f-u,y:h<0?n.y-u:n.y+u}:d={x:c<0?n.x-u:n.x+u,y:h<0?n.y-f+u:n.y+f-u}}else I.debug("Corner point skipping fixing",Math.abs(o.x-s.x),Math.abs(o.y-s.y));r.push(d,l)}else r.push(e[i]);return r},"fixCorners"),gL=p((e,t,r)=>{const i=e-t-r,s=2,o=2,a=s+o,n=Math.floor(i/a),l=Number.isFinite(n)?Math.max(0,n):0,c=Array(l).fill(`${s} ${o}`).join(" ");return`0 ${t} ${c} ${r}`},"generateDashArray"),Um=p(function(e,t,r,i,s,o,a,n=!1){var et;if(!a)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:l,layout:c}=Nt();let h=t.points,u=!1;const d=s;var f=o;const m=[];for(const Z in t.cssCompiledStyles)gp(Z)||m.push(t.cssCompiledStyles[Z]);if(c==="swimlane"){if(f.intersect&&d.intersect&&Array.isArray(h)&&h.length>=2)if(h.length===2)h=[d.intersect(h[0]),f.intersect(h[1])];else{const Z=h.slice(1,-1),lt=Z[0],_t=Z[Z.length-1],St=.5,Lt=Math.abs(h[h.length-1].x-_t.x)<St&&Math.abs(h[h.length-1].y-_t.y)<St,Mt=d.intersect(lt),ht=Lt?_t:f.intersect(_t),Rt=Math.abs(ht.x-_t.x)<St&&Math.abs(ht.y-_t.y)<St,Ut=Math.abs(Mt.x-lt.x)<St&&Math.abs(Mt.y-lt.y)<St?[]:[Mt],Et=Rt?[]:[ht];h=[...Ut,...Z,...Et]}h=uL(t,h)}else f.intersect&&d.intersect&&!n&&(h=h.slice(1,t.points.length-1),h.unshift(d.intersect(h[0])),h.push(f.intersect(h[h.length-1])));const y=btoa(JSON.stringify(h));t.toCluster&&(I.info("to cluster abc88",r.get(t.toCluster)),h=Uu(t.points,r.get(t.toCluster).node),u=!0),t.fromCluster&&(I.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(h,null,2)),h=Uu(h.reverse(),r.get(t.fromCluster).node).reverse(),u=!0);let C=h.filter(Z=>!Number.isNaN(Z.y));const x=lL(t.curve);x!=="rounded"&&(C=pL(C));let k=co;switch(x){case"linear":k=co;break;case"basis":k=_n;break;case"cardinal":k=Ud;break;case"bumpX":k=Hd;break;case"bumpY":k=zd;break;case"catmullRom":k=Xd;break;case"monotoneX":k=Wd;break;case"monotoneY":k=qd;break;case"natural":k=Nd;break;case"step":k=Pd;break;case"stepAfter":k=Rd;break;case"stepBefore":k=Id;break;case"rounded":k=co;break;default:k=_n}const{x:T,y:S}=sL(t),v=gx().x(T).y(S).curve(k);let B;switch(t.thickness){case"normal":B="edge-thickness-normal";break;case"thick":B="edge-thickness-thick";break;case"invisible":B="edge-thickness-invisible";break;default:B="edge-thickness-normal"}switch(t.pattern){case"solid":B+=" edge-pattern-solid";break;case"dotted":B+=" edge-pattern-dotted";break;case"dashed":B+=" edge-pattern-dashed";break;default:B+=" edge-pattern-solid"}let L,O=x==="rounded"?Gm(Xm(C,t),5):v(C);const U=Array.isArray(t.style)?t.style:[t.style];let N=U.find(Z=>Z==null?void 0:Z.startsWith("stroke:")),Y="";t.animate&&(Y="edge-animation-fast"),t.animation&&(Y="edge-animation-"+t.animation);let st=!1;if(t.look==="handDrawn"){const Z=ut.svg(e);Object.assign([],C);const lt=Z.path(O,{roughness:.3,seed:l});B+=" transition",L=Ot(lt).select("path").attr("id",`${a}-${t.id}`).attr("class"," "+B+(t.classes?" "+t.classes:"")+(Y?" "+Y:"")).attr("style",U?U.reduce((St,Lt)=>
264St+";"+Lt,""):"");let _t=L.attr("d");L.attr("d",_t),e.node().appendChild(L.node())}else{const Z=m.join(";"),lt=U?U.reduce((Rt,Dt)=>Rt+Dt+";",""):"",_t=(Z?Z+";"+lt+";":lt)+";"+(U?U.reduce((Rt,Dt)=>Rt+";"+Dt,""):"");L=e.append("path").attr("d",O).attr("id",`${a}-${t.id}`).attr("class"," "+B+(t.classes?" "+t.classes:"")+(Y?" "+Y:"")).attr("style",_t),N=(et=_t.match(/stroke:([^;]+)/))==null?void 0:et[1],st=t.animate===!0||!!t.animation||Z.includes("animation");const St=L.node(),Lt=typeof St.getTotalLength=="function"?St.getTotalLength():0,Mt=Hu[t.arrowTypeStart]||0,ht=Hu[t.arrowTypeEnd]||0;if(t.look==="neo"&&!st){const Dt=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?gL(Lt,Mt,ht):`0 ${Mt} ${Lt-Mt-ht} ${ht}`}; stroke-dashoffset: 0;`;L.attr("style",Dt+L.attr("style"))}}L.attr("data-edge",!0),L.attr("data-et","edge"),L.attr("data-id",t.id),L.attr("data-points",y),L.attr("data-look",se(t.look)),t.showPoints&&C.forEach(Z=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",Z.x).attr("cy",Z.y)});let q="";(Nt().flowchart.arrowMarkerAbsolute||Nt().state.arrowMarkerAbsolute)&&(q=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,q=q.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),I.info("arrowTypeStart",t.arrowTypeStart),I.info("arrowTypeEnd",t.arrowTypeEnd);const W=!st&&(t==null?void 0:t.look)==="neo";oL(L,t,q,a,i,W,N);const K=Math.floor(h.length/2),A=h[K];xe.isLabelCoordinateInPath(A,L.attr("d"))||(u=!0);let V={};return u&&(V.updatedPath=h),V.originalPath=t.points,V},"insertEdge");function Gm(e,t){if(e.length<2)return"";let r="";const i=e.length,s=1e-5;for(let o=0;o<i;o++){const a=e[o],n=e[o-1],l=e[o+1];if(o===0)r+=`M${a.x},${a.y}`;else if(o===i-1)r+=`L${a.x},${a.y}`;else{const c=a.x-n.x,h=a.y-n.y,u=l.x-a.x,d=l.y-a.y,f=Math.hypot(c,h),m=Math.hypot(u,d);if(f<s||m<s){r+=`L${a.x},${a.y}`;continue}const y=c/f,C=h/f,x=u/m,k=d/m,T=y*x+C*k,S=Math.max(-1,Math.min(1,T)),v=Math.acos(S);if(v<s||Math.abs(Math.PI-v)<s){r+=`L${a.x},${a.y}`;continue}const B=Math.min(t/Math.sin(v/2),f/2,m/2),L=a.x-y*B,O=a.y-C*B,U=a.x+x*B,N=a.y+k*B;r+=`L${L},${O}`,r+=`Q${a.x},${a.y} ${U},${N}`}}return r}p(Gm,"generateRoundedPath");function nl(e,t){if(!e||!t)return{angle:0,deltaX:0,deltaY:0};const r=t.x-e.x,i=t.y-e.y;return{angle:Math.atan2(i,r),deltaX:r,deltaY:i}}p(nl,"calculateDeltaAndAngle");function Xm(e,t){const r=e.map(s=>({...s}));if(e.length>=2&&ye[t.arrowTypeStart]){const s=ye[t.arrowTypeStart],o=e[0],a=e[1],{angle:n}=nl(o,a),l=s*Math.cos(n),c=s*Math.sin(n);r[0].x=o.x+l,r[0].y=o.y+c}const i=e.length;if(i>=2&&ye[t.arrowTypeEnd]){const s=ye[t.arrowTypeEnd],o=e[i-1],a=e[i-2],{angle:n}=nl(a,o),l=s*Math.cos(n),c=s*Math.sin(n);r[i-1].x=o.x-l,r[i-1].y=o.y-c}return r}p(Xm,"applyMarkerOffsetsToPoints");var mL=p((e,t,r,i)=>{t.forEach(s=>{NL[s](e,r,i)})},"insertMarkers"),yL=p((e,t,r)=>{I.trace("Making markers for ",r),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("marker").attr("id",r+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),e.append("defs").append("marker").attr("id",r+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("pol
264ygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),xL=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),CL=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),bL=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),kL=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),e.append("defs").append("marker").attr("id",r+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),wL=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("pol
264ygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),TL=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),SL=p((e,t,r)=>{e.append("marker").attr("id",r+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",r+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),e.append("marker").attr("id",r+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),_L=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),vL=p((e,t,r)=>{const i=Jt(),{themeVariables:s}=i,{transitionColor:o}=s;e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z"),e.append("defs").append("marker").attr("id",r+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${o}`)},"barbNeo"),BL=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),LL=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),i.append("path").attr("d","M9,0 L9,18");const s=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),FL=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),AL=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");i.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");const s=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),EL=p((e,t,r)=>{const i=Jt(),{themeVariables:s}=i,{strokeWidth:o}=s;e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${o}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${o}`)},"only_one_neo"),ML=p((e,t,r)=>{const i=Jt(),{themeVariables:s}=i,{strokeWidth:o,mainBkg:a}=s,n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");n.append("circle").attr("fill",a??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),n.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${o}`);const l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");l.append("circle").attr("fill",a??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${o}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${o}`)},"zero_or_one_neo"),$L=p((e,t,r)=>{const i=Jt(),{themeVariables:s}=i,{strokeWidth:o}=s;e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${o}`),e.append("defs").append("marker").attr("id",r+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${o}`)},"one_or_more_neo"),OL=p((e,t,r)=>{const i=Jt(),{themeVariables:s}=i,{strokeWidth:o,mainBkg:a}=s,n=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");n.append("circle").attr("fill",a??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),n.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${o}`);const l=e.append("defs").append("marker").attr("id",r+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");l.append("circle").attr("fill",a??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${o}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${o}`)},"zero_or_more_neo"),DL=p((e,t,r)=>{e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
265      L20,10
266      M20,10
267      L0,20`)},"requirement_arrow"),IL=p((e,t,r)=>{const i=Jt(),{themeVariables:s}=i,{strokeWidth:o}=s;e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${o}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
268      L20,10
269      M20,10
270      L0,20`).attr("stroke-linejoin","miter")}
270,"requirement_arrow_neo"),RL=p((e,t,r)=>{const i=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");i.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),i.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),i.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),PL=p((e,t,r)=>{const i=Jt(),{themeVariables:s}=i,{strokeWidth:o}=s,a=e.append("defs").append("marker").attr("id",r+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),a.selectAll("*").attr("stroke-width",`${o}`)},"requirement_contains_neo"),NL={extension:yL,composition:xL,aggregation:CL,dependency:bL,lollipop:kL,point:wL,circle:TL,cross:SL,barb:_L,barbNeo:vL,only_one:BL,zero_or_one:LL,one_or_more:FL,zero_or_more:AL,only_one_neo:EL,zero_or_one_neo:ML,one_or_more_neo:$L,zero_or_more_neo:OL,requirement_arrow:DL,requirement_contains:RL,requirement_arrow_neo:IL,requirement_contains_neo:PL},jm=mL;function fa(e){return e}function qL(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function WL(){}var zL=800,HL=16,YL=Date.now;function UL(e){var t=0,r=0;return function(){var i=YL(),s=HL-(i-r);if(r=i,s>0){if(++t>=zL)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ps(e){return function(){return e}}var GL=ec?function(e,t){return ec(e,"toString",{configurable:!0,enumerable:!1,value:ps(t),writable:!0})}:fa,XL=UL(GL);function jL(e,t,r,i){for(var s=e.length,o=r+-1;++o<s;)if(t(e[o],o,e))return o;return-1}function VL(e){return e!==e}function KL(e,t,r){for(var i=r-1,s=e.length;++i<s;)if(e[i]===t)return i;return-1}function ZL(e,t,r){return t===t?KL(e,t,r):jL(e,VL,r)}function QL(e,t){var r=e==null?0:e.length;return!!r&&ZL(e,t,0)>-1}var Xu=Math.max;function JL(e,t,r){return t=Xu(t===void 0?e.length-1:t,0),function(){for(var i=arguments,s=-1,o=Xu(i.length-t,0),a=Array(o);++s<o;)a[s]=i[t+s];s=-1;for(var n=Array(t+1);++s<t;)n[s]=i[s];return n[t]=r(a),qL(e,this,n)}}function tF(e,t){return XL(JL(e,t,fa),e+"")}var eF=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rF=/^\w*$/;function dh(e,t){if(Xe(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Y0(e)?!0:rF.test(e)||!eF.test(e)||t!=null&&e in Object(t)}function Vm(e,t){return Xe(e)?e:dh(e,t)?[e]:U0(G0(e))}function Km(e,t){t=Vm(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Zo(t[r++])];return r&&r==i?e:void 0}function iF(e,t,r){var i=e==null?void 0:Km(e,t);return i===void 0?r:i}var ju=So?So.isConcatSpreadable:void 0;function sF(e){return Xe(e)||ul(e)||!!(ju&&e&&e[ju])}function oF(e,t,r,i,s){var o=-1,a=e.length;for(r||(r=sF),s||(s=[]);++o<a;){var n=e[o];r(n)?X0(s,n):i||(s[s.length]=n)}return s}function aF(e,t,r,i){var s=-1,o=e==null?0:e.length;for(i&&o&&(r=e[++s]);++s<o;)r=t(r,e[s],s,e);return r}var nF="__lodash_hash_undefined__";function lF(e){return this.__data__.set(e,nF),this}function hF(e){return this.__data__.has(e)}function Bs(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new j0;++t<r;)this.add(e[t])}Bs.prototype.add=Bs.prototype.push=lF;Bs.prototype.has=hF;function cF(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}function Zm(e,t){return e.has(t)}var uF=1,dF=2;function Qm(e,t,r,i,s,o){var a=r&uF,n=e.length,l=t.length;if(n!=l&&!(a&&l>n))return!1;var c=o.get(e),h=o.get(t);if(c&&h)return c==t&&h==e;var u=-1,d=!0,f=r&dF?new Bs:void 0;for(o.set(e,t),o.set(t,e);++u<n;){var m=e[u],y=t[u];if(i)var C=a?i(y,m,u,t,e,o):i(m,y,u,e,t,o);if(C!==void 0){if(C)continue;d=!1;break}
vendor: 2,288 bytes, line 270
270if(f){if(!cF(t,function(x,k){if(!Zm(f,k)&&(m===x||s(m,x,r,i,o)))return f.push(k)})){d=!1;break}}else if(!(m===y||s(m,y,r,i,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function fF(e){var t=-1,r=Array(e.size);return e.forEach(function(i,s){r[++t]=[s,i]}),r}function fh(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var pF=1,gF=2,mF="[object Boolean]",yF="[object Date]",xF="[object Error]",CF="[object Map]",bF="[object Number]",kF="[object RegExp]",wF="[object Set]",TF="[object String]",SF="[object Symbol]",_F="[object ArrayBuffer]",vF="[object DataView]",Vu=So?So.prototype:void 0,Va=Vu?Vu.valueOf:void 0;function BF(e,t,r,i,s,o,a){switch(r){case vF:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _F:return!(e.byteLength!=t.byteLength||!o(new rc(e),new rc(t)));case mF:case yF:case bF:return V0(+e,+t);case xF:return e.name==t.name&&e.message==t.message;case kF:case TF:return e==t+"";case CF:var n=fF;case wF:var l=i&pF;if(n||(n=fh),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;i|=gF,a.set(e,t);var h=Qm(n(e),n(t),i,s,o,a);return a.delete(e),h;case SF:if(Va)return Va.call(e)==Va.call(t)}return!1}var LF=1,FF=Object.prototype,AF=FF.hasOwnProperty;function EF(e,t,r,i,s,o){var a=r&LF,n=ic(e),l=n.length,c=ic(t),h=c.length;if(l!=h&&!a)return!1;for(var u=l;u--;){var d=n[u];if(!(a?d in t:AF.call(t,d)))return!1}var f=o.get(e),m=o.get(t);if(f&&m)return f==t&&m==e;var y=!0;o.set(e,t),o.set(t,e);for(var C=a;++u<l;){d=n[u];var x=e[d],k=t[d];if(i)var T=a?i(k,x,d,t,e,o):i(x,k,d,e,t,o);if(!(T===void 0?x===k||s(x,k,r,i,o):T)){y=!1;break}C||(C=d=="constructor")}if(y&&!C){var S=e.constructor,v=t.constructor;S!=v&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof v=="function"&&v instanceof v)&&(y=!1)}return o.delete(e),o.delete(t),y}var MF=1,Ku="[object Arguments]",Zu="[object Array]",oo="[object Object]",$F=Object.prototype,Qu=$F.hasOwnProperty;function OF(e,t,r,i,s,o){var a=Xe(e),n=Xe(t),l=a?Zu:wn(e),c=n?Zu:wn(t);l=l==Ku?oo:l,c=c==Ku?oo:c;var h=l==oo,u=c==oo,d=l==c;if(d&&Tn(e)){if(!Tn(t))return!1;a=!0,h=!1}if(d&&!h)return o||(o=new ho),a||Od(e)?Qm(e,t,r,i,s,o):BF(e,t,l,r,i,s,o);if(!(r&MF)){var f=h&&Qu.call(e,"__wrapped__"),m=u&&Qu.call(t,"__wrapped__");
270if(f||m){var y=f?e.value():e,C=m?t.value():t;return o||(o=new ho),s(y,C,r,i,o)}}return d?(o||(o=new ho),EF(e,t,r,i,s,o)):!1}function ph(e,t,r,i,s){return e===t?!0:e==null||t==null||!Sn(e)&&!Sn(t)?e!==e&&t!==t:OF(e,t,r,i,ph,s)}var DF=1,IF=2;function RF(e,t,r,i){var s=r.length,o=s;if(e==null)return!o;for(e=Object(e);s--;){var a=r[s];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++s<o;){a=r[s];var n=a[0],l=e[n],c=a[1];if(a[2]){if(l===void 0&&!(n in e))return!1}else{var h=new ho,u;if(!(u===void 0?ph(c,l,DF|IF,i,h):u))return!1}}return!0}function Jm(e){return e===e&&!K0(e)}function PF(e){for(var t=_r(e),r=t.length;r--;){var i=t[r],s=e[i];t[r]=[i,s,Jm(s)]}return t}function ty(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function NF(e){var t=PF(e);return t.length==1&&t[0][2]?ty(t[0][0],t[0][1]):function(r){return r===e||RF(r,e,t)}}function qF(e,t){return e!=null&&t in Object(e)}function WF(e,t,r){t=Vm(t,e);for(var i=-1,s=t.length,o=!1;++i<s;){var a=Zo(t[i]);if(!(o=e!=null&&r(e,a)))break;e=e[a]}return o||++i!=s?o:(s=e==null?0:e.length,!!s&&Z0(s)&&Q0(a,s)&&(Xe(e)||ul(e)))}function zF(e,t){return e!=null&&WF(e,t,qF)}var HF=1,YF=2;function UF(e,t){return dh(e)&&Jm(t)?ty(Zo(e),t):function(r){var i=iF(r,e);return i===void 0&&i===t?zF(r,e):ph(t,i,HF|YF)}}function GF(e){return function(t){return t==null?void 0:t[e]}}function XF(e){return function(t){return Km(t,e)}}function jF(e){return dh(e)?GF(Zo(e)):XF(e)}function ey(e){return typeof e=="function"?e:e==null?fa:typeof e=="object"?Xe(e)?UF(e[0],e[1]):NF(e):jF(e)}function VF(e){return function(t,r,i){for(var s=-1,o=Object(t),a=i(t),n=a.length;n--;){var l=a[++s];if(r(o[l],l,o)===!1)break}return t}}var KF=VF();function ZF(e,t){return e&&KF(e,t,_r)}function QF(e,t){return function(r,i){if(r==null)return r;if(!dl(r))return e(r,i);for(var s=r.length,o=-1,a=Object(r);++o<s&&i(a[o],o,a)!==!1;);return r}}var gh=QF(ZF);function JF(e){return Sn(e)&&dl(e)}function tA(e){return typeof e=="function"?e:fa}function Ur(e,t){var r=Xe(e)?J0:gh;return r(e,tA(t))}function eA(e,t){var r=[];return gh(e,function(i,s,o){t(i,s,o)&&r.push(i)}),r}function ao(e,t){var r=Xe(e)?tx:eA;return r(e,ey(t))}function rA(e,t){return ex(t,function(r){return e[r]})}function Ka(e){return e==null?[]:rA(e,_r(e))}var iA="[object Map]",sA="[object Set]",oA=Object.prototype,aA=oA.hasOwnProperty;function Ju(e){if(e==null)return!0;if(dl(e)&&(Xe(e)||typeof e=="string"||typeof e.splice=="function"||Tn(e)||Od(e)||ul(e)))return!e.length;var t=wn(e);if(t==iA||t==sA)return!e.size;if(rx(e))return!ix(e).length;for(var r in e)if(aA.call(e,r))return!1;return!0}function gi(e){return e===void 0}function nA(e,t,r,i,s){return s(e,function(o,a,n){r=i?(i=!1,o):t(r,o,a,n)}),r}function lA(e,t,r){var i=Xe(e)?aF:nA,s=arguments.length<3;return i(e,ey(t),r,s,gh)}var hA=1/0,cA=_a&&1/fh(new _a([,-0]))[1]==hA?function(e){return new _a(e)}:WL,uA=200;function dA(e,t,r){var i=-1,s=QL,o=e.length,a=!0,n=[],l=n;if(o>=uA){var c=cA(e);if(c)return fh(c);a=!1,s=Zm,l=new Bs}else l=n;t:for(;++i<o;){var h=e[i],u=h;if(h=h!==0?h:0,a&&u===u){for(var d=l.length;d--;)if(l[d]===u)continue t;n.push(h)}else s(l,u,r)||(l!==n&&l.push(u),n.push(h))}return n}var fA=tF(function(e){return dA(oF(e,1,JF,!0))}),pA="\0",Gr="\0",td="�";class pa{constructor(t={}){this._isDirected=Object.prototype.hasOwnProperty.call(t,"directed")?t.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(t,"multigraph")?t.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=ps(void 0),this._defaultEdgeLabelFn=ps(void 0),this._nodes={}
vendor: 1,328 bytes, line 270
270,this._isCompound&&(this._parent={},this._children={},this._children[Gr]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(t){return this._label=t,this}graph(){return this._label}setDefaultNodeLabel(t){return sc(t)||(t=ps(t)),this._defaultNodeLabelFn=t,this}nodeCount(){return this._nodeCount}nodes(){return _r(this._nodes)}sources(){var t=this;return ao(this.nodes(),function(r){return Ju(t._in[r])})}sinks(){var t=this;return ao(this.nodes(),function(r){return Ju(t._out[r])})}setNodes(t,r){var i=arguments,s=this;return Ur(t,function(o){i.length>1?s.setNode(o,r):s.setNode(o)}),this}setNode(t,r){return Object.prototype.hasOwnProperty.call(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=r),this):(this._nodes[t]=arguments.length>1?r:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=Gr,this._children[t]={},this._children[Gr][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)}node(t){return this._nodes[t]}hasNode(t){return Object.prototype.hasOwnProperty.call(this._nodes,t)}removeNode(t){if(Object.prototype.hasOwnProperty.call(this._nodes,t)){var r=i=>this.removeEdge(this._edgeObjs[i]);
vendor: 4,905 bytes, line 270
270delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],Ur(this.children(t),i=>{this.setParent(i)}),delete this._children[t]),Ur(_r(this._in[t]),r),delete this._in[t],delete this._preds[t],Ur(_r(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this}setParent(t,r){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(gi(r))r=Gr;else{r+="";for(var i=r;!gi(i);i=this.parent(i))if(i===t)throw new Error("Setting "+r+" as parent of "+t+" would create a cycle");this.setNode(r)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=r,this._children[r][t]=!0,this}_removeFromParentsChildList(t){delete this._children[this._parent[t]][t]}parent(t){if(this._isCompound){var r=this._parent[t];if(r!==Gr)return r}}children(t){if(gi(t)&&(t=Gr),this._isCompound){var r=this._children[t];if(r)return _r(r)}else{if(t===Gr)return this.nodes();if(this.hasNode(t))return[]}}predecessors(t){var r=this._preds[t];if(r)return _r(r)}successors(t){var r=this._sucs[t];if(r)return _r(r)}neighbors(t){var r=this.predecessors(t);if(r)return fA(r,this.successors(t))}isLeaf(t){var r;return this.isDirected()?r=this.successors(t):r=this.neighbors(t),r.length===0}filterNodes(t){var r=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});r.setGraph(this.graph());var i=this;Ur(this._nodes,function(a,n){t(n)&&r.setNode(n,a)}),Ur(this._edgeObjs,function(a){r.hasNode(a.v)&&r.hasNode(a.w)&&r.setEdge(a,i.edge(a))});var s={};function o(a){var n=i.parent(a);return n===void 0||r.hasNode(n)?(s[a]=n,n):n in s?s[n]:o(n)}return this._isCompound&&Ur(r.nodes(),function(a){r.setParent(a,o(a))}),r}setDefaultEdgeLabel(t){return sc(t)||(t=ps(t)),this._defaultEdgeLabelFn=t,this}edgeCount(){return this._edgeCount}edges(){return Ka(this._edgeObjs)}setPath(t,r){var i=this,s=arguments;return lA(t,function(o,a){return s.length>1?i.setEdge(o,a,r):i.setEdge(o,a),a}),this}setEdge(){var t,r,i,s,o=!1,a=arguments[0];typeof a=="object"&&a!==null&&"v"in a?(t=a.v,r=a.w,i=a.name,arguments.length===2&&(s=arguments[1],o=!0)):(t=a,r=arguments[1],i=arguments[3],arguments.length>2&&(s=arguments[2],o=!0)),t=""+t,r=""+r,gi(i)||(i=""+i);var n=gs(this._isDirected,t,r,i);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,n))return o&&(this._edgeLabels[n]=s),this;if(!gi(i)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(r),this._edgeLabels[n]=o?s:this._defaultEdgeLabelFn(t,r,i);var l=gA(this._isDirected,t,r,i);return t=l.v,r=l.w,Object.freeze(l),this._edgeObjs[n]=l,ed(this._preds[r],t),ed(this._sucs[t],r),this._in[r][n]=l,this._out[t][n]=l,this._edgeCount++,this}edge(t,r,i){var s=arguments.length===1?Za(this._isDirected,arguments[0]):gs(this._isDirected,t,r,i);return this._edgeLabels[s]}hasEdge(t,r,i){var s=arguments.length===1?Za(this._isDirected,arguments[0]):gs(this._isDirected,t,r,i);return Object.prototype.hasOwnProperty.call(this._edgeLabels,s)}removeEdge(t,r,i){var s=arguments.length===1?Za(this._isDirected,arguments[0]):gs(this._isDirected,t,r,i),o=this._edgeObjs[s];return o&&(t=o.v,r=o.w,delete this._edgeLabels[s],delete this._edgeObjs[s],rd(this._preds[r],t),rd(this._sucs[t],r),delete this._in[r][s],delete this._out[t][s],this._edgeCount--),this}inEdges(t,r){var i=this._in[t];if(i){var s=Ka(i);return r?ao(s,function(o){return o.v===r}):s}}outEdges(t,r){var i=this._out[t];if(i){var s=Ka(i);return r?ao(s,function(o){return o.w===r}):s}}nodeEdges(t,r){var i=this.inEdges(t,r);if(i)return i.concat(this.outEdges(t,r))}}pa.prototype._nodeCount=0;pa.prototype._edgeCount=0;function ed(e,t){e[t]?e[t]++:e[t]=1}function rd(e,t){--e[t]||delete e[t]}function gs(e,t,r,i){var s=""+t,o=""+r;if(!e&&s>o){var a=s;s=o,o=a}return s+td+o+td+(gi(i)?pA:i)}function gA(e,t,r,i){var s=""+t,o=""+r;if(!e&&s>o){var a=s;s=o,o=a}var n={v:s,w:o};return i&&(n.name=i),n}function Za(e,t){return gs(e,t.v,t.w,t.name)}function ry(e,{edgePathsClass:t="edges edgePaths"}={}){const r=e.insert("g").attr("class","root"),i=r.insert("g").attr("class","clusters"),s=r.insert("g").attr("class",t),o=r.insert("g").attr("class","edgeLabels"),a=r.insert("g").attr("class","nodes");return{clusters:i,edgePaths:s,edgeLabels:o,nodes:a,rootGroups:r}}p(ry,"createLayoutElementGroups");async function iy(e,t){if(t.label){const{shapeSvg:r,bbox:i}=await Ct(e,t);t.labelBBox={width:i.width,height:i.height},r.remove()}else t.labelBBox={width:0,height:0}}p(iy,"measureGroupLabel");async function sy(e,t,r){var o;const i=await ch(e,t,r),s=((o=i.node())==null?void 0:o.getBBox())??{width:0,height:0};return t.width=s.width,t.height=s.height,i}p(sy,"insertMeasuredNode");async function oy(e,t){const r=new pa({multigraph:!0,compound:!0}),i=[...t.edges],s=Nt(),o=ry(e),{edgeLabels:a,nodes:n}=o,l=new Map,c=e.node()!=null;
270await Promise.all(t.nodes.map(async h=>{if(h.isGroup)c&&await iy(n,h),r.setNode(h.id,{...h});else{if(c){const u=await sy(n,h,{config:s,dir:h.dir});l.set(h.id,u)}r.setNode(h.id,{...h})}}));for(const h of i)c&&Hm(h)&&await uh(a,h),r.setEdge(h.start,h.end,{...h},h.id),t.edges.some(d=>d.id===h.id)||t.edges.push(h);if(globalThis.mermaidCaptureSizes){const{captureNodeSizes:h}=await It(async()=>{const{captureNodeSizes:u}=await import("./sizeCapture-INFHLROL-SPzmkbiW.js");return{captureNodeSizes:u}},__vite__mapDeps([123,1,2,124]));h(e,t)}return{graph:r,groups:o,nodeElements:l}}p(oy,"createGraphWithElements");var zt=new Map,Kr=new Map,ay=new Map,mA=p(()=>{Kr.clear(),ay.clear(),zt.clear()},"clear"),Ls=p((e,t)=>{const r=Kr.get(t)||[];return I.trace("In isDescendant",t," ",e," = ",r.includes(e)),r.includes(e)},"isDescendant"),yA=p((e,t)=>{const r=Kr.get(t)||[];return I.info("Descendants of ",t," is ",r),I.info("Edge is ",e),e.v===t||e.w===t?!1:r?r.includes(e.v)||Ls(e.v,t)||Ls(e.w,t)||r.includes(e.w):(I.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),ny=p((e,t,r,i)=>{I.debug("Copying children of ",e,"root",i,"data",t.node(e),i);const s=t.children(e)||[];e!==i&&s.push(e),I.debug("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)ny(o,t,r,i);else{const a=t.node(o);I.info("cp ",o," to ",i," with parent ",e),r.setNode(o,a),i!==t.parent(o)&&(I.debug("Setting parent",o,t.parent(o)),r.setParent(o,t.parent(o))),e!==i&&o!==e?(I.debug("Setting parent",o,e),r.setParent(o,e)):(I.info("In copy ",e,"root",i,"data",t.node(e),i),I.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==i,"node!==clusterId",o!==e));const n=t.edges(o);I.debug("Copying Edges",n),n.forEach(l=>{I.info("Edge",l);const c=t.edge(l.v,l.w,l.name);I.info("Edge data",c,i);try{yA(l,i)?(I.info("Copying as ",l.v,l.w,c,l.name),r.setEdge(l.v,l.w,c,l.name),I.info("newGraph edges ",r.edges(),r.edge(r.edges()[0]))):I.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",i," clusterId:",e)}catch(h){I.error(h)}})}I.debug("Removing node",o),t.removeNode(o)})},"copy"),ly=p((e,t)=>{const r=t.children(e);let i=[...r];for(const s of r)ay.set(s,e),i=[...i,...ly(s,t)];return i},"extractDescendants"),xA=p((e,t,r)=>{const i=e.edges().filter(l=>l.v===t||l.w===t),s=e.edges().filter(l=>l.v===r||l.w===r),o=i.map(l=>({v:l.v===t?r:l.v,w:l.w===t?t:l.w})),a=s.map(l=>({v:l.v,w:l.w}));return o.filter(l=>a.some(c=>l.v===c.v&&l.w===c.w))},"findCommonEdges"),Vo=p((e,t,r)=>{const i=t.children(e);if(I.trace("Searching children of id ",e,i),i.length<1)return e;let s;for(const o of i){const a=Vo(o,t,r),n=xA(t,r,a);if(a)if(n.length>0)s=a;else return a}return s},"findNonClusterChild"),id=p(e=>!zt.has(e)||!zt.get(e).externalConnections?e:zt.has(e)?zt.get(e).id:e,"getAnchorId"),h3=p((e,t)=>{var r;if(!e||t>10){I.debug("Opting out, no graph ");return}else I.debug("Opting in, graph ");e.nodes().forEach(function(i){e.children(i).length>0&&(I.debug("Cluster identified",i," Replacement id in edges: ",Vo(i,e,i)),Kr.set(i,ly(i,e)),zt.set(i,{id:Vo(i,e,i),clusterData:e.node(i)}))}),e.nodes().forEach(function(i){const s=e.children(i),o=e.edges();s.length>0?(I.debug("Cluster identified",i,Kr),o.forEach(a=>{const n=Ls(a.v,i),l=Ls(a.w,i);n^l&&(I.debug("Edge: ",a," leaves cluster ",i),I.debug("Descendants of XXX ",i,": ",Kr.get(i)),zt.get(i).externalConnections=!0)})):I.debug("Not a cluster ",i,Kr)});for(let i of zt.keys()){const s=zt.get(i).id,o=e.parent(s);o!==i&&zt.has(o)&&!zt.get(o).externalConnections&&(zt.get(i).id=o);const a=e.edges().some(n=>n.v===i);if(s&&((r=zt.get(i))!=null&&r.externalConnections)&&a&&uy(e,s,i)){const n=CA(e,i,e.parent(s));n&&(zt.get(i).id=n)}}
270e.edges().forEach(function(i){const s=e.edge(i);I.debug("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(i)),I.debug("Edge "+i.v+" -> "+i.w+": "+JSON.stringify(e.edge(i)));let o=i.v,a=i.w;if(I.debug("Fix XXX",zt,"ids:",i.v,i.w,"Translating: ",zt.get(i.v)," --- ",zt.get(i.w)),zt.get(i.v)||zt.get(i.w)){if(I.debug("Fixing and trying - removing XXX",i.v,i.w,i.name),o=id(i.v),a=id(i.w),e.removeEdge(i.v,i.w,i.name),o!==i.v){const n=e.parent(o);zt.get(n).externalConnections=!0,s.fromCluster=i.v}if(a!==i.w){const n=e.parent(a);zt.get(n).externalConnections=!0,s.toCluster=i.w}I.debug("Fix Replacing with XXX",o,a,i.name),e.setEdge(o,a,s,i.name)}}),hy(e,0),I.trace(zt)},"adjustClustersAndEdges"),hy=p((e,t)=>{var s,o;if(t>10){I.error("Bailing out");return}let r=e.nodes(),i=!1;for(const a of r){const n=e.children(a);i=i||n.length>0}if(!i){I.debug("Done, no node has children",e.nodes());return}I.debug("Nodes = ",r,t);for(const a of r)if(I.debug("Extracting node",a,zt,zt.has(a)&&!zt.get(a).externalConnections,!e.parent(a),e.node(a),e.children("D")," Depth ",t),!zt.has(a))I.debug("Not a cluster",a,t);else if(!zt.get(a).externalConnections&&e.children(a)&&e.children(a).length>0){I.debug("Cluster without external connections, without a parent and with children",a,t);let l=e.graph().rankdir==="TB"?"LR":"TB";(o=(s=zt.get(a))==null?void 0:s.clusterData)!=null&&o.dir&&(l=zt.get(a).clusterData.dir,I.debug("Fixing dir",zt.get(a).clusterData.dir,l));const c=new pa({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});ny(a,e,c,a),e.setNode(a,{clusterNode:!0,id:a,clusterData:zt.get(a).clusterData,label:zt.get(a).label,graph:c})}else I.debug("Cluster ** ",a," **not meeting the criteria !externalConnections:",!zt.get(a).externalConnections," no parent: ",!e.parent(a)," children ",e.children(a)&&e.children(a).length>0,e.children("D"),t),I.debug(zt);r=e.nodes(),I.debug("New list of nodes",r);for(const a of r){const n=e.node(a);I.debug(" Now next level",a,n),n!=null&&n.clusterNode&&hy(n.graph,t+1)}},"extractor"),cy=p((e,t)=>{if(t.length===0)return[];let r=Object.assign([],t);return t.forEach(i=>{const s=e.children(i),o=cy(e,s);r=[...r,...o]}),r},"sorter"),c3=p(e=>cy(e,e.children()),"sortNodesByHierarchy"),uy=p((e,t,r)=>{let i=e.parent(t);for(;i&&i!==r;){const s=zt.get(i);if(s&&!s.externalConnections)return!0;i=e.parent(i)}return!1},"isNodeInExtractableCluster"),CA=p((e,t,r)=>{const i=e.children(t)??[];for(const s of i){if(s===r||Ls(s,r))continue;const o=Vo(s,e,t);if(o&&!uy(e,o,t))return o}return null},"findSafeAnchorNode");function dy({prepareLayout:e,measureLayout:t,runLayoutCore:r,paintLayout:i,afterPaint:s,paintOptions:o}){const a=t??yh;return p(async function(l,c,h,u){const d=c.select("g");((h==null?void 0:h.insertMarkers)??jm)(d,l.markers,l.type,l.diagramId),mh();const f={element:d,helpers:h,options:u};f.preparedLayout=await(e==null?void 0:e(l,f));const m=await a(l,f),y=await r(l,f),C={...f,measure:m};i?await i(l,C,y):await xh(l,C,o),await(s==null?void 0:s(l,C,y))},"render")}p(dy,"createCommonLayoutRenderer");function mh(){VB(),hL(),iL(),mA()}p(mh,"clearLayoutRenderState");async function yh(e,{element:t}){return await oy(t,e)}p(yh,"defaultMeasureLayout");async function xh(e,t,r={}){var a,n;const{measure:i}=t,{groups:s}=i;for(const l of((a=r.getNodes)==null?void 0:a.call(r,e,t))??e.nodes)(n=r.skipNode)!=null&&n.call(r,l,t)||await fy(s,l,t,r);const o=gy(e.nodes);for(const l of e.edges)my(l,r)||await yy(s,l,o,e,r,t)}p(xh,"paintLayoutData");async function fy(e,t,r,i){t.clusterNode?zu(t):py(t,r,i)?await zm(e.clusters,t):zu(t)}p(fy,"paintLayoutNode");function py(e,t,r){var i;return e.isGroup===!0&&(((i=r.isCluster)==null?void 0:i.call(r,e,t))??!0)}p(py,"shouldPaintAsCluster");function gy(e){const t=new Map;for(const r of e)r!=null&&r.id&&t.set(r.id,r);return t}p(gy,"buildNodeLookup");function my(e,t){var r;return e.isLayoutOnly||!!((r=t.skipEdge)!=null&&r.call(t,e))}p(my,"shouldSkipPaintEdge");async function yy(e,t,r,i,s,o){const a=Um(e.edgePaths,{...t},s.clusterDb??new Map,i.type,ll(t.start,t,r,o,s),ll(t.end,t,r,o,s),i.diagramId,xy(t,s));Hm(t)&&(Wi.has(t.id)||await uh(e.edgeLabels,t),Cy(t,a))}
270p(yy,"paintLayoutEdge");function ll(e,t,r,i,s){var o;return((o=s.getEdgeNode)==null?void 0:o.call(s,e,t,i))??(e?r.get(e)??{}:{})}p(ll,"getRenderedNode");function xy(e,t){return typeof t.skipIntersect=="function"?t.skipIntersect(e):t.skipIntersect??!1}p(xy,"shouldSkipIntersect");function Cy(e,t){const r=(t==null?void 0:t.updatedPath)??(t==null?void 0:t.originalPath),i=Jt(),{subGraphTitleTotalMargin:s}=ua({flowchart:i.flowchart??{}});if(e.label){const o=Wi.get(e.id);let a=e.x,n=e.y;if(r){const l=xe.calcLabelPosition(r);I.debug("Moving label "+e.label+" from (",a,",",n,") to (",l.x,",",l.y,") abc88"),t!=null&&t.updatedPath&&(a=l.x,n=l.y)}o.attr("transform",`translate(${a}, ${n+s/2})`)}if(e!=null&&e.startLabelLeft){const o=ie.get(e.id).startLeft;let a=e==null?void 0:e.x,n=e==null?void 0:e.y;if(r){const l=xe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.startLabelRight){const o=ie.get(e.id).startRight;let a=e.x,n=e.y;if(r){const l=xe.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.endLabelLeft){const o=ie.get(e.id).endLeft;let a=e.x,n=e.y;if(r){const l=xe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}if(e.endLabelRight){const o=ie.get(e.id).endRight;let a=e.x,n=e.y;if(r){const l=xe.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);a=l.x,n=l.y}o.attr("transform",`translate(${a}, ${n})`)}}p(Cy,"positionRenderedEdgeLabel");function by(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}p(by,"getDefaultExportFromCjs");var fe={},no={},$r={},sd;function Yi(){if(sd)return $r;sd=1;function e(a){return typeof a>"u"||a===null}p(e,"isNothing");function t(a){return typeof a=="object"&&a!==null}p(t,"isObject");function r(a){return Array.isArray(a)?a:e(a)?[]:[a]}p(r,"toArray");function i(a,n){if(n){const l=Object.keys(n);for(let c=0,h=l.length;c<h;c+=1){const u=l[c];a[u]=n[u]}}return a}p(i,"extend");function s(a,n){let l="";for(let c=0;c<n;c+=1)l+=a;return l}p(s,"repeat");function o(a){return a===0&&Number.NEGATIVE_INFINITY===1/a}return p(o,"isNegativeZero"),$r.isNothing=e,$r.isObject=t,$r.toArray=r,$r.repeat=s,$r.isNegativeZero=o,$r.extend=i,$r}p(Yi,"requireCommon");var Qa,od;function Ui(){if(od)return Qa;od=1;function e(r,i){let s="";const o=r.reason||"(unknown reason)";return r.mark?(r.mark.name&&(s+='in "'+r.mark.name+'" '),s+="("+(r.mark.line+1)+":"+(r.mark.column+1)+")",!i&&r.mark.snippet&&(s+=`
271
272`+r.mark.snippet),o+" "+s):o}p(e,"formatError");function t(r,i){Error.call(this),this.name="YAMLException",this.reason=r,this.mark=i,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}return p(t,"YAMLException2"),t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=p(function(i){return this.name+": "+e(this,i)},"toString"),Qa=t,Qa}p(Ui,"requireException");var Ja,ad;function ky(){if(ad)return Ja;ad=1;const e=Yi();function t(s,o,a,n,l){let c="",h="";const u=Math.floor(l/2)-1;return n-o>u&&(c=" ... ",o=n-u+c.length),a-n>u&&(h=" ...",a=n+u-h.length),{str:c+s.slice(o,a).replace(/\t/g,"→")+h,pos:n-o+c.length}}p(t,"getLine");function r(s,o){return e.repeat(" ",o-s.length)+s}p(r,"padStart");function i(s,o){if(o=Object.create(o||null),!s.buffer)return null;o.maxLength||(o.maxLength=79),typeof o.indent!="number"&&(o.indent=1),typeof o.linesBefore!="number"&&(o.linesBefore=3),typeof o.linesAfter!="number"&&(o.linesAfter=2);const a=/\r?\n|\r|\0/g,n=[0],l=[];let c,h=-1;for(;c=a.exec(s.buffer);)l.push(c.index),n.push(c.index+c[0].length),s.position<=c.index&&h<0&&(h=n.length-2);h<0&&(h=n.length-1);let u="";const d=Math.min(s.line+o.linesAfter,l.length).toString().length,f=o.maxLength-(o.indent+d+3);for(let y=1;y<=o.linesBefore&&!(h-y<0);y++){const C=t(s.buffer,n[h-y],l[h-y],s.position-(n[h]-n[h-y]),f);u=e.repeat(" ",o.indent)+r((s.line-y+1).toString(),d)+" | "+C.str+`
273`+u}const m=t(s.buffer,n[h],l[h],s.position,f);u+=e.repeat(" ",o.indent)+r((s.line+1).toString(),d)+" | "+m.str+`
274`,u+=e.repeat("-",o.indent+d+3+m.pos)+`^
275`;for(let y=1;y<=o.linesAfter&&!(h+y>=l.length);y++){const C=t(s.buffer,n[h+y],l[h+y],s.position-(n[h]-n[h+y]),f);u+=e.repeat(" ",o.indent)+r((s.line+y+1).toString(),d)+" | "+C.str+`
276`}return u.replace(/\n$/,"")}return p(i,"makeSnippet"),Ja=i,Ja}p(ky,"requireSnippet");var tn,nd;function be(){if(nd)return tn;nd=1;const e=Ui(),t=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function i(o){const a={};
276return o!==null&&Object.keys(o).forEach(function(n){o[n].forEach(function(l){a[String(l)]=n})}),a}p(i,"compileStyleAliases");function s(o,a){if(a=a||{},Object.keys(a).forEach(function(n){if(t.indexOf(n)===-1)throw new e('Unknown option "'+n+'" is met in definition of "'+o+'" YAML type.')}),this.options=a,this.tag=o,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(n){return n},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=i(a.styleAliases||null),r.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+o+'" YAML type.')}return p(s,"Type2"),tn=s,tn}p(be,"requireType");var en,ld;function Ch(){if(ld)return en;ld=1;const e=Ui(),t=be();function r(o,a){const n=[];return o[a].forEach(function(l){let c=n.length;n.forEach(function(h,u){h.tag===l.tag&&h.kind===l.kind&&h.multi===l.multi&&(c=u)}),n[c]=l}),n}p(r,"compileList");function i(){const o={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function a(n){n.multi?(o.multi[n.kind].push(n),o.multi.fallback.push(n)):o[n.kind][n.tag]=o.fallback[n.tag]=n}p(a,"collectType");for(let n=0,l=arguments.length;n<l;
vendor: 8,376 bytes, line 276
276n+=1)arguments[n].forEach(a);return o}p(i,"compileMap");function s(o){return this.extend(o)}return p(s,"Schema2"),s.prototype.extend=p(function(a){let n=[],l=[];if(a instanceof t)l.push(a);else if(Array.isArray(a))l=l.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(n=n.concat(a.implicit)),a.explicit&&(l=l.concat(a.explicit));else throw new e("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(h){if(!(h instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(h.loadKind&&h.loadKind!=="scalar")throw new e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(h.multi)throw new e("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),l.forEach(function(h){if(!(h instanceof t))throw new e("Specified list of YAML types (or a single Type object) contains a non-Type object.")});const c=Object.create(s.prototype);return c.implicit=(this.implicit||[]).concat(n),c.explicit=(this.explicit||[]).concat(l),c.compiledImplicit=r(c,"implicit"),c.compiledExplicit=r(c,"explicit"),c.compiledTypeMap=i(c.compiledImplicit,c.compiledExplicit),c},"extend"),en=s,en}p(Ch,"requireSchema");var rn,hd;function bh(){if(hd)return rn;hd=1;const e=be();return rn=new e("tag:yaml.org,2002:str",{kind:"scalar",construct:p(function(t){return t!==null?t:""},"construct")}),rn}p(bh,"requireStr");var sn,cd;function kh(){if(cd)return sn;cd=1;const e=be();return sn=new e("tag:yaml.org,2002:seq",{kind:"sequence",construct:p(function(t){return t!==null?t:[]},"construct")}),sn}p(kh,"requireSeq");var on,ud;function wh(){if(ud)return on;ud=1;const e=be();return on=new e("tag:yaml.org,2002:map",{kind:"mapping",construct:p(function(t){return t!==null?t:{}},"construct")}),on}p(wh,"requireMap");var an,dd;function Th(){if(dd)return an;dd=1;const e=Ch();return an=new e({explicit:[bh(),kh(),wh()]}),an}p(Th,"requireFailsafe");var nn,fd;function Sh(){if(fd)return nn;fd=1;const e=be();function t(s){if(s===null)return!0;const o=s.length;return o===1&&s==="~"||o===4&&(s==="null"||s==="Null"||s==="NULL")}p(t,"resolveYamlNull");function r(){return null}p(r,"constructYamlNull");function i(s){return s===null}return p(i,"isNull"),nn=new e("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:{canonical:p(function(){return"~"},"canonical"),lowercase:p(function(){return"null"},"lowercase"),uppercase:p(function(){return"NULL"},"uppercase"),camelcase:p(function(){return"Null"},"camelcase"),empty:p(function(){return""},"empty")},defaultStyle:"lowercase"}),nn}p(Sh,"require_null");var ln,pd;function _h(){if(pd)return ln;pd=1;const e=be();function t(s){if(s===null)return!1;const o=s.length;return o===4&&(s==="true"||s==="True"||s==="TRUE")||o===5&&(s==="false"||s==="False"||s==="FALSE")}p(t,"resolveYamlBoolean");function r(s){return s==="true"||s==="True"||s==="TRUE"}p(r,"constructYamlBoolean");function i(s){return Object.prototype.toString.call(s)==="[object Boolean]"}return p(i,"isBoolean"),ln=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:{lowercase:p(function(s){return s?"true":"false"},"lowercase"),uppercase:p(function(s){return s?"TRUE":"FALSE"},"uppercase"),camelcase:p(function(s){return s?"True":"False"},"camelcase")},defaultStyle:"lowercase"}),ln}p(_h,"requireBool");var hn,gd;function vh(){if(gd)return hn;gd=1;const e=Yi(),t=be();function r(c){return c>=48&&c<=57||c>=65&&c<=70||c>=97&&c<=102}p(r,"isHexCode");function i(c){return c>=48&&c<=55}p(i,"isOctCode");function s(c){return c>=48&&c<=57}p(s,"isDecCode");function o(c){if(c===null)return!1;const h=c.length;let u=0,d=!1;if(!h)return!1;let f=c[u];if((f==="-"||f==="+")&&(f=c[++u]),f==="0"){if(u+1===h)return!0;if(f=c[++u],f==="b"){for(u++;u<h;u++){if(f=c[u],f!=="0"&&f!=="1")return!1;d=!0}return d&&isFinite(a(c))}if(f==="x"){for(u++;u<h;u++){if(!r(c.charCodeAt(u)))return!1;d=!0}return d&&isFinite(a(c))}if(f==="o"){for(u++;u<h;u++){if(!i(c.charCodeAt(u)))return!1;d=!0}return d&&isFinite(a(c))}}for(;u<h;u++){if(!s(c.charCodeAt(u)))return!1;d=!0}return d?isFinite(a(c)):!1}p(o,"resolveYamlInteger");function a(c){let h=c,u=1,d=h[0];if((d==="-"||d==="+")&&(d==="-"&&(u=-1),h=h.slice(1),d=h[0]),h==="0")return 0;if(d==="0"){if(h[1]==="b")return u*parseInt(h.slice(2),2);if(h[1]==="x")return u*parseInt(h.slice(2),16);if(h[1]==="o")return u*parseInt(h.slice(2),8)}return u*parseInt(h,10)}p(a,"parseYamlInteger");function n(c){return a(c)}p(n,"constructYamlInteger");function l(c){return Object.prototype.toString.call(c)==="[object Number]"&&c%1===0&&!e.isNegativeZero(c)}return p(l,"isInteger"),hn=new t("tag:yaml.org,2002:int",{kind:"scalar",resolve:o,construct:n,predicate:l,represent:{binary:p(function(c){return c>=0?"0b"+c.toString(2):"-0b"+c.toString(2).slice(1)},"binary"),octal:p(function(c){return c>=0?"0o"+c.toString(8):"-0o"+c.toString(8).slice(1)},"octal"),decimal:p(function(c){return c.toString(10)},"decimal"),hexadecimal:p(function(c){return c>=0?"0x"+c.toString(16).toUpperCase():"-0x"+c.toString(16).toUpperCase().slice(1)},"hexadecimal")},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),hn}p(vh,"requireInt");var cn,md;function Bh(){if(md)return cn;md=1;const e=Yi(),t=be(),r=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),i=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function s(c){return c===null||!r.test(c)?!1:isFinite(parseFloat(c,10))?!0:i.test(c)}p(s,"resolveYamlFloat");function o(c){let h=c.toLowerCase();const u=h[0]==="-"?-1:1;return"+-".indexOf(h[0])>=0&&(h=h.slice(1)),h===".inf"?u===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:h===".nan"?NaN:u*parseFloat(h,10)}p(o,"constructYamlFloat");const a=/^[-+]?[0-9]+e/;function n(c,h){if(isNaN(c))switch(h){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===c)switch(h){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===c)switch(h){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(c))return"-0.0";const u=c.toString(10);return a.test(u)?u.replace("e",".e"):u}p(n,"representYamlFloat");function l(c){return Object.prototype.toString.call(c)==="[object Number]"&&(c%1!==0||e.isNegativeZero(c))}return p(l,"isFloat"),cn=new t("tag:yaml.org,2002:float",{kind:"scalar",resolve:s,construct:o,predicate:l,represent:n,defaultStyle:"lowercase"}),cn}p(Bh,"requireFloat");var un,yd;function Lh(){return yd||(yd=1,un=Th().extend({implicit:[Sh(),_h(),vh(),Bh()]})),un}p(Lh,"requireJson");var dn,xd;function Fh(){return xd||(xd=1,dn=Lh()),dn}p(Fh,"requireCore");var fn,Cd;function Ah(){if(Cd)return fn;Cd=1;const e=be(),t=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),r=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 i(a){return a===null?!1:t.exec(a)!==null||r.exec(a)!==null}p(i,"resolveYamlTimestamp");function s(a){let n=0,l=null,c=t.exec(a);if(c===null&&(c=r.exec(a)),c===null)throw new Error("Date resolve error");const h=+c[1],u=+c[2]-1,d=+c[3];if(!c[4])return new Date(Date.UTC(h,u,d));const f=+c[4],m=+c[5],y=+c[6];if(c[7]){for(n=c[7].slice(0,3);n.length<3;)n+="0";n=+n}if(c[9]){const x=+c[10],k=+(c[11]||0);l=(x*60+k)*6e4,c[9]==="-"&&(l=-l)}const C=new Date(Date.UTC(h,u,d,f,m,y,n));return l&&C.setTime(C.getTime()-l),C}p(s,"constructYamlTimestamp");function o(a){return a.toISOString()}return p(o,"representYamlTimestamp"),fn=new e("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:i,construct:s,instanceOf:Date,represent:o}),fn}p(Ah,"requireTimestamp");var pn,bd;function Eh(){if(bd)return pn;bd=1;const e=be();function t(r){return r==="<<"||r===null}return p(t,"resolveYamlMerge"),pn=new e("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),pn}p(Eh,"requireMerge");var gn,kd;function Mh(){if(kd)return gn;kd=1;
276const e=be(),t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
277\r`;function r(a){if(a===null)return!1;let n=0;const l=a.length,c=t;for(let h=0;h<l;h++){const u=c.indexOf(a.charAt(h));if(!(u>64)){if(u<0)return!1;n+=6}}return n%8===0}p(r,"resolveYamlBinary");function i(a){const n=a.replace(/[\r\n=]/g,""),l=n.length,c=t;let h=0;const u=[];for(let f=0;f<l;f++)f%4===0&&f&&(u.push(h>>16&255),u.push(h>>8&255),u.push(h&255)),h=h<<6|c.indexOf(n.charAt(f));const d=l%4*6;return d===0?(u.push(h>>16&255),u.push(h>>8&255),u.push(h&255)):d===18?(u.push(h>>10&255),u.push(h>>2&255)):d===12&&u.push(h>>4&255),new Uint8Array(u)}p(i,"constructYamlBinary");function s(a){let n="",l=0;const c=a.length,h=t;for(let d=0;d<c;d++)d%3===0&&d&&(n+=h[l>>18&63],n+=h[l>>12&63],n+=h[l>>6&63],n+=h[l&63]),l=(l<<8)+a[d];const u=c%3;return u===0?(n+=h[l>>18&63],n+=h[l>>12&63],n+=h[l>>6&63],n+=h[l&63]):u===2?(n+=h[l>>10&63],n+=h[l>>4&63],n+=h[l<<2&63],n+=h[64]):u===1&&(n+=h[l>>2&63],n+=h[l<<4&63],n+=h[64],n+=h[64]),n}p(s,"representYamlBinary");function o(a){return Object.prototype.toString.call(a)==="[object Uint8Array]"}return p(o,"isBinary"),gn=new e("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:i,predicate:o,represent:s}),gn}p(Mh,"requireBinary");var mn,wd;function $h(){if(wd)return mn;wd=1;const e=be(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function i(o){if(o===null)return!0;const a=[],n=o;for(let l=0,c=n.length;l<c;l+=1){const h=n[l];let u=!1;if(r.call(h)!=="[object Object]")return!1;let d;for(d in h)if(t.call(h,d))if(!u)u=!0;else return!1;if(!u)return!1;if(a.indexOf(d)===-1)a.push(d);else return!1}return!0}p(i,"resolveYamlOmap");function s(o){return o!==null?o:[]}return p(s,"constructYamlOmap"),mn=new e("tag:yaml.org,2002:omap",{kind:"sequence",resolve:i,construct:s}),mn}p($h,"requireOmap");var yn,Td;function Oh(){if(Td)return yn;Td=1;const e=be(),t=Object.prototype.toString;function r(s){if(s===null)return!0;const o=s,a=new Array(o.length);for(let n=0,l=o.length;n<l;n+=1){const c=o[n];if(t.call(c)!=="[object Object]")return!1;const h=Object.keys(c);if(h.length!==1)return!1;a[n]=[h[0],c[h[0]]]}return!0}p(r,"resolveYamlPairs");function i(s){if(s===null)return[];const o=s,a=new Array(o.length);for(let n=0,l=o.length;n<l;n+=1){const c=o[n],h=Object.keys(c);a[n]=[h[0],c[h[0]]]}return a}return p(i,"constructYamlPairs"),yn=new e("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:i}),yn}p(Oh,"requirePairs");var xn,Sd;function Dh(){if(Sd)return xn;Sd=1;const e=be(),t=Object.prototype.hasOwnProperty;function r(s){if(s===null)return!0;const o=s;for(const a in o)if(t.call(o,a)&&o[a]!==null)return!1;return!0}p(r,"resolveYamlSet");function i(s){return s!==null?s:{}}return p(i,"constructYamlSet"),xn=new e("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:i}),xn}p(Dh,"requireSet");var Cn,_d;function ga(){return _d||(_d=1,Cn=Fh().extend({implicit:[Ah(),Eh()],explicit:[Mh(),$h(),Oh(),Dh()]})),Cn}p(ga,"require_default");var vd;function wy(){if(vd)return no;vd=1;const e=Yi(),t=Ui(),r=ky(),i=ga(),s=Object.prototype.hasOwnProperty,o=1,a=2,n=3,l=4,c=1,h=2,u=3,d=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=/[\x85\u2028\u2029]/,m=/[,\[\]{}]/,y=/^(?:!|!!|![0-9A-Za-z-]+!)$/,C=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function x(g){return Object.prototype.toString.call(g)}p(x,"_class");function k(g){return g===10||g===13}p(k,"isEol");function T(g){return g===9||g===32}p(T,"isWhiteSpace");function S(g){return g===9||g===32||g===10||g===13}p(S,"isWsOrEol");function v(g){return g===44||g===91||g===93||g===123||g===125}p(v,"isFlowIndicator");function B(g){if(g>=48&&g<=57)return g-48;const E=g|32;return E>=97&&E<=102?E-97+10:-1}p(B,"fromHexCode");function L(g){return g===120?2:g===117?4:g===85?8:0}p(L,"escapedHexLen");function O(g){return g>=48&&g<=57?g-48:-1}p(O,"fromDecimalCode");function U(g){switch(g){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return"	";case 9:return"	";case 110:return`
278`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}p(U,"simpleEscapeSequence");function N(g){return g<=65535?String.fromCharCode(g):String.fromCharCode((g-65536>>10)+55296,(g-65536&1023)+56320)}p(N,"charFromCodepoint");function Y(g,E,H){E==="__proto__"?Object.defineProperty(g,E,{configurable:!0,enumerable:!0,writable:!0,value:H}):g[E]=H}p(Y,"setProperty");const st=new Array(256),q=new Array(256);for(let g=0;g<256;g++)st[g]=U(g)?1:0,q[g]=U(g);function W(g,E){this.input=g,this.filename=E.filename||null,this.schema=E.schema||i,this.onWarning=E.onWarning||null,this.legacy=E.legacy||!1,this.json=E.json||!1,this.listener=E.listener||null,this.maxDepth=typeof E.maxDepth=="number"?E.maxDepth:100,this.maxTotalMergeKeys=typeof E.maxTotalMergeKeys=="number"?E.maxTotalMergeKeys:1e4,this.impl
278icitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=g.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}p(W,"State");function K(g,E){const H={name:g.filename,buffer:g.input.slice(0,-1),position:g.position,line:g.line,column:g.position-g.lineStart};return H.snippet=r(H),new t(E,H)}p(K,"generateError");function A(g,E){throw K(g,E)}p(A,"throwError");function V(g,E){g.onWarning&&g.onWarning.call(null,K(g,E))}p(V,"throwWarning");function et(g,E,H){const X=g.anchorMapTransactions;if(X.length!==0){const z=X[X.length-1];s.call(z,E)||(z[E]={existed:s.call(g.anchorMap,E),value:g.anchorMap[E]})}g.anchorMap[E]=H}p(et,"storeAnchor");function Z(g){g.anchorMapTransactions.push(Object.create(null))}p(Z,"beginAnchorTransaction");function lt(g){const E=g.anchorMapTransactions.pop(),H=g.anchorMapTransactions;if(H.length===0)return;const X=H[H.length-1],z=Object.keys(E);for(let it=0,w=z.length;it<w;it+=1){const D=z[it];s.call(X,D)||(X[D]=E[D])}}p(lt,"commitAnchorTransaction");function _t(g){const E=g.anchorMapTransactions.pop(),H=Object.keys(E);for(let X=H.length-1;X>=0;X-=1){const z=E[H[X]];z.existed?g.anchorMap[H[X]]=z.value:delete g.anchorMap[H[X]]}}p(_t,"rollbackAnchorTransaction");function St(g){return{position:g.position,line:g.line,lineStart:g.lineStart,lineIndent:g.lineIndent,firstTabInLine:g.firstTabInLine,tag:g.tag,anchor:g.anchor,kind:g.kind,result:g.result}}p(St,"snapshotState");function Lt(g,E){g.position=E.position,g.line=E.line,g.lineStart=E.lineStart,g.lineIndent=E.lineIndent,g.firstTabInLine=E.firstTabInLine,g.tag=E.tag,g.anchor=E.anchor,g.kind=E.kind,g.result=E.result}p(Lt,"restoreState");const Mt={YAML:p(function(E,H,X){E.version!==null&&A(E,"duplication of %YAML directive"),X.length!==1&&A(E,"YAML directive accepts exactly one argument");const z=/^([0-9]+)\.([0-9]+)$/.exec(X[0]);z===null&&A(E,"ill-formed argument of the YAML directive");const it=parseInt(z[1],10),w=parseInt(z[2],10);it!==1&&A(E,"unacceptable YAML version of the document"),E.version=X[0],E.checkLineBreaks=w<2,w!==1&&w!==2&&V(E,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:p(function(E,H,X){let z;X.length!==2&&A(E,"TAG directive accepts exactly two arguments");const it=X[0];z=X[1],y.test(it)||A(E,"ill-formed tag handle (first argument) of the TAG directive"),s.call(E.tagMap,it)&&A(E,'there is a previously declared suffix for "'+it+'" tag handle'),C.test(z)||A(E,"ill-formed tag prefix (second argument) of the TAG directive");try{z=decodeURIComponent(z)}catch{A(E,"tag prefix is malformed: "+z)}E.tagMap[it]=z},"handleTagDirective")};function ht(g,E,H,X){if(E<H){const z=g.input.slice(E,H);if(X)for(let it=0,w=z.length;it<w;it+=1){const D=z.charCodeAt(it);D===9||D>=32&&D<=1114111||A(g,"expected valid JSON character")}else d.test(z)&&A(g,"the stream contains non-printable characters");g.result+=z}}p(ht,"captureSegment");function Rt(g,E,H,X){e.isObject(H)||A(g,"cannot merge mappings; the provided source object is unacceptable");const z=Object.keys(H);for(let it=0,w=z.length;it<w;it+=1){const D=z[it];g.maxTotalMergeKeys!==-1&&++g.totalMergeKeys>g.maxTotalMergeKeys&&A(g,"merge keys exceeded maxTotalMergeKeys ("+g.maxTotalMergeKeys+")"),s.call(E,D)||(Y(E,D,H[D]),X[D]=!0)}}p(Rt,"mergeMappings");function Dt(g,E,H,X,z,it,w,D,J){if(Array.isArray(z)){z=Array.prototype.slice.call(z);for(let G=0,j=z.length;G<j;G+=1)Array.isArray(z[G])&&A(g,"nested arrays are not supported inside keys"),typeof z=="object"&&x(z[G])==="[object Object]"&&(z[G]="[object Object]")}if(typeof z=="object"&&x(z)==="[object Object]"&&(z="[object Object]"),z=String(z),E===null&&(E={}),X==="tag:yaml.org,2002:merge")if(Array.isArray(it))for(let G=0,j=it.length;G<j;G+=1)Rt(g,E,it[G],H);else Rt(g,E,it,H);else!g.json&&!s.call(H,z)&&s.call(E,z)&&(g.line=w||g.line,g.lineStart=D||g.lineStart,g.position=J||g.position,A(g,"duplicated mapping key")),Y(E,z,it),delete H[z];return E}p(Dt,"storeMappingPair");function Ut(g){const E=g.input.charCodeAt(g.position);E===10?g.position++:E===13?(g.position++,g.input.charCodeAt(g.position)===10&&g.position++):A(g,"a line break is expected"),g.line+=1,g.lineStart=g.position,g.firstTabInLine=-1}
vendor: 16,035 bytes, lines 278-286
278p(Ut,"readLineBreak");function Et(g,E,H){let X=0,z=g.input.charCodeAt(g.position);for(;z!==0;){for(;T(z);)z===9&&g.firstTabInLine===-1&&(g.firstTabInLine=g.position),z=g.input.charCodeAt(++g.position);if(E&&z===35)do z=g.input.charCodeAt(++g.position);while(z!==10&&z!==13&&z!==0);if(k(z))for(Ut(g),z=g.input.charCodeAt(g.position),X++,g.lineIndent=0;z===32;)g.lineIndent++,z=g.input.charCodeAt(++g.position);else break}return H!==-1&&X!==0&&g.lineIndent<H&&V(g,"deficient indentation"),X}p(Et,"skipSeparationSpace");function mt(g){let E=g.position,H=g.input.charCodeAt(E);return!!((H===45||H===46)&&H===g.input.charCodeAt(E+1)&&H===g.input.charCodeAt(E+2)&&(E+=3,H=g.input.charCodeAt(E),H===0||S(H)))}p(mt,"testDocumentSeparator");function xt(g,E){E===1?g.result+=" ":E>1&&(g.result+=e.repeat(`
279`,E-1))}p(xt,"writeFoldedLines");function $t(g,E,H){let X,z,it,w,D,J;const G=g.kind,j=g.result;let rt=g.input.charCodeAt(g.position);if(S(rt)||v(rt)||rt===35||rt===38||rt===42||rt===33||rt===124||rt===62||rt===39||rt===34||rt===37||rt===64||rt===96)return!1;if(rt===63||rt===45){const Q=g.input.charCodeAt(g.position+1);if(S(Q)||H&&v(Q))return!1}for(g.kind="scalar",g.result="",X=z=g.position,it=!1;rt!==0;){if(rt===58){const Q=g.input.charCodeAt(g.position+1);if(S(Q)||H&&v(Q))break}else if(rt===35){const Q=g.input.charCodeAt(g.position-1);if(S(Q))break}else{if(g.position===g.lineStart&&mt(g)||H&&v(rt))break;if(k(rt))if(w=g.line,D=g.lineStart,J=g.lineIndent,Et(g,!1,-1),g.lineIndent>=E){it=!0,rt=g.input.charCodeAt(g.position);continue}else{g.position=z,g.line=w,g.lineStart=D,g.lineIndent=J;break}}it&&(ht(g,X,z,!1),xt(g,g.line-w),X=z=g.position,it=!1),T(rt)||(z=g.position+1),rt=g.input.charCodeAt(++g.position)}return ht(g,X,z,!1),g.result?!0:(g.kind=G,g.result=j,!1)}p($t,"readPlainScalar");function qt(g,E){let H,X,z=g.input.charCodeAt(g.position);if(z!==39)return!1;for(g.kind="scalar",g.result="",g.position++,H=X=g.position;(z=g.input.charCodeAt(g.position))!==0;)if(z===39)if(ht(g,H,g.position,!0),z=g.input.charCodeAt(++g.position),z===39)H=g.position,g.position++,X=g.position;else return!0;else k(z)?(ht(g,H,X,!0),xt(g,Et(g,!1,E)),H=X=g.position):g.position===g.lineStart&&mt(g)?A(g,"unexpected end of the document within a single quoted scalar"):(g.position++,T(z)||(X=g.position));A(g,"unexpected end of the stream within a single quoted scalar")}p(qt,"readSingleQuotedScalar");function Gt(g,E){let H,X,z,it=g.input.charCodeAt(g.position);if(it!==34)return!1;for(g.kind="scalar",g.result="",g.position++,H=X=g.position;(it=g.input.charCodeAt(g.position))!==0;){if(it===34)return ht(g,H,g.position,!0),g.position++,!0;if(it===92){if(ht(g,H,g.position,!0),it=g.input.charCodeAt(++g.position),k(it))Et(g,!1,E);else if(it<256&&st[it])g.result+=q[it],g.position++;else if((z=L(it))>0){let w=z,D=0;for(;w>0;w--)it=g.input.charCodeAt(++g.position),(z=B(it))>=0?D=(D<<4)+z:A(g,"expected hexadecimal character");g.result+=N(D),g.position++}else A(g,"unknown escape sequence");H=X=g.position}else k(it)?(ht(g,H,X,!0),xt(g,Et(g,!1,E)),H=X=g.position):g.position===g.lineStart&&mt(g)?A(g,"unexpected end of the document within a double quoted scalar"):(g.position++,T(it)||(X=g.position))}A(g,"unexpected end of the stream within a double quoted scalar")}p(Gt,"readDoubleQuotedScalar");function M(g,E){let H=!0,X,z,it;const w=g.tag;let D;const J=g.anchor;let G,j,rt,Q;const dt=Object.create(null);let nt,yt,wt,Pt=g.input.charCodeAt(g.position);if(Pt===91)G=93,Q=!1,D=[];else if(Pt===123)G=125,Q=!0,D={};else return!1;for(g.anchor!==null&&et(g,g.anchor,D),Pt=g.input.charCodeAt(++g.position);Pt!==0;){if(Et(g,!0,E),Pt=g.input.charCodeAt(g.position),Pt===G)return g.position++,g.tag=w,g.anchor=J,g.kind=Q?"mapping":"sequence",g.result=D,!0;if(H?Pt===44&&A(g,"expected the node content, but found ','"):A(g,"missed comma between flow collection entries"),yt=nt=wt=null,j=rt=!1,Pt===63){const Vt=g.input.charCodeAt(g.position+1);S(Vt)&&(j=rt=!0,g.position++,Et(g,!0,E))}X=g.line,z=g.lineStart,it=g.position,_e(g,E,o,!1,!0),yt=g.tag,nt=g.result,Et(g,!0,E),Pt=g.input.charCodeAt(g.position),(rt||g.line===X)&&Pt===58&&(j=!0,Pt=g.input.charCodeAt(++g.position),Et(g,!0,E),_e(g,E,o,!1,!0),wt=g.result),Q?Dt(g,D,dt,yt,nt,wt,X,z,it):j?D.push(Dt(g,null,dt,yt,nt,wt,X,z,it)):D.push(nt),Et(g,!0,E),Pt=g.input.charCodeAt(g.position),Pt===44?(H=!0,Pt=g.input.charCodeAt(++g.position)):H=!1}A(g,"unexpected end of the stream within a flow collection")}p(M,"readFlowCollection");function Tt(g,E){let H,X=c,z=!1,it=!1,w=E,D=0,J=!1,G,j=g.input.charCodeAt(g.position);if(j===124)H=!1;else if(j===62)H=!0;else return!1;for(g.kind="scalar",g.result="";j!==0;)if(j=g.input.charCodeAt(++g.position),j===43||j===45)c===X?X=j===43?u:h:A(g,"repeat of a chomping mode identifier");else if((G=O(j))>=0)G===0?A(g,"bad explicit indentation width of a block scalar; it cannot be less than one"):it?A(g,"repeat of an indentation width identifier"):(w=E+G-1,it=!0);else break;if(T(j)){do j=g.input.charCodeAt(++g.position);while(T(j));if(j===35)do j=g.input.charCodeAt(++g.position);while(!k(j)&&j!==0)}for(;j!==0;){for(Ut(g),g.lineIndent=0,j=g.input.charCodeAt(g.position);(!it||g.lineIndent<w)&&j===32;)g.lineIndent++,j=g.input.charCodeAt(++g.position);if(!it&&g.lineIndent>w&&(w=g.lineIndent),k(j)){D++;continue}if(!it&&w===0&&A(g,"missing indentation for block scalar"),g.lineIndent<w){X===u?g.result+=e.repeat(`
280`,z?1+D:D):X===c&&z&&(g.result+=`
281`);break}H?T(j)?(J=!0,g.result+=e.repeat(`
282`,z?1+D:D)):J?(J=!1,g.result+=e.repeat(`
283`,D+1)):D===0?z&&(g.result+=" "):g.result+=e.repeat(`
284`,D):g.result+=e.repeat(`
285`,z?1+D:D),z=!0,it=!0,D=0;const rt=g.position;for(;!k(j)&&j!==0;)j=g.input.charCodeAt(++g.position);ht(g,rt,g.position,!1)}return!0}p(Tt,"readBlockScalar");function Wt(g,E){const H=g.tag,X=g.anchor,z=[];let it=!1;if(g.firstTabInLine!==-1)return!1;g.anchor!==null&&et(g,g.anchor,z);let w=g.input.charCodeAt(g.position);for(;w!==0&&(g.firstTabInLine!==-1&&(g.position=g.firstTabInLine,A(g,"tab characters must not be used in indentation")),w===45);){const D=g.input.charCodeAt(g.position+1);if(!S(D))break;if(it=!0,g.position++,Et(g,!0,-1)&&g.lineIndent<=E){z.push(null),w=g.input.charCodeAt(g.position);continue}const J=g.line;if(_e(g,E,n,!1,!0),z.push(g.result),Et(g,!0,-1),w=g.input.charCodeAt(g.position),(g.line===J||g.lineIndent>E)&&w!==0)A(g,"bad indentation of a sequence entry");else if(g.lineIndent<E)break}return it?(g.tag=H,g.anchor=X,g.kind="sequence",g.result=z,!0):!1}p(Wt,"readBlockSequence");function Te(g,E,H){let X,z,it,w;const D=g.tag,J=g.anchor,G={},j=Object.create(null);let rt=null,Q=null,dt=null,nt=!1,yt=!1;if(g.firstTabInLine!==-1)return!1;g.anchor!==null&&et(g,g.anchor,G);let wt=g.input.charCodeAt(g.position);for(;wt!==0;){!nt&&g.firstTabInLine!==-1&&(g.position=g.firstTabInLine,A(g,"tab characters must not be used in indentation"));const Pt=g.input.charCodeAt(g.position+1),Vt=g.line;if((wt===63||wt===58)&&S(Pt))wt===63?(nt&&(Dt(g,G,j,rt,Q,null,z,it,w),rt=Q=dt=null),yt=!0,nt=!0,X=!0):nt?(nt=!1,X=!0):A(g,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),g.position+=1,wt=Pt;else{if(z=g.line,it=g.lineStart,w=g.position,!_e(g,H,a,!1,!0))break;if(g.line===Vt){for(wt=g.input.charCodeAt(g.position);T(wt);)wt=g.input.charCodeAt(++g.position);if(wt===58)wt=g.input.charCodeAt(++g.position),S(wt)||A(g,"a whitespace character is expected after the key-value separator within a block mapping"),nt&&(Dt(g,G,j,rt,Q,null,z,it,w),rt=Q=dt=null),yt=!0,nt=!1,X=!1,rt=g.tag,Q=g.result;else if(yt)A(g,"can not read an implicit mapping pair; a colon is missed");else return g.tag=D,g.anchor=J,!0}else if(yt)A(g,"can not read a block mapping entry; a multiline key may not be an implicit key");else return g.tag=D,g.anchor=J,!0}if((g.line===Vt||g.lineIndent>E)&&(nt&&(z=g.line,it=g.lineStart,w=g.position),_e(g,E,l,!0,X)&&(nt?Q=g.result:dt=g.result),nt||(Dt(g,G,j,rt,Q,dt,z,it,w),rt=Q=dt=null),Et(g,!0,-1),wt=g.input.charCodeAt(g.position)),(g.line===Vt||g.lineIndent>E)&&wt!==0)A(g,"bad indentation of a mapping entry");else if(g.lineIndent<E)break}return nt&&Dt(g,G,j,rt,Q,null,z,it,w),yt&&(g.tag=D,g.anchor=J,g.kind="mapping",g.result=G),yt}p(Te,"readBlockMapping");function de(g){let E=!1,H=!1,X,z,it=g.input.charCodeAt(g.position);if(it!==33)return!1;g.tag!==null&&A(g,"duplication of a tag property"),it=g.input.charCodeAt(++g.position),it===60?(E=!0,it=g.input.charCodeAt(++g.position)):it===33?(H=!0,X="!!",it=g.input.charCodeAt(++g.position)):X="!";let w=g.position;if(E){do it=g.input.charCodeAt(++g.position);while(it!==0&&it!==62);g.position<g.length?(z=g.input.slice(w,g.position),it=g.input.charCodeAt(++g.position)):A(g,"unexpected end of the stream within a verbatim tag")}else{for(;it!==0&&!S(it);)it===33&&(H?A(g,"tag suffix cannot contain exclamation marks"):(X=g.input.slice(w-1,g.position+1),y.test(X)||A(g,"named tag handle cannot contain such characters"),H=!0,w=g.position+1)),it=g.input.charCodeAt(++g.position);z=g.input.slice(w,g.position),m.test(z)&&A(g,"tag suffix cannot contain flow indicator characters")}z&&!C.test(z)&&A(g,"tag name cannot contain such characters: "+z);try{z=decodeURIComponent(z)}catch{A(g,"tag name is malformed: "+z)}return E?g.tag=z:s.call(g.tagMap,X)?g.tag=g.tagMap[X]+z:X==="!"?g.tag="!"+z:X==="!!"?g.tag="tag:yaml.org,2002:"+z:A(g,'undeclared tag handle "'+X+'"'),!0}p(de,"readTagProperty");function Ne(g){let E=g.input.charCodeAt(g.position);if(E!==38)return!1;g.anchor!==null&&A(g,"duplication of an anchor property"),E=g.input.charCodeAt(++g.position);const H=g.position;for(;E!==0&&!S(E)&&!v(E);)E=g.input.charCodeAt(++g.position);return g.position===H&&A(g,"name of an anchor node must contain at least one character"),g.anchor=g.input.slice(H,g.position),!0}p(Ne,"readAnchorProperty");function mr(g){let E=g.input.charCodeAt(g.position);if(E!==42)return!1;E=g.input.charCodeAt(++g.position);const H=g.position;for(;E!==0&&!S(E)&&!v(E);)E=g.input.charCodeAt(++g.position);g.position===H&&A(g,"name of an alias node must contain at least one character");const X=g.input.slice(H,g.position);return s.call(g.anchorMap,X)||A(g,'unidentified alias "'+X+'"'),g.result=g.anchorMap[X],Et(g,!0,-1),!0}p(mr,"readAlias");function Se(g,E,H,X){const z=St(g);return Z(g),Lt(g,E),g.tag=null,g.anchor=null,g.kind=null,g.result=null,Te(g,H,X)&&g.kind==="mapping"?(lt(g),!0):(_t(g),Lt(g,z),!1)}p(Se,"tryReadBlockMappingFromProperty");function _e(g,E,H,X,z){let it,w,D=1,J=!1,G=!1,j=null,rt,Q,dt;g.depth>=g.maxDepth&&A(g,"nesting exceeded maxDepth ("+g.maxDepth+")"),g.depth+=1,g.listener!==null&&g.listener("open",g),g.tag=null,g.anchor=null,g.kind=null,g.result=null;const nt=it=w=l===H||n===H;if(X&&Et(g,!0,-1)&&(J=!0,g.lineIndent>E?D=1:g.lineIndent===E?D=0:g.lineIndent<E&&(D=-1)),D===1)for(;;){const yt=g.input.charCodeAt(g.position),wt=St(g);if(J&&(yt===33&&g.tag!==null||yt===38&&g.anchor!==null)||!de(g)&&!Ne(g))break;j===null&&(j=wt),Et(g,!0,-1)?(J=!0,w=nt,g.lineIndent>E?D=1:g.lineIndent===E?D=0:g.lineIndent<E&&(D=-1)):w=!1}if(w&&(w=J||z),D===1||l===H)if(o===H||a===H?Q=E:Q=E+1,dt=g.position-g.lineStart,D===1)if(w&&(Wt(g,dt)||Te(g,dt,Q))||M(g,Q))G=!0;else{const yt=g.input.charCodeAt(g.position);j!==null&&nt&&!w&&yt!==124&&yt!==62&&Se(g,j,j.position-j.lineStart,Q)||it&&Tt(g,Q)||qt(g,Q)||Gt(g,Q)?G=!0:mr(g)?(G=!0,(g.tag!==null||g.anchor!==null)&&A(g,"alias node should not have any properties")):$t(g,Q,o===H)&&(G=!0,g.tag===null&&(g.tag="?")),g.anchor!==null&&et(g,g.anchor,g.result)}else D===0&&(G=w&&Wt(g,dt));if(g.tag===null)g.anchor!==null&&et(g,g.anchor,g.result);else if(g.tag==="?"){g.result!==null&&g.kind!=="scalar"&&A(g,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+g.kind+'"');for(let yt=0,wt=g.implicitTypes.length;yt<wt;yt+=1)if(rt=g.implicitTypes[yt],rt.resolve(g.result)){g.result=rt.construct(g.result),g.tag=rt.tag,g.anchor!==null&&et(g,g.anchor,g.result);break}}else if(g.tag!=="!"){if(s.call(g.typeMap[g.kind||"fallback"],g.tag))rt=g.typeMap[g.kind||"fallback"][g.tag];else{rt=null;const yt=g.typeMap.multi[g.kind||"fallback"];for(let wt=0,Pt=yt.length;wt<Pt;wt+=1)if(g.tag.slice(0,yt[wt].tag.length)===yt[wt].tag){rt=yt[wt];break}}rt||A(g,"unknown tag !<"+g.tag+">"),g.result!==null&&rt.kind!==g.kind&&A(g,"unacceptable node kind for !<"+g.tag+'> tag; it should be "'+rt.kind+'", not "'+g.kind+'"'),rt.resolve(g.result,g.tag)?(g.result=rt.construct(g.result,g.tag),g.anchor!==null&&et(g,g.anchor,g.result)):A(g,"cannot resolve a node with !<"+g.tag+"> explicit tag")}return g.listener!==null&&g.listener("close",g),g.depth-=1,g.tag!==null||g.anchor!==null||G}p(_e,"composeNode");function yr(g){const E=g.position;let H=!1,X;for(g.version=null,g.checkLineBreaks=g.legacy,g.tagMap=Object.create(null),g.anchorMap=Object.create(null);(X=g.input.charCodeAt(g.position))!==0&&(Et(g,!0,-1),X=g.input.charCodeAt(g.position),!(g.lineIndent>0||X!==37));){H=!0,X=g.input.charCodeAt(++g.position);let z=g.position;for(;X!==0&&!S(X);)X=g.input.charCodeAt(++g.position);const it=g.input.slice(z,g.position),w=[];for(it.length<1&&A(g,"directive name must not be less than one character in length");X!==0;){for(;T(X);)X=g.input.charCodeAt(++g.position);if(X===35){do X=g.input.charCodeAt(++g.position);while(X!==0&&!k(X));break}if(k(X))break;for(z=g.position;X!==0&&!S(X);)X=g.input.charCodeAt(++g.position);w.push(g.input.slice(z,g.position))}X!==0&&Ut(g),s.call(Mt,it)?Mt[it](g,it,w):V(g,'unknown document directive "'+it+'"')}if(Et(g,!0,-1),g.lineIndent===0&&g.input.charCodeAt(g.position)===45&&g.input.charCodeAt(g.position+1)===45&&g.input.charCodeAt(g.position+2)===45?(g.position+=3,Et(g,!0,-1)):H&&A(g,"directives end mark is expected"),_e(g,g.lineIndent-1,l,!1,!0),Et(g,!0,-1),g.checkLineBreaks&&f.test(g.input.slice(E,g.position))&&V(g,"non-ASCII line breaks are interpreted as content"),g.documents.push(g.result),g.position===g.lineStart&&mt(g)){g.input.charCodeAt(g.position)===46&&(g.position+=3,Et(g,!0,-1));return}g.position<g.length-1&&A(g,"end of the stream or a document separator is expected")}p(yr,"readDocument");function xr(g,E){g=String(g),E=E||{},g.length!==0&&(g.charCodeAt(g.length-1)!==10&&g.charCodeAt(g.length-1)!==13&&(g+=`
286`),g.charCodeAt(0)===65279&&(g=g.slice(1)));const H=new W(g,E),X=g.indexOf("\0");for(X!==-1&&(H.position=X,A(H,"null byte is not allowed in input")),H.input+="\0";H.input.charCodeAt(H.position)===32;)H.lineIndent+=1,H.position+=1;for(;H.position<H.length-1;)yr(H);return H.documents}p(xr,"loadDocuments");function Cr(g,E,H){E!==null&&typeof E=="object"&&typeof H>"u"&&(H=E,E=null);const X=xr(g,H);if(typeof E!="function")return X;for(let z=0,it=X.length;z<it;z+=1)E(X[z])}p(Cr,"loadAll2");function ve(g,E){const H=xr(g,E);if(H.length!==0){if(H.length===1)return H[0];throw new t("expected a single document in the stream, but found more")}}return p(ve,"load2"),no.loadAll=Cr,no.load=ve,no}p(wy,"requireLoader");var bn={},Bd;function Ty(){if(Bd)return bn;Bd=1;const e=Yi(),t=Ui(),r=ga(),i=Object.prototype.toString,s=Object.prototype.hasOwnProperty,o=65279,a=9,n=10,l=13,c=32,h=33,u=34,d=35,f=37,m=38,y=39,C=42,x=44,k=45,T=58,S=61,v=62,B=63,L=64,O=91,U=93,N=96,Y=123,st=124,q=125,W={};W[0]="\\0",W[7]="\\a",W[8]="\\b",W[9]="\\t",W[10]="\\n",W[11]="\\v",W[12]="\\f",W[13]="\\r",W[27]="\\e",W[34]='\\"',W[92]="\\\\",W[133]="\\N",W[160]="\\_",W[8232]="\\L",W[8233]="\\P";const K=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],A=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function V(w,D){if(D===null)return{};const J={},G=Object.keys(D);for(let j=0,rt=G.length;j<rt;j+=1){let Q=G[j],dt=String(D[Q]);Q.slice(0,2)==="!!"&&(Q="tag:yaml.org,2002:"+Q.slice(2));const nt=w.compiledTypeMap.fallback[Q];nt&&s.call(nt.styleAliases,dt)&&(dt=nt.styleAliases[dt]),J[Q]=dt}return J}p(V,"compileStyleMap");function et(w){let D,J;const G=w.toString(16).toUpperCase();if(w<=255)D="x",J=2;else if(w<=65535)D="u",J=4;else if(w<=4294967295)D="U",J=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");
286return"\\"+D+e.repeat("0",J-G.length)+G}p(et,"encodeHex");const Z=1,lt=2;function _t(w){this.schema=w.schema||r,this.indent=Math.max(1,w.indent||2),this.noArrayIndent=w.noArrayIndent||!1,this.skipInvalid=w.skipInvalid||!1,this.flowLevel=e.isNothing(w.flowLevel)?-1:w.flowLevel,this.styleMap=V(this.schema,w.styles||null),this.sortKeys=w.sortKeys||!1,this.lineWidth=w.lineWidth||80,this.noRefs=w.noRefs||!1,this.noCompatMode=w.noCompatMode||!1,this.condenseFlow=w.condenseFlow||!1,this.quotingType=w.quotingType==='"'?lt:Z,this.forceQuotes=w.forceQuotes||!1,this.replacer=typeof w.replacer=="function"?w.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}p(_t,"State");function St(w,D){const J=e.repeat(" ",D);let G=0,j="";const rt=w.length;for(;G<rt;){let Q;const dt=w.indexOf(`
287`,G);dt===-1?(Q=w.slice(G),G=rt):(Q=w.slice(G,dt+1),G=dt+1),Q.length&&Q!==`
288`&&(j+=J),j+=Q}return j}p(St,"indentString");function Lt(w,D){return`
289`+e.repeat(" ",w.indent*D)}p(Lt,"generateNextLine");function Mt(w,D){for(let J=0,G=w.implicitTypes.length;J<G;J+=1)if(w.implicitTypes[J].resolve(D))return!0;return!1}p(Mt,"testImplicitResolving");function ht(w){return w===c||w===a}p(ht,"isWhitespace");function Rt(w){return w>=32&&w<=126||w>=161&&w<=55295&&w!==8232&&w!==8233||w>=57344&&w<=65533&&w!==o||w>=65536&&w<=1114111}p(Rt,"isPrintable");function Dt(w){return Rt(w)&&w!==o&&w!==l&&w!==n}p(Dt,"isNsCharOrWhitespace");function Ut(w,D,J){const G=Dt(w),j=G&&!ht(w);return(J?G:G&&w!==x&&w!==O&&w!==U&&w!==Y&&w!==q)&&w!==d&&!(D===T&&!j)||Dt(D)&&!ht(D)&&w===d||D===T&&j}p(Ut,"isPlainSafe");function Et(w){return Rt(w)&&w!==o&&!ht(w)&&w!==k&&w!==B&&w!==T&&w!==x&&w!==O&&w!==U&&w!==Y&&w!==q&&w!==d&&w!==m&&w!==C&&w!==h&&w!==st&&w!==S&&w!==v&&w!==y&&w!==u&&w!==f&&w!==L&&w!==N}p(Et,"isPlainSafeFirst");function mt(w){return!ht(w)&&w!==T}p(mt,"isPlainSafeLast");function xt(w,D){const J=w.charCodeAt(D);let G;return J>=55296&&J<=56319&&D+1<w.length&&(G=w.charCodeAt(D+1),G>=56320&&G<=57343)?(J-55296)*1024+G-56320+65536:J}p(xt,"codePointAt");function $t(w){return/^\n* /.test(w)}p($t,"needIndentIndicator");const qt=1,Gt=2,M=3,Tt=4,Wt=5;function Te(w,D,J,G,j,rt,Q,dt){let nt,yt=0,wt=null,Pt=!1,Vt=!1;const Gi=G!==-1;let Ar=-1,Je=Et(xt(w,0))&&mt(xt(w,w.length-1));if(D||Q)for(nt=0;nt<w.length;yt>=65536?nt+=2:nt++){if(yt=xt(w,nt),!Rt(yt))return Wt;Je=Je&&Ut(yt,wt,dt),wt=yt}else{for(nt=0;nt<w.length;yt>=65536?nt+=2:nt++){if(yt=xt(w,nt),yt===n)Pt=!0,Gi&&(Vt=Vt||nt-Ar-1>G&&w[Ar+1]!==" ",Ar=nt);else if(!Rt(yt))return Wt;Je=Je&&Ut(yt,wt,dt),wt=yt}Vt=Vt||Gi&&nt-Ar-1>G&&w[Ar+1]!==" "}return!Pt&&!Vt?Je&&!Q&&!j(w)?qt:rt===lt?Wt:Gt:J>9&&$t(w)?Wt:Q?rt===lt?Wt:Gt:Vt?Tt:M}p(Te,"chooseScalarStyle");function de(w,D,J,G,j){w.dump=function(){if(D.length===0)return w.quotingType===lt?'""':"''";if(!w.noCompatMode&&(K.indexOf(D)!==-1||A.test(D)))return w.quotingType===lt?'"'+D+'"':"'"+D+"'";const rt=w.indent*Math.max(1,J),Q=w.lineWidth===-1?-1:Math.max(Math.min(w.lineWidth,40),w.lineWidth-rt),dt=G||w.flowLevel>-1&&J>=w.flowLevel;function nt(yt){return Mt(w,yt)}switch(p(nt,"testAmbiguity"),Te(D,dt,w.indent,Q,nt,w.quotingType,w.forceQuotes&&!G,j)){case qt:return D;case Gt:return"'"+D.replace(/'/g,"''")+"'";case M:return"|"+Ne(D,w.indent)+mr(St(D,rt));case Tt:return">"+Ne(D,w.indent)+mr(St(Se(D,Q),rt));case Wt:return'"'+yr(D)+'"';default:throw new t("impossible error: invalid scalar style")}}()}p(de,"writeScalar");function Ne(w,D){const J=$t(w)?String(D):"",G=w[w.length-1]===`
290`,rt=G&&(w[w.length-2]===`
291`||w===`
292`)?"+":G?"":"-";return J+rt+`
293`}p(Ne,"blockHeader");function mr(w){return w[w.length-1]===`
294`?w.slice(0,-1):w}p(mr,"dropEndingNewline");function Se(w,D){const J=/(\n+)([^\n]*)/g;let G=function(){let dt=w.indexOf(`
295`);return dt=dt!==-1?dt:w.length,J.lastIndex=dt,_e(w.slice(0,dt),D)}(),j=w[0]===`
296`||w[0]===" ",rt,Q;for(;Q=J.exec(w);){const dt=Q[1],nt=Q[2];rt=nt[0]===" ",G+=dt+(!j&&!rt&&nt!==""?`
297`:"")+_e(nt,D),j=rt}return G}p(Se,"foldString");function _e(w,D){if(w===""||w[0]===" ")return w;const J=/ [^ ]/g;let G,j=0,rt,Q=0,dt=0,nt="";for(;G=J.exec(w);)dt=G.index,dt-j>D&&(rt=Q>j?Q:dt,nt+=`
298`+w.slice(j,rt),j=rt+1),Q=dt;return nt+=`
299`,w.length-j>D&&Q>
299j?nt+=w.slice(j,Q)+`
300`+w.slice(Q+1):nt+=w.slice(j),nt.slice(1)}p(_e,"foldLine");function yr(w){let D="",J=0;for(let G=0;G<w.length;J>=65536?G+=2:G++){J=xt(w,G);const j=W[J];!j&&Rt(J)?(D+=w[G],J>=65536&&(D+=w[G+1])):D+=j||et(J)}return D}p(yr,"escapeString");function xr(w,D,J){let G="";const j=w.tag;for(let rt=0,Q=J.length;rt<Q;rt+=1){let dt=J[rt];w.replacer&&(dt=w.replacer.call(J,String(rt),dt)),(H(w,D,dt,!1,!1)||typeof dt>"u"&&H(w,D,null,!1,!1))&&(G!==""&&(G+=","+(w.condenseFlow?"":" ")),G+=w.dump)}w.tag=j,w.dump="["+G+"]"}p(xr,"writeFlowSequence");function Cr(w,D,J,G){let j="";const rt=w.tag;for(let Q=0,dt=J.length;Q<dt;Q+=1){let nt=J[Q];w.replacer&&(nt=w.replacer.call(J,String(Q),nt)),(H(w,D+1,nt,!0,!0,!1,!0)||typeof nt>"u"&&H(w,D+1,null,!0,!0,!1,!0))&&((!G||j!=="")&&(j+=Lt(w,D)),w.dump&&n===w.dump.charCodeAt(0)?j+="-":j+="- ",j+=w.dump)}w.tag=rt,w.dump=j||"[]"}p(Cr,"writeBlockSequence");function ve(w,D,J){let G="";const j=w.tag,rt=Object.keys(J);for(let Q=0,dt=rt.length;Q<dt;Q+=1){let nt="";G!==""&&(nt+=", "),w.condenseFlow&&(nt+='"');const yt=rt[Q];let wt=J[yt];w.replacer&&(wt=w.replacer.call(J,yt,wt)),H(w,D,yt,!1,!1)&&(w.dump.length>1024&&(nt+="? "),nt+=w.dump+(w.condenseFlow?'"':"")+":"+(w.condenseFlow?"":" "),H(w,D,wt,!1,!1)&&(nt+=w.dump,G+=nt))}w.tag=j,w.dump="{"+G+"}"}p(ve,"writeFlowMapping");function g(w,D,J,G){let j="";const rt=w.tag,Q=Object.keys(J);if(w.sortKeys===!0)Q.sort();else if(typeof w.sortKeys=="function")Q.sort(w.sortKeys);else if(w.sortKeys)throw new t("sortKeys must be a boolean or a function");for(let dt=0,nt=Q.length;dt<nt;dt+=1){let yt="";(!G||j!=="")&&(yt+=Lt(w,D));const wt=Q[dt];let Pt=J[wt];if(w.replacer&&(Pt=w.replacer.call(J,wt,Pt)),!H(w,D+1,wt,!0,!0,!0))continue;const Vt=w.tag!==null&&w.tag!=="?"||w.dump&&w.dump.length>1024;Vt&&(w.dump&&n===w.dump.charCodeAt(0)?yt+="?":yt+="? "),yt+=w.dump,Vt&&(yt+=Lt(w,D)),H(w,D+1,Pt,!0,Vt)&&(w.dump&&n===w.dump.charCodeAt(0)?yt+=":":yt+=": ",yt+=w.dump,j+=yt)}w.tag=rt,w.dump=j||"{}"}p(g,"writeBlockMapping");function E(w,D,J){const G=J?w.explicitTypes:w.implicitTypes;for(let j=0,rt=G.length;j<rt;j+=1){const Q=G[j];if((Q.instanceOf||Q.predicate)&&(!Q.instanceOf||typeof D=="object"&&D instanceof Q.instanceOf)&&(!Q.predicate||Q.predicate(D))){if(J?Q.multi&&Q.representName?w.tag=Q.representName(D):w.tag=Q.tag:w.tag="?",Q.represent){const dt=w.styleMap[Q.tag]||Q.defaultStyle;let nt;if(i.call(Q.represent)==="[object Function]")nt=Q.represent(D,dt);else if(s.call(Q.represent,dt))nt=Q.represent[dt](D,dt);else throw new t("!<"+Q.tag+'> tag resolver accepts not "'+dt+'" style');w.dump=nt}return!0}}return!1}p(E,"detectType");function H(w,D,J,G,j,rt,Q){w.tag=null,w.dump=J,E(w,J,!1)||E(w,J,!0);const dt=i.call(w.dump),nt=G;G&&(G=w.flowLevel<0||w.flowLevel>D);const yt=dt==="[object Object]"||dt==="[object Array]";let wt,Pt;if(yt&&(wt=w.duplicates.indexOf(J),Pt=wt!==-1),(w.tag!==null&&w.tag!=="?"||Pt||w.indent!==2&&D>0)&&(j=!1),Pt&&w.usedDuplicates[wt])w.dump="*ref_"+wt;else{if(yt&&Pt&&!w.usedDuplicates[wt]&&(w.usedDuplicates[wt]=!0),dt==="[object Object]")G&&Object.keys(w.dump).length!==0?(g(w,D,w.dump,j),Pt&&(w.dump="&ref_"+wt+w.dump)):(ve(w,D,w.dump),Pt&&(w.dump="&ref_"+wt+" "+w.dump));else if(dt==="[object Array]")G&&w.dump.length!==0?(w.noArrayIndent&&!Q&&D>0?Cr(w,D-1,w.dump,j):Cr(w,D,w.dump,j),Pt&&(w.dump="&ref_"+wt+w.dump)):(xr(w,D,w.dump),Pt&&(w.dump="&ref_"+wt+" "+w.dump));else if(dt==="[object String]")w.tag!=="?"&&de(w,w.dump,D,rt,nt);else{if(dt==="[object Undefined]")return!1;if(w.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+dt)}if(w.tag!==null&&w.tag!=="?"){let Vt=encodeURI(w.tag[0]==="!"?w.tag.slice(1):w.tag).replace(/!/g,"%21");w.tag[0]==="!"?Vt="!"+Vt:Vt.slice(0,18)==="tag:yaml.org,2002:"?Vt="!!"+Vt.slice(18):Vt="!<"+Vt+">",w.dump=Vt+" "+w.dump}}return!0}p(H,"writeNode");function X(w,D){const J=[],G=[];z(w,J,G);const j=G.length;for(let rt=0;rt<j;rt+=1)D.duplicates.push(J[G[rt]]);D.usedDuplicates=new Array(j)}p(X,"getDuplicateReferences");function z(w,D,J){if(w!==null&&typeof w=="object"){const G=D.indexOf(w);if(G!==-1)J.indexOf(G)===-1&&J.push(G);else if(D.push(w),Array.isArray(w))for(let j=0,rt=w.length;j<rt;j+=1)z(w[j],D,J);else{const j=Object.keys(w);for(let rt=0,Q=j.length;rt<Q;rt+=1)z(w[j[rt]],D,J)}}}p(z,"inspectNode");function it(w,D){D=D||{};const J=new _t(D);
300J.noRefs||X(w,J);let G=w;return J.replacer&&(G=J.replacer.call({"":G},"",G)),H(J,0,G,!0,!0)?J.dump+`
301`:""}return p(it,"dump2"),bn.dump=it,bn}p(Ty,"requireDumper");var Ld;function Sy(){if(Ld)return fe;Ld=1;const e=wy(),t=Ty();function r(i,s){return function(){throw new Error("Function yaml."+i+" is removed in js-yaml 4. Use yaml."+s+" instead, which is now safe by default.")}}return p(r,"renamed"),fe.Type=be(),fe.Schema=Ch(),fe.FAILSAFE_SCHEMA=Th(),fe.JSON_SCHEMA=Lh(),fe.CORE_SCHEMA=Fh(),fe.DEFAULT_SCHEMA=ga(),fe.load=e.load,fe.loadAll=e.loadAll,fe.dump=t.dump,fe.YAMLException=Ui(),fe.types={binary:Mh(),float:Bh(),map:wh(),null:Sh(),pairs:Oh(),set:Dh(),timestamp:Ah(),bool:_h(),int:vh(),merge:Eh(),omap:$h(),seq:kh(),str:bh()},fe.safeLoad=r("safeLoad","load"),fe.safeLoadAll=r("safeLoadAll","loadAll"),fe.safeDump=r("safeDump","dump"),fe}p(Sy,"requireJsYaml");var bA=Sy(),kA=by(bA),{Type:u3,Schema:d3,FAILSAFE_SCHEMA:f3,JSON_SCHEMA:wA,CORE_SCHEMA:p3,DEFAULT_SCHEMA:g3,load:TA,loadAll:m3,dump:y3,YAMLException:x3,types:C3,safeLoad:b3,safeLoadAll:k3,safeDump:w3}=kA,SA={common:Ms,getConfig:Jt,insertCluster:zm,insertEdge:Um,insertEdgeLabel:uh,insertMarkers:jm,insertNode:ch,interpolateToCurve:Wl,labelHelper:Ct,log:I,positionEdgeLabel:cL},Fs={},_y=p(e=>{for(const t of e)Fs[t.name]=t},"registerLayoutLoaders"),_A=p(()=>{_y([{name:"dagre",loader:p(async()=>await It(()=>import("./dagre-GXQ25YYZ-DlW8e028.js"),__vite__mapDeps([125,126,1,2,124])),"loader")},{name:"swimlane",loader:p(async()=>await It(()=>import("./swimlanes-42K2YHIH-CPkQrYQe.js"),__vite__mapDeps([127,1,2,124])),"loader")},{name:"cose-bilkent",loader:p(async()=>await It(()=>import("./cose-bilkent-JH36ORCC-DOxx64t9.js"),__vite__mapDeps([128,129,1,2,124])),"loader")}])},"registerDefaultLayoutLoaders");_A();var T3=p(async(e,t)=>{if(!(e.layoutAlgorithm in Fs))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const h of e.nodes){const u=h.domId||h.id;h.domId=`${e.diagramId}-${u}`}const r=Fs[e.layoutAlgorithm],i=await r.loader(),{theme:s,themeVariables:o}=e.config,{useGradient:a,gradientStart:n,gradientStop:l}=o,c=t.attr("id");if(t.append("defs").append("filter").attr("id",`${c}-drop-shadow`).attr("height","130%").attr("width","130%").append("feDropShadow").attr("dx","4").attr("dy","4").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${s!=null&&s.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${c}-drop-shadow-small`).attr("height","150%").attr("width","150%").append("feDropShadow").attr("dx","2").attr("dy","2").attr("stdDeviation",0).attr("flood-opacity","0.06").attr("flood-color",`${s!=null&&s.includes("dark")?"#FFFFFF":"#000000"}`),a){const h=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");h.append("svg:stop").attr("offset","0%").attr("stop-color",n).attr("stop-opacity",1),h.append("svg:stop").attr("offset","100%").attr("stop-color",l).attr("stop-opacity",1)}return i.render(e,t,SA,{algorithm:r.algorithm})},"render"),S3=p((e="",{fallback:t="dagre"}={})=>{if(e in Fs)return e;if(t in Fs)return I.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`),t;throw new Error(`Both layout algorithms ${e} and ${t} are not registered.`)},"getRegisteredLayoutAlgorithm"),vy="c4",vA=p(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),BA=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./c4Diagram-7LVT6UL2-BGaFmujM.js");return{diagram:t}},__vite__mapDeps([130,131,1,2,124]));return{id:vy,diagram:e}},"loader"),LA={id:vy,detector:vA,loader:BA},FA=LA,By="flowchart",AA=p((e,t)=>{var r,i;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-wrapper"||((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"?!1:/^\s*graph/.test(e)},"detector"),EA=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./flowDiagram-HODETNUW-DGGiR99w.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([132,133,134,135,131,136,1,2]));return{id:By,diagram:e}},"loader"),MA={id:By,detector:AA,loader:EA},$A=MA,Ly="flowchart-v2",OA=p((e,t)=>{var r,i,s;return((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="dagre-d3"?!1:(((i=t==null?void 0:t.flowchart)==null?void 0:i.defaultRenderer)==="elk"&&(t.layout="elk"),/^\s*graph/.test(e)&&((s=t==null?void 0:t.flowchart)==null?void 0:s.defaultRenderer)==="dagre-wrapper"?!0:/^\s*flowchart/.test(e))},"detector"),DA=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./flowDiagram-HODETNUW-DGGiR99w.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([132,133,134,135,131,136,1,2]));return{id:Ly,diagram:e}},"loader"),IA={id:Ly,detector:OA,loader:DA},RA=IA,Fy="swimlane",PA=p(e=>/^\s*swimlane-beta\b/.test(e),"detector"),NA=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./swimlanesDiagram-VR7AAH4N-BEpXJ9X8.js");return{diagram:t}},__vite__mapDeps([137,132,133,134,135,131,136,1,2,124]));return{id:Fy,diagram:e}},"loader"),qA={id:Fy,detector:PA,loader:NA},WA=qA,Ay="er",zA=p(e=>/^\s*erDiagram/.test(e),"detector"),HA=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./erDiagram-RLTQ6QDP-Dj7FTak8.js");return{diagram:t}},__vite__mapDeps([138,134,135,136,1,2,124]));return{id:Ay,diagram:e}},"loader"),YA={id:Ay,detector:zA,loader:HA},UA=YA,Ey="gitGraph",GA=p(e=>/^\s*gitGraph/.test(e),"detector"),XA=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./gitGraphDiagram-WWUBYQGX-A1xPRix4.js");return{diagram:t}},__vite__mapDeps([139,140,141,142,1,2,124]));return{id:Ey,diagram:e}},"loader"),jA={id:Ey,detector:GA,loader:XA},VA=jA,My="gantt",KA=p(e=>/^\s*gantt/.test(e),"detector"),ZA=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./ganttDiagram-EL5Y4UJY-CoeD2RnC.js");return{diagram:t}},__vite__mapDeps([143,1,2,21,20,144,145,146,124,147,148]));return{id:My,diagram:e}},"loader"),QA={id:My,detector:KA,loader:ZA},JA=QA,$y="info",tE=p(e=>/^\s*info/.test(e),"detector"),eE=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./infoDiagram-27XIBGKW-BNbJnPvJ.js");return{diagram:t}},__vite__mapDeps([149,142,1,2,124]));return{id:$y,diagram:e}},"loader"),rE={id:$y,detector:tE,loader:eE},Oy="pie",iE=p(e=>/^\s*pie/.test(e),"detector"),sE=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./pieDiagram-E7YTZNPT-DEqY0DIC.js");return{diagram:t}},__vite__mapDeps([150,141,142,1,2,151,124,152,147]));return{id:Oy,diagram:e}},"loader"),oE={id:Oy,detector:iE,loader:sE}
301,Dy="quadrantChart",aE=p(e=>/^\s*quadrantChart/.test(e),"detector"),nE=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./quadrantDiagram-AXDQQJYC-BQ8wCmHm.js");return{diagram:t}},__vite__mapDeps([153,146,124,147,148,1,2]));return{id:Dy,diagram:e}},"loader"),lE={id:Dy,detector:aE,loader:nE},hE=lE,Iy="xychart",cE=p(e=>/^\s*xychart(-beta)?/.test(e),"detector"),uE=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./xychartDiagram-S5SC5T6Z-Dc7WWu09.js");return{diagram:t}},__vite__mapDeps([154,155,147,152,146,124,148,1,2]));return{id:Iy,diagram:e}},"loader"),dE={id:Iy,detector:cE,loader:uE},fE=dE,Ry="requirement",pE=p(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),gE=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./requirementDiagram-BXWQKSXE-DKihlbfc.js");return{diagram:t}},__vite__mapDeps([156,134,135,1,2,124]));return{id:Ry,diagram:e}},"loader"),mE={id:Ry,detector:pE,loader:gE},yE=mE,Py="sequence",xE=p(e=>/^\s*sequenceDiagram/.test(e),"detector"),CE=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./sequenceDiagram-WJ2MYXX4-xzSHi5BN.js");return{diagram:t}},__vite__mapDeps([157,140,131,1,2,124]));return{id:Py,diagram:e}},"loader"),bE={id:Py,detector:xE,loader:CE},kE=bE,Ny="class",wE=p((e,t)=>{var r;return((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*classDiagram/.test(e)},"detector"),TE=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./classDiagram-ZZMXUADV-Bj_UdB2Q.js");return{diagram:t}},__vite__mapDeps([158,159,133,134,135,131,1,2,124]));return{id:Ny,diagram:e}},"loader"),SE={id:Ny,detector:wE,loader:TE},_E=SE,qy="classDiagram",vE=p((e,t)=>{var r;return/^\s*classDiagram/.test(e)&&((r=t==null?void 0:t.class)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(e)},"detector"),BE=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./classDiagram-v2-VYDZK3BY-Bj_UdB2Q.js");return{diagram:t}},__vite__mapDeps([160,159,133,134,135,131,1,2,124]));return{id:qy,diagram:e}},"loader"),LE={id:qy,detector:vE,loader:BE},FE=LE,Wy="state",AE=p((e,t)=>{var r;return((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(e)},"detector"),EE=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./stateDiagram-D77RDMKH-DXo29ndy.js");return{diagram:t}},__vite__mapDeps([161,162,134,135,131,126,1,2,124]));return{id:Wy,diagram:e}},"loader"),ME={id:Wy,detector:AE,loader:EE},$E=ME,zy="stateDiagram",OE=p((e,t)=>{var r;return!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&((r=t==null?void 0:t.state)==null?void 0:r.defaultRenderer)==="dagre-wrapper")},"detector"),DE=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./stateDiagram-v2-MP3YSRHH-BDMbe9kd.js");return{diagram:t}},__vite__mapDeps([163,162,134,135,131,1,2,124]));return{id:zy,diagram:e}},"loader"),IE={id:zy,detector:OE,loader:DE},RE=IE,Hy="journey",PE=p(e=>/^\s*journey/.test(e),"detector"),NE=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./journeyDiagram-3NMN7TZE-CaY27_fa.js");return{diagram:t}},__vite__mapDeps([164,133,131,1,2,151,124]));return{id:Hy,diagram:e}},"loader"),qE={id:Hy,detector:PE,loader:NE},WE=qE,zE=p((e,t,r)=>{I.debug(`rendering svg for syntax error
302`);const i=NS(t),s=i.append("g");i.attr("viewBox","0 0 2412 512"),Cf(i,100,512,!0),s.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),s.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),s.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),s.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.
302164-16,16v32c0,8.836 7.156,16 16,16z"),s.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),s.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),s.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),s.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},"draw"),Yy={draw:zE},HE=Yy,YE={db:{},renderer:Yy,parser:{parse:p(()=>{},"parse")}},UE=YE,Uy="flowchart-elk",GE=p((e,t={})=>{var r;return/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&((r=t==null?void 0:t.flowchart)==null?void 0:r.defaultRenderer)==="elk"?(t.layout="elk",!0):!1},"detector"),XE=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./flowDiagram-HODETNUW-DGGiR99w.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([132,133,134,135,131,136,1,2]));return{id:Uy,diagram:e}},"loader"),jE={id:Uy,detector:GE,loader:XE},VE=jE,Gy="timeline",KE=p(e=>/^\s*timeline/.test(e),"detector"),ZE=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./timeline-definition-24CTP7MA-Cu8mmSTL.js");return{diagram:t}},__vite__mapDeps([165,151,124,1,2]));return{id:Gy,diagram:e}},"loader"),QE={id:Gy,detector:KE,loader:ZE},JE=QE,Xy="mindmap",tM=p(e=>/^\s*mindmap/.test(e),"detector"),eM=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./mindmap-definition-YA3MSWOX-B4vVfgNO.js");return{diagram:t}},__vite__mapDeps([166,134,135,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,124]));return{id:Xy,diagram:e}},"loader"),rM={id:Xy,detector:tM,loader:eM},iM=rM,jy="kanban",sM=p(e=>/^\s*kanban/.test(e),"detector"),oM=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./kanban-definition-UXKFOSKX-CKUxBq21.js");return{diagram:t}},__vite__mapDeps([167,133,1,2,124]));return{id:jy,diagram:e}},"loader"),aM={id:jy,detector:sM,loader:oM},nM=aM,Vy="sankey",lM=p(e=>/^\s*sankey(-beta)?/.test(e),"detector"),hM=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./sankeyDiagram-P5KCCOFB-at4SknDJ.js");return{diagram:t}},__vite__mapDeps([168,1,2,152,147,124]));return{id:Vy,diagram:e}},"loader"),cM={id:Vy,detector:lM,loader:hM},uM=cM,Ky="packet",dM=p(e=>/^\s*packet(-beta)?/.test(e),"detector"),fM=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./diagram-Z3DM3KII-BZI5OKRM.js");return{diagram:t}},__vite__mapDeps([169,141,142,1,2,124]));return{id:Ky,diagram:e}},"loader"),pM={id:Ky,detector:dM,loader:fM},Zy="radar",gM=p(e=>/^\s*radar-beta/.test(e),"detector"),mM=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./diagram-UQ7AKVKN-Bkmt_g8K.js");return{diagram:t}},__vite__mapDeps([170,141,142,1,2,124]));return{id:Zy,diagram:e}},"loader"),yM={id:Zy,detector:gM,loader:mM},Qy="block",xM=p(e=>/^\s*block(-beta)?/.test(e),"detector"),CM=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./blockDiagram-I7D4REHJ-CnIoD11v.js");return{diagram:t}},__vite__mapDeps([171,133,136,1,2,124]));return{id:Qy,diagram:e}},"loader"),bM={id:Qy,detector:xM,loader:CM},kM=bM,Jy="treeView",wM=p(e=>/^\s*treeView-beta/.test(e),"detector"),TM=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./diagram-S7CK7UJ4-Djja2E2G.js");return{diagram:t}},__vite__mapDeps([172,140,141,142,1,2,124]));return{id:Jy,diagram:e}},"loader"),SM={id:Jy,detector:wM,loader:TM},_M=SM,t0="architecture",vM=p(e=>/^\s*architecture/.test(e),"detector"),BM=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./architectureDiagram-5GKGNRK7-DxnkvGAg.js");return{diagram:t}},__vite__mapDeps([173,141,142,1,2,129,124]));return{id:t0,diagram:e}},"loader"),LM={id:t0,detector:vM,loader:BM},FM=LM,e0="eventmodeling",AM=p(e=>/^\s*eventmodeling/.test(e),"detector"),EM=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./diagram-VSXAHHWV-DyF0XhXn.js");return{diagram:t}},__vite__mapDeps([174,141,142,1,2,124]));return{id:e0,diagram:e}},"loader"),MM={id:e0,detector:AM,loader:EM},$M=MM,r0="ishikawa",OM=p(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),DM=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./ishikawaDiagram-5VMMS53U-F683Dhd3.js");return{diagram:t}},__vite__mapDeps([175,1,2,124]));return{id:r0,diagram:e}},"loader"),IM={id:r0,detector:OM,loader:DM},i0="venn",RM=p(e=>/^\s*venn-beta/.test(e),"detector"),PM=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./vennDiagram-4TSXK5OY-RDoms4Iv.js");return{diagram:t}},__vite__mapDeps([176,1,2,124]));return{id:i0,diagram:e}},"loader"),NM={id:i0,detector:RM,loader:PM},qM=NM,s0="treemap",WM=p(e=>/^\s*treemap/.test(e),"detector"),zM=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./diagram-VX7I27RA-CBAxlqhE.js");return{diagram:t}},__vite__mapDeps([177,141,135,142,1,2,148,152,147,124]));return{id:s0,diagram:e}},"loader"),HM={id:s0,detector:WM,loader:zM},o0="wardley",YM=p(e=>/^\s*wardley-beta/i.test(e),"detector"),UM=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./wardleyDiagram-VM6X3IG4-pUuxu4WO.js");return{diagram:t}},__vite__mapDeps([178,141,142,1,2,124]));return{id:o0,diagram:e}},"loader"),GM={id:o0,detector:YM,loader:UM},XM=GM,a0="cynefin",jM=p(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),VM=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}
302=await import("./cynefinDiagram-5FMLGOSQ-DQno89kM.js");return{diagram:t}},__vite__mapDeps([179,141,142,1,2,124]));return{id:a0,diagram:e}},"loader"),KM={id:a0,detector:jM,loader:VM},n0="railroad",ZM=p(e=>/^\s*railroad-beta/i.test(e),"detector"),QM=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./railroadDiagram-O6MQD6OU-D5RKxaa0.js");return{diagram:t}},__vite__mapDeps([180,181,141,142,1,2,124]));return{id:n0,diagram:e}},"loader"),JM={id:n0,detector:ZM,loader:QM},l0="railroadEbnf",t5=p(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),e5=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./ebnfDiagram-PWID7BFC-DMk8KOd7.js");return{diagram:t}},__vite__mapDeps([182,181,141,142,1,2,124]));return{id:l0,diagram:e}},"loader"),r5={id:l0,detector:t5,loader:e5},h0="railroadAbnf",i5=p(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),s5=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./abnfDiagram-VCTEODGH-Dr1OEC4i.js");return{diagram:t}},__vite__mapDeps([183,181,141,142,1,2,124]));return{id:h0,diagram:e}},"loader"),o5={id:h0,detector:i5,loader:s5},c0="railroadPeg",a5=p(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),n5=p(async()=>{const{diagram:e}=await It(async()=>{const{diagram:t}=await import("./pegDiagram-XKGWAZYB-CzOhmT2x.js");return{diagram:t}},__vite__mapDeps([184,181,141,142,1,2,124]));return{id:c0,diagram:e}},"loader"),l5={id:c0,detector:a5,loader:n5},Fd=!1,ma=p(()=>{Fd||(Fd=!0,Eo("error",UE,e=>e.toLowerCase().trim()==="error"),Eo("---",{db:{clear:p(()=>{},"clear")},styles:{},renderer:{draw:p(()=>{},"draw")},parser:{parse:p(()=>{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:p(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Fn(VE,iM,FM),Fn(FA,nM,FE,_E,UA,JA,rE,oE,yE,kE,WA,RA,$A,JE,VA,RE,$E,WE,hE,uM,pM,fE,kM,$M,_M,yM,IM,HM,JM,r5,o5,l5,qM,XM,KM))},"addDiagrams"),h5=p(async()=>{I.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Jr).map(async([r,{detector:i,loader:s}])=>{if(s)try{$n(r)}catch{try{const{diagram:o,id:a}=await s();Eo(a,o,i)}catch(o){throw I.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Jr[r],o}}}))).filter(r=>r.status==="rejected");if(t.length>0){I.error(`Failed to load ${t.length} external diagrams`);for(const r of t)I.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),c5="graphics-document document";function u0(e,t){e.attr("role",c5),t!==""&&e.attr("aria-roledescription",t)}p(u0,"setA11yDiagramInfo");function d0(e,t,r,i){if(e.insert!==void 0){if(r){const s=`chart-desc-${i}`;e.attr("aria-describedby",s),e.insert("desc",":first-child").attr("id",s).text(r)}if(t){const s=`chart-title-${i}`;e.attr("aria-labelledby",s),e.insert("title",":first-child").attr("id",s).text(t)}}}p(d0,"addSVGa11yTitleDescription");var Zr,hl=(Zr=class{constructor(t,r,i,s,o){this.type=t,this.text=r,this.db=i,this.parser=s,this.renderer=o}static async fromText(t,r={}){var c,h;const i=Jt(),s=xl(t,i);t=hv(t)+`
303`;try{$n(s)}catch{const u=zC(s);if(!u)throw new ff(`Diagram ${s} not found.`);const{id:d,diagram:f}=await u();Eo(d,f)}const{db:o,parser:a,renderer:n,init:l}=$n(s);return a.parser&&(a.parser.yy=o),(c=o.clear)==null||c.call(o),l==null||l(i),r.title&&((h=o.setDiagramTitle)==null||h.call(o,r.title)),await a.parse(t),new Zr(s,t,o,a,n)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},p(Zr,"Diagram"),Zr),Ad=[],u5=p(()=>{Ad.forEach(e=>{e()}),Ad=[]},"attachFunctions"),d5=p(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function f0(e){const t=e.match(df);if(!t)return{text:e,metadata:{}};const r=t[1],i=r?t[2].split(`
304`).map(a=>a.startsWith(r)?a.slice(r.length):a).join(`
305`):t[2];let s=TA(i,{schema:wA})??{};s=typeof s=="object"&&!Array.isArray(s)?s:{};const o={};return s.displayMode&&(o.displayMode=s.displayMode.toString()),s.title&&(o.title=s.title.toString()),s.config&&(o.config=s.config),{text:e.slice(t[0].length),metadata:o}}p(f0,"extractFrontMatter");var f5=p(e=>e.replace(/\r\n?/g,`
306`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>
306"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),p5=p(e=>{const{text:t,metadata:r}=f0(e),{displayMode:i,title:s,config:o={}}=r;return i&&(o.gantt||(o.gantt={}),o.gantt.displayMode=i),{title:s,config:o,text:t}},"processFrontmatter"),g5=p(e=>{const t=xe.detectInit(e)??{},r=xe.detectDirective(e,"wrap");return Array.isArray(r)?t.wrap=r.some(({type:i})=>i==="wrap"):(r==null?void 0:r.type)==="wrap"&&(t.wrap=!0),{text:K_(e),directive:t}},"processDirectives");function Ih(e){const t=f5(e),r=p5(t),i=g5(r.text),s=Gl(r.config,i.directive);return e=d5(i.text),{code:e,title:r.title,config:s}}p(Ih,"preprocessDiagram");function p0(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}p(p0,"toBase64");var m5=5e4,y5="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",x5="sandbox",C5="loose",b5="http://www.w3.org/2000/svg",k5="http://www.w3.org/1999/xlink",w5="http://www.w3.org/1999/xhtml",T5="100%",S5="100%",_5="border:0;margin:0;",v5="margin:0",B5="allow-top-navigation-by-user-activation allow-popups",L5='The "iframe" tag is not supported by your browser.',F5=["foreignobject"],A5=["dominant-baseline"];function Rh(e){const t=Ih(e);return Fo(),PC(t.config??{}),t}p(Rh,"processAndSetConfigs");async function g0(e,t){ma();try{const{code:r,config:i}=Rh(e);return{diagramType:(await y0(r)).type,config:i}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}p(g0,"parse");var Ed=p((e,t,r=[])=>{const i=nf(`{ ${r.join(" !important; ")} !important; }`);return`.${e} ${t} ${i}`},"cssImportantStyles"),E5=p((e,t=new Map)=>{const r=new CSSStyleSheet;if(e.fontFamily!==void 0&&r.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`,r.cssRules.length),e.altFontFamily!==void 0&&r.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`,r.cssRules.length),t instanceof Map){const n=Ce(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(l=>{hu(l.styles)||n.forEach(c=>{r.insertRule(Ed(l.id,c,l.styles),r.cssRules.length)}),hu(l.textStyles)||r.insertRule(Ed(l.id,"tspan",((l==null?void 0:l.textStyles)||[]).map(c=>c.replace("color","fill"))),r.cssRules.length)})}let i="";if(e.themeCSS!==void 0)if(typeof r.replaceSync=="function"){const s=new CSSStyleSheet;s.replaceSync(e.themeCSS),i=Mn(s)+`
307`}else i+=`${e.themeCSS}
308`;return i+Mn(r)},"createCssStyles"),M5=p((e,t)=>sx(ox(`${e}{${t}}`),mx([p(function(i,s,o,a){if(i.type==="rule"&&Array.isArray(i.props)){if(i.parent&&i.parent.type===oc)return;i.props=i.props.map(n=>n===e&&Array.isArray(i.children)&&i.children.every(c=>c.type!=="decl"?!1:new Set(["font-family","font-size","fill"]).has(c.props))||(n.startsWith(`${e} `)||n.startsWith(`${e}>`))&&!n.startsWith(`${e} ||`)?n:`${e} ${n}`)}else i.type.startsWith("@")&&([...[nx,lx,hx,cx,"@container","@starting-style"],oc].includes(i.type)||(I.warn(`Removing unsupported at-rule ${i.type} from CSS`),i.type=ux))},"addNamespace"),ax])),"compileCSS"),$5=p((e,t,r,i)=>{const s=E5(e,r),o=ab(t,s,{...e.themeVariables,theme:e.theme,look:e.look},i);return M5(i,o)},"createUserStyles"),O5=p((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Nr(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),D5=p((e="",t)=>{var s,o;const r=(o=(s=t==null?void 0:t.viewBox)==null?void 0:s.baseVal)!=null&&o.height?t.viewBox.baseVal.height+"px":S5,i=p0(`<body style="${v5}">${e}</body>`);return`<iframe style="width:${T5};height:${r};${_5}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${B5}">
309  ${L5}
310</iframe>`},"putIntoIFrame"),Md=p((e,t,r,i,s)=>{const o=e.append("div");o.attr("id",r),i&&o.attr("style",i);const a=o.append("svg").attr("id",t).attr("width","100%").attr("xmlns",b5);return s&&a.attr("xmlns:xlink",s),a.append("g"),e},"appendDivSvgG");function cl(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}p(cl,"sandboxedIframe");var I5=p((e,t,r,i)=>{var s,o,a;(s=e.getElementById(t))==null||s.remove(),(o=e.getElementById(r))==null||o.remove(),(a=e.getElementById(i))==null||a.remove()},"removeExistingElements"),R5=p(async function(e,t,r){var q,W,K,A,V,et;ma();const i=Rh(t);t=i.code;const s=Jt();I.debug(s),t.length>((s==null?void 0:s.maxTextSize)??m5)&&(t=y5);const o=`#${e}`,a="i"+e,n="#"+a,l="d"+e,c="#"+l,h=p(()=>{const lt=Ot(d?n:c).node();lt&&"remove"in lt&&lt.remove()},"removeTempElements");let u=Ot(document.body);const d=s.securityLevel===x5,f=s.securityLevel===C5,m=s.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),d){const Z=cl(Ot(r),a);u=Ot(Z.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=Ot(r);Md(u,e,l,`font-family: ${m}`,k5)}else{if(I5(document,e,l,a),d){const Z=cl(Ot(document.body),a);u=Ot(Z.nodes()[0].contentDocument.body),u.node().style.margin="0"}else u=Ot("body");Md(u,e,l)}let y,C;try{y=await hl.fromText(t,{title:i.title})}catch(Z){if(s.suppressErrorRendering)throw h(),Z;y=await hl.fromText("error"),C=Z}const x=u.select(c).node(),k=y.type,T=x.firstChild,S=T.firstChild,v=(W=(q=y.renderer).getClasses)==null?void 0:W.call(q,t,y),B=$5(s,k,v,o),L=document.createElement("style");L.innerHTML=B,T.insertBefore(L,S);try{await y.renderer.draw(t,e,"11.17.2",y)}catch(Z){throw s.suppressErrorRendering?h():HE.draw(t,e,"11.17.2"),Z}const O=u.select(`${c} svg`),U=(A=(K=y.db).getAccTitle)==null?void 0:A.call(K),N=(et=(V=y.db).getAccDescription)==null?void 0:et.call(V);x0(k,O,U,N);const st=p(()=>{u.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",w5);let Z=u.select(c).node().innerHTML;if(I.debug("config.arrowMarkerAbsolute",s.arrowMarkerAbsolute),Z=O5(Z,d,dr(s.arrowMarkerAbsolute)),d){const lt=u.select(c+" svg").node();Z=D5(Z,lt)}
310else f||(Z=Ii.sanitize(Z,{ADD_TAGS:F5,ADD_ATTR:A5,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));return u5(),Z},"serializeSvg")();if(C)throw C;return h(),{diagramType:k,svg:st,bindFunctions:y.db.bindFunctions}},"render");function m0(e={}){var i;const t=le({},e);t!=null&&t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),IC(t),t!=null&&t.theme&&t.theme in vr?t.themeVariables=vr[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=vr.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?DC(t):lf();yl(r.logLevel),ma()}p(m0,"initialize");var y0=p((e,t={})=>{const{code:r}=Ih(e);return hl.fromText(r,t)},"getDiagramFromText");function x0(e,t,r,i){u0(t,e),d0(t,r,i,t.attr("id"))}p(x0,"addA11yInfo");var ii=Object.freeze({render:R5,parse:g0,getDiagramFromText:y0,initialize:m0,getConfig:Jt,setConfig:hf,getSiteConfig:lf,updateSiteConfig:RC,reset:p(()=>{Fo()},"reset"),globalReset:p(()=>{Fo(Ri)},"globalReset"),defaultConfig:Ri});yl(Jt().logLevel);Fo(Jt());var P5=p((e,t,r)=>{I.warn(e),Ul(e)?(r&&r(e.str,e.hash),t.push({...e,message:e.str,error:e})):(r&&r(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},"handleError"),C0=p(async function(e={querySelector:".mermaid"}){try{await N5(e)}catch(t){if(Ul(t)&&I.error(t.str),Re.parseError&&Re.parseError(t),!e.suppressErrors)throw I.error("Use the suppressErrors option to suppress these errors"),t}},"run"),N5=p(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=ii.getConfig();I.debug(`${e?"":"No "}Callback function found`);let s;if(r)s=r;else if(t)s=document.querySelectorAll(t);else throw new Error("Nodes and querySelector are both undefined");I.debug(`Found ${s.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(I.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),ii.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const o=new xe.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let a;const n=[];for(const l of Array.from(s)){if(I.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${o.next()}`;a=l.innerHTML,a=jp(xe.entityDecode(a)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=xe.detectInit(a);h&&I.debug("Detected early reinit: ",h);try{const{svg:u,bindFunctions:d}=await T0(c,a,l);l.innerHTML=u,e&&await e(c),d&&d(l)}catch(u){P5(u,n,Re.parseError)}}if(n.length>0)throw n[0]},"runThrowsErrors"),b0=p(function(e){ii.initialize(e)},"initialize"),q5=p(async function(e,t,r){I.warn("mermaid.init is deprecated. Please use run instead."),e&&b0(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await C0(i)},"init"),W5=p(async(e,{lazyLoad:t=!0}={})=>{ma(),Fn(...e),t===!1&&await h5()},"registerExternalDiagrams"),k0=p(function(){if(Re.startOnLoad){const{startOnLoad:e}=ii.getConfig();e&&Re.run().catch(t=>I.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",k0,!1);var z5=p(function(e){Re.parseError=e},"setParseErrorHandler"),Ko=[],kn=!1,w0=p(async()=>{if(!kn){for(kn=!0;Ko.length>0;){const e=Ko.shift();if(e)try{await e()}catch(t){I.error("Error executing queue",t)}}kn=!1}},"executeQueue"),H5=p(async(e,t)=>new Promise((r,i)=>{const s=p(()=>new Promise((o,a)=>{ii.parse(e,t).then(n=>{o(n),r(n)},n=>{var l;I.error("Error parsing",n),(l=Re.parseError)==null||l.call(Re,n),a(n),i(n)})}),"performCall");Ko.push(s),w0().catch(i)}),"parse"),T0=p((e,t,r)=>new Promise((i,s)=>{const o=p(()=>new Promise((a,n)=>{ii.render(e,t,r).then(l=>{a(l),i(l)},l=>{var c;I.error("Error parsing",l),(c=Re.parseError)==null||c.call(Re,l),n(l),s(l)})}),"performCall");Ko.push(o),w0().catch(s)}),"render"),Y5=p(()=>Object.keys(Jr).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Re={startOnLoad:!0,mermaidAPI:ii,parse:H5,render:T0,init:q5,run:C0,registerExternalDiagrams:W5,registerLayoutLoaders:_y,initialize:b0,parseError:void 0,contentLoaded:k0,setParseErrorHandler:z5,detectType:xl,registerIconPacks:c_,getRegisteredDiagramsMetadata:Y5},U5=Re;/*! Check if previously processed *//*!
311 * Wait for document loaded before starting the execution
312 */const _3=Object.freeze(Object.defineProperty({__proto__:null,clearLayoutRenderState:mh,createCommonLayoutRenderer:
312dy,default:U5,defaultMeasureLayout:yh,paintLayoutData:xh},Symbol.toStringTag,{value:"Module"}));export{ib as $,Jt as A,gb as B,hr as C,Gl as D,af as E,ev as F,NS as G,gC as H,eB as I,J5 as J,TA as K,wA as L,bs as M,Q5 as N,oa as O,VC as P,xf as Q,Ii as R,vc as S,pa as T,At as U,tv as V,Ve as W,R as X,P as Y,G_ as Z,p as _,hb as a,tF as a$,bf as a0,Z5 as a1,zm as a2,ch as a3,zu as a4,Rs as a5,c_ as a6,Yl as a7,ut as a8,c3 as a9,k_ as aA,$_ as aB,M_ as aC,E_ as aD,D_ as aE,O_ as aF,b_ as aG,Tp as aH,v_ as aI,S_ as aJ,T_ as aK,Sp as aL,jm as aM,Ep as aN,Qd as aO,Qe as aP,h_ as aQ,De as aR,nT as aS,El as aT,rp as aU,Ds as aV,op as aW,e3 as aX,t3 as aY,gt as aZ,gp as a_,h3 as aa,dy as ab,zt as ac,ry as ad,pt as ae,l3 as af,Vo as ag,sy as ah,ua as ai,uh as aj,Um as ak,cL as al,ye as am,Nl as an,Rl as ao,bo as ap,A_ as aq,F_ as ar,L_ as as,B_ as at,C_ as au,kp as av,w_ as aw,x_ as ax,__ as ay,wp as az,lb as b,oF as b0,XL as b1,JL as b2,JF as b3,KF as b4,ey as b5,jL as b6,gh as b7,tA as b8,ZF as b9,WF as ba,fa as bb,Vm as bc,Km as bd,zF as be,Ur as bf,ps as bg,gi as bh,ao as bi,Ka as bj,lA as bk,jB as bl,_3 as bm,Nt as c,Cf as d,le as e,Fr as f,ub as g,Nm as h,ze as i,Ot as j,Ms as k,I as l,$p as m,Es as n,d_ as o,db as p,fb as q,nb as r,cb as s,r3 as t,Pr as u,wx as v,sv as w,S3 as x,T3 as y,xe as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.