openclaw-cortex 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-info.json +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/{command-registry-B3oActxS.js → command-registry-D82LWaRr.js} +4 -4
- package/dist/{completion-cli-C_J-jd9D.js → completion-cli-C1r90Nrk.js} +1 -1
- package/dist/{completion-cli-FIejYbDL.js → completion-cli-DPioCNYq.js} +2 -2
- package/dist/control-ui/_app/immutable/chunks/{Dj6tWyD-.js → -WaG6-Wa.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{B8HoIBa6.js → 5eXlR5OL.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{OqlKjpfM.js → B8DrosHE.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BocS-uwo.js → BBXALFLP.js} +3 -3
- package/dist/control-ui/_app/immutable/chunks/{X-E-wRlP.js → BEwWGCvZ.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BhtVncI_.js → BLtDog0v.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{DVEflJCB.js → BQJCZmRh.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{vBxFu2GM.js → BSVakDDW.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/BZPuz03W.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/{8sVJ3pgr.js → Ba7JwTQm.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CgeCLzn1.js → Bae3KkPP.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{-b0Q_QBa.js → Bh6lEBNv.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BdTFhrHG.js → BhXAsS8g.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{Cy9J7_9T.js → BrxfYBSP.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{UR4DV3hi.js → BsUBloFL.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{Bqq0fCUn.js → BsZ_uYnn.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{9SZhwvK0.js → C--qzJ6W.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{D4282KIs.js → C-JVM0la.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{Duq46cRv.js → C7KVOWgV.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BH-jV9iA.js → C7m1KhrR.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CtBXH4Dd.js → C8PuvvjP.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{giHw3ym1.js → C9VLzrYr.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CduS0XRA.js → CHTlfT2F.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{DgYPOa8E.js → CLY1rHgs.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{B17J7L81.js → CPgEtRZT.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BqJ-mFLn.js → CVAw3cDG.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{B9SC_jjC.js → CVZCvD9s.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{LmLbPTz2.js → C_LuOpHS.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/CbL4AD8o.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/{BCj3dr9H.js → CgWI5Oik.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{tMgN0hpT.js → CiyAy8dp.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BXILuhuG.js → CkF797NI.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{Dg6LpIYP.js → CrremO5S.js} +4 -4
- package/dist/control-ui/_app/immutable/chunks/{YYSXb5XV.js → CseiHJK5.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BQThDSlf.js → CxBb1Xul.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{D374cbd4.js → DCXXFcx5.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{D5RXhj7J.js → DJjlYUoC.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{eejBr3e5.js → DMY-Nl0I.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{D_9uFAU4.js → DRZM4rH8.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{kg_bi-Xy.js → DVy-_nYK.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{Ae3Dp1ab.js → DZsBL6ln.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{BD82r6qT.js → DnRi7lHs.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/Dt5mMewg.js +1 -0
- package/dist/control-ui/_app/immutable/chunks/{CGR62pw0.js → DtDnO4qq.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{C1MwqfJi.js → Du2cKiDo.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{C_e8KYob.js → DwPRscxf.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{tr5b7CMr.js → SHB02qEx.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CyMYiLoa.js → Tfaq1PK1.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/TuMlQKbB.js +5 -0
- package/dist/control-ui/_app/immutable/chunks/{Cm1fG3bI.js → aXQqHONi.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{By8LBh45.js → dQY-7VfC.js} +1 -1
- package/dist/control-ui/_app/immutable/chunks/{CGz_QUNI.js → kbQmmJpo.js} +1 -1
- package/dist/control-ui/_app/immutable/entry/{app.BwCsQnur.js → app.Cyu356mA.js} +2 -2
- package/dist/control-ui/_app/immutable/entry/start.CjGQB-0l.js +1 -0
- package/dist/control-ui/_app/immutable/nodes/{0.Dx9jJZSo.js → 0.EBH6_Ud6.js} +7 -7
- package/dist/control-ui/_app/immutable/nodes/{1.BL0sXqCf.js → 1.CrXLLMV6.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{10.BuHCBw2C.js → 10.CFP8x2TH.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{11.DaM8Z72M.js → 11.Sd6L6Nq2.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{12.DctBvrnI.js → 12.tVVXkjFh.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{13.CFlpuIKq.js → 13.D93_LX58.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{14.CDt16nEp.js → 14.DLNHet27.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{15.Bv1kE6xT.js → 15.CIr4ejir.js} +5 -5
- package/dist/control-ui/_app/immutable/nodes/{16.CPH_dMUA.js → 16.QX2ielYQ.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{17.Gpl84s2Y.js → 17.6qOW3iFE.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/2.BTwPpsUd.js +1 -0
- package/dist/control-ui/_app/immutable/nodes/{3.om6ap7s5.js → 3.CJTqvGaW.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{4.C7I3arj2.js → 4.Dz3JH-PB.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{5.PRkSVQb-.js → 5._XvLegf_.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{6.DXFMFV_g.js → 6.B2G6IFSu.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{7.pxR8f42V.js → 7.C7FQ9bAP.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{8.BjB_sfx0.js → 8.B5aVfCJN.js} +1 -1
- package/dist/control-ui/_app/immutable/nodes/{9.M8OWsIew.js → 9.DFhiU3G3.js} +1 -1
- package/dist/control-ui/_app/version.json +1 -1
- package/dist/control-ui/index.html +6 -6
- package/dist/control-ui/sw.js +28 -30
- package/dist/{doctor-completion-sHbqqiJx.js → doctor-completion-DhpniKWm.js} +1 -1
- package/dist/{doctor-completion-D7sHoVar.js → doctor-completion-fRx0enfv.js} +1 -1
- package/dist/entry.js +1 -1
- package/dist/{gateway-cli-Ch6gZFPT.js → gateway-cli-0_ycakyp.js} +2 -4
- package/dist/{gateway-cli-DZ4LS2Gw.js → gateway-cli-CJohs14T.js} +2 -4
- package/dist/index.js +1 -1
- package/dist/{onboard-C4csnV8K.js → onboard-5rjiYkS9.js} +1 -1
- package/dist/{onboard-PLazjdti.js → onboard-CqSt7u8D.js} +1 -1
- package/dist/{onboarding-B_8tUxFm.js → onboarding-CIYktbwg.js} +1 -1
- package/dist/{onboarding-IlBStOWQ.js → onboarding-WJQtWazg.js} +1 -1
- package/dist/{onboarding.finalize-CUfEwc_X.js → onboarding.finalize-DC7D8bBE.js} +4 -4
- package/dist/{onboarding.finalize-CscOXfzt.js → onboarding.finalize-Z7sroef4.js} +3 -3
- package/dist/{program-BEOFzhHf.js → program-DShibMGY.js} +2 -2
- package/dist/{program-context-CTRcW6qt.js → program-context-D9asDBqu.js} +6 -6
- package/dist/{prompt-select-styled-DxHHs9eu.js → prompt-select-styled-DCNKc8Jv.js} +1 -1
- package/dist/{prompt-select-styled-DEl1ViOW.js → prompt-select-styled-ca2X5yAy.js} +1 -1
- package/dist/{register.maintenance-BdAIyY7s.js → register.maintenance-5rJ9wTWH.js} +4 -4
- package/dist/{register.maintenance-jNMy6C-i.js → register.maintenance-za-PEn5C.js} +5 -5
- package/dist/{register.onboard-DlDtwyfd.js → register.onboard-C9qYHx42.js} +2 -2
- package/dist/{register.onboard-C_oZreTK.js → register.onboard-D54Cc4KC.js} +2 -2
- package/dist/{register.setup-WBFMBTcP.js → register.setup-D5P7KrfP.js} +2 -2
- package/dist/{register.setup-Ba6S39kI.js → register.setup-v5rR-FiC.js} +2 -2
- package/dist/{register.subclis-DtUGzYVz.js → register.subclis-CMThmpuD.js} +3 -3
- package/dist/{run-main-B6uubEb8.js → run-main-Bzchv5w8.js} +3 -3
- package/dist/{update-cli-COyyIt37.js → update-cli-BT2KxdtU.js} +5 -5
- package/dist/{update-cli-WAMVsPit.js → update-cli-miNRN0fB.js} +4 -4
- package/package.json +1 -1
- package/dist/control-ui/_app/immutable/chunks/BXjfcUYQ.js +0 -1
- package/dist/control-ui/_app/immutable/chunks/Bf6c0cUg.js +0 -1
- package/dist/control-ui/_app/immutable/chunks/C3MEsV6-.js +0 -1
- package/dist/control-ui/_app/immutable/chunks/jyaC7jQ0.js +0 -5
- package/dist/control-ui/_app/immutable/entry/start.Br3cjxv0.js +0 -1
- package/dist/control-ui/_app/immutable/nodes/2.Zm6j08A_.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DcOAMOlN.js","./DpBBTLWw.js","./qR_TM3YX.js","./
|
|
2
|
-
import{i as Wn,d as bt,b as f,f as k,s as K,a as de,c as Vt,t as wt,e as Lt,g as ft,r as qn}from"./B2A7gHtL.js";import{t as H,x as Yn,ak as Zn,a3 as zr,be as $r,O as Vn,K as Br,L as Ur,bc as Hr,b9 as Fr,N as jr,b1 as Gr,bf as Wr,bg as qr,P as rn,p as xt,c as kt,h,r as p,j as tt,f as x,n as Tt,g as i,d as O,i as J,s as ue,u as At,a as dr,F as Yr,k as Zr,e as Vr,$ as Kr}from"./qR_TM3YX.js";import{i as L,_ as wn}from"./DpBBTLWw.js";import{g as Kt,s as Se,r as Xr,e as ct,i as vt,b as Be,a as hn}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DcOAMOlN.js","./DpBBTLWw.js","./qR_TM3YX.js","./CrremO5S.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{i as Wn,d as bt,b as f,f as k,s as K,a as de,c as Vt,t as wt,e as Lt,g as ft,r as qn}from"./B2A7gHtL.js";import{t as H,x as Yn,ak as Zn,a3 as zr,be as $r,O as Vn,K as Br,L as Ur,bc as Hr,b9 as Fr,N as jr,b1 as Gr,bf as Wr,bg as qr,P as rn,p as xt,c as kt,h,r as p,j as tt,f as x,n as Tt,g as i,d as O,i as J,s as ue,u as At,a as dr,F as Yr,k as Zr,e as Vr,$ as Kr}from"./qR_TM3YX.js";import{i as L,_ as wn}from"./DpBBTLWw.js";import{g as Kt,s as Se,r as Xr,e as ct,i as vt,b as Be,a as hn}from"./BLtDog0v.js";import{h as Qr}from"./CXQ1lKJR.js";import{b as pr}from"./nnazh41B.js";import{p as Qe}from"./CkAYskLX.js";import{g as yn}from"./C--qzJ6W.js";import{g as Xt,s as Kn}from"./Tfaq1PK1.js";import{g as hr}from"./Be_uRYmX.js";import{C as Jr}from"./TuMlQKbB.js";import{b as fn}from"./BYXRTvT-.js";import{s as gn}from"./SHB02qEx.js";import{f as ea,g as ta}from"./DPrxUVm_.js";const fr=!0;function na(n,e,t=!1,a=!1,r=!1){var s=n,l="";H(()=>{var c=zr;if(l===(l=e()??"")){Yn&&Zn();return}if(c.nodes!==null&&($r(c.nodes.start,c.nodes.end),c.nodes=null),l!==""){if(Yn){Vn.data;for(var d=Zn(),u=d;d!==null&&(d.nodeType!==Br||d.data!=="");)u=d,d=Ur(d);if(d===null)throw Hr(),Fr;Wn(Vn,u),s=jr(d);return}var y=t?Wr:a?qr:void 0,b=Gr(t?"svg":a?"math":"template",y);b.innerHTML=l;var w=t||a?b:b.content;if(Wn(rn(w),w.lastChild),t||a)for(;rn(w);)s.before(rn(w));else s.before(w)}})}var ra=k("<button> </button>"),aa=Vt('<svg class="w-4 h-4 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'),sa=Vt('<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"></path></svg>'),ia=k('<div class="px-3 py-2.5 rounded-lg border border-transparent"><div class="flex items-center justify-between mb-1.5"><div class="h-4 w-32 rounded bg-bg-tertiary skeleton-pulse"></div> <div class="h-3 w-8 rounded bg-bg-tertiary skeleton-pulse"></div></div> <div class="h-3 w-48 rounded bg-bg-tertiary skeleton-pulse" style="animation-delay: 0.1s"></div></div>'),oa=k('<div class="px-2 pb-2 space-y-1"></div>'),la=k('<div class="px-4 py-8 text-center text-text-muted text-sm"><!></div>'),ca=k('<p class="text-xs text-text-muted truncate mb-1"> </p>'),ua=k('<p class="text-xs text-text-muted/50 truncate mb-1 italic">No messages yet</p>'),da=k('<span class="inline-block text-[10px] px-1.5 py-0.5 rounded bg-accent-purple/15 text-purple-300/80 leading-none"> </span>'),pa=k("<span> </span>"),ha=k('<span class="inline-block text-[10px] px-1.5 py-0.5 rounded bg-bg-tertiary text-text-muted leading-none"> </span>'),fa=k('<button><div class="flex items-center justify-between mb-1"><div class="flex items-center gap-2 flex-1 min-w-0"><svg fill="currentColor" viewBox="0 0 24 24"><path></path></svg> <span> </span></div> <span class="text-xs text-text-muted flex-shrink-0 ml-2"> </span></div> <!> <div class="flex items-center gap-1.5 flex-wrap"><!> <!> <!></div></button>'),ga=k(`<div class="flex items-center gap-3 p-4 border-b border-border-default"><img src="/logo.png" alt="Cortex" class="w-10 h-10 rounded-lg"/> <div class="flex-1 min-w-0"><h1 class="text-lg font-semibold gradient-text tracking-wide">CORTEX</h1></div> <button class="p-2 rounded-lg hover:bg-bg-hover text-text-muted hover:text-text-primary transition-colors md:hidden min-h-11" aria-label="Close sidebar"><svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg></button> <button class="p-1 rounded hover:bg-bg-hover text-text-muted hover:text-text-primary transition-colors hidden md:block" aria-label="Collapse sidebar"><svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 19l-7-7 7-7m8 14l-7-7 7-7"></path></svg></button></div> <div class="px-3 py-2 border-b border-border-default"><!></div> <div class="p-3 space-y-2 border-b border-border-default"><div class="relative"><label for="session-search" class="sr-only">Search sessions</label> <input id="session-search" type="text" placeholder="Search sessions..." class="w-full pl-8 pr-3 py-2 text-sm rounded-lg glass border border-border-default bg-bg-tertiary
|
|
3
3
|
text-text-primary placeholder-text-muted
|
|
4
4
|
focus:outline-none focus:border-accent-cyan focus:glow-cyan
|
|
5
5
|
transition-all duration-200"/> <svg class="absolute left-2.5 top-2.5 w-4 h-4 text-text-muted" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg></div> <div class="flex gap-1"></div></div> <div class="px-3 py-2 flex items-center justify-between"><span class="text-xs font-medium text-text-muted uppercase tracking-wider"> </span> <div class="flex gap-1"><button class="p-1 rounded hover:bg-bg-hover text-text-muted hover:text-accent-green transition-colors
|
|
@@ -66,7 +66,7 @@ ${n}</tr>
|
|
|
66
66
|
`}strong({tokens:n}){return`<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return`<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return`<code>${ot(n,!0)}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:t}){const a=this.parser.parseInline(t),r=Jn(n);if(r===null)return a;n=r;let s='<a href="'+n+'"';return e&&(s+=' title="'+ot(e)+'"'),s+=">"+a+"</a>",s}image({href:n,title:e,text:t,tokens:a}){a&&(t=this.parser.parseInline(a,this.parser.textRenderer));const r=Jn(n);if(r===null)return ot(t);n=r;let s=`<img src="${n}" alt="${t}"`;return e&&(s+=` title="${ot(e)}"`),s+=">",s}text(n){return"tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):"escaped"in n&&n.escaped?n.text:ot(n.text)}},In=class{strong({text:n}){return n}em({text:n}){return n}codespan({text:n}){return n}del({text:n}){return n}html({text:n}){return n}text({text:n}){return n}link({text:n}){return""+n}image({text:n}){return""+n}br(){return""}},mt=class bn{options;renderer;textRenderer;constructor(e){this.options=e||Et,this.options.renderer=this.options.renderer||new Bt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new In}static parse(e,t){return new bn(t).parse(e)}static parseInline(e,t){return new bn(t).parseInline(e)}parse(e,t=!0){let a="";for(let r=0;r<e.length;r++){const s=e[r];if(this.options.extensions?.renderers?.[s.type]){const c=s,d=this.options.extensions.renderers[c.type].call({parser:this},c);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(c.type)){a+=d||"";continue}}const l=s;switch(l.type){case"space":{a+=this.renderer.space(l);continue}case"hr":{a+=this.renderer.hr(l);continue}case"heading":{a+=this.renderer.heading(l);continue}case"code":{a+=this.renderer.code(l);continue}case"table":{a+=this.renderer.table(l);continue}case"blockquote":{a+=this.renderer.blockquote(l);continue}case"list":{a+=this.renderer.list(l);continue}case"html":{a+=this.renderer.html(l);continue}case"paragraph":{a+=this.renderer.paragraph(l);continue}case"text":{let c=l,d=this.renderer.text(c);for(;r+1<e.length&&e[r+1].type==="text";)c=e[++r],d+=`
|
|
67
67
|
`+this.renderer.text(c);t?a+=this.renderer.paragraph({type:"paragraph",raw:d,text:d,tokens:[{type:"text",raw:d,text:d,escaped:!0}]}):a+=d;continue}default:{const c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return a}parseInline(e,t=this.renderer){let a="";for(let r=0;r<e.length;r++){const s=e[r];if(this.options.extensions?.renderers?.[s.type]){const c=this.options.extensions.renderers[s.type].call({parser:this},s);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){a+=c||"";continue}}const l=s;switch(l.type){case"escape":{a+=t.text(l);break}case"html":{a+=t.html(l);break}case"link":{a+=t.link(l);break}case"image":{a+=t.image(l);break}case"strong":{a+=t.strong(l);break}case"em":{a+=t.em(l);break}case"codespan":{a+=t.codespan(l);break}case"br":{a+=t.br(l);break}case"del":{a+=t.del(l);break}case"text":{a+=t.text(l);break}default:{const c='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(c),"";throw new Error(c)}}}return a}},Wt=class{options;block;constructor(n){this.options=n||Et}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}provideLexer(){return this.block?gt.lex:gt.lexInline}provideParser(){return this.block?mt.parse:mt.parseInline}},Sr=class{defaults=Tn();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=mt;Renderer=Bt;TextRenderer=In;Lexer=gt;Tokenizer=Zt;Hooks=Wt;constructor(...n){this.use(...n)}walkTokens(n,e){let t=[];for(const a of n)switch(t=t.concat(e.call(this,a)),a.type){case"table":{const r=a;for(const s of r.header)t=t.concat(this.walkTokens(s.tokens,e));for(const s of r.rows)for(const l of s)t=t.concat(this.walkTokens(l.tokens,e));break}case"list":{const r=a;t=t.concat(this.walkTokens(r.items,e));break}default:{const r=a;this.defaults.extensions?.childTokens?.[r.type]?this.defaults.extensions.childTokens[r.type].forEach(s=>{const l=r[s].flat(1/0);t=t.concat(this.walkTokens(l,e))}):r.tokens&&(t=t.concat(this.walkTokens(r.tokens,e)))}}return t}use(...n){const e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(t=>{const a={...t};if(a.async=this.defaults.async||a.async||!1,t.extensions&&(t.extensions.forEach(r=>{if(!r.name)throw new Error("extension name required");if("renderer"in r){const s=e.renderers[r.name];s?e.renderers[r.name]=function(...l){let c=r.renderer.apply(this,l);return c===!1&&(c=s.apply(this,l)),c}:e.renderers[r.name]=r.renderer}if("tokenizer"in r){if(!r.level||r.level!=="block"&&r.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const s=e[r.level];s?s.unshift(r.tokenizer):e[r.level]=[r.tokenizer],r.start&&(r.level==="block"?e.startBlock?e.startBlock.push(r.start):e.startBlock=[r.start]:r.level==="inline"&&(e.startInline?e.startInline.push(r.start):e.startInline=[r.start]))}"childTokens"in r&&r.childTokens&&(e.childTokens[r.name]=r.childTokens)}),a.extensions=e),t.renderer){const r=this.defaults.renderer||new Bt(this.defaults);for(const s in t.renderer){if(!(s in r))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;const l=s,c=t.renderer[l],d=r[l];r[l]=(...u)=>{let y=c.apply(r,u);return y===!1&&(y=d.apply(r,u)),y||""}}a.renderer=r}if(t.tokenizer){const r=this.defaults.tokenizer||new Zt(this.defaults);for(const s in t.tokenizer){if(!(s in r))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;const l=s,c=t.tokenizer[l],d=r[l];r[l]=(...u)=>{let y=c.apply(r,u);return y===!1&&(y=d.apply(r,u)),y}}a.tokenizer=r}if(t.hooks){const r=this.defaults.hooks||new Wt;for(const s in t.hooks){if(!(s in r))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;const l=s,c=t.hooks[l],d=r[l];Wt.passThroughHooks.has(s)?r[l]=u=>{if(this.defaults.async)return Promise.resolve(c.call(r,u)).then(b=>d.call(r,b));const y=c.call(r,u);return d.call(r,y)}:r[l]=(...u)=>{let y=c.apply(r,u);return y===!1&&(y=d.apply(r,u)),y}}a.hooks=r}if(t.walkTokens){const r=this.defaults.walkTokens,s=t.walkTokens;a.walkTokens=function(l){let c=[];return c.push(s.call(this,l)),r&&(c=c.concat(r.call(this,l))),c}}this.defaults={...this.defaults,...a}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,e){return gt.lex(n,e??this.defaults)}parser(n,e){return mt.parse(n,e??this.defaults)}parseMarkdown(n){return(t,a)=>{const r={...a},s={...this.defaults,...r},l=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&r.async===!1)return l(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 t>"u"||t===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));s.hooks&&(s.hooks.options=s,s.hooks.block=n);const c=s.hooks?s.hooks.provideLexer():n?gt.lex:gt.lexInline,d=s.hooks?s.hooks.provideParser():n?mt.parse:mt.parseInline;if(s.async)return Promise.resolve(s.hooks?s.hooks.preprocess(t):t).then(u=>c(u,s)).then(u=>s.hooks?s.hooks.processAllTokens(u):u).then(u=>s.walkTokens?Promise.all(this.walkTokens(u,s.walkTokens)).then(()=>u):u).then(u=>d(u,s)).then(u=>s.hooks?s.hooks.postprocess(u):u).catch(l);try{s.hooks&&(t=s.hooks.preprocess(t));let u=c(t,s);s.hooks&&(u=s.hooks.processAllTokens(u)),s.walkTokens&&this.walkTokens(u,s.walkTokens);let y=d(u,s);return s.hooks&&(y=s.hooks.postprocess(y)),y}catch(u){return l(u)}}}onError(n,e){return t=>{if(t.message+=`
|
|
68
68
|
Please report this to https://github.com/markedjs/marked.`,n){const a="<p>An error occurred:</p><pre>"+ot(t.message+"",!0)+"</pre>";return e?Promise.resolve(a):a}if(e)return Promise.reject(t);throw t}}},St=new Sr;function fe(n,e){return St.parse(n,e)}fe.options=fe.setOptions=function(n){return St.setOptions(n),fe.defaults=St.defaults,gr(fe.defaults),fe};fe.getDefaults=Tn;fe.defaults=Et;fe.use=function(...n){return St.use(...n),fe.defaults=St.defaults,gr(fe.defaults),fe};fe.walkTokens=function(n,e){return St.walkTokens(n,e)};fe.parseInline=St.parseInline;fe.Parser=mt;fe.parser=mt.parse;fe.Renderer=Bt;fe.TextRenderer=In;fe.Lexer=gt;fe.lexer=gt.lex;fe.Tokenizer=Zt;fe.Hooks=Wt;fe.parse=fe;fe.options;fe.setOptions;fe.use;fe.walkTokens;fe.parseInline;mt.parse;gt.lex;const{entries:Er,setPrototypeOf:nr,isFrozen:Ja,getPrototypeOf:es,getOwnPropertyDescriptor:ts}=Object;let{freeze:He,seal:nt,create:xn}=Object,{apply:kn,construct:_n}=typeof Reflect<"u"&&Reflect;He||(He=function(e){return e});nt||(nt=function(e){return e});kn||(kn=function(e,t){for(var a=arguments.length,r=new Array(a>2?a-2:0),s=2;s<a;s++)r[s-2]=arguments[s];return e.apply(t,r)});_n||(_n=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];return new e(...a)});const jt=Fe(Array.prototype.forEach),ns=Fe(Array.prototype.lastIndexOf),rr=Fe(Array.prototype.pop),Dt=Fe(Array.prototype.push),rs=Fe(Array.prototype.splice),qt=Fe(String.prototype.toLowerCase),an=Fe(String.prototype.toString),sn=Fe(String.prototype.match),Ot=Fe(String.prototype.replace),as=Fe(String.prototype.indexOf),ss=Fe(String.prototype.trim),rt=Fe(Object.prototype.hasOwnProperty),$e=Fe(RegExp.prototype.test),Nt=is(TypeError);function Fe(n){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];return kn(n,e,a)}}function is(n){return function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return _n(n,t)}}function Y(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qt;nr&&nr(n,null);let a=e.length;for(;a--;){let r=e[a];if(typeof r=="string"){const s=t(r);s!==r&&(Ja(e)||(e[a]=s),r=s)}n[r]=!0}return n}function os(n){for(let e=0;e<n.length;e++)rt(n,e)||(n[e]=null);return n}function lt(n){const e=xn(null);for(const[t,a]of Er(n))rt(n,t)&&(Array.isArray(a)?e[t]=os(a):a&&typeof a=="object"&&a.constructor===Object?e[t]=lt(a):e[t]=a);return e}function Pt(n,e){for(;n!==null;){const a=ts(n,e);if(a){if(a.get)return Fe(a.get);if(typeof a.value=="function")return Fe(a.value)}n=es(n)}function t(){return null}return t}const ar=He(["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"]),on=He(["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"]),ln=He(["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"]),ls=He(["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"]),cn=He(["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"]),cs=He(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),sr=He(["#text"]),ir=He(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),un=He(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),or=He(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Gt=He(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),us=nt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ds=nt(/<%[\w\W]*|[\w\W]*%>/gm),ps=nt(/\$\{[\w\W]*/gm),hs=nt(/^data-[\-\w.\u00B7-\uFFFF]+$/),fs=nt(/^aria-[\-\w]+$/),Cr=nt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gs=nt(/^(?:\w+script|data):/i),ms=nt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Rr=nt(/^html$/i),vs=nt(/^[a-z][.\w]*(-[.\w]+)+$/i);var lr=Object.freeze({__proto__:null,ARIA_ATTR:fs,ATTR_WHITESPACE:ms,CUSTOM_ELEMENT:vs,DATA_ATTR:hs,DOCTYPE_NAME:Rr,ERB_EXPR:ds,IS_ALLOWED_URI:Cr,IS_SCRIPT_OR_DATA:gs,MUSTACHE_EXPR:us,TMPLIT_EXPR:ps});const zt={element:1,text:3,progressingInstruction:7,comment:8,document:9},bs=function(){return typeof window>"u"?null:window},xs=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let a=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(a=t.getAttribute(r));const s="dompurify"+(a?"#"+a:"");try{return e.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},cr=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Lr(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bs();const e=D=>Lr(D);if(e.version="3.3.1",e.removed=[],!n||!n.document||n.document.nodeType!==zt.document||!n.Element)return e.isSupported=!1,e;let{document:t}=n;const a=t,r=a.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:c,Element:d,NodeFilter:u,NamedNodeMap:y=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:b,DOMParser:w,trustedTypes:N}=n,M=d.prototype,P=Pt(M,"cloneNode"),G=Pt(M,"remove"),W=Pt(M,"nextSibling"),ge=Pt(M,"childNodes"),pe=Pt(M,"parentNode");if(typeof l=="function"){const D=t.createElement("template");D.content&&D.content.ownerDocument&&(t=D.content.ownerDocument)}let z,re="";const{implementation:he,createNodeIterator:T,createDocumentFragment:Z,getElementsByTagName:I}=t,{importNode:$}=a;let B=cr();e.isSupported=typeof Er=="function"&&typeof pe=="function"&&he&&he.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:ae,ERB_EXPR:ve,TMPLIT_EXPR:me,DATA_ATTR:xe,ARIA_ATTR:Te,IS_SCRIPT_OR_DATA:q,ATTR_WHITESPACE:j,CUSTOM_ELEMENT:ee}=lr;let{IS_ALLOWED_URI:te}=lr,A=null;const v=Y({},[...ar,...on,...ln,...cn,...sr]);let S=null;const we=Y({},[...ir,...un,...or,...Gt]);let m=Object.seal(xn(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}})),C=null,le=null;const X=Object.seal(xn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let se=!0,ye=!0,je=!1,Me=!0,Ze=!1,ie=!0,U=!1,_e=!1,Ee=!1,Ce=!1,Ge=!1,ze=!1,at=!0,V=!1;const be="user-content-";let We=!0,_=!1,R={},Q=null;const Ie=Y({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Le=null;const De=Y({},["audio","video","img","source","image","track"]);let Oe=null;const ut=Y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),dt="http://www.w3.org/1998/Math/MathML",_t="http://www.w3.org/2000/svg",Ve="http://www.w3.org/1999/xhtml";let ce=Ve,F=!1,ne=null;const Ke=Y({},[dt,_t,Ve],an);let Je=Y({},["mi","mo","mn","ms","mtext"]),Xe=Y({},["annotation-xml"]);const et=Y({},["title","style","font","a","script"]);let st=null;const Ir=["application/xhtml+xml","text/html"],Dr="text/html";let Re=null,Ct=null;const Or=t.createElement("form"),Dn=function(o){return o instanceof RegExp||o instanceof Function},en=function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ct&&Ct===o)){if((!o||typeof o!="object")&&(o={}),o=lt(o),st=Ir.indexOf(o.PARSER_MEDIA_TYPE)===-1?Dr:o.PARSER_MEDIA_TYPE,Re=st==="application/xhtml+xml"?an:qt,A=rt(o,"ALLOWED_TAGS")?Y({},o.ALLOWED_TAGS,Re):v,S=rt(o,"ALLOWED_ATTR")?Y({},o.ALLOWED_ATTR,Re):we,ne=rt(o,"ALLOWED_NAMESPACES")?Y({},o.ALLOWED_NAMESPACES,an):Ke,Oe=rt(o,"ADD_URI_SAFE_ATTR")?Y(lt(ut),o.ADD_URI_SAFE_ATTR,Re):ut,Le=rt(o,"ADD_DATA_URI_TAGS")?Y(lt(De),o.ADD_DATA_URI_TAGS,Re):De,Q=rt(o,"FORBID_CONTENTS")?Y({},o.FORBID_CONTENTS,Re):Ie,C=rt(o,"FORBID_TAGS")?Y({},o.FORBID_TAGS,Re):lt({}),le=rt(o,"FORBID_ATTR")?Y({},o.FORBID_ATTR,Re):lt({}),R=rt(o,"USE_PROFILES")?o.USE_PROFILES:!1,se=o.ALLOW_ARIA_ATTR!==!1,ye=o.ALLOW_DATA_ATTR!==!1,je=o.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=o.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ze=o.SAFE_FOR_TEMPLATES||!1,ie=o.SAFE_FOR_XML!==!1,U=o.WHOLE_DOCUMENT||!1,Ce=o.RETURN_DOM||!1,Ge=o.RETURN_DOM_FRAGMENT||!1,ze=o.RETURN_TRUSTED_TYPE||!1,Ee=o.FORCE_BODY||!1,at=o.SANITIZE_DOM!==!1,V=o.SANITIZE_NAMED_PROPS||!1,We=o.KEEP_CONTENT!==!1,_=o.IN_PLACE||!1,te=o.ALLOWED_URI_REGEXP||Cr,ce=o.NAMESPACE||Ve,Je=o.MATHML_TEXT_INTEGRATION_POINTS||Je,Xe=o.HTML_INTEGRATION_POINTS||Xe,m=o.CUSTOM_ELEMENT_HANDLING||{},o.CUSTOM_ELEMENT_HANDLING&&Dn(o.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(m.tagNameCheck=o.CUSTOM_ELEMENT_HANDLING.tagNameCheck),o.CUSTOM_ELEMENT_HANDLING&&Dn(o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(m.attributeNameCheck=o.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),o.CUSTOM_ELEMENT_HANDLING&&typeof o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(m.allowCustomizedBuiltInElements=o.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ze&&(ye=!1),Ge&&(Ce=!0),R&&(A=Y({},sr),S=[],R.html===!0&&(Y(A,ar),Y(S,ir)),R.svg===!0&&(Y(A,on),Y(S,un),Y(S,Gt)),R.svgFilters===!0&&(Y(A,ln),Y(S,un),Y(S,Gt)),R.mathMl===!0&&(Y(A,cn),Y(S,or),Y(S,Gt))),o.ADD_TAGS&&(typeof o.ADD_TAGS=="function"?X.tagCheck=o.ADD_TAGS:(A===v&&(A=lt(A)),Y(A,o.ADD_TAGS,Re))),o.ADD_ATTR&&(typeof o.ADD_ATTR=="function"?X.attributeCheck=o.ADD_ATTR:(S===we&&(S=lt(S)),Y(S,o.ADD_ATTR,Re))),o.ADD_URI_SAFE_ATTR&&Y(Oe,o.ADD_URI_SAFE_ATTR,Re),o.FORBID_CONTENTS&&(Q===Ie&&(Q=lt(Q)),Y(Q,o.FORBID_CONTENTS,Re)),o.ADD_FORBID_CONTENTS&&(Q===Ie&&(Q=lt(Q)),Y(Q,o.ADD_FORBID_CONTENTS,Re)),We&&(A["#text"]=!0),U&&Y(A,["html","head","body"]),A.table&&(Y(A,["tbody"]),delete C.tbody),o.TRUSTED_TYPES_POLICY){if(typeof o.TRUSTED_TYPES_POLICY.createHTML!="function")throw Nt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof o.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Nt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');z=o.TRUSTED_TYPES_POLICY,re=z.createHTML("")}else z===void 0&&(z=xs(N,r)),z!==null&&typeof re=="string"&&(re=z.createHTML(""));He&&He(o),Ct=o}},On=Y({},[...on,...ln,...ls]),Nn=Y({},[...cn,...cs]),Nr=function(o){let g=pe(o);(!g||!g.tagName)&&(g={namespaceURI:ce,tagName:"template"});const E=qt(o.tagName),ke=qt(g.tagName);return ne[o.namespaceURI]?o.namespaceURI===_t?g.namespaceURI===Ve?E==="svg":g.namespaceURI===dt?E==="svg"&&(ke==="annotation-xml"||Je[ke]):!!On[E]:o.namespaceURI===dt?g.namespaceURI===Ve?E==="math":g.namespaceURI===_t?E==="math"&&Xe[ke]:!!Nn[E]:o.namespaceURI===Ve?g.namespaceURI===_t&&!Xe[ke]||g.namespaceURI===dt&&!Je[ke]?!1:!Nn[E]&&(et[E]||!On[E]):!!(st==="application/xhtml+xml"&&ne[o.namespaceURI]):!1},it=function(o){Dt(e.removed,{element:o});try{pe(o).removeChild(o)}catch{G(o)}},yt=function(o,g){try{Dt(e.removed,{attribute:g.getAttributeNode(o),from:g})}catch{Dt(e.removed,{attribute:null,from:g})}if(g.removeAttribute(o),o==="is")if(Ce||Ge)try{it(g)}catch{}else try{g.setAttribute(o,"")}catch{}},Pn=function(o){let g=null,E=null;if(Ee)o="<remove></remove>"+o;else{const Ae=sn(o,/^[\r\n\t ]+/);E=Ae&&Ae[0]}st==="application/xhtml+xml"&&ce===Ve&&(o='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+o+"</body></html>");const ke=z?z.createHTML(o):o;if(ce===Ve)try{g=new w().parseFromString(ke,st)}catch{}if(!g||!g.documentElement){g=he.createDocument(ce,"template",null);try{g.documentElement.innerHTML=F?re:ke}catch{}}const Pe=g.body||g.documentElement;return o&&E&&Pe.insertBefore(t.createTextNode(E),Pe.childNodes[0]||null),ce===Ve?I.call(g,U?"html":"body")[0]:U?g.documentElement:Pe},zn=function(o){return T.call(o.ownerDocument||o,o,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},tn=function(o){return o instanceof b&&(typeof o.nodeName!="string"||typeof o.textContent!="string"||typeof o.removeChild!="function"||!(o.attributes instanceof y)||typeof o.removeAttribute!="function"||typeof o.setAttribute!="function"||typeof o.namespaceURI!="string"||typeof o.insertBefore!="function"||typeof o.hasChildNodes!="function")},$n=function(o){return typeof c=="function"&&o instanceof c};function pt(D,o,g){jt(D,E=>{E.call(e,o,g,Ct)})}const Bn=function(o){let g=null;if(pt(B.beforeSanitizeElements,o,null),tn(o))return it(o),!0;const E=Re(o.nodeName);if(pt(B.uponSanitizeElement,o,{tagName:E,allowedTags:A}),ie&&o.hasChildNodes()&&!$n(o.firstElementChild)&&$e(/<[/\w!]/g,o.innerHTML)&&$e(/<[/\w!]/g,o.textContent)||o.nodeType===zt.progressingInstruction||ie&&o.nodeType===zt.comment&&$e(/<[/\w]/g,o.data))return it(o),!0;if(!(X.tagCheck instanceof Function&&X.tagCheck(E))&&(!A[E]||C[E])){if(!C[E]&&Hn(E)&&(m.tagNameCheck instanceof RegExp&&$e(m.tagNameCheck,E)||m.tagNameCheck instanceof Function&&m.tagNameCheck(E)))return!1;if(We&&!Q[E]){const ke=pe(o)||o.parentNode,Pe=ge(o)||o.childNodes;if(Pe&&ke){const Ae=Pe.length;for(let qe=Ae-1;qe>=0;--qe){const ht=P(Pe[qe],!0);ht.__removalCount=(o.__removalCount||0)+1,ke.insertBefore(ht,W(o))}}}return it(o),!0}return o instanceof d&&!Nr(o)||(E==="noscript"||E==="noembed"||E==="noframes")&&$e(/<\/no(script|embed|frames)/i,o.innerHTML)?(it(o),!0):(Ze&&o.nodeType===zt.text&&(g=o.textContent,jt([ae,ve,me],ke=>{g=Ot(g,ke," ")}),o.textContent!==g&&(Dt(e.removed,{element:o.cloneNode()}),o.textContent=g)),pt(B.afterSanitizeElements,o,null),!1)},Un=function(o,g,E){if(at&&(g==="id"||g==="name")&&(E in t||E in Or))return!1;if(!(ye&&!le[g]&&$e(xe,g))){if(!(se&&$e(Te,g))){if(!(X.attributeCheck instanceof Function&&X.attributeCheck(g,o))){if(!S[g]||le[g]){if(!(Hn(o)&&(m.tagNameCheck instanceof RegExp&&$e(m.tagNameCheck,o)||m.tagNameCheck instanceof Function&&m.tagNameCheck(o))&&(m.attributeNameCheck instanceof RegExp&&$e(m.attributeNameCheck,g)||m.attributeNameCheck instanceof Function&&m.attributeNameCheck(g,o))||g==="is"&&m.allowCustomizedBuiltInElements&&(m.tagNameCheck instanceof RegExp&&$e(m.tagNameCheck,E)||m.tagNameCheck instanceof Function&&m.tagNameCheck(E))))return!1}else if(!Oe[g]){if(!$e(te,Ot(E,j,""))){if(!((g==="src"||g==="xlink:href"||g==="href")&&o!=="script"&&as(E,"data:")===0&&Le[o])){if(!(je&&!$e(q,Ot(E,j,"")))){if(E)return!1}}}}}}}return!0},Hn=function(o){return o!=="annotation-xml"&&sn(o,ee)},Fn=function(o){pt(B.beforeSanitizeAttributes,o,null);const{attributes:g}=o;if(!g||tn(o))return;const E={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:S,forceKeepAttr:void 0};let ke=g.length;for(;ke--;){const Pe=g[ke],{name:Ae,namespaceURI:qe,value:ht}=Pe,Rt=Re(Ae),nn=ht;let Ne=Ae==="value"?nn:ss(nn);if(E.attrName=Rt,E.attrValue=Ne,E.keepAttr=!0,E.forceKeepAttr=void 0,pt(B.uponSanitizeAttribute,o,E),Ne=E.attrValue,V&&(Rt==="id"||Rt==="name")&&(yt(Ae,o),Ne=be+Ne),ie&&$e(/((--!?|])>)|<\/(style|title|textarea)/i,Ne)){yt(Ae,o);continue}if(Rt==="attributename"&&sn(Ne,"href")){yt(Ae,o);continue}if(E.forceKeepAttr)continue;if(!E.keepAttr){yt(Ae,o);continue}if(!Me&&$e(/\/>/i,Ne)){yt(Ae,o);continue}Ze&&jt([ae,ve,me],Gn=>{Ne=Ot(Ne,Gn," ")});const jn=Re(o.nodeName);if(!Un(jn,Rt,Ne)){yt(Ae,o);continue}if(z&&typeof N=="object"&&typeof N.getAttributeType=="function"&&!qe)switch(N.getAttributeType(jn,Rt)){case"TrustedHTML":{Ne=z.createHTML(Ne);break}case"TrustedScriptURL":{Ne=z.createScriptURL(Ne);break}}if(Ne!==nn)try{qe?o.setAttributeNS(qe,Ae,Ne):o.setAttribute(Ae,Ne),tn(o)?it(o):rr(e.removed)}catch{yt(Ae,o)}}pt(B.afterSanitizeAttributes,o,null)},Pr=function D(o){let g=null;const E=zn(o);for(pt(B.beforeSanitizeShadowDOM,o,null);g=E.nextNode();)pt(B.uponSanitizeShadowNode,g,null),Bn(g),Fn(g),g.content instanceof s&&D(g.content);pt(B.afterSanitizeShadowDOM,o,null)};return e.sanitize=function(D){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=null,E=null,ke=null,Pe=null;if(F=!D,F&&(D="<!-->"),typeof D!="string"&&!$n(D))if(typeof D.toString=="function"){if(D=D.toString(),typeof D!="string")throw Nt("dirty is not a string, aborting")}else throw Nt("toString is not a function");if(!e.isSupported)return D;if(_e||en(o),e.removed=[],typeof D=="string"&&(_=!1),_){if(D.nodeName){const ht=Re(D.nodeName);if(!A[ht]||C[ht])throw Nt("root node is forbidden and cannot be sanitized in-place")}}else if(D instanceof c)g=Pn("<!---->"),E=g.ownerDocument.importNode(D,!0),E.nodeType===zt.element&&E.nodeName==="BODY"||E.nodeName==="HTML"?g=E:g.appendChild(E);else{if(!Ce&&!Ze&&!U&&D.indexOf("<")===-1)return z&&ze?z.createHTML(D):D;if(g=Pn(D),!g)return Ce?null:ze?re:""}g&&Ee&&it(g.firstChild);const Ae=zn(_?D:g);for(;ke=Ae.nextNode();)Bn(ke),Fn(ke),ke.content instanceof s&&Pr(ke.content);if(_)return D;if(Ce){if(Ge)for(Pe=Z.call(g.ownerDocument);g.firstChild;)Pe.appendChild(g.firstChild);else Pe=g;return(S.shadowroot||S.shadowrootmode)&&(Pe=$.call(a,Pe,!0)),Pe}let qe=U?g.outerHTML:g.innerHTML;return U&&A["!doctype"]&&g.ownerDocument&&g.ownerDocument.doctype&&g.ownerDocument.doctype.name&&$e(Rr,g.ownerDocument.doctype.name)&&(qe="<!DOCTYPE "+g.ownerDocument.doctype.name+`>
|
|
69
|
-
`+qe),Ze&&jt([ae,ve,me],ht=>{qe=Ot(qe,ht," ")}),z&&ze?z.createHTML(qe):qe},e.setConfig=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};en(D),_e=!0},e.clearConfig=function(){Ct=null,_e=!1},e.isValidAttribute=function(D,o,g){Ct||en({});const E=Re(D),ke=Re(o);return Un(E,ke,g)},e.addHook=function(D,o){typeof o=="function"&&Dt(B[D],o)},e.removeHook=function(D,o){if(o!==void 0){const g=ns(B[D],o);return g===-1?void 0:rs(B[D],g,1)[0]}return rr(B[D])},e.removeHooks=function(D){B[D]=[]},e.removeAllHooks=function(){B=cr()},e}var Mr=Lr();function Ye(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}let dn=null;async function ks(){return dn||(dn=wn(async()=>{const{createHighlighter:n}=await import("./DcOAMOlN.js");return{createHighlighter:n}},__vite__mapDeps([0,1,2]),import.meta.url).then(({createHighlighter:n})=>n({themes:["github-dark-default"],langs:["javascript","typescript","python","rust","go","java","html","css","json","yaml","bash","sql","markdown","svelte"]}))),dn}let pn=null;async function _s(){return pn||(pn=wn(async()=>{const{default:n}=await import("./
|
|
69
|
+
`+qe),Ze&&jt([ae,ve,me],ht=>{qe=Ot(qe,ht," ")}),z&&ze?z.createHTML(qe):qe},e.setConfig=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};en(D),_e=!0},e.clearConfig=function(){Ct=null,_e=!1},e.isValidAttribute=function(D,o,g){Ct||en({});const E=Re(D),ke=Re(o);return Un(E,ke,g)},e.addHook=function(D,o){typeof o=="function"&&Dt(B[D],o)},e.removeHook=function(D,o){if(o!==void 0){const g=ns(B[D],o);return g===-1?void 0:rs(B[D],g,1)[0]}return rr(B[D])},e.removeHooks=function(D){B[D]=[]},e.removeAllHooks=function(){B=cr()},e}var Mr=Lr();function Ye(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}let dn=null;async function ks(){return dn||(dn=wn(async()=>{const{createHighlighter:n}=await import("./DcOAMOlN.js");return{createHighlighter:n}},__vite__mapDeps([0,1,2]),import.meta.url).then(({createHighlighter:n})=>n({themes:["github-dark-default"],langs:["javascript","typescript","python","rust","go","java","html","css","json","yaml","bash","sql","markdown","svelte"]}))),dn}let pn=null;async function _s(){return pn||(pn=wn(async()=>{const{default:n}=await import("./CrremO5S.js").then(e=>e.bE);return{default:n}},__vite__mapDeps([3,1,2]),import.meta.url).then(({default:n})=>(n.initialize({startOnLoad:!1,theme:"dark",themeVariables:{primaryColor:"#00e5ff",primaryTextColor:"#e2e8f0",primaryBorderColor:"#1e293b",lineColor:"#64748b",secondaryColor:"#7c4dff",tertiaryColor:"#0a0e1a",background:"#0a0e1a",mainBkg:"#111827",secondBkg:"#1a1f35",tertiaryBkg:"#0d1220"}}),n))),pn}const ws={name:"math",level:"inline",start(n){return n.indexOf("$")},tokenizer(n){const e=n.match(/^\$\$([^$]+)\$\$/);if(e)return{type:"math",raw:e[0],text:e[1].trim(),displayMode:!0};const t=n.match(/^\$([^$\n]+)\$/);if(t)return{type:"math",raw:t[0],text:t[1].trim(),displayMode:!1}},renderer(n){const e=encodeURIComponent(n.text),t=n.displayMode?"true":"false";return n.displayMode?`<div class="katex-placeholder" data-math="${e}" data-display="${t}"><span class="text-text-muted text-xs">Loading math…</span></div>`:`<span class="katex-placeholder" data-math="${e}" data-display="${t}">⋯</span>`}},Ht=new Bt;Ht.code=function({text:n,lang:e}){const t=e||"";if(t==="mermaid"){const s=`mermaid-${Math.random().toString(36).substr(2,9)}`;return`<div class="mermaid-wrapper">
|
|
70
70
|
<div class="mermaid" data-diagram="${Ye(n)}" id="${s}">
|
|
71
71
|
<!-- Mermaid will render here -->
|
|
72
72
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as s,c as xt,l as E,d as j,ac as kt,ad as vt,ae as _t,af as bt,D as wt,ag as St,z as Et}from"./
|
|
1
|
+
import{_ as s,c as xt,l as E,d as j,ac as kt,ad as vt,ae as _t,af as bt,D as wt,ag as St,z as Et}from"./CrremO5S.js";import{d as nt}from"./CVZCvD9s.js";var Q=(function(){var n=s(function(x,r,a,c){for(a=a||{},c=x.length;c--;a[x[c]]=r);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],l=[1,10],i=[1,11],d=[1,12],h=[1,13],f=[1,16],m=[1,17],p={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:s(function(r,a,c,u,y,o,w){var v=o.length-1;switch(y){case 1:return o[v-1];case 2:this.$=[];break;case 3:o[v-1].push(o[v]),this.$=o[v-1];break;case 4:case 5:this.$=o[v];break;case 6:case 7:this.$=[];break;case 8:u.getCommonDb().setDiagramTitle(o[v].substr(6)),this.$=o[v].substr(6);break;case 9:this.$=o[v].trim(),u.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=o[v].trim(),u.getCommonDb().setAccDescription(this.$);break;case 12:u.addSection(o[v].substr(8)),this.$=o[v].substr(8);break;case 15:u.addTask(o[v],0,""),this.$=o[v];break;case 16:u.addEvent(o[v].substr(2)),this.$=o[v];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:l,14:i,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:i,16:d,17:h,18:14,19:15,20:f,21:m},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(r,a){if(a.recoverable)this.trace(r);else{var c=new Error(r);throw c.hash=a,c}},"parseError"),parse:s(function(r){var a=this,c=[0],u=[],y=[null],o=[],w=this.table,v="",N=0,P=0,V=2,U=1,H=o.slice.call(arguments,1),g=Object.create(this.lexer),b={yy:{}};for(var L in this.yy)Object.prototype.hasOwnProperty.call(this.yy,L)&&(b.yy[L]=this.yy[L]);g.setInput(r,b.yy),b.yy.lexer=g,b.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var M=g.yylloc;o.push(M);var W=g.options&&g.options.ranges;typeof b.yy.parseError=="function"?this.parseError=b.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Z(T){c.length=c.length-2*T,y.length=y.length-T,o.length=o.length-T}s(Z,"popStack");function tt(){var T;return T=u.pop()||g.lex()||U,typeof T!="number"&&(T instanceof Array&&(u=T,T=u.pop()),T=a.symbols_[T]||T),T}s(tt,"lex");for(var S,A,I,J,R={},B,$,et,O;;){if(A=c[c.length-1],this.defaultActions[A]?I=this.defaultActions[A]:((S===null||typeof S>"u")&&(S=tt()),I=w[A]&&w[A][S]),typeof I>"u"||!I.length||!I[0]){var K="";O=[];for(B in w[A])this.terminals_[B]&&B>V&&O.push("'"+this.terminals_[B]+"'");g.showPosition?K="Parse error on line "+(N+1)+`:
|
|
2
2
|
`+g.showPosition()+`
|
|
3
3
|
Expecting `+O.join(", ")+", got '"+(this.terminals_[S]||S)+"'":K="Parse error on line "+(N+1)+": Unexpected "+(S==U?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(K,{text:g.match,token:this.terminals_[S]||S,line:g.yylineno,loc:M,expected:O})}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+S);switch(I[0]){case 1:c.push(S),y.push(g.yytext),o.push(g.yylloc),c.push(I[1]),S=null,P=g.yyleng,v=g.yytext,N=g.yylineno,M=g.yylloc;break;case 2:if($=this.productions_[I[1]][1],R.$=y[y.length-$],R._$={first_line:o[o.length-($||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-($||1)].first_column,last_column:o[o.length-1].last_column},W&&(R._$.range=[o[o.length-($||1)].range[0],o[o.length-1].range[1]]),J=this.performAction.apply(R,[v,P,N,b.yy,I[1],y,o].concat(H)),typeof J<"u")return J;$&&(c=c.slice(0,-1*$*2),y=y.slice(0,-1*$),o=o.slice(0,-1*$)),c.push(this.productions_[I[1]][0]),y.push(R.$),o.push(R._$),et=w[c[c.length-2]][c[c.length-1]],c.push(et);break;case 3:return!0}}return!0},"parse")},k=(function(){var x={EOF:1,parseError:s(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:s(function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var a=r.length,c=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{G,H as me,aq as oe,x as k,N as K,P as ye,ak as Te,g as S,al as ke,an as Se,ao as Z,M as z,O as x,K as Ce,ar as be,as as ee,z as Ee,at as C,ah as W,au as Ae,aj as Ie,a6 as Ne,B as Me,av as V,aw as De,ax as Re,_ as Oe,ay as te,az as He,ae as ce,ag as le,aA as $,w as ue,aB as Fe,aC as Le,aD as Pe,af as xe,L as Ue,aE as qe,aF as Ge,aG as Ke,aH as ze,aI as de,aJ as $e,s as q,a as je,d as m}from"./qR_TM3YX.js";import{_ as ne}from"./DpBBTLWw.js";function lt(t,e){return e}function We(t,e,n){for(var i=[],s=e.length,o,a=e.length,d=0;d<s;d++){let v=e[d];le(v,()=>{if(o){if(o.pending.delete(v),o.done.add(v),o.pending.size===0){var h=t.outrogroups;B(V(o.done)),h.delete(o),h.size===0&&(t.outrogroups=null)}}else a-=1},!1)}if(a===0){var c=i.length===0&&n!==null;if(c){var f=n,l=f.parentNode;Pe(l),l.append(f),t.items.clear()}B(e,!c)}else o={pending:new Set(e),done:new Set},(t.outrogroups??=new Set).add(o)}function B(t,e=!0){for(var n=0;n<t.length;n++)xe(t[n],e)}var ie;function ut(t,e,n,i,s,o=null){var a=t,d=new Map,c=(e&oe)!==0;if(c){var f=t;a=k?K(ye(f)):f.appendChild(G())}k&&Te();var l=null,v=Ne(()=>{var u=n();return Me(u)?u:u==null?[]:V(u)}),h,p=!0;function T(){r.fallback=l,Be(r,h,a,e,i),l!==null&&(h.length===0?(l.f&C)===0?ce(l):(l.f^=C,L(l,null,a)):le(l,()=>{l=null}))}var b=me(()=>{h=S(v);var u=h.length;let E=!1;if(k){var A=ke(a)===Se;A!==(u===0)&&(a=Z(),K(a),z(!1),E=!0)}for(var w=new Set,N=Ee,D=Ie(),_=0;_<u;_+=1){k&&x.nodeType===Ce&&x.data===be&&(a=x,E=!0,z(!1));var M=h[_],R=i(M,_),g=p?null:d.get(R);g?(g.v&&ee(g.v,M),g.i&&ee(g.i,_),D&&N.unskip_effect(g.e)):(g=Je(d,p?a:ie??=G(),M,R,_,s,e,n),p||(g.e.f|=C),d.set(R,g)),w.add(R)}if(u===0&&o&&!l&&(p?l=W(()=>o(a)):(l=W(()=>o(ie??=G())),l.f|=C)),u>w.size&&Ae(),k&&u>0&&K(Z()),!p)if(D){for(const[we,_e]of d)w.has(we)||N.skip_effect(_e.e);N.oncommit(T),N.ondiscard(()=>{})}else T();E&&z(!0),S(v)}),r={effect:b,items:d,outrogroups:null,fallback:l};p=!1,k&&(a=x)}function F(t){for(;t!==null&&(t.f&Fe)===0;)t=t.next;return t}function Be(t,e,n,i,s){var o=(i&Le)!==0,a=e.length,d=t.items,c=F(t.effect.first),f,l=null,v,h=[],p=[],T,b,r,u;if(o)for(u=0;u<a;u+=1)T=e[u],b=s(T,u),r=d.get(b).e,(r.f&C)===0&&(r.nodes?.a?.measure(),(v??=new Set).add(r));for(u=0;u<a;u+=1){if(T=e[u],b=s(T,u),r=d.get(b).e,t.outrogroups!==null)for(const g of t.outrogroups)g.pending.delete(r),g.done.delete(r);if((r.f&C)!==0)if(r.f^=C,r===c)L(r,null,n);else{var E=l?l.next:c;r===t.effect.last&&(t.effect.last=r.prev),r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),I(t,l,r),I(t,r,E),L(r,E,n),l=r,h=[],p=[],c=F(l.next);continue}if((r.f&$)!==0&&(ce(r),o&&(r.nodes?.a?.unfix(),(v??=new Set).delete(r))),r!==c){if(f!==void 0&&f.has(r)){if(h.length<p.length){var A=p[0],w;l=A.prev;var N=h[0],D=h[h.length-1];for(w=0;w<h.length;w+=1)L(h[w],A,n);for(w=0;w<p.length;w+=1)f.delete(p[w]);I(t,N.prev,D.next),I(t,l,N),I(t,D,A),c=A,l=D,u-=1,h=[],p=[]}else f.delete(r),L(r,c,n),I(t,r.prev,r.next),I(t,r,l===null?t.effect.first:l.next),I(t,l,r),l=r;continue}for(h=[],p=[];c!==null&&c!==r;)(f??=new Set).add(c),p.push(c),c=F(c.next);if(c===null)continue}(r.f&C)===0&&h.push(r),l=r,c=F(r.next)}if(t.outrogroups!==null){for(const g of t.outrogroups)g.pending.size===0&&(B(V(g.done)),t.outrogroups?.delete(g));t.outrogroups.size===0&&(t.outrogroups=null)}if(c!==null||f!==void 0){var _=[];if(f!==void 0)for(r of f)(r.f&$)===0&&_.push(r);for(;c!==null;)(c.f&$)===0&&c!==t.fallback&&_.push(c),c=F(c.next);var M=_.length;if(M>0){var R=(i&oe)!==0&&a===0?n:null;if(o){for(u=0;u<M;u+=1)_[u].nodes?.a?.measure();for(u=0;u<M;u+=1)_[u].nodes?.a?.fix()}We(t,_,R)}}o&&ue(()=>{if(v!==void 0)for(r of v)r.nodes?.a?.apply()})}function Je(t,e,n,i,s,o,a,d){var c=(a&De)!==0?(a&Re)===0?Oe(n,!1,!1):te(n):null,f=(a&He)!==0?te(s):null;return{v:c,i:f,e:W(()=>(o(e,c??n,f??s,d),()=>{t.delete(i)}))}}function L(t,e,n){if(t.nodes)for(var i=t.nodes.start,s=t.nodes.end,o=e&&(e.f&C)===0?e.nodes.start:n;i!==null;){var a=Ue(i);if(o.before(i),i===s)return;i=a}}function I(t,e,n){e===null?t.effect.first=n:e.next=n,n===null?t.effect.last=e:n.prev=e}const re=[...`
|
|
2
|
-
\r\f \v\uFEFF`];function Ve(t,e,n){var i=t==null?"":""+t;if(e&&(i=i?i+" "+e:e),n){for(var s of Object.keys(n))if(n[s])i=i?i+" "+s:s;else if(i.length)for(var o=s.length,a=0;(a=i.indexOf(s,a))>=0;){var d=a+o;(a===0||re.includes(i[a-1]))&&(d===i.length||re.includes(i[d]))?i=(a===0?"":i.substring(0,a))+i.substring(d+1):a=d}}return i===""?null:i}function dt(t,e){return t==null?null:String(t)}function ft(t,e,n,i,s,o){var a=t.__className;if(k||a!==n||a===void 0){var d=Ve(n,i,o);(!k||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=n}else if(o&&s!==o)for(var c in o){var f=!!o[c];(s==null||f!==!!s[c])&&t.classList.toggle(c,f)}return o}const Ye=Symbol("is custom element"),Qe=Symbol("is html"),Xe=de?"link":"LINK",Ze=de?"progress":"PROGRESS";function ht(t){if(k){var e=!1,n=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var i=t.value;se(t,"value",null),t.value=i}if(t.hasAttribute("checked")){var s=t.checked;se(t,"checked",null),t.checked=s}}};t.__on_r=n,ue(n),ze()}}function pt(t,e){var n=Y(t);n.value===(n.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!==Ze)||(t.value=e??"")}function vt(t,e){var n=Y(t);n.checked!==(n.checked=e??void 0)&&(t.checked=e)}function se(t,e,n,i){var s=Y(t);k&&(s[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===Xe)||s[e]!==(s[e]=n)&&(e==="loading"&&(t[$e]=n),n==null?t.removeAttribute(e):typeof n!="string"&&et(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function Y(t){return t.__attributes??={[Ye]:t.nodeName.includes("-"),[Qe]:t.namespaceURI===qe}}var ae=new Map;function et(t){var e=t.getAttribute("is")||t.nodeName,n=ae.get(e);if(n)return n;ae.set(e,n=[]);for(var i,s=t,o=Element.prototype;o!==s;){i=Ke(s);for(var a in i)i[a].set&&n.push(a);s=Ge(s)}return n}class tt{ws=null;url="";token="";pendingRequests=new Map;eventHandlers=new Map;reconnectTimer=null;reconnectAttempt=0;tickTimer=null;tickIntervalMs=3e4;intentionalDisconnect=!1;reqCounter=0;connectNonce=null;connectSent=!1;connectFallbackTimer=null;connectionState={status:"disconnected"};stateChangeCallbacks=new Set;reconnectConfig={initialMs:1e3,maxMs:3e4,factor:2,jitter:.1,maxAttempts:0};constructor(){}connect(e,n){this.url=e,this.token=n,this.intentionalDisconnect=!1,this.reconnectAttempt=0,this.doConnect()}disconnect(){this.intentionalDisconnect=!0,this.clearTimers(),this.ws&&(this.ws.close(1e3,"client disconnect"),this.ws=null),this.updateState({status:"disconnected"})}get connected(){return this.connectionState.status==="connected"}async call(e,n){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)throw new Error("Not connected");const i=`req-${++this.reqCounter}-${Date.now()}`,s={type:"req",id:i,method:e,params:n};return new Promise((o,a)=>{const d=setTimeout(()=>{this.pendingRequests.delete(i),a(new Error(`Request ${e} timed out`))},3e4);this.pendingRequests.set(i,{resolve:o,reject:a,timeout:d}),this.ws.send(JSON.stringify(s))})}on(e,n){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Set),this.eventHandlers.get(e).add(n),()=>this.off(e,n)}off(e,n){this.eventHandlers.get(e)?.delete(n)}onStateChange(e){return this.stateChangeCallbacks.add(e),()=>this.stateChangeCallbacks.delete(e)}async chatSend(e,n,i){const s=i?.idempotencyKey??crypto.randomUUID(),o={sessionKey:e,message:n,idempotencyKey:s,deliver:!1};return i?.attachments?.length&&(o.attachments=i.attachments),this.call("chat.send",o)}async chatHistory(e,n){const i=await this.call("chat.history",{sessionKey:e,limit:n??500});return i.messages??i.transcript??[]}async chatAbort(e,n){await this.call("chat.abort",{sessionKey:e,runId:n})}async sessionsList(e){const n=await this.call("sessions.list",{limit:e?.limit??50,includeDerivedTitles:e?.includeDerivedTitles??!0,includeLastMessage:e?.includeLastMessage??!0,activeMinutes:e?.activeMinutes});return n.sessions??n.list??[]}doConnect(){this.ws&&(this.ws.close(),this.ws=null),this.updateState({status:"connecting"});try{this.ws=new WebSocket(this.url)}catch(e){this.updateState({status:"error",error:`Failed to create WebSocket: ${e}`}),this.scheduleReconnect();return}this.ws.onopen=()=>{this.connectNonce=null,this.connectSent=!1,this.updateState({status:"authenticating"}),this.connectFallbackTimer&&clearTimeout(this.connectFallbackTimer),this.connectFallbackTimer=setTimeout(()=>{this.connectFallbackTimer=null,this.sendConnect()},750)},this.ws.onmessage=e=>{try{const n=JSON.parse(e.data);this.handleFrame(n)}catch{}},this.ws.onerror=()=>{},this.ws.onclose=e=>{if(this.clearTimers(),e.code===1008&&e.reason?.includes("pairing")){this.updateState({status:"error",error:"Device pairing required. Run: openclaw devices approve <requestId>"});return}this.intentionalDisconnect||(this.updateState({status:"disconnected",error:e.reason||void 0}),this.scheduleReconnect())}}handleFrame(e){e.type==="res"?this.handleResponse(e):e.type==="event"&&this.handleEvent(e)}handleResponse(e){const n=this.pendingRequests.get(e.id);if(n){clearTimeout(n.timeout),this.pendingRequests.delete(e.id),e.ok?n.resolve(e.payload??{}):n.reject(new Error(e.error?.message??"Unknown error"));return}if(e.id==="connect"){if(e.ok&&e.payload&&typeof e.payload=="object"&&"type"in e.payload){const i=e.payload;i.type==="hello-ok"&&this.handleHelloOk(i)}else if(!e.ok){const i=e.error?.message||"Connection rejected",s=i.toLowerCase().includes("pair")||e.error?.code==="PAIRING_REQUIRED"||e.error?.code==="AUTH_REQUIRED";this.updateState({status:"error",error:s?"Device pairing required — waiting for gateway owner to approve this device":i}),s&&(this.reconnectAttempt=5)}return}if(e.ok&&e.payload&&typeof e.payload=="object"&&"type"in e.payload){const i=e.payload;i.type==="hello-ok"&&this.handleHelloOk(i)}}handleEvent(e){if(e.event==="connect.challenge"){const n=e.payload;this.connectNonce=n?.nonce??null,this.connectSent=!1,this.connectFallbackTimer&&(clearTimeout(this.connectFallbackTimer),this.connectFallbackTimer=null),this.sendConnect();return}else if(e.event==="tick")this.sendTick();else{const n=this.eventHandlers.get(e.event);if(n)for(const i of n)try{i(e.payload)}catch{}}}async sendConnect(){if(this.connectSent)return;this.connectSent=!0;const e="operator",n=["operator.admin","operator.approvals","operator.pairing"];let i=this.token==="__device_auth__"?"":this.token,s;if(typeof crypto<"u"&&!!crypto.subtle)try{const{loadOrCreateDeviceIdentity:d,signDevicePayload:c,buildDeviceAuthPayload:f,loadDeviceAuthToken:l}=await ne(async()=>{const{loadOrCreateDeviceIdentity:u,signDevicePayload:E,buildDeviceAuthPayload:A,loadDeviceAuthToken:w}=await import("./B5Fyld5U.js");return{loadOrCreateDeviceIdentity:u,signDevicePayload:E,buildDeviceAuthPayload:A,loadDeviceAuthToken:w}},[],import.meta.url),v=await d(),h=l(v.deviceId,e);h&&(i=h);const p=Date.now(),T=this.connectNonce??void 0,b=f({deviceId:v.deviceId,clientId:"openclaw-control-ui",clientMode:"webchat",role:e,scopes:n,signedAtMs:p,token:i||null,nonce:T}),r=await c(v.privateKey,b);s={id:v.deviceId,publicKey:v.publicKey,signature:r,signedAt:p,nonce:T}}catch{}const a={type:"req",id:"connect",method:"connect",params:{minProtocol:3,maxProtocol:3,client:{id:"openclaw-control-ui",displayName:"Cortex",version:"1.1.0",platform:navigator.platform||"web",mode:"webchat"},role:e,scopes:n,device:s,auth:i?{token:i}:void 0,userAgent:navigator.userAgent,locale:navigator.language}};this.ws?.send(JSON.stringify(a))}handleHelloOk(e){this.reconnectAttempt=0,this.tickIntervalMs=e.policy.tickIntervalMs;const n=e;n.auth?.deviceToken&&typeof crypto<"u"&&crypto.subtle&&ne(async()=>{const{loadOrCreateDeviceIdentity:s,storeDeviceAuthToken:o}=await import("./B5Fyld5U.js");return{loadOrCreateDeviceIdentity:s,storeDeviceAuthToken:o}},[],import.meta.url).then(({loadOrCreateDeviceIdentity:s,storeDeviceAuthToken:o})=>{s().then(a=>{o({deviceId:a.deviceId,role:n.auth.role??"operator",token:n.auth.deviceToken,scopes:n.auth.scopes??[]})})}).catch(()=>{}),this.updateState({status:"connected",serverVersion:e.server.version,protocol:e.protocol,connId:e.server.connId,mainSessionKey:e.snapshot.sessionDefaults?.mainSessionKey,error:void 0}),this.startTickTimer();const i=this.eventHandlers.get("hello");if(i)for(const s of i)try{s(e)}catch{}}sendTick(){this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"req",id:`tick-${Date.now()}`,method:"tick"}))}startTickTimer(){this.tickTimer&&clearInterval(this.tickTimer),this.tickTimer=setInterval(()=>this.sendTick(),this.tickIntervalMs)}scheduleReconnect(){if(this.intentionalDisconnect)return;if(this.reconnectConfig.maxAttempts>0&&this.reconnectAttempt>=this.reconnectConfig.maxAttempts){this.updateState({status:"error",error:"Max reconnection attempts reached"});return}const e=Math.min(this.reconnectConfig.initialMs*Math.pow(this.reconnectConfig.factor,this.reconnectAttempt),this.reconnectConfig.maxMs),n=e*this.reconnectConfig.jitter*(Math.random()*2-1),i=Math.max(0,e+n);this.reconnectAttempt++,this.reconnectTimer=setTimeout(()=>this.doConnect(),i)}clearTimers(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.tickTimer&&(clearInterval(this.tickTimer),this.tickTimer=null),this.connectFallbackTimer&&(clearTimeout(this.connectFallbackTimer),this.connectFallbackTimer=null)}updateState(e){this.connectionState={...this.connectionState,...e};for(const n of this.stateChangeCallbacks)try{n(this.connectionState)}catch{}}}const P=new tt,j={gateway:{url:"",ws:""},branding:{title:"Cortex",subtitle:"OpenClaw Command Center"}};let y=null;async function gt(){if(y)return y;try{const t=await fetch("/__control__/bootstrap.json",{cache:"no-store"});if(!t.ok)return console.warn(`[config] /__control__/bootstrap.json returned ${t.status}, using defaults`),y={...j},y;const e=await t.json();if(y={gateway:{url:e?.basePath||"",ws:""},branding:{title:e?.assistantName||j.branding.title,subtitle:"OpenClaw Command Center"}},typeof window<"u"&&!y.gateway.ws){const i=window.location.protocol==="https:"?"wss:":"ws:";y.gateway.ws=`${i}//${window.location.host}`}return y}catch(t){return console.warn("[config] Failed to load /__control__/bootstrap.json:",t),y={...j},y}}function nt(){return y?.gateway?.ws||""}const Q="cortex:gatewayUrl",X="cortex:gatewayToken";let U=q(je({status:"disconnected"})),O=q(""),H=q(""),J=q(!1);P.onStateChange(t=>{m(U,t,!0)});function fe(){if(typeof window>"u")return{url:"",token:""};const t=localStorage.getItem(Q)||"",e=localStorage.getItem(X)||"";return{url:t,token:e}}function it(){return nt()}function he(t,e){typeof window>"u"||(localStorage.setItem(Q,t),localStorage.setItem(X,e))}function pe(t){try{const e=new URL(t);return e.protocol==="ws:"||e.protocol==="wss:"}catch{return!1}}function ve(t){return t.trim()==="__device_auth__"?!0:/^[a-f0-9]{32,128}$/i.test(t.trim())}function ge(t,e){const n=(t??S(O)).trim(),i=(e??S(H)).trim();if(!(!n||!i)){if(!pe(n)){m(U,{status:"error",error:"Invalid gateway URL. Must start with ws:// or wss://"},!0);return}if(!ve(i)){m(U,{status:"error",error:"Invalid token format. Expected hex string."},!0);return}m(O,n,!0),m(H,i,!0),he(n,i),P.connect(n,i)}}function rt(){typeof window>"u"||(localStorage.removeItem(Q),localStorage.removeItem(X),m(O,""),m(H,""))}function st(){P.disconnect()}function at(){if(S(J))return;m(J,!0);const{url:t,token:e}=fe();m(O,t,!0),m(H,e,!0),t&&e&&ge(t,e)}function wt(){return{get state(){return S(U)},get url(){return S(O)},set url(t){m(O,t,!0)},get token(){return S(H)},set token(t){m(H,t,!0)},get initialized(){return S(J)},connect:ge,disconnect:st,init:at,saveSettings:he,loadSettings:fe,clearCredentials:rt,validateUrl:pe,validateToken:ve,getConfiguredWsUrl:it,onStateChange:P.onStateChange.bind(P)}}export{P as a,se as b,pt as c,vt as d,ut as e,wt as g,lt as i,gt as l,ht as r,ft as s,dt as t};
|
|
2
|
+
\r\f \v\uFEFF`];function Ve(t,e,n){var i=t==null?"":""+t;if(e&&(i=i?i+" "+e:e),n){for(var s of Object.keys(n))if(n[s])i=i?i+" "+s:s;else if(i.length)for(var o=s.length,a=0;(a=i.indexOf(s,a))>=0;){var d=a+o;(a===0||re.includes(i[a-1]))&&(d===i.length||re.includes(i[d]))?i=(a===0?"":i.substring(0,a))+i.substring(d+1):a=d}}return i===""?null:i}function dt(t,e){return t==null?null:String(t)}function ft(t,e,n,i,s,o){var a=t.__className;if(k||a!==n||a===void 0){var d=Ve(n,i,o);(!k||d!==t.getAttribute("class"))&&(d==null?t.removeAttribute("class"):e?t.className=d:t.setAttribute("class",d)),t.__className=n}else if(o&&s!==o)for(var c in o){var f=!!o[c];(s==null||f!==!!s[c])&&t.classList.toggle(c,f)}return o}const Ye=Symbol("is custom element"),Qe=Symbol("is html"),Xe=de?"link":"LINK",Ze=de?"progress":"PROGRESS";function ht(t){if(k){var e=!1,n=()=>{if(!e){if(e=!0,t.hasAttribute("value")){var i=t.value;se(t,"value",null),t.value=i}if(t.hasAttribute("checked")){var s=t.checked;se(t,"checked",null),t.checked=s}}};t.__on_r=n,ue(n),ze()}}function pt(t,e){var n=Y(t);n.value===(n.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!==Ze)||(t.value=e??"")}function vt(t,e){var n=Y(t);n.checked!==(n.checked=e??void 0)&&(t.checked=e)}function se(t,e,n,i){var s=Y(t);k&&(s[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName===Xe)||s[e]!==(s[e]=n)&&(e==="loading"&&(t[$e]=n),n==null?t.removeAttribute(e):typeof n!="string"&&et(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function Y(t){return t.__attributes??={[Ye]:t.nodeName.includes("-"),[Qe]:t.namespaceURI===qe}}var ae=new Map;function et(t){var e=t.getAttribute("is")||t.nodeName,n=ae.get(e);if(n)return n;ae.set(e,n=[]);for(var i,s=t,o=Element.prototype;o!==s;){i=Ke(s);for(var a in i)i[a].set&&n.push(a);s=Ge(s)}return n}class tt{ws=null;url="";token="";pendingRequests=new Map;eventHandlers=new Map;reconnectTimer=null;reconnectAttempt=0;tickTimer=null;tickIntervalMs=3e4;intentionalDisconnect=!1;reqCounter=0;connectNonce=null;connectSent=!1;connectFallbackTimer=null;connectionState={status:"disconnected"};stateChangeCallbacks=new Set;reconnectConfig={initialMs:1e3,maxMs:3e4,factor:2,jitter:.1,maxAttempts:0};constructor(){}connect(e,n){this.url=e,this.token=n,this.intentionalDisconnect=!1,this.reconnectAttempt=0,this.doConnect()}disconnect(){this.intentionalDisconnect=!0,this.clearTimers(),this.ws&&(this.ws.close(1e3,"client disconnect"),this.ws=null),this.updateState({status:"disconnected"})}get connected(){return this.connectionState.status==="connected"}async call(e,n){if(!this.ws||this.ws.readyState!==WebSocket.OPEN)throw new Error("Not connected");const i=`req-${++this.reqCounter}-${Date.now()}`,s={type:"req",id:i,method:e,params:n};return new Promise((o,a)=>{const d=setTimeout(()=>{this.pendingRequests.delete(i),a(new Error(`Request ${e} timed out`))},3e4);this.pendingRequests.set(i,{resolve:o,reject:a,timeout:d}),this.ws.send(JSON.stringify(s))})}on(e,n){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Set),this.eventHandlers.get(e).add(n),()=>this.off(e,n)}off(e,n){this.eventHandlers.get(e)?.delete(n)}onStateChange(e){return this.stateChangeCallbacks.add(e),()=>this.stateChangeCallbacks.delete(e)}async chatSend(e,n,i){const s=i?.idempotencyKey??crypto.randomUUID(),o={sessionKey:e,message:n,idempotencyKey:s,deliver:!1};return i?.attachments?.length&&(o.attachments=i.attachments),this.call("chat.send",o)}async chatHistory(e,n){const i=await this.call("chat.history",{sessionKey:e,limit:n??500});return i.messages??i.transcript??[]}async chatAbort(e,n){await this.call("chat.abort",{sessionKey:e,runId:n})}async sessionsList(e){const n=await this.call("sessions.list",{limit:e?.limit??50,includeDerivedTitles:e?.includeDerivedTitles??!0,includeLastMessage:e?.includeLastMessage??!0,activeMinutes:e?.activeMinutes});return n.sessions??n.list??[]}doConnect(){this.ws&&(this.ws.close(),this.ws=null),this.updateState({status:"connecting"});try{this.ws=new WebSocket(this.url)}catch(e){this.updateState({status:"error",error:`Failed to create WebSocket: ${e}`}),this.scheduleReconnect();return}this.ws.onopen=()=>{this.connectNonce=null,this.connectSent=!1,this.updateState({status:"authenticating"}),this.connectFallbackTimer&&clearTimeout(this.connectFallbackTimer),this.connectFallbackTimer=setTimeout(()=>{this.connectFallbackTimer=null,this.sendConnect()},750)},this.ws.onmessage=e=>{try{const n=JSON.parse(e.data);this.handleFrame(n)}catch{}},this.ws.onerror=()=>{},this.ws.onclose=e=>{if(this.clearTimers(),e.code===1008&&e.reason?.includes("pairing")){this.updateState({status:"error",error:"Device pairing required. Run: openclaw devices approve <requestId>"});return}this.intentionalDisconnect||(this.updateState({status:"disconnected",error:e.reason||void 0}),this.scheduleReconnect())}}handleFrame(e){e.type==="res"?this.handleResponse(e):e.type==="event"&&this.handleEvent(e)}handleResponse(e){const n=this.pendingRequests.get(e.id);if(n){clearTimeout(n.timeout),this.pendingRequests.delete(e.id),e.ok?n.resolve(e.payload??{}):n.reject(new Error(e.error?.message??"Unknown error"));return}if(e.id==="connect"){if(e.ok&&e.payload&&typeof e.payload=="object"&&"type"in e.payload){const i=e.payload;i.type==="hello-ok"&&this.handleHelloOk(i)}else if(!e.ok){const i=e.error?.message||"Connection rejected",s=i.toLowerCase().includes("pair")||e.error?.code==="PAIRING_REQUIRED"||e.error?.code==="AUTH_REQUIRED";this.updateState({status:"error",error:s?"Device pairing required — waiting for gateway owner to approve this device":i}),s&&(this.reconnectAttempt=5)}return}if(e.ok&&e.payload&&typeof e.payload=="object"&&"type"in e.payload){const i=e.payload;i.type==="hello-ok"&&this.handleHelloOk(i)}}handleEvent(e){if(e.event==="connect.challenge"){const n=e.payload;this.connectNonce=n?.nonce??null,this.connectSent=!1,this.connectFallbackTimer&&(clearTimeout(this.connectFallbackTimer),this.connectFallbackTimer=null),this.sendConnect();return}else if(e.event==="tick")this.sendTick();else{const n=this.eventHandlers.get(e.event);if(n)for(const i of n)try{i(e.payload)}catch{}}}async sendConnect(){if(this.connectSent)return;this.connectSent=!0;const e="operator",n=["operator.admin","operator.approvals","operator.pairing"];let i=this.token==="__device_auth__"?"":this.token,s;if(typeof crypto<"u"&&!!crypto.subtle)try{const{loadOrCreateDeviceIdentity:d,signDevicePayload:c,buildDeviceAuthPayload:f,loadDeviceAuthToken:l}=await ne(async()=>{const{loadOrCreateDeviceIdentity:u,signDevicePayload:E,buildDeviceAuthPayload:A,loadDeviceAuthToken:w}=await import("./B5Fyld5U.js");return{loadOrCreateDeviceIdentity:u,signDevicePayload:E,buildDeviceAuthPayload:A,loadDeviceAuthToken:w}},[],import.meta.url),v=await d(),h=l(v.deviceId,e);h&&(i=h);const p=Date.now(),T=this.connectNonce??void 0,b=f({deviceId:v.deviceId,clientId:"openclaw-control-ui",clientMode:"webchat",role:e,scopes:n,signedAtMs:p,token:i||null,nonce:T}),r=await c(v.privateKey,b);s={id:v.deviceId,publicKey:v.publicKey,signature:r,signedAt:p,nonce:T}}catch{}const a={type:"req",id:"connect",method:"connect",params:{minProtocol:3,maxProtocol:3,client:{id:"openclaw-control-ui",displayName:"Cortex",version:"1.1.0",platform:navigator.platform||"web",mode:"webchat"},role:e,scopes:n,device:s,auth:i?{token:i}:void 0,userAgent:navigator.userAgent,locale:navigator.language}};this.ws?.send(JSON.stringify(a))}handleHelloOk(e){this.reconnectAttempt=0,this.tickIntervalMs=e.policy.tickIntervalMs;const n=e;n.auth?.deviceToken&&typeof crypto<"u"&&crypto.subtle&&ne(async()=>{const{loadOrCreateDeviceIdentity:s,storeDeviceAuthToken:o}=await import("./B5Fyld5U.js");return{loadOrCreateDeviceIdentity:s,storeDeviceAuthToken:o}},[],import.meta.url).then(({loadOrCreateDeviceIdentity:s,storeDeviceAuthToken:o})=>{s().then(a=>{o({deviceId:a.deviceId,role:n.auth.role??"operator",token:n.auth.deviceToken,scopes:n.auth.scopes??[]})})}).catch(()=>{}),this.updateState({status:"connected",serverVersion:e.server.version,protocol:e.protocol,connId:e.server.connId,mainSessionKey:e.snapshot.sessionDefaults?.mainSessionKey,error:void 0}),this.startTickTimer();const i=this.eventHandlers.get("hello");if(i)for(const s of i)try{s(e)}catch{}}sendTick(){this.ws?.readyState===WebSocket.OPEN&&this.ws.send(JSON.stringify({type:"req",id:`tick-${Date.now()}`,method:"tick"}))}startTickTimer(){this.tickTimer&&clearInterval(this.tickTimer),this.tickTimer=setInterval(()=>this.sendTick(),this.tickIntervalMs)}scheduleReconnect(){if(this.intentionalDisconnect)return;if(this.reconnectConfig.maxAttempts>0&&this.reconnectAttempt>=this.reconnectConfig.maxAttempts){this.updateState({status:"error",error:"Max reconnection attempts reached"});return}const e=Math.min(this.reconnectConfig.initialMs*Math.pow(this.reconnectConfig.factor,this.reconnectAttempt),this.reconnectConfig.maxMs),n=e*this.reconnectConfig.jitter*(Math.random()*2-1),i=Math.max(0,e+n);this.reconnectAttempt++,this.reconnectTimer=setTimeout(()=>this.doConnect(),i)}clearTimers(){this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.tickTimer&&(clearInterval(this.tickTimer),this.tickTimer=null),this.connectFallbackTimer&&(clearTimeout(this.connectFallbackTimer),this.connectFallbackTimer=null)}updateState(e){this.connectionState={...this.connectionState,...e};for(const n of this.stateChangeCallbacks)try{n(this.connectionState)}catch{}}}const P=new tt,j={gateway:{url:"",ws:""},branding:{title:"Cortex",subtitle:"OpenClaw Command Center"}};let y=null;async function gt(){if(y)return y;try{const t=await fetch("/__openclaw/control-ui-config.json",{cache:"no-store"});if(!t.ok)return console.warn(`[config] /__openclaw/control-ui-config.json returned ${t.status}, using defaults`),y={...j},y;const e=await t.json();if(y={gateway:{url:e?.basePath||"",ws:""},branding:{title:e?.assistantName||j.branding.title,subtitle:"OpenClaw Command Center"}},typeof window<"u"&&!y.gateway.ws){const i=window.location.protocol==="https:"?"wss:":"ws:";y.gateway.ws=`${i}//${window.location.host}`}return y}catch(t){return console.warn("[config] Failed to load /__control__/bootstrap.json:",t),y={...j},y}}function nt(){return y?.gateway?.ws||""}const Q="cortex:gatewayUrl",X="cortex:gatewayToken";let U=q(je({status:"disconnected"})),O=q(""),H=q(""),J=q(!1);P.onStateChange(t=>{m(U,t,!0)});function fe(){if(typeof window>"u")return{url:"",token:""};const t=localStorage.getItem(Q)||"",e=localStorage.getItem(X)||"";return{url:t,token:e}}function it(){return nt()}function he(t,e){typeof window>"u"||(localStorage.setItem(Q,t),localStorage.setItem(X,e))}function pe(t){try{const e=new URL(t);return e.protocol==="ws:"||e.protocol==="wss:"}catch{return!1}}function ve(t){return t.trim()==="__device_auth__"?!0:/^[a-f0-9]{32,128}$/i.test(t.trim())}function ge(t,e){const n=(t??S(O)).trim(),i=(e??S(H)).trim();if(!(!n||!i)){if(!pe(n)){m(U,{status:"error",error:"Invalid gateway URL. Must start with ws:// or wss://"},!0);return}if(!ve(i)){m(U,{status:"error",error:"Invalid token format. Expected hex string."},!0);return}m(O,n,!0),m(H,i,!0),he(n,i),P.connect(n,i)}}function rt(){typeof window>"u"||(localStorage.removeItem(Q),localStorage.removeItem(X),m(O,""),m(H,""))}function st(){P.disconnect()}function at(){if(S(J))return;m(J,!0);const{url:t,token:e}=fe();m(O,t,!0),m(H,e,!0),t&&e&&ge(t,e)}function wt(){return{get state(){return S(U)},get url(){return S(O)},set url(t){m(O,t,!0)},get token(){return S(H)},set token(t){m(H,t,!0)},get initialized(){return S(J)},connect:ge,disconnect:st,init:at,saveSettings:he,loadSettings:fe,clearCredentials:rt,validateUrl:pe,validateToken:ve,getConfiguredWsUrl:it,onStateChange:P.onStateChange.bind(P)}}export{P as a,se as b,pt as c,vt as d,ut as e,wt as g,lt as i,gt as l,ht as r,ft as s,dt as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as i}from"./
|
|
1
|
+
import{_ as i}from"./CrremO5S.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,l as s,K as o,e as i,L as g}from"./
|
|
1
|
+
import{_ as e,l as s,K as o,e as i,L as g}from"./CrremO5S.js";import{p}from"./C8PuvvjP.js";var v={parse:e(async r=>{const a=await p("info",r);s.debug(a)},"parse")},d={version:g.version+""},c=e(()=>d.version,"getVersion"),m={getVersion:c},l=e((r,a,n)=>{s.debug(`rendering info diagram
|
|
2
2
|
`+r);const t=o(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),f={draw:l},b={parser:v,db:m,renderer:f};export{b as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{U as a,C as n}from"./CrremO5S.js";const t=(r,o)=>a.lang.round(n.parse(r)[o]);export{t as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as gt,g as lt,f as mt,d as xt}from"./
|
|
1
|
+
import{a as gt,g as lt,f as mt,d as xt}from"./BrxfYBSP.js";import{g as kt}from"./C_LuOpHS.js";import{g as _t,s as vt,a as bt,b as wt,t as Tt,q as St,_ as n,c as R,d as X,e as $t,z as Mt}from"./CrremO5S.js";import{d as et}from"./CVZCvD9s.js";var U=(function(){var t=n(function(h,i,a,l){for(a=a||{},l=h.length;l--;a[h[l]]=i);return a},"o"),e=[6,8,10,11,12,14,16,17,18],s=[1,9],c=[1,10],r=[1,11],f=[1,12],u=[1,13],y=[1,14],g={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:n(function(i,a,l,d,p,o,b){var k=o.length-1;switch(p){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:d.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),d.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),d.setAccDescription(this.$);break;case 12:d.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:d.addTask(o[k-1],o[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:s,12:c,14:r,16:f,17:u,18:y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:c,14:r,16:f,17:u,18:y},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:n(function(i,a){if(a.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=a,l}},"parseError"),parse:n(function(i){var a=this,l=[0],d=[],p=[null],o=[],b=this.table,k="",C=0,K=0,dt=2,Q=1,yt=o.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(i,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;o.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,p.length=p.length-w,o.length=o.length-w}n(pt,"popStack");function D(){var w;return w=d.pop()||_.lex()||Q,typeof w!="number"&&(w instanceof Array&&(d=w,w=d.pop()),w=a.symbols_[w]||w),w}n(D,"lex");for(var v,A,T,q,F={},N,M,tt,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((v===null||typeof v>"u")&&(v=D()),T=b[A]&&b[A][v]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in b[A])this.terminals_[N]&&N>dt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+z.join(", ")+", got '"+(this.terminals_[v]||v)+"'":H="Parse error on line "+(C+1)+": Unexpected "+(v==Q?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(H,{text:_.match,token:this.terminals_[v]||v,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(T[0]){case 1:l.push(v),p.push(_.yytext),o.push(_.yylloc),l.push(T[1]),v=null,K=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=p[p.length-M],F._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},ft&&(F._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),q=this.performAction.apply(F,[k,K,C,I.yy,T[1],p,o].concat(yt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),p=p.slice(0,-1*M),o=o.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),p.push(F.$),o.push(F._$),tt=b[l[l.length-2]][l[l.length-1]],l.push(tt);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:n(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:n(function(i,a){return this.yy=a||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:n(function(i){var a=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===d.length?this.yylloc.first_column:0)+d[d.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(i){this.unput(this.match.slice(i))},"less"),pastInput:n(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ze}from"./giHw3ym1.js";import{s as Ge}from"./BdTFhrHG.js";import{_ as f,b as Xe,a as Je,s as Ze,g as et,q as tt,t as st,c as Ne,l as qe,z as it,D as rt,p as nt,r as at,u as lt}from"./Dg6LpIYP.js";var Ae=(function(){var e=f(function(P,i,n,c){for(n=n||{},c=P.length;c--;n[P[c]]=i);return n},"o"),l=[1,3],u=[1,4],h=[1,5],r=[1,6],o=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],m=[1,22],y=[2,7],_=[1,26],b=[1,27],N=[1,28],q=[1,29],A=[1,33],C=[1,34],V=[1,35],v=[1,36],x=[1,37],L=[1,38],D=[1,24],O=[1,31],w=[1,32],M=[1,30],p=[1,39],R=[1,40],d=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],$=[1,61],X=[89,90],Ce=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],de=[27,29],Ve=[1,70],ve=[1,71],xe=[1,72],Le=[1,73],De=[1,74],Oe=[1,75],we=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:f(function(i,n,c,s,E,t,Ee){var a=t.length-1;switch(E){case 4:this.$=t[a].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[a].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[a-3],t[a-4]);break;case 22:s.addRequirement(t[a-5],t[a-6]),s.setClass([t[a-5]],t[a-3]);break;case 23:s.setNewReqId(t[a-2]);break;case 24:s.setNewReqText(t[a-2]);break;case 25:s.setNewReqRisk(t[a-2]);break;case 26:s.setNewReqVerifyMethod(t[a-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[a-3]);break;case 43:s.addElement(t[a-5]),s.setClass([t[a-5]],t[a-3]);break;case 44:s.setNewElementType(t[a-2]);break;case 45:s.setNewElementDocRef(t[a-2]);break;case 48:s.addRelationship(t[a-2],t[a],t[a-4]);break;case 49:s.addRelationship(t[a-2],t[a-4],t[a]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[a-2],s.defineClass(t[a-1],t[a]);break;case 58:s.setClass(t[a-1],t[a]);break;case 59:s.setClass([t[a-2]],t[a]);break;case 60:case 62:this.$=[t[a]];break;case 61:case 63:this.$=t[a-2].concat([t[a]]);break;case 64:this.$=t[a-2],s.setCssStyle(t[a-1],t[a]);break;case 65:this.$=[t[a]];break;case 66:t[a-2].push(t[a]),this.$=t[a-2];break;case 68:this.$=t[a-1]+t[a];break}},"anonymous"),table:[{3:1,4:2,6:l,9:u,11:h,13:r},{1:[3]},{3:8,4:2,5:[1,7],6:l,9:u,11:h,13:r},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(o,[2,6]),{3:12,4:2,6:l,9:u,11:h,13:r},{1:[2,2]},{4:17,5:m,7:13,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},e(o,[2,4]),e(o,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:m,7:42,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{4:17,5:m,7:43,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{4:17,5:m,7:44,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{4:17,5:m,7:45,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{4:17,5:m,7:46,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{4:17,5:m,7:47,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{4:17,5:m,7:48,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{4:17,5:m,7:49,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{4:17,5:m,7:50,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(d,[2,17]),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),{30:60,33:62,75:$,89:p,90:R},{30:63,33:62,75:$,89:p,90:R},{30:64,33:62,75:$,89:p,90:R},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ce,[2,81]),e(Ce,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(de,[2,79]),e(de,[2,80]),{27:[1,67],29:[1,68]},e(de,[2,85]),e(de,[2,86]),{62:69,65:Ve,66:ve,67:xe,68:Le,69:De,70:Oe,71:we},{62:77,65:Ve,66:ve,67:xe,68:Le,69:De,70:Oe,71:we},{30:78,33:62,75:$,89:p,90:R},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:$,76:U,89:p,90:R},{5:[1,95]},{30:96,33:62,75:$,89:p,90:R},{5:[1,97]},{30:98,33:62,75:$,89:p,90:R},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(d,[2,59],{76:U}),e(d,[2,64],{76:Me}),{33:103,75:[1,102],89:p,90:R},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(d,[2,57],{76:Me}),e(d,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:p,90:R},{33:120,89:p,90:R},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(d,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(d,[2,28]),{5:[1,127]},e(d,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(d,[2,47]),{5:[1,131]},e(d,[2,48]),e(d,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:p,90:R},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(d,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(d,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(d,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(d,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(d,[2,23]),e(d,[2,24]),e(d,[2,25]),e(d,[2,26]),e(d,[2,44]),e(d,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:f(function(i,n){if(n.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=n,c}},"parseError"),parse:f(function(i){var n=this,c=[0],s=[],E=[null],t=[],Ee=this.table,a="",ye=0,Pe=0,He=2,$e=1,Ke=t.slice.call(arguments,1),g=Object.create(this.lexer),z={yy:{}};for(var Ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ie)&&(z.yy[Ie]=this.yy[Ie]);g.setInput(i,z.yy),z.yy.lexer=g,z.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var be=g.yylloc;t.push(be);var We=g.options&&g.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(I){c.length=c.length-2*I,E.length=E.length-I,t.length=t.length-I}f(je,"popStack");function Ue(){var I;return I=s.pop()||g.lex()||$e,typeof I!="number"&&(I instanceof Array&&(s=I,I=s.pop()),I=n.symbols_[I]||I),I}f(Ue,"lex");for(var S,G,k,Te,J={},ge,F,Ye,_e;;){if(G=c[c.length-1],this.defaultActions[G]?k=this.defaultActions[G]:((S===null||typeof S>"u")&&(S=Ue()),k=Ee[G]&&Ee[G][S]),typeof k>"u"||!k.length||!k[0]){var ke="";_e=[];for(ge in Ee[G])this.terminals_[ge]&&ge>He&&_e.push("'"+this.terminals_[ge]+"'");g.showPosition?ke="Parse error on line "+(ye+1)+`:
|
|
1
|
+
import{g as ze}from"./C9VLzrYr.js";import{s as Ge}from"./BhXAsS8g.js";import{_ as f,b as Xe,a as Je,s as Ze,g as et,q as tt,t as st,c as Ne,l as qe,z as it,D as rt,p as nt,r as at,u as lt}from"./CrremO5S.js";var Ae=(function(){var e=f(function(P,i,n,c){for(n=n||{},c=P.length;c--;n[P[c]]=i);return n},"o"),l=[1,3],u=[1,4],h=[1,5],r=[1,6],o=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],m=[1,22],y=[2,7],_=[1,26],b=[1,27],N=[1,28],q=[1,29],A=[1,33],C=[1,34],V=[1,35],v=[1,36],x=[1,37],L=[1,38],D=[1,24],O=[1,31],w=[1,32],M=[1,30],p=[1,39],R=[1,40],d=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],$=[1,61],X=[89,90],Ce=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],de=[27,29],Ve=[1,70],ve=[1,71],xe=[1,72],Le=[1,73],De=[1,74],Oe=[1,75],we=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:f(function(i,n,c,s,E,t,Ee){var a=t.length-1;switch(E){case 4:this.$=t[a].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[a].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[a-3],t[a-4]);break;case 22:s.addRequirement(t[a-5],t[a-6]),s.setClass([t[a-5]],t[a-3]);break;case 23:s.setNewReqId(t[a-2]);break;case 24:s.setNewReqText(t[a-2]);break;case 25:s.setNewReqRisk(t[a-2]);break;case 26:s.setNewReqVerifyMethod(t[a-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[a-3]);break;case 43:s.addElement(t[a-5]),s.setClass([t[a-5]],t[a-3]);break;case 44:s.setNewElementType(t[a-2]);break;case 45:s.setNewElementDocRef(t[a-2]);break;case 48:s.addRelationship(t[a-2],t[a],t[a-4]);break;case 49:s.addRelationship(t[a-2],t[a-4],t[a]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[a-2],s.defineClass(t[a-1],t[a]);break;case 58:s.setClass(t[a-1],t[a]);break;case 59:s.setClass([t[a-2]],t[a]);break;case 60:case 62:this.$=[t[a]];break;case 61:case 63:this.$=t[a-2].concat([t[a]]);break;case 64:this.$=t[a-2],s.setCssStyle(t[a-1],t[a]);break;case 65:this.$=[t[a]];break;case 66:t[a-2].push(t[a]),this.$=t[a-2];break;case 68:this.$=t[a-1]+t[a];break}},"anonymous"),table:[{3:1,4:2,6:l,9:u,11:h,13:r},{1:[3]},{3:8,4:2,5:[1,7],6:l,9:u,11:h,13:r},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(o,[2,6]),{3:12,4:2,6:l,9:u,11:h,13:r},{1:[2,2]},{4:17,5:m,7:13,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},e(o,[2,4]),e(o,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:m,7:42,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{4:17,5:m,7:43,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{4:17,5:m,7:44,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{4:17,5:m,7:45,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{4:17,5:m,7:46,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{4:17,5:m,7:47,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{4:17,5:m,7:48,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{4:17,5:m,7:49,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{4:17,5:m,7:50,8:y,9:u,11:h,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:_,22:b,23:N,24:q,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:D,72:O,74:w,77:M,89:p,90:R},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(d,[2,17]),e(d,[2,18]),e(d,[2,19]),e(d,[2,20]),{30:60,33:62,75:$,89:p,90:R},{30:63,33:62,75:$,89:p,90:R},{30:64,33:62,75:$,89:p,90:R},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ce,[2,81]),e(Ce,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(de,[2,79]),e(de,[2,80]),{27:[1,67],29:[1,68]},e(de,[2,85]),e(de,[2,86]),{62:69,65:Ve,66:ve,67:xe,68:Le,69:De,70:Oe,71:we},{62:77,65:Ve,66:ve,67:xe,68:Le,69:De,70:Oe,71:we},{30:78,33:62,75:$,89:p,90:R},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:$,76:U,89:p,90:R},{5:[1,95]},{30:96,33:62,75:$,89:p,90:R},{5:[1,97]},{30:98,33:62,75:$,89:p,90:R},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(d,[2,59],{76:U}),e(d,[2,64],{76:Me}),{33:103,75:[1,102],89:p,90:R},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(d,[2,57],{76:Me}),e(d,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:p,90:R},{33:120,89:p,90:R},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(d,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(d,[2,28]),{5:[1,127]},e(d,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(d,[2,47]),{5:[1,131]},e(d,[2,48]),e(d,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:p,90:R},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(d,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(d,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(d,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(d,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(d,[2,23]),e(d,[2,24]),e(d,[2,25]),e(d,[2,26]),e(d,[2,44]),e(d,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:f(function(i,n){if(n.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=n,c}},"parseError"),parse:f(function(i){var n=this,c=[0],s=[],E=[null],t=[],Ee=this.table,a="",ye=0,Pe=0,He=2,$e=1,Ke=t.slice.call(arguments,1),g=Object.create(this.lexer),z={yy:{}};for(var Ie in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ie)&&(z.yy[Ie]=this.yy[Ie]);g.setInput(i,z.yy),z.yy.lexer=g,z.yy.parser=this,typeof g.yylloc>"u"&&(g.yylloc={});var be=g.yylloc;t.push(be);var We=g.options&&g.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(I){c.length=c.length-2*I,E.length=E.length-I,t.length=t.length-I}f(je,"popStack");function Ue(){var I;return I=s.pop()||g.lex()||$e,typeof I!="number"&&(I instanceof Array&&(s=I,I=s.pop()),I=n.symbols_[I]||I),I}f(Ue,"lex");for(var S,G,k,Te,J={},ge,F,Ye,_e;;){if(G=c[c.length-1],this.defaultActions[G]?k=this.defaultActions[G]:((S===null||typeof S>"u")&&(S=Ue()),k=Ee[G]&&Ee[G][S]),typeof k>"u"||!k.length||!k[0]){var ke="";_e=[];for(ge in Ee[G])this.terminals_[ge]&&ge>He&&_e.push("'"+this.terminals_[ge]+"'");g.showPosition?ke="Parse error on line "+(ye+1)+`:
|
|
2
2
|
`+g.showPosition()+`
|
|
3
3
|
Expecting `+_e.join(", ")+", got '"+(this.terminals_[S]||S)+"'":ke="Parse error on line "+(ye+1)+": Unexpected "+(S==$e?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(ke,{text:g.match,token:this.terminals_[S]||S,line:g.yylineno,loc:be,expected:_e})}if(k[0]instanceof Array&&k.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+S);switch(k[0]){case 1:c.push(S),E.push(g.yytext),t.push(g.yylloc),c.push(k[1]),S=null,Pe=g.yyleng,a=g.yytext,ye=g.yylineno,be=g.yylloc;break;case 2:if(F=this.productions_[k[1]][1],J.$=E[E.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},We&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),Te=this.performAction.apply(J,[a,Pe,ye,z.yy,k[1],E,t].concat(Ke)),typeof Te<"u")return Te;F&&(c=c.slice(0,-1*F*2),E=E.slice(0,-1*F),t=t.slice(0,-1*F)),c.push(this.productions_[k[1]][0]),E.push(J.$),t.push(J._$),Ye=Ee[c[c.length-2]][c[c.length-1]],c.push(Ye);break;case 3:return!0}}return!0},"parse")},Qe=(function(){var P={EOF:1,parseError:f(function(n,c){if(this.yy.parser)this.yy.parser.parseError(n,c);else throw new Error(n)},"parseError"),setInput:f(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:f(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:f(function(i){var n=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===s.length?this.yylloc.first_column:0)+s[s.length-c.length].length-c[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(i){this.unput(this.match.slice(i))},"less"),pastInput:f(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Se,d as De}from"./Cy9J7_9T.js";import{s as Pe,g as Be,a as Ie,b as Me,_ as g,c as Bt,d as jt,l as de,e as Le,f as Ne,h as Tt,i as ge,j as Ye,w as je,k as $t,m as fe}from"./Dg6LpIYP.js";var Ft=(function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],y=[1,68],p=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Qt=[14,34,36,37,38,39,40,41,42,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],St=[12,14,34,36,37,38,39,40,41,42,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],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[12,33],Ht=[34,36,37,38,39,40,41,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],qt={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:g(function(x,m,v,b,R,h,Dt){var f=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[f-3]);break;case 19:b.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:b.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),b.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:b.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:b.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:b.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:b.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:b.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:b.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:b.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:b.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:b.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:b.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:b.addContainer("container",...h[f]),this.$=h[f];break;case 48:b.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:b.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:b.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:b.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:b.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:b.addComponent("component",...h[f]),this.$=h[f];break;case 54:b.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:b.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:b.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:b.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:b.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:b.addRel("rel",...h[f]),this.$=h[f];break;case 61:b.addRel("birel",...h[f]),this.$=h[f];break;case 62:b.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:b.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:b.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:b.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:b.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),b.addRel("rel",...h[f]),this.$=h[f];break;case 68:b.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:b.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:b.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:u,39:d,40:y,41:p,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:n,37:i,38:u,39:d,40:y,41:p,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(St,[2,21]),e(St,[2,22]),e(T,[2,39]),e(le,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Ht,[2,25]),e(Ht,[2,26],{12:[1,138]}),e(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Dt=this.table,f="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(he,"lex");for(var I,At,N,Jt,wt={},Nt,W,ue,Yt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I>"u")&&(I=he()),N=Dt[At]&&Dt[At][I]),typeof N>"u"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Dt[At])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`:
|
|
1
|
+
import{g as Se,d as De}from"./BrxfYBSP.js";import{s as Pe,g as Be,a as Ie,b as Me,_ as g,c as Bt,d as jt,l as de,e as Le,f as Ne,h as Tt,i as ge,j as Ye,w as je,k as $t,m as fe}from"./CrremO5S.js";var Ft=(function(){var e=g(function(_t,x,m,v){for(m=m||{},v=_t.length;v--;m[_t[v]]=x);return m},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],n=[1,64],i=[1,65],u=[1,66],d=[1,67],y=[1,68],p=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],it=[1,45],nt=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],gt=[1,59],bt=[1,60],Ct=[14,42],Qt=[14,34,36,37,38,39,40,41,42,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],St=[12,14,34,36,37,38,39,40,41,42,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],k=[1,82],A=[1,83],C=[1,84],w=[1,85],T=[12,14,42],le=[12,14,33,42],Mt=[12,14,33,42,76,77,79,80],vt=[12,33],Ht=[34,36,37,38,39,40,41,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],qt={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:g(function(x,m,v,b,R,h,Dt){var f=h.length-1;switch(R){case 3:b.setDirection("TB");break;case 4:b.setDirection("BT");break;case 5:b.setDirection("RL");break;case 6:b.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:b.setC4Type(h[f-3]);break;case 19:b.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:b.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),b.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),b.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:b.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),b.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:b.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:b.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:b.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:b.popBoundaryParseStack();break;case 39:b.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:b.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:b.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:b.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:b.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:b.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:b.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:b.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:b.addContainer("container",...h[f]),this.$=h[f];break;case 48:b.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:b.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:b.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:b.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:b.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:b.addComponent("component",...h[f]),this.$=h[f];break;case 54:b.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:b.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:b.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:b.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:b.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:b.addRel("rel",...h[f]),this.$=h[f];break;case 61:b.addRel("birel",...h[f]),this.$=h[f];break;case 62:b.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:b.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:b.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:b.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:b.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),b.addRel("rel",...h[f]),this.$=h[f];break;case 68:b.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:b.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:b.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:n,37:i,38:u,39:d,40:y,41:p,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(Ct,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:k,77:A,79:C,80:w},{35:86,75:81,76:k,77:A,79:C,80:w},{35:87,75:81,76:k,77:A,79:C,80:w},{35:88,75:81,76:k,77:A,79:C,80:w},{35:89,75:81,76:k,77:A,79:C,80:w},{35:90,75:81,76:k,77:A,79:C,80:w},{35:91,75:81,76:k,77:A,79:C,80:w},{35:92,75:81,76:k,77:A,79:C,80:w},{35:93,75:81,76:k,77:A,79:C,80:w},{35:94,75:81,76:k,77:A,79:C,80:w},{35:95,75:81,76:k,77:A,79:C,80:w},{35:96,75:81,76:k,77:A,79:C,80:w},{35:97,75:81,76:k,77:A,79:C,80:w},{35:98,75:81,76:k,77:A,79:C,80:w},{35:99,75:81,76:k,77:A,79:C,80:w},{35:100,75:81,76:k,77:A,79:C,80:w},{35:101,75:81,76:k,77:A,79:C,80:w},{35:102,75:81,76:k,77:A,79:C,80:w},{35:103,75:81,76:k,77:A,79:C,80:w},{35:104,75:81,76:k,77:A,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:k,77:A,79:C,80:w},{35:106,75:81,76:k,77:A,79:C,80:w},{35:107,75:81,76:k,77:A,79:C,80:w},{35:108,75:81,76:k,77:A,79:C,80:w},{35:109,75:81,76:k,77:A,79:C,80:w},{35:110,75:81,76:k,77:A,79:C,80:w},{35:111,75:81,76:k,77:A,79:C,80:w},{35:112,75:81,76:k,77:A,79:C,80:w},{35:113,75:81,76:k,77:A,79:C,80:w},{35:114,75:81,76:k,77:A,79:C,80:w},{35:115,75:81,76:k,77:A,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:n,37:i,38:u,39:d,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt},{12:[1,118],33:[1,117]},{35:119,75:81,76:k,77:A,79:C,80:w},{35:120,75:81,76:k,77:A,79:C,80:w},{35:121,75:81,76:k,77:A,79:C,80:w},{35:122,75:81,76:k,77:A,79:C,80:w},{35:123,75:81,76:k,77:A,79:C,80:w},{35:124,75:81,76:k,77:A,79:C,80:w},{35:125,75:81,76:k,77:A,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:n,37:i,38:u,39:d,40:y,41:p,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:it,61:nt,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:gt,74:bt}),e(St,[2,21]),e(St,[2,22]),e(T,[2,39]),e(le,[2,71],{75:81,35:132,76:k,77:A,79:C,80:w}),e(Mt,[2,73]),{78:[1,133]},e(Mt,[2,75]),e(Mt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ct,[2,38]),e(le,[2,72]),e(Mt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(Ht,[2,25]),e(Ht,[2,26],{12:[1,138]}),e(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:g(function(x,m){if(m.recoverable)this.trace(x);else{var v=new Error(x);throw v.hash=m,v}},"parseError"),parse:g(function(x){var m=this,v=[0],b=[],R=[null],h=[],Dt=this.table,f="",Et=0,oe=0,we=2,ce=1,Te=h.slice.call(arguments,1),D=Object.create(this.lexer),kt={yy:{}};for(var Gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Gt)&&(kt.yy[Gt]=this.yy[Gt]);D.setInput(x,kt.yy),kt.yy.lexer=D,kt.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Kt=D.yylloc;h.push(Kt);var Oe=D.options&&D.options.ranges;typeof kt.yy.parseError=="function"?this.parseError=kt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Re(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}g(Re,"popStack");function he(){var L;return L=b.pop()||D.lex()||ce,typeof L!="number"&&(L instanceof Array&&(b=L,L=b.pop()),L=m.symbols_[L]||L),L}g(he,"lex");for(var I,At,N,Jt,wt={},Nt,W,ue,Yt;;){if(At=v[v.length-1],this.defaultActions[At]?N=this.defaultActions[At]:((I===null||typeof I>"u")&&(I=he()),N=Dt[At]&&Dt[At][I]),typeof N>"u"||!N.length||!N[0]){var Zt="";Yt=[];for(Nt in Dt[At])this.terminals_[Nt]&&Nt>we&&Yt.push("'"+this.terminals_[Nt]+"'");D.showPosition?Zt="Parse error on line "+(Et+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+Yt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Zt="Parse error on line "+(Et+1)+": Unexpected "+(I==ce?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Zt,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:Kt,expected:Yt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+At+", token: "+I);switch(N[0]){case 1:v.push(I),R.push(D.yytext),h.push(D.yylloc),v.push(N[1]),I=null,oe=D.yyleng,f=D.yytext,Et=D.yylineno,Kt=D.yylloc;break;case 2:if(W=this.productions_[N[1]][1],wt.$=R[R.length-W],wt._$={first_line:h[h.length-(W||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(W||1)].first_column,last_column:h[h.length-1].last_column},Oe&&(wt._$.range=[h[h.length-(W||1)].range[0],h[h.length-1].range[1]]),Jt=this.performAction.apply(wt,[f,oe,Et,kt.yy,N[1],R,h].concat(Te)),typeof Jt<"u")return Jt;W&&(v=v.slice(0,-1*W*2),R=R.slice(0,-1*W),h=h.slice(0,-1*W)),v.push(this.productions_[N[1]][0]),R.push(wt.$),h.push(wt._$),ue=Dt[v[v.length-2]][v[v.length-1]],v.push(ue);break;case 3:return!0}}return!0},"parse")},Ce=(function(){var _t={EOF:1,parseError:g(function(m,v){if(this.yy.parser)this.yy.parser.parseError(m,v);else throw new Error(m)},"parseError"),setInput:g(function(x,m){return this.yy=m||this.yy||{},this._input=x,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:g(function(){var x=this._input[0];this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x;var m=x.match(/(?:\r\n?|\n).*/g);return m?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),x},"input"),unput:g(function(x){var m=x.length,v=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1&&(this.yylineno-=v.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===b.length?this.yylloc.first_column:0)+b[b.length-v.length].length-v[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:g(function(x){this.unput(this.match.slice(x))},"less"),pastInput:g(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var x=this.pastInput(),m=new Array(x.length+1).join("-");return x+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as a,e as w,l as x}from"./
|
|
1
|
+
import{_ as a,e as w,l as x}from"./CrremO5S.js";var d=a((e,t,i,r)=>{e.attr("class",i);const{width:o,height:h,x:n,y:c}=u(e,t);w(e,h,o,r);const s=l(n,c,o,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{const i=e.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:i.width+t*2,height:i.height+t*2,x:i.x,y:i.y}},"calculateDimensionsWithPadding"),l=a((e,t,i,r,o)=>`${e-o} ${t-o} ${i} ${r}`,"createViewBox");export{d as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as n,n as o,j as l}from"./
|
|
1
|
+
import{_ as n,n as o,j as l}from"./CrremO5S.js";var x=n((s,t)=>{const e=s.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),d=n((s,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(s,e).lower()},"drawBackgroundRect"),g=n((s,t)=>{const e=t.text.replace(o," "),r=s.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);const a=r.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),r},"drawText"),h=n((s,t,e,r)=>{const a=s.append("image");a.attr("x",t),a.attr("y",e);const i=l.sanitizeUrl(r);a.attr("xlink:href",i)},"drawImage"),m=n((s,t,e,r)=>{const a=s.append("use");a.attr("x",t),a.attr("y",e);const i=l.sanitizeUrl(r);a.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),y=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),p=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{d as a,p as b,m as c,x as d,h as e,g as f,y as g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Dt}from"./
|
|
1
|
+
import{g as Dt}from"./C9VLzrYr.js";import{s as wt}from"./BhXAsS8g.js";import{_ as u,b as Vt,a as Lt,s as Mt,g as Bt,q as Ft,t as Yt,c as tt,l as D,z as Pt,y as zt,B as Gt,D as Kt,p as Zt,r as Ut,d as jt,u as Wt}from"./CrremO5S.js";import{c as Qt}from"./BZPuz03W.js";var dt=(function(){var s=u(function(R,n,a,c){for(a=a||{},c=R.length;c--;a[R[c]]=n);return a},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,50],l=[1,10],d=[1,11],o=[1,12],h=[1,13],y=[1,20],_=[1,21],E=[1,22],V=[1,23],Z=[1,24],S=[1,19],et=[1,25],U=[1,26],T=[1,18],L=[1,33],st=[1,34],it=[1,35],rt=[1,36],nt=[1,37],pt=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,50,63,64,65,66,67],O=[1,42],A=[1,43],M=[1,52],B=[40,50,68,69],F=[1,63],Y=[1,61],N=[1,58],P=[1,62],z=[1,64],j=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,63,64,65,66,67],ft=[63,64,65,66,67],yt=[1,81],_t=[1,80],gt=[1,78],bt=[1,79],mt=[6,10,42,47],C=[6,10,13,41,42,47,48,49],W=[1,89],Q=[1,88],X=[1,87],G=[19,56],Et=[1,98],kt=[1,97],at=[19,56,58,60],ct={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,attribute:51,attributeType:52,attributeName:53,attributeKeyTypeList:54,attributeComment:55,ATTRIBUTE_WORD:56,attributeKeyType:57,",":58,ATTRIBUTE_KEY:59,COMMENT:60,cardinality:61,relType:62,ZERO_OR_ONE:63,ZERO_OR_MORE:64,ONE_OR_MORE:65,ONLY_ONE:66,MD_PARENT:67,NON_IDENTIFYING:68,IDENTIFYING:69,WORD:70,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",56:"ATTRIBUTE_WORD",58:",",59:"ATTRIBUTE_KEY",60:"COMMENT",63:"ZERO_OR_ONE",64:"ZERO_OR_MORE",65:"ONE_OR_MORE",66:"ONLY_ONE",67:"MD_PARENT",68:"NON_IDENTIFYING",69:"IDENTIFYING",70:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[18,1],[18,2],[51,2],[51,3],[51,3],[51,4],[52,1],[53,1],[54,1],[54,3],[57,1],[55,1],[12,3],[61,1],[61,1],[61,1],[61,1],[61,1],[62,1],[62,1],[14,1],[14,1],[14,1]],performAction:u(function(n,a,c,r,p,t,K){var e=t.length-1;switch(p){case 1:break;case 2:this.$=[];break;case 3:t[e-1].push(t[e]),this.$=t[e-1];break;case 4:case 5:this.$=t[e];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(t[e-4]),r.addEntity(t[e-2]),r.addRelationship(t[e-4],t[e],t[e-2],t[e-3]);break;case 9:r.addEntity(t[e-8]),r.addEntity(t[e-4]),r.addRelationship(t[e-8],t[e],t[e-4],t[e-5]),r.setClass([t[e-8]],t[e-6]),r.setClass([t[e-4]],t[e-2]);break;case 10:r.addEntity(t[e-6]),r.addEntity(t[e-2]),r.addRelationship(t[e-6],t[e],t[e-2],t[e-3]),r.setClass([t[e-6]],t[e-4]);break;case 11:r.addEntity(t[e-6]),r.addEntity(t[e-4]),r.addRelationship(t[e-6],t[e],t[e-4],t[e-5]),r.setClass([t[e-4]],t[e-2]);break;case 12:r.addEntity(t[e-3]),r.addAttributes(t[e-3],t[e-1]);break;case 13:r.addEntity(t[e-5]),r.addAttributes(t[e-5],t[e-1]),r.setClass([t[e-5]],t[e-3]);break;case 14:r.addEntity(t[e-2]);break;case 15:r.addEntity(t[e-4]),r.setClass([t[e-4]],t[e-2]);break;case 16:r.addEntity(t[e]);break;case 17:r.addEntity(t[e-2]),r.setClass([t[e-2]],t[e]);break;case 18:r.addEntity(t[e-6],t[e-4]),r.addAttributes(t[e-6],t[e-1]);break;case 19:r.addEntity(t[e-8],t[e-6]),r.addAttributes(t[e-8],t[e-1]),r.setClass([t[e-8]],t[e-3]);break;case 20:r.addEntity(t[e-5],t[e-3]);break;case 21:r.addEntity(t[e-7],t[e-5]),r.setClass([t[e-7]],t[e-2]);break;case 22:r.addEntity(t[e-3],t[e-1]);break;case 23:r.addEntity(t[e-5],t[e-3]),r.setClass([t[e-5]],t[e]);break;case 24:case 25:this.$=t[e].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=t[e].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=t[e-3],r.addClass(t[e-2],t[e-1]);break;case 37:case 38:case 56:case 64:this.$=[t[e]];break;case 39:case 40:this.$=t[e-2].concat([t[e]]);break;case 41:this.$=t[e-2],r.setClass(t[e-1],t[e]);break;case 42:this.$=t[e-3],r.addCssStyles(t[e-2],t[e-1]);break;case 43:this.$=[t[e]];break;case 44:t[e-2].push(t[e]),this.$=t[e-2];break;case 46:this.$=t[e-1]+t[e];break;case 54:case 76:case 77:this.$=t[e].replace(/"/g,"");break;case 55:case 78:this.$=t[e];break;case 57:t[e].push(t[e-1]),this.$=t[e];break;case 58:this.$={type:t[e-1],name:t[e]};break;case 59:this.$={type:t[e-2],name:t[e-1],keys:t[e]};break;case 60:this.$={type:t[e-2],name:t[e-1],comment:t[e]};break;case 61:this.$={type:t[e-3],name:t[e-2],keys:t[e-1],comment:t[e]};break;case 62:case 63:case 66:this.$=t[e];break;case 65:t[e-2].push(t[e]),this.$=t[e-2];break;case 67:this.$=t[e].replace(/"/g,"");break;case 68:this.$={cardA:t[e],relType:t[e-1],cardB:t[e-2]};break;case 69:this.$=r.Cardinality.ZERO_OR_ONE;break;case 70:this.$=r.Cardinality.ZERO_OR_MORE;break;case 71:this.$=r.Cardinality.ONE_OR_MORE;break;case 72:this.$=r.Cardinality.ONLY_ONE;break;case 73:this.$=r.Cardinality.MD_PARENT;break;case 74:this.$=r.Identification.NON_IDENTIFYING;break;case 75:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},s(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:l,24:d,26:o,28:h,29:14,30:15,31:16,32:17,33:y,34:_,35:E,36:V,37:Z,40:S,43:et,44:U,50:T},s(i,[2,7],{1:[2,1]}),s(i,[2,3]),{9:27,11:9,22:l,24:d,26:o,28:h,29:14,30:15,31:16,32:17,33:y,34:_,35:E,36:V,37:Z,40:S,43:et,44:U,50:T},s(i,[2,5]),s(i,[2,6]),s(i,[2,16],{12:28,61:32,15:[1,29],17:[1,30],20:[1,31],63:L,64:st,65:it,66:rt,67:nt}),{23:[1,38]},{25:[1,39]},{27:[1,40]},s(i,[2,27]),s(i,[2,28]),s(i,[2,29]),s(i,[2,30]),s(i,[2,31]),s(pt,[2,54]),s(pt,[2,55]),s(i,[2,32]),s(i,[2,33]),s(i,[2,34]),s(i,[2,35]),{16:41,40:O,41:A},{16:44,40:O,41:A},{16:45,40:O,41:A},s(i,[2,4]),{11:46,40:S,50:T},{16:47,40:O,41:A},{18:48,19:[1,49],51:50,52:51,56:M},{11:53,40:S,50:T},{62:54,68:[1,55],69:[1,56]},s(B,[2,69]),s(B,[2,70]),s(B,[2,71]),s(B,[2,72]),s(B,[2,73]),s(i,[2,24]),s(i,[2,25]),s(i,[2,26]),{13:F,38:57,41:Y,42:N,45:59,46:60,48:P,49:z},s(j,[2,37]),s(j,[2,38]),{16:65,40:O,41:A,42:N},{13:F,38:66,41:Y,42:N,45:59,46:60,48:P,49:z},{13:[1,67],15:[1,68]},s(i,[2,17],{61:32,12:69,17:[1,70],42:N,63:L,64:st,65:it,66:rt,67:nt}),{19:[1,71]},s(i,[2,14]),{18:72,19:[2,56],51:50,52:51,56:M},{53:73,56:[1,74]},{56:[2,62]},{21:[1,75]},{61:76,63:L,64:st,65:it,66:rt,67:nt},s(ft,[2,74]),s(ft,[2,75]),{6:yt,10:_t,39:77,42:gt,47:bt},{40:[1,82],41:[1,83]},s(mt,[2,43],{46:84,13:F,41:Y,48:P,49:z}),s(C,[2,45]),s(C,[2,50]),s(C,[2,51]),s(C,[2,52]),s(C,[2,53]),s(i,[2,41],{42:N}),{6:yt,10:_t,39:85,42:gt,47:bt},{14:86,40:W,50:Q,70:X},{16:90,40:O,41:A},{11:91,40:S,50:T},{18:92,19:[1,93],51:50,52:51,56:M},s(i,[2,12]),{19:[2,57]},s(G,[2,58],{54:94,55:95,57:96,59:Et,60:kt}),s([19,56,59,60],[2,63]),s(i,[2,22],{15:[1,100],17:[1,99]}),s([40,50],[2,68]),s(i,[2,36]),{13:F,41:Y,45:101,46:60,48:P,49:z},s(i,[2,47]),s(i,[2,48]),s(i,[2,49]),s(j,[2,39]),s(j,[2,40]),s(C,[2,46]),s(i,[2,42]),s(i,[2,8]),s(i,[2,76]),s(i,[2,77]),s(i,[2,78]),{13:[1,102],42:N},{13:[1,104],15:[1,103]},{19:[1,105]},s(i,[2,15]),s(G,[2,59],{55:106,58:[1,107],60:kt}),s(G,[2,60]),s(at,[2,64]),s(G,[2,67]),s(at,[2,66]),{18:108,19:[1,109],51:50,52:51,56:M},{16:110,40:O,41:A},s(mt,[2,44],{46:84,13:F,41:Y,48:P,49:z}),{14:111,40:W,50:Q,70:X},{16:112,40:O,41:A},{14:113,40:W,50:Q,70:X},s(i,[2,13]),s(G,[2,61]),{57:114,59:Et},{19:[1,115]},s(i,[2,20]),s(i,[2,23],{17:[1,116],42:N}),s(i,[2,11]),{13:[1,117],42:N},s(i,[2,10]),s(at,[2,65]),s(i,[2,18]),{18:118,19:[1,119],51:50,52:51,56:M},{14:120,40:W,50:Q,70:X},{19:[1,121]},s(i,[2,21]),s(i,[2,9]),s(i,[2,19])],defaultActions:{52:[2,62],72:[2,57]},parseError:u(function(n,a){if(a.recoverable)this.trace(n);else{var c=new Error(n);throw c.hash=a,c}},"parseError"),parse:u(function(n){var a=this,c=[0],r=[],p=[null],t=[],K=this.table,e="",H=0,St=0,It=2,Tt=1,xt=t.slice.call(arguments,1),f=Object.create(this.lexer),I={yy:{}};for(var lt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,lt)&&(I.yy[lt]=this.yy[lt]);f.setInput(n,I.yy),I.yy.lexer=f,I.yy.parser=this,typeof f.yylloc>"u"&&(f.yylloc={});var ot=f.yylloc;t.push(ot);var Ct=f.options&&f.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function vt(b){c.length=c.length-2*b,p.length=p.length-b,t.length=t.length-b}u(vt,"popStack");function Ot(){var b;return b=r.pop()||f.lex()||Tt,typeof b!="number"&&(b instanceof Array&&(r=b,b=r.pop()),b=a.symbols_[b]||b),b}u(Ot,"lex");for(var g,x,m,ht,v={},J,k,At,$;;){if(x=c[c.length-1],this.defaultActions[x]?m=this.defaultActions[x]:((g===null||typeof g>"u")&&(g=Ot()),m=K[x]&&K[x][g]),typeof m>"u"||!m.length||!m[0]){var ut="";$=[];for(J in K[x])this.terminals_[J]&&J>It&&$.push("'"+this.terminals_[J]+"'");f.showPosition?ut="Parse error on line "+(H+1)+`:
|
|
2
2
|
`+f.showPosition()+`
|
|
3
3
|
Expecting `+$.join(", ")+", got '"+(this.terminals_[g]||g)+"'":ut="Parse error on line "+(H+1)+": Unexpected "+(g==Tt?"end of input":"'"+(this.terminals_[g]||g)+"'"),this.parseError(ut,{text:f.match,token:this.terminals_[g]||g,line:f.yylineno,loc:ot,expected:$})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+g);switch(m[0]){case 1:c.push(g),p.push(f.yytext),t.push(f.yylloc),c.push(m[1]),g=null,St=f.yyleng,e=f.yytext,H=f.yylineno,ot=f.yylloc;break;case 2:if(k=this.productions_[m[1]][1],v.$=p[p.length-k],v._$={first_line:t[t.length-(k||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(k||1)].first_column,last_column:t[t.length-1].last_column},Ct&&(v._$.range=[t[t.length-(k||1)].range[0],t[t.length-1].range[1]]),ht=this.performAction.apply(v,[e,St,H,I.yy,m[1],p,t].concat(xt)),typeof ht<"u")return ht;k&&(c=c.slice(0,-1*k*2),p=p.slice(0,-1*k),t=t.slice(0,-1*k)),c.push(this.productions_[m[1]][0]),p.push(v.$),t.push(v._$),At=K[c[c.length-2]][c[c.length-1]],c.push(At);break;case 3:return!0}}return!0},"parse")},Rt=(function(){var R={EOF:1,parseError:u(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:u(function(n,a){return this.yy=a||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var a=n.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:u(function(n){var a=n.length,c=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===r.length?this.yylloc.first_column:0)+r[r.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u(function(n){this.unput(this.match.slice(n))},"less"),pastInput:u(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var n=this.pastInput(),a=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|