Files
anthropic-client/docs/public/chunk-YEACHCAA.min.js
T

102 lines
289 KiB
JavaScript
Raw Permalink Normal View History

2024-07-07 16:16:55 -05:00
import{b as za,d as qa}from"./chunk-XUHMPXWX.min.js";var Tc=za((Wa,Ua)=>{(function(t,e){typeof Wa=="object"&&typeof Ua<"u"?Ua.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Wa,function(){"use strict";var t=1e3,e=6e4,r=36e5,i="millisecond",o="second",n="minute",a="hour",s="day",l="week",c="month",h="quarter",f="year",u="date",p="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var C=["th","st","nd","rd"],g=T%100;return"["+T+(C[(g-20)%10]||C[g]||C[0])+"]"}},w=function(T,C,g){var A=String(T);return!A||A.length>=C?T:""+Array(C+1-A.length).join(g)+T},v={s:w,z:function(T){var C=-T.utcOffset(),g=Math.abs(C),A=Math.floor(g/60),F=g%60;return(C<=0?"+":"-")+w(A,2,"0")+":"+w(F,2,"0")},m:function T(C,g){if(C.date()<g.date())return-T(g,C);var A=12*(g.year()-C.year())+(g.month()-C.month()),F=C.clone().add(A,c),N=g-F<0,R=C.clone().add(A+(N?-1:1),c);return+(-(A+(g-F)/(N?F-R:R-F))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:c,y:f,w:l,d:s,D:u,h:a,m:n,s:o,ms:i,Q:h}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},M="en",E={};E[M]=b;var I=function(T){return T instanceof et},B=function T(C,g,A){var F;if(!C)return M;if(typeof C=="string"){var N=C.toLowerCase();E[N]&&(F=N),g&&(E[N]=g,F=N);var R=C.split("-");if(!F&&R.length>1)return T(R[0])}else{var j=C.name;E[j]=C,F=j}return!A&&F&&(M=F),F||!A&&M},y=function(T,C){if(I(T))return T.clone();var g=typeof C=="object"?C:{};return g.date=T,g.args=arguments,new et(g)},$=v;$.l=B,$.i=I,$.w=function(T,C){return y(T,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var et=function(){function T(g){this.$L=B(g.locale,null,!0),this.parse(g)}var C=T.prototype;return C.parse=function(g){this.$d=function(A){var F=A.date,N=A.utc;if(F===null)return new Date(NaN);if($.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var R=F.match(x);if(R){var j=R[2]-1||0,G=(R[7]||"0").substring(0,3);return N?new Date(Date.UTC(R[1],j,R[3]||1,R[4]||0,R[5]||0,R[6]||0,G)):new Date(R[1],j,R[3]||1,R[4]||0,R[5]||0,R[6]||0,G)}}return new Date(F)}(g),this.$x=g.x||{},this.init()},C.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},C.$utils=function(){return $},C.isValid=function(){return this.$d.toString()!==p},C.isSame=function(g,A){var F=y(g);return this.startOf(A)<=F&&F<=this.endOf(A)},C.isAfter=function(g,A){return y(g)<this.startOf(A)},C.isBefore=function(g,A){return this.endOf(A)<y(g)},C.$g=function(g,A,F){return $.u(g)?this[A]:this.set(F,g)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(g,A){var F=this,N=!!$.u(A)||A,R=$.p(g),j=function(Pt,ht){var It=$.w(F.$u?Date.UTC(F.$y,ht,Pt):new Date(F.$y,ht,Pt),F);return N?It:It.endOf(s)},G=function(Pt,ht){return $.w(F.toDate()[Pt].apply(F.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(ht)),F)},Z=this.$W,at=this.$M,At=this.$D,Bt="set"+(this.$u?"UTC":"");switch(R){case f:return N?j(1,0):j(31,11);case c:return N?j(1,at):j(0,at+1);case l:var Gt=this.$locale().weekStart||0,gt=(Z<Gt?Z+7:Z)-Gt;return j(N?At-gt:At+(6-gt),at);case s:case u:return G(Bt+"Hours",0);case a:return G(Bt+"Minutes",1);case n:return G(Bt+"Seconds",2);case o:return G(Bt+"Milliseconds",3);default:return this.clone()}},C.endOf=function(g){return this.startOf(g,!1)},C.$set=function(g,A){var F,N=$.p(g),R="set"+(this.$u?"UTC":""),j=(F={},F[s]=R+"Date",F[u]=R+"Date",F[c]=R+"Month",F[f]=R+"FullYear",F[a]=R+"Hours",F[n]=R+"Minutes",F[o]=R+"Seconds",F[i]=
`+ut),Dr&&(ut=b(ut,Sa," "),ut=b(ut,wa," "),ut=b(ut,Aa," ")),Rt&&vo?Rt.createHTML(ut):ut},P.setConfig=function(W){Na(W),Ma=!0},P.clearConfig=function(){zr=null,Ma=!1},P.isValidAttribute=function(W,d,S){zr||Na({});let D=vt(W),ot=vt(d);return xc(D,ot,S)},P.addHook=function(W,d){typeof d=="function"&&(le[W]=le[W]||[],u(le[W],d))},P.removeHook=function(W){if(le[W])return f(le[W])},P.removeHooks=function(W){le[W]&&(le[W]=[])},P.removeAllHooks=function(){le={}},P}var it=Ft();return it})});function bc(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];var i=Array.from(typeof t=="string"?[t]:t);i[i.length-1]=i[i.length-1].replace(/\r?\n([\t ]*)$/,"");var o=i.reduce(function(s,l){var c=l.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(h){var f,u;return(u=(f=h.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&u!==void 0?u:0})):s},[]);if(o.length){var n=new RegExp(`
[ ]{`+Math.min.apply(Math,o)+"}","g");i=i.map(function(s){return s.replace(n,`
`)})}i[0]=i[0].replace(/^\r?\n/,"");var a=i[0];return e.forEach(function(s,l){var c=a.match(/(?:^|\n)( *)$/),h=c?c[1]:"",f=s;typeof s=="string"&&s.includes(`
`)&&(f=String(s).split(`
`).map(function(u,p){return p===0?u:""+h+u}).join(`
`)),a+=f+i[l+1]}),a}function kc(t,e){let r;if(e===void 0)for(let i of t)i!=null&&(r<i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(r<o||r===void 0&&o>=o)&&(r=o)}return r}function Sc(t,e){let r;if(e===void 0)for(let i of t)i!=null&&(r>i||r===void 0&&i>=i)&&(r=i);else{let i=-1;for(let o of t)(o=e(o,++i,t))!=null&&(r>o||r===void 0&&o>=o)&&(r=o)}return r}function nr(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ha(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ar(t){let e,r,i;t.length!==2?(e=nr,r=(s,l)=>nr(t(s),l),i=(s,l)=>t(s)-l):(e=t===nr||t===Ha?t:o0,r=t,i=t);function o(s,l,c=0,h=s.length){if(c<h){if(e(l,l)!==0)return h;do{let f=c+h>>>1;r(s[f],l)<0?c=f+1:h=f}while(c<h)}return c}function n(s,l,c=0,h=s.length){if(c<h){if(e(l,l)!==0)return h;do{let f=c+h>>>1;r(s[f],l)<=0?c=f+1:h=f}while(c<h)}return c}function a(s,l,c=0,h=s.length){let f=o(s,l,c,h-1);return f>c&&i(s[f-1],l)>-i(s[f],l)?f-1:f}return{left:o,center:a,right:n}}function o0(){return 0}function Ya(t){return t===null?NaN:+t}var wc=ar(nr),Ac=wc.right,n0=wc.left,a0=ar(Ya).center,ja=Ac;var qr=class extends Map{constructor(e,r=c0){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[i,o]of e)this.set(i,o)}get(e){return super.get(Bc(this,e))}has(e){return super.has(Bc(this,e))}set(e,r){return super.set(s0(this,e),r)}delete(e){return super.delete(l0(this,e))}};function Bc({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):r}function s0({_intern:t,_key:e},r){let i=e(r);return t.has(i)?t.get(i):(t.set(i,r),r)}function l0({_intern:t,_key:e},r){let i=e(r);return t.has(i)&&(r=t.get(i),t.delete(i)),r}function c0(t){return t!==null&&typeof t=="object"?t.valueOf():t}var u0=Math.sqrt(50),h0=Math.sqrt(10),f0=Math.sqrt(2);function Fo(t,e,r){let i=(e-t)/Math.max(0,r),o=Math.floor(Math.log10(i)),n=i/Math.pow(10,o),a=n>=u0?10:n>=h0?5:n>=f0?2:1,s,l,c;return o<0?(c=Math.pow(10,-o)/a,s=Math.round(t*c),l=Math.round(e*c),s/c<t&&++s,l/c>e&&--l,c=-c):(c=Math.pow(10,o)*a,s=Math.round(t/c),l=Math.round(e/c),s*c<t&&++s,l*c>e&&--l),l<s&&.5<=r&&r<2?Fo(t,e,r*2):[s,l,c]}function Mo(t,e,r){if(e=+e,t=+t,r=+r,!(r>0))return[];if(t===e)return[t];let i=e<t,[o,n,a]=i?Fo(e,t,r):Fo(t,e,r);if(!(n>=o))return[];let s=n-o+1,l=new Array(s);if(i)if(a<0)for(let c=0;c<s;++c)l[c]=(n-c)/-a;else for(let c=0;c<s;++c)l[c]=(n-c)*a;else if(a<0)for(let c=0;c<s;++c)l[c]=(o+c)/-a;else for(let c=0;c<s;++c)l[c]=(o+c)*a;return l}function Fi(t,e,r){return e=+e,t=+t,r=+r,Fo(t,e,r)[2]}function Wr(t,e,r){e=+e,t=+t,r=+r;let i=e<t,o=i?Fi(e,t,r):Fi(t,e,r);return(i?-1:1)*(o<0?1/-o:o)}function Lo(t,e,r){t=+t,e=+e,r=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+r;for(var i=-1,o=Math.max(0,Math.ceil((e-t)/r))|0,n=new Array(o);++i<o;)n[i]=t+i*r;return n}function Fc(t){return t}var Oo=1,Ga=2,Va=3,Eo=4,Mc=1e-6;function p0(t){return"translate("+t+",0)"}function d0(t){return"translate(0,"+t+")"}function m0(t){return e=>+t(e)}function g0(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function x0(){return!this.__axis}function Lc(t,e){var r=[],i=null,o=null,n=6,a=6,s=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=t===Oo||t===Eo?-1:1,h=t===Eo||t===Ga?"x":"y",f=t===Oo||t===Va?p0:d0;function u(p){var x=i??(e.ticks?e.ticks.apply(e,r):e.domain()),_=o??(e.tickFormat?e.tickFormat.apply(e,r):Fc),b=Math.max(n,0)+s,w=e.range(),v=+w[0]+l,M=+w[w.length-1]+l,E=(e.bandwidth?g0:m0)(e.copy(),l),I=p.selection?p.selection():p,B=I.selectAll(".domain").data([null]),y=I.selectAll(".tick").data(x,e).order(),$=y.exit(),et=y.enter().append("g").attr("class","tick"),rt=y.select("line"),T=y.select("text");B=B.merge(B.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),y=y.merge(et),rt=rt.merge(et.append("line").attr("stroke","currentColor").attr(h+"2",c*n)),T=T.merge(et.append("text").attr("fill","currentColor").attr(h,c*b).attr("dy",t===Oo?"0em":t===Va?"0.71em":"0.32em")),p!==I&&(B=B.transition(p),y=y.transition(p),rt=rt.transition(p),T=T.transition(p),$=$.transition(p).attr(
<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
${i}
</div>
`:`<div>${i}</div>`).join("").replace(Fl,(i,o)=>r.renderToString(o,{throwOnError:!0,displayMode:!0,output:tm()?"mathml":"htmlAndMathml"}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))},Nl={getRows:dv,sanitizeText:xo,sanitizeTextOrArray:xv,hasBreaks:yv,splitBreaks:_v,lineBreakRegex:_o,removeScript:Cm,getUrl:bv,evaluate:Tm,getMax:Tv,getMin:vv},qt=(t,e)=>e?m(t,{s:-40,l:10}):m(t,{s:-40,l:-10}),ga="#ffffff",xa="#f2f2f2",Av=class{constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){var e,r,i,o,n,a,s,l,c,h,f;if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||m(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||m(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||qt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||qt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||qt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||qt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||L(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||L(this.tertiaryColor),this.lineColor=this.lineColor||L(this.background),this.arrowheadColor=this.arrowheadColor||L(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?H(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||"grey",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||H(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||L(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||z(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
`);for(let[r,{detector:i}]of Object.entries(Ti))if(i(t,e))return r;throw new aa(`No diagram type detected matching given configuration for text: ${t}`)},wm=(...t)=>{for(let{id:e,detector:r,loader:i}of t)Am(e,r,i)},Am=(t,e,r)=>{Ti[t]?Y.error(`Detector with key ${t} already exists`):Ti[t]={detector:e,loader:r},Y.debug(`Detector with key ${t} added${r?" with loader":""}`)},zv=t=>Ti[t].loader,Ll=(t,e,{depth:r=2,clobber:i=!1}={})=>{let o={depth:r,clobber:i};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(n=>Ll(t,n,o)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(n=>{t.includes(n)||t.push(n)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(n=>{typeof e[n]=="object"&&(t[n]===void 0||typeof t[n]=="object")?(t[n]===void 0&&(t[n]=Array.isArray(e[n])?[]:{}),t[n]=Ll(t[n],e[n],{depth:r-1,clobber:i})):(i||typeof t[n]!="object"&&typeof e[n]!="object")&&(t[n]=e[n])}),t)},Dt=Ll,qv="\u200B",Wv={curveBasis:$s,curveBasisClosed:Ws,curveBasisOpen:Us,curveBumpX:zs,curveBumpY:qs,curveBundle:Hs,curveCardinalClosed:js,curveCardinalOpen:Gs,curveCardinal:Ys,curveCatmullRomClosed:Xs,curveCatmullRomOpen:Ks,curveCatmullRom:Vs,curveLinear:Gi,curveLinearClosed:Zs,curveMonotoneX:Js,curveMonotoneY:tl,curveNatural:el,curveStep:rl,curveStepAfter:ol,curveStepBefore:il},Uv=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Hv=function(t,e){let r=Bm(t,/(?:init\b)|(?:initialize\b)/),i={};if(Array.isArray(r)){let a=r.map(s=>s.args);na(a),i=Dt(i,[...a])}else i=r.args;if(!i)return;let o=ya(t,e),n="config";return i[n]!==void 0&&(o==="flowchart-v2"&&(o="flowchart"),i[o]=i[n],delete i[n]),i},Bm=function(t,e=null){try{let r=new RegExp(`[%]{2}(?![{]${Uv.source})(?=[}][%]{2}).*
`,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),Y.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let i,o=[];for(;(i=po.exec(t))!==null;)if(i.index===po.lastIndex&&po.lastIndex++,i&&!e||e&&i[1]&&i[1].match(e)||e&&i[2]&&i[2].match(e)){let n=i[1]?i[1]:i[2],a=i[3]?i[3].trim():i[4]?JSON.parse(i[4].trim()):null;o.push({type:n,args:a})}return o.length===0?{type:t,args:null}:o.length===1?o[0]:o}catch(r){return Y.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},Yv=function(t){return t.replace(po,"")},jv=function(t,e){for(let[r,i]of e.entries())if(i.match(t))return r;return-1};function Gv(t,e){if(!t)return e;let r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Wv[r]??e}function Vv(t,e){let r=t.trim();if(r)return e.securityLevel!=="loose"?(0,_m.sanitizeUrl)(r):r}var Xv=(t,...e)=>{let r=t.split("."),i=r.length-1,o=r[i],n=window;for(let a=0;a<i;a++)if(n=n[r[a]],!n){Y.error(`Function name: ${t} not found in window`);return}n[o](...e)};function Fm(t,e){return!t||!e?0:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Kv(t){let e,r=0;t.forEach(o=>{r+=Fm(o,e),e=o});let i=r/2;return Pl(t,i)}function Zv(t){return t.length===1?t[0]:Kv(t)}var rm=(t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},Pl=(t,e)=>{let r,i=e;for(let o of t){if(r){let n=Fm(o,r);if(n<i)i-=n;else{let a=i/n;if(a<=0)return r;if(a>=1)return{x:o.x,y:o.y};if(a>0&&a<1)return{x:rm((1-a)*r.x+a*o.x,5),y:rm((1-a)*r.y+a*o.y,5)}}}r=o}throw new Error("Could not find a suitable point for the given distance")},Qv=(t,e,r)=>{Y.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let o=Pl(e,25),n=t?10:5,a=Math.atan2(e[0].y-o.y,e[0].x-o.x),s={x:0,y:0};return s.x=Math.sin(a)*n+(e[0].x+o.x)/2,s.y=-Math.cos(a)*n+(e[0].y+o.y)/2,s};function Jv(t,e,r){let i=structuredClone(r);Y.info("our points",i),e!=="start_left"&&e!=="start_right"&&i.reverse();let o=25+t,n=Pl(i,o),a=10+t*.5,s=Math.atan2(i[0].y-n.y,i[0].x-n.x),l={x:0,y:0};return e==="start_left"?(l.x=Math.sin(s+Math.PI)*a+(i[0].x+n.x)/2,l.y=-Math.cos(s+Math.PI)*a+(i[0].y+n.y)/2):e==="end_right"?(l.x=Math.sin(s-Math.PI)*a+(i[0].x+n.x)/2-5,l.y=-Math.cos(s-Math.PI)*a+(i[0].y+n.y)/2-5):e==="end_left"?(l.x=Math.sin(s)*a+(i[0].x+n.x)/2-5,l.y=-Math.cos(s)*a+(i[0].y+n.y)/2-5):(l.x=Math.sin(s)*a+(i[0].x+n.x)/2,l.y=-Math.cos(s)*a+(i[0].y+n.y)/2),l}function tk(t){let e="",r="";for(let i of t)i!==void 0&&(i.startsWith("color:")||i.startsWith("text-align:")?r=r+i+";":e=e+i+";");return{style:e,labelStyle:r}}var im=0,ek=()=>(im++,"id-"+Math.random().toString(36).substr(2,12)+"-"+im);function rk(t){let e="",r="0123456789abcdef",i=r.length;for(let o=0;o<t;o++)e+=r.charAt(Math.floor(Math.random()*i));return e}var ik=t=>rk(t.length),ok=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:""}},nk=function(t,e){let r=e.text.replace(Nl.lineBreakRegex," "),[,i]=$l(e.fontSize),o=t.append("text");o.attr("x",e.x),o.attr("y",e.y),o.style("text-anchor",e.anchor),o.style("font-family",e.fontFamily),o.style("font-size",i),o.style("font-weight",e.fontWeight),o.attr("fill",e.fill),e.class!==void 0&&o.attr("class",e.class);let n=o.append("tspan");return n.attr("x",e.x+e.textMargin*2),n.attr("fill",e.fill),n.text(r),o},ak=On((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Nl.lineBreakRegex.test(t)))return t;let i=t.split(" "),o=[],n="";return i.forEach((a,s)=>{let l=sa(`${a} `,r),c=sa(n,r);if(l>e){let{hyphenatedStrings:u,remainingWord:p}=sk(a,e,"-",r);o.push(n,...u),n=p}else c+l>=e?(o.push(n),n=a):n=[n,a].filter(Boolean).join(" ");s+1===i.length&&o.push(n)}),o.filter(a=>a!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),sk=On((t,e,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);let o=[...t],n=[],a="";return o.forEach((s,l)=>{let c=`${a}${s}`;if(sa(c,i)>=e){let f=l+1,u=o.length===f,p=`${c}${r}`;n.push(u?c:p),a="
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
fill: ${r.textColor}
}
/* Classes common for multiple diagrams */
& .error-icon {
fill: ${r.errorBkgColor};
}
& .error-text {
fill: ${r.errorTextColor};
stroke: ${r.errorTextColor};
}
& .edge-thickness-normal {
stroke-width: 2px;
}
& .edge-thickness-thick {
stroke-width: 3.5px
}
& .edge-pattern-solid {
stroke-dasharray: 0;
}
& .edge-pattern-dashed{
stroke-dasharray: 3;
}
.edge-pattern-dotted {
stroke-dasharray: 2;
}
& .marker {
fill: ${r.lineColor};
stroke: ${r.lineColor};
}
& .marker.cross {
stroke: ${r.lineColor};
}
& svg {
font-family: ${r.fontFamily};
font-size: ${r.fontSize};
}
${i}
${e}
`},DS=(t,e)=>{e!==void 0&&(oa[t]=e)},NS=IS,zl="",ql="",Wl="",Ul=t=>xo(t,xe()),PS=()=>{zl="",Wl="",ql=""},RS=t=>{zl=Ul(t).replace(/^\s+/g,"")},$S=()=>zl,zS=t=>{Wl=Ul(t).replace(/\n\s+/g,`
`)},qS=()=>Wl,WS=t=>{ql=Ul(t)},US=()=>ql,HS=Object.freeze(Object.defineProperty({__proto__:null,clear:PS,getAccDescription:qS,getAccTitle:$S,getDiagramTitle:US,setAccDescription:zS,setAccTitle:RS,setDiagramTitle:WS},Symbol.toStringTag,{value:"Module"})),YS=Y,jS=Dl,Hl=xe,pq=Im,dq=vi,GS=t=>xo(t,Hl()),VS=OS,XS=()=>HS,ca={},ua=(t,e,r)=>{var i;if(ca[t])throw new Error(`Diagram ${t} already registered.`);ca[t]=e,r&&Am(t,r),DS(t,e.styles),(i=e.injectUtils)==null||i.call(e,YS,jS,Hl,GS,VS,XS(),()=>{})},Yl=t=>{if(t in ca)return ca[t];throw new Ol(t)},Ol=class extends Error{constructor(e){super(`Diagram ${e} not found.`)}},KS=t=>{var e;let{securityLevel:r}=Hl(),i=Wt("body");if(r==="sandbox"){let a=((e=Wt(`#i${t}`).node())==null?void 0:e.contentDocument)??document;i=Wt(a.body)}return i.select(`#${t}`)},ZS=(t,e,r)=>{Y.debug(`rendering svg for syntax error
`);let i=KS(e),o=i.append("g");i.attr("viewBox","0 0 2412 512"),tg(i,100,512,!0),o.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"),o.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"),o.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"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.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"),o.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"),o.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"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${r}`)},eg={draw:ZS},QS=eg,JS={db:{},renderer:eg,parser:{parser:{yy:{}},parse:()=>{}}},tw=JS,rg="flowchart-elk",ew=(t,e)=>{var r;return!!(/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&((r=e?.flowchart)==null?void 0:r.defaultRenderer)==="elk")},rw=async()=>{let{diagram:t}=await import("./flowchart-elk-definition-ae0efee6-MAQF265M.min.js");return{id:rg,diagram:t}},iw={id:rg,detector:ew,loader:rw},ow=iw,ig="timeline",nw=t=>/^\s*timeline/.test(t),aw=async()=>{let{diagram:t}=await import("./timeline-definition-bf702344-YJZ3MVX7.min.js");return{id:ig,diagram:t}},sw={id:ig,detector:nw,loader:aw},lw=sw,og="mindmap",cw=t=>/^\s*mindmap/.test(t),uw=async()=>{let{diagram:t}=await import("./mindmap-definition-307c710a-X5KDYKIG.min.js");return{id:og,diagram:t}},hw={id:og,detector:cw,loader:uw},fw=hw,ng="sankey",pw=t=>/^\s*sankey-beta/.test(t),dw=async()=>{let{diagram:t}=await import("./sankeyDiagram-707fac0f-3GVBJS6H.min.js");return{id:ng,diagram:t}},mw={id:ng,detector:pw,loader:dw},gw=mw,ag="block",xw=t=>/^\s*block-beta/.test(t),yw=async()=>{let{diagram:t}=await import("./blockDiagram-9f4a6865-KQGFBXS7.min.js");return{id:ag,diagram:t}},_w={id:ag,detector:xw,loader:yw},Cw=_w,am=!1,jl=()=>{am||(am=!0,ua("error",tw,t=>t.toLowerCase().trim()==="error"),ua("---",{db:{clear:()=>{}},styles:{},renderer:{draw:()=>{}},parser:{parser:{yy:{}},parse:()=>{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")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),wm(Tk,yS,dS,Ik,Wk,Yk,Vk,aS,uS,ow,Mk,wk,fw,lw,Rk,wS,TS,MS,Qk,gw,rS,Cw))},ha=class{constructor(e,r={}){this.text=e,this.metadata=r,this.type="graph",this.text=hk(e),this.text+=`
`;let i=xe();try{this.type=ya(e,i)}catch(n){this.type="error",this.detectError=n}let o=Yl(this.type);Y.debug("Type "+this.type),this.db=o.db,this.renderer=o.renderer,this.parser=o.parser,this.parser.parser.yy=this.db,this.init=o.init,this.parse()}parse(){var e,r,i,o,n;if(this.detectError)throw this.detectError;(r=(e=this.db).clear)==null||r.call(e);let a=xe();(i=this.init)==null||i.call(this,a),this.metadata.title&&((n=(o=this.db).setDiagramTitle)==null||n.call(o,this.metadata.title)),this.parser.parse(this.text)}async render(e,r){await this.renderer.draw(this.text,e,r,this)}getParser(){return this.parser}getType(){return this.type}},bw=async(t,e={})=>{let r=ya(t,xe());try{Yl(r)}catch{let o=zv(r);if(!o)throw new aa(`Diagram ${r} not found.`);let{id:n,diagram:a}=await o();ua(n,a)}return new ha(t,e)},sm=[],Tw=()=>{sm.forEach(t=>{t()}),sm=[]},vw="graphics-document document";function kw(t,e){t.attr("role",vw),e!==""&&t.attr("aria-roledescription",e)}function Sw(t,e,r,i){if(t.insert!==void 0){if(r){let o=`chart-desc-${i}`;t.attr("aria-describedby",o),t.insert("desc",":first-child").attr("id",o).text(r)}if(e){let o=`chart-title-${i}`;t.attr("aria-labelledby",o),t.insert("title",":first-child").attr("id",o).text(e)}}}var ww=t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart();function sg(t){return typeof t>"u"||t===null}function Aw(t){return typeof t=="object"&&t!==null}function Bw(t){return Array.isArray(t)?t:sg(t)?[]:[t]}function Fw(t,e){var r,i,o,n;if(e)for(n=Object.keys(e),r=0,i=n.length;r<i;r+=1)o=n[r],t[o]=e[o];return t}function Mw(t,e){var r="",i;for(i=0;i<e;i+=1)r+=t;return r}function Lw(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Ew=sg,Ow=Aw,Iw=Bw,Dw=Mw,Nw=Lw,Pw=Fw,zt={isNothing:Ew,isObject:Ow,toArray:Iw,repeat:Dw,isNegativeZero:Nw,extend:Pw};function lg(t,e){var r="",i=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
`+t.mark.snippet),i+" "+r):i}function yo(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=lg(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}yo.prototype=Object.create(Error.prototype);yo.prototype.constructor=yo;yo.prototype.toString=function(e){return this.name+": "+lg(this,e)};var Oe=yo;function kl(t,e,r,i,o){var n="",a="",s=Math.floor(o/2)-1;return i-e>s&&(n=" ... ",e=i-s+n.length),r-i>s&&(a=" ...",r=i+s-a.length),{str:n+t.slice(e,r).replace(/\t/g,"\u2192")+a,pos:i-e+n.length}}function Sl(t,e){return zt.repeat(" ",e-t.length)+t}function Rw(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],o=[],n,a=-1;n=r.exec(t.buffer);)o.push(n.index),i.push(n.index+n[0].length),t.position<=n.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var s="",l,c,h=Math.min(t.line+e.linesAfter,o.length).toString().length,f=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore&&!(a-l<0);l++)c=kl(t.buffer,i[a-l],o[a-l],t.position-(i[a]-i[a-l]),f),s=zt.repeat(" ",e.indent)+Sl((t.line-l+1).toString(),h)+" | "+c.str+`
`+s;for(c=kl(t.buffer,i[a],o[a],t.position,f),s+=zt.repeat(" ",e.indent)+Sl((t.line+1).toString(),h)+" | "+c.str+`
`,s+=zt.repeat("-",e.indent+h+3+c.pos)+`^
`,l=1;l<=e.linesAfter&&!(a+l>=o.length);l++)c=kl(t.buffer,i[a+l],o[a+l],t.position-(i[a]-i[a+l]),f),s+=zt.repeat(" ",e.indent)+Sl((t.line+l+1).toString(),h)+" | "+c.str+`
`;return s.replace(/\n$/,"")}var $w=Rw,zw=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],qw=["scalar","sequence","mapping"];function Ww(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(i){e[String(i)]=r})}),e}function Uw(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(zw.indexOf(r)===-1)throw new Oe('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Ww(e.styleAliases||null),qw.indexOf(this.kind)===-1)throw new Oe('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Nt=Uw;function lm(t,e){var r=[];return t[e].forEach(function(i){var o=r.length;r.forEach(function(n,a){n.tag===i.tag&&n.kind===i.kind&&n.multi===i.multi&&(o=a)}),r[o]=i}),r}function Hw(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function i(o){o.multi?(t.multi[o.kind].push(o),t.multi.fallback.push(o)):t[o.kind][o.tag]=t.fallback[o.tag]=o}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(i);return t}function Il(t){return this.extend(t)}Il.prototype.extend=function(e){var r=[],i=[];if(e instanceof Nt)i.push(e);else if(Array.isArray(e))i=i.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(i=i.concat(e.explicit));else throw new Oe("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(n){if(!(n instanceof Nt))throw new Oe("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(n.loadKind&&n.loadKind!=="scalar")throw new Oe("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(n.multi)throw new Oe("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(n){if(!(n instanceof Nt))throw new Oe("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(Il.prototype);return o.implicit=(this.implicit||[]).concat(r),o.explicit=(this.explicit||[]).concat(i),o.compiledImplicit=lm(o,"implicit"),o.compiledExplicit=lm(o,"explicit"),o.compiledTypeMap=Hw(o.compiledImplicit,o.compiledExplicit),o};var Yw=Il,jw=new Nt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Gw=new Nt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),Vw=new Nt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Xw=new Yw({explicit:[jw,Gw,Vw]});function Kw(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Zw(){return null}function Qw(t){return t===null}var Jw=new Nt("tag:yaml.org,2002:null",{kind:"scalar",resolve:Kw,construct:Zw,predicate:Qw,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function tA(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function eA(t){return t==="true"||t==="True"||t==="TRUE"}function rA(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var iA=new Nt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:tA,construct:eA,predicate:rA,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});functio
\r`;function SA(t){if(t===null)return!1;var e,r,i=0,o=t.length,n=Gl;for(r=0;r<o;r++)if(e=n.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;i+=6}return i%8===0}function wA(t){var e,r,i=t.replace(/[\r\n=]/g,""),o=i.length,n=Gl,a=0,s=[];for(e=0;e<o;e++)e%4===0&&e&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|n.indexOf(i.charAt(e));return r=o%4*6,r===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):r===18?(s.push(a>>10&255),s.push(a>>2&255)):r===12&&s.push(a>>4&255),new Uint8Array(s)}function AA(t){var e="",r=0,i,o,n=t.length,a=Gl;for(i=0;i<n;i++)i%3===0&&i&&(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]),r=(r<<8)+t[i];return o=n%3,o===0?(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]):o===2?(e+=a[r>>10&63],e+=a[r>>4&63],e+=a[r<<2&63],e+=a[64]):o===1&&(e+=a[r>>2&63],e+=a[r<<4&63],e+=a[64],e+=a[64]),e}function BA(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var FA=new Nt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:SA,construct:wA,predicate:BA,represent:AA}),MA=Object.prototype.hasOwnProperty,LA=Object.prototype.toString;function EA(t){if(t===null)return!0;var e=[],r,i,o,n,a,s=t;for(r=0,i=s.length;r<i;r+=1){if(o=s[r],a=!1,LA.call(o)!=="[object Object]")return!1;for(n in o)if(MA.call(o,n))if(!a)a=!0;else return!1;if(!a)return!1;if(e.indexOf(n)===-1)e.push(n);else return!1}return!0}function OA(t){return t!==null?t:[]}var IA=new Nt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:EA,construct:OA}),DA=Object.prototype.toString;function NA(t){if(t===null)return!0;var e,r,i,o,n,a=t;for(n=new Array(a.length),e=0,r=a.length;e<r;e+=1){if(i=a[e],DA.call(i)!=="[object Object]"||(o=Object.keys(i),o.length!==1))return!1;n[e]=[o[0],i[o[0]]]}return!0}function PA(t){if(t===null)return[];var e,r,i,o,n,a=t;for(n=new Array(a.length),e=0,r=a.length;e<r;e+=1)i=a[e],o=Object.keys(i),n[e]=[o[0],i[o[0]]];return n}var RA=new Nt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:NA,construct:PA}),$A=Object.prototype.hasOwnProperty;function zA(t){if(t===null)return!0;var e,r=t;for(e in r)if($A.call(r,e)&&r[e]!==null)return!1;return!0}function qA(t){return t!==null?t:{}}var WA=new Nt("tag:yaml.org,2002:set",{kind:"mapping",resolve:zA,construct:qA}),UA=yA.extend({implicit:[TA,kA],explicit:[FA,IA,RA,WA]}),er=Object.prototype.hasOwnProperty,fa=1,fg=2,pg=3,pa=4,wl=1,HA=2,cm=3,YA=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,jA=/[\x85\u2028\u2029]/,GA=/[,\[\]\{\}]/,dg=/^(?:!|!!|![a-z\-]+!)$/i,mg=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function um(t){return Object.prototype.toString.call(t)}function ge(t){return t===10||t===13}function Er(t){return t===9||t===32}function jt(t){return t===9||t===32||t===10||t===13}function Ci(t){return t===44||t===91||t===93||t===123||t===125}function VA(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function XA(t){return t===120?2:t===117?4:t===85?8:0}function KA(t){return 48<=t&&t<=57?t-48:-1}function hm(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"\x85":t===95?"\xA0":t===76?"\u2028":t===80?"\u2029":""}function ZA(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var gg=new Array(256),xg=new Array(256);for(Lr=0;Lr<256;Lr++)gg[Lr]=hm(Lr)?1:0,xg[Lr]=hm(Lr);var Lr;function QA(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||UA,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function yg(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=$w(r),new Oe(e,r)}function U(t,e){throw yg(t,e)}function da(t,e){t.onWarning&&t.onWarning.call(null,yg(t,e))}var fm={YAML:function(e,r,i){var o,n,a;e.version!==null&&U(e,"duplication of %YAML directive"),i.length!==1&&U(e,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),o===null&&U(e,"ill-formed argument of the YAML directive"),n=parseInt(o[1],10),a=parseInt(o[2],10),n!==1&&U(e,"unacceptable YAML version of the document"),e.version=i[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&da(e,"unsupported YAML version of the document")},TAG:function(e,r,i){var o,n;i.length!==2&&U(e,"TAG directive accepts exactly two arguments"),o=i[0],n=i[1],dg.test(o)||U(e,"ill-formed tag handle (first argument) of the TAG directive"),er.call(e.tagMap,o)&&U(e,'there is a previously declared suffix for "'+o+'" tag handle'),mg.test(n)||U(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch{U(e,"tag prefix is malformed: "+n)}e.tagMap[o]=n}};function tr(t,e,r,i){var o,n,a,s;if(e<r){if(s=t.input.slice(e,r),i)for(o=0,n=s.length;o<n;o+=1)a=s.charCodeAt(o),a===9||32<=a&&a<=1114111||U(t,"expected valid JSON character");else YA.test(s)&&U(t,"the stream contains non-printable characters");t.result+=s}}function pm(t,e,r,i){var o,n,a,s;for(zt.isObject(r)||U(t,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(r),a=0,s=o.length;a<s;a+=1)n=o[a],er.call(e,n)||(e[n]=r[n],i[n]=!0)}function bi(t,e,r,i,o,n,a,s,l){var c,h;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),c=0,h=o.length;c<h;c+=1)Array.isArray(o[c])&&U(t,"nested arrays are not supported inside keys"),typeof o=="object"&&um(o[c])==="[object Object]"&&(o[c]="[object Object]");if(typeof o=="object"&&um(o)==="[object Object]"&&(o="[object Object]"),o=String(o),e===null&&(e={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(n))for(c=0,h=n.length;c<h;c+=1)pm(t,e,n[c],r);else pm(t,e,n,r);else!t.json&&!er.call(r,o)&&er.call(e,o)&&(t.line=a||t.line,t.lineStart=s||t.lineStart,t.position=l||t.position,U(t,"duplicated mapping key")),o==="__proto__"?Object.defineProperty(e,o,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[o]=n,delete r[o];return e}function Vl(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):U(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function mt(t,e,r){for(var i=0,o=t.input.charCodeAt(t.position);o!==0;){for(;Er(o);)o===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),o=t.input.charCodeAt(++t.position);if(e&&o===35)do o=t.input.charCodeAt(++t.position);while(o!==10&&o!==13&&o!==0);if(ge(o))for(Vl(t),o=t.input.charCodeAt(t.position),i++,t.lineIndent=0;o===32;)t.lineIndent++,o=t.input.charCodeAt(++t.position);else break}return r!==-1&&i!==0&&t.lineIndent<r&&da(t,"deficient indentation"),i}function Ca(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||jt(r)))}function Xl(t,e){e===1?t.result+=" ":e>1&&(t.result+=zt.rep
`,e-1))}function JA(t,e,r){var i,o,n,a,s,l,c,h,f=t.kind,u=t.result,p;if(p=t.input.charCodeAt(t.position),jt(p)||Ci(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(o=t.input.charCodeAt(t.position+1),jt(o)||r&&Ci(o)))return!1;for(t.kind="scalar",t.result="",n=a=t.position,s=!1;p!==0;){if(p===58){if(o=t.input.charCodeAt(t.position+1),jt(o)||r&&Ci(o))break}else if(p===35){if(i=t.input.charCodeAt(t.position-1),jt(i))break}else{if(t.position===t.lineStart&&Ca(t)||r&&Ci(p))break;if(ge(p))if(l=t.line,c=t.lineStart,h=t.lineIndent,mt(t,!1,-1),t.lineIndent>=e){s=!0,p=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=l,t.lineStart=c,t.lineIndent=h;break}}s&&(tr(t,n,a,!1),Xl(t,t.line-l),n=a=t.position,s=!1),Er(p)||(a=t.position+1),p=t.input.charCodeAt(++t.position)}return tr(t,n,a,!1),t.result?!0:(t.kind=f,t.result=u,!1)}function tB(t,e){var r,i,o;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,i=o=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(tr(t,i,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)i=t.position,t.position++,o=t.position;else return!0;else ge(r)?(tr(t,i,o,!0),Xl(t,mt(t,!1,e)),i=o=t.position):t.position===t.lineStart&&Ca(t)?U(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);U(t,"unexpected end of the stream within a single quoted scalar")}function eB(t,e){var r,i,o,n,a,s;if(s=t.input.charCodeAt(t.position),s!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=i=t.position;(s=t.input.charCodeAt(t.position))!==0;){if(s===34)return tr(t,r,t.position,!0),t.position++,!0;if(s===92){if(tr(t,r,t.position,!0),s=t.input.charCodeAt(++t.position),ge(s))mt(t,!1,e);else if(s<256&&gg[s])t.result+=xg[s],t.position++;else if((a=XA(s))>0){for(o=a,n=0;o>0;o--)s=t.input.charCodeAt(++t.position),(a=VA(s))>=0?n=(n<<4)+a:U(t,"expected hexadecimal character");t.result+=ZA(n),t.position++}else U(t,"unknown escape sequence");r=i=t.position}else ge(s)?(tr(t,r,i,!0),Xl(t,mt(t,!1,e)),r=i=t.position):t.position===t.lineStart&&Ca(t)?U(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}U(t,"unexpected end of the stream within a double quoted scalar")}function rB(t,e){var r=!0,i,o,n,a=t.tag,s,l=t.anchor,c,h,f,u,p,x=Object.create(null),_,b,w,v;if(v=t.input.charCodeAt(t.position),v===91)h=93,p=!1,s=[];else if(v===123)h=125,p=!0,s={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),v=t.input.charCodeAt(++t.position);v!==0;){if(mt(t,!0,e),v=t.input.charCodeAt(t.position),v===h)return t.position++,t.tag=a,t.anchor=l,t.kind=p?"mapping":"sequence",t.result=s,!0;r?v===44&&U(t,"expected the node content, but found ','"):U(t,"missed comma between flow collection entries"),b=_=w=null,f=u=!1,v===63&&(c=t.input.charCodeAt(t.position+1),jt(c)&&(f=u=!0,t.position++,mt(t,!0,e))),i=t.line,o=t.lineStart,n=t.position,Si(t,e,fa,!1,!0),b=t.tag,_=t.result,mt(t,!0,e),v=t.input.charCodeAt(t.position),(u||t.line===i)&&v===58&&(f=!0,v=t.input.charCodeAt(++t.position),mt(t,!0,e),Si(t,e,fa,!1,!0),w=t.result),p?bi(t,s,x,b,_,w,i,o,n):f?s.push(bi(t,null,x,b,_,w,i,o,n)):s.push(_),mt(t,!0,e),v=t.input.charCodeAt(t.position),v===44?(r=!0,v=t.input.charCodeAt(++t.position)):r=!1}U(t,"unexpected end of the stream within a flow collection")}function iB(t,e){var r,i,o=wl,n=!1,a=!1,s=e,l=0,c=!1,h,f;if(f=t.input.charCodeAt(t.position),f===124)i=!1;else if(f===62)i=!0;else return!1;for(t.kind="scalar",t.result="";f!==0;)if(f=t.input.charCodeAt(++t.position),f===43||f===45)wl===o?o=f===43?cm:HA:U(t,"repeat of a chomping mode identifier");else if((h=KA(f))>=0)h===0?U(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?U(t,"repeat of an indentation width identifier"):(s=e+h-1,a=!0);else break;if(Er(f)){do f=t.input.charCodeAt(++t.position);while(Er(f));if(f===35)do f=t.input.charCodeAt(++t.position);while(!ge(f)&&f!==0)}for(;f!==0;){for(Vl(t),t.lineIndent=0,f=t.input.charCodeAt(t.position);(!a||t.lineIn
`,n?1+l:l):o===wl&&n&&(t.result+=`
`);break}for(i?Er(f)?(c=!0,t.result+=zt.repeat(`
`,n?1+l:l)):c?(c=!1,t.result+=zt.repeat(`
`,l+1)):l===0?n&&(t.result+=" "):t.result+=zt.repeat(`
`,l):t.result+=zt.repeat(`
`,n?1+l:l),n=!0,a=!0,l=0,r=t.position;!ge(f)&&f!==0;)f=t.input.charCodeAt(++t.position);tr(t,r,t.position,!1)}return!0}function dm(t,e){var r,i=t.tag,o=t.anchor,n=[],a,s=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=n),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,U(t,"tab characters must not be used in indentation")),!(l!==45||(a=t.input.charCodeAt(t.position+1),!jt(a))));){if(s=!0,t.position++,mt(t,!0,-1)&&t.lineIndent<=e){n.push(null),l=t.input.charCodeAt(t.position);continue}if(r=t.line,Si(t,e,pg,!1,!0),n.push(t.result),mt(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&l!==0)U(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return s?(t.tag=i,t.anchor=o,t.kind="sequence",t.result=n,!0):!1}function oB(t,e,r){var i,o,n,a,s,l,c=t.tag,h=t.anchor,f={},u=Object.create(null),p=null,x=null,_=null,b=!1,w=!1,v;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=f),v=t.input.charCodeAt(t.position);v!==0;){if(!b&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,U(t,"tab characters must not be used in indentation")),i=t.input.charCodeAt(t.position+1),n=t.line,(v===63||v===58)&&jt(i))v===63?(b&&(bi(t,f,u,p,x,null,a,s,l),p=x=_=null),w=!0,b=!0,o=!0):b?(b=!1,o=!0):U(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,v=i;else{if(a=t.line,s=t.lineStart,l=t.position,!Si(t,r,fg,!1,!0))break;if(t.line===n){for(v=t.input.charCodeAt(t.position);Er(v);)v=t.input.charCodeAt(++t.position);if(v===58)v=t.input.charCodeAt(++t.position),jt(v)||U(t,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(bi(t,f,u,p,x,null,a,s,l),p=x=_=null),w=!0,b=!1,o=!1,p=t.tag,x=t.result;else if(w)U(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=h,!0}else if(w)U(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=h,!0}if((t.line===n||t.lineIndent>e)&&(b&&(a=t.line,s=t.lineStart,l=t.position),Si(t,e,pa,!0,o)&&(b?x=t.result:_=t.result),b||(bi(t,f,u,p,x,_,a,s,l),p=x=_=null),mt(t,!0,-1),v=t.input.charCodeAt(t.position)),(t.line===n||t.lineIndent>e)&&v!==0)U(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return b&&bi(t,f,u,p,x,null,a,s,l),w&&(t.tag=c,t.anchor=h,t.kind="mapping",t.result=f),w}function nB(t){var e,r=!1,i=!1,o,n,a;if(a=t.input.charCodeAt(t.position),a!==33)return!1;if(t.tag!==null&&U(t,"duplication of a tag property"),a=t.input.charCodeAt(++t.position),a===60?(r=!0,a=t.input.charCodeAt(++t.position)):a===33?(i=!0,o="!!",a=t.input.charCodeAt(++t.position)):o="!",e=t.position,r){do a=t.input.charCodeAt(++t.position);while(a!==0&&a!==62);t.position<t.length?(n=t.input.slice(e,t.position),a=t.input.charCodeAt(++t.position)):U(t,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!jt(a);)a===33&&(i?U(t,"tag suffix cannot contain exclamation marks"):(o=t.input.slice(e-1,t.position+1),dg.test(o)||U(t,"named tag handle cannot contain such characters"),i=!0,e=t.position+1)),a=t.input.charCodeAt(++t.position);n=t.input.slice(e,t.position),GA.test(n)&&U(t,"tag suffix cannot contain flow indicator characters")}n&&!mg.test(n)&&U(t,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch{U(t,"tag name is malformed: "+n)}return r?t.tag=n:er.call(t.tagMap,o)?t.tag=t.tagMap[o]+n:o==="!"?t.tag="!"+n:o==="!!"?t.tag="tag:yaml.org,2002:"+n:U(t,'undeclared tag handle "'+o+'"'),!0}function aB(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&U(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!jt(r)&&!Ci(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&U(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function sB(t){var e,r,i;if(i=t.input.charCodeAt(t.position),i!==42)return!1;for(i=t.input.charCodeAt(++t.
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new QA(t,e),i=t.indexOf("\0");for(i!==-1&&(r.position=i,U(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)lB(r);return r.documents}function cB(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var i=_g(t,r);if(typeof e!="function")return i;for(var o=0,n=i.length;o<n;o+=1)e(i[o])}function uB(t,e){var r=_g(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Oe("expected a single document in the stream, but found more")}}var hB=cB,fB=uB,pB={loadAll:hB,load:fB},dB=cg,mB=pB.load;function gB(t){let e=t.match(Sm);if(!e)return{text:t,metadata:{}};let r=mB(e[1],{schema:dB})??{};r=typeof r=="object"&&!Array.isArray(r)?r:{};let i={};return r.displayMode&&(i.displayMode=r.displayMode.toString()),r.title&&(i.title=r.title.toString()),r.config&&(i.config=r.config),{text:t.slice(e[0].length),metadata:i}}var xB=t=>t.replace(/\r\n?/g,`
`).replace(/<(\w+)([^>]*)>/g,(e,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),yB=t=>{let{text:e,metadata:r}=gB(t),{displayMode:i,title:o,config:n={}}=r;return i&&(n.gantt||(n.gantt={}),n.gantt.displayMode=i),{title:o,config:n,text:e}},_B=t=>{let e=mo.detectInit(t)??{},r=mo.detectDirective(t,"wrap");return Array.isArray(r)?e.wrap=r.some(({type:i})=>{}):r?.type==="wrap"&&(e.wrap=!0),{text:Yv(t),directive:e}};function Cg(t){let e=xB(t),r=yB(e),i=_B(r.text),o=Lm(r.config,i.directive);return t=ww(i.text),{code:t,title:r.title,config:o}}var CB=5e4,bB="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",TB="sandbox",vB="loose",kB="http://www.w3.org/2000/svg",SB="http://www.w3.org/1999/xlink",wB="http://www.w3.org/1999/xhtml",AB="100%",BB="100%",FB="border:0;margin:0;",MB="margin:0",LB="allow-top-navigation-by-user-activation allow-popups",EB='The "iframe" tag is not supported by your browser.',OB=["foreignobject"],IB=["dominant-baseline"];function bg(t){let e=Cg(t);return la(),gk(e.config??{}),e}async function DB(t,e){jl(),t=bg(t).code;try{await Kl(t)}catch(r){if(e?.suppressErrors)return!1;throw r}return!0}var mm=(t,e,r=[])=>`
.${t} ${e} { ${r.join(" !important; ")} !important; }`,NB=(t,e={})=>{var r;let i="";if(t.themeCSS!==void 0&&(i+=`
${t.themeCSS}`),t.fontFamily!==void 0&&(i+=`
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(i+=`
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Hn(e)){let s=t.htmlLabels||((r=t.flowchart)==null?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(let l in e){let c=e[l];Hn(c.styles)||s.forEach(h=>{i+=mm(c.id,h,c.styles)}),Hn(c.textStyles)||(i+=mm(c.id,"tspan",c.textStyles))}}return i},PB=(t,e,r,i)=>{let o=NB(t,r),n=NS(e,o,t.themeVariables);return ra(Zd(`${i}{${n}}`),Qd)},RB=(t="",e,r)=>{let i=t;return!r&&!e&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=fk(i),i=i.replace(/<br>/g,"<br/>"),i},$B=(t="",e)=>{var r,i;let o=(i=(r=e?.viewBox)==null?void 0:r.baseVal)!=null&&i.height?e.viewBox.baseVal.height+"px":BB,n=btoa('<body style="'+MB+'">'+t+"</body>");return`<iframe style="width:${AB};height:${o};${FB}" src="data:text/html;base64,${n}" sandbox="${LB}">
${EB}
</iframe>`},gm=(t,e,r,i,o)=>{let n=t.append("div");n.attr("id",r),i&&n.attr("style",i);let a=n.append("svg").attr("id",e).attr("width","100%").attr("xmlns",kB);return o&&a.attr("xmlns:xlink",o),a.append("g"),t};function xm(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}var zB=(t,e,r,i)=>{var o,n,a;(o=t.getElementById(e))==null||o.remove(),(n=t.getElementById(r))==null||n.remove(),(a=t.getElementById(i))==null||a.remove()},qB=async function(t,e,r){var i,o,n,a,s,l;jl();let c=bg(e);e=c.code;let h=xe();Y.debug(h),e.length>(h?.maxTextSize??CB)&&(e=bB);let f="#"+t,u="i"+t,p="#"+u,x="d"+t,_="#"+x,b=Wt("body"),w=h.securityLevel===TB,v=h.securityLevel===vB,M=h.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),w){let G=xm(Wt(r),u);b=Wt(G.nodes()[0].contentDocument.body),b.node().style.margin=0}else b=Wt(r);gm(b,t,x,`font-family: ${M}`,SB)}else{if(zB(document,t,x,u),w){let G=xm(Wt("body"),u);b=Wt(G.nodes()[0].contentDocument.body),b.node().style.margin=0}else b=Wt("body");gm(b,t,x)}let E,I;try{E=await Kl(e,{title:c.title})}catch(G){E=new ha("error"),I=G}let B=b.select(_).node(),y=E.type,$=B.firstChild,et=$.firstChild,rt=(o=(i=E.renderer).getClasses)==null?void 0:o.call(i,e,E),T=PB(h,y,rt,f),C=document.createElement("style");C.innerHTML=T,$.insertBefore(C,et);try{await E.renderer.draw(e,t,om,E)}catch(G){throw QS.draw(e,t,om),G}let g=b.select(`${_} svg`),A=(a=(n=E.db).getAccTitle)==null?void 0:a.call(n),F=(l=(s=E.db).getAccDescription)==null?void 0:l.call(s);UB(y,g,A,F),b.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",wB);let N=b.select(_).node().innerHTML;if(Y.debug("config.arrowMarkerAbsolute",h.arrowMarkerAbsolute),N=RB(N,w,Tm(h.arrowMarkerAbsolute)),w){let G=b.select(_+" svg").node();N=$B(N,G)}else v||(N=Or.default.sanitize(N,{ADD_TAGS:OB,ADD_ATTR:IB}));if(Tw(),I)throw I;let j=Wt(w?p:_).node();return j&&"remove"in j&&j.remove(),{svg:N,bindFunctions:E.db.bindFunctions}};function WB(t={}){var e;t?.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),dk(t),t?.theme&&t.theme in Ie?t.themeVariables=Ie[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Ie.default.getThemeVariables(t.themeVariables));let r=typeof t=="object"?pk(t):Om();Dl(r.logLevel),jl()}var Kl=(t,e={})=>{let{code:r}=Cg(t);return bw(r,e)};function UB(t,e,r,i){kw(e,t),Sw(e,r,i,e.attr("id"))}var Ir=Object.freeze({render:qB,parse:DB,getDiagramFromText:Kl,initialize:WB,getConfig:xe,setConfig:Im,getSiteConfig:Om,updateSiteConfig:mk,reset:()=>{la()},globalReset:()=>{la(vi)},defaultConfig:vi});Dl(xe().logLevel);la(xe());var HB=async()=>{Y.debug("Loading registered diagrams");let e=(await Promise.allSettled(Object.entries(Ti).map(async([r,{detector:i,loader:o}])=>{if(o)try{Yl(r)}catch{try{let{diagram:a,id:s}=await o();ua(s,a,i)}catch(a){throw Y.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Ti[r],a}}}))).filter(r=>r.status==="rejected");if(e.length>0){Y.error(`Failed to load ${e.length} external diagrams`);for(let r of e)Y.error(r);throw new Error(`Failed to load ${e.length} external diagrams`)}},YB=(t,e,r)=>{Y.warn(t),Mm(t)?(r&&r(t.str,t.hash),e.push({...t,message:t.str,error:t})):(r&&r(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},Tg=async function(t={querySelector:".mermaid"}){try{await jB(t)}catch(e){if(Mm(e)&&Y.error(e.str),ye.parseError&&ye.parseError(e),!t.suppressErrors)throw Y.error("Use the suppressErrors option to suppress these errors"),e}},jB=async function({postRenderCallback:t,querySelector:e,nodes:r}={querySelector:".mermaid"}){let i=Ir.getConfig();Y.debug(`${t?"":"No "}Callback function found`);let o;if(r)o=r;else if(e)o=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");Y.debug(`Found ${o.length} diagrams`),i?.startOnLoad!==void 0&&(Y.debug("Start On Load: "+i?.startOnLoad),Ir.updateSiteConfig({startOnLoad:i?.startOnLoad}));let n=new mo.InitIDGenerator(i.det
/*! Bundled license information:
dompurify/dist/purify.js:
(*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE *)
mermaid/dist/mermaid-6dc72991.js:
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
(*! Check if previously processed *)
(*!
* Wait for document loaded before starting the execution
*)
*/
//# sourceMappingURL=chunk-YEACHCAA.min.js.map