mirror of
https://github.com/countbot-ai/CountBot.git
synced 2026-09-14 20:46:47 +08:00
构建(前端): 更新 dist 静态资源产物
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
var _=(y,f,a)=>new Promise((p,d)=>{var v=n=>{try{l(a.next(n))}catch(o){d(o)}},r=n=>{try{l(a.throw(n))}catch(o){d(o)}},l=n=>n.done?p(n.value):Promise.resolve(n.value).then(v,r);l((a=a.apply(y,f)).next())});import{d as V,o as x,a as b,c as i,b as t,e as B,t as w,w as S,f as h,v as g,g as m,h as C,u as I,r as c,i as u,_ as M,j as N}from"./index-TuHwd6tW.js";const q={class:"login-page"},D={class:"login-card"},L={class:"login-hint"},P={class:"field"},U=["placeholder"],T={class:"field"},j=["placeholder","autocomplete"],A={key:0,class:"field"},E={key:1,class:"password-rules"},R={key:2,class:"error-box",role:"alert"},z=["disabled"],F={key:0,class:"spinner"},G={class:"login-footer"},H={key:0},J={key:1},K=V({__name:"LoginView",setup(y){const f=I(),a=c(!1),p=c(""),d=c(""),v=c(""),r=c(""),l=c(!1);x(()=>_(this,null,function*(){try{const{data:o}=yield b.get("/api/auth/status");if(o.authenticated){f.replace("/");return}a.value=!o.auth_enabled}catch(o){}}));function n(){return _(this,null,function*(){var o,e;r.value="",l.value=!0;try{if(a.value){if(d.value!==v.value){r.value="两次输入的密码不一致";return}const{data:s}=yield b.post("/api/auth/setup",{username:p.value,password:d.value});s.token&&localStorage.setItem("CountBot_token",s.token)}else{const{data:s}=yield b.post("/api/auth/login",{username:p.value,password:d.value});s.token&&localStorage.setItem("CountBot_token",s.token)}f.replace("/")}catch(s){const k=(e=(o=s==null?void 0:s.response)==null?void 0:o.data)==null?void 0:e.detail;r.value=k||"操作失败,请重试"}finally{l.value=!1}})}return(o,e)=>(u(),i("div",q,[t("div",D,[e[6]||(e[6]=B('<div class="login-brand" data-v-eff462fb><div class="brand-icon" data-v-eff462fb><img src="'+M+'" alt="CountBot Logo" data-v-eff462fb></div><h1 class="brand-name" data-v-eff462fb><span class="brand-count" data-v-eff462fb>Count</span><span class="brand-bot" data-v-eff462fb>Bot</span></h1><p class="brand-tagline" data-v-eff462fb>654321, AI Delivers</p></div>',1)),t("p",L,w(a.value?"首次远程访问,请设置管理员账号和密码":"远程访问需要身份验证"),1),t("form",{onSubmit:S(n,["prevent"]),class:"login-form",autocomplete:"on"},[t("div",P,[e[3]||(e[3]=t("label",{for:"username"},"账号",-1)),h(t("input",{id:"username","onUpdate:modelValue":e[0]||(e[0]=s=>p.value=s),type:"text",placeholder:a.value?"设置管理员账号":"请输入账号",autocomplete:"username",required:""},null,8,U),[[g,p.value]])]),t("div",T,[e[4]||(e[4]=t("label",{for:"password"},"密码",-1)),h(t("input",{id:"password","onUpdate:modelValue":e[1]||(e[1]=s=>d.value=s),type:"password",placeholder:a.value?"设置密码":"请输入密码",autocomplete:a.value?"new-password":"current-password",required:""},null,8,j),[[g,d.value]])]),a.value?(u(),i("div",A,[e[5]||(e[5]=t("label",{for:"confirmPassword"},"确认密码",-1)),h(t("input",{id:"confirmPassword","onUpdate:modelValue":e[2]||(e[2]=s=>v.value=s),type:"password",placeholder:"再次输入密码",autocomplete:"new-password",required:""},null,512),[[g,v.value]])])):m("",!0),a.value?(u(),i("div",E," 密码要求:至少 8 位,必须同时包含大写字母、小写字母和数字 ")):m("",!0),r.value?(u(),i("div",R,w(r.value),1)):m("",!0),t("button",{type:"submit",class:"submit-btn",disabled:l.value},[l.value?(u(),i("span",F)):m("",!0),C(" "+w(l.value?"请稍候...":a.value?"设置并登录":"登录"),1)],8,z)],32),t("div",G,[a.value?(u(),i("span",J,"设置完成后将自动登录")):(u(),i("span",H,"密码要求:至少 8 位,包含大写字母、小写字母和数字"))])])]))}}),W=N(K,[["__scopeId","data-v-eff462fb"]]);export{W as default};
|
||||
@@ -0,0 +1 @@
|
||||
var h=(x,_,v)=>new Promise((o,i)=>{var c=t=>{try{n(v.next(t))}catch(r){i(r)}},f=t=>{try{n(v.throw(t))}catch(r){i(r)}},n=t=>t.done?o(t.value):Promise.resolve(t.value).then(c,f);n((v=v.apply(x,_)).next())});import{d as M,o as N,a as b,c as u,b as s,e as T,t as g,w as q,f as y,v as k,g as m,h as D,u as P,r as p,i as S,j as U,k as d,_ as R,l as j}from"./index-BIaXvqxP.js";const A={class:"login-page"},E={class:"login-card"},H={class:"login-hint"},X={class:"field"},z=["placeholder"],F={class:"field"},G=["placeholder","autocomplete"],J={key:0,class:"field"},K={key:1,class:"password-rules"},O={key:2,class:"error-box",role:"alert"},Q={key:3,class:"error-box",role:"alert"},W=["disabled"],Y={key:0,class:"spinner"},Z={class:"login-footer"},$={key:0},ee={key:1},ae=M({__name:"LoginView",setup(x){const _=P(),v=U(),o=p(!1),i=p(""),c=p(""),f=p(""),n=p(""),t=p(!1),r=p(!1),w=S(()=>{const l=v.params.setupSecret;return typeof l=="string"?l:""}),V=S(()=>w.value?"初始化入口无效、已过期,或系统已经完成初始化":"远程初始化需要专用入口,请查看本机控制台输出的初始化路径"),C=S(()=>r.value?w.value?"初始化入口不可用":"远程初始化需要专用入口":o.value?"首次初始化,请设置管理员账号和密码":"远程访问需要身份验证");function B(){return w.value?{"X-Setup-Secret":w.value}:void 0}N(()=>h(this,null,function*(){try{const{data:l}=yield b.get("/api/auth/status",{headers:B()});if(l.authenticated){_.replace("/");return}o.value=!!l.setup_allowed,r.value=!l.auth_enabled&&!l.setup_allowed}catch(l){}}));function I(){return h(this,null,function*(){var l,e;if(n.value="",r.value){n.value=V.value;return}t.value=!0;try{if(o.value){if(c.value!==f.value){n.value="两次输入的密码不一致";return}const{data:a}=yield b.post("/api/auth/setup",{username:i.value,password:c.value},{headers:B()});a.token&&localStorage.setItem("CountBot_token",a.token)}else{const{data:a}=yield b.post("/api/auth/login",{username:i.value,password:c.value});a.token&&localStorage.setItem("CountBot_token",a.token)}_.replace("/")}catch(a){const L=(e=(l=a==null?void 0:a.response)==null?void 0:l.data)==null?void 0:e.detail;n.value=L||"操作失败,请重试"}finally{t.value=!1}})}return(l,e)=>(d(),u("div",A,[s("div",E,[e[6]||(e[6]=T('<div class="login-brand" data-v-03224fec><div class="brand-icon" data-v-03224fec><img src="'+R+'" alt="CountBot Logo" data-v-03224fec></div><h1 class="brand-name" data-v-03224fec><span class="brand-count" data-v-03224fec>Count</span><span class="brand-bot" data-v-03224fec>Bot</span></h1><p class="brand-tagline" data-v-03224fec>654321, AI Delivers</p></div>',1)),s("p",H,g(C.value),1),s("form",{onSubmit:q(I,["prevent"]),class:"login-form",autocomplete:"on"},[s("div",X,[e[3]||(e[3]=s("label",{for:"username"},"账号",-1)),y(s("input",{id:"username","onUpdate:modelValue":e[0]||(e[0]=a=>i.value=a),type:"text",placeholder:o.value?"设置管理员账号":"请输入账号",autocomplete:"username",required:""},null,8,z),[[k,i.value]])]),s("div",F,[e[4]||(e[4]=s("label",{for:"password"},"密码",-1)),y(s("input",{id:"password","onUpdate:modelValue":e[1]||(e[1]=a=>c.value=a),type:"password",placeholder:o.value?"设置密码":"请输入密码",autocomplete:o.value?"new-password":"current-password",required:""},null,8,G),[[k,c.value]])]),o.value?(d(),u("div",J,[e[5]||(e[5]=s("label",{for:"confirmPassword"},"确认密码",-1)),y(s("input",{id:"confirmPassword","onUpdate:modelValue":e[2]||(e[2]=a=>f.value=a),type:"password",placeholder:"再次输入密码",autocomplete:"new-password",required:""},null,512),[[k,f.value]])])):m("",!0),o.value?(d(),u("div",K," 密码要求:至少 8 位,必须同时包含大写字母、小写字母和数字 ")):m("",!0),r.value?(d(),u("div",O," 管理员尚未在本机完成初始化。请先在 CountBot 所在机器本地打开页面设置管理员账号和密码,然后再进行远程登录。 ")):m("",!0),n.value?(d(),u("div",Q,g(n.value),1)):m("",!0),s("button",{type:"submit",class:"submit-btn",disabled:t.value||r.value},[t.value?(d(),u("span",Y)):m("",!0),D(" "+g(t.value?"请稍候...":o.value?"设置并登录":"登录"),1)],8,W)],32),s("div",Z,[o.value?(d(),u("span",ee,"设置完成后将自动登录")):(d(),u("span",$,"密码要求:至少 8 位,包含大写字母、小写字母和数字"))])])]))}}),oe=j(ae,[["__scopeId","data-v-03224fec"]]);export{oe as default};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{e as x,c as O,g as m,k as P,h as p,j as w,l as c,m as A,n as I,t as N,o as _}from"./_baseUniq-I4-_xKvU.js";import{aT as g,aC as $,aU as E,aV as F,aW as M,aX as l,aY as T,aZ as B,a_ as y,a$ as S}from"./mermaid.core-C4K9MPKx.js";var C=/\s/;function G(n){for(var r=n.length;r--&&C.test(n.charAt(r)););return r}var H=/^\s+/;function L(n){return n&&n.slice(0,G(n)+1).replace(H,"")}var o=NaN,R=/^[-+]0x[0-9a-f]+$/i,W=/^0b[01]+$/i,X=/^0o[0-7]+$/i,Y=parseInt;function q(n){if(typeof n=="number")return n;if(x(n))return o;if(g(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=g(r)?r+"":r}if(typeof n!="string")return n===0?n:+n;n=L(n);var t=W.test(n);return t||X.test(n)?Y(n.slice(2),t?2:8):R.test(n)?o:+n}var v=1/0,z=17976931348623157e292;function K(n){if(!n)return n===0?n:0;if(n=q(n),n===v||n===-v){var r=n<0?-1:1;return r*z}return n===n?n:0}function U(n){var r=K(n),t=r%1;return r===r?t?r-t:r:0}function fn(n){var r=n==null?0:n.length;return r?O(n):[]}var b=Object.prototype,Z=b.hasOwnProperty,dn=$(function(n,r){n=Object(n);var t=-1,i=r.length,a=i>2?r[2]:void 0;for(a&&E(r[0],r[1],a)&&(i=1);++t<i;)for(var f=r[t],e=F(f),s=-1,d=e.length;++s<d;){var u=e[s],h=n[u];(h===void 0||M(h,b[u])&&!Z.call(n,u))&&(n[u]=f[u])}return n});function un(n){var r=n==null?0:n.length;return r?n[r-1]:void 0}function D(n){return function(r,t,i){var a=Object(r);if(!l(r)){var f=m(t);r=P(r),t=function(s){return f(a[s],s,a)}}var e=n(r,t,i);return e>-1?a[f?r[e]:e]:void 0}}var J=Math.max;function Q(n,r,t){var i=n==null?0:n.length;if(!i)return-1;var a=t==null?0:U(t);return a<0&&(a=J(i+a,0)),p(n,m(r),a)}var hn=D(Q);function V(n,r){var t=-1,i=l(n)?Array(n.length):[];return w(n,function(a,f,e){i[++t]=r(a,f,e)}),i}function gn(n,r){var t=T(n)?c:V;return t(n,m(r))}var j=Object.prototype,k=j.hasOwnProperty;function nn(n,r){return n!=null&&k.call(n,r)}function mn(n,r){return n!=null&&A(n,r,nn)}function rn(n,r){return n<r}function tn(n,r,t){for(var i=-1,a=n.length;++i<a;){var f=n[i],e=r(f);if(e!=null&&(s===void 0?e===e&&!x(e):t(e,s)))var s=e,d=f}return d}function on(n){return n&&n.length?tn(n,B,rn):void 0}function an(n,r,t,i){if(!g(n))return n;r=I(r,n);for(var a=-1,f=r.length,e=f-1,s=n;s!=null&&++a<f;){var d=N(r[a]),u=t;if(d==="__proto__"||d==="constructor"||d==="prototype")return n;if(a!=e){var h=s[d];u=void 0,u===void 0&&(u=g(h)?h:y(r[a+1])?[]:{})}S(s,d,u),s=s[d]}return n}function vn(n,r,t){for(var i=-1,a=r.length,f={};++i<a;){var e=r[i],s=_(n,e);t(s,e)&&an(f,I(e,n),s)}return f}export{rn as a,tn as b,V as c,vn as d,on as e,fn as f,hn as g,mn as h,dn as i,U as j,un as l,gn as m,K as t};
|
||||
import{e as x,c as O,g as m,k as P,h as p,j as w,l as c,m as A,n as I,t as N,o as _}from"./_baseUniq-DA1M3hdA.js";import{aT as g,aC as $,aU as E,aV as F,aW as M,aX as l,aY as T,aZ as B,a_ as y,a$ as S}from"./mermaid.core-Bsqol0Mw.js";var C=/\s/;function G(n){for(var r=n.length;r--&&C.test(n.charAt(r)););return r}var H=/^\s+/;function L(n){return n&&n.slice(0,G(n)+1).replace(H,"")}var o=NaN,R=/^[-+]0x[0-9a-f]+$/i,W=/^0b[01]+$/i,X=/^0o[0-7]+$/i,Y=parseInt;function q(n){if(typeof n=="number")return n;if(x(n))return o;if(g(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=g(r)?r+"":r}if(typeof n!="string")return n===0?n:+n;n=L(n);var t=W.test(n);return t||X.test(n)?Y(n.slice(2),t?2:8):R.test(n)?o:+n}var v=1/0,z=17976931348623157e292;function K(n){if(!n)return n===0?n:0;if(n=q(n),n===v||n===-v){var r=n<0?-1:1;return r*z}return n===n?n:0}function U(n){var r=K(n),t=r%1;return r===r?t?r-t:r:0}function fn(n){var r=n==null?0:n.length;return r?O(n):[]}var b=Object.prototype,Z=b.hasOwnProperty,dn=$(function(n,r){n=Object(n);var t=-1,i=r.length,a=i>2?r[2]:void 0;for(a&&E(r[0],r[1],a)&&(i=1);++t<i;)for(var f=r[t],e=F(f),s=-1,d=e.length;++s<d;){var u=e[s],h=n[u];(h===void 0||M(h,b[u])&&!Z.call(n,u))&&(n[u]=f[u])}return n});function un(n){var r=n==null?0:n.length;return r?n[r-1]:void 0}function D(n){return function(r,t,i){var a=Object(r);if(!l(r)){var f=m(t);r=P(r),t=function(s){return f(a[s],s,a)}}var e=n(r,t,i);return e>-1?a[f?r[e]:e]:void 0}}var J=Math.max;function Q(n,r,t){var i=n==null?0:n.length;if(!i)return-1;var a=t==null?0:U(t);return a<0&&(a=J(i+a,0)),p(n,m(r),a)}var hn=D(Q);function V(n,r){var t=-1,i=l(n)?Array(n.length):[];return w(n,function(a,f,e){i[++t]=r(a,f,e)}),i}function gn(n,r){var t=T(n)?c:V;return t(n,m(r))}var j=Object.prototype,k=j.hasOwnProperty;function nn(n,r){return n!=null&&k.call(n,r)}function mn(n,r){return n!=null&&A(n,r,nn)}function rn(n,r){return n<r}function tn(n,r,t){for(var i=-1,a=n.length;++i<a;){var f=n[i],e=r(f);if(e!=null&&(s===void 0?e===e&&!x(e):t(e,s)))var s=e,d=f}return d}function on(n){return n&&n.length?tn(n,B,rn):void 0}function an(n,r,t,i){if(!g(n))return n;r=I(r,n);for(var a=-1,f=r.length,e=f-1,s=n;s!=null&&++a<f;){var d=N(r[a]),u=t;if(d==="__proto__"||d==="constructor"||d==="prototype")return n;if(a!=e){var h=s[d];u=void 0,u===void 0&&(u=g(h)?h:y(r[a+1])?[]:{})}S(s,d,u),s=s[d]}return n}function vn(n,r,t){for(var i=-1,a=r.length,f={};++i<a;){var e=r[i],s=_(n,e);t(s,e)&&an(f,I(e,n),s)}return f}export{rn as a,tn as b,V as c,vn as d,on as e,fn as f,hn as g,mn as h,dn as i,U as j,un as l,gn as m,K as t};
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{a0 as ln,a1 as an,a2 as H,a3 as q,a4 as B,a5 as un,a6 as y,a7 as tn,a8 as L,a9 as _,aa as rn,ab as o,ac as on,ad as sn,ae as fn}from"./mermaid.core-C4K9MPKx.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,I,D,v,A,C,a){var O=I-l,i=D-h,n=C-v,d=a-A,u=d*O-n*i;if(!(u*u<y))return u=(n*(h-A)-d*(l-v))/u,[l+u*O,h+u*i]}function W(l,h,I,D,v,A,C){var a=l-I,O=h-D,i=(C?A:-A)/L(a*a+O*O),n=i*O,d=-i*a,u=l+n,s=h+d,f=I+n,c=D+d,F=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,R=m*m+g*g,T=v-A,P=u*c-f*s,S=(g<0?-1:1)*L(on(0,T*T*R-P*P)),j=(P*g-m*S)/R,z=(-P*m-g*S)/R,w=(P*g+m*S)/R,p=(-P*m+g*S)/R,x=j-F,e=z-t,r=w-F,G=p-t;return x*x+e*e>r*r+G*G&&(j=w,z=p),{cx:j,cy:z,x01:-n,y01:-d,x11:j*(v/T-1),y11:z*(v/T-1)}}function hn(){var l=cn,h=yn,I=B(0),D=null,v=gn,A=dn,C=mn,a=null,O=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=A.apply(this,arguments)-un,F=rn(c-f),t=c>f;if(a||(a=n=O()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(F>tn-y)a.moveTo(s*H(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*H(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=F,S=F,j=C.apply(this,arguments)/2,z=j>y&&(D?+D.apply(this,arguments):L(u*u+s*s)),w=_(rn(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if(z>y){var G=sn(z/u*q(j)),M=sn(z/s*q(j));(P-=G*2)>y?(G*=t?1:-1,R+=G,T-=G):(P=0,R=T=(f+c)/2),(S-=M*2)>y?(M*=t?1:-1,m+=M,g-=M):(S=0,m=g=(f+c)/2)}var J=s*H(m),K=s*q(m),N=u*H(T),Q=u*q(T);if(w>y){var U=s*H(g),V=s*q(g),X=u*H(R),Y=u*q(R),E;if(F<an)if(E=pn(J,K,X,Y,U,V,N,Q)){var Z=J-E[0],$=K-E[1],b=U-E[0],k=V-E[1],nn=1/q(fn((Z*b+$*k)/(L(Z*Z+$*$)*L(b*b+k*k)))/2),en=L(E[0]*E[0]+E[1]*E[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}S>y?x>y?(e=W(X,Y,J,K,s,x,t),r=W(U,V,N,Q,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(J,K),a.arc(0,0,s,m,g,!t)):a.moveTo(J,K),!(u>y)||!(P>y)?a.lineTo(N,Q):p>y?(e=W(N,Q,U,V,u,-p,t),r=W(J,K,X,Y,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,R,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[H(d)*n,q(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:B(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:B(+n),i):h},i.cornerRadius=function(n){return arguments.length?(I=typeof n=="function"?n:B(+n),i):I},i.padRadius=function(n){return arguments.length?(D=n==null?null:typeof n=="function"?n:B(+n),i):D},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:B(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:B(+n),i):A},i.padAngle=function(n){return arguments.length?(C=typeof n=="function"?n:B(+n),i):C},i.context=function(n){return arguments.length?(a=n==null?null:n,i):a},i}export{hn as d};
|
||||
import{a0 as ln,a1 as an,a2 as H,a3 as q,a4 as B,a5 as un,a6 as y,a7 as tn,a8 as L,a9 as _,aa as rn,ab as o,ac as on,ad as sn,ae as fn}from"./mermaid.core-Bsqol0Mw.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,I,D,v,A,C,a){var O=I-l,i=D-h,n=C-v,d=a-A,u=d*O-n*i;if(!(u*u<y))return u=(n*(h-A)-d*(l-v))/u,[l+u*O,h+u*i]}function W(l,h,I,D,v,A,C){var a=l-I,O=h-D,i=(C?A:-A)/L(a*a+O*O),n=i*O,d=-i*a,u=l+n,s=h+d,f=I+n,c=D+d,F=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,R=m*m+g*g,T=v-A,P=u*c-f*s,S=(g<0?-1:1)*L(on(0,T*T*R-P*P)),j=(P*g-m*S)/R,z=(-P*m-g*S)/R,w=(P*g+m*S)/R,p=(-P*m+g*S)/R,x=j-F,e=z-t,r=w-F,G=p-t;return x*x+e*e>r*r+G*G&&(j=w,z=p),{cx:j,cy:z,x01:-n,y01:-d,x11:j*(v/T-1),y11:z*(v/T-1)}}function hn(){var l=cn,h=yn,I=B(0),D=null,v=gn,A=dn,C=mn,a=null,O=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=A.apply(this,arguments)-un,F=rn(c-f),t=c>f;if(a||(a=n=O()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(F>tn-y)a.moveTo(s*H(f),s*q(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*H(c),u*q(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,R=f,T=c,P=F,S=F,j=C.apply(this,arguments)/2,z=j>y&&(D?+D.apply(this,arguments):L(u*u+s*s)),w=_(rn(s-u)/2,+I.apply(this,arguments)),p=w,x=w,e,r;if(z>y){var G=sn(z/u*q(j)),M=sn(z/s*q(j));(P-=G*2)>y?(G*=t?1:-1,R+=G,T-=G):(P=0,R=T=(f+c)/2),(S-=M*2)>y?(M*=t?1:-1,m+=M,g-=M):(S=0,m=g=(f+c)/2)}var J=s*H(m),K=s*q(m),N=u*H(T),Q=u*q(T);if(w>y){var U=s*H(g),V=s*q(g),X=u*H(R),Y=u*q(R),E;if(F<an)if(E=pn(J,K,X,Y,U,V,N,Q)){var Z=J-E[0],$=K-E[1],b=U-E[0],k=V-E[1],nn=1/q(fn((Z*b+$*k)/(L(Z*Z+$*$)*L(b*b+k*k)))/2),en=L(E[0]*E[0]+E[1]*E[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}S>y?x>y?(e=W(X,Y,J,K,s,x,t),r=W(U,V,N,Q,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(J,K),a.arc(0,0,s,m,g,!t)):a.moveTo(J,K),!(u>y)||!(P>y)?a.lineTo(N,Q):p>y?(e=W(N,Q,U,V,u,-p,t),r=W(J,K,X,Y,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,R,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[H(d)*n,q(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:B(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:B(+n),i):h},i.cornerRadius=function(n){return arguments.length?(I=typeof n=="function"?n:B(+n),i):I},i.padRadius=function(n){return arguments.length?(D=n==null?null:typeof n=="function"?n:B(+n),i):D},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:B(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:B(+n),i):A},i.padAngle=function(n){return arguments.length?(C=typeof n=="function"?n:B(+n),i):C},i.context=function(n){return arguments.length?(a=n==null?null:n,i):a},i}export{hn as d};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{aq as o,ar as n}from"./mermaid.core-Bsqol0Mw.js";const t=(r,a)=>o.lang.round(n.parse(r)[a]);export{t as c};
|
||||
-1
@@ -1 +0,0 @@
|
||||
import{aq as o,ar as n}from"./mermaid.core-C4K9MPKx.js";const t=(r,a)=>o.lang.round(n.parse(r)[a]);export{t as c};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{_ as l}from"./mermaid.core-C4K9MPKx.js";function m(e,c){var i,t,o;e.accDescr&&((i=c.setAccDescription)==null||i.call(c,e.accDescr)),e.accTitle&&((t=c.setAccTitle)==null||t.call(c,e.accTitle)),e.title&&((o=c.setDiagramTitle)==null||o.call(c,e.title))}l(m,"populateCommonDb");export{m as p};
|
||||
import{_ as l}from"./mermaid.core-Bsqol0Mw.js";function m(e,c){var i,t,o;e.accDescr&&((i=c.setAccDescription)==null||i.call(c,e.accDescr)),e.accTitle&&((t=c.setAccTitle)==null||t.call(c,e.accTitle)),e.title&&((o=c.setDiagramTitle)==null||o.call(c,e.title))}l(m,"populateCommonDb");export{m as p};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{_ as a,d as o}from"./mermaid.core-C4K9MPKx.js";var d=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{d as g};
|
||||
import{_ as a,d as o}from"./mermaid.core-Bsqol0Mw.js";var d=a((t,e)=>{let n;return e==="sandbox"&&(n=o("#i"+t)),(e==="sandbox"?o(n.nodes()[0].contentDocument.body):o("body")).select(`[id="${t}"]`)},"getDiagramElement");export{d as g};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{_ as e}from"./mermaid.core-C4K9MPKx.js";var l=e(()=>`
|
||||
import{_ as e}from"./mermaid.core-Bsqol0Mw.js";var l=e(()=>`
|
||||
/* Font Awesome icon styling - consolidated */
|
||||
.label-icon {
|
||||
display: inline-block;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{_ as n,d as l,U as d,j as o}from"./mermaid.core-C4K9MPKx.js";var x=n((r,t)=>{const e=r.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 s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=n((r,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(r,e).lower()},"drawBackgroundRect"),y=n((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=n((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const i=o(s);a.attr("xlink:href",i)},"drawImage"),g=n((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const i=o(s);a.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),h=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=n(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{p as a,f as b,w as c,x as d,g as e,m as f,h as g,y as h};
|
||||
import{_ as n,d as l,U as d,j as o}from"./mermaid.core-Bsqol0Mw.js";var x=n((r,t)=>{const e=r.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 s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=n((r,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(r,e).lower()},"drawBackgroundRect"),y=n((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=n((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const i=o(s);a.attr("xlink:href",i)},"drawImage"),g=n((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const i=o(s);a.attr("xlink:href",`#${i}`)},"drawEmbeddedImage"),h=n(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=n(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=n(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{p as a,f as b,w as c,x as d,g as e,m as f,h as g,y as h};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{_ as a,e as w,l as x}from"./mermaid.core-C4K9MPKx.js";var d=a((e,t,i,o)=>{e.attr("class",i);const{width:r,height:h,x:n,y:c}=u(e,t);w(e,h,r,o);const s=l(n,c,r,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{var o;const i=((o=e.node())==null?void 0:o.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,o,r)=>`${e-r} ${t-r} ${i} ${o}`,"createViewBox");export{d as s};
|
||||
import{_ as a,e as w,l as x}from"./mermaid.core-Bsqol0Mw.js";var d=a((e,t,i,o)=>{e.attr("class",i);const{width:r,height:h,x:n,y:c}=u(e,t);w(e,h,r,o);const s=l(n,c,r,h,t);e.attr("viewBox",s),x.debug(`viewBox configured: ${s} with padding: ${t}`)},"setupViewPortForSVG"),u=a((e,t)=>{var o;const i=((o=e.node())==null?void 0:o.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,o,r)=>`${e-r} ${t-r} ${i} ${o}`,"createViewBox");export{d as s};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{_ as s}from"./mermaid.core-C4K9MPKx.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
|
||||
import{_ as s}from"./mermaid.core-Bsqol0Mw.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{s as a,c as s,a as e,C as t}from"./chunk-WL4C6EOR-C8hwg_B9.js";import{_ as i}from"./mermaid.core-Bsqol0Mw.js";import"./chunk-FMBD7UC4-lZkr-nAJ.js";import"./chunk-JSJVCQXG-hG7WA3TU.js";import"./chunk-55IACEB6-BM96SOzg.js";import"./chunk-KX2RTZJC-CWZ2KlGq.js";import"./index-BIaXvqxP.js";var n={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{n as diagram};
|
||||
@@ -1 +0,0 @@
|
||||
import{s as a,c as s,a as e,C as t}from"./chunk-WL4C6EOR-C_Gf0Tgu.js";import{_ as i}from"./mermaid.core-C4K9MPKx.js";import"./chunk-FMBD7UC4-ILaOIlOo.js";import"./chunk-JSJVCQXG-DdLEnSNZ.js";import"./chunk-55IACEB6-D2besknH.js";import"./chunk-KX2RTZJC-DKb9SByk.js";import"./index-TuHwd6tW.js";var n={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{n as diagram};
|
||||
@@ -0,0 +1 @@
|
||||
import{s as a,c as s,a as e,C as t}from"./chunk-WL4C6EOR-C8hwg_B9.js";import{_ as i}from"./mermaid.core-Bsqol0Mw.js";import"./chunk-FMBD7UC4-lZkr-nAJ.js";import"./chunk-JSJVCQXG-hG7WA3TU.js";import"./chunk-55IACEB6-BM96SOzg.js";import"./chunk-KX2RTZJC-CWZ2KlGq.js";import"./index-BIaXvqxP.js";var n={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{n as diagram};
|
||||
@@ -1 +0,0 @@
|
||||
import{s as a,c as s,a as e,C as t}from"./chunk-WL4C6EOR-C_Gf0Tgu.js";import{_ as i}from"./mermaid.core-C4K9MPKx.js";import"./chunk-FMBD7UC4-ILaOIlOo.js";import"./chunk-JSJVCQXG-DdLEnSNZ.js";import"./chunk-55IACEB6-D2besknH.js";import"./chunk-KX2RTZJC-DKb9SByk.js";import"./index-TuHwd6tW.js";var n={parser:e,get db(){return new t},renderer:s,styles:a,init:i(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute},"init")};export{n as diagram};
|
||||
-1
@@ -1 +0,0 @@
|
||||
import{b as r}from"./_baseUniq-I4-_xKvU.js";var e=4;function a(o){return r(o,e)}export{a as c};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{b as r}from"./_baseUniq-DA1M3hdA.js";var e=4;function a(o){return r(o,e)}export{a as c};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
var T=Object.defineProperty;var w=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var v=(e,t,a)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,b=(e,t)=>{for(var a in t||(t={}))z.call(t,a)&&v(e,a,t[a]);if(w)for(var a of w(t))E.call(t,a)&&v(e,a,t[a]);return e};var x=(e,t,a)=>new Promise((i,n)=>{var d=s=>{try{o(a.next(s))}catch(l){n(l)}},r=s=>{try{o(a.throw(s))}catch(l){n(l)}},o=s=>s.done?i(s.value):Promise.resolve(s.value).then(d,r);o((a=a.apply(e,t)).next())});import{_ as u,E as y,I as F,e as P,l as $,b as A,a as W,p as _,q as N,g as I,s as L,F as M,G as Y,z as G}from"./mermaid.core-C4K9MPKx.js";import{p as O}from"./chunk-4BX2VUAB-nx3PpmLv.js";import{p as j}from"./treemap-KZPCXAKY-BXq10bJZ.js";import"./index-TuHwd6tW.js";import"./_baseUniq-I4-_xKvU.js";import"./_basePickBy-CVZqqnVf.js";import"./clone-BVLDOfoe.js";var q=M.packet,m,B=(m=class{constructor(){this.packet=[],this.setAccTitle=A,this.getAccTitle=W,this.setDiagramTitle=_,this.getDiagramTitle=N,this.getAccDescription=I,this.setAccDescription=L}getConfig(){const t=y(b(b({},q),Y().packet));return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){G(),this.packet=[]}},u(m,"PacketDB"),m),H=1e4,K=u((e,t)=>{O(e,t);let a=-1,i=[],n=1;const{bitsPerRow:d}=t.getConfig();for(let{start:r,end:o,bits:s,label:l}of e.blocks){if(r!==void 0&&o!==void 0&&o<r)throw new Error(`Packet block ${r} - ${o} is invalid. End must be greater than start.`);if(r!=null||(r=a+1),r!==a+1)throw new Error(`Packet block ${r} - ${o!=null?o:r} is not contiguous. It should start from ${a+1}.`);if(s===0)throw new Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(o!=null||(o=r+(s!=null?s:1)-1),s!=null||(s=o-r+1),a=o,$.debug(`Packet block ${r} - ${a} with label ${l}`);i.length<=d+1&&t.getPacket().length<H;){const[p,c]=R({start:r,end:o,bits:s,label:l},n,d);if(i.push(p),p.end+1===n*d&&(t.pushWord(i),i=[],n++),!c)break;({start:r,end:o,bits:s,label:l}=c)}}t.pushWord(i)},"populate"),R=u((e,t,a)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*a)return[e,void 0];const i=t*a-1,n=t*a;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),C={parser:{yy:void 0},parse:u(e=>x(void 0,null,function*(){var i;const t=yield j("packet",e),a=(i=C.parser)==null?void 0:i.yy;if(!(a instanceof B))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");$.debug(t),K(t,a)}),"parse")},U=u((e,t,a,i)=>{const n=i.db,d=n.getConfig(),{rowHeight:r,paddingY:o,bitWidth:s,bitsPerRow:l}=d,p=n.getPacket(),c=n.getDiagramTitle(),h=r+o,g=h*(p.length+1)-(c?0:r),k=s*l+2,f=F(t);f.attr("viewBox",`0 0 ${k} ${g}`),P(f,g,k,d.useMaxWidth);for(const[S,D]of p.entries())X(f,D,S,d);f.append("text").text(c).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),X=u((e,t,a,{rowHeight:i,paddingX:n,paddingY:d,bitWidth:r,bitsPerRow:o,showBits:s})=>{const l=e.append("g"),p=a*(i+d)+d;for(const c of t){const h=c.start%o*r+1,g=(c.end-c.start+1)*r-n;if(l.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",i).attr("class","packetBlock"),l.append("text").attr("x",h+g/2).attr("y",p+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(c.label),!s)continue;const k=c.end===c.start,f=p-2;l.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(c.start),k||l.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(c.end)}},"drawWord"),J={draw:U},Q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},V=u(({packet:e}={})=>{const t=y(Q,e);return`
|
||||
var T=Object.defineProperty;var w=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var v=(e,t,a)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,b=(e,t)=>{for(var a in t||(t={}))z.call(t,a)&&v(e,a,t[a]);if(w)for(var a of w(t))E.call(t,a)&&v(e,a,t[a]);return e};var x=(e,t,a)=>new Promise((i,n)=>{var d=s=>{try{o(a.next(s))}catch(l){n(l)}},r=s=>{try{o(a.throw(s))}catch(l){n(l)}},o=s=>s.done?i(s.value):Promise.resolve(s.value).then(d,r);o((a=a.apply(e,t)).next())});import{_ as u,E as y,I as F,e as P,l as $,b as A,a as W,p as _,q as N,g as I,s as L,F as M,G as Y,z as G}from"./mermaid.core-Bsqol0Mw.js";import{p as O}from"./chunk-4BX2VUAB-UZFNz33b.js";import{p as j}from"./treemap-KZPCXAKY-COaRfk04.js";import"./index-BIaXvqxP.js";import"./_baseUniq-DA1M3hdA.js";import"./_basePickBy-D3UF4kXu.js";import"./clone-Dd6pHYqf.js";var q=M.packet,m,B=(m=class{constructor(){this.packet=[],this.setAccTitle=A,this.getAccTitle=W,this.setDiagramTitle=_,this.getDiagramTitle=N,this.getAccDescription=I,this.setAccDescription=L}getConfig(){const t=y(b(b({},q),Y().packet));return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){G(),this.packet=[]}},u(m,"PacketDB"),m),H=1e4,K=u((e,t)=>{O(e,t);let a=-1,i=[],n=1;const{bitsPerRow:d}=t.getConfig();for(let{start:r,end:o,bits:s,label:l}of e.blocks){if(r!==void 0&&o!==void 0&&o<r)throw new Error(`Packet block ${r} - ${o} is invalid. End must be greater than start.`);if(r!=null||(r=a+1),r!==a+1)throw new Error(`Packet block ${r} - ${o!=null?o:r} is not contiguous. It should start from ${a+1}.`);if(s===0)throw new Error(`Packet block ${r} is invalid. Cannot have a zero bit field.`);for(o!=null||(o=r+(s!=null?s:1)-1),s!=null||(s=o-r+1),a=o,$.debug(`Packet block ${r} - ${a} with label ${l}`);i.length<=d+1&&t.getPacket().length<H;){const[p,c]=R({start:r,end:o,bits:s,label:l},n,d);if(i.push(p),p.end+1===n*d&&(t.pushWord(i),i=[],n++),!c)break;({start:r,end:o,bits:s,label:l}=c)}}t.pushWord(i)},"populate"),R=u((e,t,a)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*a)return[e,void 0];const i=t*a-1,n=t*a;return[{start:e.start,end:i,label:e.label,bits:i-e.start},{start:n,end:e.end,label:e.label,bits:e.end-n}]},"getNextFittingBlock"),C={parser:{yy:void 0},parse:u(e=>x(void 0,null,function*(){var i;const t=yield j("packet",e),a=(i=C.parser)==null?void 0:i.yy;if(!(a instanceof B))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");$.debug(t),K(t,a)}),"parse")},U=u((e,t,a,i)=>{const n=i.db,d=n.getConfig(),{rowHeight:r,paddingY:o,bitWidth:s,bitsPerRow:l}=d,p=n.getPacket(),c=n.getDiagramTitle(),h=r+o,g=h*(p.length+1)-(c?0:r),k=s*l+2,f=F(t);f.attr("viewBox",`0 0 ${k} ${g}`),P(f,g,k,d.useMaxWidth);for(const[S,D]of p.entries())X(f,D,S,d);f.append("text").text(c).attr("x",k/2).attr("y",g-h/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),X=u((e,t,a,{rowHeight:i,paddingX:n,paddingY:d,bitWidth:r,bitsPerRow:o,showBits:s})=>{const l=e.append("g"),p=a*(i+d)+d;for(const c of t){const h=c.start%o*r+1,g=(c.end-c.start+1)*r-n;if(l.append("rect").attr("x",h).attr("y",p).attr("width",g).attr("height",i).attr("class","packetBlock"),l.append("text").attr("x",h+g/2).attr("y",p+i/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(c.label),!s)continue;const k=c.end===c.start,f=p-2;l.append("text").attr("x",h+(k?g/2:0)).attr("y",f).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(c.start),k||l.append("text").attr("x",h+g).attr("y",f).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(c.end)}},"drawWord"),J={draw:U},Q={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},V=u(({packet:e}={})=>{const t=y(Q,e);return`
|
||||
.packetByte {
|
||||
font-size: ${t.byteFontSize};
|
||||
}
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
var $t=Object.defineProperty,te=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var zt=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var Wt=(s,i,a)=>i in s?$t(s,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[i]=a,it=(s,i)=>{for(var a in i||(i={}))se.call(i,a)&&Wt(s,a,i[a]);if(zt)for(var a of zt(i))ie.call(i,a)&&Wt(s,a,i[a]);return s},rt=(s,i)=>te(s,ee(i));var jt=(s,i,a)=>new Promise((n,u)=>{var o=g=>{try{c(a.next(g))}catch(r){u(r)}},p=g=>{try{c(a.throw(g))}catch(r){u(r)}},c=g=>g.done?n(g.value):Promise.resolve(g.value).then(o,p);c((a=a.apply(s,i)).next())});import{g as re}from"./chunk-FMBD7UC4-ILaOIlOo.js";import{_ as T,n as Kt,l as e1,c as k1,d as M1,o as ae,r as ne,u as nt,b as ue,s as oe,p as le,a as ce,g as he,q as de,k as pe,t as fe,J as ge,v as be,x as at,y as Ae,z as ke,A as me,B as Te}from"./mermaid.core-C4K9MPKx.js";import{c as Ce}from"./chunk-JSJVCQXG-DdLEnSNZ.js";import{g as Se}from"./chunk-55IACEB6-D2besknH.js";import{s as De}from"./chunk-KX2RTZJC-DKb9SByk.js";import{c as xe}from"./channel-DPTj7dU4.js";import"./index-TuHwd6tW.js";var ye="flowchart-",P1,Ee=(P1=class{constructor(){this.vertexCounter=0,this.config=k1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=ue,this.setAccDescription=oe,this.setDiagramTitle=le,this.getAccTitle=ce,this.getAccDescription=he,this.getDiagramTitle=de,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return pe.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return a.domId;return i}addVertex(i,a,n,u,o,p,c={},g){var U,y;if(!i||i.trim().length===0)return;let r;if(g!==void 0){let h;g.includes(`
|
||||
var $t=Object.defineProperty,te=Object.defineProperties;var ee=Object.getOwnPropertyDescriptors;var zt=Object.getOwnPropertySymbols;var se=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;var Wt=(s,i,a)=>i in s?$t(s,i,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[i]=a,it=(s,i)=>{for(var a in i||(i={}))se.call(i,a)&&Wt(s,a,i[a]);if(zt)for(var a of zt(i))ie.call(i,a)&&Wt(s,a,i[a]);return s},rt=(s,i)=>te(s,ee(i));var jt=(s,i,a)=>new Promise((n,u)=>{var o=g=>{try{c(a.next(g))}catch(r){u(r)}},p=g=>{try{c(a.throw(g))}catch(r){u(r)}},c=g=>g.done?n(g.value):Promise.resolve(g.value).then(o,p);c((a=a.apply(s,i)).next())});import{g as re}from"./chunk-FMBD7UC4-lZkr-nAJ.js";import{_ as T,n as Kt,l as e1,c as k1,d as M1,o as ae,r as ne,u as nt,b as ue,s as oe,p as le,a as ce,g as he,q as de,k as pe,t as fe,J as ge,v as be,x as at,y as Ae,z as ke,A as me,B as Te}from"./mermaid.core-Bsqol0Mw.js";import{c as Ce}from"./chunk-JSJVCQXG-hG7WA3TU.js";import{g as Se}from"./chunk-55IACEB6-BM96SOzg.js";import{s as De}from"./chunk-KX2RTZJC-CWZ2KlGq.js";import{c as xe}from"./channel-CLTurIt7.js";import"./index-BIaXvqxP.js";var ye="flowchart-",P1,Ee=(P1=class{constructor(){this.vertexCounter=0,this.config=k1(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.funs=[],this.setAccTitle=ue,this.setAccDescription=oe,this.setDiagramTitle=le,this.getAccTitle=ce,this.getAccDescription=he,this.getDiagramTitle=de,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return pe.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}lookUpDomId(i){for(const a of this.vertices.values())if(a.id===i)return a.domId;return i}addVertex(i,a,n,u,o,p,c={},g){var U,y;if(!i||i.trim().length===0)return;let r;if(g!==void 0){let h;g.includes(`
|
||||
`)?h=g+`
|
||||
`:h=`{
|
||||
`+g+`
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+515
File diff suppressed because one or more lines are too long
-486
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,2 +1,2 @@
|
||||
var g=(a,t,e)=>new Promise((o,s)=>{var d=r=>{try{n(e.next(r))}catch(i){s(i)}},m=r=>{try{n(e.throw(r))}catch(i){s(i)}},n=r=>r.done?o(r.value):Promise.resolve(r.value).then(d,m);n((e=e.apply(a,t)).next())});import{_ as p,l as v,I as c,e as l}from"./mermaid.core-C4K9MPKx.js";import{p as f}from"./treemap-KZPCXAKY-BXq10bJZ.js";import"./index-TuHwd6tW.js";import"./_baseUniq-I4-_xKvU.js";import"./_basePickBy-CVZqqnVf.js";import"./clone-BVLDOfoe.js";var u={parse:p(a=>g(void 0,null,function*(){const t=yield f("info",a);v.debug(t)}),"parse")},x={version:"11.13.0"},_=p(()=>x.version,"getVersion"),b={getVersion:_},w=p((a,t,e)=>{v.debug(`rendering info diagram
|
||||
var g=(a,t,e)=>new Promise((o,s)=>{var d=r=>{try{n(e.next(r))}catch(i){s(i)}},m=r=>{try{n(e.throw(r))}catch(i){s(i)}},n=r=>r.done?o(r.value):Promise.resolve(r.value).then(d,m);n((e=e.apply(a,t)).next())});import{_ as p,l as v,I as c,e as l}from"./mermaid.core-Bsqol0Mw.js";import{p as f}from"./treemap-KZPCXAKY-COaRfk04.js";import"./index-BIaXvqxP.js";import"./_baseUniq-DA1M3hdA.js";import"./_basePickBy-D3UF4kXu.js";import"./clone-Dd6pHYqf.js";var u={parse:p(a=>g(void 0,null,function*(){const t=yield f("info",a);v.debug(t)}),"parse")},x={version:"11.13.0"},_=p(()=>x.version,"getVersion"),b={getVersion:_},w=p((a,t,e)=>{v.debug(`rendering info diagram
|
||||
`+a);const o=c(t);l(o,100,400,!0),o.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${e}`)},"draw"),y={draw:w},h={parser:u,db:b,renderer:y};export{h as diagram};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{_ as l,c as ot,N as ut,I as dt,as as yt,z as ft,k as pt,p as it,a as gt,b as kt,g as mt,s as wt,q as _t,e as bt}from"./mermaid.core-C4K9MPKx.js";import"./index-TuHwd6tW.js";var tt=function(){var e=l(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),o=[1,4],a=[1,14],n=[1,12],r=[1,13],y=[6,7,8],f=[1,20],u=[1,18],w=[1,19],h=[6,7,11],x=[1,6,13,14],k=[1,23],g=[1,24],S=[1,6,7,11,13,14],O={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:l(function(t,s,i,d,p,c,$){var b=c.length-1;switch(p){case 6:case 7:return d;case 15:d.addNode(c[b-1].length,c[b].trim());break;case 16:d.addNode(0,c[b].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:o},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:o},{6:a,7:[1,10],9:9,12:11,13:n,14:r},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:a,12:15,13:n,14:r},{6:a,9:16,12:11,13:n,14:r},{6:f,7:u,10:17,11:w},e(h,[2,18],{14:[1,21]}),e(h,[2,16]),e(h,[2,17]),{6:f,7:u,10:22,11:w},{1:[2,7],6:a,12:15,13:n,14:r},e(x,[2,14],{7:k,11:g}),e(S,[2,8]),e(S,[2,9]),e(S,[2,10]),e(h,[2,15]),e(x,[2,13],{7:k,11:g}),e(S,[2,11]),e(S,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:l(function(t){var s=this,i=[0],d=[],p=[null],c=[],$=this.table,b="",v=0,M=0,E=2,L=1,N=c.slice.call(arguments,1),m=Object.create(this.lexer),V={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(V.yy[F]=this.yy[F]);m.setInput(t,V.yy),V.yy.lexer=m,V.yy.parser=this,typeof m.yylloc=="undefined"&&(m.yylloc={});var j=m.yylloc;c.push(j);var X=m.options&&m.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(B){i.length=i.length-2*B,p.length=p.length-B,c.length=c.length-B}l(Y,"popStack");function Z(){var B;return B=d.pop()||m.lex()||L,typeof B!="number"&&(B instanceof Array&&(d=B,B=d.pop()),B=s.symbols_[B]||B),B}l(Z,"lex");for(var A,W,_,P,D={},z,C,et,q;;){if(W=i[i.length-1],this.defaultActions[W]?_=this.defaultActions[W]:((A===null||typeof A=="undefined")&&(A=Z()),_=$[W]&&$[W][A]),typeof _=="undefined"||!_.length||!_[0]){var Q="";q=[];for(z in $[W])this.terminals_[z]&&z>E&&q.push("'"+this.terminals_[z]+"'");m.showPosition?Q="Parse error on line "+(v+1)+`:
|
||||
import{_ as l,c as ot,N as ut,I as dt,as as yt,z as ft,k as pt,p as it,a as gt,b as kt,g as mt,s as wt,q as _t,e as bt}from"./mermaid.core-Bsqol0Mw.js";import"./index-BIaXvqxP.js";var tt=function(){var e=l(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),o=[1,4],a=[1,14],n=[1,12],r=[1,13],y=[6,7,8],f=[1,20],u=[1,18],w=[1,19],h=[6,7,11],x=[1,6,13,14],k=[1,23],g=[1,24],S=[1,6,7,11,13,14],O={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:l(function(t,s,i,d,p,c,$){var b=c.length-1;switch(p){case 6:case 7:return d;case 15:d.addNode(c[b-1].length,c[b].trim());break;case 16:d.addNode(0,c[b].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:o},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:o},{6:a,7:[1,10],9:9,12:11,13:n,14:r},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:a,12:15,13:n,14:r},{6:a,9:16,12:11,13:n,14:r},{6:f,7:u,10:17,11:w},e(h,[2,18],{14:[1,21]}),e(h,[2,16]),e(h,[2,17]),{6:f,7:u,10:22,11:w},{1:[2,7],6:a,12:15,13:n,14:r},e(x,[2,14],{7:k,11:g}),e(S,[2,8]),e(S,[2,9]),e(S,[2,10]),e(h,[2,15]),e(x,[2,13],{7:k,11:g}),e(S,[2,11]),e(S,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:l(function(t){var s=this,i=[0],d=[],p=[null],c=[],$=this.table,b="",v=0,M=0,E=2,L=1,N=c.slice.call(arguments,1),m=Object.create(this.lexer),V={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(V.yy[F]=this.yy[F]);m.setInput(t,V.yy),V.yy.lexer=m,V.yy.parser=this,typeof m.yylloc=="undefined"&&(m.yylloc={});var j=m.yylloc;c.push(j);var X=m.options&&m.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(B){i.length=i.length-2*B,p.length=p.length-B,c.length=c.length-B}l(Y,"popStack");function Z(){var B;return B=d.pop()||m.lex()||L,typeof B!="number"&&(B instanceof Array&&(d=B,B=d.pop()),B=s.symbols_[B]||B),B}l(Z,"lex");for(var A,W,_,P,D={},z,C,et,q;;){if(W=i[i.length-1],this.defaultActions[W]?_=this.defaultActions[W]:((A===null||typeof A=="undefined")&&(A=Z()),_=$[W]&&$[W][A]),typeof _=="undefined"||!_.length||!_[0]){var Q="";q=[];for(z in $[W])this.terminals_[z]&&z>E&&q.push("'"+this.terminals_[z]+"'");m.showPosition?Q="Parse error on line "+(v+1)+`:
|
||||
`+m.showPosition()+`
|
||||
Expecting `+q.join(", ")+", got '"+(this.terminals_[A]||A)+"'":Q="Parse error on line "+(v+1)+": Unexpected "+(A==L?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(Q,{text:m.match,token:this.terminals_[A]||A,line:m.yylineno,loc:j,expected:q})}if(_[0]instanceof Array&&_.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+A);switch(_[0]){case 1:i.push(A),p.push(m.yytext),c.push(m.yylloc),i.push(_[1]),A=null,M=m.yyleng,b=m.yytext,v=m.yylineno,j=m.yylloc;break;case 2:if(C=this.productions_[_[1]][1],D.$=p[p.length-C],D._$={first_line:c[c.length-(C||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(C||1)].first_column,last_column:c[c.length-1].last_column},X&&(D._$.range=[c[c.length-(C||1)].range[0],c[c.length-1].range[1]]),P=this.performAction.apply(D,[b,M,v,V.yy,_[1],p,c].concat(N)),typeof P!="undefined")return P;C&&(i=i.slice(0,-1*C*2),p=p.slice(0,-1*C),c=c.slice(0,-1*C)),i.push(this.productions_[_[1]][0]),p.push(D.$),c.push(D._$),et=$[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},R=function(){var T={EOF:1,parseError:l(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:l(function(t,s){return this.yy=s||this.yy||{},this._input=t,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:l(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:l(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;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),i.length-1&&(this.yylineno-=i.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:i?(i.length===d.length?this.yylloc.first_column:0)+d[d.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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).
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(t){this.unput(this.match.slice(t))},"less"),pastInput:l(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{g as gt}from"./chunk-FMBD7UC4-ILaOIlOo.js";import{a as mt,g as lt,h as xt,d as kt}from"./chunk-JSJVCQXG-DdLEnSNZ.js";import{g as _t,s as vt,a as bt,b as wt,q as Tt,p as St,_ as n,c as R,d as G,e as $t,z as Mt}from"./mermaid.core-C4K9MPKx.js";import{d as et}from"./arc-CGWXuTbL.js";import"./index-TuHwd6tW.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],d=[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,u,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:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.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:d,18:y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:c,14:r,16:f,17:d,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],u=[],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=="undefined"&&(_.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=u.pop()||_.lex()||Q,typeof w!="number"&&(w instanceof Array&&(u=w,w=u.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=="undefined")&&(v=D()),T=b[A]&&b[A][v]),typeof T=="undefined"||!T.length||!T[0]){var X="";z=[];for(N in b[A])this.terminals_[N]&&N>dt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?X="Parse error on line "+(C+1)+`:
|
||||
import{g as gt}from"./chunk-FMBD7UC4-lZkr-nAJ.js";import{a as mt,g as lt,h as xt,d as kt}from"./chunk-JSJVCQXG-hG7WA3TU.js";import{g as _t,s as vt,a as bt,b as wt,q as Tt,p as St,_ as n,c as R,d as G,e as $t,z as Mt}from"./mermaid.core-Bsqol0Mw.js";import{d as et}from"./arc-BFnGvzqt.js";import"./index-BIaXvqxP.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],d=[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,u,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:u.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),u.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),u.setAccDescription(this.$);break;case 12:u.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:u.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:d,18:y},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:c,14:r,16:f,17:d,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],u=[],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=="undefined"&&(_.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=u.pop()||_.lex()||Q,typeof w!="number"&&(w instanceof Array&&(u=w,w=u.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=="undefined")&&(v=D()),T=b[A]&&b[A][v]),typeof T=="undefined"||!T.length||!T[0]){var X="";z=[];for(N in b[A])this.terminals_[N]&&N>dt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?X="Parse error on line "+(C+1)+`:
|
||||
`+_.showPosition()+`
|
||||
Expecting `+z.join(", ")+", got '"+(this.terminals_[v]||v)+"'":X="Parse error on line "+(C+1)+": Unexpected "+(v==Q?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(X,{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!="undefined")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 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),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===u.length?this.yylloc.first_column:0)+u[u.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).
|
||||
`+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
-1
@@ -1,4 +1,4 @@
|
||||
var le=(e,p,g)=>new Promise((i,b)=>{var S=m=>{try{f(g.next(m))}catch(h){b(h)}},u=m=>{try{f(g.throw(m))}catch(h){b(h)}},f=m=>m.done?i(m.value):Promise.resolve(m.value).then(S,u);f((g=g.apply(e,p)).next())});import{_ as c,l as ne,c as z,I as ye,af as be,ag as me,ah as _e,V as ke,F as J,i as G,t as Ee,J as Se,W as Ne,X as ce,Y as he}from"./mermaid.core-C4K9MPKx.js";import{g as xe}from"./chunk-FMBD7UC4-ILaOIlOo.js";import"./index-TuHwd6tW.js";var ee=function(){var e=c(function(y,s,t,a){for(t=t||{},a=y.length;a--;t[y[a]]=s);return t},"o"),p=[1,4],g=[1,13],i=[1,12],b=[1,15],S=[1,16],u=[1,20],f=[1,19],m=[6,7,8],h=[1,26],O=[1,24],L=[1,25],k=[6,7,11],I=[1,31],r=[6,7,11,24],V=[1,6,13,16,17,20,23],M=[1,35],U=[1,36],w=[1,6,7,11,13,16,17,20,23],j=[1,38],B={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(function(s,t,a,l,d,n,T){var o=n.length-1;switch(d){case 6:case 7:return l;case 8:l.getLogger().trace("Stop NL ");break;case 9:l.getLogger().trace("Stop EOF ");break;case 11:l.getLogger().trace("Stop NL2 ");break;case 12:l.getLogger().trace("Stop EOF2 ");break;case 15:l.getLogger().info("Node: ",n[o-1].id),l.addNode(n[o-2].length,n[o-1].id,n[o-1].descr,n[o-1].type,n[o]);break;case 16:l.getLogger().info("Node: ",n[o].id),l.addNode(n[o-1].length,n[o].id,n[o].descr,n[o].type);break;case 17:l.getLogger().trace("Icon: ",n[o]),l.decorateNode({icon:n[o]});break;case 18:case 23:l.decorateNode({class:n[o]});break;case 19:l.getLogger().trace("SPACELIST");break;case 20:l.getLogger().trace("Node: ",n[o-1].id),l.addNode(0,n[o-1].id,n[o-1].descr,n[o-1].type,n[o]);break;case 21:l.getLogger().trace("Node: ",n[o].id),l.addNode(0,n[o].id,n[o].descr,n[o].type);break;case 22:l.decorateNode({icon:n[o]});break;case 27:l.getLogger().trace("node found ..",n[o-2]),this.$={id:n[o-1],descr:n[o-1],type:l.getType(n[o-2],n[o])};break;case 28:this.$={id:n[o],descr:n[o],type:0};break;case 29:l.getLogger().trace("node found ..",n[o-3]),this.$={id:n[o-3],descr:n[o-1],type:l.getType(n[o-2],n[o])};break;case 30:this.$=n[o-1]+n[o];break;case 31:this.$=n[o];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:p},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:p},{6:g,7:[1,10],9:9,12:11,13:i,14:14,16:b,17:S,18:17,19:18,20:u,23:f},e(m,[2,3]),{1:[2,2]},e(m,[2,4]),e(m,[2,5]),{1:[2,6],6:g,12:21,13:i,14:14,16:b,17:S,18:17,19:18,20:u,23:f},{6:g,9:22,12:11,13:i,14:14,16:b,17:S,18:17,19:18,20:u,23:f},{6:h,7:O,10:23,11:L},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:u,23:f}),e(k,[2,19]),e(k,[2,21],{15:30,24:I}),e(k,[2,22]),e(k,[2,23]),e(r,[2,25]),e(r,[2,26]),e(r,[2,28],{20:[1,32]}),{21:[1,33]},{6:h,7:O,10:34,11:L},{1:[2,7],6:g,12:21,13:i,14:14,16:b,17:S,18:17,19:18,20:u,23:f},e(V,[2,14],{7:M,11:U}),e(w,[2,8]),e(w,[2,9]),e(w,[2,10]),e(k,[2,16],{15:37,24:I}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:j}),e(r,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:M,11:U}),e(w,[2,11]),e(w,[2,12]),e(k,[2,15],{24:j}),e(r,[2,30]),{22:[1,41]},e(r,[2,27]),e(r,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,t){if(t.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=t,a}},"parseError"),parse:c(function(s){var t=this,a=[0],l=[],d=[null],n=[],T=this.table,o="",H=0,W=0,ge=2,re=1,de=n.slice.call(arguments,1),E=Object.create(this.lexer),R={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(R.yy[q]=this.yy[q]);E.setInput(s,R.yy),R.yy.lexer=E,R.yy.parser=this,typeof E.yylloc=="undefined"&&(E.yylloc={});var Q=E.yylloc;n.push(Q);var pe=E.options&&E.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fe(x){a.length=a.length-2*x,d.length=d.length-x,n.length=n.length-x}c(fe,"popStack");function ae(){var x;return x=l.pop()||E.lex()||re,typeof x!="number"&&(x instanceof Array&&(l=x,x=l.pop()),x=t.symbols_[x]||x),x}c(ae,"lex");for(var N,P,v,Z,F={},Y,C,oe,K;;){if(P=a[a.length-1],this.defaultActions[P]?v=this.defaultActions[P]:((N===null||typeof N=="undefined")&&(N=ae()),v=T[P]&&T[P][N]),typeof v=="undefined"||!v.length||!v[0]){var $="";K=[];for(Y in T[P])this.terminals_[Y]&&Y>ge&&K.push("'"+this.terminals_[Y]+"'");E.showPosition?$="Parse error on line "+(H+1)+`:
|
||||
var le=(e,p,g)=>new Promise((i,b)=>{var S=m=>{try{f(g.next(m))}catch(h){b(h)}},u=m=>{try{f(g.throw(m))}catch(h){b(h)}},f=m=>m.done?i(m.value):Promise.resolve(m.value).then(S,u);f((g=g.apply(e,p)).next())});import{_ as c,l as ne,c as z,I as ye,af as be,ag as me,ah as _e,V as ke,F as J,i as G,t as Ee,J as Se,W as Ne,X as ce,Y as he}from"./mermaid.core-Bsqol0Mw.js";import{g as xe}from"./chunk-FMBD7UC4-lZkr-nAJ.js";import"./index-BIaXvqxP.js";var ee=function(){var e=c(function(y,s,t,a){for(t=t||{},a=y.length;a--;t[y[a]]=s);return t},"o"),p=[1,4],g=[1,13],i=[1,12],b=[1,15],S=[1,16],u=[1,20],f=[1,19],m=[6,7,8],h=[1,26],O=[1,24],L=[1,25],k=[6,7,11],I=[1,31],r=[6,7,11,24],V=[1,6,13,16,17,20,23],M=[1,35],U=[1,36],w=[1,6,7,11,13,16,17,20,23],j=[1,38],B={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(function(s,t,a,l,d,n,T){var o=n.length-1;switch(d){case 6:case 7:return l;case 8:l.getLogger().trace("Stop NL ");break;case 9:l.getLogger().trace("Stop EOF ");break;case 11:l.getLogger().trace("Stop NL2 ");break;case 12:l.getLogger().trace("Stop EOF2 ");break;case 15:l.getLogger().info("Node: ",n[o-1].id),l.addNode(n[o-2].length,n[o-1].id,n[o-1].descr,n[o-1].type,n[o]);break;case 16:l.getLogger().info("Node: ",n[o].id),l.addNode(n[o-1].length,n[o].id,n[o].descr,n[o].type);break;case 17:l.getLogger().trace("Icon: ",n[o]),l.decorateNode({icon:n[o]});break;case 18:case 23:l.decorateNode({class:n[o]});break;case 19:l.getLogger().trace("SPACELIST");break;case 20:l.getLogger().trace("Node: ",n[o-1].id),l.addNode(0,n[o-1].id,n[o-1].descr,n[o-1].type,n[o]);break;case 21:l.getLogger().trace("Node: ",n[o].id),l.addNode(0,n[o].id,n[o].descr,n[o].type);break;case 22:l.decorateNode({icon:n[o]});break;case 27:l.getLogger().trace("node found ..",n[o-2]),this.$={id:n[o-1],descr:n[o-1],type:l.getType(n[o-2],n[o])};break;case 28:this.$={id:n[o],descr:n[o],type:0};break;case 29:l.getLogger().trace("node found ..",n[o-3]),this.$={id:n[o-3],descr:n[o-1],type:l.getType(n[o-2],n[o])};break;case 30:this.$=n[o-1]+n[o];break;case 31:this.$=n[o];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:p},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:p},{6:g,7:[1,10],9:9,12:11,13:i,14:14,16:b,17:S,18:17,19:18,20:u,23:f},e(m,[2,3]),{1:[2,2]},e(m,[2,4]),e(m,[2,5]),{1:[2,6],6:g,12:21,13:i,14:14,16:b,17:S,18:17,19:18,20:u,23:f},{6:g,9:22,12:11,13:i,14:14,16:b,17:S,18:17,19:18,20:u,23:f},{6:h,7:O,10:23,11:L},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:u,23:f}),e(k,[2,19]),e(k,[2,21],{15:30,24:I}),e(k,[2,22]),e(k,[2,23]),e(r,[2,25]),e(r,[2,26]),e(r,[2,28],{20:[1,32]}),{21:[1,33]},{6:h,7:O,10:34,11:L},{1:[2,7],6:g,12:21,13:i,14:14,16:b,17:S,18:17,19:18,20:u,23:f},e(V,[2,14],{7:M,11:U}),e(w,[2,8]),e(w,[2,9]),e(w,[2,10]),e(k,[2,16],{15:37,24:I}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:j}),e(r,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:M,11:U}),e(w,[2,11]),e(w,[2,12]),e(k,[2,15],{24:j}),e(r,[2,30]),{22:[1,41]},e(r,[2,27]),e(r,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,t){if(t.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=t,a}},"parseError"),parse:c(function(s){var t=this,a=[0],l=[],d=[null],n=[],T=this.table,o="",H=0,W=0,ge=2,re=1,de=n.slice.call(arguments,1),E=Object.create(this.lexer),R={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(R.yy[q]=this.yy[q]);E.setInput(s,R.yy),R.yy.lexer=E,R.yy.parser=this,typeof E.yylloc=="undefined"&&(E.yylloc={});var Q=E.yylloc;n.push(Q);var pe=E.options&&E.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fe(x){a.length=a.length-2*x,d.length=d.length-x,n.length=n.length-x}c(fe,"popStack");function ae(){var x;return x=l.pop()||E.lex()||re,typeof x!="number"&&(x instanceof Array&&(l=x,x=l.pop()),x=t.symbols_[x]||x),x}c(ae,"lex");for(var N,P,v,Z,F={},Y,C,oe,K;;){if(P=a[a.length-1],this.defaultActions[P]?v=this.defaultActions[P]:((N===null||typeof N=="undefined")&&(N=ae()),v=T[P]&&T[P][N]),typeof v=="undefined"||!v.length||!v[0]){var $="";K=[];for(Y in T[P])this.terminals_[Y]&&Y>ge&&K.push("'"+this.terminals_[Y]+"'");E.showPosition?$="Parse error on line "+(H+1)+`:
|
||||
`+E.showPosition()+`
|
||||
Expecting `+K.join(", ")+", got '"+(this.terminals_[N]||N)+"'":$="Parse error on line "+(H+1)+": Unexpected "+(N==re?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError($,{text:E.match,token:this.terminals_[N]||N,line:E.yylineno,loc:Q,expected:K})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+N);switch(v[0]){case 1:a.push(N),d.push(E.yytext),n.push(E.yylloc),a.push(v[1]),N=null,W=E.yyleng,o=E.yytext,H=E.yylineno,Q=E.yylloc;break;case 2:if(C=this.productions_[v[1]][1],F.$=d[d.length-C],F._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},pe&&(F._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),Z=this.performAction.apply(F,[o,W,H,R.yy,v[1],d,n].concat(de)),typeof Z!="undefined")return Z;C&&(a=a.slice(0,-1*C*2),d=d.slice(0,-1*C),n=n.slice(0,-1*C)),a.push(this.productions_[v[1]][0]),d.push(F.$),n.push(F._$),oe=T[a[a.length-2]][a[a.length-1]],a.push(oe);break;case 3:return!0}}return!0},"parse")},X=function(){var y={EOF:1,parseError:c(function(t,a){if(this.yy.parser)this.yy.parser.parseError(t,a);else throw new Error(t)},"parseError"),setInput:c(function(s,t){return this.yy=t||this.yy||{},this._input=s,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:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var t=s.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:c(function(s){var t=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var l=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),a.length-1&&(this.yylineno-=a.length-1);var d=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:a?(a.length===l.length?this.yylloc.first_column:0)+l[l.length-a.length].length-a[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(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).
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var s=this.pastInput(),t=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
||||
+5
-5
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+5
-5
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
var L=(e,r,u)=>new Promise((h,i)=>{var c=a=>{try{t(u.next(a))}catch(o){i(o)}},l=a=>{try{t(u.throw(a))}catch(o){i(o)}},t=a=>a.done?h(a.value):Promise.resolve(a.value).then(c,l);t((u=u.apply(e,r)).next())});import{a4 as y,a7 as z,aJ as q,g as J,s as Z,a as H,b as K,q as Q,p as X,_ as g,l as F,c as Y,E as ee,I as te,N as ae,e as re,z as ne,F as ie}from"./mermaid.core-C4K9MPKx.js";import{p as se}from"./chunk-4BX2VUAB-nx3PpmLv.js";import{p as le}from"./treemap-KZPCXAKY-BXq10bJZ.js";import{d as W}from"./arc-CGWXuTbL.js";import{o as oe}from"./ordinal-Cboi1Yqb.js";import"./index-TuHwd6tW.js";import"./_baseUniq-I4-_xKvU.js";import"./_basePickBy-CVZqqnVf.js";import"./clone-BVLDOfoe.js";import"./init-Gi6I4Gst.js";function ce(e,r){return r<e?-1:r>e?1:r>=e?0:NaN}function ue(e){return e}function pe(){var e=ue,r=ce,u=null,h=y(0),i=y(z),c=y(0);function l(t){var a,o=(t=q(t)).length,d,S,x=0,p=new Array(o),s=new Array(o),m=+h.apply(this,arguments),w=Math.min(z,Math.max(-z,i.apply(this,arguments)-m)),v,$=Math.min(Math.abs(w)/o,c.apply(this,arguments)),T=$*(w<0?-1:1),f;for(a=0;a<o;++a)(f=s[p[a]=a]=+e(t[a],a,t))>0&&(x+=f);for(r!=null?p.sort(function(D,C){return r(s[D],s[C])}):u!=null&&p.sort(function(D,C){return u(t[D],t[C])}),a=0,S=x?(w-o*T)/x:0;a<o;++a,m=v)d=p[a],f=s[d],v=m+(f>0?f*S:0)+T,s[d]={data:t[d],index:a,value:f,startAngle:m,endAngle:v,padAngle:$};return s}return l.value=function(t){return arguments.length?(e=typeof t=="function"?t:y(+t),l):e},l.sortValues=function(t){return arguments.length?(r=t,u=null,l):r},l.sort=function(t){return arguments.length?(u=t,r=null,l):u},l.startAngle=function(t){return arguments.length?(h=typeof t=="function"?t:y(+t),l):h},l.endAngle=function(t){return arguments.length?(i=typeof t=="function"?t:y(+t),l):i},l.padAngle=function(t){return arguments.length?(c=typeof t=="function"?t:y(+t),l):c},l}var ge=ie.pie,N={sections:new Map,showData:!1},E=N.sections,G=N.showData,de=structuredClone(ge),fe=g(()=>structuredClone(de),"getConfig"),me=g(()=>{E=new Map,G=N.showData,ne()},"clear"),he=g(({label:e,value:r})=>{if(r<0)throw new Error(`"${e}" has invalid value: ${r}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);E.has(e)||(E.set(e,r),F.debug(`added new section: ${e}, with value: ${r}`))},"addSection"),ve=g(()=>E,"getSections"),xe=g(e=>{G=e},"setShowData"),ye=g(()=>G,"getShowData"),_={getConfig:fe,clear:me,setDiagramTitle:X,getDiagramTitle:Q,setAccTitle:K,getAccTitle:H,setAccDescription:Z,getAccDescription:J,addSection:he,getSections:ve,setShowData:xe,getShowData:ye},Se=g((e,r)=>{se(e,r),r.setShowData(e.showData),e.sections.map(r.addSection)},"populateDb"),we={parse:g(e=>L(void 0,null,function*(){const r=yield le("pie",e);F.debug(r),Se(r,_)}),"parse")},Ae=g(e=>`
|
||||
var L=(e,r,u)=>new Promise((h,i)=>{var c=a=>{try{t(u.next(a))}catch(o){i(o)}},l=a=>{try{t(u.throw(a))}catch(o){i(o)}},t=a=>a.done?h(a.value):Promise.resolve(a.value).then(c,l);t((u=u.apply(e,r)).next())});import{a4 as y,a7 as z,aJ as q,g as J,s as Z,a as H,b as K,q as Q,p as X,_ as g,l as F,c as Y,E as ee,I as te,N as ae,e as re,z as ne,F as ie}from"./mermaid.core-Bsqol0Mw.js";import{p as se}from"./chunk-4BX2VUAB-UZFNz33b.js";import{p as le}from"./treemap-KZPCXAKY-COaRfk04.js";import{d as W}from"./arc-BFnGvzqt.js";import{o as oe}from"./ordinal-Cboi1Yqb.js";import"./index-BIaXvqxP.js";import"./_baseUniq-DA1M3hdA.js";import"./_basePickBy-D3UF4kXu.js";import"./clone-Dd6pHYqf.js";import"./init-Gi6I4Gst.js";function ce(e,r){return r<e?-1:r>e?1:r>=e?0:NaN}function ue(e){return e}function pe(){var e=ue,r=ce,u=null,h=y(0),i=y(z),c=y(0);function l(t){var a,o=(t=q(t)).length,d,S,x=0,p=new Array(o),s=new Array(o),m=+h.apply(this,arguments),w=Math.min(z,Math.max(-z,i.apply(this,arguments)-m)),v,$=Math.min(Math.abs(w)/o,c.apply(this,arguments)),T=$*(w<0?-1:1),f;for(a=0;a<o;++a)(f=s[p[a]=a]=+e(t[a],a,t))>0&&(x+=f);for(r!=null?p.sort(function(D,C){return r(s[D],s[C])}):u!=null&&p.sort(function(D,C){return u(t[D],t[C])}),a=0,S=x?(w-o*T)/x:0;a<o;++a,m=v)d=p[a],f=s[d],v=m+(f>0?f*S:0)+T,s[d]={data:t[d],index:a,value:f,startAngle:m,endAngle:v,padAngle:$};return s}return l.value=function(t){return arguments.length?(e=typeof t=="function"?t:y(+t),l):e},l.sortValues=function(t){return arguments.length?(r=t,u=null,l):r},l.sort=function(t){return arguments.length?(u=t,r=null,l):u},l.startAngle=function(t){return arguments.length?(h=typeof t=="function"?t:y(+t),l):h},l.endAngle=function(t){return arguments.length?(i=typeof t=="function"?t:y(+t),l):i},l.padAngle=function(t){return arguments.length?(c=typeof t=="function"?t:y(+t),l):c},l}var ge=ie.pie,N={sections:new Map,showData:!1},E=N.sections,G=N.showData,de=structuredClone(ge),fe=g(()=>structuredClone(de),"getConfig"),me=g(()=>{E=new Map,G=N.showData,ne()},"clear"),he=g(({label:e,value:r})=>{if(r<0)throw new Error(`"${e}" has invalid value: ${r}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);E.has(e)||(E.set(e,r),F.debug(`added new section: ${e}, with value: ${r}`))},"addSection"),ve=g(()=>E,"getSections"),xe=g(e=>{G=e},"setShowData"),ye=g(()=>G,"getShowData"),_={getConfig:fe,clear:me,setDiagramTitle:X,getDiagramTitle:Q,setAccTitle:K,getAccTitle:H,setAccDescription:Z,getAccDescription:J,addSection:he,getSections:ve,setShowData:xe,getShowData:ye},Se=g((e,r)=>{se(e,r),r.setShowData(e.showData),e.sections.map(r.addSection)},"populateDb"),we={parse:g(e=>L(void 0,null,function*(){const r=yield le("pie",e);F.debug(r),Se(r,_)}),"parse")},Ae=g(e=>`
|
||||
.pieCircle{
|
||||
stroke: ${e.pieStrokeColor};
|
||||
stroke-width : ${e.pieStrokeWidth};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{s as e,b as r,a,S as s}from"./chunk-NQ4KR5QH-W6T1hrFh.js";import{_ as i}from"./mermaid.core-Bsqol0Mw.js";import"./chunk-55IACEB6-BM96SOzg.js";import"./chunk-KX2RTZJC-CWZ2KlGq.js";import"./index-BIaXvqxP.js";var p={parser:a,get db(){return new s(2)},renderer:r,styles:e,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{p as diagram};
|
||||
@@ -1 +0,0 @@
|
||||
import{s as e,b as r,a,S as s}from"./chunk-NQ4KR5QH-DjGyrfao.js";import{_ as i}from"./mermaid.core-C4K9MPKx.js";import"./chunk-55IACEB6-D2besknH.js";import"./chunk-KX2RTZJC-DKb9SByk.js";import"./index-TuHwd6tW.js";var p={parser:a,get db(){return new s(2)},renderer:r,styles:e,init:i(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")};export{p as diagram};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{_ as s,c as xt,l as T,d as U,V as kt,W as vt,X as _t,Y as bt,C as wt,$ as St,z as Et}from"./mermaid.core-C4K9MPKx.js";import{d as nt}from"./arc-CGWXuTbL.js";import"./index-TuHwd6tW.js";var X=function(){var n=s(function(f,r,a,h){for(a=a||{},h=f.length;h--;a[f[h]]=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],c=[1,13],g=[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,h,u,y,o,E){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:c,18:14,19:15,20:g,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:i,16:d,17:c,18:14,19:15,20:g,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 h=new Error(r);throw h.hash=a,h}},"parseError"),parse:s(function(r){var a=this,h=[0],u=[],y=[null],o=[],E=this.table,v="",$=0,A=0,B=2,K=1,O=o.slice.call(arguments,1),_=Object.create(this.lexer),L={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(L.yy[z]=this.yy[z]);_.setInput(r,L.yy),L.yy.lexer=_,L.yy.parser=this,typeof _.yylloc=="undefined"&&(_.yylloc={});var F=_.yylloc;o.push(F);var j=_.options&&_.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function H(N){h.length=h.length-2*N,y.length=y.length-N,o.length=o.length-N}s(H,"popStack");function w(){var N;return N=u.pop()||_.lex()||K,typeof N!="number"&&(N instanceof Array&&(u=N,N=u.pop()),N=a.symbols_[N]||N),N}s(w,"lex");for(var k,I,S,C,P={},G,M,et,q;;){if(I=h[h.length-1],this.defaultActions[I]?S=this.defaultActions[I]:((k===null||typeof k=="undefined")&&(k=w()),S=E[I]&&E[I][k]),typeof S=="undefined"||!S.length||!S[0]){var Q="";q=[];for(G in E[I])this.terminals_[G]&&G>B&&q.push("'"+this.terminals_[G]+"'");_.showPosition?Q="Parse error on line "+($+1)+`:
|
||||
import{_ as s,c as xt,l as T,d as U,V as kt,W as vt,X as _t,Y as bt,C as wt,$ as St,z as Et}from"./mermaid.core-Bsqol0Mw.js";import{d as nt}from"./arc-BFnGvzqt.js";import"./index-BIaXvqxP.js";var X=function(){var n=s(function(f,r,a,h){for(a=a||{},h=f.length;h--;a[f[h]]=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],c=[1,13],g=[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,h,u,y,o,E){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:c,18:14,19:15,20:g,21:m},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:l,14:i,16:d,17:c,18:14,19:15,20:g,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 h=new Error(r);throw h.hash=a,h}},"parseError"),parse:s(function(r){var a=this,h=[0],u=[],y=[null],o=[],E=this.table,v="",$=0,A=0,B=2,K=1,O=o.slice.call(arguments,1),_=Object.create(this.lexer),L={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(L.yy[z]=this.yy[z]);_.setInput(r,L.yy),L.yy.lexer=_,L.yy.parser=this,typeof _.yylloc=="undefined"&&(_.yylloc={});var F=_.yylloc;o.push(F);var j=_.options&&_.options.ranges;typeof L.yy.parseError=="function"?this.parseError=L.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function H(N){h.length=h.length-2*N,y.length=y.length-N,o.length=o.length-N}s(H,"popStack");function w(){var N;return N=u.pop()||_.lex()||K,typeof N!="number"&&(N instanceof Array&&(u=N,N=u.pop()),N=a.symbols_[N]||N),N}s(w,"lex");for(var k,I,S,C,P={},G,M,et,q;;){if(I=h[h.length-1],this.defaultActions[I]?S=this.defaultActions[I]:((k===null||typeof k=="undefined")&&(k=w()),S=E[I]&&E[I][k]),typeof S=="undefined"||!S.length||!S[0]){var Q="";q=[];for(G in E[I])this.terminals_[G]&&G>B&&q.push("'"+this.terminals_[G]+"'");_.showPosition?Q="Parse error on line "+($+1)+`:
|
||||
`+_.showPosition()+`
|
||||
Expecting `+q.join(", ")+", got '"+(this.terminals_[k]||k)+"'":Q="Parse error on line "+($+1)+": Unexpected "+(k==K?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(Q,{text:_.match,token:this.terminals_[k]||k,line:_.yylineno,loc:F,expected:q})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+k);switch(S[0]){case 1:h.push(k),y.push(_.yytext),o.push(_.yylloc),h.push(S[1]),k=null,A=_.yyleng,v=_.yytext,$=_.yylineno,F=_.yylloc;break;case 2:if(M=this.productions_[S[1]][1],P.$=y[y.length-M],P._$={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},j&&(P._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),C=this.performAction.apply(P,[v,A,$,L.yy,S[1],y,o].concat(O)),typeof C!="undefined")return C;M&&(h=h.slice(0,-1*M*2),y=y.slice(0,-1*M),o=o.slice(0,-1*M)),h.push(this.productions_[S[1]][0]),y.push(P.$),o.push(P._$),et=E[h[h.length-2]][h[h.length-1]],h.push(et);break;case 3:return!0}}return!0},"parse")},x=function(){var f={EOF:1,parseError:s(function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);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,h=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),h.length-1&&(this.yylineno-=h.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:h?(h.length===u.length?this.yylloc.first_column:0)+u[u.length-h.length].length-h[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).
|
||||
`+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()+`
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+17
-17
@@ -1,18 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="description" content="CountBot" />
|
||||
<title>CountBot</title>
|
||||
<script type="module" crossorigin src="/assets/js/index-TuHwd6tW.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/css/index-Ut6SSRBB.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="description" content="CountBot" />
|
||||
<title>CountBot</title>
|
||||
<script type="module" crossorigin src="/assets/js/index-BIaXvqxP.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/css/index-C5bCfEfG.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Generated
+3324
File diff suppressed because it is too large
Load Diff
@@ -28,7 +28,9 @@
|
||||
"highlight.js": "^11.9.0",
|
||||
"lucide-vue-next": "0.300.0",
|
||||
"marked": "^11.0.0",
|
||||
"mermaid": "^11.13.0",
|
||||
"pinia": "2.3.1",
|
||||
"qrcode": "^1.5.4",
|
||||
"vue": "^3.3.0",
|
||||
"vue-i18n": "9.14.5",
|
||||
"vue-router": "4.6.4"
|
||||
@@ -44,5 +46,6 @@
|
||||
"engines": {
|
||||
"node": ">=18.0.0",
|
||||
"npm": ">=9.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"packageManager": "pnpm@10.8.1+sha512.c50088ba998c67b8ca8c99df8a5e02fd2ae2e2b29aaf238feaa9e124248d3f48f9fb6db2424949ff901cffbb5e0f0cc1ad6aedb602cd29450751d11c35023677"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user