mirror of
https://github.com/Dvorinka/excalidraw-full.git
synced 2026-10-28 07:41:24 +00:00
del build dist
This commit is contained in:
1 parent
54603463c5
commit
356f0280c4
261 files changed
+1
-4900
No files matched your search
@@ -7,3 +7,4 @@ excalidraw-complete
|
|||||||
node_modules
|
node_modules
|
||||||
.env
|
.env
|
||||||
*.env
|
*.env
|
||||||
|
*/build/*
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,2 +0,0 @@
|
|||||||
/*
|
|
||||||
Access-Control-Allow-Origin: *
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 14 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.1 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,2 +0,0 @@
|
|||||||
function r(o){throw new Error('Could not dynamically require "'+o+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}export{r as c};
|
|
||||||
//# sourceMappingURL=_commonjs-dynamic-modules-h-SxKiO4.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"_commonjs-dynamic-modules-h-SxKiO4.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
import{w as ln,c as S}from"./path-aUcfwwLI.js";import{ar as an,as as H,at as q,au as rn,av as y,ap as tn,aw as L,ax as _,ay as un,az as o,aA as sn,aB as on,aC as fn}from"./index-jpNTxDe4.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function mn(l){return l.endAngle}function pn(l){return l&&l.padAngle}function xn(l,h,C,z,v,A,j,a){var D=C-l,i=z-h,n=j-v,m=a-A,r=m*D-n*i;if(!(r*r<y))return r=(n*(h-A)-m*(l-v))/r,[l+r*D,h+r*i]}function W(l,h,C,z,v,A,j){var a=l-C,D=h-z,i=(j?A:-A)/L(a*a+D*D),n=i*D,m=-i*a,r=l+n,s=h+m,f=C+n,c=z+m,F=(r+f)/2,t=(s+c)/2,p=f-r,g=c-s,R=p*p+g*g,T=v-A,w=r*c-f*s,E=(g<0?-1:1)*L(fn(0,T*T*R-w*w)),I=(w*g-p*E)/R,O=(-w*p-g*E)/R,P=(w*g+p*E)/R,x=(-w*p+g*E)/R,d=I-F,e=O-t,u=P-F,G=x-t;return d*d+e*e>u*u+G*G&&(I=P,O=x),{cx:I,cy:O,x01:-n,y01:-m,x11:I*(v/T-1),y11:O*(v/T-1)}}function vn(){var l=cn,h=yn,C=S(0),z=null,v=gn,A=mn,j=pn,a=null,D=ln(i);function i(){var n,m,r=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-rn,c=A.apply(this,arguments)-rn,F=un(c-f),t=c>f;if(a||(a=n=D()),s<r&&(m=s,s=r,r=m),!(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),r>y&&(a.moveTo(r*H(c),r*q(c)),a.arc(0,0,r,c,f,t));else{var p=f,g=c,R=f,T=c,w=F,E=F,I=j.apply(this,arguments)/2,O=I>y&&(z?+z.apply(this,arguments):L(r*r+s*s)),P=_(un(s-r)/2,+C.apply(this,arguments)),x=P,d=P,e,u;if(O>y){var G=sn(O/r*q(I)),M=sn(O/s*q(I));(w-=G*2)>y?(G*=t?1:-1,R+=G,T-=G):(w=0,R=T=(f+c)/2),(E-=M*2)>y?(M*=t?1:-1,p+=M,g-=M):(E=0,p=g=(f+c)/2)}var J=s*H(p),K=s*q(p),N=r*H(T),Q=r*q(T);if(P>y){var U=s*H(g),V=s*q(g),X=r*H(R),Y=r*q(R),B;if(F<an)if(B=xn(J,K,X,Y,U,V,N,Q)){var Z=J-B[0],$=K-B[1],k=U-B[0],b=V-B[1],nn=1/q(on((Z*k+$*b)/(L(Z*Z+$*$)*L(k*k+b*b)))/2),en=L(B[0]*B[0]+B[1]*B[1]);x=_(P,(r-en)/(nn-1)),d=_(P,(s-en)/(nn+1))}else x=d=0}E>y?d>y?(e=W(X,Y,J,K,s,d,t),u=W(U,V,N,Q,s,d,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),d<P?a.arc(e.cx,e.cy,d,o(e.y01,e.x01),o(u.y01,u.x01),!t):(a.arc(e.cx,e.cy,d,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(u.cy+u.y11,u.cx+u.x11),!t),a.arc(u.cx,u.cy,d,o(u.y11,u.x11),o(u.y01,u.x01),!t))):(a.moveTo(J,K),a.arc(0,0,s,p,g,!t)):a.moveTo(J,K),!(r>y)||!(w>y)?a.lineTo(N,Q):x>y?(e=W(N,Q,U,V,r,-x,t),u=W(J,K,X,Y,r,-x,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),x<P?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(u.y01,u.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,r,o(e.cy+e.y11,e.cx+e.x11),o(u.cy+u.y11,u.cx+u.x11),t),a.arc(u.cx,u.cy,x,o(u.y11,u.x11),o(u.y01,u.x01),!t))):a.arc(0,0,r,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,m=(+v.apply(this,arguments)+ +A.apply(this,arguments))/2-an/2;return[H(m)*n,q(m)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:S(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:S(+n),i):h},i.cornerRadius=function(n){return arguments.length?(C=typeof n=="function"?n:S(+n),i):C},i.padRadius=function(n){return arguments.length?(z=n==null?null:typeof n=="function"?n:S(+n),i):z},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:S(+n),i):v},i.endAngle=function(n){return arguments.length?(A=typeof n=="function"?n:S(+n),i):A},i.padAngle=function(n){return arguments.length?(j=typeof n=="function"?n:S(+n),i):j},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{vn as a};
|
|
||||||
//# sourceMappingURL=arc-uMvMTTPz.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"arc-uMvMTTPz.js","sources":["../../../node_modules/d3-shape/src/arc.js"],"sourcesContent":["import constant from \"./constant.js\";\nimport {abs, acos, asin, atan2, cos, epsilon, halfPi, max, min, pi, sin, sqrt, tau} from \"./math.js\";\nimport {withPath} from \"./path.js\";\n\nfunction arcInnerRadius(d) {\n return d.innerRadius;\n}\n\nfunction arcOuterRadius(d) {\n return d.outerRadius;\n}\n\nfunction arcStartAngle(d) {\n return d.startAngle;\n}\n\nfunction arcEndAngle(d) {\n return d.endAngle;\n}\n\nfunction arcPadAngle(d) {\n return d && d.padAngle; // Note: optional!\n}\n\nfunction intersect(x0, y0, x1, y1, x2, y2, x3, y3) {\n var x10 = x1 - x0, y10 = y1 - y0,\n x32 = x3 - x2, y32 = y3 - y2,\n t = y32 * x10 - x32 * y10;\n if (t * t < epsilon) return;\n t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;\n return [x0 + t * x10, y0 + t * y10];\n}\n\n// Compute perpendicular offset line of length rc.\n// http://mathworld.wolfram.com/Circle-LineIntersection.html\nfunction cornerTangents(x0, y0, x1, y1, r1, rc, cw) {\n var x01 = x0 - x1,\n y01 = y0 - y1,\n lo = (cw ? rc : -rc) / sqrt(x01 * x01 + y01 * y01),\n ox = lo * y01,\n oy = -lo * x01,\n x11 = x0 + ox,\n y11 = y0 + oy,\n x10 = x1 + ox,\n y10 = y1 + oy,\n x00 = (x11 + x10) / 2,\n y00 = (y11 + y10) / 2,\n dx = x10 - x11,\n dy = y10 - y11,\n d2 = dx * dx + dy * dy,\n r = r1 - rc,\n D = x11 * y10 - x10 * y11,\n d = (dy < 0 ? -1 : 1) * sqrt(max(0, r * r * d2 - D * D)),\n cx0 = (D * dy - dx * d) / d2,\n cy0 = (-D * dx - dy * d) / d2,\n cx1 = (D * dy + dx * d) / d2,\n cy1 = (-D * dx + dy * d) / d2,\n dx0 = cx0 - x00,\n dy0 = cy0 - y00,\n dx1 = cx1 - x00,\n dy1 = cy1 - y00;\n\n // Pick the closer of the two intersection points.\n // TODO Is there a faster way to determine which intersection to use?\n if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;\n\n return {\n cx: cx0,\n cy: cy0,\n x01: -ox,\n y01: -oy,\n x11: cx0 * (r1 / r - 1),\n y11: cy0 * (r1 / r - 1)\n };\n}\n\nexport default function() {\n var innerRadius = arcInnerRadius,\n outerRadius = arcOuterRadius,\n cornerRadius = constant(0),\n padRadius = null,\n startAngle = arcStartAngle,\n endAngle = arcEndAngle,\n padAngle = arcPadAngle,\n context = null,\n path = withPath(arc);\n\n function arc() {\n var buffer,\n r,\n r0 = +innerRadius.apply(this, arguments),\n r1 = +outerRadius.apply(this, arguments),\n a0 = startAngle.apply(this, arguments) - halfPi,\n a1 = endAngle.apply(this, arguments) - halfPi,\n da = abs(a1 - a0),\n cw = a1 > a0;\n\n if (!context) context = buffer = path();\n\n // Ensure that the outer radius is always larger than the inner radius.\n if (r1 < r0) r = r1, r1 = r0, r0 = r;\n\n // Is it a point?\n if (!(r1 > epsilon)) context.moveTo(0, 0);\n\n // Or is it a circle or annulus?\n else if (da > tau - epsilon) {\n context.moveTo(r1 * cos(a0), r1 * sin(a0));\n context.arc(0, 0, r1, a0, a1, !cw);\n if (r0 > epsilon) {\n context.moveTo(r0 * cos(a1), r0 * sin(a1));\n context.arc(0, 0, r0, a1, a0, cw);\n }\n }\n\n // Or is it a circular or annular sector?\n else {\n var a01 = a0,\n a11 = a1,\n a00 = a0,\n a10 = a1,\n da0 = da,\n da1 = da,\n ap = padAngle.apply(this, arguments) / 2,\n rp = (ap > epsilon) && (padRadius ? +padRadius.apply(this, arguments) : sqrt(r0 * r0 + r1 * r1)),\n rc = min(abs(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),\n rc0 = rc,\n rc1 = rc,\n t0,\n t1;\n\n // Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.\n if (rp > epsilon) {\n var p0 = asin(rp / r0 * sin(ap)),\n p1 = asin(rp / r1 * sin(ap));\n if ((da0 -= p0 * 2) > epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;\n else da0 = 0, a00 = a10 = (a0 + a1) / 2;\n if ((da1 -= p1 * 2) > epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;\n else da1 = 0, a01 = a11 = (a0 + a1) / 2;\n }\n\n var x01 = r1 * cos(a01),\n y01 = r1 * sin(a01),\n x10 = r0 * cos(a10),\n y10 = r0 * sin(a10);\n\n // Apply rounded corners?\n if (rc > epsilon) {\n var x11 = r1 * cos(a11),\n y11 = r1 * sin(a11),\n x00 = r0 * cos(a00),\n y00 = r0 * sin(a00),\n oc;\n\n // Restrict the corner radius according to the sector angle. If this\n // intersection fails, it’s probably because the arc is too small, so\n // disable the corner radius entirely.\n if (da < pi) {\n if (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10)) {\n var ax = x01 - oc[0],\n ay = y01 -Line truncated
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
function t(r){return typeof r=="object"&&"length"in r?r:Array.from(r)}export{t as a};
|
|
||||||
//# sourceMappingURL=array-Nw74a44z.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"array-Nw74a44z.js","sources":["../../../node_modules/d3-shape/src/array.js"],"sourcesContent":["export var slice = Array.prototype.slice;\n\nexport default function(x) {\n return typeof x === \"object\" && \"length\" in x\n ? x // Array, TypedArray, NodeList, array-like\n : Array.from(x); // Map, Set, iterable, string, or anything else\n}\n"],"names":["array","x"],"mappings":"AAEe,SAAQA,EAACC,EAAG,CACzB,OAAO,OAAOA,GAAM,UAAY,WAAYA,EACxCA,EACA,MAAM,KAAKA,CAAC,CAClB","x_google_ignoreList":[0]}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
const t=e=>`
|
|
||||||
### Scene content
|
|
||||||
|
|
||||||
\`\`\`
|
|
||||||
Paste scene content here
|
|
||||||
\`\`\`
|
|
||||||
|
|
||||||
### Sentry Error ID
|
|
||||||
|
|
||||||
${e}
|
|
||||||
`;export{t as default};
|
|
||||||
//# sourceMappingURL=bug-issue-template-RzHCT2ur.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"bug-issue-template-RzHCT2ur.js","sources":["../../bug-issue-template.js"],"sourcesContent":["export default (sentryErrorId) => `\n### Scene content\n\n\\`\\`\\`\nPaste scene content here\n\\`\\`\\`\n\n### Sentry Error ID\n\n${sentryErrorId}\n`;\n"],"names":["bugIssueTemplate","sentryErrorId"],"mappings":"AAAA,MAAeA,EAACC,GAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAShCA,CAAa;"}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
import{s as Ye,g as Ie,a as Ve,b as je,c as Ut,d as Ee,m as Ue,e as Fe,f as Yt,h as Qt,l as _e,i as Xe,w as ze,j as le,k as xe,n as We}from"./index-jpNTxDe4.js";import{d as Qe,g as He}from"./svgDrawCommon-f26cad39-uSOEV6F1.js";import"./index-2K3MavtT.js";var qt=function(){var e=function(Ot,_,x,m){for(x=x||{},m=Ot.length;m--;x[Ot[m]]=_);return x},t=[1,6],a=[1,7],o=[1,8],l=[1,9],i=[1,16],s=[1,11],r=[1,12],n=[1,13],u=[1,14],y=[1,15],d=[1,27],p=[1,33],C=[1,34],T=[1,35],R=[1,36],S=[1,37],L=[1,72],Y=[1,73],Q=[1,74],H=[1,75],q=[1,76],G=[1,77],K=[1,78],J=[1,38],Z=[1,39],$=[1,40],tt=[1,41],et=[1,42],it=[1,43],nt=[1,44],st=[1,45],at=[1,46],rt=[1,47],lt=[1,48],ot=[1,49],ct=[1,50],ht=[1,51],ut=[1,52],dt=[1,53],ft=[1,54],pt=[1,55],yt=[1,56],gt=[1,57],bt=[1,59],_t=[1,60],xt=[1,61],mt=[1,62],vt=[1,63],Et=[1,64],kt=[1,65],At=[1,66],Ct=[1,67],wt=[1,68],Tt=[1,69],Nt=[24,52],$t=[24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],It=[15,24,44,46,47,48,49,50,51,52,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],v=[1,94],E=[1,95],k=[1,96],A=[1,97],w=[15,24,52],fe=[7,8,9,10,18,22,25,26,27,28],pe=[15,24,43,52],Xt=[15,24,43,52,86,87,89,90],St=[15,43],te=[44,46,47,48,49,50,51,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84],ee={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,directive:6,direction_tb:7,direction_bt:8,direction_rl:9,direction_lr:10,graphConfig:11,openDirective:12,typeDirective:13,closeDirective:14,NEWLINE:15,":":16,argDirective:17,open_directive:18,type_directive:19,arg_directive:20,close_directive:21,C4_CONTEXT:22,statements:23,EOF:24,C4_CONTAINER:25,C4_COMPONENT:26,C4_DYNAMIC:27,C4_DEPLOYMENT:28,otherStatements:29,diagramStatements:30,otherStatement:31,title:32,accDescription:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,boundaryStatement:39,boundaryStartStatement:40,boundaryStopStatement:41,boundaryStart:42,LBRACE:43,ENTERPRISE_BOUNDARY:44,attributes:45,SYSTEM_BOUNDARY:46,BOUNDARY:47,CONTAINER_BOUNDARY:48,NODE:49,NODE_L:50,NODE_R:51,RBRACE:52,diagramStatement:53,PERSON:54,PERSON_EXT:55,SYSTEM:56,SYSTEM_DB:57,SYSTEM_QUEUE:58,SYSTEM_EXT:59,SYSTEM_EXT_DB:60,SYSTEM_EXT_QUEUE:61,CONTAINER:62,CONTAINER_DB:63,CONTAINER_QUEUE:64,CONTAINER_EXT:65,CONTAINER_EXT_DB:66,CONTAINER_EXT_QUEUE:67,COMPONENT:68,COMPONENT_DB:69,COMPONENT_QUEUE:70,COMPONENT_EXT:71,COMPONENT_EXT_DB:72,COMPONENT_EXT_QUEUE:73,REL:74,BIREL:75,REL_U:76,REL_D:77,REL_L:78,REL_R:79,REL_B:80,REL_INDEX:81,UPDATE_EL_STYLE:82,UPDATE_REL_STYLE:83,UPDATE_LAYOUT_CONFIG:84,attribute:85,STR:86,STR_KEY:87,STR_VALUE:88,ATTRIBUTE:89,ATTRIBUTE_EMPTY:90,$accept:0,$end:1},terminals_:{2:"error",7:"direction_tb",8:"direction_bt",9:"direction_rl",10:"direction_lr",15:"NEWLINE",16:":",18:"open_directive",19:"type_directive",20:"arg_directive",21:"close_directive",22:"C4_CONTEXT",24:"EOF",25:"C4_CONTAINER",26:"C4_COMPONENT",27:"C4_DYNAMIC",28:"C4_DEPLOYMENT",32:"title",33:"accDescription",34:"acc_title",35:"acc_title_value",36:"acc_descr",37:"acc_descr_value",38:"acc_descr_multiline_value",43:"LBRACE",44:"ENTERPRISE_BOUNDARY",46:"SYSTEM_BOUNDARY",47:"BOUNDARY",48:"CONTAINER_BOUNDARY",49:"NODE",50:"NODE_L",51:"NODE_R",52:"RBRACE",54:"PERSON",55:"PERSON_EXT",56:"SYSTEM",57:"SYSTEM_DB",58:"SYSTEM_QUEUE",59:"SYSTEM_EXT",60:"SYSTEM_EXT_DB",61:"SYSTEM_EXT_QUEUE",62:"CONTAINER",63:"CONTAINER_DB",64:"CONTAINER_QUEUE",65:"CONTAINER_EXT",66:"CONTAINER_EXT_DB",67:"CONTAINER_EXT_QUEUE",68:"COMPONENT",69:"COMPONENT_DB",70:"COMPONENT_QUEUE",71:"COMPONENT_EXT",72:"COMPONENT_EXT_DB",73:"COMPONENT_EXT_QUEUE",74:"REL",75:"BIREL",76:"REL_U",77:"REL_D",78:"REL_L",79:"REL_R",80:"REL_B",81:"REL_INDEX",82:"UPDATE_EL_STYLE",83:"UPDATE_REL_STYLE",84:"UPDATE_LAYOUT_CONFIG",86:"STR",87:"STR_KEY",88:"STR_VALUE",89:"ATTRIBUTE",90:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[3,2],[5,1],[5,1],[5,1],[5,1],[4,1],[6,4],[6,6],[12,1],[13,1],[17,1],[14,1],[11,4],[11,4],[11,4],[11,4],[11,4],[23,1],[23,1],[23,2],[29,1],[29,2],[29,3],[31,1],[31,1],[31,2],[31,2],[31,1],[39,3],[40,3],[40,3],[40,4],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[42,2],[41,1],[30,1],[30,2],[30,3],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,1],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[53,2],[45,1],[45,2],[85,1],[85,2],[85,1],[85,1]],performAction:function(_,x,m,g,O,h,Vt){var f=h.length-1;switch(O){case 4:g.setDirection("TB");break;case 5:g.setDirection("BT");break;case 6:g.setDirection("RL");break;case 7:g.setDirection("LR");break;case 11:g.parseDirective("%%{","open_directive");break;case 12:break;case 13:h[f]=h[f].trim().replace(/'/g,'"'),g.parseDirective(h[f],"arg_directive");break;case 14:g.parseDirective("}%%","close_directive","c4Context");break;case 15:case 16:case 17:case
Line truncated
|
|
||||||
`+D.showPosition()+`
|
|
||||||
Expecting `+Wt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":re="Parse error on line "+(Pt+1)+": Unexpected "+(M==ge?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(re,{text:D.match,token:this.terminals_[M]||M,line:D.yylineno,loc:se,expected:Wt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Lt+", token: "+M);switch(N[0]){case 1:m.push(M),O.push(D.yytext),h.push(D.yylloc),m.push(N[1]),M=null,ye=D.yyleng,f=D.yytext,Pt=D.yylineno,se=D.yylloc;break;case 2:if(X=this.productions_[N[1]][1],Bt.$=O[O.length-X],Bt._$={first_line:h[h.length-(X||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(X||1)].first_column,last_column:h[h.length-1].last_column},Ne&&(Bt._$.range=[h[h.length-(X||1)].range[0],h[h.length-1].range[1]]),ae=this.performAction.apply(Bt,[f,ye,Pt,Mt.yy,N[1],O,h].concat(Le)),typeof ae<"u")return ae;X&&(m=m.slice(0,-1*X*2),O=O.slice(0,-1*X),h=h.slice(0,-1*X)),m.push(this.productions_[N[1]][0]),O.push(Bt.$),h.push(Bt._$),be=Vt[m[m.length-2]][m[m.length-1]],m.push(be);break;case 3:return!0}}return!0}},Pe=function(){var Ot={EOF:1,parseError:function(x,m){if(this.yy.parser)this.yy.parser.parseError(x,m);else throw new Error(x)},setInput:function(_,x){return this.yy=x||this.yy||{},this._input=_,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},input:function(){var _=this._input[0];this.yytext+=_,this.yyleng++,this.offset++,this.match+=_,this.matched+=_;var x=_.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),_},unput:function(_){var x=_.length,m=_.split(/(?:\r\n?|\n)/g);this._input=_+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var g=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),m.length-1&&(this.yylineno-=m.length-1);var O=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:m?(m.length===g.length?this.yylloc.first_column:0)+g[g.length-m.length].length-m[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[O[0],O[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(_){this.unput(this.match.slice(_))},pastInput:function(){var _=this.matched.substr(0,this.matched.length-this.match.length);return(_.length>20?"...":"")+_.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var _=this.match;return _.length<20&&(_+=this._input.substr(0,20-_.length)),(_.substr(0,20)+(_.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var _=this.pastInput(),x=new Array(_.length+1).join("-");return _+this.upcomingInput()+`
|
|
||||||
`+x+"^"},test_match:function(_,x){var m,g,O;if(this.options.backtrack_lexer&&(O={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(O.yylloc.range=this.yylloc.range.slice(0))),g=_[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+_[0].length},this.yytext+=_[0],this.match+=_[0],this.matches=_,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(_[0].length),this.matched+=_[0],m=this.performAction.call(this,this.yy,this,x,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var h in O)this[h]=O[h];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var _,x,m,g;this._more||(this.yytext="",this.match="");for(var O=this._currentRules(),h=0;h<O.length;h++)if(m=this._input.match(this.rules[O[h]]),m&&(!x||m[0].length>x[0].length)){if(x=m,g=h,this.options.backtrack_lexer){if(_=this.test_match(m,O[h]),_!==!1)return _;if(this._backtrack){x=!1;continue}else return!1}else if(!this.options.flex)break}return x?(_=this.test_match(x,O[g]),_!==!1?_:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
||||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var x=this.next();return x||this.lex()},begin:function(x){this.conditionStack.push(x)},popState:function(){var x=this.conditionStack.length-1;return x>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(x){return x=this.conditionStack.length-1-Math.abs(x||0),x>=0?this.conditionStack[x]:"INITIAL"},pushState:function(x){this.begin(x)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(x,m,g,O){switch(g){case 0:return this.begin("open_directive"),18;case 1:return 7;case 2:return 8;case 3:return 9;case 4:return 10;case 5:return this.begin("type_directive"),19;case 6:return this.popState(),this.begin("arg_directive"),16;case 7:return this.popState(),this.popState(),21;case 8:return 20;case 9:return 32;case 10:return 33;case 11:return this.begin("acc_title"),34;case 12:return this.popState(),"acc_title_value";case 13:return this.begin("acc_descr"),36;case 14:return this.popState(),"acc_descr_value";case 15:this.begin("acc_descr_multiline");break;case 16:this.popState();break;case 17:return"acc_descr_multiline_value";case 18:break;case 19:c;break;case 20:return 15;case 21:break;case 22:return 22;case 23:return 25;case 24:return 26;case 25:return 27;case 26:return 28;case 27:return this.begin("person_ext"),55;case 28:return this.begin("person"),54;case 29:return this.begin("system_ext_queue"),61;case 30:return this.begin("system_ext_db"),60;case 31:return this.begin("system_ext"),59;case 32:return this.begin("system_queue"),58;case 33:return this.begin("system_db"),57;case 34:return this.begin("system"),56;case 35:return this.begin("boundary"),47;case 36:return this.begin("enterprise_boundary"),44;case 37:return this.begin("system_boundary"),46;case 38:return this.begin("container_ext_queue"),67;case 39:return this.begin("container_ext_db"),66;case 40:return this.begin("container_ext"),65;case 41:return this.begin("container_queue"),64;case 42:return this.begin("container_db"),63;case 43:return this.begin("container"),62;case 44:return this.begin("container_boundary"),48;case 45:return this.begin("component_ext_queue"),73;case 46:return this.begin("component_ext_db"),72;case 47:return this.begin("component_ext"),71;case 48:return this.begin("component_queue"),70;case 49:return this.begin("component_db"),69;case 50:return this.begin("component"),68;case 51:return this.begin("node"),49;case 52:return this.begin("node"),49;case 53:return this.begin("node_l"),50;case 54:return this.begin("node_r"),51;case 55:return this.begin("rel"),74;case 56:return this.begin("birel"),75;case 57:return this.begin("rel_u"),76;case 58:return this.begin("rel_u"),76;case 59:return this.begin("rel_d"),77;case 60:return this.begin("rel_d"),77;case 61:return this.begin("rel_l"),78;case 62:return this.begin("rel_l"),78;case 63:return this.begin("rel_r"),79;case 64:return this.begin("rel_r"),79;case 65:return this.begin("rel_b"),80;case 66:return this.begin("rel_index"),81;case 67:return this.begin("update_el_style"),82;case 68:return this.begin("update_rel_style"),83;case 69:return this.begin("update_layout_config"),84;case 70:return"EOF_IN_STRUCT";case 71:return this.begin("attribute"),"ATTRIBUTE_EMPTY";case 72:this.begin("attribute");break;case 73:this.popState(),this.popState();break;case 74:return 90;case 75:break;case 76:return 90;case 77:this.begin("string");break;case 78:this.popState();break;case 79:return"STR";case 80:this.begin("string_kv");break;case 81:return this.begin("string_kv_key"),"STR_KEY";case 82:this.popState(),this.begin("string_kv_value");break;case 83:return"STR_VALUE";case 84:this.popState(),this.popState();break;case 85:return"STR";case 86:return"LBRACE";case 87:return"RBRACE";case 88:return"SPACE";case 89:return"EOL";case 90:return 24}},rules:[/^(?:%%\{)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:title\s[^#\n;]+)/,/^(?:accDescription\s[^#\n;]+)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:C4Context\b)/,/^(?:C4Container\b)/,/^(?:C4Component\b)/,/^(?:C4Dynamic\b)/,/^(?:C4Deployment\b)/,/^(?:Person_Ext\b)/,/^(?:Person\b)/,/^(?:SystemQueue_Ext\b)/,/^(?:SystemDb_Ext\b)/,/^(?:System_Ext\b)/,/^(?:SystemQueue\b)/,/^(?:SystemDb\b)/,/^(?:System\b)/,/^(?:Boundary\b)/,/^(?:Enterprise_Boundary\b)/,/^(?:System_Boundary\b)/,/^(?:ContainerQueue_Ext\b)/,/^(?:ContainerDb_Ext\b)/,/^(?:Container_Ext\b)/,/^(?:ContainerQueue\b)/,/^(?:ContainerDb\
Line truncated
|
|
||||||
stroke: ${e.personBorder};
|
|
||||||
fill: ${e.personBkg};
|
|
||||||
}
|
|
||||||
`,U0=j0,W0={parser:qe,db:Ce,renderer:ve,styles:U0,init:e=>{ve.setConf(e.c4)}};export{W0 as diagram};
|
|
||||||
//# sourceMappingURL=c4Diagram-9cddb37f-N9kopixF.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"c4Diagram-9cddb37f-N9kopixF.js","sources":["../../../node_modules/mermaid/dist/c4Diagram-9cddb37f.js"],"sourcesContent":["import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, m as mermaidAPI, e as common, f as assignWithDepth, h as calculateTextWidth, l as log, i as configureSvgSize, w as wrapLabel, j as calculateTextHeight } from \"./mermaid-b0ad2de1.js\";\nimport { select } from \"d3\";\nimport { d as drawRect$1, g as getNoteRect } from \"./svgDrawCommon-f26cad39.js\";\nimport { sanitizeUrl } from \"@braintree/sanitize-url\";\nimport \"ts-dedent\";\nimport \"dayjs\";\nimport \"dompurify\";\nimport \"khroma\";\nimport \"lodash-es/memoize.js\";\nimport \"stylis\";\nimport \"lodash-es/isEmpty.js\";\nvar parser = function() {\n var o = function(k, v, o2, l) {\n for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)\n ;\n return o2;\n }, $V0 = [1, 6], $V1 = [1, 7], $V2 = [1, 8], $V3 = [1, 9], $V4 = [1, 16], $V5 = [1, 11], $V6 = [1, 12], $V7 = [1, 13], $V8 = [1, 14], $V9 = [1, 15], $Va = [1, 27], $Vb = [1, 33], $Vc = [1, 34], $Vd = [1, 35], $Ve = [1, 36], $Vf = [1, 37], $Vg = [1, 72], $Vh = [1, 73], $Vi = [1, 74], $Vj = [1, 75], $Vk = [1, 76], $Vl = [1, 77], $Vm = [1, 78], $Vn = [1, 38], $Vo = [1, 39], $Vp = [1, 40], $Vq = [1, 41], $Vr = [1, 42], $Vs = [1, 43], $Vt = [1, 44], $Vu = [1, 45], $Vv = [1, 46], $Vw = [1, 47], $Vx = [1, 48], $Vy = [1, 49], $Vz = [1, 50], $VA = [1, 51], $VB = [1, 52], $VC = [1, 53], $VD = [1, 54], $VE = [1, 55], $VF = [1, 56], $VG = [1, 57], $VH = [1, 59], $VI = [1, 60], $VJ = [1, 61], $VK = [1, 62], $VL = [1, 63], $VM = [1, 64], $VN = [1, 65], $VO = [1, 66], $VP = [1, 67], $VQ = [1, 68], $VR = [1, 69], $VS = [24, 52], $VT = [24, 44, 46, 47, 48, 49, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84], $VU = [15, 24, 44, 46, 47, 48, 49, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84], $VV = [1, 94], $VW = [1, 95], $VX = [1, 96], $VY = [1, 97], $VZ = [15, 24, 52], $V_ = [7, 8, 9, 10, 18, 22, 25, 26, 27, 28], $V$ = [15, 24, 43, 52], $V01 = [15, 24, 43, 52, 86, 87, 89, 90], $V11 = [15, 43], $V21 = [44, 46, 47, 48, 49, 50, 51, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84];\n var parser2 = {\n trace: function trace() {\n },\n yy: {},\n symbols_: { \"error\": 2, \"start\": 3, \"mermaidDoc\": 4, \"direction\": 5, \"directive\": 6, \"direction_tb\": 7, \"direction_bt\": 8, \"direction_rl\": 9, \"direction_lr\": 10, \"graphConfig\": 11, \"openDirective\": 12, \"typeDirective\": 13, \"closeDirective\": 14, \"NEWLINE\": 15, \":\": 16, \"argDirective\": 17, \"open_directive\": 18, \"type_directive\": 19, \"arg_directive\": 20, \"close_directive\": 21, \"C4_CONTEXT\": 22, \"statements\": 23, \"EOF\": 24, \"C4_CONTAINER\": 25, \"C4_COMPONENT\": 26, \"C4_DYNAMIC\": 27, \"C4_DEPLOYMENT\": 28, \"otherStatements\": 29, \"diagramStatements\": 30, \"otherStatement\": 31, \"title\": 32, \"accDescription\": 33, \"acc_title\": 34, \"acc_title_value\": 35, \"acc_descr\": 36, \"acc_descr_value\": 37, \"acc_descr_multiline_value\": 38, \"boundaryStatement\": 39, \"boundaryStartStatement\": 40, \"boundaryStopStatement\": 41, \"boundaryStart\": 42, \"LBRACE\": 43, \"ENTERPRISE_BOUNDARY\": 44, \"attributes\": 45, \"SYSTEM_BOUNDARY\": 46, \"BOUNDARY\": 47, \"CONTAINER_BOUNDARY\": 48, \"NODE\": 49, \"NODE_L\": 50, \"NODE_R\": 51, \"RBRACE\": 52, \"diagramStatement\": 53, \"PERSON\": 54, \"PERSON_EXT\": 55, \"SYSTEM\": 56, \"SYSTEM_DB\": 57, \"SYSTEM_QUEUE\": 58, \"SYSTEM_EXT\": 59, \"SYSTEM_EXT_DB\": 60, \"SYSTEM_EXT_QUEUE\": 61, \"CONTAINER\": 62, \"CONTAINER_DB\": 63, \"CONTAINER_QUEUE\": 64, \"CONTAINER_EXT\": 65, \"CONTAINER_EXT_DB\": 66, \"CONTAINER_EXT_QUEUE\": 67, \"COMPONENT\": 68, \"COMPONENT_DB\": 69, \"COMPONENT_QUEUE\": 70, \"COMPONENT_EXT\": 71, \"COMPONENT_EXT_DB\": 72, \"COMPONENT_EXT_QUEUE\": 73, \"REL\": 74, \"BIREL\": 75, \"REL_U\": 76, \"REL_D\": 77, \"REL_L\": 78, \"REL_R\": 79, \"REL_B\": 80, \"REL_INDEX\": 81, \"UPDATE_EL_STYLE\": 82, \"UPDATE_REL_STYLE\": 83, \"UPDATE_LAYOUT_CONFIG\": 84, \"attribute\": 85, \"STR\": 86, \"STR_KEY\": 87, \"STR_VALUE\": 88, \"ATTRIBUTE\": 89, \"ATTRIBUTE_EMPTY\": 90, \"$accept\": 0, \"$end\": 1 },\n terminals_: { 2: \"error\", 7: \"direction_tb\", 8: \"direction_bt\", 9: \"direction_rl\", 10: \"direction_lr\", 15: \"NEWLINE\", 16: \":\", 18: \"open_directive\", 19: \"type_directive\", 20: \"arg_directive\", 21: \"close_directive\", 22: \"C4_CONTEXT\", 24: \"EOF\", 25: \"C4_CONTAINER\", 26: \"C4_COMPONENT\", 27: \"C4_DYNAMIC\", 28: \"C4_DEPLOYMENT\", 32: \"title\", 33: \"accDescription\", 34: \"acc_title\", 35: \"acc_title_value\", 36: \"acc_descr\", 37: \"acc_descr_value\", 38: \"acc_descr_multilLine truncated
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
import{p as N,d as M,s as W}from"./styles-aefe6593-IaILeGot.js";import{c as S,l as d,h as u,i as H}from"./index-jpNTxDe4.js";import{G as X,l as Y}from"./layout-ewywu0M6.js";import{s as l}from"./svgDraw-0fcc813d-8P1J7hc8.js";import"./index-2K3MavtT.js";import"./line-reZX-DPl.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";let h={};const g=20,p=function(e){const s=Object.entries(h).find(k=>k[1].label===e);if(s)return s[0]},Z=function(e){e.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),e.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},D=function(e,s,k,a){const c=S().class;h={},d.info("Rendering diagram "+e);const L=S().securityLevel;let y;L==="sandbox"&&(y=u("#i"+s));const x=L==="sandbox"?u(y.nodes()[0].contentDocument.body):u("body"),n=x.select(`[id='${s}']`);Z(n);const r=new X({multigraph:!0});r.setGraph({isMultiGraph:!0}),r.setDefaultEdgeLabel(function(){return{}});const m=a.db.getClasses(),$=Object.keys(m);for(const t of $){const o=m[t],i=l.drawClass(n,o,c,a);h[i.id]=i,r.setNode(i.id,i),d.info("Org height: "+i.height)}a.db.getRelations().forEach(function(t){d.info("tjoho"+p(t.id1)+p(t.id2)+JSON.stringify(t)),r.setEdge(p(t.id1),p(t.id2),{relation:t},t.title||"DEFAULT")}),a.db.getNotes().forEach(function(t){d.debug(`Adding note: ${JSON.stringify(t)}`);const o=l.drawNote(n,t,c,a);h[o.id]=o,r.setNode(o.id,o),t.class&&t.class in m&&r.setEdge(t.id,p(t.class),{relation:{id1:t.id,id2:t.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")}),Y(r),r.nodes().forEach(function(t){t!==void 0&&r.node(t)!==void 0&&(d.debug("Node "+t+": "+JSON.stringify(r.node(t))),x.select("#"+(a.db.lookUpDomId(t)||t)).attr("transform","translate("+(r.node(t).x-r.node(t).width/2)+","+(r.node(t).y-r.node(t).height/2)+" )"))}),r.edges().forEach(function(t){t!==void 0&&r.edge(t)!==void 0&&(d.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(r.edge(t))),l.drawEdge(n,r.edge(t),r.edge(t).relation,c,a))});const f=n.node().getBBox(),E=f.width+g*2,b=f.height+g*2;H(n,b,E,c.useMaxWidth);const w=`${f.x-g} ${f.y-g} ${E} ${b}`;d.debug(`viewBox ${w}`),n.attr("viewBox",w)},B={draw:D},V={parser:N,db:M,renderer:B,styles:W,init:e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,M.clear()}};export{V as diagram};
|
|
||||||
//# sourceMappingURL=classDiagram-bc733c3b-nWtrl_HS.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"classDiagram-bc733c3b-nWtrl_HS.js","sources":["../../../node_modules/mermaid/dist/classDiagram-bc733c3b.js"],"sourcesContent":["import { p as parser, d as db, s as styles } from \"./styles-aefe6593.js\";\nimport { select } from \"d3\";\nimport { layout } from \"dagre-d3-es/src/dagre/index.js\";\nimport * as graphlib from \"dagre-d3-es/src/graphlib/index.js\";\nimport { c as getConfig, l as log, i as configureSvgSize } from \"./mermaid-b0ad2de1.js\";\nimport { s as svgDraw } from \"./svgDraw-0fcc813d.js\";\nimport \"ts-dedent\";\nimport \"dayjs\";\nimport \"@braintree/sanitize-url\";\nimport \"dompurify\";\nimport \"khroma\";\nimport \"lodash-es/memoize.js\";\nimport \"stylis\";\nimport \"lodash-es/isEmpty.js\";\nlet idCache = {};\nconst padding = 20;\nconst getGraphId = function(label) {\n const foundEntry = Object.entries(idCache).find((entry) => entry[1].label === label);\n if (foundEntry) {\n return foundEntry[0];\n }\n};\nconst insertMarkers = function(elem) {\n elem.append(\"defs\").append(\"marker\").attr(\"id\", \"extensionStart\").attr(\"class\", \"extension\").attr(\"refX\", 0).attr(\"refY\", 7).attr(\"markerWidth\", 190).attr(\"markerHeight\", 240).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 1,7 L18,13 V 1 Z\");\n elem.append(\"defs\").append(\"marker\").attr(\"id\", \"extensionEnd\").attr(\"refX\", 19).attr(\"refY\", 7).attr(\"markerWidth\", 20).attr(\"markerHeight\", 28).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 1,1 V 13 L18,7 Z\");\n elem.append(\"defs\").append(\"marker\").attr(\"id\", \"compositionStart\").attr(\"class\", \"extension\").attr(\"refX\", 0).attr(\"refY\", 7).attr(\"markerWidth\", 190).attr(\"markerHeight\", 240).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 18,7 L9,13 L1,7 L9,1 Z\");\n elem.append(\"defs\").append(\"marker\").attr(\"id\", \"compositionEnd\").attr(\"refX\", 19).attr(\"refY\", 7).attr(\"markerWidth\", 20).attr(\"markerHeight\", 28).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 18,7 L9,13 L1,7 L9,1 Z\");\n elem.append(\"defs\").append(\"marker\").attr(\"id\", \"aggregationStart\").attr(\"class\", \"extension\").attr(\"refX\", 0).attr(\"refY\", 7).attr(\"markerWidth\", 190).attr(\"markerHeight\", 240).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 18,7 L9,13 L1,7 L9,1 Z\");\n elem.append(\"defs\").append(\"marker\").attr(\"id\", \"aggregationEnd\").attr(\"refX\", 19).attr(\"refY\", 7).attr(\"markerWidth\", 20).attr(\"markerHeight\", 28).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 18,7 L9,13 L1,7 L9,1 Z\");\n elem.append(\"defs\").append(\"marker\").attr(\"id\", \"dependencyStart\").attr(\"class\", \"extension\").attr(\"refX\", 0).attr(\"refY\", 7).attr(\"markerWidth\", 190).attr(\"markerHeight\", 240).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 5,7 L9,13 L1,7 L9,1 Z\");\n elem.append(\"defs\").append(\"marker\").attr(\"id\", \"dependencyEnd\").attr(\"refX\", 19).attr(\"refY\", 7).attr(\"markerWidth\", 20).attr(\"markerHeight\", 28).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 18,7 L9,13 L14,7 L9,1 Z\");\n};\nconst draw = function(text, id, _version, diagObj) {\n const conf = getConfig().class;\n idCache = {};\n log.info(\"Rendering diagram \" + text);\n const securityLevel = getConfig().securityLevel;\n let sandboxElement;\n if (securityLevel === \"sandbox\") {\n sandboxElement = select(\"#i\" + id);\n }\n const root = securityLevel === \"sandbox\" ? select(sandboxElement.nodes()[0].contentDocument.body) : select(\"body\");\n const diagram2 = root.select(`[id='${id}']`);\n insertMarkers(diagram2);\n const g = new graphlib.Graph({\n multigraph: true\n });\n g.setGraph({\n isMultiGraph: true\n });\n g.setDefaultEdgeLabel(function() {\n return {};\n });\n const classes = diagObj.db.getClasses();\n const keys = Object.keys(classes);\n for (const key of keys) {\n const classDef = classes[key];\n const node = svgDraw.drawClass(diagram2, classDef, conf, diagObj);\n idCache[node.id] = node;\n g.setNode(node.id, node);\n log.info(\"Org height: \" + node.height);\n }\n const relations = diagObj.db.getRelations();\n relations.forEach(function(relation) {\n log.info(\n \"tjoho\" + getGraphId(relation.id1) + getGraphId(relation.id2) + JSON.stringify(relation)\n );\n g.setEdge(\n getGraphId(relation.id1),\n getGraphId(relation.id2),\n {\n relation\n },\n relation.title || \"DEFAULT\"\n );\n });\n const notes = diagObj.db.getNotes();\n notes.forEach(function(note) {\n log.debug(`Adding note: ${JSON.stringify(note)}`);\n const node = svgDraw.drawNote(diagram2, note, conf, diagObj);\n idCache[node.id] = node;\n g.setNode(node.id, node);\n if (note.class && note.class in classes) {\n g.setEdge(\n note.id,\n getGraphId(note.class),\n {\n relation: {\n id1: note.id,\n Line truncated
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
import{p as I,d as N,s as M}from"./styles-aefe6593-IaILeGot.js";import{l as p,c,h as w,y as R,t as B,r as D,o as E,p as G,j as _}from"./index-jpNTxDe4.js";import{G as z}from"./layout-ewywu0M6.js";import{r as P}from"./index-a92ac404-gZDUZJdp.js";import"./index-2K3MavtT.js";import"./edges-49ac43a2-VNwnN65b.js";import"./createText-3df630b5-oLWc-GwH.js";import"./svgDraw-0fcc813d-8P1J7hc8.js";import"./line-reZX-DPl.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";const S=s=>_.sanitizeText(s,c());let k={dividerMargin:10,padding:5,textHeight:10,curve:void 0};const q=function(s,t,y,a){const e=Object.keys(s);p.info("keys:",e),p.info(s),e.forEach(function(i){var l,r;const o=s[i],d={shape:"rect",id:o.id,domId:o.domId,labelText:S(o.id),labelStyle:"",style:"fill: none; stroke: black",padding:((l=c().flowchart)==null?void 0:l.padding)??((r=c().class)==null?void 0:r.padding)};t.setNode(o.id,d),A(o.classes,t,y,a,o.id),p.info("setNode",d)})},A=function(s,t,y,a,e){const i=Object.keys(s);p.info("keys:",i),p.info(s),i.forEach(function(l){var r,o;const n=s[l];let d="";n.cssClasses.length>0&&(d=d+" "+n.cssClasses.join(" "));const f={labelStyle:"",style:""},m=n.label??n.id,b=0,h="class_box",u={labelStyle:f.labelStyle,shape:h,labelText:S(m),classData:n,rx:b,ry:b,class:d,style:f.style,id:n.id,domId:n.domId,tooltip:a.db.getTooltip(n.id,e)||"",haveCallback:n.haveCallback,link:n.link,width:n.type==="group"?500:void 0,type:n.type,padding:((r=c().flowchart)==null?void 0:r.padding)??((o=c().class)==null?void 0:o.padding)};t.setNode(n.id,u),e&&t.setParent(n.id,e),p.info("setNode",u)})},F=function(s,t,y,a){p.info(s),s.forEach(function(e,i){var l,r;const o=e,n="",d={labelStyle:"",style:""},f=o.text,m=0,b="note",h={labelStyle:d.labelStyle,shape:b,labelText:S(f),noteData:o,rx:m,ry:m,class:n,style:d.style,id:o.id,domId:o.id,tooltip:"",type:"note",padding:((l=c().flowchart)==null?void 0:l.padding)??((r=c().class)==null?void 0:r.padding)};if(t.setNode(o.id,h),p.info("setNode",h),!o.class||!(o.class in a))return;const u=y+i,g={id:`edgeNote${u}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:D(k.curve,E)};t.setEdge(o.id,o.class,g,u)})},H=function(s,t){const y=c().flowchart;let a=0;s.forEach(function(e){var i;a++;const l={classes:"relation",pattern:e.relation.lineType==1?"dashed":"solid",id:"id"+a,arrowhead:e.type==="arrow_open"?"none":"normal",startLabelRight:e.relationTitle1==="none"?"":e.relationTitle1,endLabelLeft:e.relationTitle2==="none"?"":e.relationTitle2,arrowTypeStart:C(e.relation.type1),arrowTypeEnd:C(e.relation.type2),style:"fill:none",labelStyle:"",curve:D(y==null?void 0:y.curve,E)};if(p.info(l,e),e.style!==void 0){const r=G(e.style);l.style=r.style,l.labelStyle=r.labelStyle}e.text=e.title,e.text===void 0?e.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",((i=c().flowchart)==null?void 0:i.htmlLabels)??c().htmlLabels?(l.labelType="html",l.label='<span class="edgeLabel">'+e.text+"</span>"):(l.labelType="text",l.label=e.text.replace(_.lineBreakRegex,`
|
|
||||||
`),e.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),t.setEdge(e.id1,e.id2,l,a)})},V=function(s){k={...k,...s}},W=async function(s,t,y,a){p.info("Drawing class - ",t);const e=c().flowchart??c().class,i=c().securityLevel;p.info("config:",e);const l=(e==null?void 0:e.nodeSpacing)??50,r=(e==null?void 0:e.rankSpacing)??50,o=new z({multigraph:!0,compound:!0}).setGraph({rankdir:a.db.getDirection(),nodesep:l,ranksep:r,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),n=a.db.getNamespaces(),d=a.db.getClasses(),f=a.db.getRelations(),m=a.db.getNotes();p.info(f),q(n,o,t,a),A(d,o,t,a),H(f,o),F(m,o,f.length+1,d);let b;i==="sandbox"&&(b=w("#i"+t));const h=i==="sandbox"?w(b.nodes()[0].contentDocument.body):w("body"),u=h.select(`[id="${t}"]`),g=h.select("#"+t+" g");if(await P(g,o,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),R.insertTitle(u,"classTitleText",(e==null?void 0:e.titleTopMargin)??5,a.db.getDiagramTitle()),B(o,u,e==null?void 0:e.diagramPadding,e==null?void 0:e.useMaxWidth),!(e!=null&&e.htmlLabels)){const T=i==="sandbox"?b.nodes()[0].contentDocument:document,$=T.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const x of $){const L=x.getBBox(),v=T.createElementNS("http://www.w3.org/2000/svg","rect");v.setAttribute("rx",0),v.setAttribute("ry",0),v.setAttribute("width",L.width),v.setAttribute("height",L.height),x.insertBefore(v,x.firstChild)}}};function C(s){let t;switch(s){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}const J={setConf:V,draw:W},le={parser:I,db:N,renderer:J,styles:M,init:s=>{s.class||(s.class={}),s.class.arrowMarkerAbsolute=s.arrowMarkerAbsolute,N.clear()}};export{le as diagram};
|
|
||||||
//# sourceMappingURL=classDiagram-v2-8931bdaf-hkLGNE-q.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"classDiagram-v2-8931bdaf-hkLGNE-q.js","sources":["../../../node_modules/mermaid/dist/classDiagram-v2-8931bdaf.js"],"sourcesContent":["import { p as parser, d as db, s as styles } from \"./styles-aefe6593.js\";\nimport { select, curveLinear } from \"d3\";\nimport * as graphlib from \"dagre-d3-es/src/graphlib/index.js\";\nimport { l as log, c as getConfig, u as utils, p as setupGraphViewbox, o as interpolateToCurve, k as getStylesFromArray, e as common } from \"./mermaid-b0ad2de1.js\";\nimport { r as render } from \"./index-a92ac404.js\";\nimport \"ts-dedent\";\nimport \"dayjs\";\nimport \"@braintree/sanitize-url\";\nimport \"dompurify\";\nimport \"khroma\";\nimport \"lodash-es/memoize.js\";\nimport \"stylis\";\nimport \"lodash-es/isEmpty.js\";\nimport \"dagre-d3-es/src/dagre/index.js\";\nimport \"dagre-d3-es/src/graphlib/json.js\";\nimport \"./edges-49ac43a2.js\";\nimport \"./createText-3df630b5.js\";\nimport \"mdast-util-from-markdown\";\nimport \"./svgDraw-0fcc813d.js\";\nconst sanitizeText = (txt) => common.sanitizeText(txt, getConfig());\nlet conf = {\n dividerMargin: 10,\n padding: 5,\n textHeight: 10,\n curve: void 0\n};\nconst addNamespaces = function(namespaces, g, _id, diagObj) {\n const keys = Object.keys(namespaces);\n log.info(\"keys:\", keys);\n log.info(namespaces);\n keys.forEach(function(id) {\n var _a, _b;\n const vertex = namespaces[id];\n const shape = \"rect\";\n const node = {\n shape,\n id: vertex.id,\n domId: vertex.domId,\n labelText: sanitizeText(vertex.id),\n labelStyle: \"\",\n style: \"fill: none; stroke: black\",\n // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release\n padding: ((_a = getConfig().flowchart) == null ? void 0 : _a.padding) ?? ((_b = getConfig().class) == null ? void 0 : _b.padding)\n };\n g.setNode(vertex.id, node);\n addClasses(vertex.classes, g, _id, diagObj, vertex.id);\n log.info(\"setNode\", node);\n });\n};\nconst addClasses = function(classes, g, _id, diagObj, parent) {\n const keys = Object.keys(classes);\n log.info(\"keys:\", keys);\n log.info(classes);\n keys.forEach(function(id) {\n var _a, _b;\n const vertex = classes[id];\n let cssClassStr = \"\";\n if (vertex.cssClasses.length > 0) {\n cssClassStr = cssClassStr + \" \" + vertex.cssClasses.join(\" \");\n }\n const styles2 = { labelStyle: \"\", style: \"\" };\n const vertexText = vertex.label ?? vertex.id;\n const radius = 0;\n const shape = \"class_box\";\n const node = {\n labelStyle: styles2.labelStyle,\n shape,\n labelText: sanitizeText(vertexText),\n classData: vertex,\n rx: radius,\n ry: radius,\n class: cssClassStr,\n style: styles2.style,\n id: vertex.id,\n domId: vertex.domId,\n tooltip: diagObj.db.getTooltip(vertex.id, parent) || \"\",\n haveCallback: vertex.haveCallback,\n link: vertex.link,\n width: vertex.type === \"group\" ? 500 : void 0,\n type: vertex.type,\n // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release\n padding: ((_a = getConfig().flowchart) == null ? void 0 : _a.padding) ?? ((_b = getConfig().class) == null ? void 0 : _b.padding)\n };\n g.setNode(vertex.id, node);\n if (parent) {\n g.setParent(vertex.id, parent);\n }\n log.info(\"setNode\", node);\n });\n};\nconst addNotes = function(notes, g, startEdgeId, classes) {\n log.info(notes);\n notes.forEach(function(note, i) {\n var _a, _b;\n const vertex = note;\n const cssNoteStr = \"\";\n const styles2 = { labelStyle: \"\", style: \"\" };\n const vertexText = vertex.text;\n const radius = 0;\n const shape = \"note\";\n const node = {\n labelStyle: styles2.labelStyle,\n shape,\n labelText: sanitizeText(vertexText),\n noteData: vertex,\n rx: radius,\n ry: radius,\n class: cssNoteStr,\n style: styles2.style,\n id: vertex.id,\n domId: vertex.id,\n tooltip: \"\",\n type: \"note\",\n // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release\n padding: ((_a = getConfig().flowchart) == null ? void 0 : _a.padding) ?? ((_b = getConfig().class) == null ? void 0 : _b.padding)\n };\n g.setNode(vertex.id, node);\n log.info(\"setNode\", node);\n if (!vertex.class || !(vertex.class in classes)) {\n return;\n }\n const edgeId = startEdgeId + i;\n const edgeData = {\n id: `edgeNote${edgeId}`,\n //Set relationship style and line type\n classes: \"relation\",\n pattern: \"dotted\",\n // Set link type for rendering\n arrowhead: \"none\",\n //Set edge extra labels\n startLabelRight: \"\",\n endLabelLeft: \"\",\n //Set relation arrow types\n arrowTypeStart: \"none\",\n arrowTypeEnd: \"none\",\n stLine truncated
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
import{l as nt,a4 as At,a6 as zt}from"./index-jpNTxDe4.js";const It={};function Bt(n,r){const t=r||It,e=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,u=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return tt(n,e,u)}function tt(n,r,t){if(Tt(n)){if("value"in n)return n.type==="html"&&!t?"":n.value;if(r&&"alt"in n&&n.alt)return n.alt;if("children"in n)return qn(n.children,r,t)}return Array.isArray(n)?qn(n,r,t):""}function qn(n,r,t){const e=[];let u=-1;for(;++u<n.length;)e[u]=tt(n[u],r,t);return e.join("")}function Tt(n){return!!(n&&typeof n=="object")}function tn(n,r,t,e){const u=n.length;let i=0,l;if(r<0?r=-r>u?0:u+r:r=r>u?u:r,t=t>0?t:0,e.length<1e4)l=Array.from(e),l.unshift(r,t),n.splice(...l);else for(t&&n.splice(r,t);i<e.length;)l=e.slice(i,i+1e4),l.unshift(r,0),n.splice(...l),i+=1e4,r+=1e4}function Y(n,r){return n.length>0?(tn(n,n.length,0,r),n):r}const Hn={}.hasOwnProperty;function Lt(n){const r={};let t=-1;for(;++t<n.length;)Ot(r,n[t]);return r}function Ot(n,r){let t;for(t in r){const u=(Hn.call(n,t)?n[t]:void 0)||(n[t]={}),i=r[t];let l;if(i)for(l in i){Hn.call(u,l)||(u[l]=[]);const a=i[l];Dt(u[l],Array.isArray(a)?a:a?[a]:[])}}}function Dt(n,r){let t=-1;const e=[];for(;++t<r.length;)(r[t].add==="after"?n:e).push(r[t]);tn(n,0,0,e)}const Pt=/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,nn=cn(/[A-Za-z]/),v=cn(/[\dA-Za-z]/),_t=cn(/[#-'*+\--9=?A-Z^-~]/);function An(n){return n!==null&&(n<32||n===127)}const zn=cn(/\d/),Mt=cn(/[\dA-Fa-f]/),jt=cn(/[!-/:-@[-`{-~]/);function w(n){return n!==null&&n<-2}function Z(n){return n!==null&&(n<0||n===32)}function I(n){return n===-2||n===-1||n===32}const Rt=cn(Pt),qt=cn(/\s/);function cn(n){return r;function r(t){return t!==null&&n.test(String.fromCharCode(t))}}function O(n,r,t,e){const u=e?e-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(m){return I(m)?(n.enter(t),a(m)):r(m)}function a(m){return I(m)&&i++<u?(n.consume(m),a):(n.exit(t),r(m))}}const Ht={tokenize:Nt};function Nt(n){const r=n.attempt(this.parser.constructs.contentInitial,e,u);let t;return r;function e(a){if(a===null){n.consume(a);return}return n.enter("lineEnding"),n.consume(a),n.exit("lineEnding"),O(n,r,"linePrefix")}function u(a){return n.enter("paragraph"),i(a)}function i(a){const m=n.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=m),t=m,l(a)}function l(a){if(a===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(a);return}return w(a)?(n.consume(a),n.exit("chunkText"),i):(n.consume(a),l)}}const Vt={tokenize:Qt},Nn={tokenize:Ut};function Qt(n){const r=this,t=[];let e=0,u,i,l;return a;function a(F){if(e<t.length){const P=t[e];return r.containerState=P[1],n.attempt(P[0].continuation,m,c)(F)}return c(F)}function m(F){if(e++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,u&&j();const P=r.events.length;let M=P,k;for(;M--;)if(r.events[M][0]==="exit"&&r.events[M][1].type==="chunkFlow"){k=r.events[M][1].end;break}b(e);let B=P;for(;B<r.events.length;)r.events[B][1].end=Object.assign({},k),B++;return tn(r.events,M+1,0,r.events.slice(P)),r.events.length=B,c(F)}return a(F)}function c(F){if(e===t.length){if(!u)return x(F);if(u.currentConstruct&&u.currentConstruct.concrete)return A(F);r.interrupt=!!(u.currentConstruct&&!u._gfmTableDynamicInterruptHack)}return r.containerState={},n.check(Nn,p,f)(F)}function p(F){return u&&j(),b(e),x(F)}function f(F){return r.parser.lazy[r.now().line]=e!==t.length,l=r.now().offset,A(F)}function x(F){return r.containerState={},n.attempt(Nn,h,A)(F)}function h(F){return e++,t.push([r.currentConstruct,r.containerState]),x(F)}function A(F){if(F===null){u&&j(),b(0),n.consume(F);return}return u=u||r.parser.flow(r.now()),n.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:u}),C(F)}function C(F){if(F===nulLine truncated
|
|
||||||
`;break}case-3:{l=`\r
|
|
||||||
`;break}case-2:{l=r?" ":" ";break}case-1:{if(!r&&u)continue;l=" ";break}default:l=String.fromCharCode(i)}u=i===-2,e.push(l)}return e.join("")}const mr={42:$,43:$,45:$,48:$,49:$,50:$,51:$,52:$,53:$,54:$,55:$,56:$,57:$,62:et},xr={91:ge},gr={[-2]:wn,[-1]:wn,32:wn},kr={35:Fe,42:bn,45:[Yn,bn],60:Ae,61:Yn,95:bn,96:$n,126:$n},dr={38:it,92:rt},br={[-5]:Cn,[-4]:Cn,[-3]:Cn,33:Ue,38:it,42:In,60:[Zt,De],91:$e,92:[ye,rt],93:On,95:In,96:le},yr={null:[In,ar]},Sr={null:[42,95]},Fr={null:[]},Er=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Sr,contentInitial:xr,disable:Fr,document:mr,flow:kr,flowInitial:gr,insideSpan:yr,string:dr,text:br},Symbol.toStringTag,{value:"Module"}));function wr(n){const t=Lt([Er,...(n||{}).extensions||[]]),e={defined:[],lazy:{},constructs:t,content:u(Ht),document:u(Vt),flow:u(ur),string:u(or),text:u(sr)};return e;function u(i){return l;function l(a){return hr(e,i,a)}}}const Gn=/[\0\t\n\r]/g;function Cr(){let n=1,r="",t=!0,e;return u;function u(i,l,a){const m=[];let c,p,f,x,h;for(i=r+i.toString(l),f=0,r="",t&&(i.charCodeAt(0)===65279&&f++,t=void 0);f<i.length;){if(Gn.lastIndex=f,c=Gn.exec(i),x=c&&c.index!==void 0?c.index:i.length,h=i.charCodeAt(x),!c){r=i.slice(f);break}if(h===10&&f===x&&e)m.push(-3),e=void 0;else switch(e&&(m.push(-5),e=void 0),f<x&&(m.push(i.slice(f,x)),n+=x-f),h){case 0:{m.push(65533),n++;break}case 9:{for(p=Math.ceil(n/4)*4,m.push(-2);n++<p;)m.push(-1);break}case 10:{m.push(-4),n=1;break}default:e=!0,n=1}f=x+1}return a&&(e&&m.push(-5),r&&m.push(r),m.push(null)),m}}function Ar(n){for(;!ut(n););return n}function ht(n,r){const t=Number.parseInt(n,r);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCharCode(t)}const zr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ir(n){return n.replace(zr,Br)}function Br(n,r,t){if(r)return r;if(t.charCodeAt(0)===35){const u=t.charCodeAt(1),i=u===120||u===88;return ht(t.slice(i?2:1),i?16:10)}return Ln(t)||n}function yn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Jn(n.position):"start"in n||"end"in n?Jn(n):"line"in n||"column"in n?Bn(n):""}function Bn(n){return Kn(n&&n.line)+":"+Kn(n&&n.column)}function Jn(n){return Bn(n&&n.start)+"-"+Bn(n&&n.end)}function Kn(n){return n&&typeof n=="number"?n:1}const pt={}.hasOwnProperty,ft=function(n,r,t){return typeof r!="string"&&(t=r,r=void 0),Tr(t)(Ar(wr(t).document().write(Cr()(n,r,!0))))};function Tr(n){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(jn),autolinkProtocol:y,autolinkEmail:y,atxHeading:a(Pn),blockQuote:a(Fn),characterEscape:y,characterReference:y,codeFenced:a(Dn),codeFencedFenceInfo:m,codeFencedFenceMeta:m,codeIndented:a(Dn,m),codeText:a(kt,m),codeTextData:y,data:y,codeFlowValue:y,definition:a(dt),definitionDestinationString:m,definitionLabelString:m,definitionTitleString:m,emphasis:a(bt),hardBreakEscape:a(_n),hardBreakTrailing:a(_n),htmlFlow:a(Mn,m),htmlFlowData:y,htmlText:a(Mn,m),htmlTextData:y,image:a(yt),label:m,link:a(jn),listItem:a(St),listItemValue:A,listOrdered:a(Rn,h),listUnordered:a(Rn),paragraph:a(Ft),reference:hn,referenceString:m,resourceDestinationString:m,resourceTitleString:m,setextHeading:a(Pn),strong:a(Et),thematicBreak:a(Ct)},exit:{atxHeading:p(),atxHeadingSequence:B,autolink:p(),autolinkEmail:mn,autolinkProtocol:fn,blockQuote:p(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:pn,characterReferenceMarkerNumeric:pn,characterReferenceValue:an,codeFenced:p(j),codeFencedFence:b,codeFencedFenceInfo:C,codeFencedFenceMeta:D,codeFlowValue:S,codeIndented:p(F),codeText:p(Q),codeTextData:S,data:S,definition:p(),definitionDestinationString:k,definitionLabelString:P,definitionTitleString:M,emphasis:p(),hardBreakEscape:p(R),hardBreakTrailing:p(R),htmlFlow:p(z),htmlFlowData:S,htmlText:p(W),htmlTextData:S,image:p(en),label:J,labelText:o,lineEnding:_,link:p(G),listItem:p(),listOrdered:p(),listUnordered:p(),paragraph:p(),referenceString:U,resourceDestinationString:rn,resourceTitleString:s,resource:K,setextHeading:p(V),setextHeadingLineSequence:N,setextHeadingText:H,strong:p(),thematicBreak:p()}};mt(r,(n||{}).mdastExtensions||[]);const t={};return e;function e(g){let d={type:"root",children:[]};const E={stack:[d],tokenStack:[],config:r,enter:c,exit:f,buffer:m,resume:x,setData:i,getData:l},T=[];let L=-1;for(;++L<g.length;)if(g[L][1].type==="listOrdered"||g[L][1].type==="listUnordered")if(g[L][0]==="enter")T.push(L);else{const X=T.pop();L=u(g,X,L)}for(L=-1;++L<g.length;){const X=r[g[L][0]];pt.call(X,g[L][1].type)&&X[g[L][1].type].call(Object.assign({sliceSerialize:g[L][2].sliceSerialize},E),g[L][1])}if(E.tokenStack.length>0){const X=E.tokenStack[E.tokenStack.length-1];(X[1]||Xn).call(E,void 0,X[0])}for(d.position={start:sn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:sn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},L=-1;++L<r.tranLine truncated
|
|
||||||
`);return zt(r)}function Dr(n){const r=Or(n),{children:t}=ft(r),e=[[]];let u=0;function i(l,a="normal"){l.type==="text"?l.value.split(`
|
|
||||||
`).forEach((c,p)=>{p!==0&&(u++,e.push([])),c.split(" ").forEach(f=>{f&&e[u].push({content:f,type:a})})}):(l.type==="strong"||l.type==="emphasis")&&l.children.forEach(m=>{i(m,l.type)})}return t.forEach(l=>{l.type==="paragraph"&&l.children.forEach(a=>{i(a)})}),e}function Pr(n){const{children:r}=ft(n);function t(e){return e.type==="text"?e.value.replace(/\n/g,"<br/>"):e.type==="strong"?`<strong>${e.children.map(t).join("")}</strong>`:e.type==="emphasis"?`<em>${e.children.map(t).join("")}</em>`:e.type==="paragraph"?`<p>${e.children.map(t).join("")}</p>`:`Unsupported markdown: ${e.type}`}return r.map(t).join("")}function _r(n,r){r&&n.attr("style",r)}function Mr(n,r,t,e,u=!1){const i=n.append("foreignObject"),l=i.append("xhtml:div"),a=r.label,m=r.isNode?"nodeLabel":"edgeLabel";l.html(`
|
|
||||||
<span class="${m} ${e}" `+(r.labelStyle?'style="'+r.labelStyle+'"':"")+">"+a+"</span>"),_r(l,r.labelStyle),l.style("display","table-cell"),l.style("white-space","nowrap"),l.style("max-width",t+"px"),l.attr("xmlns","http://www.w3.org/1999/xhtml"),u&&l.attr("class","labelBkg");let c=l.node().getBoundingClientRect();return c.width===t&&(l.style("display","table"),l.style("white-space","break-spaces"),l.style("width",t+"px"),c=l.node().getBoundingClientRect()),i.style("width",c.width),i.style("height",c.height),i.node()}function xt(n,r,t){return n.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",r*t-.1+"em").attr("dy",t+"em")}function vn(n,r,t){const e=n.append("text"),u=xt(e,1,r);gt(u,[{content:t,type:"normal"}]);const i=u.node().getComputedTextLength();return e.remove(),i}function jr(n,r,t,e=!1){const i=r.append("g");let l=i.insert("rect").attr("class","background");const a=i.append("text").attr("y","-10.1");let m=0;if(t.forEach(c=>{let p=c.map(C=>C.content).join(" "),f="",x=[],h=0;if(vn(i,1.1,p)<=n)x.push(p);else{for(let C=0;C<=p.length;C++)if(f=p.slice(h,C),nt.info(f,h,C),vn(i,1.1,f)>n){const b=p.slice(h,C).lastIndexOf(" ");b>-1&&(C=h+b+1),x.push(p.slice(h,C).trim()),h=C,f=null}f!=null&&x.push(f)}const A=x.map(C=>({content:C,type:c.type}));for(const C of A){let D=xt(a,m,1.1);gt(D,[C]),m++}}),e){const c=a.node().getBBox(),p=2;return l.attr("x",-p).attr("y",-p).attr("width",c.width+2*p).attr("height",c.height+2*p),i.node()}else return a.node()}function gt(n,r){n.text(""),r.forEach((t,e)=>{const u=n.append("tspan").attr("font-style",t.type==="em"?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight",t.type==="strong"?"bold":"normal");e===0?u.text(t.content):u.text(" "+t.content)})}const qr=(n,r="",{style:t="",isTitle:e=!1,classes:u="",useHtmlLabels:i=!0,isNode:l=!0,width:a,addSvgBackground:m=!1}={})=>{if(nt.info("createText",r,t,e,u,i,l,m),i){const c=Pr(r),p={isNode:l,label:At(c).replace(/fa[blrs]?:fa-[\w-]+/g,x=>`<i class='${x.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return Mr(n,p,a,u,m)}else{const c=Dr(r);return jr(a,n,c,m)}};export{qr as c};
|
|
||||||
//# sourceMappingURL=createText-3df630b5-oLWc-GwH.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"createText-3df630b5-oLWc-GwH.js","sources":["../../../node_modules/mdast-util-to-string/lib/index.js","../../../node_modules/micromark-util-chunked/index.js","../../../node_modules/micromark-util-combine-extensions/index.js","../../../node_modules/micromark-util-character/lib/unicode-punctuation-regex.js","../../../node_modules/micromark-util-character/index.js","../../../node_modules/micromark-factory-space/index.js","../../../node_modules/micromark/lib/initialize/content.js","../../../node_modules/micromark/lib/initialize/document.js","../../../node_modules/micromark-util-classify-character/index.js","../../../node_modules/micromark-util-resolve-all/index.js","../../../node_modules/micromark-core-commonmark/lib/attention.js","../../../node_modules/micromark-core-commonmark/lib/autolink.js","../../../node_modules/micromark-core-commonmark/lib/blank-line.js","../../../node_modules/micromark-core-commonmark/lib/block-quote.js","../../../node_modules/micromark-core-commonmark/lib/character-escape.js","../../../node_modules/decode-named-character-reference/index.dom.js","../../../node_modules/micromark-core-commonmark/lib/character-reference.js","../../../node_modules/micromark-core-commonmark/lib/code-fenced.js","../../../node_modules/micromark-core-commonmark/lib/code-indented.js","../../../node_modules/micromark-core-commonmark/lib/code-text.js","../../../node_modules/micromark-util-subtokenize/index.js","../../../node_modules/micromark-core-commonmark/lib/content.js","../../../node_modules/micromark-factory-destination/index.js","../../../node_modules/micromark-factory-label/index.js","../../../node_modules/micromark-factory-title/index.js","../../../node_modules/micromark-factory-whitespace/index.js","../../../node_modules/micromark-util-normalize-identifier/index.js","../../../node_modules/micromark-core-commonmark/lib/definition.js","../../../node_modules/micromark-core-commonmark/lib/hard-break-escape.js","../../../node_modules/micromark-core-commonmark/lib/heading-atx.js","../../../node_modules/micromark-util-html-tag-name/index.js","../../../node_modules/micromark-core-commonmark/lib/html-flow.js","../../../node_modules/micromark-core-commonmark/lib/html-text.js","../../../node_modules/micromark-core-commonmark/lib/label-end.js","../../../node_modules/micromark-core-commonmark/lib/label-start-image.js","../../../node_modules/micromark-core-commonmark/lib/label-start-link.js","../../../node_modules/micromark-core-commonmark/lib/line-ending.js","../../../node_modules/micromark-core-commonmark/lib/thematic-break.js","../../../node_modules/micromark-core-commonmark/lib/list.js","../../../node_modules/micromark-core-commonmark/lib/setext-underline.js","../../../node_modules/micromark/lib/initialize/flow.js","../../../node_modules/micromark/lib/initialize/text.js","../../../node_modules/micromark/lib/create-tokenizer.js","../../../node_modules/micromark/lib/constructs.js","../../../node_modules/micromark/lib/parse.js","../../../node_modules/micromark/lib/preprocess.js","../../../node_modules/micromark/lib/postprocess.js","../../../node_modules/micromark-util-decode-numeric-character-reference/index.js","../../../node_modules/micromark-util-decode-string/index.js","../../../node_modules/unist-util-stringify-position/lib/index.js","../../../node_modules/mdast-util-from-markdown/lib/index.js","../../../node_modules/mermaid/dist/createText-3df630b5.js"],"sourcesContent":["/**\n * @typedef {import('mdast').Root|import('mdast').Content} Node\n *\n * @typedef Options\n * Configuration (optional).\n * @property {boolean | null | undefined} [includeImageAlt=true]\n * Whether to use `alt` for `image`s.\n * @property {boolean | null | undefined} [includeHtml=true]\n * Whether to use `value` of HTML.\n */\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Get the text content of a node or list of nodes.\n *\n * Prefers the node’s plain-text fields, otherwise serializes its children,\n * and if the given value is an array, serialize the nodes in it.\n *\n * @param {unknown} value\n * Thing to serialize, typically `Node`.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {string}\n * Serialized `value`.\n */\nexport function toString(value, options) {\n const settings = options || emptyOptions\n const includeImageAlt =\n typeof settings.includeImageAlt === 'boolean'\n ? settings.includeImageAlt\n : true\n const includeHtml =\n typeof settings.includeHtml === 'boolean' ? settings.includeHtml : true\n\n return one(value, includeImageAlt, includeHtml)\n}\n\n/**\n * One node or several nodes.\n *\n * @param {unknown} value\n * Thing to serialize.\n * @param {boolean} includeImageAlt\n * Include image `alt`s.\n * @param {boolean} includeHtml\n * Include HTML.\n * @returns {string}\n * Serialized node.\n */\nfunction one(value, includeImageAlt, includeHtml) {\n if (node(value)) {\n if ('value' in value) {\Line truncated
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
var y=async(e=[{}])=>(Array.isArray(e)||(e=[e]),e[0].recursive=e[0].recursive||!1,new Promise((s,l)=>{const r=document.createElement("input");r.type="file",r.webkitdirectory=!0;const a=t=>{typeof i=="function"&&i(),s(t)},i=e[0].legacySetup&&e[0].legacySetup(a,()=>i(l),r);r.addEventListener("change",()=>{let t=Array.from(r.files);e[0].recursive?e[0].recursive&&e[0].skipDirectory&&(t=t.filter(c=>c.webkitRelativePath.split("/").every(n=>!e[0].skipDirectory({name:n,kind:"directory"})))):t=t.filter(c=>c.webkitRelativePath.split("/").length===2),a(t)}),r.click()}));export{y as default};
|
|
||||||
//# sourceMappingURL=directory-open-01563666-cQgJ4y3t.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"directory-open-01563666-cQgJ4y3t.js","sources":["../../../node_modules/browser-fs-access/dist/directory-open-01563666.js"],"sourcesContent":["var e=async(e=[{}])=>(Array.isArray(e)||(e=[e]),e[0].recursive=e[0].recursive||!1,new Promise((t,r)=>{const i=document.createElement(\"input\");i.type=\"file\",i.webkitdirectory=!0;const c=e=>{\"function\"==typeof a&&a(),t(e)},a=e[0].legacySetup&&e[0].legacySetup(c,()=>a(r),i);i.addEventListener(\"change\",()=>{let t=Array.from(i.files);e[0].recursive?e[0].recursive&&e[0].skipDirectory&&(t=t.filter(t=>t.webkitRelativePath.split(\"/\").every(t=>!e[0].skipDirectory({name:t,kind:\"directory\"})))):t=t.filter(e=>2===e.webkitRelativePath.split(\"/\").length),c(t)}),i.click()}));export{e as default};\n"],"names":["e","t","r","i","c","a"],"mappings":"AAAG,IAACA,EAAE,MAAM,EAAE,CAAC,CAAA,CAAE,KAAK,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,WAAW,GAAG,IAAI,QAAQ,CAACC,EAAEC,IAAI,CAAC,MAAMC,EAAE,SAAS,cAAc,OAAO,EAAEA,EAAE,KAAK,OAAOA,EAAE,gBAAgB,GAAG,MAAMC,EAAEJ,GAAG,CAAa,OAAOK,GAAnB,YAAsBA,EAAG,EAACJ,EAAED,CAAC,CAAC,EAAEK,EAAE,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,YAAYD,EAAE,IAAIC,EAAEH,CAAC,EAAEC,CAAC,EAAEA,EAAE,iBAAiB,SAAS,IAAI,CAAC,IAAI,EAAE,MAAM,KAAKA,EAAE,KAAK,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,gBAAgB,EAAE,EAAE,OAAOF,GAAGA,EAAE,mBAAmB,MAAM,GAAG,EAAE,MAAMA,GAAG,CAAC,EAAE,CAAC,EAAE,cAAc,CAAC,KAAKA,EAAE,KAAK,WAAW,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,OAAOD,GAAOA,EAAE,mBAAmB,MAAM,GAAG,EAAE,SAApC,CAA0C,EAAEI,EAAE,CAAC,CAAC,CAAC,EAAED,EAAE,MAAO,CAAA,CAAC","x_google_ignoreList":[0]}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
function l(e){function i(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then(function(s){return{value:s,done:n}})}return l=function(r){this.s=r,this.n=r.next},l.prototype={s:null,n:null,next:function(){return i(this.n.apply(this.s,arguments))},return:function(r){var n=this.s.return;return n===void 0?Promise.resolve({value:r,done:!0}):i(n.apply(this.s,arguments))},throw:function(r){var n=this.s.return;return n===void 0?Promise.reject(r):i(n.apply(this.s,arguments))}},new l(e)}const p=async(e,i,r=e.name,n)=>{const s=[],f=[];var v,c=!1,d=!1;try{for(var h,y=function(t){var o,a,u,w=2;for(typeof Symbol<"u"&&(a=Symbol.asyncIterator,u=Symbol.iterator);w--;){if(a&&(o=t[a])!=null)return o.call(t);if(u&&(o=t[u])!=null)return new l(o.call(t));a="@@asyncIterator",u="@@iterator"}throw new TypeError("Object is not async iterable")}(e.values());c=!(h=await y.next()).done;c=!1){const t=h.value,o=`${r}/${t.name}`;t.kind==="file"?f.push(t.getFile().then(a=>(a.directoryHandle=e,a.handle=t,Object.defineProperty(a,"webkitRelativePath",{configurable:!0,enumerable:!0,get:()=>o})))):t.kind!=="directory"||!i||n&&n(t)||s.push(p(t,i,o,n))}}catch(t){d=!0,v=t}finally{try{c&&y.return!=null&&await y.return()}finally{if(d)throw v}}return[...(await Promise.all(s)).flat(),...await Promise.all(f)]};var m=async(e={})=>{e.recursive=e.recursive||!1;const i=await window.showDirectoryPicker({id:e.id,startIn:e.startIn});return p(i,e.recursive,void 0,e.skipDirectory)};export{m as default};
|
|
||||||
//# sourceMappingURL=directory-open-4ed118d0-LU9zN15H.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"directory-open-4ed118d0-LU9zN15H.js","sources":["../../../node_modules/browser-fs-access/dist/directory-open-4ed118d0.js"],"sourcesContent":["function e(r){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+\" is not an object.\"));var r=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:r}})}return e=function(e){this.s=e,this.n=e.next},e.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new e(r)}const r=async(t,n,i=t.name,a)=>{const o=[],l=[];var s,u=!1,c=!1;try{for(var y,f=function(r){var t,n,i,a=2;for(\"undefined\"!=typeof Symbol&&(n=Symbol.asyncIterator,i=Symbol.iterator);a--;){if(n&&null!=(t=r[n]))return t.call(r);if(i&&null!=(t=r[i]))return new e(t.call(r));n=\"@@asyncIterator\",i=\"@@iterator\"}throw new TypeError(\"Object is not async iterable\")}(t.values());u=!(y=await f.next()).done;u=!1){const e=y.value,s=`${i}/${e.name}`;\"file\"===e.kind?l.push(e.getFile().then(r=>(r.directoryHandle=t,r.handle=e,Object.defineProperty(r,\"webkitRelativePath\",{configurable:!0,enumerable:!0,get:()=>s})))):\"directory\"!==e.kind||!n||a&&a(e)||o.push(r(e,n,s,a))}}catch(e){c=!0,s=e}finally{try{u&&null!=f.return&&await f.return()}finally{if(c)throw s}}return[...(await Promise.all(o)).flat(),...await Promise.all(l)]};var t=async(e={})=>{e.recursive=e.recursive||!1;const t=await window.showDirectoryPicker({id:e.id,startIn:e.startIn});return r(t,e.recursive,void 0,e.skipDirectory)};export{t as default};\n"],"names":["e","r","t","n","i","a","o","l","s","u","c","y","f"],"mappings":"AAAA,SAASA,EAAEC,EAAE,CAAC,SAASC,EAAEF,EAAE,CAAC,GAAG,OAAOA,CAAC,IAAIA,EAAE,OAAO,QAAQ,OAAO,IAAI,UAAUA,EAAE,oBAAoB,CAAC,EAAE,IAAIC,EAAED,EAAE,KAAK,OAAO,QAAQ,QAAQA,EAAE,KAAK,EAAE,KAAK,SAASA,EAAE,CAAC,MAAM,CAAC,MAAMA,EAAE,KAAKC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAOD,EAAE,SAASA,EAAE,CAAC,KAAK,EAAEA,EAAE,KAAK,EAAEA,EAAE,IAAI,EAAEA,EAAE,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,KAAK,UAAU,CAAC,OAAOE,EAAE,KAAK,EAAE,MAAM,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,OAAO,SAASF,EAAE,CAAC,IAAIC,EAAE,KAAK,EAAE,OAAO,OAAgBA,IAAT,OAAW,QAAQ,QAAQ,CAAC,MAAMD,EAAE,KAAK,EAAE,CAAC,EAAEE,EAAED,EAAE,MAAM,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,MAAM,SAASD,EAAE,CAAC,IAAIC,EAAE,KAAK,EAAE,OAAO,OAAgBA,IAAT,OAAW,QAAQ,OAAOD,CAAC,EAAEE,EAAED,EAAE,MAAM,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,IAAID,EAAEC,CAAC,CAAC,CAAC,MAAMA,EAAE,MAAMC,EAAEC,EAAEC,EAAEF,EAAE,KAAKG,IAAI,CAAC,MAAMC,EAAE,CAAE,EAACC,EAAE,CAAA,EAAG,IAAIC,EAAEC,EAAE,GAAGC,EAAE,GAAG,GAAG,CAAC,QAAQC,EAAEC,EAAE,SAASX,EAAE,CAAC,IAAIC,EAAEC,EAAEC,EAAEC,EAAE,EAAE,IAAiB,OAAO,OAApB,MAA6BF,EAAE,OAAO,cAAcC,EAAE,OAAO,UAAUC,KAAK,CAAC,GAAGF,IAAUD,EAAED,EAAEE,CAAC,IAAZ,KAAe,OAAOD,EAAE,KAAKD,CAAC,EAAE,GAAGG,IAAUF,EAAED,EAAEG,CAAC,IAAZ,KAAe,OAAO,IAAIJ,EAAEE,EAAE,KAAKD,CAAC,CAAC,EAAEE,EAAE,kBAAkBC,EAAE,YAAY,CAAC,MAAM,IAAI,UAAU,8BAA8B,CAAC,EAAEF,EAAE,OAAM,CAAE,EAAEO,EAAE,EAAEE,EAAE,MAAMC,EAAE,QAAQ,KAAKH,EAAE,GAAG,CAAC,MAAMT,EAAEW,EAAE,MAAMH,EAAE,GAAGJ,CAAC,IAAIJ,EAAE,IAAI,GAAYA,EAAE,OAAX,OAAgBO,EAAE,KAAKP,EAAE,QAAO,EAAG,KAAKC,IAAIA,EAAE,gBAAgBC,EAAED,EAAE,OAAOD,EAAE,OAAO,eAAeC,EAAE,qBAAqB,CAAC,aAAa,GAAG,WAAW,GAAG,IAAI,IAAIO,CAAC,CAAC,EAAE,CAAC,EAAgBR,EAAE,OAAhB,aAAsB,CAACG,GAAGE,GAAGA,EAAEL,CAAC,GAAGM,EAAE,KAAKL,EAAED,EAAEG,EAAEK,EAAEH,CAAC,CAAC,CAAC,CAAC,OAAOL,EAAE,CAACU,EAAE,GAAGF,EAAER,CAAC,QAAC,CAAQ,GAAG,CAACS,GAASG,EAAE,QAAR,MAAgB,MAAMA,EAAE,OAAM,CAAE,QAAC,CAAQ,GAAGF,EAAE,MAAMF,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,MAAM,QAAQ,IAAIF,CAAC,GAAG,KAAM,EAAC,GAAG,MAAM,QAAQ,IAAIC,CAAC,CAAC,CAAC,EAAK,IAACL,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,UAAU,EAAE,WAAW,GAAG,MAAMA,EAAE,MAAM,OAAO,oBAAoB,CAAC,GAAG,EAAE,GAAG,QAAQ,EAAE,OAAO,CAAC,EAAE,OAAOD,EAAEC,EAAE,EAAE,UAAU,OAAO,EAAE,aAAa,CAAC","x_google_ignoreList":[0]}
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
import{q as H,c as u,d as Z,a4 as j,h as L,l as x,y as U,a5 as F}from"./index-jpNTxDe4.js";import{c as P}from"./createText-3df630b5-oLWc-GwH.js";import{p as Q}from"./svgDraw-0fcc813d-8P1J7hc8.js";import{l as et}from"./line-reZX-DPl.js";const st=(r,t,e,n)=>{t.forEach(a=>{yt[a](r,e,n)})},it=(r,t,e)=>{x.trace("Making markers for ",e),r.append("defs").append("marker").attr("id",t+"-extensionStart").attr("class","marker extension "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},nt=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-compositionStart").attr("class","marker composition "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},lt=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},ct=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},ht=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},ot=(r,t)=>{r.append("marker").attr("id",t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},ft=(r,t)=>{r.append("marker").attr("id",t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},dt=(r,t)=>{r.append("marker").attr("id",t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2)Line truncated
|
|
||||||
outsidePoint: ${JSON.stringify(t)}
|
|
||||||
insidePoint : ${JSON.stringify(e)}
|
|
||||||
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);const n=r.x,a=r.y,s=Math.abs(n-e.x),i=r.width/2;let l=e.x<t.x?i-s:i+s;const c=r.height/2,o=Math.abs(t.y-e.y),h=Math.abs(t.x-e.x);if(Math.abs(a-t.y)*i>Math.abs(n-t.x)*c){let f=e.y<t.y?t.y-c-a:a-c-t.y;l=h*f/o;const b={x:e.x<t.x?e.x+l:e.x-h+l,y:e.y<t.y?e.y+o-f:e.y-o+f};return l===0&&(b.x=t.x,b.y=t.y),h===0&&(b.x=t.x),o===0&&(b.y=t.y),x.warn(`abc89 topp/bott calc, Q ${o}, q ${f}, R ${h}, r ${l}`,b),b}else{e.x<t.x?l=t.x-i-n:l=n-i-t.x;let f=o*l/h,b=e.x<t.x?e.x+h-l:e.x-h+l,d=e.y<t.y?e.y+f:e.y-f;return x.warn(`sides calc abc89, Q ${o}, q ${f}, R ${h}, r ${l}`,{_x:b,_y:d}),l===0&&(b=t.x,d=t.y),h===0&&(b=t.x),o===0&&(d=t.y),{x:b,y:d}}},G=(r,t)=>{x.warn("abc88 cutPathAtIntersect",r,t);let e=[],n=r[0],a=!1;return r.forEach(s=>{if(x.info("abc88 checking point",s,t),!Zt(t,s)&&!a){const i=Ft(t,n,s);x.warn("abc88 inside",s,n,i),x.warn("abc88 intersection",i);let l=!1;e.forEach(c=>{l=l||c.x===i.x&&c.y===i.y}),e.some(c=>c.x===i.x&&c.y===i.y)?x.warn("abc88 no intersect",i,e):e.push(i),a=!0}else x.warn("abc88 outside",s,n),n=s,a||e.push(s)}),x.warn("abc88 returning points",e),e},ir=function(r,t,e,n,a,s){let i=e.points,l=!1;const c=s.node(t.v);var o=s.node(t.w);x.info("abc88 InsertEdge: ",e),o.intersect&&c.intersect&&(i=i.slice(1,e.points.length-1),i.unshift(c.intersect(i[0])),x.info("Last point",i[i.length-1],o,o.intersect(i[i.length-1])),i.push(o.intersect(i[i.length-1]))),e.toCluster&&(x.info("to cluster abc88",n[e.toCluster]),i=G(e.points,n[e.toCluster].node),l=!0),e.fromCluster&&(x.info("from cluster abc88",n[e.fromCluster]),i=G(i.reverse(),n[e.fromCluster].node).reverse(),l=!0);const h=i.filter(w=>!Number.isNaN(w.y));let f;a==="graph"||a==="flowchart"?f=e.curve||F:f=F;const b=et().x(function(w){return w.x}).y(function(w){return w.y}).curve(f);let d;switch(e.thickness){case"normal":d="edge-thickness-normal";break;case"thick":d="edge-thickness-thick";break;case"invisible":d="edge-thickness-thick";break;default:d=""}switch(e.pattern){case"solid":d+=" edge-pattern-solid";break;case"dotted":d+=" edge-pattern-dotted";break;case"dashed":d+=" edge-pattern-dashed";break}const p=r.append("path").attr("d",b(h)).attr("id",e.id).attr("class"," "+d+(e.classes?" "+e.classes:"")).attr("style",e.style);let y="";switch((u().flowchart.arrowMarkerAbsolute||u().state.arrowMarkerAbsolute)&&(y=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,y=y.replace(/\(/g,"\\("),y=y.replace(/\)/g,"\\)")),x.info("arrowTypeStart",e.arrowTypeStart),x.info("arrowTypeEnd",e.arrowTypeEnd),e.arrowTypeStart){case"arrow_cross":p.attr("marker-start","url("+y+"#"+a+"-crossStart)");break;case"arrow_point":p.attr("marker-start","url("+y+"#"+a+"-pointStart)");break;case"arrow_barb":p.attr("marker-start","url("+y+"#"+a+"-barbStart)");break;case"arrow_circle":p.attr("marker-start","url("+y+"#"+a+"-circleStart)");break;case"aggregation":p.attr("marker-start","url("+y+"#"+a+"-aggregationStart)");break;case"extension":p.attr("marker-start","url("+y+"#"+a+"-extensionStart)");break;case"composition":p.attr("marker-start","url("+y+"#"+a+"-compositionStart)");break;case"dependency":p.attr("marker-start","url("+y+"#"+a+"-dependencyStart)");break;case"lollipop":p.attr("marker-start","url("+y+"#"+a+"-lollipopStart)");break}switch(e.arrowTypeEnd){case"arrow_cross":p.attr("marker-end","url("+y+"#"+a+"-crossEnd)");break;case"arrow_point":p.attr("marker-end","url("+y+"#"+a+"-pointEnd)");break;case"arrow_barb":p.attr("marker-end","url("+y+"#"+a+"-barbEnd)");break;case"arrow_circle":p.attr("marker-end","url("+y+"#"+a+"-circleEnd)");break;case"aggregation":p.attr("marker-end","url("+y+"#"+a+"-aggregationEnd)");break;case"extension":p.attr("marker-end","url("+y+"#"+a+"-extensionEnd)");break;case"composition":p.attr("marker-end","url("+y+"#"+a+"-compositionEnd)");break;case"dependency":p.attr("marker-end","url("+y+"#"+a+"-dependencyEnd)");break;case"lollipop":p.attr("marker-end","url("+y+"#"+a+"-lollipopEnd)");break}let g={};return l&&(g.updatedPath=i),g.originalPath=e.points,g};export{Gt as a,er as b,ir as c,sr as d,tr as e,ar as f,T as g,Lt as h,Kt as i,S as l,rr as p,Pt as s,k as u};
|
|
||||||
//# sourceMappingURL=edges-49ac43a2-VNwnN65b.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"edges-49ac43a2-VNwnN65b.js","sources":["../../../node_modules/mermaid/dist/edges-49ac43a2.js"],"sourcesContent":["import { l as log, n as evaluate, c as getConfig, H as decodeEntities, d as sanitizeText, u as utils } from \"./mermaid-b0ad2de1.js\";\nimport { select, curveBasis, line } from \"d3\";\nimport { c as createText } from \"./createText-3df630b5.js\";\nimport { p as parseMember } from \"./svgDraw-0fcc813d.js\";\nconst insertMarkers = (elem, markerArray, type, id) => {\n markerArray.forEach((markerName) => {\n markers[markerName](elem, type, id);\n });\n};\nconst extension = (elem, type, id) => {\n log.trace(\"Making markers for \", id);\n elem.append(\"defs\").append(\"marker\").attr(\"id\", type + \"-extensionStart\").attr(\"class\", \"marker extension \" + type).attr(\"refX\", 0).attr(\"refY\", 7).attr(\"markerWidth\", 190).attr(\"markerHeight\", 240).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 1,7 L18,13 V 1 Z\");\n elem.append(\"defs\").append(\"marker\").attr(\"id\", type + \"-extensionEnd\").attr(\"class\", \"marker extension \" + type).attr(\"refX\", 19).attr(\"refY\", 7).attr(\"markerWidth\", 20).attr(\"markerHeight\", 28).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 1,1 V 13 L18,7 Z\");\n};\nconst composition = (elem, type) => {\n elem.append(\"defs\").append(\"marker\").attr(\"id\", type + \"-compositionStart\").attr(\"class\", \"marker composition \" + type).attr(\"refX\", 0).attr(\"refY\", 7).attr(\"markerWidth\", 190).attr(\"markerHeight\", 240).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 18,7 L9,13 L1,7 L9,1 Z\");\n elem.append(\"defs\").append(\"marker\").attr(\"id\", type + \"-compositionEnd\").attr(\"class\", \"marker composition \" + type).attr(\"refX\", 19).attr(\"refY\", 7).attr(\"markerWidth\", 20).attr(\"markerHeight\", 28).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 18,7 L9,13 L1,7 L9,1 Z\");\n};\nconst aggregation = (elem, type) => {\n elem.append(\"defs\").append(\"marker\").attr(\"id\", type + \"-aggregationStart\").attr(\"class\", \"marker aggregation \" + type).attr(\"refX\", 0).attr(\"refY\", 7).attr(\"markerWidth\", 190).attr(\"markerHeight\", 240).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 18,7 L9,13 L1,7 L9,1 Z\");\n elem.append(\"defs\").append(\"marker\").attr(\"id\", type + \"-aggregationEnd\").attr(\"class\", \"marker aggregation \" + type).attr(\"refX\", 19).attr(\"refY\", 7).attr(\"markerWidth\", 20).attr(\"markerHeight\", 28).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 18,7 L9,13 L1,7 L9,1 Z\");\n};\nconst dependency = (elem, type) => {\n elem.append(\"defs\").append(\"marker\").attr(\"id\", type + \"-dependencyStart\").attr(\"class\", \"marker dependency \" + type).attr(\"refX\", 0).attr(\"refY\", 7).attr(\"markerWidth\", 190).attr(\"markerHeight\", 240).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 5,7 L9,13 L1,7 L9,1 Z\");\n elem.append(\"defs\").append(\"marker\").attr(\"id\", type + \"-dependencyEnd\").attr(\"class\", \"marker dependency \" + type).attr(\"refX\", 19).attr(\"refY\", 7).attr(\"markerWidth\", 20).attr(\"markerHeight\", 28).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 18,7 L9,13 L14,7 L9,1 Z\");\n};\nconst lollipop = (elem, type) => {\n elem.append(\"defs\").append(\"marker\").attr(\"id\", type + \"-lollipopStart\").attr(\"class\", \"marker lollipop \" + type).attr(\"refX\", 0).attr(\"refY\", 7).attr(\"markerWidth\", 190).attr(\"markerHeight\", 240).attr(\"orient\", \"auto\").append(\"circle\").attr(\"stroke\", \"black\").attr(\"fill\", \"white\").attr(\"cx\", 6).attr(\"cy\", 7).attr(\"r\", 6);\n};\nconst point = (elem, type) => {\n elem.append(\"marker\").attr(\"id\", type + \"-pointEnd\").attr(\"class\", \"marker \" + type).attr(\"viewBox\", \"0 0 10 10\").attr(\"refX\", 10).attr(\"refY\", 5).attr(\"markerUnits\", \"userSpaceOnUse\").attr(\"markerWidth\", 12).attr(\"markerHeight\", 12).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 0 0 L 10 5 L 0 10 z\").attr(\"class\", \"arrowMarkerPath\").style(\"stroke-width\", 1).style(\"stroke-dasharray\", \"1,0\");\n elem.append(\"marker\").attr(\"id\", type + \"-pointStart\").attr(\"class\", \"marker \" + type).attr(\"viewBox\", \"0 0 10 10\").attr(\"refX\", 0).attr(\"refY\", 5).attr(\"markerUnits\", \"userSpaceOnUse\").attr(\"markerWidth\", 12).attr(\"markerHeight\", 12).attr(\"orient\", \"auto\").append(\"path\").attr(\"d\", \"M 0 5 L 10 10 L 10 0 z\").attr(\"class\", \"arrowMarkerPath\").style(\"stroke-width\", 1).style(\"stroke-dasharray\", \"1,0\");\n};\nconst circle$1 = (elem, type) => {\n elem.append(\"marker\").attr(\"id\", type + \"-circleEnd\").attr(\"class\", \"marker \" + type).attr(\"viewBox\", \"0 0 10 10\").attr(\"refX\", 11).attr(\"refY\", 5).attr(\"markerUnits\", \"userSpaceOnUse\").attr(\"markerWidth\", 11).attr(\"markerHeight\", 11).attr(\"orient\", \"auto\").append(\"circle\").attr(\"cx\", \"5\").attr(\"cy\Line truncated
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
import{c as V,s as xt,g as Rt,b as Ot,a as bt,v as Nt,x as Tt,m as At,l as et,z as Mt,h as st,y as vt,i as Dt,a5 as It,a7 as wt}from"./index-jpNTxDe4.js";import{G as St,l as Lt}from"./layout-ewywu0M6.js";import{l as Bt}from"./line-reZX-DPl.js";import"./index-2K3MavtT.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";const Ct=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Pt(t){return typeof t=="string"&&Ct.test(t)}const T=[];for(let t=0;t<256;++t)T.push((t+256).toString(16).slice(1));function Yt(t,r=0){return T[t[r+0]]+T[t[r+1]]+T[t[r+2]]+T[t[r+3]]+"-"+T[t[r+4]]+T[t[r+5]]+"-"+T[t[r+6]]+T[t[r+7]]+"-"+T[t[r+8]]+T[t[r+9]]+"-"+T[t[r+10]]+T[t[r+11]]+T[t[r+12]]+T[t[r+13]]+T[t[r+14]]+T[t[r+15]]}function Zt(t){if(!Pt(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}function Ft(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e<t.length;++e)r.push(t.charCodeAt(e));return r}const Wt="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Vt="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Ut(t,r,e){function n(s,p,f,o){var c;if(typeof s=="string"&&(s=Ft(s)),typeof p=="string"&&(p=Zt(p)),((c=p)===null||c===void 0?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let _=new Uint8Array(16+s.length);if(_.set(p),_.set(s,p.length),_=e(_),_[6]=_[6]&15|r,_[8]=_[8]&63|128,f){o=o||0;for(let E=0;E<16;++E)f[o+E]=_[E];return f}return Yt(_)}try{n.name=t}catch{}return n.DNS=Wt,n.URL=Vt,n}function zt(t,r,e,n){switch(t){case 0:return r&e^~r&n;case 1:return r^e^n;case 2:return r&e^r&n^e&n;case 3:return r^e^n}}function ot(t,r){return t<<r|t>>>32-r}function Ht(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const f=unescape(encodeURIComponent(t));t=[];for(let o=0;o<f.length;++o)t.push(f.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const n=t.length/4+2,s=Math.ceil(n/16),p=new Array(s);for(let f=0;f<s;++f){const o=new Uint32Array(16);for(let c=0;c<16;++c)o[c]=t[f*64+c*4]<<24|t[f*64+c*4+1]<<16|t[f*64+c*4+2]<<8|t[f*64+c*4+3];p[f]=o}p[s-1][14]=(t.length-1)*8/Math.pow(2,32),p[s-1][14]=Math.floor(p[s-1][14]),p[s-1][15]=(t.length-1)*8&4294967295;for(let f=0;f<s;++f){const o=new Uint32Array(80);for(let y=0;y<16;++y)o[y]=p[f][y];for(let y=16;y<80;++y)o[y]=ot(o[y-3]^o[y-8]^o[y-14]^o[y-16],1);let c=e[0],_=e[1],E=e[2],g=e[3],O=e[4];for(let y=0;y<80;++y){const A=Math.floor(y/20),Y=ot(c,5)+zt(A,_,E,g)+O+r[A]+o[y]>>>0;O=g,g=E,E=ot(_,30)>>>0,_=c,c=Y}e[0]=e[0]+c>>>0,e[1]=e[1]+_>>>0,e[2]=e[2]+E>>>0,e[3]=e[3]+g>>>0,e[4]=e[4]+O>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}const Gt=Ut("v5",80,Ht),Kt=Gt;var ct=function(){var t=function(M,a,l,d){for(l=l||{},d=M.length;d--;l[M[d]]=a);return l},r=[1,2],e=[1,5],n=[6,9,11,23,25,27,29,30,31,52],s=[1,17],p=[1,18],f=[1,19],o=[1,20],c=[1,21],_=[1,22],E=[1,25],g=[1,30],O=[1,31],y=[1,32],A=[1,33],Y=[1,34],U=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,48,52],X=[1,46],w=[30,31,49,50],N=[4,6,9,11,23,25,27,29,30,31,52],v=[44,45,46,47,48],k=[22,37],x=[1,66],P=[1,65],Z=[22,37,39,41],I={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyTypeList:35,attributeComment:36,ATTRIBUTE_WORD:37,attributeKeyType:38,COMMA:39,ATTRIBUTE_KEY:40,COMMENT:41,cardinality:42,relType:43,ZERO_OR_ONE:44,ZERO_OR_MORE:45,ONE_OR_MORE:46,ONLY_ONE:47,MD_PARENT:48,NON_IDENTIFYING:49,IDENTIFYING:50,WORD:51,open_directive:52,type_directive:53,arg_directive:54,close_directive:55,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:"ENTITY_NAME",37:"ATTRIBUTE_WORD",39:"COMMA",40:"ATTRIBUTE_KEY",41:"COMMENT",44:"ZERO_OR_ONE",45:"ZERO_OR_MORE",46:"ONE_OR_MORE"Line truncated
|
|
||||||
`+b.showPosition()+`
|
|
||||||
Expecting `+tt.join(", ")+", got '"+(this.terminals_[D]||D)+"'":nt="Parse error on line "+(q+1)+": Unexpected "+(D==dt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(nt,{text:b.match,token:this.terminals_[D]||D,line:b.yylineno,loc:it,expected:tt})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+D);switch(L[0]){case 1:d.push(D),m.push(b.yytext),i.push(b.yylloc),d.push(L[1]),D=null,ht=b.yyleng,h=b.yytext,q=b.yylineno,it=b.yylloc;break;case 2:if(F=this.productions_[L[1]][1],K.$=m[m.length-F],K._$={first_line:i[i.length-(F||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(F||1)].first_column,last_column:i[i.length-1].last_column},gt&&(K._$.range=[i[i.length-(F||1)].range[0],i[i.length-1].range[1]]),at=this.performAction.apply(K,[h,ht,q,H.yy,L[1],m,i].concat(mt)),typeof at<"u")return at;F&&(d=d.slice(0,-1*F*2),m=m.slice(0,-1*F),i=i.slice(0,-1*F)),d.push(this.productions_[L[1]][0]),m.push(K.$),i.push(K._$),ut=Q[d[d.length-2]][d[d.length-1]],d.push(ut);break;case 3:return!0}}return!0}},z=function(){var M={EOF:1,parseError:function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},setInput:function(a,l){return this.yy=l||this.yy||{},this._input=a,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},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var l=a.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var l=a.length,d=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;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),d.length-1&&(this.yylineno-=d.length-1);var m=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:d?(d.length===u.length?this.yylloc.first_column:0)+u[u.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),l=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
||||||
`+l+"^"},test_match:function(a,l){var d,u,m;if(this.options.backtrack_lexer&&(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(m.yylloc.range=this.yylloc.range.slice(0))),u=a[0].match(/(?:\r\n?|\n).*/g),u&&(this.yylineno+=u.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:u?u[u.length-1].length-u[u.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],d=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),d)return d;if(this._backtrack){for(var i in m)this[i]=m[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,l,d,u;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),i=0;i<m.length;i++)if(d=this._input.match(this.rules[m[i]]),d&&(!l||d[0].length>l[0].length)){if(l=d,u=i,this.options.backtrack_lexer){if(a=this.test_match(d,m[i]),a!==!1)return a;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(a=this.test_match(l,m[u]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
||||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var l=this.next();return l||this.lex()},begin:function(l){this.conditionStack.push(l)},popState:function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},pushState:function(l){this.begin(l)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(l,d,u,m){switch(u){case 0:return this.begin("acc_title"),25;case 1:return this.popState(),"acc_title_value";case 2:return this.begin("acc_descr"),27;case 3:return this.popState(),"acc_descr_value";case 4:this.begin("acc_descr_multiline");break;case 5:this.popState();break;case 6:return"acc_descr_multiline_value";case 7:return this.begin("open_directive"),52;case 8:return this.begin("type_directive"),53;case 9:return this.popState(),this.begin("arg_directive"),15;case 10:return this.popState(),this.popState(),55;case 11:return 54;case 12:return 11;case 13:break;case 14:return 9;case 15:return 31;case 16:return 51;case 17:return 4;case 18:return this.begin("block"),20;case 19:return 39;case 20:break;case 21:return 40;case 22:return 37;case 23:return 37;case 24:return 41;case 25:break;case 26:return this.popState(),22;case 27:return d.yytext[0];case 28:return 44;case 29:return 46;case 30:return 46;case 31:return 46;case 32:return 44;case 33:return 44;case 34:return 45;case 35:return 45;case 36:return 45;case 37:return 45;case 38:return 45;case 39:return 46;case 40:return 45;case 41:return 46;case 42:return 47;case 43:return 47;case 44:return 47;case 45:return 47;case 46:return 44;case 47:return 45;case 48:return 46;case 49:return 48;case 50:return 49;case 51:return 50;case 52:return 50;case 53:return 49;case 54:return 49;case 55:return 49;case 56:return 30;case 57:return d.yytext[0];case 58:return 6}},rules:[/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"%\r\n\v\b\\]+")/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:,)/i,/^(?:\s+)/i,/^(?:\b((?:PK)|(?:FK)|(?:UK))\b)/i,/^(?:(.*?)[~](.*?)*[~])/i,/^(?:[A-Za-z_][A-Za-z0-9\-_\[\]\(\)]*)/i,/^(?:"[^"]*")/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:one or zero\b)/i,/^(?:one or more\b)/i,/^(?:one or many\b)/i,/^(?:1\+)/i,/^(?:\|o\b)/i,/^(?:zero or one\b)/i,/^(?:zero or more\b)/i,/^(?:zero or many\b)/i,/^(?:0\+)/i,/^(?:\}o\b)/i,/^(?:many\(0\))/i,/^(?:many\(1\))/i,/^(?:many\b)/i,/^(?:\}\|)/i,/^(?:one\b)/i,/^(?:only one\b)/i,/^(?:1\b)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\s*u\b)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:to\b)/i,/^(?:optionally to\b)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[19,20,21,22,23,24,25,26,27],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58],inclusive:!0}}};return M}();I.lexer=z;function S(){this.yy={}}return S.prototype=I,I.Parser=S,new S}();ct.parser=ct;const Xt=ct;let $={},lt=[];const Qt={ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE",MD_PARENT:"MD_PARENT"},$t={NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},jt=function(t,r,e){At.parseDirective(this,t,r,e)},pt=function(t){return $[t]===void 0&&($[t]={attributes:[]},et.info("Added new entity :",t)),$[t]},qt=()=>$,Jt=function(t,r){let e=pt(t),n;for(n=r.length-1;n>=0;n--)e.attributes.push(r[n]),et.debug("Added attribute ",r[n].attributeName)},te=function(t,r,e,n){let s={entityA:t,roleA:r,entityB:e,relSpec:n};lt.push(s),et.debug("Added new relationship :",s)},ee=()=>lt,re=function(){$={},lt=[],Mt()},ie={Cardinality:Qt,Identification:$t,parseDirective:jt,getConfig:()=>V().er,addEntity:pt,addAttributes:Jt,getEntities:qt,addRelationship:te,getRelationships:ee,clear:re,setAccTitle:xt,getAccTitle:Rt,setAccDescription:Ot,getAccDescription:bt,setDiagramTitle:Nt,getDiagramTitle:Tt},B={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_EN
Line truncated
|
|
||||||
.entityBox {
|
|
||||||
fill: ${t.mainBkg};
|
|
||||||
stroke: ${t.nodeBorder};
|
|
||||||
}
|
|
||||||
|
|
||||||
.attributeBoxOdd {
|
|
||||||
fill: ${t.attributeBackgroundColorOdd};
|
|
||||||
stroke: ${t.nodeBorder};
|
|
||||||
}
|
|
||||||
|
|
||||||
.attributeBoxEven {
|
|
||||||
fill: ${t.attributeBackgroundColorEven};
|
|
||||||
stroke: ${t.nodeBorder};
|
|
||||||
}
|
|
||||||
|
|
||||||
.relationshipLabelBox {
|
|
||||||
fill: ${t.tertiaryColor};
|
|
||||||
opacity: 0.7;
|
|
||||||
background-color: ${t.tertiaryColor};
|
|
||||||
rect {
|
|
||||||
opacity: 0.5;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.relationshipLine {
|
|
||||||
stroke: ${t.lineColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.entityTitleText {
|
|
||||||
text-anchor: middle;
|
|
||||||
font-size: 18px;
|
|
||||||
fill: ${t.textColor};
|
|
||||||
}
|
|
||||||
#MD_PARENT_START {
|
|
||||||
fill: #f5f5f5 !important;
|
|
||||||
stroke: ${t.lineColor} !important;
|
|
||||||
stroke-width: 1;
|
|
||||||
}
|
|
||||||
#MD_PARENT_END {
|
|
||||||
fill: #f5f5f5 !important;
|
|
||||||
stroke: ${t.lineColor} !important;
|
|
||||||
stroke-width: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
`,Ee=_e,be={parser:Xt,db:ie,renderer:pe,styles:Ee};export{be as diagram};
|
|
||||||
//# sourceMappingURL=erDiagram-f6946109-z4VASuEu.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"erDiagram-f6946109-z4VASuEu.js","sources":["../../../node_modules/uuid/dist/esm-browser/regex.js","../../../node_modules/uuid/dist/esm-browser/validate.js","../../../node_modules/uuid/dist/esm-browser/stringify.js","../../../node_modules/uuid/dist/esm-browser/parse.js","../../../node_modules/uuid/dist/esm-browser/v35.js","../../../node_modules/uuid/dist/esm-browser/sha1.js","../../../node_modules/uuid/dist/esm-browser/v5.js","../../../node_modules/mermaid/dist/erDiagram-f6946109.js"],"sourcesContent":["export default /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;","import REGEX from './regex.js';\n\nfunction validate(uuid) {\n return typeof uuid === 'string' && REGEX.test(uuid);\n}\n\nexport default validate;","import validate from './validate.js';\n/**\n * Convert array of 16 byte values to UUID string format of the form:\n * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n */\n\nconst byteToHex = [];\n\nfor (let i = 0; i < 256; ++i) {\n byteToHex.push((i + 0x100).toString(16).slice(1));\n}\n\nexport function unsafeStringify(arr, offset = 0) {\n // Note: Be careful editing this code! It's been tuned for performance\n // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434\n return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];\n}\n\nfunction stringify(arr, offset = 0) {\n const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one\n // of the following:\n // - One or more input array values don't map to a hex octet (leading to\n // \"undefined\" in the uuid)\n // - Invalid input values for the RFC `version` or `variant` fields\n\n if (!validate(uuid)) {\n throw TypeError('Stringified UUID is invalid');\n }\n\n return uuid;\n}\n\nexport default stringify;","import validate from './validate.js';\n\nfunction parse(uuid) {\n if (!validate(uuid)) {\n throw TypeError('Invalid UUID');\n }\n\n let v;\n const arr = new Uint8Array(16); // Parse ########-....-....-....-............\n\n arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;\n arr[1] = v >>> 16 & 0xff;\n arr[2] = v >>> 8 & 0xff;\n arr[3] = v & 0xff; // Parse ........-####-....-....-............\n\n arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;\n arr[5] = v & 0xff; // Parse ........-....-####-....-............\n\n arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;\n arr[7] = v & 0xff; // Parse ........-....-....-####-............\n\n arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;\n arr[9] = v & 0xff; // Parse ........-....-....-....-############\n // (Use \"/\" to avoid 32-bit truncation when bit-shifting high-order bytes)\n\n arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 0x10000000000 & 0xff;\n arr[11] = v / 0x100000000 & 0xff;\n arr[12] = v >>> 24 & 0xff;\n arr[13] = v >>> 16 & 0xff;\n arr[14] = v >>> 8 & 0xff;\n arr[15] = v & 0xff;\n return arr;\n}\n\nexport default parse;","import { unsafeStringify } from './stringify.js';\nimport parse from './parse.js';\n\nfunction stringToBytes(str) {\n str = unescape(encodeURIComponent(str)); // UTF8 escape\n\n const bytes = [];\n\n for (let i = 0; i < str.length; ++i) {\n bytes.push(str.charCodeAt(i));\n }\n\n return bytes;\n}\n\nexport const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8';\nexport const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8';\nexport default function v35(name, version, hashfunc) {\n function generateUUID(value, namespace, buf, offset) {\n var _namespace;\n\n if (typeof value === 'string') {\n value = stringToBytes(value);\n }\n\n if (typeof namespace === 'string') {\n namespace = parse(namespace);\n }\n\n if (((_namespace = namespace) === null || _namespace === void 0 ? void 0 : _namespace.length) !== 16) {\n throw TypeError('Namespace must be array-like (16 iterable integer values, 0-255)');\n } // Compute hash of namespace and value, Per 4.3\n // Future: Use spread syntax when supported on all platforms, e.g. `bytes =\n // hashfunc([...namespace, ... value])`\n\n\n let bytes = new Uint8Array(16 + value.length);\n bytes.set(namespace);\n bytes.set(value, namespace.length);\n bytes = hashfunc(bytes);\n bytes[6] = bytes[6] & 0x0f | version;\n bytes[8] = bytes[8] & 0x3f | 0x80;\n\n if (buf) {\n offset = offset || 0;\n\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = bytes[i];\n }\n\n return buf;\n }\n\n return unsLine truncated
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
const p=async e=>{const i=await e.getFile();return i.handle=e,i};var l=async(e=[{}])=>{Array.isArray(e)||(e=[e]);const i=[];e.forEach((a,c)=>{i[c]={description:a.description||"",accept:{}},a.mimeTypes?a.mimeTypes.map(s=>{i[c].accept[s]=a.extensions||[]}):i[c].accept["*/*"]=a.extensions||[]});const n=await window.showOpenFilePicker({id:e[0].id,startIn:e[0].startIn,types:i,multiple:e[0].multiple||!1,excludeAcceptAllOption:e[0].excludeAcceptAllOption||!1}),t=await Promise.all(n.map(p));return e[0].multiple?t:t[0]};export{l as default};
|
|
||||||
//# sourceMappingURL=file-open-002ab408-YYr_q30i.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"file-open-002ab408-YYr_q30i.js","sources":["../../../node_modules/browser-fs-access/dist/file-open-002ab408.js"],"sourcesContent":["const e=async e=>{const t=await e.getFile();return t.handle=e,t};var t=async(t=[{}])=>{Array.isArray(t)||(t=[t]);const i=[];t.forEach((e,t)=>{i[t]={description:e.description||\"\",accept:{}},e.mimeTypes?e.mimeTypes.map(a=>{i[t].accept[a]=e.extensions||[]}):i[t].accept[\"*/*\"]=e.extensions||[]});const a=await window.showOpenFilePicker({id:t[0].id,startIn:t[0].startIn,types:i,multiple:t[0].multiple||!1,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1}),c=await Promise.all(a.map(e));return t[0].multiple?c:c[0]};export{t as default};\n"],"names":["e","t","a","c"],"mappings":"AAAA,MAAMA,EAAE,MAAM,GAAG,CAAC,MAAMC,EAAE,MAAM,EAAE,QAAO,EAAG,OAAOA,EAAE,OAAO,EAAEA,CAAC,EAAK,IAACA,EAAE,MAAMA,EAAE,CAAC,EAAE,IAAI,CAAC,MAAM,QAAQA,CAAC,IAAIA,EAAE,CAACA,CAAC,GAAG,MAAM,EAAE,GAAGA,EAAE,QAAQ,CAACD,EAAEC,IAAI,CAAC,EAAEA,CAAC,EAAE,CAAC,YAAYD,EAAE,aAAa,GAAG,OAAO,EAAE,EAAEA,EAAE,UAAUA,EAAE,UAAU,IAAIE,GAAG,CAAC,EAAED,CAAC,EAAE,OAAOC,CAAC,EAAEF,EAAE,YAAY,CAAA,CAAE,CAAC,EAAE,EAAEC,CAAC,EAAE,OAAO,KAAK,EAAED,EAAE,YAAY,EAAE,CAAC,EAAE,MAAME,EAAE,MAAM,OAAO,mBAAmB,CAAC,GAAGD,EAAE,CAAC,EAAE,GAAG,QAAQA,EAAE,CAAC,EAAE,QAAQ,MAAM,EAAE,SAASA,EAAE,CAAC,EAAE,UAAU,GAAG,uBAAuBA,EAAE,CAAC,EAAE,wBAAwB,EAAE,CAAC,EAAEE,EAAE,MAAM,QAAQ,IAAID,EAAE,IAAIF,CAAC,CAAC,EAAE,OAAOC,EAAE,CAAC,EAAE,SAASE,EAAEA,EAAE,CAAC,CAAC","x_google_ignoreList":[0]}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
var s=async(t=[{}])=>(Array.isArray(t)||(t=[t]),new Promise((c,l)=>{const e=document.createElement("input");e.type="file";const p=[...t.map(a=>a.mimeTypes||[]),...t.map(a=>a.extensions||[])].join();e.multiple=t[0].multiple||!1,e.accept=p||"";const n=a=>{typeof i=="function"&&i(),c(a)},i=t[0].legacySetup&&t[0].legacySetup(n,()=>i(l),e);e.addEventListener("change",()=>{n(e.multiple?Array.from(e.files):e.files[0])}),e.click()}));export{s as default};
|
|
||||||
//# sourceMappingURL=file-open-7c801643-DzelrtLq.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"file-open-7c801643-DzelrtLq.js","sources":["../../../node_modules/browser-fs-access/dist/file-open-7c801643.js"],"sourcesContent":["var e=async(e=[{}])=>(Array.isArray(e)||(e=[e]),new Promise((t,n)=>{const a=document.createElement(\"input\");a.type=\"file\";const i=[...e.map(e=>e.mimeTypes||[]),...e.map(e=>e.extensions||[])].join();a.multiple=e[0].multiple||!1,a.accept=i||\"\";const c=e=>{\"function\"==typeof l&&l(),t(e)},l=e[0].legacySetup&&e[0].legacySetup(c,()=>l(n),a);a.addEventListener(\"change\",()=>{c(a.multiple?Array.from(a.files):a.files[0])}),a.click()}));export{e as default};\n"],"names":["e","t","n","a","i","c","l"],"mappings":"AAAG,IAACA,EAAE,MAAMA,EAAE,CAAC,CAAA,CAAE,KAAK,MAAM,QAAQA,CAAC,IAAIA,EAAE,CAACA,CAAC,GAAG,IAAI,QAAQ,CAACC,EAAEC,IAAI,CAAC,MAAMC,EAAE,SAAS,cAAc,OAAO,EAAEA,EAAE,KAAK,OAAO,MAAMC,EAAE,CAAC,GAAGJ,EAAE,IAAIA,GAAGA,EAAE,WAAW,CAAA,CAAE,EAAE,GAAGA,EAAE,IAAIA,GAAGA,EAAE,YAAY,CAAE,CAAA,CAAC,EAAE,OAAOG,EAAE,SAASH,EAAE,CAAC,EAAE,UAAU,GAAGG,EAAE,OAAOC,GAAG,GAAG,MAAMC,EAAEL,GAAG,CAAa,OAAOM,GAAnB,YAAsBA,EAAC,EAAGL,EAAED,CAAC,CAAC,EAAEM,EAAEN,EAAE,CAAC,EAAE,aAAaA,EAAE,CAAC,EAAE,YAAYK,EAAE,IAAIC,EAAEJ,CAAC,EAAEC,CAAC,EAAEA,EAAE,iBAAiB,SAAS,IAAI,CAACE,EAAEF,EAAE,SAAS,MAAM,KAAKA,EAAE,KAAK,EAAEA,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAEA,EAAE,MAAO,CAAA,CAAC","x_google_ignoreList":[0]}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
var w=async(n,e={})=>{Array.isArray(e)&&(e=e[0]);const t=document.createElement("a");let r=n;"body"in n&&(r=await async function(s,u){const o=s.getReader(),i=new ReadableStream({start:l=>async function f(){return o.read().then(({done:b,value:p})=>{if(!b)return l.enqueue(p),f();l.close()})}()}),d=new Response(i),y=await d.blob();return o.releaseLock(),new Blob([y],{type:u})}(n.body,n.headers.get("content-type"))),t.download=e.fileName||"Untitled",t.href=URL.createObjectURL(await r);const c=()=>{typeof a=="function"&&a()},a=e.legacySetup&&e.legacySetup(c,()=>a(reject),t);return t.addEventListener("click",()=>{setTimeout(()=>URL.revokeObjectURL(t.href),3e4),c()}),t.click(),null};export{w as default};
|
|
||||||
//# sourceMappingURL=file-save-3189631c-fOa8IYo3.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"file-save-3189631c-fOa8IYo3.js","sources":["../../../node_modules/browser-fs-access/dist/file-save-3189631c.js"],"sourcesContent":["var e=async(e,t={})=>{Array.isArray(t)&&(t=t[0]);const n=document.createElement(\"a\");let a=e;\"body\"in e&&(a=await async function(e,t){const n=e.getReader(),a=new ReadableStream({start:e=>async function t(){return n.read().then(({done:n,value:a})=>{if(!n)return e.enqueue(a),t();e.close()})}()}),r=new Response(a),c=await r.blob();return n.releaseLock(),new Blob([c],{type:t})}(e.body,e.headers.get(\"content-type\"))),n.download=t.fileName||\"Untitled\",n.href=URL.createObjectURL(await a);const r=()=>{\"function\"==typeof c&&c()},c=t.legacySetup&&t.legacySetup(r,()=>c(reject),n);return n.addEventListener(\"click\",()=>{setTimeout(()=>URL.revokeObjectURL(n.href),3e4),r()}),n.click(),null};export{e as default};\n"],"names":["e","t","n","a","r","c"],"mappings":"AAAG,IAACA,EAAE,MAAMA,EAAEC,EAAE,CAAA,IAAK,CAAC,MAAM,QAAQA,CAAC,IAAIA,EAAEA,EAAE,CAAC,GAAG,MAAMC,EAAE,SAAS,cAAc,GAAG,EAAE,IAAIC,EAAEH,EAAE,SAASA,IAAIG,EAAE,MAAM,eAAeH,EAAEC,EAAE,CAAC,MAAMC,EAAEF,EAAE,UAAS,EAAGG,EAAE,IAAI,eAAe,CAAC,MAAMH,GAAG,eAAeC,GAAG,CAAC,OAAOC,EAAE,KAAM,EAAC,KAAK,CAAC,CAAC,KAAKA,EAAE,MAAMC,CAAC,IAAI,CAAC,GAAG,CAACD,EAAE,OAAOF,EAAE,QAAQG,CAAC,EAAEF,EAAG,EAACD,EAAE,MAAO,CAAA,CAAC,CAAC,EAAG,CAAA,CAAC,EAAEI,EAAE,IAAI,SAASD,CAAC,EAAEE,EAAE,MAAMD,EAAE,KAAI,EAAG,OAAOF,EAAE,YAAW,EAAG,IAAI,KAAK,CAACG,CAAC,EAAE,CAAC,KAAKJ,CAAC,CAAC,CAAC,EAAED,EAAE,KAAKA,EAAE,QAAQ,IAAI,cAAc,CAAC,GAAGE,EAAE,SAASD,EAAE,UAAU,WAAWC,EAAE,KAAK,IAAI,gBAAgB,MAAMC,CAAC,EAAE,MAAMC,EAAE,IAAI,CAAa,OAAOC,GAAnB,YAAsBA,EAAC,CAAE,EAAEA,EAAEJ,EAAE,aAAaA,EAAE,YAAYG,EAAE,IAAIC,EAAE,MAAM,EAAEH,CAAC,EAAE,OAAOA,EAAE,iBAAiB,QAAQ,IAAI,CAAC,WAAW,IAAI,IAAI,gBAAgBA,EAAE,IAAI,EAAE,GAAG,EAAEE,EAAG,CAAA,CAAC,EAAEF,EAAE,MAAK,EAAG,IAAI","x_google_ignoreList":[0]}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
var y=async(e,t=[{}],s=null,p=!1,o=null)=>{Array.isArray(t)||(t=[t]),t[0].fileName=t[0].fileName||"Untitled";const n=[];let a=null;if(e instanceof Blob&&e.type?a=e.type:e.headers&&e.headers.get("content-type")&&(a=e.headers.get("content-type")),t.forEach((i,l)=>{n[l]={description:i.description||"",accept:{}},i.mimeTypes?(l===0&&a&&i.mimeTypes.push(a),i.mimeTypes.map(d=>{n[l].accept[d]=i.extensions||[]})):a&&(n[l].accept[a]=i.extensions||[])}),s)try{await s.getFile()}catch(i){if(s=null,p)throw i}const c=s||await window.showSaveFilePicker({suggestedName:t[0].fileName,id:t[0].id,startIn:t[0].startIn,types:n,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1});!s&&o&&o();const r=await c.createWritable();return"stream"in e?(await e.stream().pipeTo(r),c):"body"in e?(await e.body.pipeTo(r),c):(await r.write(await e),await r.close(),c)};export{y as default};
|
|
||||||
//# sourceMappingURL=file-save-745eba88-h9NxcJsg.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"file-save-745eba88-h9NxcJsg.js","sources":["../../../node_modules/browser-fs-access/dist/file-save-745eba88.js"],"sourcesContent":["var e=async(e,t=[{}],a=null,i=!1,n=null)=>{Array.isArray(t)||(t=[t]),t[0].fileName=t[0].fileName||\"Untitled\";const s=[];let c=null;if(e instanceof Blob&&e.type?c=e.type:e.headers&&e.headers.get(\"content-type\")&&(c=e.headers.get(\"content-type\")),t.forEach((e,t)=>{s[t]={description:e.description||\"\",accept:{}},e.mimeTypes?(0===t&&c&&e.mimeTypes.push(c),e.mimeTypes.map(a=>{s[t].accept[a]=e.extensions||[]})):c&&(s[t].accept[c]=e.extensions||[])}),a)try{await a.getFile()}catch(e){if(a=null,i)throw e}const r=a||await window.showSaveFilePicker({suggestedName:t[0].fileName,id:t[0].id,startIn:t[0].startIn,types:s,excludeAcceptAllOption:t[0].excludeAcceptAllOption||!1});!a&&n&&n();const l=await r.createWritable();if(\"stream\"in e){const t=e.stream();return await t.pipeTo(l),r}return\"body\"in e?(await e.body.pipeTo(l),r):(await l.write(await e),await l.close(),r)};export{e as default};\n"],"names":["e","a","i","n","s","c","t","r","l"],"mappings":"AAAG,IAACA,EAAE,MAAM,EAAE,EAAE,CAAC,CAAA,CAAE,EAAEC,EAAE,KAAKC,EAAE,GAAGC,EAAE,OAAO,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,WAAW,MAAMC,EAAE,CAAA,EAAG,IAAIC,EAAE,KAAK,GAAG,aAAa,MAAM,EAAE,KAAKA,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,IAAI,cAAc,IAAIA,EAAE,EAAE,QAAQ,IAAI,cAAc,GAAG,EAAE,QAAQ,CAACL,EAAEM,IAAI,CAACF,EAAEE,CAAC,EAAE,CAAC,YAAYN,EAAE,aAAa,GAAG,OAAO,CAAE,CAAA,EAAEA,EAAE,WAAeM,IAAJ,GAAOD,GAAGL,EAAE,UAAU,KAAKK,CAAC,EAAEL,EAAE,UAAU,IAAIC,GAAG,CAACG,EAAEE,CAAC,EAAE,OAAOL,CAAC,EAAED,EAAE,YAAY,CAAE,CAAA,CAAC,GAAGK,IAAID,EAAEE,CAAC,EAAE,OAAOD,CAAC,EAAEL,EAAE,YAAY,CAAA,EAAG,CAAC,EAAEC,EAAE,GAAG,CAAC,MAAMA,EAAE,QAAS,CAAA,OAAOD,EAAE,CAAC,GAAGC,EAAE,KAAKC,EAAE,MAAMF,CAAC,CAAC,MAAMO,EAAEN,GAAG,MAAM,OAAO,mBAAmB,CAAC,cAAc,EAAE,CAAC,EAAE,SAAS,GAAG,EAAE,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,EAAE,QAAQ,MAAMG,EAAE,uBAAuB,EAAE,CAAC,EAAE,wBAAwB,EAAE,CAAC,EAAE,CAACH,GAAGE,GAAGA,IAAI,MAAMK,EAAE,MAAMD,EAAE,eAAgB,EAAC,MAAG,WAAW,GAA6B,MAAlB,EAAE,SAAwB,OAAOC,CAAC,EAAED,GAAQ,SAAS,GAAG,MAAM,EAAE,KAAK,OAAOC,CAAC,EAAED,IAAI,MAAMC,EAAE,MAAM,MAAM,CAAC,EAAE,MAAMA,EAAE,MAAO,EAACD,EAAE","x_google_ignoreList":[0]}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
import{c as w2,u as Ne,s as Oe,g as Pe,a as we,b as Ue,v as Me,x as Ge,m as Ke,l as U2,y as M2,z as je,j as We,h as n2}from"./index-jpNTxDe4.js";var O2=function(){var e=function(H1,a,o,T){for(o=o||{},T=H1.length;T--;o[H1[T]]=a);return o},u=[1,9],i=[1,7],n=[1,6],c=[1,8],_=[1,20,21,22,23,38,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],B=[2,10],u1=[1,20],H=[1,21],s1=[1,22],f1=[1,23],Y1=[1,30],Q1=[1,32],X1=[1,33],s2=[1,34],q=[1,62],c1=[1,48],m1=[1,52],o2=[1,36],l2=[1,37],h2=[1,38],A2=[1,39],f2=[1,40],v1=[1,56],V1=[1,63],x1=[1,51],R1=[1,53],L1=[1,55],I1=[1,59],N1=[1,60],p2=[1,41],d2=[1,42],E2=[1,43],b2=[1,44],O1=[1,61],P1=[1,50],w1=[1,54],U1=[1,57],M1=[1,58],G1=[1,49],j2=[1,66],u2=[1,71],Q=[1,20,21,22,23,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],p1=[1,75],d1=[1,74],E1=[1,76],k2=[20,21,23,81,82],i1=[1,99],l=[1,104],h=[1,107],A=[1,108],r1=[1,101],f=[1,106],p=[1,109],n1=[1,102],d=[1,114],E=[1,113],b=[1,103],k=[1,105],D=[1,110],g=[1,111],F=[1,112],C=[1,115],S2=[20,21,22,23,81,82],t1=[20,21,22,23,53,81,82],Z=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,92,96,106,107,110,112,113,123,124,125,126,127,128],Y=[20,21,23],W2=[20,21,23,52,66,67,81,82,92,96,106,107,110,112,113,123,124,125,126,127,128],m2=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],i2=[52,66,67,92,96,106,107,110,112,113,123,124,125,126,127,128],S=[1,150],m=[1,158],v=[1,159],V=[1,160],x=[1,161],R=[1,145],L=[1,146],J=[1,141],$=[1,142],I=[1,153],N=[1,154],O=[1,155],P=[1,156],w=[1,157],U=[1,162],M=[1,163],G=[1,148],K=[1,151],j=[1,147],W=[1,144],v2=[20,21,22,23,38,42,44,46,48,52,66,67,87,88,89,90,91,92,96,106,107,110,112,113,119,120,121,122,123,124,125,126,127,128],Y2=[1,166],$1=[20,21,22,23,26,52,66,67,92,106,107,110,112,113,123,124,125,126,127,128],y=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,87,88,89,90,91,92,93,96,106,107,110,112,113,114,115,123,124,125,126,127,128],z2=[12,21,22,24],H2=[22,107],b1=[1,251],k1=[1,246],D1=[1,247],g1=[1,255],F1=[1,252],C1=[1,249],_1=[1,248],B1=[1,250],T1=[1,253],y1=[1,254],S1=[1,256],z1=[1,274],Q2=[20,21,23,107],o1=[20,21,22,23,66,67,87,103,106,107,110,111,112,113,114],V2={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,"(-":59,"-)":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,MD_STR:85,keywords:86,STYLE:87,LINKSTYLE:88,CLASSDEF:89,CLASS:90,CLICK:91,DOWN:92,UP:93,textNoTags:94,textNoTagsToken:95,DEFAULT:96,stylesOpt:97,alphaNum:98,CALLBACKNAME:99,CALLBACKARGS:100,HREF:101,LINK_TARGET:102,HEX:103,numList:104,INTERPOLATE:105,NUM:106,COMMA:107,style:108,styleComponent:109,MINUS:110,UNIT:111,BRKT:112,DOT:113,PCT:114,TAGSTART:115,alphaNumToken:116,idStringToken:117,alphaNumStatement:118,direction_tb:119,direction_bt:120,direction_rl:121,direction_lr:122,PUNCTUATION:123,UNICODE_TEXT:124,PLUS:125,EQUALS:126,MULT:127,UNDERSCORE:128,graphCodeTokens:129,ARROW_CROSS:130,ARROW_POINT:131,ARROW_CIRCLE:132,ARROW_OPEN:133,QUOTE:134,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",44:"acc_title",45:"acc_title_value",46:"acc_descr",47:"acc_descr_value",48:"acc_descr_multiline_value",52:"AMP",53:"STYLE_SEPARATOR",55:"DOUBLECIRCLESTART",56:"DOUBLECIRCLEEND",57:"PS",58:"PE",59:"(-",60:"-)",61:"STADIUMSTART",62:"STADIUMEND",63:"SUBROUTINESTART",64:"SUBROUTINEEND",65:"VERTEX_WITH_PROPS_START",66:"ALPHA",67:"COLON",68:"PIPE",69:"CYLINDERSTART",70:"CYLINDEREND",71:"DIAMOND_START",72:"DIAMOND_STOP",73:"TAGEND",74:"TRAPSTART",75:"TRAPEND",76:"INVTRAPSTART",77:"INVTRAPEND",80:"TESTSTR",81:"START_LINK",82:"LINK",84:"STR",85:"MD_STR",87:"STYLE",88:"LINKSTYLE",89:"CLASSDEF",90:"CLASS",91:"CLICK",92:Line truncated
|
|
||||||
`+e1.showPosition()+`
|
|
||||||
Expecting `+g2.join(", ")+", got '"+(this.terminals_[a1]||a1)+"'":N2="Parse error on line "+(l1+1)+": Unexpected "+(a1==q2?"end of input":"'"+(this.terminals_[a1]||a1)+"'"),this.parseError(N2,{text:e1.match,token:this.terminals_[a1]||a1,line:e1.yylineno,loc:L2,expected:g2})}if(h1[0]instanceof Array&&h1.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Z1+", token: "+a1);switch(h1[0]){case 1:T.push(a1),X.push(e1.yytext),t.push(e1.yylloc),T.push(h1[1]),a1=null,X2=e1.yyleng,s=e1.yytext,l1=e1.yylineno,L2=e1.yylloc;break;case 2:if(K1=this.productions_[h1[1]][1],e2.$=X[X.length-K1],e2._$={first_line:t[t.length-(K1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(K1||1)].first_column,last_column:t[t.length-1].last_column},Le&&(e2._$.range=[t[t.length-(K1||1)].range[0],t[t.length-1].range[1]]),I2=this.performAction.apply(e2,[s,X2,l1,q1.yy,h1[1],X,t].concat(Re)),typeof I2<"u")return I2;K1&&(T=T.slice(0,-1*K1*2),X=X.slice(0,-1*K1),t=t.slice(0,-1*K1)),T.push(this.productions_[h1[1]][0]),X.push(e2.$),t.push(e2._$),Z2=r2[T[T.length-2]][T[T.length-1]],T.push(Z2);break;case 3:return!0}}return!0}},Ve=function(){var H1={EOF:1,parseError:function(o,T){if(this.yy.parser)this.yy.parser.parseError(o,T);else throw new Error(o)},setInput:function(a,o){return this.yy=o||this.yy||{},this._input=a,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},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var o=a.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var o=a.length,T=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),T.length-1&&(this.yylineno-=T.length-1);var X=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:T?(T.length===r.length?this.yylloc.first_column:0)+r[r.length-T.length].length-T[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[X[0],X[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),o=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
||||||
`+o+"^"},test_match:function(a,o){var T,r,X;if(this.options.backtrack_lexer&&(X={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(X.yylloc.range=this.yylloc.range.slice(0))),r=a[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],T=this.performAction.call(this,this.yy,this,o,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),T)return T;if(this._backtrack){for(var t in X)this[t]=X[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,o,T,r;this._more||(this.yytext="",this.match="");for(var X=this._currentRules(),t=0;t<X.length;t++)if(T=this._input.match(this.rules[X[t]]),T&&(!o||T[0].length>o[0].length)){if(o=T,r=t,this.options.backtrack_lexer){if(a=this.test_match(T,X[t]),a!==!1)return a;if(this._backtrack){o=!1;continue}else return!1}else if(!this.options.flex)break}return o?(a=this.test_match(o,X[r]),a!==!1?a:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
||||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return o||this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){var o=this.conditionStack.length-1;return o>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(o){return o=this.conditionStack.length-1-Math.abs(o||0),o>=0?this.conditionStack[o]:"INITIAL"},pushState:function(o){this.begin(o)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(o,T,r,X){switch(r){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:return this.begin("acc_title"),44;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),46;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:this.begin("md_string");break;case 13:return"MD_STR";case 14:this.popState();break;case 15:this.begin("string");break;case 16:this.popState();break;case 17:return"STR";case 18:return 87;case 19:return 96;case 20:return 88;case 21:return 105;case 22:return 89;case 23:return 90;case 24:this.begin("href");break;case 25:this.popState();break;case 26:return 101;case 27:this.begin("callbackname");break;case 28:this.popState();break;case 29:this.popState(),this.begin("callbackargs");break;case 30:return 99;case 31:this.popState();break;case 32:return 100;case 33:this.begin("click");break;case 34:this.popState();break;case 35:return 91;case 36:return o.lex.firstGraph()&&this.begin("dir"),24;case 37:return o.lex.firstGraph()&&this.begin("dir"),24;case 38:return o.lex.firstGraph()&&this.begin("dir"),24;case 39:return 38;case 40:return 42;case 41:return 102;case 42:return 102;case 43:return 102;case 44:return 102;case 45:return this.popState(),25;case 46:return this.popState(),26;case 47:return this.popState(),26;case 48:return this.popState(),26;case 49:return this.popState(),26;case 50:return this.popState(),26;case 51:return this.popState(),26;case 52:return this.popState(),26;case 53:return this.popState(),26;case 54:return this.popState(),26;case 55:return this.popState(),26;case 56:return 119;case 57:return 120;case 58:return 121;case 59:return 122;case 60:return 106;case 61:return 112;case 62:return 53;case 63:return 67;case 64:return 52;case 65:return 20;case 66:return 107;case 67:return 127;case 68:return 82;case 69:return 82;case 70:return 82;case 71:return 82;case 72:return 81;case 73:return 81;case 74:return 81;case 75:return 59;case 76:return 60;case 77:return 61;case 78:return 62;case 79:return 63;case 80:return 64;case 81:return 65;case 82:return 69;case 83:return 70;case 84:return 55;case 85:return 56;case 86:return 110;case 87:return 113;case 88:return 128;case 89:return 125;case 90:return 114;case 91:return 126;case 92:return 126;case 93:return 115;case 94:return 73;case 95:return 93;case 96:return"SEP";case 97:return 92;case 98:return 66;case 99:return 75;case 100:return 74;case 101:return 77;case 102:return 76;case 103:return 123;case 104:return 124;case 105:return 68;case 106:return 57;case 107:return 58;case 108:return 40;case 109:return 41;case 110:return 71;case 111:return 72;case 112:return 134;case 113:return 21;case 114:return 22;case 115:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:href[\s]+["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:click[\s]+)/,/^(?:[\s\n])/,/^(?:[^\s\n]*)/,/^(?:flowchart-elk\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,Line truncated
|
|
||||||
//# sourceMappingURL=flowDb-6a57c1b4-o7QdmK-d.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"flowDb-6a57c1b4-o7QdmK-d.js","sources":["../../../node_modules/mermaid/dist/flowDb-6a57c1b4.js"],"sourcesContent":["import { select } from \"d3\";\nimport { G as defaultConfig, s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, r as setDiagramTitle, t as getDiagramTitle, c as getConfig, m as mermaidAPI, l as log, u as utils, v as clear$1, e as common } from \"./mermaid-b0ad2de1.js\";\nvar parser = function() {\n var o = function(k, v, o2, l) {\n for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)\n ;\n return o2;\n }, $V0 = [1, 9], $V1 = [1, 7], $V2 = [1, 6], $V3 = [1, 8], $V4 = [1, 20, 21, 22, 23, 38, 44, 46, 48, 52, 66, 67, 87, 88, 89, 90, 91, 92, 96, 106, 107, 110, 112, 113, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128], $V5 = [2, 10], $V6 = [1, 20], $V7 = [1, 21], $V8 = [1, 22], $V9 = [1, 23], $Va = [1, 30], $Vb = [1, 32], $Vc = [1, 33], $Vd = [1, 34], $Ve = [1, 62], $Vf = [1, 48], $Vg = [1, 52], $Vh = [1, 36], $Vi = [1, 37], $Vj = [1, 38], $Vk = [1, 39], $Vl = [1, 40], $Vm = [1, 56], $Vn = [1, 63], $Vo = [1, 51], $Vp = [1, 53], $Vq = [1, 55], $Vr = [1, 59], $Vs = [1, 60], $Vt = [1, 41], $Vu = [1, 42], $Vv = [1, 43], $Vw = [1, 44], $Vx = [1, 61], $Vy = [1, 50], $Vz = [1, 54], $VA = [1, 57], $VB = [1, 58], $VC = [1, 49], $VD = [1, 66], $VE = [1, 71], $VF = [1, 20, 21, 22, 23, 38, 42, 44, 46, 48, 52, 66, 67, 87, 88, 89, 90, 91, 92, 96, 106, 107, 110, 112, 113, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128], $VG = [1, 75], $VH = [1, 74], $VI = [1, 76], $VJ = [20, 21, 23, 81, 82], $VK = [1, 99], $VL = [1, 104], $VM = [1, 107], $VN = [1, 108], $VO = [1, 101], $VP = [1, 106], $VQ = [1, 109], $VR = [1, 102], $VS = [1, 114], $VT = [1, 113], $VU = [1, 103], $VV = [1, 105], $VW = [1, 110], $VX = [1, 111], $VY = [1, 112], $VZ = [1, 115], $V_ = [20, 21, 22, 23, 81, 82], $V$ = [20, 21, 22, 23, 53, 81, 82], $V01 = [20, 21, 22, 23, 40, 52, 53, 55, 57, 59, 61, 63, 65, 66, 67, 69, 71, 73, 74, 76, 81, 82, 92, 96, 106, 107, 110, 112, 113, 123, 124, 125, 126, 127, 128], $V11 = [20, 21, 23], $V21 = [20, 21, 23, 52, 66, 67, 81, 82, 92, 96, 106, 107, 110, 112, 113, 123, 124, 125, 126, 127, 128], $V31 = [1, 12, 20, 21, 22, 23, 24, 38, 42, 44, 46, 48, 52, 66, 67, 87, 88, 89, 90, 91, 92, 96, 106, 107, 110, 112, 113, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128], $V41 = [52, 66, 67, 92, 96, 106, 107, 110, 112, 113, 123, 124, 125, 126, 127, 128], $V51 = [1, 150], $V61 = [1, 158], $V71 = [1, 159], $V81 = [1, 160], $V91 = [1, 161], $Va1 = [1, 145], $Vb1 = [1, 146], $Vc1 = [1, 141], $Vd1 = [1, 142], $Ve1 = [1, 153], $Vf1 = [1, 154], $Vg1 = [1, 155], $Vh1 = [1, 156], $Vi1 = [1, 157], $Vj1 = [1, 162], $Vk1 = [1, 163], $Vl1 = [1, 148], $Vm1 = [1, 151], $Vn1 = [1, 147], $Vo1 = [1, 144], $Vp1 = [20, 21, 22, 23, 38, 42, 44, 46, 48, 52, 66, 67, 87, 88, 89, 90, 91, 92, 96, 106, 107, 110, 112, 113, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128], $Vq1 = [1, 166], $Vr1 = [20, 21, 22, 23, 26, 52, 66, 67, 92, 106, 107, 110, 112, 113, 123, 124, 125, 126, 127, 128], $Vs1 = [20, 21, 22, 23, 24, 26, 38, 40, 41, 42, 52, 56, 58, 60, 62, 64, 66, 67, 68, 70, 72, 73, 75, 77, 81, 82, 87, 88, 89, 90, 91, 92, 93, 96, 106, 107, 110, 112, 113, 114, 115, 123, 124, 125, 126, 127, 128], $Vt1 = [12, 21, 22, 24], $Vu1 = [22, 107], $Vv1 = [1, 251], $Vw1 = [1, 246], $Vx1 = [1, 247], $Vy1 = [1, 255], $Vz1 = [1, 252], $VA1 = [1, 249], $VB1 = [1, 248], $VC1 = [1, 250], $VD1 = [1, 253], $VE1 = [1, 254], $VF1 = [1, 256], $VG1 = [1, 274], $VH1 = [20, 21, 23, 107], $VI1 = [20, 21, 22, 23, 66, 67, 87, 103, 106, 107, 110, 111, 112, 113, 114];\n var parser2 = {\n trace: function trace() {\n },\n yy: {},\n symbols_: { \"error\": 2, \"start\": 3, \"mermaidDoc\": 4, \"directive\": 5, \"openDirective\": 6, \"typeDirective\": 7, \"closeDirective\": 8, \"separator\": 9, \":\": 10, \"argDirective\": 11, \"open_directive\": 12, \"type_directive\": 13, \"arg_directive\": 14, \"close_directive\": 15, \"graphConfig\": 16, \"document\": 17, \"line\": 18, \"statement\": 19, \"SEMI\": 20, \"NEWLINE\": 21, \"SPACE\": 22, \"EOF\": 23, \"GRAPH\": 24, \"NODIR\": 25, \"DIR\": 26, \"FirstStmtSeperator\": 27, \"ending\": 28, \"endToken\": 29, \"spaceList\": 30, \"spaceListNewline\": 31, \"verticeStatement\": 32, \"styleStatement\": 33, \"linkStyleStatement\": 34, \"classDefStatement\": 35, \"classStatement\": 36, \"clickStatement\": 37, \"subgraph\": 38, \"text\": 39, \"SQS\": 40, \"SQE\": 41, \"end\": 42, \"direction\": 43, \"acc_title\": 44, \"acc_title_value\": 45, \"acc_descr\": 46, \"acc_descr_value\": 47, \"acc_descr_multiline_value\": 48, \"link\": 49, \"node\": 50, \"vertex\": 51, \"AMP\": 52, \"STYLE_SEPARATOR\": 53, \"idString\": 54, \"DOUBLECIRCLESTART\": 55, \"DOUBLECIRCLEEND\": 56, \"PS\": 57, \"PE\": 58, \"(-\": 59, \"-)\": 60, \"STADIUMSTART\": 61, \"STADIUMEND\": 62, \"SUBROUTINESTART\": 63, \"SUBROUTINEEND\": 64, \"VERTEX_WITH_PROPS_START\": 65, \"ALPHA\": 66, \"COLON\": 67, \"PIPE\": 6Line truncated
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
import{p as St,f as W}from"./flowDb-6a57c1b4-o7QdmK-d.js";import{h as S,u as Lt,r as Et,p as _t,l as Tt,d as D,f as tt,G as Nt}from"./layout-ewywu0M6.js";import{h as x,o as G,p as z,q as et,c as J,j as rt,l as I,r as V,t as At}from"./index-jpNTxDe4.js";import{a as N,b as at,i as nt,c as _,e as st,d as it,f as Ct,g as It}from"./styles-5f89df53-Cnw1EiWb.js";import{l as Bt}from"./line-reZX-DPl.js";import{s as Mt}from"./selectAll-ksDY_7eo.js";import"./index-2K3MavtT.js";import"./index-a92ac404-gZDUZJdp.js";import"./edges-49ac43a2-VNwnN65b.js";import"./createText-3df630b5-oLWc-GwH.js";import"./svgDraw-0fcc813d-8P1J7hc8.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";function Dt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Pt(r,e){return fetch(r,e).then(Dt)}function Rt(r){return(e,t)=>Pt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Gt=Rt("image/svg+xml"),Y={normal:$t,vee:Wt,undirected:Vt};function Ut(r){Y=r}function $t(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Yt(r,e){for(var t=r.append("text"),n=Ht(e.label).split(`
|
|
||||||
`),a=0;a<n.length;a++)t.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(n[a]);return N(t,e.labelStyle),t}function Ht(r){for(var e="",t=!1,n,a=0;a<r.length;++a)if(n=r[a],t){switch(n){case"n":e+=`
|
|
||||||
`;break;default:e+=n}t=!1}else n==="\\"?t=!0:e+=n;return e}function K(r,e,t){var n=e.label,a=r.append("g");e.labelType==="svg"?zt(a,e):typeof n!="string"||e.labelType==="html"?at(a,e):Yt(a,e);var s=a.node().getBBox(),i;switch(t){case"top":i=-e.height/2;break;case"bottom":i=e.height/2-s.height;break;default:i=-s.height/2}return a.attr("transform","translate("+-s.width/2+","+i+")"),a}var H=function(r,e){var t=e.nodes().filter(function(s){return nt(e,s)}),n=r.selectAll("g.cluster").data(t,function(s){return s});_(n.exit(),e).style("opacity",0).remove();var a=n.enter().append("g").attr("class","cluster").attr("id",function(s){var i=e.node(s);return i.id}).style("opacity",0).each(function(s){var i=e.node(s),o=x(this);x(this).append("rect");var c=o.append("g").attr("class","label");K(c,i,i.clusterLabelPos)});return n=n.merge(a),n=_(n,e).style("opacity",1),n.selectAll("rect").each(function(s){var i=e.node(s),o=x(this);N(o,i.style)}),n};function Xt(r){H=r}let X=function(r,e){var t=r.selectAll("g.edgeLabel").data(e.edges(),function(a){return st(a)}).classed("update",!0);t.exit().remove(),t.enter().append("g").classed("edgeLabel",!0).style("opacity",0),t=r.selectAll("g.edgeLabel"),t.each(function(a){var s=x(this);s.select(".label").remove();var i=e.edge(a),o=K(s,e.edge(a),0).classed("label",!0),c=o.node().getBBox();i.labelId&&o.attr("id",i.labelId),S(i,"width")||(i.width=c.width),S(i,"height")||(i.height=c.height)});var n;return t.exit?n=t.exit():n=t.selectAll(null),_(n,e).style("opacity",0).remove(),t};function Ft(r){X=r}function O(r,e){return r.intersect(e)}var F=function(r,e,t){var n=r.selectAll("g.edgePath").data(e.edges(),function(i){return st(i)}).classed("update",!0),a=Zt(n,e);Ot(n,e);var s=n.merge!==void 0?n.merge(a):n;return _(s,e).style("opacity",1),s.each(function(i){var o=x(this),c=e.edge(i);c.elem=this,c.id&&o.attr("id",c.id),it(o,c.class,(o.classed("update")?"update ":"")+"edgePath")}),s.selectAll("path.path").each(function(i){var o=e.edge(i);o.arrowheadId=Lt("arrowhead");var c=x(this).attr("marker-end",function(){return"url("+Qt(location.href,o.arrowheadId)+")"}).style("fill","none");_(c,e).attr("d",function(d){return Jt(e,d)}),N(c,o.style)}),s.selectAll("defs *").remove(),s.selectAll("defs").each(function(i){var o=e.edge(i),c=t[o.arrowhead];c(x(this),o.arrowheadId,o,"arrowhead")}),s};function qt(r){F=r}function Qt(r,e){var t=r.split("#")[0];return t+"#"+e}function Jt(r,e){var t=r.edge(e),n=r.node(e.v),a=r.node(e.w),s=t.points.slice(1,t.points.length-1);return s.unshift(O(n,s[0])),s.push(O(a,s[s.length-1])),ot(t,s)}function ot(r,e){var t=(Bt||Gt.line)().x(function(n){return n.x}).y(function(n){return n.y});return(t.curve||t.interpolate)(r.curve),t(e)}function Kt(r){var e=r.getBBox(),t=r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(e.width/2,e.height/2);return{x:t.e,y:t.f}}function Zt(r,e){var t=r.enter().append("g").attr("class","edgePath").style("opacity",0);return t.append("path").attr("class","path").attr("d",function(n){var a=e.edge(n),s=e.node(n.v).elem,i=Et(a.points.length).map(function(){return Kt(s)});return ot(a,i)}),t.append("defs"),t}function Ot(r,e){var t=r.exit();_(t,e).style("opacity",0).remove()}var q=function(r,e,t){var n=e.nodes().filter(function(i){return!nt(e,i)}),a=r.selectAll("g.node").data(n,function(i){return i}).classed("update",!0);a.exit().remove(),a.enter().append("g").attr("class","node").style("opacity",0),a=r.selectAll("g.node"),a.each(function(i){var o=e.node(i),c=x(this);it(c,o.class,(c.classed("update")?"update ":"")+"node"),c.select("g.label").remove();var d=c.append("g").attr("class","label"),l=K(d,o),v=t[o.shape],h=_t(l.node().getBBox(),"width","height");o.elem=this,o.id&&c.attr("id",o.id),o.labelId&&d.attr("id",o.labelId),S(o,"width")&&(h.width=o.width),S(o,"height")&&(h.height=o.height),h.width+=o.paddingLeft+o.paddingRight,h.height+=o.paddingTop+o.paddingBottom,d.attr("transform","translate("+(o.paddingLeft-o.paddingRight)/2+","+(o.paddingTop-o.paddingBottom)/2+")");var u=x(this);u.select(".label-container").remove();var p=v(u,h,o).classed("label-container",!0);N(p,o.style);var m=p.node().getBBox();o.width=m.width,o.height=m.height});var s;return a.exit?s=a.exit():s=a.selectAll(null),_(s,e).style("opacity",0).remove(),a};function jt(r){q=r}function te(r,e){var t=r.filter(function(){return!x(this).classed("update")});function n(a){var s=e.node(a);return"translate("+s.x+","+s.y+")"}t.attr("transform",n),_(r,e).style("opacity",1).attr("transform",n),_(t.selectAll("rect"),e).attr("width",function(a){return e.node(a).width}).attr("height",function(a){return e.node(a).height}).attr("x",function(a){var s=e.node(a);return-s.width/2}).attr("y",function(a){var s=e.node(a);return-s.height/2})}function ee(r,e){var t=r.filter(function(){return!x(this).classed("update")});function n(a){var s=e.edge(a);return S(s,"x")?"translate("+s.x+","+s.y+")":""}t.attr("transform",n),_(r,e).style("opacity",1).attr("transform",n)}function re(r,e){var t=r.filt
Line truncated
|
|
||||||
`),i.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=o,l.class=c+" "+d,l.minlen=i.length||1,e.setEdge(t.db.lookUpDomId(i.start),t.db.lookUpDomId(i.end),l,n)})},we=function(r,e){I.info("Extracting classes"),e.db.clear();try{return e.parse(r),e.db.getClasses()}catch(t){return I.error(t),{}}},xe=function(r,e,t,n){I.info("Drawing flowchart"),n.db.clear();const{securityLevel:a,flowchart:s}=J();let i;a==="sandbox"&&(i=x("#i"+e));const o=a==="sandbox"?x(i.nodes()[0].contentDocument.body):x("body"),c=a==="sandbox"?i.nodes()[0].contentDocument:document;try{n.parser.parse(r)}catch{I.debug("Parsing failed")}let d=n.db.getDirection();d===void 0&&(d="TD");const l=s.nodeSpacing||50,v=s.rankSpacing||50,h=new Nt({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:l,ranksep:v,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let u;const p=n.db.getSubGraphs();for(let g=p.length-1;g>=0;g--)u=p[g],n.db.addVertex(u.id,u.title,"group",void 0,u.classes);const m=n.db.getVertices();I.warn("Get vertices",m);const f=n.db.getEdges();let y=0;for(y=p.length-1;y>=0;y--){u=p[y],Mt("cluster").append("text");for(let g=0;g<u.nodes.length;g++)I.warn("Setting subgraph",u.nodes[g],n.db.lookUpDomId(u.nodes[g]),n.db.lookUpDomId(u.id)),h.setParent(n.db.lookUpDomId(u.nodes[g]),n.db.lookUpDomId(u.id))}bt(m,h,e,o,c,n),kt(f,h,n);const k=new de;ge.addToRender(k),k.arrows().none=function(b,L,w,M){const C=b.append("marker").attr("id",L).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");N(C,w[M+"Style"])},k.arrows().normal=function(b,L){b.append("marker").attr("id",L).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const B=o.select(`[id="${e}"]`),E=o.select("#"+e+" g");for(k(E,h),E.selectAll("g.node").attr("title",function(){return n.db.getTooltip(this.id)}),n.db.indexNodes("subGraph"+y),y=0;y<p.length;y++)if(u=p[y],u.title!=="undefined"){const g=c.querySelectorAll("#"+e+' [id="'+n.db.lookUpDomId(u.id)+'"] rect'),b=c.querySelectorAll("#"+e+' [id="'+n.db.lookUpDomId(u.id)+'"]'),L=g[0].x.baseVal.value,w=g[0].y.baseVal.value,M=g[0].width.baseVal.value,C=x(b[0]).select(".label");C.attr("transform",`translate(${L+M/2}, ${w+14})`),C.attr("id",e+"Text");for(let $=0;$<u.classes.length;$++)b[0].classList.add(u.classes[$])}if(!s.htmlLabels){const g=c.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const b of g){const L=b.getBBox(),w=c.createElementNS("http://www.w3.org/2000/svg","rect");w.setAttribute("rx",0),w.setAttribute("ry",0),w.setAttribute("width",L.width),w.setAttribute("height",L.height),b.insertBefore(w,b.firstChild)}}At(h,B,s.diagramPadding,s.useMaxWidth),Object.keys(m).forEach(function(g){const b=m[g];if(b.link){const L=o.select("#"+e+' [id="'+n.db.lookUpDomId(g)+'"]');if(L){const w=c.createElementNS("http://www.w3.org/2000/svg","a");w.setAttributeNS("http://www.w3.org/2000/svg","class",b.classes.join(" ")),w.setAttributeNS("http://www.w3.org/2000/svg","href",b.link),w.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),a==="sandbox"?w.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):b.linkTarget&&w.setAttributeNS("http://www.w3.org/2000/svg","target",b.linkTarget);const M=L.insert(function(){return w},":first-child"),R=L.select(".label-container");R&&M.append(function(){return R.node()});const C=L.select(".label");C&&M.append(function(){return C.node()})}}})},be={setConf:me,addVertices:bt,addEdges:kt,getClasses:we,draw:xe},Pe={parser:St,db:W,renderer:Ct,styles:It,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,be.setConf(r.flowchart),W.clear(),W.setGen("gen-1")}};export{Pe as diagram};
|
|
||||||
//# sourceMappingURL=flowDiagram-93327f21-bzemmV0w.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"flowDiagram-93327f21-bzemmV0w.js","sources":["../../../node_modules/d3-fetch/src/text.js","../../../node_modules/d3-fetch/src/xml.js","../../../node_modules/dagre-d3-es/src/dagre-js/arrows.js","../../../node_modules/dagre-d3-es/src/dagre-js/label/add-svg-label.js","../../../node_modules/dagre-d3-es/src/dagre-js/label/add-text-label.js","../../../node_modules/dagre-d3-es/src/dagre-js/label/add-label.js","../../../node_modules/dagre-d3-es/src/dagre-js/create-clusters.js","../../../node_modules/dagre-d3-es/src/dagre-js/create-edge-labels.js","../../../node_modules/dagre-d3-es/src/dagre-js/intersect/intersect-node.js","../../../node_modules/dagre-d3-es/src/dagre-js/create-edge-paths.js","../../../node_modules/dagre-d3-es/src/dagre-js/create-nodes.js","../../../node_modules/dagre-d3-es/src/dagre-js/position-clusters.js","../../../node_modules/dagre-d3-es/src/dagre-js/position-edge-labels.js","../../../node_modules/dagre-d3-es/src/dagre-js/position-nodes.js","../../../node_modules/dagre-d3-es/src/dagre-js/intersect/intersect-ellipse.js","../../../node_modules/dagre-d3-es/src/dagre-js/intersect/intersect-circle.js","../../../node_modules/dagre-d3-es/src/dagre-js/intersect/intersect-line.js","../../../node_modules/dagre-d3-es/src/dagre-js/intersect/intersect-polygon.js","../../../node_modules/dagre-d3-es/src/dagre-js/intersect/intersect-rect.js","../../../node_modules/dagre-d3-es/src/dagre-js/shapes.js","../../../node_modules/dagre-d3-es/src/dagre-js/render.js","../../../node_modules/mermaid/dist/flowDiagram-93327f21.js"],"sourcesContent":["function responseText(response) {\n if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n return response.text();\n}\n\nexport default function(input, init) {\n return fetch(input, init).then(responseText);\n}\n","import text from \"./text.js\";\n\nfunction parser(type) {\n return (input, init) => text(input, init)\n .then(text => (new DOMParser).parseFromString(text, type));\n}\n\nexport default parser(\"application/xml\");\n\nexport var html = parser(\"text/html\");\n\nexport var svg = parser(\"image/svg+xml\");\n","import * as util from './util.js';\n\nexport { arrows, setArrows };\n\nvar arrows = {\n normal,\n vee,\n undirected,\n};\n\nfunction setArrows(value) {\n arrows = value;\n}\n\nfunction normal(parent, id, edge, type) {\n var marker = parent\n .append('marker')\n .attr('id', id)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'strokeWidth')\n .attr('markerWidth', 8)\n .attr('markerHeight', 6)\n .attr('orient', 'auto');\n\n var path = marker\n .append('path')\n .attr('d', 'M 0 0 L 10 5 L 0 10 z')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n util.applyStyle(path, edge[type + 'Style']);\n if (edge[type + 'Class']) {\n path.attr('class', edge[type + 'Class']);\n }\n}\n\nfunction vee(parent, id, edge, type) {\n var marker = parent\n .append('marker')\n .attr('id', id)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'strokeWidth')\n .attr('markerWidth', 8)\n .attr('markerHeight', 6)\n .attr('orient', 'auto');\n\n var path = marker\n .append('path')\n .attr('d', 'M 0 0 L 10 5 L 0 10 L 4 5 z')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n util.applyStyle(path, edge[type + 'Style']);\n if (edge[type + 'Class']) {\n path.attr('class', edge[type + 'Class']);\n }\n}\n\nfunction undirected(parent, id, edge, type) {\n var marker = parent\n .append('marker')\n .attr('id', id)\n .attr('viewBox', '0 0 10 10')\n .attr('refX', 9)\n .attr('refY', 5)\n .attr('markerUnits', 'strokeWidth')\n .attr('markerWidth', 8)\n .attr('markerHeight', 6)\n .attr('orient', 'auto');\n\n var path = marker\n .append('path')\n .attr('d', 'M 0 5 L 10 5')\n .style('stroke-width', 1)\n .style('stroke-dasharray', '1,0');\n util.applyStyle(path, edge[type + 'Style']);\n if (edge[type + 'Class']) {\n path.attr('class', edge[type + 'Class']);\n }\n}\n","import * as util from '../util.js';\n\nexport { addSVGLabel };\n\nfunction addSVGLabel(root, node) {\n var domNode = root;\n\n domNode.node().appendChild(node.label);\n\n util.applyStyle(domNode, node.labelStyle);\n\n return domNode;\n}\n","import * as util from '../util.js';\n\nexport { addTextLabel };\n\n/*\n * Attaches a text label to the specified root. Handles escape sequences.\n */\nfunction addTextLabel(root, node) {\n var domNode = root.append('text');\n\n var lines = processEscapeSequences(node.label).split('\\n');\n for (var i = 0; i < lines.length; i++) {\n domNode\n .append('tspan')\n .attr('xml:space', 'preserve')\n .attr('dy', '1em')\n .attr('x', '1')\n .text(lines[i]);\n }\n\n util.applyStyle(domNode, node.labelStyle);\n\n return domNode;\n}\n\nfunction processEscapeSequences(text) Line truncated
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
import{p as e,f as o}from"./flowDb-6a57c1b4-o7QdmK-d.js";import{f as t,g as a}from"./styles-5f89df53-Cnw1EiWb.js";import{a8 as i}from"./index-jpNTxDe4.js";import"./layout-ewywu0M6.js";import"./index-a92ac404-gZDUZJdp.js";import"./edges-49ac43a2-VNwnN65b.js";import"./createText-3df630b5-oLWc-GwH.js";import"./svgDraw-0fcc813d-8P1J7hc8.js";import"./line-reZX-DPl.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";import"./selectAll-ksDY_7eo.js";import"./index-2K3MavtT.js";const M={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{M as diagram};
|
|
||||||
//# sourceMappingURL=flowDiagram-v2-476db779-kB7FwdKI.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"flowDiagram-v2-476db779-kB7FwdKI.js","sources":["../../../node_modules/mermaid/dist/flowDiagram-v2-476db779.js"],"sourcesContent":["import { p as parser, f as flowDb } from \"./flowDb-6a57c1b4.js\";\nimport { f as flowRendererV2, a as flowStyles } from \"./styles-5f89df53.js\";\nimport { q as setConfig } from \"./mermaid-b0ad2de1.js\";\nimport \"d3\";\nimport \"dagre-d3-es/src/graphlib/index.js\";\nimport \"./index-a92ac404.js\";\nimport \"dagre-d3-es/src/dagre/index.js\";\nimport \"dagre-d3-es/src/graphlib/json.js\";\nimport \"./edges-49ac43a2.js\";\nimport \"./createText-3df630b5.js\";\nimport \"mdast-util-from-markdown\";\nimport \"ts-dedent\";\nimport \"./svgDraw-0fcc813d.js\";\nimport \"dagre-d3-es/src/dagre-js/label/add-html-label.js\";\nimport \"khroma\";\nimport \"dayjs\";\nimport \"@braintree/sanitize-url\";\nimport \"dompurify\";\nimport \"lodash-es/memoize.js\";\nimport \"stylis\";\nimport \"lodash-es/isEmpty.js\";\nconst diagram = {\n parser,\n db: flowDb,\n renderer: flowRendererV2,\n styles: flowStyles,\n init: (cnf) => {\n if (!cnf.flowchart) {\n cnf.flowchart = {};\n }\n cnf.flowchart.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;\n setConfig({ flowchart: { arrowMarkerAbsolute: cnf.arrowMarkerAbsolute } });\n flowRendererV2.setConf(cnf.flowchart);\n flowDb.clear();\n flowDb.setGen(\"gen-2\");\n }\n};\nexport {\n diagram\n};\n"],"names":["diagram","parser","flowDb","flowRendererV2","flowStyles","cnf","setConfig"],"mappings":"ieAqBK,MAACA,EAAU,CAChB,OAAEC,EACA,GAAIC,EACJ,SAAUC,EACV,OAAQC,EACR,KAAOC,GAAQ,CACRA,EAAI,YACPA,EAAI,UAAY,IAElBA,EAAI,UAAU,oBAAsBA,EAAI,oBACxCC,EAAU,CAAE,UAAW,CAAE,oBAAqBD,EAAI,mBAAqB,CAAA,CAAE,EACzEF,EAAe,QAAQE,EAAI,SAAS,EACpCH,EAAO,MAAK,EACZA,EAAO,OAAO,OAAO,CACtB,CACH","x_google_ignoreList":[0]}
|
|
||||||
@@ -1,140 +0,0 @@
|
|||||||
import{d as bMe,p as wMe}from"./flowDb-6a57c1b4-o7QdmK-d.js";import{l as K1,h as lI,c as OH,t as gMe,p as V1n,r as X1n,o as IH,j as pMe}from"./index-jpNTxDe4.js";import{i as vMe,a as mMe,l as kMe,b as yMe}from"./edges-49ac43a2-VNwnN65b.js";import{h as Hee,g as jMe}from"./index-2K3MavtT.js";import{c as PH}from"./_commonjs-dynamic-modules-h-SxKiO4.js";import{l as EMe}from"./line-reZX-DPl.js";import"./createText-3df630b5-oLWc-GwH.js";import"./svgDraw-0fcc813d-8P1J7hc8.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";var Uee={exports:{}};(function(Ae,It){(function(ut){Ae.exports=ut()})(function(){return function(){function ut(dt,Bt,Ai){function j(Ot,qt){if(!Bt[Ot]){if(!dt[Ot]){var Ge=typeof PH=="function"&&PH;if(!qt&&Ge)return Ge(Ot,!0);if(Ht)return Ht(Ot,!0);var Ki=new Error("Cannot find module '"+Ot+"'");throw Ki.code="MODULE_NOT_FOUND",Ki}var Si=Bt[Ot]={exports:{}};dt[Ot][0].call(Si.exports,function(Mn){var Lc=dt[Ot][1][Mn];return j(Lc||Mn)},Si,Si.exports,ut,dt,Bt,Ai)}return Bt[Ot].exports}for(var Ht=typeof PH=="function"&&PH,ou=0;ou<Ai.length;ou++)j(Ai[ou]);return j}return ut}()({1:[function(ut,dt,Bt){Object.defineProperty(Bt,"__esModule",{value:!0});var Ai=function(){function Ot(qt,Ge){for(var Ki=0;Ki<Ge.length;Ki++){var Si=Ge[Ki];Si.enumerable=Si.enumerable||!1,Si.configurable=!0,"value"in Si&&(Si.writable=!0),Object.defineProperty(qt,Si.key,Si)}}return function(qt,Ge,Ki){return Ge&&Ot(qt.prototype,Ge),Ki&&Ot(qt,Ki),qt}}();function j(Ot,qt){if(!(Ot instanceof qt))throw new TypeError("Cannot call a class as a function")}var Ht=function(){function Ot(){var qt=this,Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ki=Ge.defaultLayoutOptions,Si=Ki===void 0?{}:Ki,Mn=Ge.algorithms,Lc=Mn===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:Mn,Nc=Ge.workerFactory,ps=Ge.workerUrl;if(j(this,Ot),this.defaultLayoutOptions=Si,this.initialized=!1,typeof ps>"u"&&typeof Nc>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var Rr=Nc;typeof ps<"u"&&typeof Nc>"u"&&(Rr=function(q1){return new Worker(q1)});var Ch=Rr(ps);if(typeof Ch.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new ou(Ch),this.worker.postMessage({cmd:"register",algorithms:Lc}).then(function(H1){return qt.initialized=!0}).catch(console.err)}return Ai(Ot,[{key:"layout",value:function(Ge){var Ki=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Si=Ki.layoutOptions,Mn=Si===void 0?this.defaultLayoutOptions:Si,Lc=Ki.logging,Nc=Lc===void 0?!1:Lc,ps=Ki.measureExecutionTime,Rr=ps===void 0?!1:ps;return Ge?this.worker.postMessage({cmd:"layout",graph:Ge,layoutOptions:Mn,options:{logging:Nc,measureExecutionTime:Rr}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),Ot}();Bt.default=Ht;var ou=function(){function Ot(qt){var Ge=this;if(j(this,Ot),qt===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=qt,this.worker.onmessage=function(Ki){setTimeout(function(){Ge.receive(Ge,Ki)},0)}}return Ai(Ot,[{key:"postMessage",value:function(Ge){var Ki=this.id||0;this.id=Ki+1,Ge.id=Ki;var Si=this;return new Promise(function(Mn,Lc){Si.resolvers[Ki]=function(Nc,ps){Nc?(Si.convertGwtStyleError(Nc),Lc(Nc)):Mn(ps)},Si.worker.postMessage(Ge)})}},{key:"receive",value:function(Ge,Ki){var Si=Ki.data,Mn=Ge.resolvers[Si.id];Mn&&(delete Ge.resolvers[Si.id],Si.error?Mn(Si.error):Mn(null,Si.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(Ge){if(Ge){var Ki=Ge.__java$exception;Ki&&(Ki.cause&&Ki.cause.backingJsObject&&(Ge.cause=Ki.cause.backingJsObject,this.convertGwtStyleError(Ge.cause)),delete Ge.__java$exception)}}}]),Ot}()},{}],2:[function(ut,dt,Bt){(function(Ai){(function(){var j;typeof window<"u"?j=window:typeof Ai<"u"?j=Ai:typeof self<"u"&&(j=self);var Ht;function ou(){}function Ot(){}function qt(){}function Ge(){}function Ki(){}function Si(){}function Mn(){}function Lc(){}function Nc(){}function ps(){}function Rr(){}function Ch(){}function H1(){}function q1(){}function ww(){}function Np(){}function G1(){}function Th(){}function Q1n(){}function J1n(){}function zy(){}function Y1n(){}function Z1n(){}function nln(){}function eln(){}function Xg(){}function N(){}function tln(){}function aI(){}function iln(){}function rln(){}function cln(){}function uln(){}function DH(){}function sln(){}function oln(){}function fln(){}function z1(){}function U1(){}function dI(){}function hln(){}function lln(){}fLine truncated
|
|
||||||
`,tu(Di(n,e[0])))>=0;)++e[0]}function W8(n,e){this.e=e,this.a=FOn(n),this.a<54?this.f=$d(n):this.c=m7(n)}function HPn(n,e,t,i){Je(),cd.call(this,26),this.c=n,this.a=e,this.d=t,this.b=i}function sh(n,e,t){var i,r;for(i=10,r=0;r<t-1;r++)e<i&&(n.a+="0"),i*=10;n.a+=e}function k0e(n,e){var t;for(t=0;n.e!=n.i.gc();)bfe(e,oe(n),Q(t)),t!=nt&&++t}function ZX(n,e){var t;for(++n.d,++n.c[e],t=e+1;t<n.a.length;)++n.a[t],t+=t&-t}function y0e(n,e){var t,i,r;r=e.c.i,t=u(te(n.f,r),57),i=t.d.c-t.e.c,EV(e.a,i,0)}function X8(n){var e,t;return e=n+128,t=(WEn(),min)[e],!t&&(t=min[e]=new Dvn(n)),t}function $e(n,e){var t;return _n(e),t=n[":"+e],M0e(!!t,A(M(Zn,1),rn,1,5,[e])),t}function j0e(n){var e,t;if(n.b){t=null;do e=n.b,n.b=null,t=Rxn(e,t);while(n.b);n.b=t}}function E0e(n){var e,t;if(n.a){t=null;do e=n.a,n.a=null,t=Rxn(e,t);while(n.a);n.a=t}}function qPn(n){var e;for(++n.a,e=n.c.a.length;n.a<e;++n.a)if(n.c.b[n.a])return}function C0e(n,e){var t,i;for(i=e.c,t=i+1;t<=e.f;t++)n.a[t]>n.a[i]&&(i=t);return i}function T0e(n,e){var t;return t=zd(n.e.c,e.e.c),t==0?Zt(n.e.d,e.e.d):t}function Fw(n,e){return e.e==0||n.e==0?W4:(a4(),Hx(n,e))}function M0e(n,e){if(!n)throw T(new Hn(P8e("Enum constant undefined: %s",e)))}function X5(){X5=N,MWn=new San,AWn=new Man,CWn=new $an,TWn=new Fan,SWn=new xan}function RC(){RC=N,Yin=new qG("BY_SIZE",0),jR=new qG("BY_SIZE_AND_SHAPE",1)}function _C(){_C=N,$R=new GG("EADES",0),tS=new GG("FRUCHTERMAN_REINGOLD",1)}function V8(){V8=N,$S=new XG("READING_DIRECTION",0),Ucn=new XG("ROTATION",1)}function GPn(){GPn=N,hXn=Fe((Pa(),A(M(zcn,1),z,335,0,[f_,Gcn,h_,Em,jm])))}function zPn(){zPn=N,KQn=Fe((b6(),A(M(Usn,1),z,315,0,[zsn,nK,eK,Lm,Nm])))}function UPn(){UPn=N,ZWn=Fe((Vw(),A(M(YWn,1),z,363,0,[SS,IS,OS,PS,AS])))}function WPn(){WPn=N,EXn=Fe((Ss(),A(M(jun,1),z,163,0,[Qk,Sm,xl,Pm,Ub])))}function XPn(){XPn=N,oZn=Fe((P7(),A(M(gfn,1),z,316,0,[dfn,xK,wfn,LK,bfn])))}function VPn(){VPn=N,OZn=Fe((Ho(),A(M($1,1),z,175,0,[Xn,pi,Yf,Ya,D1])))}function QPn(){QPn=N,tZn=Fe((g4(),A(M(eZn,1),z,355,0,[Ng,Ep,Qm,Vm,Jm])))}function JPn(){JPn=N,vWn=Fe((Qi(),A(M(Hrn,1),z,356,0,[Vf,$l,Hc,Cc,Ir])))}function YPn(){YPn=N,ene=Fe((sr(),A(M(e9,1),z,103,0,[mh,Ao,Zs,Jh,Yh])))}function ZPn(){ZPn=N,hne=Fe((qw(),A(M(c9,1),z,249,0,[Hl,Cy,Hhn,r9,qhn])))}function nIn(){nIn=N,dne=Fe((J(),A(M(Zi,1),hc,61,0,[Xr,Kn,Vn,ae,Gn])))}function H$(n,e){var t;return t=u(te(n.a,e),134),t||(t=new pI,it(n.a,e,t)),t}function eIn(n){var e;return e=u(k(n,(G(),p0)),305),e?e.a==n:!1}function tIn(n){var e;return e=u(k(n,(G(),p0)),305),e?e.i==n:!1}function iIn(n,e){return _n(e),mW(n),n.d.Ob()?(e.td(n.d.Pb()),!0):!1}function KC(n){return fc(n,nt)>0?nt:fc(n,Bi)<0?Bi:ge(n)}function sb(n){return n<3?(is(n,J_n),n+1):n<L6?Gt(n/.75+1):nt}function On(n,e){var t;return t=(n.i==null&&Lf(n),n.i),e>=0&&e<t.length?t[e]:null}function Ro(n,e,t){var i;if(e==null)throw T(new Nv);return i=Dh(n,e),Xae(n,e,t),i}function rIn(n){return n.a>=-.01&&n.a<=bf&&(n.a=0),n.b>=-.01&&n.b<=bf&&(n.b=0),n}function cIn(n,e){return e==(sD(),sD(),Pzn)?n.toLocaleLowerCase():n.toLowerCase()}function nV(n){return(n.i&2?"interface ":n.i&1?"":"class ")+(Ph(n),n.o)}function Er(n){var e,t;t=(e=new RI,e),me((!n.q&&(n.q=new V(co,n,11,10)),n.q),t)}function A0e(n,e){var t;return t=e>0?e-1:e,e8n(Kie(IIn(YU(new zp,t),n.n),n.j),n.k)}function S0e(n,e,t,i){var r;n.j=-1,EY(n,iY(n,e,t),(er(),r=u(e,66).Mj(),r.Ok(i)))}function uIn(n){this.g=n,this.f=new X,this.a=j.Math.min(this.g.c.c,this.g.d.c)}function sIn(n){this.b=new X,this.a=new X,this.c=new X,this.d=new X,this.e=n}function oIn(n,e){this.a=new we,this.e=new we,this.b=(i6(),oP),this.c=n,this.b=e}function fIn(n,e,t){kE.call(this),eV(this),this.a=n,this.c=t,this.b=e.d,this.f=e.e}function hIn(n){this.d=n,this.c=n.c.vc().Kc(),this.b=null,this.a=null,this.e=(aj(),fR)}function Ld(n){if(n<0)throw T(new Hn("Illegal Capacity: "+n));this.g=this.ri(n)}function P0e(n,e){if(0>n||n>e)throw T(new bG("fromIndex: 0, toIndex: "+n+tnn+e))}function I0e(n){var e;if(n.a==n.b.a)throw T(new ic);return e=n.a,n.c=e,n.a=n.a.e,e}function HC(n){var e;z0(!!n.c),e=n.c.a,Ts(n.d,n.c),n.b==n.c?n.b=e:--n.a,n.c=null}function qC(n,e){var t;return Ta(n),t=new DTn(n,n.a.rd(),n.a.qd()|4,e),new $n(n,t)}function O0e(n,e){var t,i;return t=u(ab(n.d,e),14),t?(i=e,n.e.pc(i,t)):null}function GC(n,e){var t,i;for(i=n.Kc();i.Ob();)t=u(i.Pb(),70),H(t,(G(),pp),e)}function D0e(n){var e;return e=K(Y(k(n,(nn(),S1)))),e<0&&(e=0,H(n,S1,e)),e}function $0e(n,e,t){var i;i=j.Math.max(0,n.b/2-.5),g6(t,i,1),W(e,new L7n(t,i))}function F0e(n,e,t){var i;return i=n.a.e[u(e.a,10).p]-n.a.e[u(t.a,10).p],Gt(m8(i))}function lIn(n,e,t,i,r,c){var o;o=C$(i),Hi(o,r),Ei(o,c),Tn(n.a,i,new EE(o,e,t.f))}function aIn(n,e){var t;if(t=R7(n.Tg(),e),!t)throw T(new Hn(Pl+e+MB));return t}function ob(n,e){var t;for(t=n;At(t);)if(t=At(t),t==e)return!0;return!1}function x0e(n,e){var t,i,r;for(i=e.a.cd(),t=u(e.a.dd(),14).gc(),r=0;r<t;r++)n.td(i)}function Yc(n,e){var t,i,r,c;for(_n(e),i=n.c,r=0,c=i.length;r<c;++r)t=i[r],e.td(t)}function Ts(n,e){var t;return t=e.c,e.a.b
Line truncated
|
|
||||||
`)}return e&&(e.stack||t(n[PL]))}function $Q(n){nb();var e;switch(e=n.Pc(),e.length){case 0:return sR;case 1:return new pD(pe(e[0]));default:return new JD(Qge(e))}}function Ud(n,e){switch(e.g){case 1:return v2(n.j,(wu(),Vrn));case 2:return v2(n.j,(wu(),Jrn));default:return Pn(),Pn(),cr}}function FQ(n,e){switch(e){case 3:Bd(n,0);return;case 4:Rd(n,0);return;case 5:Zc(n,0);return;case 6:nu(n,0);return}oQ(n,e)}function xF(){xF=N,Oj(),uP=(nn(),T0),NQn=cf(A(M(KK,1),Jen,146,0,[Zk,Mo,jp,C0,nw,G_,wv,gv,z_,Fm,Dg,Qa,$g]))}function u$n(n){var e,t;e=n.d==(q2(),tv),t=$J(n),e&&!t||!e&&t?H(n.a,(nn(),Qf),(oh(),ay)):H(n.a,(nn(),Qf),(oh(),ly))}function P2e(n,e){var t;return t=u(es(n,ga(new U1,new z1,new W1,A(M(Nu,1),z,132,0,[(hf(),hs)]))),15),t.Qc(IEn(t.gc()))}function AT(){AT=N,oH=new Qj("SIMPLE",0),Whn=new Qj("GROUP_DEC",1),Vhn=new Qj("GROUP_MIXED",2),Xhn=new Qj("GROUP_INC",3)}function LF(){LF=N,vH=new tpn,v1n=new ipn,m1n=new rpn,k1n=new cpn,y1n=new upn,j1n=new spn,E1n=new opn,C1n=new fpn,T1n=new hpn}function s$n(n,e,t){wIn(),s9n.call(this),this.a=oa(Xzn,[q,lnn],[595,212],0,[QA,CR],2),this.c=new d2,this.g=n,this.f=e,this.d=t}function xQ(n,e){this.n=oa(Yl,[q,QL],[364,25],14,[e,Gt(j.Math.ceil(n/32))],2),this.o=n,this.p=e,this.j=n-1>>1,this.k=e-1>>1}function I2e(n,e){le(e,"End label post-processing",1),Rt(gt(qr(new $n(null,new xn(n.b,16)),new udn),new sdn),new odn),ce(e)}function O2e(n,e,t){var i,r;return i=K(n.p[e.i.p])+K(n.d[e.i.p])+e.n.b+e.a.b,r=K(n.p[t.i.p])+K(n.d[t.i.p])+t.n.b+t.a.b,r-i}function D2e(n,e,t){var i,r;for(i=ci(t,fr),r=0;fc(i,0)!=0&&r<e;r++)i=qi(i,ci(n[r],fr)),n[r]=ge(i),i=cl(i,32);return ge(i)}function ST(n){var e,t,i,r;for(r=0,t=0,i=n.length;t<i;t++)e=(Te(t,n.length),n.charCodeAt(t)),e<64&&(r=rf(r,Ih(1,e)));return r}function $2e(n){var e;return n==null?null:new il((e=jc(n,!0),e.length>0&&(Te(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function F2e(n){var e;return n==null?null:new il((e=jc(n,!0),e.length>0&&(Te(0,e.length),e.charCodeAt(0)==43)?e.substr(1):e))}function LQ(n,e){var t;return n.i>0&&(e.length<n.i&&(t=Q8(Du(e).c,n.i),e=t),gc(n.g,0,e,0,n.i)),e.length>n.i&&Mt(e,n.i,null),e}function Oc(n,e,t){var i,r,c;return n.ej()?(i=n.i,c=n.fj(),a7(n,i,e),r=n.Zi(3,null,e,i,c),t?t.Ei(r):t=r):a7(n,n.i,e),t}function x2e(n,e,t){var i,r;return i=new Lh(n.e,4,10,(r=e.c,I(r,88)?u(r,26):(Sn(),so)),null,v1(n,e),!1),t?t.Ei(i):t=i,t}function L2e(n,e,t){var i,r;return i=new Lh(n.e,3,10,null,(r=e.c,I(r,88)?u(r,26):(Sn(),so)),v1(n,e),!1),t?t.Ei(i):t=i,t}function o$n(n){W0();var e;return e=new mr(u(n.e.We((Xe(),Kg)),8)),n.B.Hc((xu(),Mv))&&(e.a<=0&&(e.a=20),e.b<=0&&(e.b=20)),e}function f$n(n){wb();var e;return(n.q?n.q:(Pn(),Pn(),ph))._b((nn(),j0))?e=u(k(n,j0),197):e=u(k(Gi(n),$m),197),e}function bb(n,e){var t,i;return i=null,li(n,(nn(),rP))&&(t=u(k(n,rP),94),t.Xe(e)&&(i=t.We(e))),i==null&&(i=k(Gi(n),e)),i}function h$n(n,e){var t,i,r;return I(e,42)?(t=u(e,42),i=t.cd(),r=ab(n.Rc(),i),$f(r,t.dd())&&(r!=null||n.Rc()._b(i))):!1}function NF(n,e){var t,i,r;return n.f>0?(n.qj(),i=e==null?0:mt(e),r=(i&nt)%n.d.length,t=hNn(n,r,i,e),t!=-1):!1}function Ko(n,e){var t,i,r;return n.f>0&&(n.qj(),i=e==null?0:mt(e),r=(i&nt)%n.d.length,t=kY(n,r,i,e),t)?t.dd():null}function g7(n,e){var t,i,r,c;for(c=Kc(n.e.Tg(),e),t=u(n.g,119),r=0;r<n.i;++r)if(i=t[r],c.rl(i.ak()))return!1;return!0}function l$n(n){if(n.b==null){for(;n.a.Ob();)if(n.b=n.a.Pb(),!u(n.b,49).Zg())return!0;return n.b=null,!1}else return!0}function a$n(n,e){n.mj();try{n.d.Vc(n.e++,e),n.f=n.d.j,n.g=-1}catch(t){throw t=jt(t),I(t,73)?T(new vs):T(t)}}function PT(n,e){Cz();var t,i;return t=a8((wj(),wj(),dm)),i=null,e==t&&(i=u(vc(bin,n),615)),i||(i=new QCn(n),e==t&&kr(bin,n,i)),i}function d$n(n,e){var t,i;n.a=qi(n.a,1),n.c=j.Math.min(n.c,e),n.b=j.Math.max(n.b,e),n.d+=e,t=e-n.f,i=n.e+t,n.f=i-n.e-t,n.e=i}function N2e(n,e){var t;n.c=e,n.a=k2e(e),n.a<54&&(n.f=(t=e.d>1?rf(Ih(e.a[1],32),ci(e.a[0],fr)):ci(e.a[0],fr),$d(Ni(e.e,t))))}function p7(n,e){var t;return $r(n)&&$r(e)&&(t=n%e,ik<t&&t<$a)?t:bl((IZ($r(n)?Ks(n):n,$r(e)?Ks(e):e,!0),Il))}function h6(n,e){var t;iCe(e),t=u(k(n,(nn(),JS)),276),t&&H(n,JS,L3e(t)),u1(n.c),u1(n.f),NX(n.d),NX(u(k(n,eP),207))}function b$n(n){this.e=F(be,Le,25,n.length,15,1),this.c=F(_u,wh,25,n.length,16,1),this.b=F(_u,wh,25,n.length,16,1),this.f=0}function B2e(n){var e,t;for(n.j=F(ji,pr,25,n.p.c.length,15,1),t=new E(n.p);t.a<t.c.c.length;)e=u(y(t),10),n.j[e.p]=e.o.b/n.i}function BF(n){var e;n.c!=0&&(e=u(un(n.a,n.b),287),e.b==1?(++n.b,n.b<n.a.c.length&&Ivn(u(un(n.a,n.b),287))):--e.b,--n.c)}function R2e(n){var e;e=n.a;do e=u(ve(new re(ue(ni(e).a.Kc(),new Mn))),17).d.i,e.k==(Qn(),gi)&&W(n.e,e);while(e.k==(Qn(),gi))}function NQ(){NQ=N,zhn=new vd(15),wne=new tr((Xe(),nd),zhn),pne=new tr(ed,15),gne=new tr(tH,Q(0)),bne=new tr(Tp,$4)}function Vu(){Vu=N,Ay=new Vj("PORTS",0),id=new Vj("PORT_LABELS",1),My=new Vj("NODE_LABELS",2),uw=new Vj("MINIMUM_SIZE",3)}function v7(n,e){var t,i;for(i=e.length,t=0;t<i;t+=2)yc(n,(Te(t,e.length),e.charCodeAt(t)),(Te(t+1,e.length),e.charCodeAt(t+1))
Line truncated
|
|
||||||
`;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(`
|
|
||||||
`)}return[]}function T3e(n){var e;return e=(_In(),kzn),e[n>>>28]|e[n>>24&15]<<4|e[n>>20&15]<<8|e[n>>16&15]<<12|e[n>>12&15]<<16|e[n>>8&15]<<20|e[n>>4&15]<<24|e[n&15]<<28}function MFn(n){var e,t,i;n.b==n.c&&(i=n.a.length,t=KV(j.Math.max(8,i))<<1,n.b!=0?(e=bo(n.a,t),XIn(n,e,i),n.a=e,n.b=0):Wmn(n.a,t),n.c=i)}function M3e(n,e){var t;return t=n.b,t.Xe((Xe(),Bu))?t.Hf()==(J(),Gn)?-t.rf().a-K(Y(t.We(Bu))):e+K(Y(t.We(Bu))):t.Hf()==(J(),Gn)?-t.rf().a:e}function E7(n){var e;return n.b.c.length!=0&&u(un(n.b,0),70).a?u(un(n.b,0),70).a:(e=WD(n),e??""+(n.c?Fr(n.c.a,n,0):-1))}function UT(n){var e;return n.f.c.length!=0&&u(un(n.f,0),70).a?u(un(n.f,0),70).a:(e=WD(n),e??""+(n.i?Fr(n.i.j,n,0):-1))}function A3e(n,e){var t,i;if(e<0||e>=n.gc())return null;for(t=e;t<n.gc();++t)if(i=u(n.Xb(t),128),t==n.gc()-1||!i.o)return new Pi(Q(t),i);return null}function S3e(n,e,t){var i,r,c,o,f;for(c=n.c,f=t?e:n,i=t?n:e,r=f.p+1;r<i.p;++r)if(o=u(un(c.a,r),10),!(o.k==(Qn(),vf)||t4e(o)))return!1;return!0}function sJ(n){var e,t,i,r,c;for(c=0,r=Vt,i=0,t=new E(n.a);t.a<t.c.c.length;)e=u(y(t),187),c+=e.r+(i>0?n.c:0),r=j.Math.max(r,e.d),++i;n.e=c,n.b=r}function P3e(n){var e,t;if(!n.b)for(n.b=mC(u(n.f,118).Ag().i),t=new ie(u(n.f,118).Ag());t.e!=t.i.gc();)e=u(oe(t),137),W(n.b,new XI(e));return n.b}function I3e(n,e){var t,i,r;if(e.dc())return o3(),o3(),xy;for(t=new Pjn(n,e.gc()),r=new ie(n);r.e!=r.i.gc();)i=oe(r),e.Hc(i)&&me(t,i);return t}function oJ(n,e,t,i){return e==0?i?(!n.o&&(n.o=new Wu((Dc(),Ul),S0,n,0)),n.o):(!n.o&&(n.o=new Wu((Dc(),Ul),S0,n,0)),N8(n.o)):BT(n,e,t,i)}function fx(n){var e,t;if(n.rb)for(e=0,t=n.rb.i;e<t;++e)s8(D(n.rb,e));if(n.vb)for(e=0,t=n.vb.i;e<t;++e)s8(D(n.vb,e));I5((gu(),xi),n),n.Bb|=1}function wt(n,e,t,i,r,c,o,f,h,l,a,d,g,p){return tLn(n,e,i,null,r,c,o,f,h,l,g,!0,p),vQ(n,a),I(n.Cb,88)&&yb(Iu(u(n.Cb,88)),2),t&&vV(n,t),mQ(n,d),n}function O3e(n){var e,t;if(n==null)return null;t=0;try{t=us(n,Bi,nt)&Ut}catch(i){if(i=jt(i),I(i,127))e=NC(n),t=e[0];else throw T(i)}return i7(t)}function D3e(n){var e,t;if(n==null)return null;t=0;try{t=us(n,Bi,nt)&Ut}catch(i){if(i=jt(i),I(i,127))e=NC(n),t=e[0];else throw T(i)}return i7(t)}function $3e(n,e){var t,i,r;return r=n.h-e.h,r<0||(t=n.l-e.l,i=n.m-e.m+(t>>22),r+=i>>22,r<0)?!1:(n.l=t&Lu,n.m=i&Lu,n.h=r&Wh,!0)}function F3e(n,e,t,i,r,c,o){var f,h;return!(e.Ae()&&(h=n.a.ue(t,i),h<0||!r&&h==0)||e.Be()&&(f=n.a.ue(t,c),f>0||!o&&f==0))}function x3e(n,e){V3();var t;if(t=n.j.g-e.j.g,t!=0)return 0;switch(n.j.g){case 2:return DF(e,Lcn)-DF(n,Lcn);case 4:return DF(n,xcn)-DF(e,xcn)}return 0}function L3e(n){switch(n.g){case 0:return a_;case 1:return d_;case 2:return b_;case 3:return w_;case 4:return FS;case 5:return g_;default:return null}}function Cr(n,e,t){var i,r;return i=(r=new _I,Ca(r,e),Ic(r,t),me((!n.c&&(n.c=new V(P0,n,12,10)),n.c),r),r),d1(i,0),hb(i,1),p1(i,!0),g1(i,!0),i}function H2(n,e){var t,i;if(e>=n.i)throw T(new xO(e,n.i));return++n.j,t=n.g[e],i=n.i-e-1,i>0&&gc(n.g,e+1,n.g,e,i),Mt(n.g,--n.i,null),n.fi(e,t),n.ci(),t}function AFn(n,e){var t,i;return n.Db>>16==17?n.Cb.ih(n,21,ro,e):(i=ir(u(On((t=u(Rn(n,16),26),t||n.zh()),n.Db>>16),18)),n.Cb.ih(n,i.n,i.f,e))}function N3e(n){var e,t,i,r;for(Pn(),bi(n.c,n.a),r=new E(n.c);r.a<r.c.c.length;)for(i=y(r),t=new E(n.b);t.a<t.c.c.length;)e=u(y(t),679),e.Ke(i)}function B3e(n){var e,t,i,r;for(Pn(),bi(n.c,n.a),r=new E(n.c);r.a<r.c.c.length;)for(i=y(r),t=new E(n.b);t.a<t.c.c.length;)e=u(y(t),369),e.Ke(i)}function R3e(n){var e,t,i,r,c;for(r=nt,c=null,i=new E(n.d);i.a<i.c.c.length;)t=u(y(i),213),t.d.j^t.e.j&&(e=t.e.e-t.d.e-t.a,e<r&&(r=e,c=t));return c}function fJ(){fJ=N,sWn=new In(Snn,(qn(),!1)),rWn=new In(Pnn,100),Frn=(W5(),NR),cWn=new In(Inn,Frn),uWn=new In(Onn,Kf),oWn=new In(Dnn,Q(nt))}function SFn(n,e,t){var i,r,c,o,f,h,l,a;for(l=0,r=n.a[e],c=0,o=r.length;c<o;++c)for(i=r[c],a=c6(i,t),h=a.Kc();h.Ob();)f=u(h.Pb(),11),it(n.f,f,Q(l++))}function _3e(n,e,t){var i,r,c,o;if(t)for(r=t.a.length,i=new fa(r),o=(i.b-i.a)*i.c<0?(nl(),Jl):new rl(i);o.Ob();)c=u(o.Pb(),19),Tn(n,e,G2(ub(t,c.a)))}function K3e(n,e,t){var i,r,c,o;if(t)for(r=t.a.length,i=new fa(r),o=(i.b-i.a)*i.c<0?(nl(),Jl):new rl(i);o.Ob();)c=u(o.Pb(),19),Tn(n,e,G2(ub(t,c.a)))}function hJ(n){yl();var e;return e=u(y7(k2(n.k),F(Zi,hc,61,2,0,1)),122),S3(e,0,e.length,null),e[0]==(J(),Kn)&&e[1]==Gn&&(Mt(e,0,Gn),Mt(e,1,Kn)),e}function PFn(n,e,t){var i,r,c;return r=M8e(n,e,t),c=JY(n,r),$$(n.b),l$(n,e,t),Pn(),bi(r,new d6n(n)),i=JY(n,r),$$(n.b),l$(n,t,e),new Pi(Q(c),Q(i))}function IFn(){IFn=N,pJn=Ze(new hi,(Qi(),Ir),(rr(),km)),bP=new ii("linearSegments.inputPrio",Q(0)),wP=new ii("linearSegments.outputPrio",Q(0))}function c4(){c4=N,gP=new zj("P1_TREEIFICATION",0),qm=new zj("P2_NODE_ORDERING",1),uy=new zj("P3_NODE_PLACEMENT",2),Gm=new zj("P4_EDGE_ROUTING",3)}function gb(){gb=N,DYn=(Xe(),Mp),$Yn=ed,SYn=Za,PYn=Kg,IYn=_l,AYn=_g,Ron=ky,OYn=rw,MK=($Y(),kYn),AK=yYn,_on=jYn,TP=EYn,MP=CYn,oy=TYn,Kon=MYn}function cs(){cs=N,Ey=new Xj("UNKNOWN",0),kh=new Xj("ABOVE",1),Kl=new Xj("BELOW",2),jy=new Xj("INLINE",3),new ii("org.eclipse.elk.labelSi
Line truncated
|
|
||||||
\r\f]+`);try{l9=A(M(lMe,1),rn,2015,0,[new D9((Cz(),PT("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",a8((wj(),wj(),dm))))),new D9(PT("yyyy-MM-dd'T'HH:mm:ss'.'SSS",a8(dm))),new D9(PT("yyyy-MM-dd'T'HH:mm:ss",a8(dm))),new D9(PT("yyyy-MM-dd'T'HH:mm",a8(dm))),new D9(PT("yyyy-MM-dd",a8(dm)))])}catch(n){if(n=jt(n),!I(n,78))throw T(n)}}function Wye(n){var e,t,i,r;if(i=jL((!n.c&&(n.c=h7(n.f)),n.c),0),n.e==0||n.a==0&&n.f!=-1&&n.e<0)return i;if(e=fV(n)<0?1:0,t=n.e,r=(i.length+1+j.Math.abs(Gt(n.e)),new R0),e==1&&(r.a+="-"),n.e>0)if(t-=i.length-e,t>=0){for(r.a+="0.";t>Ga.length;t-=Ga.length)YEn(r,Ga);Fjn(r,Ga,Gt(t)),De(r,i.substr(e))}else t=e-t,De(r,Yu(i,e,Gt(t))),r.a+=".",De(r,r8(i,Gt(t)));else{for(De(r,i.substr(e));t<-Ga.length;t+=Ga.length)YEn(r,Ga);Fjn(r,Ga,Gt(-t))}return r.a}function TZ(n,e,t,i){var r,c,o,f,h,l,a,d,g;return h=ki(new fn(t.a,t.b),n),l=h.a*e.b-h.b*e.a,a=e.a*i.b-e.b*i.a,d=(h.a*i.b-h.b*i.a)/a,g=l/a,a==0?l==0?(r=ot(new fn(t.a,t.b),If(new fn(i.a,i.b),.5)),c=al(n,r),o=al(ot(new fn(n.a,n.b),e),r),f=j.Math.sqrt(i.a*i.a+i.b*i.b)*.5,c<o&&c<=f?new fn(n.a,n.b):o<=f?ot(new fn(n.a,n.b),e):null):null:d>=0&&d<=1&&g>=0&&g<=1?ot(new fn(n.a,n.b),If(new fn(e.a,e.b),d)):null}function Xye(n,e,t){var i,r,c,o,f;if(i=u(k(n,(nn(),$_)),21),t.a>e.a&&(i.Hc((vb(),dy))?n.c.a+=(t.a-e.a)/2:i.Hc(by)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((vb(),gy))?n.c.b+=(t.b-e.b)/2:i.Hc(wy)&&(n.c.b+=t.b-e.b)),u(k(n,(G(),Mc)),21).Hc((or(),$s))&&(t.a>e.a||t.b>e.b))for(f=new E(n.a);f.a<f.c.c.length;)o=u(y(f),10),o.k==(Qn(),Xt)&&(r=u(k(o,ec),61),r==(J(),Vn)?o.n.a+=t.a-e.a:r==ae&&(o.n.b+=t.b-e.b));c=n.d,n.f.a=t.a-c.b-c.c,n.f.b=t.b-c.d-c.a}function Vye(n,e,t){var i,r,c,o,f;if(i=u(k(n,(nn(),$_)),21),t.a>e.a&&(i.Hc((vb(),dy))?n.c.a+=(t.a-e.a)/2:i.Hc(by)&&(n.c.a+=t.a-e.a)),t.b>e.b&&(i.Hc((vb(),gy))?n.c.b+=(t.b-e.b)/2:i.Hc(wy)&&(n.c.b+=t.b-e.b)),u(k(n,(G(),Mc)),21).Hc((or(),$s))&&(t.a>e.a||t.b>e.b))for(o=new E(n.a);o.a<o.c.c.length;)c=u(y(o),10),c.k==(Qn(),Xt)&&(r=u(k(c,ec),61),r==(J(),Vn)?c.n.a+=t.a-e.a:r==ae&&(c.n.b+=t.b-e.b));f=n.d,n.f.a=t.a-f.b-f.c,n.f.b=t.b-f.d-f.a}function Qye(n){var e,t,i,r,c,o,f,h,l,a,d,g;for(e=RLn(n),a=(f=new Rp(e).a.vc().Kc(),new bq(f));a.a.Ob();){for(l=(r=u(a.a.Pb(),42),u(r.cd(),10)),d=0,g=0,d=l.d.d,g=l.o.b+l.d.a,n.d[l.p]=0,t=l;(c=n.a[t.p])!=l;)i=ope(t,c),h=0,n.c==(Ff(),I1)?h=i.d.n.b+i.d.a.b-i.c.n.b-i.c.a.b:h=i.c.n.b+i.c.a.b-i.d.n.b-i.d.a.b,o=K(n.d[t.p])+h,n.d[c.p]=o,d=j.Math.max(d,c.d.d-o),g=j.Math.max(g,o+c.o.b+c.d.a),t=c;t=l;do n.d[t.p]=K(n.d[t.p])+d,t=n.a[t.p];while(t!=l);n.b[l.p]=d+g}}function uL(n){var e,t,i,r,c,o,f,h,l,a,d,g;for(n.b=!1,d=Ft,h=Vt,g=Ft,l=Vt,i=n.e.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),266),r=t.a,d=j.Math.min(d,r.c),h=j.Math.max(h,r.c+r.b),g=j.Math.min(g,r.d),l=j.Math.max(l,r.d+r.a),o=new E(t.c);o.a<o.c.c.length;)c=u(y(o),395),e=c.a,e.a?(a=r.d+c.b.b,f=a+c.c,g=j.Math.min(g,a),l=j.Math.max(l,f)):(a=r.c+c.b.a,f=a+c.c,d=j.Math.min(d,a),h=j.Math.max(h,f));n.a=new fn(h-d,l-g),n.c=new fn(d+n.d.a,g+n.d.b)}function Jye(n,e,t){var i,r,c,o,f,h,l,a,d;for(d=new X,a=new oX(0,t),c=0,XC(a,new lF(0,0,a,t)),r=0,l=new ie(n);l.e!=l.i.gc();)h=u(oe(l),33),i=u(un(a.a,a.a.c.length-1),187),f=r+h.g+(u(un(a.a,0),187).b.c.length==0?0:t),f>e&&(r=0,c+=a.b+t,d.c[d.c.length]=a,a=new oX(c,t),i=new lF(0,a.f,a,t),XC(a,i),r=0),i.b.c.length==0||h.f>=i.o&&h.f<=i.f||i.a*.5<=h.f&&i.a*1.5>=h.f?yQ(i,h):(o=new lF(i.s+i.r+t,a.f,a,t),XC(a,o),yQ(o,h)),r=h.i+h.g;return d.c[d.c.length]=a,d}function ig(n){var e,t,i,r,c,o,f,h;if(!n.a){if(n.o=null,h=new Smn(n),e=new J2n,t=b9,f=t.a.zc(n,t),f==null){for(o=new ie(Mr(n));o.e!=o.i.gc();)c=u(oe(o),26),Dt(h,ig(c));t.a.Bc(n)!=null,t.a.gc()==0}for(r=(!n.s&&(n.s=new V(su,n,21,17)),new ie(n.s));r.e!=r.i.gc();)i=u(oe(r),170),I(i,322)&&me(e,u(i,34));lb(e),n.k=new DEn(n,(u(D(R((ol(),Nn).o),7),18),e.i),e.g),Dt(h,n.k),lb(h),n.a=new Ew((u(D(R(Nn.o),4),18),h.i),h.g),Iu(n).b&=-2}return n.a}function Yye(n,e,t,i,r,c,o){var f,h,l,a,d,g;return d=!1,h=SNn(t.q,e.f+e.b-t.q.f),g=r-(t.q.e+h-o),g<i.g||(l=c==n.c.length-1&&g>=(Ln(c,n.c.length),u(n.c[c],200)).e,a=(f=O6(i,g,!1),f.a),a>e.b&&!l)?!1:((l||a<=e.b)&&(l&&a>e.b?(t.d=a,B8(t,Dxn(t,a))):(JFn(t.q,h),t.c=!0),B8(i,r-(t.s+t.r)),k7(i,t.q.e+t.q.d,e.f),XC(e,i),n.c.length>c&&(T7((Ln(c,n.c.length),u(n.c[c],200)),i),(Ln(c,n.c.length),u(n.c[c],200)).a.c.length==0&&h1(n,c)),d=!0),d)}function MZ(n,e,t,i){var r,c,o,f,h,l,a;if(a=Kc(n.e.Tg(),e),r=0,c=u(n.g,119),h=null,er(),u(e,66).Oj()){for(f=0;f<n.i;++f)if(o=c[f],a.rl(o.ak())){if(tt(o,t)){h=o;break}++r}}else if(t!=null){for(f=0;f<n.i;++f)if(o=c[f],a.rl(o.ak())){if(tt(t,o.dd())){h=o;break}++r}}else for(f=0;f<n.i;++f)if(o=c[f],a.rl(o.ak())){if(o.dd()==null){h=o;break}++r}return h&&(Hu(n.e)&&(l=e.$j()?new v$(n.e,4,e,t,null,r,!0):hl(n,e.Kj()?2:1,e,t,e.zj(),-1,!0),i?i.Ei(l):i=l),i=q7(n,h,i)),i}function sL(n,e,t,i,r,c,o){var f,h,l,a,d,g,p,v,m;switch(v=0,m=0,h=r.c,f=r.b,a=t.f,p=t.g,e.g){case 0:v=i.i+i.g+o,n.c?m=Ave(v,c,i,o):m=i.j,g=j.Math.max(h,v+p),l=j.Math.max(f,m+a);break;case 1:m=i.j+i.f+o,n.c?v=Mve(m,c,i,o):v=i.i,g=j.Math.max(h,v+p),l=j.Math.max(f,m+a);break;case 2:v=h+o,m=0,g
Line truncated
|
|
||||||
\r\r `),kr(Ug,YB,i),kr(Sv,YB,Mb(i)),i=new ns(4),v7(i,ZGn),kr(Ug,am,i),kr(Sv,am,Mb(i)),i=new ns(4),v7(i,ZGn),kr(Ug,am,i),kr(Sv,am,Mb(i)),i=new ns(4),v7(i,nzn),Ab(i,u(vc(Ug,am),117)),kr(Ug,JB,i),kr(Sv,JB,Mb(i)),i=new ns(4),v7(i,"-.0:AZ__az··ÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁːˑ̀͠͡ͅΆΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁ҃҆ҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆֹֻֽֿֿׁׂ֑֣֡ׄׄאתװײءغـْ٠٩ٰڷںھۀێېۓە۪ۭۨ۰۹ँःअह़्॑॔क़ॣ०९ঁঃঅঌএঐওনপরললশহ়়াৄেৈো্ৗৗড়ঢ়য়ৣ০ৱਂਂਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹ਼਼ਾੂੇੈੋ੍ਖ਼ੜਫ਼ਫ਼੦ੴઁઃઅઋઍઍએઑઓનપરલળવહ઼ૅેૉો્ૠૠ૦૯ଁଃଅଌଏଐଓନପରଲଳଶହ଼ୃେୈୋ୍ୖୗଡ଼ଢ଼ୟୡ୦୯ஂஃஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹாூெைொ்ௗௗ௧௯ఁఃఅఌఎఐఒనపళవహాౄెైొ్ౕౖౠౡ౦౯ಂಃಅಌಎಐಒನಪಳವಹಾೄೆೈೊ್ೕೖೞೞೠೡ೦೯ംഃഅഌഎഐഒനപഹാൃെൈൊ്ൗൗൠൡ൦൯กฮะฺเ๎๐๙ກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະູົຽເໄໆໆ່ໍ໐໙༘༙༠༩༹༹༵༵༷༷༾ཇཉཀྵ྄ཱ྆ྋྐྕྗྗྙྭྱྷྐྵྐྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼ⃐⃜⃡⃡ΩΩKÅ℮℮ↀↂ々々〇〇〡〯〱〵ぁゔ゙゚ゝゞァヺーヾㄅㄬ一龥가힣"),kr(Ug,ZB,i),kr(Sv,ZB,Mb(i)),i=new ns(4),v7(i,nzn),yc(i,95,95),yc(i,58,58),kr(Ug,nR,i),kr(Sv,nR,Mb(i))),t=u(vc(e?Ug:Sv,n),136),t}function $Te(n){ke(n.a,xe,A(M(tn,1),q,2,6,[We,"anySimpleType"])),ke(n.b,xe,A(M(tn,1),q,2,6,[We,"anyType",Xs,Ek])),ke(u(D(R(n.b),0),34),xe,A(M(tn,1),q,2,6,[Xs,UB,We,":mixed"])),ke(u(D(R(n.b),1),34),xe,A(M(tn,1),q,2,6,[Xs,UB,nin,XB,We,":1",RGn,"lax"])),ke(u(D(R(n.b),2),34),xe,A(M(tn,1),q,2,6,[Xs,xGn,nin,XB,We,":2",RGn,"lax"])),ke(n.c,xe,A(M(tn,1),q,2,6,[We,"anyURI",Qs,Uo])),ke(n.d,xe,A(M(tn,1),q,2,6,[We,"base64Binary",Qs,Uo])),ke(n.e,xe,A(M(tn,1),q,2,6,[We,X2,Qs,Uo])),ke(n.f,xe,A(M(tn,1),q,2,6,[We,"boolean:Object",Ri,X2])),ke(n.g,xe,A(M(tn,1),q,2,6,[We,cm])),ke(n.i,xe,A(M(tn,1),q,2,6,[We,"byte:Object",Ri,cm])),ke(n.j,xe,A(M(tn,1),q,2,6,[We,"date",Qs,Uo])),ke(n.k,xe,A(M(tn,1),q,2,6,[We,"dateTime",Qs,Uo])),ke(n.n,xe,A(M(tn,1),q,2,6,[We,"decimal",Qs,Uo])),ke(n.o,xe,A(M(tn,1),q,2,6,[We,um,Qs,Uo])),ke(n.p,xe,A(M(tn,1),q,2,6,[We,"double:Object",Ri,um])),ke(n.q,xe,A(M(tn,1),q,2,6,[We,"duration",Qs,Uo])),ke(n.s,xe,A(M(tn,1),q,2,6,[We,"ENTITIES",Ri,_Gn,ein,"1"])),ke(n.r,xe,A(M(tn,1),q,2,6,[We,_Gn,WB,tin])),ke(n.t,xe,A(M(tn,1),q,2,6,[We,tin,Ri,FA])),ke(n.u,xe,A(M(tn,1),q,2,6,[We,sm,Qs,Uo])),ke(n.v,xe,A(M(tn,1),q,2,6,[We,"float:Object",Ri,sm])),ke(n.w,xe,A(M(tn,1),q,2,6,[We,"gDay",Qs,Uo])),ke(n.B,xe,A(M(tn,1),q,2,6,[We,"gMonth",Qs,Uo])),ke(n.A,xe,A(M(tn,1),q,2,6,[We,"gMonthDay",Qs,Uo])),ke(n.C,xe,A(M(tn,1),q,2,6,[We,"gYear",Qs,Uo])),ke(n.D,xe,A(M(tn,1),q,2,6,[We,"gYearMonth",Qs,Uo])),ke(n.F,xe,A(M(tn,1),q,2,6,[We,"hexBinary",Qs,Uo])),ke(n.G,xe,A(M(tn,1),q,2,6,[We,"ID",Ri,FA])),ke(n.H,xe,A(M(tn,1),q,2,6,[We,"IDREF",Ri,FA])),ke(n.J,xe,A(M(tn,1),q,2,6,[We,"IDREFS",Ri,KGn,ein,"1"])),ke(n.I,xe,A(M(tn,1),q,2,6,[We,KGn,WB,"IDREF"])),ke(n.K,xe,A(M(tn,1),q,2,6,[We,om])),ke(n.M,xe,A(M(tn,1),q,2,6,[We,iin])),ke(n.L,xe,A(M(tn,1),q,2,6,[We,"int:Object",Ri,om])),ke(n.P,xe,A(M(tn,1),q,2,6,[We,"language",Ri,VB,QB,HGn])),ke(n.Q,xe,A(M(tn,1),q,2,6,[We,fm])),ke(n.R,xe,A(M(tn,1),q,2,6,[We,"long:Object",Ri,fm])),ke(n.S,xe,A(M(tn,1),q,2,6,[We,"Name",Ri,VB,QB,rin])),ke(n.T,xe,A(M(tn,1),q,2,6,[We,FA,Ri,"Name",QB,qGn])),ke(n.U,xe,A(M(tn,1),q,2,6,[We,"negativeInteger",Ri,GGn,Sk,"-1"])),ke(n.V,xe,A(M(tn,1),q,2,6,[We,cin,Ri,VB,QB,"\\c+"])),ke(n.X,xe,A(M(tn,1),q,2,6,[We,"NMTOKENS",Ri,zGn,ein,"1"])),ke(n.W,xe,A(M(tn,1),q,2,6,[We,zGn,WB,cin])),ke(n.Y,xe,A(M(tn,1),q,2,6,[We,uin,Ri,iin,Pk,"0"])),ke(n.Z,xe,A(M(tn,1),q,2,6,[We,GGn,Ri,iin,Sk,"0"])),ke(n.$,xe,A(M(tn,1),q,2,6,[We,UGn,Ri,EL,Qs,"replace"])),ke(n._,xe,A(M(tn,1),q,2,6,[We,"NOTATION",Qs,Uo])),ke(n.ab,xe,A(M(tn,1),q,2,6,[We,"positiveInteger",Ri,uin,Pk,"1"])),ke(n.bb,xe,A(M(tn,1),q,2,6,[We,"processingInstruction_._type",Xs,"empty"])),ke(u(D(R(n.bb),0),34),xe,A(M(tn,1),q,2,6,[Xs,IA,We,"data"])),ke(u(D(R(n.bb),1),34),xe,A(M(tn,1),q,2,6,[Xs,IA,We,_tn])),ke(n.cb,xe,A(M(tn,1),q,2,6,[We,"QName",Qs,Uo])),ke(n.db,xe,A(M(tn,1),q,2,6,[We,hm])),ke(n.eb,xe,A(M(tn,1),q,2,6,[We,"short:Object",Ri,hm])),ke(n.fb,xe,A(M(tn,1),q,2,6,[We,"simpleAnyType",Xs,Ck])),ke(u(D(R(n.fb),0),34),xe,A(M(tn,1),q,2,6,[We,":3",Xs,Ck])),ke(u(D(R(n.fb),1),34),xe,A(M(tn,1),q,2,6,[We,":4",Xs,Ck])),ke(u(D(R(n.fb),2),18),xe,A(M(tn
Line truncated
|
|
||||||
`,XKn=`)]}"' \r
|
|
||||||
`,VKn="The given string contains parts that cannot be parsed as numbers.",dk="org.eclipse.elk.core.math",QKn={3:1,4:1,142:1,207:1,414:1},JKn={3:1,4:1,116:1,207:1,414:1},Jn="org.eclipse.elk.layered",C1="org.eclipse.elk.alg.layered.graph.transform",YKn="ElkGraphImporter",ZKn="ElkGraphImporter/lambda$0$Type",nHn="ElkGraphImporter/lambda$1$Type",eHn="ElkGraphImporter/lambda$2$Type",tHn="ElkGraphImporter/lambda$4$Type",iHn="Node margin calculation",Un="org.eclipse.elk.alg.layered.intermediate",rHn="ONE_SIDED_GREEDY_SWITCH",cHn="TWO_SIDED_GREEDY_SWITCH",AN="No implementation is available for the layout processor ",Fnn="IntermediateProcessorStrategy",SN="Node '",uHn="FIRST_SEPARATE",sHn="LAST_SEPARATE",oHn="Odd port side processing",Qt="org.eclipse.elk.alg.layered.intermediate.compaction",U6="org.eclipse.elk.alg.layered.intermediate.greedyswitch",gh="org.eclipse.elk.alg.layered.p3order.counting",bk={225:1},cp="org.eclipse.elk.alg.layered.intermediate.loops",fs="org.eclipse.elk.alg.layered.intermediate.loops.ordering",Al="org.eclipse.elk.alg.layered.intermediate.loops.routing",W6="org.eclipse.elk.alg.layered.intermediate.preserveorder",qf="org.eclipse.elk.alg.layered.intermediate.wrapping",lc="org.eclipse.elk.alg.layered.options",PN="INTERACTIVE",fHn="DEPTH_FIRST",hHn="EDGE_LENGTH",lHn="SELF_LOOPS",aHn="firstTryWithInitialOrder",xnn="org.eclipse.elk.layered.directionCongruency",Lnn="org.eclipse.elk.layered.feedbackEdges",WM="org.eclipse.elk.layered.interactiveReferencePoint",Nnn="org.eclipse.elk.layered.mergeEdges",Bnn="org.eclipse.elk.layered.mergeHierarchyEdges",Rnn="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",_nn="org.eclipse.elk.layered.portSortingStrategy",Knn="org.eclipse.elk.layered.thoroughness",Hnn="org.eclipse.elk.layered.unnecessaryBendpoints",qnn="org.eclipse.elk.layered.generatePositionAndLayerIds",IN="org.eclipse.elk.layered.cycleBreaking.strategy",wk="org.eclipse.elk.layered.layering.strategy",Gnn="org.eclipse.elk.layered.layering.layerConstraint",znn="org.eclipse.elk.layered.layering.layerChoiceConstraint",Unn="org.eclipse.elk.layered.layering.layerId",ON="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",DN="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",$N="org.eclipse.elk.layered.layering.nodePromotion.strategy",FN="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",xN="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",X6="org.eclipse.elk.layered.crossingMinimization.strategy",Wnn="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",LN="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",NN="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Xnn="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",Vnn="org.eclipse.elk.layered.crossingMinimization.positionId",Qnn="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",BN="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",XM="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",lg="org.eclipse.elk.layered.nodePlacement.strategy",VM="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",RN="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",_N="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",KN="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",HN="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",qN="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Jnn="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Ynn="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",QM="org.eclipse.elk.layered.edgeRouting.splines.mode",JM="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",GN="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",Znn="org.eclipse.elk.layered.spacing.baseValue",nen="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",een="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",ten="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",ien="org.eclipse.elk.layered.priority.direction",ren="org.eclipse.elk.layered.priority.shortness",cen="org.eclipse.elk.layered.priority.straightness",zN="org.eclipse.elk.layered.compaction.connectedComponents",uen="org.eclipse.elk.layered.compaction.postCompaction.strategy",sen="org.eclipse.elk.layered.compaction.postCompaction.constraints",YM="org.eclipse.elk.layered.highDegreeNodes.treatment",UN="org.eclipse.elk.layered.highDegreeNodes.threshold",WN="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Vh="org.eclipse.elk.layered.wrapping.strategy",ZM="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",nA="org.eclipse.elk.layered.wrapping.correctionFactor",V6="org.eclipse.elk.layered.wrapping.cutting.strategy",XN="org.eclipse.elk.layered.wrapping.cutting.cuts",VN="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",eA="org.eclipse.elk.layered.wrapping.validify.strategy",tA
Line truncated
|
|
||||||
`,e=Q(0),o=0;o<this.p;o++){for(i+=""+e.a,e=Q($jn(e.a)),r=0;r<this.o;r++)t=Q$(this,r,o),fc(t,0)==0?i+="_":fc(t,1)==0?i+="X":i+="0";i+=`
|
|
||||||
`}return Yu(i,0,i.length-1)},s.o=0,s.p=0,w(BM,"TwoBitGrid",1298),b(321,1298,{321:1},xQ),s.j=0,s.k=0,w(BM,"PlanarGrid",321),b(167,321,{321:1,167:1}),s.g=0,s.i=0,w(BM,"Polyomino",167);var QTe=Et(ok,DKn);b(134,1,wnn,pI),s.Ye=function(e,t){return s7(this,e,t)},s.Ve=function(){return eCn(this)},s.We=function(e){return k(this,e)},s.Xe=function(e){return li(this,e)},w(ok,"MapPropertyHolder",134),b(1299,134,wnn,FNn),w(BM,"Polyominoes",1299);var AUn=!1,gm,vrn;b(1766,1,Yn,can),s.td=function(e){DRn(u(e,221))},w(np,"DepthFirstCompaction/0methodref$compactTree$Type",1766),b(810,1,Yn,Aq),s.td=function(e){$he(this.a,u(e,221))},w(np,"DepthFirstCompaction/lambda$1$Type",810),b(1767,1,Yn,bEn),s.td=function(e){ipe(this.a,this.b,this.c,u(e,221))},w(np,"DepthFirstCompaction/lambda$2$Type",1767);var pm,mrn;b(65,1,{65:1},yMn),w(np,"Node",65),b(1250,1,{},jyn),w(np,"ScanlineOverlapCheck",1250),b(1251,1,{679:1},KTn),s.Ke=function(e){gue(this,u(e,440))},w(np,"ScanlineOverlapCheck/OverlapsScanlineHandler",1251),b(1252,1,lt,uan),s.ue=function(e,t){return Rge(u(e,65),u(t,65))},s.Fb=function(e){return this===e},s.ve=function(){return new st(this)},w(np,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1252),b(440,1,{440:1},KG),s.a=!1,w(np,"ScanlineOverlapCheck/Timestamp",440),b(1253,1,lt,san),s.ue=function(e,t){return w4e(u(e,440),u(t,440))},s.Fb=function(e){return this===e},s.ve=function(){return new st(this)},w(np,"ScanlineOverlapCheck/lambda$0$Type",1253),b(550,1,{},Wy),w($Kn,"SVGImage",550),b(324,1,{324:1},FU),s.Ib=function(){return"("+this.a+Ji+this.b+Ji+this.c+")"},w($Kn,"UniqueTriple",324),b(209,1,xa),w(og,"AbstractLayoutProvider",209),b(1132,209,xa,oan),s.Ze=function(e,t){var i,r,c,o;switch(le(t,FKn,1),this.a=K(Y(hn(e,(a6(),Trn)))),wa(e,PR)&&(c=Ce(hn(e,PR)),i=Vx(N3(),c),i&&(r=u(n$(i.f),209),r.Ze(e,kc(t,1)))),o=new NAn(this.a),this.b=rCe(o,e),u(hn(e,(pF(),yrn)),481).g){case 0:kme(new fan,this.b),gr(e,nS,k(this.b,nS));break;default:Zf()}aCe(o),gr(e,Ern,this.b),ce(t)},s.a=0,w(xKn,"DisCoLayoutProvider",1132),b(1244,1,{},fan),s.c=!1,s.e=0,s.f=0,w(xKn,"DisCoPolyominoCompactor",1244),b(561,1,{561:1},uCn),s.b=!0,w(_M,"DCComponent",561),b(394,22,{3:1,35:1,22:1,394:1},Bj),s.a=!1;var YA,Lk,ZA,Nk,SUn=Me(_M,"DCDirection",394,Ie,vae,cse),PUn;b(266,134,{3:1,266:1,94:1,134:1},xx),w(_M,"DCElement",266),b(395,1,{395:1},cJ),s.c=0,w(_M,"DCExtension",395),b(755,134,wnn,i8n),w(_M,"DCGraph",755),b(481,22,{3:1,35:1,22:1,481:1},sjn);var SR,krn=Me(pN,gnn,481,Ie,Xhe,use),IUn;b(854,1,zs,u4n),s.Qe=function(e){En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,pnn),LKn),"Connected Components Compaction Strategy"),"Strategy for packing different connected components in order to save space and enhance readability of a graph."),jrn),(y1(),Nt)),krn),Cn((Ho(),Xn))))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,vnn),LKn),"Connected Components Layout Algorithm"),"A layout algorithm that is to be applied to each connected component before the components themselves are compacted. If unspecified, the positions of the components' nodes are not altered."),kv),tn),Cn(Xn)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,mnn),"debug"),"DCGraph"),"Access to the DCGraph is intended for the debug view,"),yf),Zn),Cn(Xn)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,knn),"debug"),"List of Polyominoes"),"Access to the polyominoes is intended for the debug view,"),yf),Zn),Cn(Xn)))),kRn((new s4n,e))};var OUn,yrn,jrn,DUn,$Un;w(pN,"DisCoMetaDataProvider",854),b(998,1,zs,s4n),s.Qe=function(e){kRn(e)};var FUn,PR,xUn,Ern,nS,IR,Crn,LUn,NUn,BUn,RUn,Trn;w(pN,"DisCoOptions",998),b(999,1,{},han),s.$e=function(){var e;return e=new oan,e},s._e=function(e){},w(pN,"DisCoOptions/DiscoFactory",999),b(562,167,{321:1,167:1,562:1},pNn),s.a=0,s.b=0,s.c=0,s.d=0,w("org.eclipse.elk.alg.disco.structures","DCPolyomino",562);var OR,DR,eS;b(1268,1,Ve,lan),s.Mb=function(e){return gz(e)},w(fg,"ElkGraphComponentsProcessor/lambda$0$Type",1268),b(1269,1,{},aan),s.Kb=function(e){return C2(),fh(u(e,79))},w(fg,"ElkGraphComponentsProcessor/lambda$1$Type",1269),b(1270,1,Ve,dan),s.Mb=function(e){return cfe(u(e,79))},w(fg,"ElkGraphComponentsProcessor/lambda$2$Type",1270),b(1271,1,{},ban),s.Kb=function(e){return C2(),ml(u(e,79))},w(fg,"ElkGraphComponentsProcessor/lambda$3$Type",1271),b(1272,1,Ve,wan),s.Mb=function(e){return ufe(u(e,79))},w(fg,"ElkGraphComponentsProcessor/lambda$4$Type",1272),b(1273,1,Ve,c5n),s.Mb=function(e){return Q1e(this.a,u(e,79))},w(fg,"ElkGraphComponentsProcessor/lambda$5$Type",1273),b(1274,1,{},u5n),s.Kb=function(e){return bhe(this.a,u(e,79))},w(fg,"ElkGraphComponentsProcessor/lambda$6$Type",1274),b(1241,1,{},NAn),s.a=0,w(fg,"ElkGraphTransformer",1241),b(1242,1,{},gan),s.Od=function(e,t){cme(this,u(e,160),u(t,266))},w(fg,"ElkGraphTransformer/OffsetApplier",1242),b(1243,1,Yn,s5n),s.td=function(e){Ice(this,u(e,8))},w(fg,"ElkGraphTransformer/OffsetApplier/OffSetToChainApplier",1243),b(753,1,{},LH),w(jnn,Enn,753),b(1232,1,lt,pan),s.ue=function(e,t){return z6e(u(e,231),u(t,231))},s.Fb=function(e){return this===
Line truncated
|
|
||||||
start=`,rc(e,this.i),e.a+=`
|
|
||||||
end=`,rc(e,this.a),e.a+=`
|
|
||||||
nodeStartEdge=`,rc(e,this.e),e.a+=`
|
|
||||||
startEndEdge=`,rc(e,this.j),e.a+=`
|
|
||||||
originalEdge=`,rc(e,this.f),e.a+=`
|
|
||||||
startInLayerDummy=`,rc(e,this.k),e.a+=`
|
|
||||||
startInLayerEdge=`,rc(e,this.n),e.a+=`
|
|
||||||
endInLayerDummy=`,rc(e,this.b),e.a+=`
|
|
||||||
endInLayerEdge=`,rc(e,this.c),e.a},w(qf,"BreakingPointInserter/BPInfo",305),b(652,1,{652:1},u6n),s.a=!1,s.b=0,s.c=0,w(qf,"BreakingPointInserter/Cut",652),b(1480,1,xt,dwn),s.pf=function(e,t){$9e(u(e,37),t)},w(qf,"BreakingPointProcessor",1480),b(1481,1,Ve,bwn),s.Mb=function(e){return eIn(u(e,10))},w(qf,"BreakingPointProcessor/0methodref$isEnd$Type",1481),b(1482,1,Ve,wwn),s.Mb=function(e){return tIn(u(e,10))},w(qf,"BreakingPointProcessor/1methodref$isStart$Type",1482),b(1483,1,xt,gwn),s.pf=function(e,t){t8e(this,u(e,37),t)},w(qf,"BreakingPointRemover",1483),b(1484,1,Yn,pwn),s.td=function(e){u(e,128).k=!0},w(qf,"BreakingPointRemover/lambda$0$Type",1484),b(797,1,{},PY),s.b=0,s.e=0,s.f=0,s.j=0,w(qf,"GraphStats",797),b(798,1,{},HH),s.Ce=function(e,t){return j.Math.max(K(Y(e)),K(Y(t)))},w(qf,"GraphStats/0methodref$max$Type",798),b(799,1,{},qH),s.Ce=function(e,t){return j.Math.max(K(Y(e)),K(Y(t)))},w(qf,"GraphStats/2methodref$max$Type",799),b(1660,1,{},vwn),s.Ce=function(e,t){return Koe(Y(e),Y(t))},w(qf,"GraphStats/lambda$1$Type",1660),b(1661,1,{},Y5n),s.Kb=function(e){return G$n(this.a,u(e,29))},w(qf,"GraphStats/lambda$2$Type",1661),b(1662,1,{},Z5n),s.Kb=function(e){return TNn(this.a,u(e,29))},w(qf,"GraphStats/lambda$6$Type",1662),b(800,1,{},GH),s.Vf=function(e,t){var i;return i=u(k(e,(nn(),$sn)),15),i||(Pn(),Pn(),cr)},s.Wf=function(){return!1},w(qf,"ICutIndexCalculator/ManualCutIndexCalculator",800),b(802,1,{},zH),s.Vf=function(e,t){var i,r,c,o,f,h,l,a,d,g,p,v,m,C,S,$,O,x,_;for(_=(t.n==null&&bFn(t),t.n),l=(t.d==null&&bFn(t),t.d),x=F(ji,pr,25,_.length,15,1),x[0]=_[0],$=_[0],a=1;a<_.length;a++)x[a]=x[a-1]+_[a],$+=_[a];for(c=Ixn(t)-1,f=u(k(e,(nn(),Fsn)),19).a,r=Vt,i=new X,p=j.Math.max(0,c-f);p<=j.Math.min(t.f-1,c+f);p++){if(C=$/(p+1),S=0,d=1,o=new X,O=Vt,g=0,h=0,m=l[0],p==0)O=$,h=(t.g==null&&(t.g=sOn(t,new qH)),K(t.g));else{for(;d<t.f;)x[d-1]-S>=C&&(W(o,Q(d)),O=j.Math.max(O,x[d-1]-g),h+=m,S+=x[d-1]-S,g=x[d-1],m=l[d]),m=j.Math.max(m,l[d]),++d;h+=m}v=j.Math.min(1/O,1/t.b/h),v>r&&(r=v,i=o)}return i},s.Wf=function(){return!1},w(qf,"MSDCutIndexHeuristic",802),b(1617,1,xt,mwn),s.pf=function(e,t){Sye(u(e,37),t)},w(qf,"SingleEdgeGraphWrapper",1617),b(227,22,{3:1,35:1,22:1,227:1},i5);var Eg,tv,iv,qb,ym,Cg,rv=Me(lc,"CenterEdgeLabelPlacementStrategy",227,Ie,Rde,pse),uXn;b(422,22,{3:1,35:1,22:1,422:1},WG);var Bcn,s_,Rcn=Me(lc,"ConstraintCalculationStrategy",422,Ie,P1e,vse),sXn;b(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},dO),s.Kf=function(){return pLn(this)},s.Xf=function(){return pLn(this)};var qk,ap,_cn,Kcn=Me(lc,"CrossingMinimizationStrategy",314,Ie,yle,mse),oXn;b(337,22,{3:1,35:1,22:1,337:1},bO);var Hcn,o_,DS,qcn=Me(lc,"CuttingStrategy",337,Ie,jle,jse),fXn;b(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},X9),s.Kf=function(){return iNn(this)},s.Xf=function(){return iNn(this)};var Gcn,f_,jm,h_,Em,zcn=Me(lc,"CycleBreakingStrategy",335,Ie,lde,Ese),hXn;b(419,22,{3:1,35:1,22:1,419:1},XG);var $S,Ucn,Wcn=Me(lc,"DirectionCongruency",419,Ie,S1e,Cse),lXn;b(450,22,{3:1,35:1,22:1,450:1},wO);var cv,l_,Tg,aXn=Me(lc,"EdgeConstraint",450,Ie,Ele,Tse),dXn;b(276,22,{3:1,35:1,22:1,276:1},r5);var a_,d_,b_,w_,FS,g_,Xcn=Me(lc,"EdgeLabelSideSelection",276,Ie,qde,Mse),bXn;b(479,22,{3:1,35:1,22:1,479:1},VG);var xS,Vcn,Qcn=Me(lc,"EdgeStraighteningStrategy",479,Ie,A1e,Ase),wXn;b(274,22,{3:1,35:1,22:1,274:1},c5);var p_,Jcn,Ycn,LS,Zcn,nun,eun=Me(lc,"FixedAlignment",274,Ie,Kde,Sse),gXn;b(275,22,{3:1,35:1,22:1,275:1},u5);var tun,iun,run,cun,Cm,uun,sun=Me(lc,"GraphCompactionStrategy",275,Ie,_de,Pse),pXn;b(256,22,{3:1,35:1,22:1,256:1},H0);var uv,NS,sv,$s,Tm,BS,ov,Mg,RS,Mm,v_=Me(lc,"GraphProperties",256,Ie,Sbe,Ise),vXn;b(292,22,{3:1,35:1,22:1,292:1},gO);var Gk,m_,k_,y_=Me(lc,"GreedySwitchType",292,Ie,Mle,Ose),mXn;b(303,22,{3:1,35:1,22:1,303:1},pO);var dp,zk,Ag,kXn=Me(lc,"InLayerConstraint",303,Ie,Tle,Dse),yXn;b(420,22,{3:1,35:1,22:1,420:1},QG);var j_,oun,fun=Me(lc,"InteractiveReferencePoint",420,Ie,I1e,$se),jXn,hun,bp,p0,_S,lun,aun,KS,dun,Uk,HS,Am,wp,Gb,E_,qS,ec,bun,v0,Mc,C_,T_,Wk,za,m0,gp,wun,pp,Xk,zb,Xo,Ys,M_,Sg,dc,rt,gun,pun,vun,mun,kun,A_,GS,Mu,k0,S_,vp,Vk,mf,Pg,fv,Ig,Og,hv,Ua,yun,P_,I_,mp;b(163,22,{3:1,35:1,22:1,163:1},Q9);var Sm,xl,Pm,Ub,Qk,jun=Me(lc,"LayerConstraint",163,Ie,bde,Fse),EXn;b(848,1,zs,A4n),s.Qe=function(e){En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,xnn),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),Dun),(y1(),Nt)),Wcn),Cn((Ho(),Xn))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Lnn),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(qn(),!1)),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,WM),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Bun),Nt),fun),Cn(Xn)))),Ci(e,WM,IN,bVn),Ci(e,WM,X6,dVn),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Nnn
Line truncated
|
|
||||||
`;for(t=_e(this.a,0);t.b!=t.d.c;)e=u(Re(t),188),c+=(e.b&&e.c?wC(e.b)+"->"+wC(e.c):"e_"+mt(e))+`
|
|
||||||
`;return c};var rMe=w(J6,"TGraph",135);b(633,502,{3:1,502:1,633:1,94:1,134:1}),w(J6,"TShape",633),b(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},hF),s.Ib=function(){return wC(this)};var cMe=w(J6,"TNode",86);b(255,1,lh,X1),s.Jc=function(e){$i(this,e)},s.Kc=function(){var e;return e=_e(this.a.d,0),new e2(e)},w(J6,"TNode/2",255),b(358,1,yi,e2),s.Nb=function(e){Oi(this,e)},s.Pb=function(){return u(Re(this.a),188).c},s.Ob=function(){return yj(this.a)},s.Qb=function(){HC(this.a)},w(J6,"TNode/2/1",358),b(1840,1,xt,Hjn),s.pf=function(e,t){gye(this,u(e,135),t)},w(up,"FanProcessor",1840),b(327,22,{3:1,35:1,22:1,327:1,234:1},o5),s.Kf=function(){switch(this.g){case 0:return new S9n;case 1:return new Hjn;case 2:return new jgn;case 3:return new kgn;case 4:return new Cgn;case 5:return new Tgn;default:throw T(new Hn(AN+(this.f!=null?this.f:""+this.g)))}};var lK,aK,dK,bK,wK,pP,XJn=Me(up,Fnn,327,Ie,Gde,eoe),VJn;b(1843,1,xt,kgn),s.pf=function(e,t){Yme(this,u(e,135),t)},s.a=0,w(up,"LevelHeightProcessor",1843),b(1844,1,lh,ygn),s.Jc=function(e){$i(this,e)},s.Kc=function(){return Pn(),Zp(),X4},w(up,"LevelHeightProcessor/1",1844),b(1841,1,xt,jgn),s.pf=function(e,t){c6e(this,u(e,135),t)},s.a=0,w(up,"NeighborsProcessor",1841),b(1842,1,lh,Egn),s.Jc=function(e){$i(this,e)},s.Kc=function(){return Pn(),Zp(),X4},w(up,"NeighborsProcessor/1",1842),b(1845,1,xt,Cgn),s.pf=function(e,t){Jme(this,u(e,135),t)},s.a=0,w(up,"NodePositionProcessor",1845),b(1839,1,xt,S9n),s.pf=function(e,t){Eje(this,u(e,135))},w(up,"RootProcessor",1839),b(1846,1,xt,Tgn),s.pf=function(e,t){Dge(u(e,135))},w(up,"Untreeifyer",1846);var sy,zm,QJn,gK,vP,Um,pK,mP,kP,vv,Wm,yP,O1,gon,JJn,vK,iw,mK,pon;b(851,1,zs,G4n),s.Qe=function(e){En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Zen),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),mon),(y1(),Nt)),Mon),Cn((Ho(),Xn))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,ntn),""),"Search Order"),"Which search order to use when computing a spanning tree."),von),Nt),Son),Cn(Xn)))),QRn((new q4n,e))};var YJn,von,ZJn,mon;w(lA,"MrTreeMetaDataProvider",851),b(994,1,zs,q4n),s.Qe=function(e){QRn(e)};var nYn,kon,eYn,tYn,iYn,rYn,yon,cYn,jon,uYn,jP,Eon,sYn,Con,oYn;w(lA,"MrTreeOptions",994),b(995,1,{},Mgn),s.$e=function(){var e;return e=new qjn,e},s._e=function(e){},w(lA,"MrTreeOptions/MrtreeFactory",995),b(480,22,{3:1,35:1,22:1,480:1},rz);var kK,Ton,Mon=Me(lA,"OrderWeighting",480,Ie,B1e,toe),fYn;b(425,22,{3:1,35:1,22:1,425:1},cz);var Aon,yK,Son=Me(lA,"TreeifyingOrder",425,Ie,N1e,roe),hYn;b(1459,1,Ec,F4n),s.Yf=function(e){return u(e,135),lYn},s.pf=function(e,t){Obe(this,u(e,135),t)};var lYn;w("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1459),b(1460,1,Ec,x4n),s.Yf=function(e){return u(e,135),aYn},s.pf=function(e,t){w6e(this,u(e,135),t)};var aYn;w("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1460),b(1461,1,Ec,$4n),s.Yf=function(e){return u(e,135),dYn},s.pf=function(e,t){D7e(this,u(e,135),t)},s.a=0;var dYn;w("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1461),b(1462,1,Ec,L4n),s.Yf=function(e){return u(e,135),bYn},s.pf=function(e,t){r4e(u(e,135),t)};var bYn;w("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1462);var Xm;b(495,22,{3:1,35:1,22:1,495:1,246:1,234:1},uz),s.Kf=function(){return t$n(this)},s.Xf=function(){return t$n(this)};var EP,mv,Pon=Me(etn,"RadialLayoutPhases",495,Ie,R1e,ioe),wYn;b(1131,209,xa,j8n),s.Ze=function(e,t){var i,r,c,o,f,h;if(i=cLn(this,e),le(t,"Radial layout",i.c.length),on(sn(hn(e,(gb(),Ron))))||oC((r=new O9((K0(),new N0(e))),r)),h=yve(e),gr(e,(C5(),Xm),h),!h)throw T(new Hn("The given graph is not a tree!"));for(c=K(Y(hn(e,MP))),c==0&&(c=mLn(e)),gr(e,MP,c),f=new E(cLn(this,e));f.a<f.c.c.length;)o=u(y(f),51),o.pf(e,kc(t,1));ce(t)},w(etn,"RadialLayoutProvider",1131),b(549,1,lt,jj),s.ue=function(e,t){return W7e(this.a,this.b,u(e,33),u(t,33))},s.Fb=function(e){return this===e},s.ve=function(){return new st(this)},s.a=0,s.b=0,w(etn,"RadialUtil/lambda$0$Type",549),b(1375,1,xt,Sgn),s.pf=function(e,t){aEe(u(e,33),t)},w(OHn,"CalculateGraphSize",1375),b(442,22,{3:1,35:1,22:1,442:1,234:1},MO),s.Kf=function(){switch(this.g){case 0:return new $gn;case 1:return new Agn;case 2:return new Sgn;default:throw T(new Hn(AN+(this.f!=null?this.f:""+this.g)))}};var jK,EK,CK,gYn=Me(OHn,Fnn,442,Ie,Fle,coe),pYn;b(645,1,{}),s.e=1,s.g=0,w(hB,"AbstractRadiusExtensionCompaction",645),b(1772,645,{},kjn),s.hg=function(e){var t,i,r,c,o,f,h,l,a;for(this.c=u(hn(e,(C5(),Xm)),33),gte(this,this.c),this.d=XF(u(hn(e,(gb(),oy)),293)),l=u(hn(e,MK),19),l&&Pvn(this,l.a),h=Y(hn(e,(Xe(),ed))),dq(this,(_n(h),h)),a=Cb(this.c),this.d&&this.d.lg(a),oke(this,a),f=new Ku(A(M(Pt,1),DHn,33,0,[this.c])),i=0;i<2;i++)for(t=0;t<a.c.length;t++)c=new Ku(A(M(Pt,1),DHn,33,0,[(Ln(t,a.c.length),u(a.c[t],33))])),o=t<a.c.length-1?(Ln(t+1,a.c.length),u(a.c[t+1],33)):(Ln(0,a.c.length),u(a.c[0],33)),r=t==0?u(un(a,a.c.length-1),33):(Ln(t-1,a.c.length),u(a.c[t-1],33)),axn(this,(Ln(t,a.c.length),u(a.c[t],33),f),r,o,c)},w(hB,"AnnulusWedgeCompaction",1772
Line truncated
|
|
||||||
`),c.length!=2)throw T(new Hn("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=kb(mb(c[0])),this.b=kb(mb(c[1]))}catch(o){throw o=jt(o),I(o,127)?(i=o,T(new Hn(VKn+i))):T(o)}},s.Ib=function(){return"("+this.a+","+this.b+")"},s.a=0,s.b=0;var ai=w(dk,"KVector",8);b(74,68,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1,74:1,414:1},hu,mj,ljn),s.Pc=function(){return Gwe(this)},s.Jf=function(e){var t,i,r,c,o,f;r=Tb(e,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
|
|
||||||
`),_s(this);try{for(i=0,o=0,c=0,f=0;i<r.length;)r[i]!=null&&mb(r[i]).length>0&&(o%2==0?c=kb(r[i]):f=kb(r[i]),o>0&&o%2!=0&&Ke(this,new fn(c,f)),++o),++i}catch(h){throw h=jt(h),I(h,127)?(t=h,T(new Hn("The given string does not match the expected format for vectors."+t))):T(h)}},s.Ib=function(){var e,t,i;for(e=new Ju("("),t=_e(this,0);t.b!=t.d.c;)i=u(Re(t),8),De(e,i.a+","+i.b),t.b!=t.d.c&&(e.a+="; ");return(e.a+=")",e).a};var Bfn=w(dk,"KVectorChain",74);b(248,22,{3:1,35:1,22:1,248:1},f5);var HK,$P,FP,ly,ay,xP,Rfn=Me(Ws,"Alignment",248,Ie,Bde,yoe),FZn;b(979,1,zs,Q4n),s.Qe=function(e){zBn(e)};var _fn,qK,xZn,Kfn,Hfn,LZn,qfn,NZn,BZn,Gfn,zfn,RZn;w(Ws,"BoxLayouterOptions",979),b(980,1,{},m2n),s.$e=function(){var e;return e=new A2n,e},s._e=function(e){},w(Ws,"BoxLayouterOptions/BoxFactory",980),b(291,22,{3:1,35:1,22:1,291:1},h5);var dy,GK,by,wy,gy,zK,UK=Me(Ws,"ContentAlignment",291,Ie,Nde,joe),_Zn;b(684,1,zs,nq),s.Qe=function(e){En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,GHn),""),"Layout Algorithm"),"Select a specific layout algorithm."),(y1(),kv)),tn),Cn((Ho(),Xn))))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,zHn),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),yf),oMe),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Oen),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Ufn),Nt),Rfn),Cn(pi)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,ep),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Or),Mi),Cn(Xn)))),En(e,new bn(yn(kn(jn(gn(mn(pn(vn(new dn,Ttn),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),yf),Bfn),Cn(Yf)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,sA),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),Xfn),Cp),UK),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,mk),""),"Debug Mode"),"Whether additional debug information shall be generated."),(qn(),!1)),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,Fen),""),bnn),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Vfn),Nt),e9),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,pk),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),Yfn),Nt),cH),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,dA),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,uA),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),thn),Nt),Khn),pt(Xn,A(M($1,1),z,175,0,[pi]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,u0),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),ahn),yf),Wrn),pt(Xn,A(M($1,1),z,175,0,[pi]))))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,lk),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,cB),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),_i),si),Cn(Xn)))),En(e,new bn(yn(kn(jn(Dn(gn(mn(pn(vn(new dn,G6),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The function
Line truncated
|
|
||||||
Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
|
|
||||||
... Falling back to non-web worker version.`);if(!Si.workerFactory){var Nc=ut("./elk-worker.min.js"),ps=Nc.Worker;Si.workerFactory=function(Rr){return new ps(Rr)}}return j(this,(Ge.__proto__||Object.getPrototypeOf(Ge)).call(this,Si))}return Ge}(ou);Object.defineProperty(dt.exports,"__esModule",{value:!0}),dt.exports=Ot,Ot.default=Ot},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(ut,dt,Bt){dt.exports=Worker},{}]},{},[3])(3)})})(Uee);var CMe=Uee.exports;const TMe=jMe(CMe),MMe=(Ae,It,ut)=>{const{parentById:dt}=ut,Bt=new Set;let Ai=Ae;for(;Ai;){if(Bt.add(Ai),Ai===It)return Ai;Ai=dt[Ai]}for(Ai=It;Ai;){if(Bt.has(Ai))return Ai;Ai=dt[Ai]}return"root"},qee=new TMe;let x0={};const AMe={};let Lp={};const SMe=async function(Ae,It,ut,dt,Bt,Ai,j){const ou=ut.select(`[id="${It}"]`).insert("g").attr("class","nodes"),Ot=Object.keys(Ae);return await Promise.all(Ot.map(async function(qt){const Ge=Ae[qt];let Ki="default";Ge.classes.length>0&&(Ki=Ge.classes.join(" ")),Ki=Ki+" flowchart-label";const Si=V1n(Ge.styles);let Mn=Ge.text!==void 0?Ge.text:Ge.id;const Lc={width:0,height:0},Nc=[{id:Ge.id+"-west",layoutOptions:{"port.side":"WEST"}},{id:Ge.id+"-east",layoutOptions:{"port.side":"EAST"}},{id:Ge.id+"-south",layoutOptions:{"port.side":"SOUTH"}},{id:Ge.id+"-north",layoutOptions:{"port.side":"NORTH"}}];let ps=0,Rr="",Ch={};switch(Ge.type){case"round":ps=5,Rr="rect";break;case"square":Rr="rect";break;case"diamond":Rr="question",Ch={portConstraints:"FIXED_SIDE"};break;case"hexagon":Rr="hexagon";break;case"odd":Rr="rect_left_inv_arrow";break;case"lean_right":Rr="lean_right";break;case"lean_left":Rr="lean_left";break;case"trapezoid":Rr="trapezoid";break;case"inv_trapezoid":Rr="inv_trapezoid";break;case"odd_right":Rr="rect_left_inv_arrow";break;case"circle":Rr="circle";break;case"ellipse":Rr="ellipse";break;case"stadium":Rr="stadium";break;case"subroutine":Rr="subroutine";break;case"cylinder":Rr="cylinder";break;case"group":Rr="rect";break;case"doublecircle":Rr="doublecircle";break;default:Rr="rect"}const H1={labelStyle:Si.labelStyle,shape:Rr,labelText:Mn,labelType:Ge.labelType,rx:ps,ry:ps,class:Ki,style:Si.style,id:Ge.id,link:Ge.link,linkTarget:Ge.linkTarget,tooltip:Bt.db.getTooltip(Ge.id)||"",domId:Bt.db.lookUpDomId(Ge.id),haveCallback:Ge.haveCallback,width:Ge.type==="group"?500:void 0,dir:Ge.dir,type:Ge.type,props:Ge.props,padding:OH().flowchart.padding};let q1,ww;if(H1.type!=="group")ww=await mMe(ou,H1,Ge.dir),q1=ww.node().getBBox();else{dt.createElementNS("http://www.w3.org/2000/svg","text");const{shapeSvg:G1,bbox:Th}=await kMe(ou,H1,void 0,!0);Lc.width=Th.width,Lc.wrappingWidth=OH().flowchart.wrappingWidth,Lc.height=Th.height,Lc.labelNode=G1.node(),H1.labelData=Lc}const Np={id:Ge.id,ports:Ge.type==="diamond"?Nc:[],layoutOptions:Ch,labelText:Mn,labelData:Lc,domId:Bt.db.lookUpDomId(Ge.id),width:q1==null?void 0:q1.width,height:q1==null?void 0:q1.height,type:Ge.type,el:ww,parent:Ai.parentById[Ge.id]};Lp[H1.id]=Np})),j},Gee=(Ae,It,ut)=>{const dt={TB:{in:{north:"north"},out:{south:"west",west:"east",east:"south"}},LR:{in:{west:"west"},out:{east:"south",south:"north",north:"east"}},RL:{in:{east:"east"},out:{west:"north",north:"south",south:"west"}},BT:{in:{south:"south"},out:{north:"east",east:"west",west:"north"}}};return dt.TD=dt.TB,K1.info("abc88",ut,It,Ae),dt[ut][It][Ae]},zee=(Ae,It,ut)=>{if(K1.info("getNextPort abc88",{node:Ae,edgeDirection:It,graphDirection:ut}),!x0[Ae])switch(ut){case"TB":case"TD":x0[Ae]={inPosition:"north",outPosition:"south"};break;case"BT":x0[Ae]={inPosition:"south",outPosition:"north"};break;case"RL":x0[Ae]={inPosition:"east",outPosition:"west"};break;case"LR":x0[Ae]={inPosition:"west",outPosition:"east"};break}const dt=It==="in"?x0[Ae].inPosition:x0[Ae].outPosition;return It==="in"?x0[Ae].inPosition=Gee(x0[Ae].inPosition,It,ut):x0[Ae].outPosition=Gee(x0[Ae].outPosition,It,ut),dt},PMe=(Ae,It)=>{let ut=Ae.start,dt=Ae.end;const Bt=ut,Ai=dt,j=Lp[ut],Ht=Lp[dt];return!j||!Ht?{source:ut,target:dt}:(j.type==="diamond"&&(ut=`${ut}-${zee(ut,"out",It)}`),Ht.type==="diamond"&&(dt=`${dt}-${zee(dt,"in",It)}`),{source:ut,target:dt,sourceId:Bt,targetId:Ai})},IMe=function(Ae,It,ut,dt){K1.info("abc78 edges = ",Ae);const Bt=dt.insert("g").attr("class","edgeLabels");let Ai={},j=It.db.getDirection(),Ht,ou;if(Ae.defaultStyle!==void 0){const Ot=V1n(Ae.defaultStyle);Ht=Ot.style,ou=Ot.labelStyle}return Ae.forEach(function(Ot){const qt="L-"+Ot.start+"-"+Ot.end;Ai[qt]===void 0?(Ai[qt]=0,K1.info("abc78 new entry",qt,Ai[qt])):(Ai[qt]++,K1.info("abc78 new entry",qt,Ai[qt]));let Ge=qt+"-"+Ai[qt];K1.info("abc78 new link id to be used is",qt,Ge,Ai[qt]);const Ki="LS-"+Ot.start,Si="LE-"+Ot.end,Mn={style:"",labelStyle:""};switch(Mn.minlen=Ot.length||1,Ot.type==="arrow_open"?Mn.arrowhead="none":Mn.arrowhead="normal",Mn.arrowTypeStart="arrow_open",Mn.arrowTypeEnd="arrow_open",Ot.type){case"double_arrow_cross":Mn.arrowTypeStart="arrow_cross";case"arrow_cross":Mn.arrowTypeEnd="arrow_cross";break;case"double_arrow_point"
Line truncated
|
|
||||||
`),Ot.style===void 0&&(Mn.style=Mn.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),Mn.labelStyle=Mn.labelStyle.replace("color:","fill:"),Mn.id=Ge,Mn.classes="flowchart-link "+Ki+" "+Si;const ps=yMe(Bt,Mn),{source:Rr,target:Ch,sourceId:H1,targetId:q1}=PMe(Ot,j);K1.debug("abc78 source and target",Rr,Ch),ut.edges.push({id:"e"+Ot.start+Ot.end,sources:[Rr],targets:[Ch],sourceId:H1,targetId:q1,labelEl:ps,labels:[{width:Mn.width,height:Mn.height,orgWidth:Mn.width,orgHeight:Mn.height,text:Mn.label,layoutOptions:{"edgeLabels.inline":"true","edgeLabels.placement":"CENTER"}}],edgeData:Mn})}),ut},OMe=function(Ae,It,ut,dt){let Bt="";switch(dt&&(Bt=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,Bt=Bt.replace(/\(/g,"\\("),Bt=Bt.replace(/\)/g,"\\)")),It.arrowTypeStart){case"arrow_cross":Ae.attr("marker-start","url("+Bt+"#"+ut+"-crossStart)");break;case"arrow_point":Ae.attr("marker-start","url("+Bt+"#"+ut+"-pointStart)");break;case"arrow_barb":Ae.attr("marker-start","url("+Bt+"#"+ut+"-barbStart)");break;case"arrow_circle":Ae.attr("marker-start","url("+Bt+"#"+ut+"-circleStart)");break;case"aggregation":Ae.attr("marker-start","url("+Bt+"#"+ut+"-aggregationStart)");break;case"extension":Ae.attr("marker-start","url("+Bt+"#"+ut+"-extensionStart)");break;case"composition":Ae.attr("marker-start","url("+Bt+"#"+ut+"-compositionStart)");break;case"dependency":Ae.attr("marker-start","url("+Bt+"#"+ut+"-dependencyStart)");break;case"lollipop":Ae.attr("marker-start","url("+Bt+"#"+ut+"-lollipopStart)");break}switch(It.arrowTypeEnd){case"arrow_cross":Ae.attr("marker-end","url("+Bt+"#"+ut+"-crossEnd)");break;case"arrow_point":Ae.attr("marker-end","url("+Bt+"#"+ut+"-pointEnd)");break;case"arrow_barb":Ae.attr("marker-end","url("+Bt+"#"+ut+"-barbEnd)");break;case"arrow_circle":Ae.attr("marker-end","url("+Bt+"#"+ut+"-circleEnd)");break;case"aggregation":Ae.attr("marker-end","url("+Bt+"#"+ut+"-aggregationEnd)");break;case"extension":Ae.attr("marker-end","url("+Bt+"#"+ut+"-extensionEnd)");break;case"composition":Ae.attr("marker-end","url("+Bt+"#"+ut+"-compositionEnd)");break;case"dependency":Ae.attr("marker-end","url("+Bt+"#"+ut+"-dependencyEnd)");break;case"lollipop":Ae.attr("marker-end","url("+Bt+"#"+ut+"-lollipopEnd)");break}},DMe=function(Ae,It){K1.info("Extracting classes"),It.db.clear("ver-2");try{return It.parse(Ae),It.db.getClasses()}catch{return{}}},$Me=function(Ae){const It={parentById:{},childrenById:{}},ut=Ae.getSubGraphs();return K1.info("Subgraphs - ",ut),ut.forEach(function(dt){dt.nodes.forEach(function(Bt){It.parentById[Bt]=dt.id,It.childrenById[dt.id]===void 0&&(It.childrenById[dt.id]=[]),It.childrenById[dt.id].push(Bt)})}),ut.forEach(function(dt){dt.id,It.parentById[dt.id]!==void 0&&It.parentById[dt.id]}),It},FMe=function(Ae,It,ut){const dt=MMe(Ae,It,ut);if(dt===void 0||dt==="root")return{x:0,y:0};const Bt=Lp[dt].offset;return{x:Bt.posX,y:Bt.posY}},xMe=function(Ae,It,ut,dt,Bt){const Ai=FMe(It.sourceId,It.targetId,Bt),j=It.sections[0].startPoint,Ht=It.sections[0].endPoint,Ot=(It.sections[0].bendPoints?It.sections[0].bendPoints:[]).map(Nc=>[Nc.x+Ai.x,Nc.y+Ai.y]),qt=[[j.x+Ai.x,j.y+Ai.y],...Ot,[Ht.x+Ai.x,Ht.y+Ai.y]],Ge=EMe().curve(IH),Ki=Ae.insert("path").attr("d",Ge(qt)).attr("class","path "+ut.classes).attr("fill","none"),Si=Ae.insert("g").attr("class","edgeLabel"),Mn=lI(Si.node().appendChild(It.labelEl)),Lc=Mn.node().firstChild.getBoundingClientRect();Mn.attr("width",Lc.width),Mn.attr("height",Lc.height),Si.attr("transform",`translate(${It.labels[0].x+Ai.x}, ${It.labels[0].y+Ai.y})`),OMe(Ki,ut,dt.type,dt.arrowMarkerAbsolute)},Wee=(Ae,It)=>{Ae.forEach(ut=>{ut.children||(ut.children=[]);const dt=It.childrenById[ut.id];dt&&dt.forEach(Bt=>{ut.children.push(Lp[Bt])}),Wee(ut.children,It)})},LMe=async function(Ae,It,ut,dt){var Bt;dt.db.clear(),Lp={},x0={},dt.db.setGen("gen-2"),dt.parser.parse(Ae);const Ai=lI("body").append("div").attr("style","height:400px").attr("id","cy");let j={id:"root",layoutOptions:{"elk.hierarchyHandling":"INCLUDE_CHILDREN","org.eclipse.elk.padding":"[top=100, left=100, bottom=110, right=110]","elk.layered.spacing.edgeNodeBetweenLayers":"30","elk.direction":"DOWN"},children:[],edges:[]};switch(K1.info("Drawing flowchart using v3 renderer",qee),dt.db.getDirection()){case"BT":j.layoutOptions["elk.direction"]="UP";break;case"TB":j.layoutOptions["elk.direction"]="DOWN";break;case"LR":j.layoutOptions["elk.direction"]="RIGHT";break;case"RL":j.layoutOptions["elk.direction"]="LEFT";break}const{securityLevel:ou,flowchart:Ot}=OH();let qt;ou==="sandbox"&&(qt=lI("#i"+It));const Ge=ou==="sandbox"?lI(qt.nodes()[0].contentDocument.body):lI("body"),Ki=ou==="sandbox"?qt.nodes()[0].contentDocument:document,Si=Ge.select(`[id="${It}"]`);vMe(Si,["point","circle","cross"],dt.type,dt.arrowMarkerAbsolute);const Lc=dt.db.getVertices();let Nc;const ps=dt.db.getSubGraphs();K1.info("Subgraphs - ",ps);for(let G1=ps.length-1;G1>=0;G1--)Nc=ps[G1],dt.db.addVertex(Nc.id,{text:Nc.title,t
Line truncated
|
|
||||||
.subgraph-lvl-${ut} {
|
|
||||||
fill: ${Ae[`surface${ut}`]};
|
|
||||||
stroke: ${Ae[`surfacePeer${ut}`]};
|
|
||||||
}
|
|
||||||
`;return It},RMe=Ae=>`.label {
|
|
||||||
font-family: ${Ae.fontFamily};
|
|
||||||
color: ${Ae.nodeTextColor||Ae.textColor};
|
|
||||||
}
|
|
||||||
.cluster-label text {
|
|
||||||
fill: ${Ae.titleColor};
|
|
||||||
}
|
|
||||||
.cluster-label span {
|
|
||||||
color: ${Ae.titleColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.label text,span {
|
|
||||||
fill: ${Ae.nodeTextColor||Ae.textColor};
|
|
||||||
color: ${Ae.nodeTextColor||Ae.textColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.node rect,
|
|
||||||
.node circle,
|
|
||||||
.node ellipse,
|
|
||||||
.node polygon,
|
|
||||||
.node path {
|
|
||||||
fill: ${Ae.mainBkg};
|
|
||||||
stroke: ${Ae.nodeBorder};
|
|
||||||
stroke-width: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.node .label {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.node.clickable {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.arrowheadPath {
|
|
||||||
fill: ${Ae.arrowheadColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.edgePath .path {
|
|
||||||
stroke: ${Ae.lineColor};
|
|
||||||
stroke-width: 2.0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.flowchart-link {
|
|
||||||
stroke: ${Ae.lineColor};
|
|
||||||
fill: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.edgeLabel {
|
|
||||||
background-color: ${Ae.edgeLabelBackground};
|
|
||||||
rect {
|
|
||||||
opacity: 0.85;
|
|
||||||
background-color: ${Ae.edgeLabelBackground};
|
|
||||||
fill: ${Ae.edgeLabelBackground};
|
|
||||||
}
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cluster rect {
|
|
||||||
fill: ${Ae.clusterBkg};
|
|
||||||
stroke: ${Ae.clusterBorder};
|
|
||||||
stroke-width: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cluster text {
|
|
||||||
fill: ${Ae.titleColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.cluster span {
|
|
||||||
color: ${Ae.titleColor};
|
|
||||||
}
|
|
||||||
/* .cluster div {
|
|
||||||
color: ${Ae.titleColor};
|
|
||||||
} */
|
|
||||||
|
|
||||||
div.mermaidTooltip {
|
|
||||||
position: absolute;
|
|
||||||
text-align: center;
|
|
||||||
max-width: 200px;
|
|
||||||
padding: 2px;
|
|
||||||
font-family: ${Ae.fontFamily};
|
|
||||||
font-size: 12px;
|
|
||||||
background: ${Ae.tertiaryColor};
|
|
||||||
border: 1px solid ${Ae.border2};
|
|
||||||
border-radius: 2px;
|
|
||||||
pointer-events: none;
|
|
||||||
z-index: 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
.flowchartTitleText {
|
|
||||||
text-anchor: middle;
|
|
||||||
font-size: 18px;
|
|
||||||
fill: ${Ae.textColor};
|
|
||||||
}
|
|
||||||
.subgraph {
|
|
||||||
stroke-width:2;
|
|
||||||
rx:3;
|
|
||||||
}
|
|
||||||
// .subgraph-lvl-1 {
|
|
||||||
// fill:#ccc;
|
|
||||||
// // stroke:black;
|
|
||||||
// }
|
|
||||||
|
|
||||||
.flowchart-label text {
|
|
||||||
text-anchor: middle;
|
|
||||||
}
|
|
||||||
|
|
||||||
${BMe(Ae)}
|
|
||||||
`,_Me=RMe,JMe={db:bMe,renderer:NMe,parser:wMe,styles:_Me};export{JMe as diagram};
|
|
||||||
//# sourceMappingURL=flowchart-elk-definition-5082a990-_inAippy.js.map
|
|
||||||
-1
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"flowchart-elk-definition-5082a990-_inAippy.js","sources":["../../../node_modules/elkjs/lib/elk.bundled.js","../../../node_modules/mermaid/dist/flowchart-elk-definition-5082a990.js"],"sourcesContent":["(function(f){if(typeof exports===\"object\"&&typeof module!==\"undefined\"){module.exports=f()}else if(typeof define===\"function\"&&define.amd){define([],f)}else{var g;if(typeof window!==\"undefined\"){g=window}else if(typeof global!==\"undefined\"){g=global}else if(typeof self!==\"undefined\"){g=self}else{g=this}g.ELK = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\n/*******************************************************************************\n * Copyright (c) 2017 Kiel University and others.\n * \n * This program and the accompanying materials are made \n * available under the terms of the Eclipse Public License 2.0 \n * which is available at https://www.eclipse.org/legal/epl-2.0/ \n * \n * SPDX-License-Identifier: EPL-2.0\n *******************************************************************************/\nvar ELK = function () {\n function ELK() {\n var _this = this;\n\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n _ref$defaultLayoutOpt = _ref.defaultLayoutOptions,\n defaultLayoutOptions = _ref$defaultLayoutOpt === undefined ? {} : _ref$defaultLayoutOpt,\n _ref$algorithms = _ref.algorithms,\n algorithms = _ref$algorithms === undefined ? ['layered', 'stress', 'mrtree', 'radial', 'force', 'disco', 'sporeOverlap', 'sporeCompaction', 'rectpacking'] : _ref$algorithms,\n workerFactory = _ref.workerFactory,\n workerUrl = _ref.workerUrl;\n\n _classCallCheck(this, ELK);\n\n this.defaultLayoutOptions = defaultLayoutOptions;\n this.initialized = false;\n\n // check valid worker construction possible\n if (typeof workerUrl === 'undefined' && typeof workerFactory === 'undefined') {\n throw new Error(\"Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.\");\n }\n var factory = workerFactory;\n if (typeof workerUrl !== 'undefined' && typeof workerFactory === 'undefined') {\n // use default Web Worker\n factory = function factory(url) {\n return new Worker(url);\n };\n }\n\n // create the worker\n var worker = factory(workerUrl);\n if (typeof worker.postMessage !== 'function') {\n throw new TypeError(\"Created worker does not provide\" + \" the required 'postMessage' function.\");\n }\n\n // wrap the worker to return promises\n this.worker = new PromisedWorker(worker);\n\n // initially register algorithms\n this.worker.postMessage({\n cmd: 'register',\n algorithms: algorithms\n }).then(function (r) {\n return _this.initialized = true;\n }).catch(console.err);\n }\n\n _createClass(ELK, [{\n key: 'layout',\n value: function layout(graph) {\n var _ref2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref2$layoutOptions = _ref2.layoutOptions,\n layoutOptions = _ref2$layoutOptions === undefined ? this.defaultLayoutOptions : _ref2$layoutOptions,\n _ref2$logging = _ref2.logging,\n logging = _ref2$logging === undefined ? false : _ref2$logging,\n _ref2$measureExecutio = _ref2.measureExecutionTime,\n measureExecutionTime = _ref2$measureExecutio === undefined ? false : _ref2$measureExecutio;\n\n if (!graph) {\n return Promise.reject(new Error(\"Missing mandatory parameter 'graph'.\"));\n }\n return this.worker.postMessage({\n cmd: 'layout',\n graph: graph,\n layLine truncated
|
|
||||||
@@ -1,267 +0,0 @@
|
|||||||
import{ac as ze,ad as Ne,ae as Ve,af as Pe,ag as yn,ah as Gt,ai as kn,aj as nt,c as xt,s as pn,g as Tn,v as vn,x as xn,b as bn,a as wn,m as Cn,z as Dn,n as Mn,l as ae,h as Ht,i as Sn,j as _n,y as Un}from"./index-jpNTxDe4.js";import{h as me,g as de}from"./index-2K3MavtT.js";import{b as Yn,t as De,c as Fn,a as Ln,l as En}from"./linear-WA_JRKe7.js";import{i as An}from"./init-Hi12RPRh.js";function In(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Wn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function On(t){return t}var Nt=1,Qt=2,oe=3,zt=4,Me=1e-6;function Hn(t){return"translate("+t+",0)"}function zn(t){return"translate(0,"+t+")"}function Nn(t){return e=>+t(e)}function Vn(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Pn(){return!this.__axis}function Re(t,e){var n=[],r=null,i=null,s=6,o=6,y=3,M=typeof window<"u"&&window.devicePixelRatio>1?0:.5,p=t===Nt||t===zt?-1:1,D=t===zt||t===Qt?"x":"y",_=t===Nt||t===oe?Hn:zn;function w(b){var P=r??(e.ticks?e.ticks.apply(e,n):e.domain()),g=i??(e.tickFormat?e.tickFormat.apply(e,n):On),Y=Math.max(s,0)+y,H=e.range(),O=+H[0]+M,N=+H[H.length-1]+M,V=(e.bandwidth?Vn:Nn)(e.copy(),M),j=b.selection?b.selection():b,x=j.selectAll(".domain").data([null]),E=j.selectAll(".tick").data(P,e).order(),T=E.exit(),l=E.enter().append("g").attr("class","tick"),f=E.select("line"),m=E.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),E=E.merge(l),f=f.merge(l.append("line").attr("stroke","currentColor").attr(D+"2",p*s)),m=m.merge(l.append("text").attr("fill","currentColor").attr(D,p*Y).attr("dy",t===Nt?"0em":t===oe?"0.71em":"0.32em")),b!==j&&(x=x.transition(b),E=E.transition(b),f=f.transition(b),m=m.transition(b),T=T.transition(b).attr("opacity",Me).attr("transform",function(c){return isFinite(c=V(c))?_(c+M):this.getAttribute("transform")}),l.attr("opacity",Me).attr("transform",function(c){var v=this.parentNode.__axis;return _((v&&isFinite(v=v(c))?v:V(c))+M)})),T.remove(),x.attr("d",t===zt||t===Qt?o?"M"+p*o+","+O+"H"+M+"V"+N+"H"+p*o:"M"+M+","+O+"V"+N:o?"M"+O+","+p*o+"V"+M+"H"+N+"V"+p*o:"M"+O+","+M+"H"+N),E.attr("opacity",1).attr("transform",function(c){return _(V(c)+M)}),f.attr(D+"2",p*s),m.attr(D,p*Y).text(g),j.filter(Pn).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Qt?"start":t===zt?"end":"middle"),j.each(function(){this.__axis=V})}return w.scale=function(b){return arguments.length?(e=b,w):e},w.ticks=function(){return n=Array.from(arguments),w},w.tickArguments=function(b){return arguments.length?(n=b==null?[]:Array.from(b),w):n.slice()},w.tickValues=function(b){return arguments.length?(r=b==null?null:Array.from(b),w):r&&r.slice()},w.tickFormat=function(b){return arguments.length?(i=b,w):i},w.tickSize=function(b){return arguments.length?(s=o=+b,w):s},w.tickSizeInner=function(b){return arguments.length?(s=+b,w):s},w.tickSizeOuter=function(b){return arguments.length?(o=+b,w):o},w.tickPadding=function(b){return arguments.length?(y=+b,w):y},w.offset=function(b){return arguments.length?(M=+b,w):M},w}function Rn(t){return Re(Nt,t)}function Bn(t){return Re(oe,t)}const Zn=Math.PI/180,Xn=180/Math.PI,Rt=18,Be=.96422,Ze=1,Xe=.82521,qe=4/29,bt=6/29,je=3*bt*bt,qn=bt*bt*bt;function Ge(t){if(t instanceof ot)return new ot(t.l,t.a,t.b,t.opacity);if(t instanceof lt)return Qe(t);t instanceof Ve||(t=yn(t));var e=te(t.r),n=te(t.g),r=te(t.b),i=Jt((.2225045*e+.7168786*n+.0606169*r)/Ze),s,o;return e===n&&n===r?s=o=i:(s=Jt((.4360747*e+.3850649*n+.1430804*r)/Be),o=Jt((.0139322*e+.0971045*n+.7141733*r)/Xe)),new ot(116*i-16,500*(s-i),200*(i-o),t.opacity)}function jn(t,e,n,r){return arguments.length===1?Ge(t):new ot(t,e,n,r??1)}function ot(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}ze(ot,jn,Ne(Pe,{brighter(t){return new ot(this.l+Rt*(t??1),this.a,this.b,this.opacity)},darker(t){return new ot(this.l-Rt*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Be*Kt(e),t=Ze*Kt(t),n=Xe*Kt(n),new Ve($t(3.1338561*e-1.6168667*t-.4906146*n),$t(-.9787684*e+1.9161415*t+.033454*n),$t(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}}));function Jt(t){return t>qn?Math.pow(t,1/3):t/je+qe}function Kt(t){return t>bt?t*t*t:je*(t-qe)}function $t(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function te(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Gn(t){if(t instanceof lt)return new lt(t.h,t.c,t.l,t.opacity);if(t instanceof ot||(t=Ge(t)),t.a===0&&t.b===0)return new lt(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Xn;return new lt(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.Line truncated
|
|
||||||
`+U.showPosition()+`
|
|
||||||
Expecting `+K.join(", ")+", got '"+(this.terminals_[q]||q)+"'":st="Parse error on line "+(B+1)+": Unexpected "+(q==d?"end of input":"'"+(this.terminals_[q]||q)+"'"),this.parseError(st,{text:U.match,token:this.terminals_[q]||q,line:U.yylineno,loc:G,expected:K})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+k+", token: "+q);switch(C[0]){case 1:m.push(q),v.push(U.yytext),a.push(U.yylloc),m.push(C[1]),q=null,Z=U.yyleng,h=U.yytext,B=U.yylineno,G=U.yylloc;break;case 2:if(I=this.productions_[C[1]][1],u.$=v[v.length-I],u._$={first_line:a[a.length-(I||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(I||1)].first_column,last_column:a[a.length-1].last_column},R&&(u._$.range=[a[a.length-(I||1)].range[0],a[a.length-1].range[1]]),L=this.performAction.apply(u,[h,Z,B,F.yy,C[1],v,a].concat(S)),typeof L<"u")return L;I&&(m=m.slice(0,-1*I*2),v=v.slice(0,-1*I),a=a.slice(0,-1*I)),m.push(this.productions_[C[1]][0]),v.push(u.$),a.push(u._$),Q=A[m[m.length-2]][m[m.length-1]],m.push(Q);break;case 3:return!0}}return!0}},x=function(){var T={EOF:1,parseError:function(f,m){if(this.yy.parser)this.yy.parser.parseError(f,m);else throw new Error(f)},setInput:function(l,f){return this.yy=f||this.yy||{},this._input=l,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},input:function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var f=l.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},unput:function(l){var f=l.length,m=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var c=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),m.length-1&&(this.yylineno-=m.length-1);var v=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:m?(m.length===c.length?this.yylloc.first_column:0)+c[c.length-m.length].length-m[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[v[0],v[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(l){this.unput(this.match.slice(l))},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var l=this.pastInput(),f=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
||||||
`+f+"^"},test_match:function(l,f){var m,c,v;if(this.options.backtrack_lexer&&(v={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(v.yylloc.range=this.yylloc.range.slice(0))),c=l[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],m=this.performAction.call(this,this.yy,this,f,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),m)return m;if(this._backtrack){for(var a in v)this[a]=v[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,f,m,c;this._more||(this.yytext="",this.match="");for(var v=this._currentRules(),a=0;a<v.length;a++)if(m=this._input.match(this.rules[v[a]]),m&&(!f||m[0].length>f[0].length)){if(f=m,c=a,this.options.backtrack_lexer){if(l=this.test_match(m,v[a]),l!==!1)return l;if(this._backtrack){f=!1;continue}else return!1}else if(!this.options.flex)break}return f?(l=this.test_match(f,v[c]),l!==!1?l:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
||||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var f=this.next();return f||this.lex()},begin:function(f){this.conditionStack.push(f)},popState:function(){var f=this.conditionStack.length-1;return f>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(f){return f=this.conditionStack.length-1-Math.abs(f||0),f>=0?this.conditionStack[f]:"INITIAL"},pushState:function(f){this.begin(f)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(f,m,c,v){switch(c){case 0:return this.begin("open_directive"),40;case 1:return this.begin("type_directive"),41;case 2:return this.popState(),this.begin("arg_directive"),33;case 3:return this.popState(),this.popState(),43;case 4:return 42;case 5:return this.begin("acc_title"),21;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),23;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:break;case 13:break;case 14:break;case 15:return 11;case 16:break;case 17:break;case 18:break;case 19:this.begin("href");break;case 20:this.popState();break;case 21:return 38;case 22:this.begin("callbackname");break;case 23:this.popState();break;case 24:this.popState(),this.begin("callbackargs");break;case 25:return 36;case 26:this.popState();break;case 27:return 37;case 28:this.begin("click");break;case 29:this.popState();break;case 30:return 35;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 16;case 37:return 18;case 38:return 17;case 39:return 19;case 40:return"date";case 41:return 20;case 42:return"accDescription";case 43:return 26;case 44:return 28;case 45:return 29;case 46:return 33;case 47:return 7;case 48:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:topAxis\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:tickInterval\s[^#\n;]+)/i,/^(?:includes\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accDescription\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return T}();j.lexer=x;function E(){this.yy={}}return E.prototype=j,j.Parser=E,new E}();le.parser=le;const Ci=le;nt.extend(Ti);nt.extend(xi);nt.extend(wi);let at="",ke="",pe,Te="",It=[],Wt=[],ve={},xe=[],jt=[],St="",be="";const on=["active","done","crit","milestone"];let we=[],Ot=!1,Ce=!1,ue=0;const Di=function(t,e,n){Cn.parseDirective(this,t,e,n)},Mi=function(){xe=[],jt=[],St="",we=[],Vt=0,he=void 0,Pt=void 0,$=[],at="",ke="",be="",pe=void 0,Te="",It=[],Wt=[],Ot=!1,Ce=!1,ue=0,ve={},Dn()},Si=function(t){ke=t},_i=function(){return ke},Ui=function(t){pe=t},Yi=function(){return pe},Fi=function(t){Te=t},Li=function(){return Te},Ei=function(t){at=t},Ai=function(){Ot=!0},Ii=function(){return Ot},Wi=function(){Ce=!0},Oi=function(){return Ce},Hi=function(t){be=t},zi=function(){return be},Ni=function(){return at},Vi=function(t){It=t.toLowerCase().split(/[\s,]+/)},Pi=function(){return It},Ri=function(t){Wt=t.toLowerCase().split(/[\s,]+/)},Bi=function(){return Wt},Zi=function(){return ve},Xi=function(t){St=t,xe.push(t)},qi=function(){return xe},ji=function(){let t=He();const e=10;let n=0;for(;!t&&n<e;)t=He(),n++;return jt=$,jt},cn=function(t,e,n,r){return r.includes(t.format(e.trim()))?!1:t.isoWeekday()>=6&&n.includes("weekends")||n.includes(t.format("dddd").toLowerCase())?!0:n.includes(t.format(e.trim()))},ln=function(t,e,n,r){if(!n.len
Line truncated
|
|
||||||
.mermaid-main-font {
|
|
||||||
font-family: "trebuchet ms", verdana, arial, sans-serif;
|
|
||||||
font-family: var(--mermaid-font-family);
|
|
||||||
}
|
|
||||||
.exclude-range {
|
|
||||||
fill: ${t.excludeBkgColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.section {
|
|
||||||
stroke: none;
|
|
||||||
opacity: 0.2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.section0 {
|
|
||||||
fill: ${t.sectionBkgColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.section2 {
|
|
||||||
fill: ${t.sectionBkgColor2};
|
|
||||||
}
|
|
||||||
|
|
||||||
.section1,
|
|
||||||
.section3 {
|
|
||||||
fill: ${t.altSectionBkgColor};
|
|
||||||
opacity: 0.2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sectionTitle0 {
|
|
||||||
fill: ${t.titleColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.sectionTitle1 {
|
|
||||||
fill: ${t.titleColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.sectionTitle2 {
|
|
||||||
fill: ${t.titleColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.sectionTitle3 {
|
|
||||||
fill: ${t.titleColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.sectionTitle {
|
|
||||||
text-anchor: start;
|
|
||||||
// font-size: ${t.ganttFontSize};
|
|
||||||
// text-height: 14px;
|
|
||||||
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
||||||
font-family: var(--mermaid-font-family);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Grid and axis */
|
|
||||||
|
|
||||||
.grid .tick {
|
|
||||||
stroke: ${t.gridColor};
|
|
||||||
opacity: 0.8;
|
|
||||||
shape-rendering: crispEdges;
|
|
||||||
text {
|
|
||||||
font-family: ${t.fontFamily};
|
|
||||||
fill: ${t.textColor};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.grid path {
|
|
||||||
stroke-width: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Today line */
|
|
||||||
|
|
||||||
.today {
|
|
||||||
fill: none;
|
|
||||||
stroke: ${t.todayLineColor};
|
|
||||||
stroke-width: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Task styling */
|
|
||||||
|
|
||||||
/* Default task */
|
|
||||||
|
|
||||||
.task {
|
|
||||||
stroke-width: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.taskText {
|
|
||||||
text-anchor: middle;
|
|
||||||
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
||||||
font-family: var(--mermaid-font-family);
|
|
||||||
}
|
|
||||||
|
|
||||||
// .taskText:not([font-size]) {
|
|
||||||
// font-size: ${t.ganttFontSize};
|
|
||||||
// }
|
|
||||||
|
|
||||||
.taskTextOutsideRight {
|
|
||||||
fill: ${t.taskTextDarkColor};
|
|
||||||
text-anchor: start;
|
|
||||||
// font-size: ${t.ganttFontSize};
|
|
||||||
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
||||||
font-family: var(--mermaid-font-family);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.taskTextOutsideLeft {
|
|
||||||
fill: ${t.taskTextDarkColor};
|
|
||||||
text-anchor: end;
|
|
||||||
// font-size: ${t.ganttFontSize};
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Special case clickable */
|
|
||||||
.task.clickable {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
.taskText.clickable {
|
|
||||||
cursor: pointer;
|
|
||||||
fill: ${t.taskTextClickableColor} !important;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.taskTextOutsideLeft.clickable {
|
|
||||||
cursor: pointer;
|
|
||||||
fill: ${t.taskTextClickableColor} !important;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.taskTextOutsideRight.clickable {
|
|
||||||
cursor: pointer;
|
|
||||||
fill: ${t.taskTextClickableColor} !important;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Specific task settings for the sections*/
|
|
||||||
|
|
||||||
.taskText0,
|
|
||||||
.taskText1,
|
|
||||||
.taskText2,
|
|
||||||
.taskText3 {
|
|
||||||
fill: ${t.taskTextColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.task0,
|
|
||||||
.task1,
|
|
||||||
.task2,
|
|
||||||
.task3 {
|
|
||||||
fill: ${t.taskBkgColor};
|
|
||||||
stroke: ${t.taskBorderColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.taskTextOutside0,
|
|
||||||
.taskTextOutside2
|
|
||||||
{
|
|
||||||
fill: ${t.taskTextOutsideColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.taskTextOutside1,
|
|
||||||
.taskTextOutside3 {
|
|
||||||
fill: ${t.taskTextOutsideColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Active task */
|
|
||||||
|
|
||||||
.active0,
|
|
||||||
.active1,
|
|
||||||
.active2,
|
|
||||||
.active3 {
|
|
||||||
fill: ${t.activeTaskBkgColor};
|
|
||||||
stroke: ${t.activeTaskBorderColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.activeText0,
|
|
||||||
.activeText1,
|
|
||||||
.activeText2,
|
|
||||||
.activeText3 {
|
|
||||||
fill: ${t.taskTextDarkColor} !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Completed task */
|
|
||||||
|
|
||||||
.done0,
|
|
||||||
.done1,
|
|
||||||
.done2,
|
|
||||||
.done3 {
|
|
||||||
stroke: ${t.doneTaskBorderColor};
|
|
||||||
fill: ${t.doneTaskBkgColor};
|
|
||||||
stroke-width: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.doneText0,
|
|
||||||
.doneText1,
|
|
||||||
.doneText2,
|
|
||||||
.doneText3 {
|
|
||||||
fill: ${t.taskTextDarkColor} !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Tasks on the critical line */
|
|
||||||
|
|
||||||
.crit0,
|
|
||||||
.crit1,
|
|
||||||
.crit2,
|
|
||||||
.crit3 {
|
|
||||||
stroke: ${t.critBorderColor};
|
|
||||||
fill: ${t.critBkgColor};
|
|
||||||
stroke-width: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.activeCrit0,
|
|
||||||
.activeCrit1,
|
|
||||||
.activeCrit2,
|
|
||||||
.activeCrit3 {
|
|
||||||
stroke: ${t.critBorderColor};
|
|
||||||
fill: ${t.activeTaskBkgColor};
|
|
||||||
stroke-width: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.doneCrit0,
|
|
||||||
.doneCrit1,
|
|
||||||
.doneCrit2,
|
|
||||||
.doneCrit3 {
|
|
||||||
stroke: ${t.critBorderColor};
|
|
||||||
fill: ${t.doneTaskBkgColor};
|
|
||||||
stroke-width: 2;
|
|
||||||
cursor: pointer;
|
|
||||||
shape-rendering: crispEdges;
|
|
||||||
}
|
|
||||||
|
|
||||||
.milestone {
|
|
||||||
transform: rotate(45deg) scale(0.8,0.8);
|
|
||||||
}
|
|
||||||
|
|
||||||
.milestoneText {
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
.doneCritText0,
|
|
||||||
.doneCritText1,
|
|
||||||
.doneCritText2,
|
|
||||||
.doneCritText3 {
|
|
||||||
fill: ${t.taskTextDarkColor} !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.activeCritText0,
|
|
||||||
.activeCritText1,
|
|
||||||
.activeCritText2,
|
|
||||||
.activeCritText3 {
|
|
||||||
fill: ${t.taskTextDarkColor} !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.titleText {
|
|
||||||
text-anchor: middle;
|
|
||||||
font-size: 18px;
|
|
||||||
fill: ${t.textColor} ;
|
|
||||||
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
||||||
font-family: var(--mermaid-font-family);
|
|
||||||
}
|
|
||||||
`,us=ls,gs={parser:Ci,db:is,renderer:cs,styles:us};export{gs as diagram};
|
|
||||||
//# sourceMappingURL=ganttDiagram-7ce12d6b-bNEEGiE3.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"ganttDiagram-7ce12d6b-bNEEGiE3.js","sources":["../../../node_modules/d3-array/src/max.js","../../../node_modules/d3-array/src/min.js","../../../node_modules/d3-axis/src/identity.js","../../../node_modules/d3-axis/src/axis.js","../../../node_modules/d3-color/src/math.js","../../../node_modules/d3-color/src/lab.js","../../../node_modules/d3-interpolate/src/hcl.js","../../../node_modules/d3-scale/src/nice.js","../../../node_modules/d3-time/src/interval.js","../../../node_modules/d3-time/src/millisecond.js","../../../node_modules/d3-time/src/duration.js","../../../node_modules/d3-time/src/second.js","../../../node_modules/d3-time/src/minute.js","../../../node_modules/d3-time/src/hour.js","../../../node_modules/d3-time/src/day.js","../../../node_modules/d3-time/src/week.js","../../../node_modules/d3-time/src/month.js","../../../node_modules/d3-time/src/year.js","../../../node_modules/d3-time/src/ticks.js","../../../node_modules/d3-time-format/src/locale.js","../../../node_modules/d3-time-format/src/defaultLocale.js","../../../node_modules/d3-scale/src/time.js","../../../node_modules/dayjs/plugin/isoWeek.js","../../../node_modules/dayjs/plugin/customParseFormat.js","../../../node_modules/dayjs/plugin/advancedFormat.js","../../../node_modules/mermaid/dist/ganttDiagram-7ce12d6b.js"],"sourcesContent":["export default function max(values, valueof) {\n let max;\n if (valueof === undefined) {\n for (const value of values) {\n if (value != null\n && (max < value || (max === undefined && value >= value))) {\n max = value;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null\n && (max < value || (max === undefined && value >= value))) {\n max = value;\n }\n }\n }\n return max;\n}\n","export default function min(values, valueof) {\n let min;\n if (valueof === undefined) {\n for (const value of values) {\n if (value != null\n && (min > value || (min === undefined && value >= value))) {\n min = value;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null\n && (min > value || (min === undefined && value >= value))) {\n min = value;\n }\n }\n }\n return min;\n}\n","export default function(x) {\n return x;\n}\n","import identity from \"./identity.js\";\n\nvar top = 1,\n right = 2,\n bottom = 3,\n left = 4,\n epsilon = 1e-6;\n\nfunction translateX(x) {\n return \"translate(\" + x + \",0)\";\n}\n\nfunction translateY(y) {\n return \"translate(0,\" + y + \")\";\n}\n\nfunction number(scale) {\n return d => +scale(d);\n}\n\nfunction center(scale, offset) {\n offset = Math.max(0, scale.bandwidth() - offset * 2) / 2;\n if (scale.round()) offset = Math.round(offset);\n return d => +scale(d) + offset;\n}\n\nfunction entering() {\n return !this.__axis;\n}\n\nfunction axis(orient, scale) {\n var tickArguments = [],\n tickValues = null,\n tickFormat = null,\n tickSizeInner = 6,\n tickSizeOuter = 6,\n tickPadding = 3,\n offset = typeof window !== \"undefined\" && window.devicePixelRatio > 1 ? 0 : 0.5,\n k = orient === top || orient === left ? -1 : 1,\n x = orient === left || orient === right ? \"x\" : \"y\",\n transform = orient === top || orient === bottom ? translateX : translateY;\n\n function axis(context) {\n var values = tickValues == null ? (scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain()) : tickValues,\n format = tickFormat == null ? (scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity) : tickFormat,\n spacing = Math.max(tickSizeInner, 0) + tickPadding,\n range = scale.range(),\n range0 = +range[0] + offset,\n range1 = +range[range.length - 1] + offset,\n position = (scale.bandwidth ? center : number)(scale.copy(), offset),\n selection = context.selection ? context.selection() : context,\n path = selection.selectAll(\".domain\").data([null]),\n tick = selection.selectAll(\".tick\").data(values, scale).order(),\n tickExit = tick.exit(),\n tickEnter = tick.enter().append(\"g\").attr(\"class\", \"tick\"),\n line = tick.select(\"line\"),\n text = tick.select(\"text\");\n\n path = path.merge(path.enter().insert(\"path\", \".tick\")\n .attr(\"class\", \"domain\")\n .attr(\"stroke\", \"currentColor\"));\n\n tick = tick.merge(tickEnter);\n\n line = line.merge(tickEnter.append(\"line\")\n .attr(\"stroke\", \"currentColor\")\n .attr(x + \"2\", k * tickSizeInner));\n\n text = text.merge(tickEnter.append(\"text\")\n .attr(\"fill\", \"currentColor\")\n .attr(x, k * spacing)\n .attr(\"dy\", orient === top ? \"0em\" : orient === bottom ? \"0.71em\" : \"0.32em\"));\n\n if (context !=Line truncated
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
import{c as A,s as Ae,g as Oe,a as Se,b as Ie,v as Ge,x as Pe,m as Ne,l as G,j as V,z as He,a9 as pe,h as De,y as Ve,aa as ze,ab as je}from"./index-jpNTxDe4.js";import"./index-2K3MavtT.js";var me=function(){var r=function(B,l,u,b){for(u=u||{},b=B.length;b--;u[B[b]]=l);return u},a=[1,4],o=[1,7],h=[1,5],c=[1,9],n=[1,6],f=[2,6],p=[1,16],v=[6,8,14,20,22,24,25,27,29,32,37,40,50,55],y=[8,14,20,22,24,25,27,29,32,37,40],m=[8,13,14,20,22,24,25,27,29,32,37,40],d=[1,26],_=[6,8,14,50,55],s=[8,14,55],C=[1,53],w=[1,52],H=[8,14,30,33,35,38,55],x=[1,67],g=[1,68],k=[1,69],P=[8,14,33,35,42,55],ae={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,":":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,cherryPickStatement:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,branchStatement:26,CHECKOUT:27,ref:28,BRANCH:29,ORDER:30,NUM:31,CHERRY_PICK:32,COMMIT_ID:33,STR:34,COMMIT_TAG:35,EMPTYSTR:36,MERGE:37,COMMIT_TYPE:38,commitType:39,COMMIT:40,commit_arg:41,COMMIT_MSG:42,NORMAL:43,REVERSE:44,HIGHLIGHT:45,openDirective:46,typeDirective:47,closeDirective:48,argDirective:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,ID:54,";":55,$accept:0,$end:1},terminals_:{2:"error",6:"GG",8:"EOF",9:":",10:"DIR",13:"OPT",14:"NL",20:"acc_title",21:"acc_title_value",22:"acc_descr",23:"acc_descr_value",24:"acc_descr_multiline_value",25:"section",27:"CHECKOUT",29:"BRANCH",30:"ORDER",31:"NUM",32:"CHERRY_PICK",33:"COMMIT_ID",34:"STR",35:"COMMIT_TAG",36:"EMPTYSTR",37:"MERGE",38:"COMMIT_TYPE",40:"COMMIT",42:"COMMIT_MSG",43:"NORMAL",44:"REVERSE",45:"HIGHLIGHT",50:"open_directive",51:"type_directive",52:"arg_directive",53:"close_directive",54:"ID",55:";"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[26,2],[26,4],[19,3],[19,5],[19,5],[19,5],[19,5],[18,2],[18,4],[18,4],[18,4],[18,6],[18,6],[18,6],[18,6],[18,6],[18,6],[18,8],[18,8],[18,8],[18,8],[18,8],[18,8],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[41,0],[41,1],[39,1],[39,1],[39,1],[5,3],[5,5],[46,1],[47,1],[49,1],[48,1],[28,1],[28,1],[4,1],[4,1],[4,1]],performAction:function(l,u,b,i,E,e,W){var t=e.length-1;switch(E){case 3:return e[t];case 4:return e[t-1];case 5:return i.setDirection(e[t-3]),e[t-1];case 7:i.setOptions(e[t-1]),this.$=e[t];break;case 8:e[t-1]+=e[t],this.$=e[t-1];break;case 10:this.$=[];break;case 11:e[t-1].push(e[t]),this.$=e[t-1];break;case 12:this.$=e[t-1];break;case 17:this.$=e[t].trim(),i.setAccTitle(this.$);break;case 18:case 19:this.$=e[t].trim(),i.setAccDescription(this.$);break;case 20:i.addSection(e[t].substr(8)),this.$=e[t].substr(8);break;case 22:i.checkout(e[t]);break;case 23:i.branch(e[t]);break;case 24:i.branch(e[t-2],e[t]);break;case 25:i.cherryPick(e[t],"",void 0);break;case 26:i.cherryPick(e[t-2],"",e[t]);break;case 27:case 29:i.cherryPick(e[t-2],"","");break;case 28:i.cherryPick(e[t],"",e[t-2]);break;case 30:i.merge(e[t],"","","");break;case 31:i.merge(e[t-2],e[t],"","");break;case 32:i.merge(e[t-2],"",e[t],"");break;case 33:i.merge(e[t-2],"","",e[t]);break;case 34:i.merge(e[t-4],e[t],"",e[t-2]);break;case 35:i.merge(e[t-4],"",e[t],e[t-2]);break;case 36:i.merge(e[t-4],"",e[t-2],e[t]);break;case 37:i.merge(e[t-4],e[t-2],e[t],"");break;case 38:i.merge(e[t-4],e[t-2],"",e[t]);break;case 39:i.merge(e[t-4],e[t],e[t-2],"");break;case 40:i.merge(e[t-6],e[t-4],e[t-2],e[t]);break;case 41:i.merge(e[t-6],e[t],e[t-4],e[t-2]);break;case 42:i.merge(e[t-6],e[t-4],e[t],e[t-2]);break;case 43:i.merge(e[t-6],e[t-2],e[t-4],e[t]);break;case 44:i.merge(e[t-6],e[t],e[t-2],e[t-4]);break;case 45:i.merge(e[t-6],e[t-2],e[t],e[t-4]);break;case 46:i.commit(e[t]);break;case 47:i.commit("","",i.commitType.NORMAL,e[t]);break;case 48:i.commit("","",e[t],"");break;case 49:i.commit("","",e[t],e[t-2]);break;case 50:i.commit("","",e[t-2],e[t]);break;case 51:i.commit("",e[t],i.commitType.NORMAL,"");break;case 52:i.commit("",e[t-2],i.commitType.NORMAL,e[t]);break;case 53:i.commit("",e[t],i.commitType.NORMAL,e[t-2]);break;case 54:i.commit("",e[t-2],e[t],"");break;case 55:i.commit("",e[t],e[t-2],"");break;case 56:i.commit("",e[t-4],e[t-2],e[t]);break;case 57:i.commit("",e[t-4],e[t],e[t-2]);break;case 58:i.commit("",e[t-2],e[t-4],e[t]);break;case 59:i.commit("",e[t],e[t-4],e[t-2]);break;case 60:i.commit("",e[t],e[t-2],e[t-4]);break;case 61:i.commit("",e[t-2],e[t],e[t-4]);break;case 62:i.commit(e[t],"",i.commitType.NORMAL,Line truncated
|
|
||||||
`+L.showPosition()+`
|
|
||||||
Expecting `+ee.join(", ")+", got '"+(this.terminals_[S]||S)+"'":he="Parse error on line "+(Z+1)+": Unexpected "+(S==ge?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(he,{text:L.match,token:this.terminals_[S]||S,line:L.yylineno,loc:oe,expected:ee})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Y+", token: "+S);switch(D[0]){case 1:b.push(S),E.push(L.yytext),e.push(L.yylloc),b.push(D[1]),S=null,be=L.yyleng,t=L.yytext,Z=L.yylineno,oe=L.yylloc;break;case 2:if(z=this.productions_[D[1]][1],U.$=E[E.length-z],U._$={first_line:e[e.length-(z||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(z||1)].first_column,last_column:e[e.length-1].last_column},Le&&(U._$.range=[e[e.length-(z||1)].range[0],e[e.length-1].range[1]]),le=this.performAction.apply(U,[t,be,Z,q.yy,D[1],E,e].concat(Ce)),typeof le<"u")return le;z&&(b=b.slice(0,-1*z*2),E=E.slice(0,-1*z),e=e.slice(0,-1*z)),b.push(this.productions_[D[1]][0]),E.push(U.$),e.push(U._$),de=W[b[b.length-2]][b[b.length-1]],b.push(de);break;case 3:return!0}}return!0}},Te=function(){var B={EOF:1,parseError:function(u,b){if(this.yy.parser)this.yy.parser.parseError(u,b);else throw new Error(u)},setInput:function(l,u){return this.yy=u||this.yy||{},this._input=l,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},input:function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var u=l.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},unput:function(l){var u=l.length,b=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var i=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),b.length-1&&(this.yylineno-=b.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===i.length?this.yylloc.first_column:0)+i[i.length-b.length].length-b[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(l){this.unput(this.match.slice(l))},pastInput:function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var l=this.pastInput(),u=new Array(l.length+1).join("-");return l+this.upcomingInput()+`
|
|
||||||
`+u+"^"},test_match:function(l,u){var b,i,E;if(this.options.backtrack_lexer&&(E={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(E.yylloc.range=this.yylloc.range.slice(0))),i=l[0].match(/(?:\r\n?|\n).*/g),i&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],b=this.performAction.call(this,this.yy,this,u,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),b)return b;if(this._backtrack){for(var e in E)this[e]=E[e];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var l,u,b,i;this._more||(this.yytext="",this.match="");for(var E=this._currentRules(),e=0;e<E.length;e++)if(b=this._input.match(this.rules[E[e]]),b&&(!u||b[0].length>u[0].length)){if(u=b,i=e,this.options.backtrack_lexer){if(l=this.test_match(b,E[e]),l!==!1)return l;if(this._backtrack){u=!1;continue}else return!1}else if(!this.options.flex)break}return u?(l=this.test_match(u,E[i]),l!==!1?l:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
||||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var u=this.next();return u||this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){var u=this.conditionStack.length-1;return u>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(u){return u=this.conditionStack.length-1-Math.abs(u||0),u>=0?this.conditionStack[u]:"INITIAL"},pushState:function(u){this.begin(u)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(u,b,i,E){switch(i){case 0:return this.begin("open_directive"),50;case 1:return this.begin("type_directive"),51;case 2:return this.popState(),this.begin("arg_directive"),9;case 3:return this.popState(),this.popState(),53;case 4:return 52;case 5:return this.begin("acc_title"),20;case 6:return this.popState(),"acc_title_value";case 7:return this.begin("acc_descr"),22;case 8:return this.popState(),"acc_descr_value";case 9:this.begin("acc_descr_multiline");break;case 10:this.popState();break;case 11:return"acc_descr_multiline_value";case 12:return 14;case 13:break;case 14:break;case 15:return 6;case 16:return 40;case 17:return 33;case 18:return 38;case 19:return 42;case 20:return 43;case 21:return 44;case 22:return 45;case 23:return 35;case 24:return 29;case 25:return 30;case 26:return 37;case 27:return 32;case 28:return 27;case 29:return 10;case 30:return 10;case 31:return 9;case 32:return"CARET";case 33:this.begin("options");break;case 34:this.popState();break;case 35:return 13;case 36:return 36;case 37:this.begin("string");break;case 38:this.popState();break;case 39:return 34;case 40:return 31;case 41:return 54;case 42:return 8}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:(\r?\n)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit(?=\s|$))/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\b)/i,/^(?:REVERSE\b)/i,/^(?:HIGHLIGHT\b)/i,/^(?:tag:)/i,/^(?:branch(?=\s|$))/i,/^(?:order:)/i,/^(?:merge(?=\s|$))/i,/^(?:cherry-pick(?=\s|$))/i,/^(?:checkout(?=\s|$))/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:[ \r\n\t]+end\b)/i,/^(?:[\s\S]+(?=[ \r\n\t]+end))/i,/^(?:["]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[0-9]+(?=\s|$))/i,/^(?:\w([-\./\w]*[-\w])?)/i,/^(?:$)/i,/^(?:\s+)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[34,35],inclusive:!1},string:{rules:[38,39],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,40,41,42,43],inclusive:!0}}};return B}();ae.lexer=Te;function ce(){this.yy={}}return ce.prototype=ae,ae.Parser=ce,new ce}();me.parser=me;const Be=me;let te=A().gitGraph.mainBranchName,qe=A().gitGraph.mainBranchOrder,R={},O=null,Q={};Q[te]={name:te,order:qe};let T={};T[te]=O;let M=te,xe="LR",F=0;function fe(){return je({length:7})}const Ye=function(r,a,o){Ne.parseDirective(this,r,a,o)};function Ke(r,a){const o=Object.create(null);return r.reduce((h,c)=>{const n=a(c);return o[n]||(o[n]=!0,h.push(c)),h},[])}const Fe=function(r){xe=r};let ye={};const Ue=function(r){G.debug("options str",r),r=r&&r.trim(),r=r||"{}";try{ye=JSON.parse(r)}catch(a){G.error("error while parsing gitGraph options",a.message)}},We=function(){return ye},Je=function(r,a,o,h){G.debug("Entering commit:",r,a,o,h),a=V.sanitizeText(a,A()),r=V.sanitizeText(r,A()),h=V.sanitizeText(h,A());const c={id:a||F+"-"+fe(),message:r,seq:F++,type:o||X.NORMAL,tag:h||"",parents:O==null?[]:[O.id],branch:M};O=c,R[c.id]=c,T[M]=c.id,G.debug("in pushCommit "+c.id)},Qe=function(r,a){if(r=V.sanitizeText(r,A()),T[r]===void 0)T[r]=O!=null?O.id:null,Q[r]={name:r,order:a?parseInt(a,10):null},Ee(r),G.debug("in createBranch");else{let o=new Error('Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout '+r+'")');throw o.hash={text:"branch "+r,token:"branch "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:['"checkout '+r+'"']},o}},Xe=function(r,a,o,h){r=V.sanitizeText(r,A()),a=V.sanitizeText(a,A());const c=R[T[M]],n=R[T[r]];if(M===r){let p=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw p.hash={text:"merge "+r,token:"merge "+r,line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["branch abc"]},p}els
Line truncated
|
|
||||||
${f-g.width/2-4/2},${P+2}
|
|
||||||
${f-g.width/2-4/2},${P-2}
|
|
||||||
${f+10-g.width/2-4},${P-k-2}
|
|
||||||
${f+10+g.width/2+4},${P-k-2}
|
|
||||||
${f+10+g.width/2+4},${P+k+2}
|
|
||||||
${f+10-g.width/2-4},${P+k+2}`),H.attr("cx",f-g.width/2+4/2).attr("cy",P).attr("r",1.5).attr("class","tag-hole")}}f+=50,f>se&&(se=f)})},ht=(r,a,o)=>Object.keys(o).filter(n=>o[n].branch===a.branch&&o[n].seq>r.seq&&o[n].seq<a.seq).length>0,ue=(r,a,o=0)=>{const h=r+Math.abs(r-a)/2;if(o>5)return h;if(ie.every(f=>Math.abs(f-h)>=10))return ie.push(h),h;const n=Math.abs(r-a);return ue(r,a-n/5,o+1)},mt=(r,a,o,h)=>{const c=re[a.id],n=re[o.id],f=ht(a,o,h);let p="",v="",y=0,m=0,d=I[o.branch].index,_;if(f){p="A 10 10, 0, 0, 0,",v="A 10 10, 0, 0, 1,",y=10,m=10,d=I[o.branch].index;const s=c.y<n.y?ue(c.y,n.y):ue(n.y,c.y);c.y<n.y?_=`M ${c.x} ${c.y} L ${c.x} ${s-y} ${p} ${c.x+m} ${s} L ${n.x-y} ${s} ${v} ${n.x} ${s+m} L ${n.x} ${n.y}`:_=`M ${c.x} ${c.y} L ${c.x} ${s+y} ${v} ${c.x+m} ${s} L ${n.x-y} ${s} ${p} ${n.x} ${s-m} L ${n.x} ${n.y}`}else c.y<n.y&&(p="A 20 20, 0, 0, 0,",y=20,m=20,d=I[o.branch].index,_=`M ${c.x} ${c.y} L ${c.x} ${n.y-y} ${p} ${c.x+m} ${n.y} L ${n.x} ${n.y}`),c.y>n.y&&(p="A 20 20, 0, 0, 0,",y=20,m=20,d=I[a.branch].index,_=`M ${c.x} ${c.y} L ${n.x-y} ${c.y} ${p} ${n.x} ${c.y-m} L ${n.x} ${n.y}`),c.y===n.y&&(d=I[a.branch].index,_=`M ${c.x} ${c.y} L ${c.x} ${n.y-y} ${p} ${c.x+m} ${n.y} L ${n.x} ${n.y}`);r.append("path").attr("d",_).attr("class","arrow arrow"+d%K)},ut=(r,a)=>{const o=r.append("g").attr("class","commit-arrows");Object.keys(a).forEach(h=>{const c=a[h];c.parents&&c.parents.length>0&&c.parents.forEach(n=>{mt(o,a[n],c,a)})})},pt=(r,a)=>{const o=pe().gitGraph,h=r.append("g");a.forEach((c,n)=>{const f=n%K,p=I[c.name].pos,v=h.append("line");v.attr("x1",0),v.attr("y1",p),v.attr("x2",se),v.attr("y2",p),v.attr("class","branch branch"+f),ie.push(p);let y=c.name;const m=lt(y),d=h.insert("rect"),s=h.insert("g").attr("class","branchLabel").insert("g").attr("class","label branch-label"+f);s.node().appendChild(m);let C=m.getBBox();d.attr("class","branchLabelBkg label"+f).attr("rx",4).attr("ry",4).attr("x",-C.width-4-(o.rotateCommitLabel===!0?30:0)).attr("y",-C.height/2+8).attr("width",C.width+18).attr("height",C.height+4),s.attr("transform","translate("+(-C.width-14-(o.rotateCommitLabel===!0?30:0))+", "+(p-C.height/2-1)+")"),d.attr("transform","translate(-19, "+(p-C.height/2)+")")})},ft=function(r,a,o,h){ot();const c=pe(),n=c.gitGraph;G.debug("in gitgraph renderer",r+`
|
|
||||||
`,"id:",a,o),J=h.db.getCommits();const f=h.db.getBranchesAsObjArray();let p=0;f.forEach((y,m)=>{I[y.name]={pos:p,index:m},p+=50+(n.rotateCommitLabel?40:0)});const v=De(`[id="${a}"]`);_e(v,J,!1),n.showBranches&&pt(v,f),ut(v,J),_e(v,J,!0),Ve.insertTitle(v,"gitTitleText",n.titleTopMargin,h.db.getDiagramTitle()),ze(void 0,v,n.diagramPadding,n.useMaxWidth??c.useMaxWidth)},bt={draw:ft},gt=r=>`
|
|
||||||
.commit-id,
|
|
||||||
.commit-msg,
|
|
||||||
.branch-label {
|
|
||||||
fill: lightgrey;
|
|
||||||
color: lightgrey;
|
|
||||||
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
||||||
font-family: var(--mermaid-font-family);
|
|
||||||
}
|
|
||||||
${[0,1,2,3,4,5,6,7].map(a=>`
|
|
||||||
.branch-label${a} { fill: ${r["gitBranchLabel"+a]}; }
|
|
||||||
.commit${a} { stroke: ${r["git"+a]}; fill: ${r["git"+a]}; }
|
|
||||||
.commit-highlight${a} { stroke: ${r["gitInv"+a]}; fill: ${r["gitInv"+a]}; }
|
|
||||||
.label${a} { fill: ${r["git"+a]}; }
|
|
||||||
.arrow${a} { stroke: ${r["git"+a]}; }
|
|
||||||
`).join(`
|
|
||||||
`)}
|
|
||||||
|
|
||||||
.branch {
|
|
||||||
stroke-width: 1;
|
|
||||||
stroke: ${r.lineColor};
|
|
||||||
stroke-dasharray: 2;
|
|
||||||
}
|
|
||||||
.commit-label { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelColor};}
|
|
||||||
.commit-label-bkg { font-size: ${r.commitLabelFontSize}; fill: ${r.commitLabelBackground}; opacity: 0.5; }
|
|
||||||
.tag-label { font-size: ${r.tagLabelFontSize}; fill: ${r.tagLabelColor};}
|
|
||||||
.tag-label-bkg { fill: ${r.tagLabelBackground}; stroke: ${r.tagLabelBorder}; }
|
|
||||||
.tag-hole { fill: ${r.textColor}; }
|
|
||||||
|
|
||||||
.commit-merge {
|
|
||||||
stroke: ${r.primaryColor};
|
|
||||||
fill: ${r.primaryColor};
|
|
||||||
}
|
|
||||||
.commit-reverse {
|
|
||||||
stroke: ${r.primaryColor};
|
|
||||||
fill: ${r.primaryColor};
|
|
||||||
stroke-width: 3;
|
|
||||||
}
|
|
||||||
.commit-highlight-outer {
|
|
||||||
}
|
|
||||||
.commit-highlight-inner {
|
|
||||||
stroke: ${r.primaryColor};
|
|
||||||
fill: ${r.primaryColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.arrow { stroke-width: 8; stroke-linecap: round; fill: none}
|
|
||||||
.gitTitleText {
|
|
||||||
text-anchor: middle;
|
|
||||||
font-size: 18px;
|
|
||||||
fill: ${r.textColor};
|
|
||||||
}
|
|
||||||
`,dt=gt,xt={parser:Be,db:nt,renderer:bt,styles:dt};export{xt as diagram};
|
|
||||||
//# sourceMappingURL=gitGraphDiagram-1e960c50-nR2fIRcx.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"gitGraphDiagram-1e960c50-nR2fIRcx.js","sources":["../../../node_modules/mermaid/dist/gitGraphDiagram-1e960c50.js"],"sourcesContent":["import { c as getConfig, s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, r as setDiagramTitle, t as getDiagramTitle, m as mermaidAPI, l as log, e as common, v as clear$2, y as random, z as getConfig$1, u as utils, A as setupGraphViewbox } from \"./mermaid-b0ad2de1.js\";\nimport { select } from \"d3\";\nimport \"ts-dedent\";\nimport \"dayjs\";\nimport \"@braintree/sanitize-url\";\nimport \"dompurify\";\nimport \"khroma\";\nimport \"lodash-es/memoize.js\";\nimport \"stylis\";\nimport \"lodash-es/isEmpty.js\";\nvar parser = function() {\n var o = function(k, v, o2, l) {\n for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)\n ;\n return o2;\n }, $V0 = [1, 4], $V1 = [1, 7], $V2 = [1, 5], $V3 = [1, 9], $V4 = [1, 6], $V5 = [2, 6], $V6 = [1, 16], $V7 = [6, 8, 14, 20, 22, 24, 25, 27, 29, 32, 37, 40, 50, 55], $V8 = [8, 14, 20, 22, 24, 25, 27, 29, 32, 37, 40], $V9 = [8, 13, 14, 20, 22, 24, 25, 27, 29, 32, 37, 40], $Va = [1, 26], $Vb = [6, 8, 14, 50, 55], $Vc = [8, 14, 55], $Vd = [1, 53], $Ve = [1, 52], $Vf = [8, 14, 30, 33, 35, 38, 55], $Vg = [1, 67], $Vh = [1, 68], $Vi = [1, 69], $Vj = [8, 14, 33, 35, 42, 55];\n var parser2 = {\n trace: function trace() {\n },\n yy: {},\n symbols_: { \"error\": 2, \"start\": 3, \"eol\": 4, \"directive\": 5, \"GG\": 6, \"document\": 7, \"EOF\": 8, \":\": 9, \"DIR\": 10, \"options\": 11, \"body\": 12, \"OPT\": 13, \"NL\": 14, \"line\": 15, \"statement\": 16, \"commitStatement\": 17, \"mergeStatement\": 18, \"cherryPickStatement\": 19, \"acc_title\": 20, \"acc_title_value\": 21, \"acc_descr\": 22, \"acc_descr_value\": 23, \"acc_descr_multiline_value\": 24, \"section\": 25, \"branchStatement\": 26, \"CHECKOUT\": 27, \"ref\": 28, \"BRANCH\": 29, \"ORDER\": 30, \"NUM\": 31, \"CHERRY_PICK\": 32, \"COMMIT_ID\": 33, \"STR\": 34, \"COMMIT_TAG\": 35, \"EMPTYSTR\": 36, \"MERGE\": 37, \"COMMIT_TYPE\": 38, \"commitType\": 39, \"COMMIT\": 40, \"commit_arg\": 41, \"COMMIT_MSG\": 42, \"NORMAL\": 43, \"REVERSE\": 44, \"HIGHLIGHT\": 45, \"openDirective\": 46, \"typeDirective\": 47, \"closeDirective\": 48, \"argDirective\": 49, \"open_directive\": 50, \"type_directive\": 51, \"arg_directive\": 52, \"close_directive\": 53, \"ID\": 54, \";\": 55, \"$accept\": 0, \"$end\": 1 },\n terminals_: { 2: \"error\", 6: \"GG\", 8: \"EOF\", 9: \":\", 10: \"DIR\", 13: \"OPT\", 14: \"NL\", 20: \"acc_title\", 21: \"acc_title_value\", 22: \"acc_descr\", 23: \"acc_descr_value\", 24: \"acc_descr_multiline_value\", 25: \"section\", 27: \"CHECKOUT\", 29: \"BRANCH\", 30: \"ORDER\", 31: \"NUM\", 32: \"CHERRY_PICK\", 33: \"COMMIT_ID\", 34: \"STR\", 35: \"COMMIT_TAG\", 36: \"EMPTYSTR\", 37: \"MERGE\", 38: \"COMMIT_TYPE\", 40: \"COMMIT\", 42: \"COMMIT_MSG\", 43: \"NORMAL\", 44: \"REVERSE\", 45: \"HIGHLIGHT\", 50: \"open_directive\", 51: \"type_directive\", 52: \"arg_directive\", 53: \"close_directive\", 54: \"ID\", 55: \";\" },\n productions_: [0, [3, 2], [3, 2], [3, 3], [3, 4], [3, 5], [7, 0], [7, 2], [11, 2], [11, 1], [12, 0], [12, 2], [15, 2], [15, 1], [16, 1], [16, 1], [16, 1], [16, 2], [16, 2], [16, 1], [16, 1], [16, 1], [16, 2], [26, 2], [26, 4], [19, 3], [19, 5], [19, 5], [19, 5], [19, 5], [18, 2], [18, 4], [18, 4], [18, 4], [18, 6], [18, 6], [18, 6], [18, 6], [18, 6], [18, 6], [18, 8], [18, 8], [18, 8], [18, 8], [18, 8], [18, 8], [17, 2], [17, 3], [17, 3], [17, 5], [17, 5], [17, 3], [17, 5], [17, 5], [17, 5], [17, 5], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 3], [17, 5], [17, 5], [17, 5], [17, 5], [17, 5], [17, 5], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 7], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [17, 9], [41, 0], [41, 1], [39, 1], [39, 1], [39, 1], [5, 3], [5, 5], [46, 1], [47, 1], [49, 1], [48, 1], [28, 1], [28, 1], [4, 1], [4, 1], [4, 1]],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {\n var $0 = $$.length - 1;\n switch (yystate) {\n case 3:\n return $$[$0];\n case 4:\n return $$[$0 - 1];\n case 5:\n yy.setDirection($$[$0 - 3]);\n return $$[$0 - 1];\n case 7:\n yy.setOptions($$[$0 - 1]);\n this.$ = $$[$0];\n break;\n case 8:\n $$[$0 - 1] += $$[$0];\n this.$ = $$[$0 - 1];\n break;\n case 10:\n this.$ = [];\n break;\n case 11:\n $$[$0 - 1].push($$[$0]);\n this.$ = $$[$0 - 1];\n break;\n case 12:\n this.$ = $$[$0 - 1];\n break;\n case 17:\n Line truncated
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
/*! image-blob-reduce 3.0.1 https://github.com/nodeca/image-blob-reduce @license MIT */var $=function(I){for(var d,h=1;h<arguments.length;h++){d=Object(arguments[h]);for(var x in d)Object.prototype.hasOwnProperty.call(d,x)&&(I[x]=d[x])}return I};function N(A,I){var d={};return I.forEach(function(h){Object.prototype.hasOwnProperty.call(A,h)&&(d[h]=A[h])}),d}function tt(A){return N(A,["alpha","unsharpAmount","unsharpRadius","unsharpThreshold","cancelToken"])}var et=N,rt=tt,W={assign:$,pick:et,pick_pica_resize_options:rt};function q(A){var I={exports:{}};return A(I,I.exports),I.exports}function H(A){throw new Error('Could not dynamically require "'+A+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}/*!
|
|
||||||
|
|
||||||
pica
|
|
||||||
https://github.com/nodeca/pica
|
|
||||||
|
|
||||||
*/var X=q(function(A,I){(function(d){A.exports=d()})(function(){return function(){function d(h,x,g){function c(e,i){if(!x[e]){if(!h[e]){var a=typeof H=="function"&&H;if(!i&&a)return a(e,!0);if(r)return r(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var s=x[e]={exports:{}};h[e][0].call(s.exports,function(f){var u=h[e][1][f];return c(u||f)},s,s.exports,d,h,x,g)}return x[e].exports}for(var r=typeof H=="function"&&H,t=0;t<g.length;t++)c(g[t]);return c}return d}()({1:[function(d,h,x){var g=d("inherits"),c=d("multimath"),r=d("./mm_unsharp_mask"),t=d("./mm_resize");function e(i){var a=i||[],n={js:a.indexOf("js")>=0,wasm:a.indexOf("wasm")>=0};c.call(this,n),this.features={js:n.js,wasm:n.wasm&&this.has_wasm()},this.use(r),this.use(t)}g(e,c),e.prototype.resizeAndUnsharp=function(a,n){var s=this.resize(a,n);return a.unsharpAmount&&this.unsharp_mask(s,a.toWidth,a.toHeight,a.unsharpAmount,a.unsharpRadius,a.unsharpThreshold),s},h.exports=e},{"./mm_resize":4,"./mm_unsharp_mask":9,inherits:19,multimath:20}],2:[function(d,h,x){function g(t){return t<0?0:t>255?255:t}function c(t,e,i,a,n,s){var f,u,l,y,m,b,B,C,F,O,E,k=0,R=0;for(F=0;F<a;F++){for(m=0,O=0;O<n;O++){for(b=s[m++],B=s[m++],C=k+b*4|0,f=u=l=y=0;B>0;B--)E=s[m++],y=y+E*t[C+3]|0,l=l+E*t[C+2]|0,u=u+E*t[C+1]|0,f=f+E*t[C]|0,C=C+4|0;e[R+3]=g(y+8192>>14),e[R+2]=g(l+8192>>14),e[R+1]=g(u+8192>>14),e[R]=g(f+8192>>14),R=R+a*4|0}R=(F+1)*4|0,k=(F+1)*i*4|0}}function r(t,e,i,a,n,s){var f,u,l,y,m,b,B,C,F,O,E,k=0,R=0;for(F=0;F<a;F++){for(m=0,O=0;O<n;O++){for(b=s[m++],B=s[m++],C=k+b*4|0,f=u=l=y=0;B>0;B--)E=s[m++],y=y+E*t[C+3]|0,l=l+E*t[C+2]|0,u=u+E*t[C+1]|0,f=f+E*t[C]|0,C=C+4|0;e[R+3]=g(y+8192>>14),e[R+2]=g(l+8192>>14),e[R+1]=g(u+8192>>14),e[R]=g(f+8192>>14),R=R+a*4|0}R=(F+1)*4|0,k=(F+1)*i*4|0}}h.exports={convolveHorizontally:c,convolveVertically:r}},{}],3:[function(d,h,x){h.exports="AGFzbQEAAAAADAZkeWxpbmsAAAAAAAEXA2AAAGAGf39/f39/AGAHf39/f39/fwACDwEDZW52Bm1lbW9yeQIAAAMEAwABAgYGAX8AQQALB1cFEV9fd2FzbV9jYWxsX2N0b3JzAAAIY29udm9sdmUAAQpjb252b2x2ZUhWAAIMX19kc29faGFuZGxlAwAYX193YXNtX2FwcGx5X2RhdGFfcmVsb2NzAAAK7AMDAwABC8YDAQ9/AkAgA0UNACAERQ0AA0AgDCENQQAhE0EAIQcDQCAHQQJqIQYCfyAHQQF0IAVqIgcuAQIiFEUEQEGAwAAhCEGAwAAhCUGAwAAhCkGAwAAhCyAGDAELIBIgBy4BAGohCEEAIQsgFCEHQQAhDiAGIQlBACEPQQAhEANAIAUgCUEBdGouAQAiESAAIAhBAnRqKAIAIgpBGHZsIBBqIRAgCkH/AXEgEWwgC2ohCyAKQRB2Qf8BcSARbCAPaiEPIApBCHZB/wFxIBFsIA5qIQ4gCEEBaiEIIAlBAWohCSAHQQFrIgcNAAsgC0GAQGshCCAOQYBAayEJIA9BgEBrIQogEEGAQGshCyAGIBRqCyEHIAEgDUECdGogCUEOdSIGQf8BIAZB/wFIGyIGQQAgBkEAShtBCHRBgP4DcSAKQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EQdEGAgPwHcSALQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EYdHJyIAhBDnUiBkH/ASAGQf8BSBsiBkEAIAZBAEobcjYCACADIA1qIQ0gE0EBaiITIARHDQALIAxBAWoiDCACbCESIAMgDEcNAAsLCx4AQQAgAiADIAQgBSAAEAEgAkEAIAQgBSAGIAEQAQs="},{}],4:[function(d,h,x){h.exports={name:"resize",fn:d("./resize"),wasm_fn:d("./resize_wasm"),wasm_src:d("./convolve_wasm_base64")}},{"./convolve_wasm_base64":3,"./resize":5,"./resize_wasm":8}],5:[function(d,h,x){var g=d("./resize_filter_gen"),c=d("./convolve").convolveHorizontally,r=d("./convolve").convolveVertically;function t(e,i,a){for(var n=3,s=i*a*4|0;n<s;)e[n]=255,n=n+4|0}h.exports=function(i){var a=i.src,n=i.width,s=i.height,f=i.toWidth,u=i.toHeight,l=i.scaleX||i.toWidth/i.width,y=i.scaleY||i.toHeight/i.height,m=i.offsetX||0,b=i.offsetY||0,B=i.dest||new Uint8Array(f*u*4),C=typeof i.quality>"u"?3:i.quality,F=i.alpha||!1,O=g(C,n,f,l,m),E=g(C,s,u,y,b),k=new Uint8Array(f*s*4);return c(a,k,n,s,f,O),r(k,B,s,f,u,E),F||t(B,f,u),B}},{"./convolve":2,"./resize_filter_gen":6}],6:[function(d,h,x){var g=d("./resize_filter_info"),c=14;function r(t){return Math.round(t*((1<<c)-1))}h.exports=function(e,i,a,n,s){var f=g[e].filter,u=1/n,l=Math.min(1,n),y=g[e].win/l,m,b,B,C,F,O,E,k,R,D,S,P,G,o,p,_,v,w=Math.floor((y+1)*2),U=new Int16Array((w+2)*a),Q=0,M=!U.subarray||!U.set;for(m=0;m<a;m++){for(b=(m+.5)*u+s,B=Math.max(0,Math.floor(b-y)),C=Math.min(i-1,Math.ceil(b+y)),F=C-B+1,O=new Float32Array(F),E=new Int16Array(F),k=0,R=B,D=0;R<=C;R++,D++)S=f((R+.5-b)*l),k+=S,O[D]=S;for(P=0,D=0;D<O.length;D++)G=O[D]/k,P+=G,E[D]=r(G);for(E[a>>1]+=r(1-P),o=0;o<E.length&&E[o]===0;)o++;if(o<E.length){for(p=E.length-1;p>0&&E[p]===0;)p--;if(_=B+o,v=p-o+1,U[Q++]=_,U[Q++]=v,!M)U.set(E.subarray(o,p+1),Q),Q+=v;else for(D=o;D<=p;D++)U[Q++]=E[D]}else U[Q++]=0,U[Q++]=0}return U}},{"./resize_filter_info":7}],7:[function(d,h,x){h.exports=[{win:.5,filter:function(c){return c>=-.5&&c<.5?1:0}},{win:1,filter:function(c){if(c<=-1||c>=1)return 0;if(c>-11920929e-14&&c<11920929e-14)return 1;var r=c*Math.PI;return Math.sin(r)/r*(.54+.46*Math.cos(r/1))}},{win:2,filter:function(c){if(c<=-2||c>=2)return 0;if(c>-11920929e-14&&c<11920929e-14)return 1;var r=c*Math.PI;return Math.sin(r)/r*Math.sin(r/2)/(r/2)}},{win:3,filter:function(c){if(c<=-3||c>=3)return 0;if(c>-11920929e-14&&c<11920929e-14)return 1;var r=c*Math.PI;return Math.sin(r)/r*Math.sin(r/3)/(r/3)}}]},{}],8:[function(d,h,x){var g=d("./resize_filter_gen");function c(i,a,n){for(var s=3,f=a*n*4|0;s<Line truncated
|
|
||||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r(o,p){if(o){if(typeof o=="string")return t(o,p);var _=Object.prototype.toString.call(o).slice(8,-1);if(_==="Object"&&o.constructor&&(_=o.constructor.name),_==="Map"||_==="Set")return Array.from(o);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return t(o,p)}}function t(o,p){(p==null||p>o.length)&&(p=o.length);for(var _=0,v=new Array(p);_<p;_++)v[_]=o[_];return v}function e(o,p){var _=o==null?null:typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(_!=null){var v=[],w=!0,U=!1,Q,M;try{for(_=_.call(o);!(w=(Q=_.next()).done)&&(v.push(Q.value),!(p&&v.length===p));w=!0);}catch(j){U=!0,M=j}finally{try{!w&&_.return!=null&&_.return()}finally{if(U)throw M}}return v}}function i(o){if(Array.isArray(o))return o}var a=d("object-assign"),n=d("webworkify"),s=d("./lib/mathlib"),f=d("./lib/pool"),u=d("./lib/utils"),l=d("./lib/worker"),y=d("./lib/stepper"),m=d("./lib/tiler"),b={},B=!1;try{typeof navigator<"u"&&navigator.userAgent&&(B=navigator.userAgent.indexOf("Safari")>=0)}catch{}var C=1;typeof navigator<"u"&&(C=Math.min(navigator.hardwareConcurrency||1,4));var F={tile:1024,concurrency:C,features:["js","wasm","ww"],idle:2e3,createCanvas:function(p,_){var v=document.createElement("canvas");return v.width=p,v.height=_,v}},O={quality:3,alpha:!1,unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0},E=!1,k=!1,R=!1,D=!1,S=!1;function P(){return{value:n(l),destroy:function(){if(this.value.terminate(),typeof window<"u"){var p=window.URL||window.webkitURL||window.mozURL||window.msURL;p&&p.revokeObjectURL&&this.value.objectURL&&p.revokeObjectURL(this.value.objectURL)}}}}function G(o){if(!(this instanceof G))return new G(o);this.options=a({},F,o||{});var p="lk_".concat(this.options.concurrency);this.__limit=b[p]||u.limiter(this.options.concurrency),b[p]||(b[p]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}G.prototype.init=function(){var o=this;if(this.__initPromise)return this.__initPromise;if(typeof ImageData<"u"&&typeof Uint8ClampedArray<"u")try{new ImageData(new Uint8ClampedArray(400),10,10),E=!0}catch{}typeof ImageBitmap<"u"&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?k=!0:this.debug("ImageBitmap does not support .close(), disabled"));var p=this.options.features.slice();if(p.indexOf("all")>=0&&(p=["cib","wasm","js","ww"]),this.__requested_features=p,this.__mathlib=new s(p),p.indexOf("ww")>=0&&typeof window<"u"&&"Worker"in window)try{var _=d("webworkify")(function(){});_.terminate(),this.features.ww=!0;var v="wp_".concat(JSON.stringify(this.options));b[v]?this.__workersPool=b[v]:(this.__workersPool=new f(P,this.options.idle),b[v]=this.__workersPool)}catch{}var w=this.__mathlib.init().then(function(j){a(o.features,j.features)}),U;k?U=u.cib_support(this.options.createCanvas).then(function(j){if(o.features.cib&&p.indexOf("cib")<0){o.debug("createImageBitmap() resize supported, but disabled by config");return}p.indexOf("cib")>=0&&(o.features.cib=j)}):U=Promise.resolve(!1),R=u.can_use_canvas(this.options.createCanvas);var Q;k&&E&&p.indexOf("ww")!==-1?Q=u.worker_offscreen_canvas_support():Q=Promise.resolve(!1),Q=Q.then(function(j){D=j});var M=u.cib_can_use_region().then(function(j){S=j});return this.__initPromise=Promise.all([w,U,Q,M]).then(function(){return o}),this.__initPromise},G.prototype.__invokeResize=function(o,p){var _=this;return p.__mathCache=p.__mathCache||{},Promise.resolve().then(function(){return _.features.ww?new Promise(function(v,w){var U=_.__workersPool.acquire();p.cancelToken&&p.cancelToken.catch(function(M){return w(M)}),U.value.onmessage=function(M){U.release(),M.data.err?w(M.data.err):v(M.data)};var Q=[];o.src&&Q.push(o.src.buffer),o.srcBitmap&&Q.push(o.srcBitmap),U.value.postMessage({opts:o,features:_.__requested_features,preload:{wasm_nodule:_.__mathlib.__}},Q)}):{data:_.__mathlib.resizeAndUnsharp(o,p.__mathCache)}})},G.prototype.__extractTileData=function(o,p,_,v,w){if(this.features.ww&&D&&(u.isCanvas(p)||S))return this.debug("Create tile for OffscreenCanvas"),createImageBitmap(v.srcImageBitmap||p,o.x,o.y,o.width,o.height).then(function(M){return w.srcBitmap=M,w});if(u.isCanvas(p))return v.srcCtx||(v.srcCtx=p.getContext("2d",{alpha:!!_.alpha})),this.debug("Get tile pixel data"),w.src=v.srcCtx.getImageData(o.x,o.y,o.width,o.height).data,w;this.debug("Draw tile imageBitmap/image to temporary canvas");var U=this.options.createCanvas(o.width,o.height),Q=U.getContext("2d",{alpha:!!_.alpha});return Q.globalCompositeOperation="copy",Q.drawImage(v.srcImageBitmap||p,o.x,o.y,o.width,o.height,0,0,o.width,o.height),this.debug("Get tile pixel data"),w.src=Q.getImageData(0,0,o.width,o.height).data,U.width=U.height=0,w},G.prototype.__landTileData=function(o,p,_){var v;if(this.debug("Convert raw rgba tile result to ImageData"),p.bitmap)return _.toCtx.drawImage(p.bitmap,o.toX,o.toY),null;if(E)v=new ImageData(new Uin
Line truncated
|
|
||||||
//# sourceMappingURL=image-blob-reduce.esm-kuDQZwjv.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"image-blob-reduce.esm-kuDQZwjv.js","sources":["../../../node_modules/image-blob-reduce/dist/image-blob-reduce.esm.mjs"],"sourcesContent":["\n/*! image-blob-reduce 3.0.1 https://github.com/nodeca/image-blob-reduce @license MIT */\nvar assign$1 = function assign(to) {\n var from;\n\n for (var s = 1; s < arguments.length; s++) {\n from = Object(arguments[s]);\n\n for (var key in from) {\n if (Object.prototype.hasOwnProperty.call(from, key)) to[key] = from[key];\n }\n }\n\n return to;\n};\n\n\nfunction pick(from, props) {\n var to = {};\n\n props.forEach(function (key) {\n if (Object.prototype.hasOwnProperty.call(from, key)) to[key] = from[key];\n });\n\n return to;\n}\n\n\nfunction pick_pica_resize_options(from) {\n return pick(from, [\n 'alpha',\n 'unsharpAmount',\n 'unsharpRadius',\n 'unsharpThreshold',\n 'cancelToken'\n ]);\n}\n\n\nvar pick_1 = pick;\nvar pick_pica_resize_options_1 = pick_pica_resize_options;\n\nvar utils = {\n\tassign: assign$1,\n\tpick: pick_1,\n\tpick_pica_resize_options: pick_pica_resize_options_1\n};\n\nfunction createCommonjsModule(fn) {\n var module = { exports: {} };\n\treturn fn(module, module.exports), module.exports;\n}\n\nfunction commonjsRequire (target) {\n\tthrow new Error('Could not dynamically require \"' + target + '\". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.');\n}\n\n/*!\n\npica\nhttps://github.com/nodeca/pica\n\n*/\n\nvar pica = createCommonjsModule(function (module, exports) {\n(function(f){{module.exports=f();}})(function(){return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof commonjsRequire&&commonjsRequire;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t);}return n[i].exports}for(var u=\"function\"==typeof commonjsRequire&&commonjsRequire,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(_dereq_,module,exports){\n\nvar inherits = _dereq_('inherits');\n\nvar Multimath = _dereq_('multimath');\n\nvar mm_unsharp_mask = _dereq_('./mm_unsharp_mask');\n\nvar mm_resize = _dereq_('./mm_resize');\n\nfunction MathLib(requested_features) {\n var __requested_features = requested_features || [];\n\n var features = {\n js: __requested_features.indexOf('js') >= 0,\n wasm: __requested_features.indexOf('wasm') >= 0\n };\n Multimath.call(this, features);\n this.features = {\n js: features.js,\n wasm: features.wasm && this.has_wasm()\n };\n this.use(mm_unsharp_mask);\n this.use(mm_resize);\n}\n\ninherits(MathLib, Multimath);\n\nMathLib.prototype.resizeAndUnsharp = function resizeAndUnsharp(options, cache) {\n var result = this.resize(options, cache);\n\n if (options.unsharpAmount) {\n this.unsharp_mask(result, options.toWidth, options.toHeight, options.unsharpAmount, options.unsharpRadius, options.unsharpThreshold);\n }\n\n return result;\n};\n\nmodule.exports = MathLib;\n\n},{\"./mm_resize\":4,\"./mm_unsharp_mask\":9,\"inherits\":19,\"multimath\":20}],2:[function(_dereq_,module,exports){\n//var FIXED_FRAC_BITS = 14;\n\nfunction clampTo8(i) {\n return i < 0 ? 0 : i > 255 ? 255 : i;\n} // Convolve image in horizontal directions and transpose output. In theory,\n// transpose allow:\n//\n// - use the same convolver for both passes (this fails due different\n// types of input array and temporary buffer)\n// - making vertical pass by horisonltal lines inprove CPU cache use.\n//\n// But in real life this doesn't work :)\n//\n\n\nfunction convolveHorizontally(src, dest, srcW, srcH, destW, filters) {\n var r, g, b, a;\n var filterPtr, filterShift, filterSize;\n var srcPtr, srcY, destX, filterVal;\n var srcOffset = 0,\n destOffset = 0; // For each row\n\n for (srcY = 0; srcY < srcH; srcY++) {\n filterPtr = 0; // Apply precomputed filters to each destination row point\n\n for (destX = 0; destX < destW; destX++) {\n // Get the filter that determines the current output pixel.\n filterShift = filters[filterPtr++];\n filterSize = filters[filterPtr++];\n srcPtr = srcOffset + filterShift * 4 | 0;\n r = g = b = a = 0; // Apply the filter to the row to get the destination pixel r, g, b, a\n\n for (; filterSize > 0; filterSize--) {\n filterVal = filters[filterPtr++]; // Use reverse order to workaround deopts in old v8 (node v.10)\n // Big thanks to @mraleph (Vyacheslav Egorov) for the tip.\n\n a = a + filterVal * src[srcPtr + 3] | 0;\n b = b + filterVal * src[srcPtr + 2] | 0;\n g = g + filterVal * src[srcPtr + 1] | 0;\n r = r + filterVal * src[srcPtr] | 0;\n srcPtr = srcPtr + 4 | 0;\n } // Bring this value back in range. All of the filter scaling factors\n // are in fixeLine truncated
|
|
||||||
@@ -1,372 +0,0 @@
|
|||||||
var DA=Object.defineProperty;var OA=(e,t,n)=>t in e?DA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var M=(e,t,n)=>(OA(e,typeof t!="symbol"?t+"":t,n),n);function NA(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var ph=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var y5={exports:{}},y1={},v5={exports:{}},Te={};/**
|
|
||||||
* @license React
|
|
||||||
* react.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/var Ud=Symbol.for("react.element"),FA=Symbol.for("react.portal"),$A=Symbol.for("react.fragment"),BA=Symbol.for("react.strict_mode"),zA=Symbol.for("react.profiler"),HA=Symbol.for("react.provider"),UA=Symbol.for("react.context"),WA=Symbol.for("react.forward_ref"),VA=Symbol.for("react.suspense"),GA=Symbol.for("react.memo"),jA=Symbol.for("react.lazy"),Gw=Symbol.iterator;function YA(e){return e===null||typeof e!="object"?null:(e=Gw&&e[Gw]||e["@@iterator"],typeof e=="function"?e:null)}var E5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w5=Object.assign,b5={};function ic(e,t,n){this.props=e,this.context=t,this.refs=b5,this.updater=n||E5}ic.prototype.isReactComponent={};ic.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ic.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _5(){}_5.prototype=ic.prototype;function zy(e,t,n){this.props=e,this.context=t,this.refs=b5,this.updater=n||E5}var Hy=zy.prototype=new _5;Hy.constructor=zy;w5(Hy,ic.prototype);Hy.isPureReactComponent=!0;var jw=Array.isArray,x5=Object.prototype.hasOwnProperty,Uy={current:null},S5={key:!0,ref:!0,__self:!0,__source:!0};function k5(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)x5.call(t,r)&&!S5.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Ud,type:e,key:o,ref:s,props:i,_owner:Uy.current}}function KA(e,t){return{$$typeof:Ud,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Wy(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ud}function ZA(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Yw=/\/+/g;function Ng(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ZA(""+e.key):t.toString(36)}function hf(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Ud:case FA:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Ng(s,0):r,jw(i)?(n="",e!=null&&(n=e.replace(Yw,"$&/")+"/"),hf(i,t,n,"",function(c){return c})):i!=null&&(Wy(i)&&(i=KA(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Yw,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",jw(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Ng(o,a);s+=hf(o,t,n,l,i)}else if(l=YA(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Ng(o,a++),s+=hf(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function yh(e,t,n){if(e==null)return e;var r=[],i=0;return hf(e,r,"","",function(o){return t.call(n,o,i++)}),r}function XA(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var In={current:null},ff={transition:null},qA={ReactCurrentDispatcher:In,ReactCurrentBatchConfig:ff,ReactCurrentOwner:Uy};Te.Children={map:yh,forEach:function(e,t,n){yh(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return yh(e,function(){t++}),t},toArray:function(e){return yh(e,function(t){return t})||[]},only:function(e){if(!Wy(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Te.Component=ic;Te.Fragment=$A;Te.Profiler=zA;Te.PureComponent=zy;Te.StrictMode=BA;Te.Suspense=VA;Te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qA;Te.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=w5({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Uy.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)x5.call(t,l)&&!S5.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Ud,type:e.type,key:i,ref:o,props:r,_owner:s}};Te.createContext=function(e){return e={$$typeof:UA,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:HA,_conLine truncated
|
|
||||||
* @license React
|
|
||||||
* react-jsx-runtime.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/var JA=_,eL=Symbol.for("react.element"),tL=Symbol.for("react.fragment"),nL=Object.prototype.hasOwnProperty,rL=JA.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,iL={key:!0,ref:!0,__self:!0,__source:!0};function I5(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)nL.call(t,r)&&!iL.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:eL,type:e,key:o,ref:s,props:i,_owner:rL.current}}y1.Fragment=tL;y1.jsx=I5;y1.jsxs=I5;y5.exports=y1;var Vy=y5.exports;const re=Vy.Fragment,f=Vy.jsx,k=Vy.jsxs;var C5={exports:{}},or={},T5={exports:{}},M5={};/**
|
|
||||||
* @license React
|
|
||||||
* scheduler.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/(function(e){function t($,Y){var R=$.length;$.push(Y);e:for(;0<R;){var N=R-1>>>1,B=$[N];if(0<i(B,Y))$[N]=Y,$[R]=B,R=N;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var Y=$[0],R=$.pop();if(R!==Y){$[0]=R;e:for(var N=0,B=$.length,z=B>>>1;N<z;){var W=2*(N+1)-1,j=$[W],X=W+1,ee=$[X];if(0>i(j,R))X<B&&0>i(ee,j)?($[N]=ee,$[X]=R,N=X):($[N]=j,$[W]=R,N=W);else if(X<B&&0>i(ee,R))$[N]=ee,$[X]=R,N=X;else break e}}return Y}function i($,Y){var R=$.sortIndex-Y.sortIndex;return R!==0?R:$.id-Y.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,h=3,m=!1,g=!1,p=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w($){for(var Y=n(c);Y!==null;){if(Y.callback===null)r(c);else if(Y.startTime<=$)r(c),Y.sortIndex=Y.expirationTime,t(l,Y);else break;Y=n(c)}}function x($){if(p=!1,w($),!g)if(n(l)!==null)g=!0,q(C);else{var Y=n(c);Y!==null&&U(x,Y.startTime-$)}}function C($,Y){g=!1,p&&(p=!1,y(T),T=-1),m=!0;var R=h;try{for(w(Y),d=n(l);d!==null&&(!(d.expirationTime>Y)||$&&!F());){var N=d.callback;if(typeof N=="function"){d.callback=null,h=d.priorityLevel;var B=N(d.expirationTime<=Y);Y=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(l)&&r(l),w(Y)}else r(l);d=n(l)}if(d!==null)var z=!0;else{var W=n(c);W!==null&&U(x,W.startTime-Y),z=!1}return z}finally{d=null,h=R,m=!1}}var S=!1,I=null,T=-1,L=5,A=-1;function F(){return!(e.unstable_now()-A<L)}function P(){if(I!==null){var $=e.unstable_now();A=$;var Y=!0;try{Y=I(!0,$)}finally{Y?O():(S=!1,I=null)}}else S=!1}var O;if(typeof E=="function")O=function(){E(P)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,G=V.port2;V.port1.onmessage=P,O=function(){G.postMessage(null)}}else O=function(){v(P,0)};function q($){I=$,S||(S=!0,O())}function U($,Y){T=v(function(){$(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_continueExecution=function(){g||m||(g=!0,q(C))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function($){switch(h){case 1:case 2:case 3:var Y=3;break;default:Y=h}var R=h;h=Y;try{return $()}finally{h=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,Y){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var R=h;h=$;try{return Y()}finally{h=R}},e.unstable_scheduleCallback=function($,Y,R){var N=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?N+R:N):R=N,$){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=R+B,$={id:u++,callback:Y,priorityLevel:$,startTime:R,expirationTime:B,sortIndex:-1},R>N?($.sortIndex=R,t(c,$),n(l)===null&&$===n(c)&&(p?(y(T),T=-1):p=!0,U(x,R-N))):($.sortIndex=B,t(l,$),g||m||(g=!0,q(C))),$},e.unstable_shouldYield=F,e.unstable_wrapCallback=function($){var Y=h;return function(){var R=h;h=Y;try{return $.apply(this,arguments)}finally{h=R}}}})(M5);T5.exports=M5;var oL=T5.exports;/**
|
|
||||||
* @license React
|
|
||||||
* react-dom.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/var A5=_,ir=oL;function Q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var L5=new Set,ju={};function La(e,t){Fl(e,t),Fl(e+"Capture",t)}function Fl(e,t){for(ju[e]=t,e=0;e<t.length;e++)L5.add(t[e])}var Zi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_0=Object.prototype.hasOwnProperty,sL=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Kw={},Zw={};function aL(e){return _0.call(Zw,e)?!0:_0.call(Kw,e)?!1:sL.test(e)?Zw[e]=!0:(Kw[e]=!0,!1)}function lL(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function cL(e,t,n,r){if(t===null||typeof t>"u"||lL(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Cn(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Jt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Jt[e]=new Cn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Jt[t]=new Cn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Jt[e]=new Cn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Jt[e]=new Cn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Jt[e]=new Cn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Jt[e]=new Cn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Jt[e]=new Cn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Jt[e]=new Cn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Jt[e]=new Cn(e,5,!1,e.toLowerCase(),null,!1,!1)});var Gy=/[\-:]([a-z])/g;function jy(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Gy,jy);Jt[t]=new Cn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Gy,jy);Jt[t]=new Cn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Gy,jy);Jt[t]=new Cn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Jt[e]=new Cn(e,1,!1,e.toLowerCase(),null,!1,!1)});Jt.xlinkHref=new Cn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Jt[e]=new Cn(e,1,!1,e.toLowerCase(),null,!0,!0)});function Yy(e,t,n,r){var i=Jt.hasOwnProperty(t)?Jt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="
Line truncated
|
|
||||||
`+Fg+e}var $g=!1;function Bg(e,t){if(!e||$g)return"";$g=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
|
||||||
`),o=r.stack.split(`
|
|
||||||
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
|
|
||||||
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{$g=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?iu(e):""}function uL(e){switch(e.tag){case 5:return iu(e.type);case 16:return iu("Lazy");case 13:return iu("Suspense");case 19:return iu("SuspenseList");case 0:case 2:case 15:return e=Bg(e.type,!1),e;case 11:return e=Bg(e.type.render,!1),e;case 1:return e=Bg(e.type,!0),e;default:return""}}function I0(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case nl:return"Fragment";case tl:return"Portal";case x0:return"Profiler";case Ky:return"StrictMode";case S0:return"Suspense";case k0:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R5:return(e.displayName||"Context")+".Consumer";case P5:return(e._context.displayName||"Context")+".Provider";case Zy:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xy:return t=e.displayName||null,t!==null?t:I0(e.type)||"Memo";case Eo:t=e._payload,e=e._init;try{return I0(e(t))}catch{}}return null}function dL(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return I0(t);case 8:return t===Ky?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function is(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function O5(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hL(e){var t=O5(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Eh(e){e._valueTracker||(e._valueTracker=hL(e))}function N5(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=O5(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Qf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function C0(e,t){var n=t.checked;return ft({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qw(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=is(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function F5(e,t){t=t.checked,t!=null&&Yy(e,"checked",t,!1)}function T0(e,t){F5(e,t);var n=is(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?M0(e,t.type,n):t.hasOwnProperty("defaultValue")&&M0(e,t.type,is(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qw(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function M0(e,t,n){(t!=="number"||Qf(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ou=Array.isArray;function bl(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+is(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function A0(e,t){if(t.dan
Line truncated
|
|
||||||
`).replace(_9,"")}function Ch(e,t,n){if(t=b3(t),b3(e)!==t&&n)throw Error(Q(425))}function sm(){}var W0=null,V0=null;function G0(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var j0=typeof setTimeout=="function"?setTimeout:void 0,x9=typeof clearTimeout=="function"?clearTimeout:void 0,_3=typeof Promise=="function"?Promise:void 0,S9=typeof queueMicrotask=="function"?queueMicrotask:typeof _3<"u"?function(e){return _3.resolve(null).then(e).catch(k9)}:j0;function k9(e){setTimeout(function(){throw e})}function Qg(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),qu(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);qu(t)}function jo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function x3(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var sc=Math.random().toString(36).slice(2),pi="__reactFiber$"+sc,nd="__reactProps$"+sc,Xi="__reactContainer$"+sc,Y0="__reactEvents$"+sc,I9="__reactListeners$"+sc,C9="__reactHandles$"+sc;function Us(e){var t=e[pi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xi]||n[pi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=x3(e);e!==null;){if(n=e[pi])return n;e=x3(e)}return t}e=n,n=e.parentNode}return null}function Gd(e){return e=e[pi]||e[Xi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function sl(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Q(33))}function _1(e){return e[nd]||null}var K0=[],al=-1;function ys(e){return{current:e}}function rt(e){0>al||(e.current=K0[al],K0[al]=null,al--)}function Ze(e,t){al++,K0[al]=e.current,e.current=t}var os={},fn=ys(os),Fn=ys(!1),la=os;function $l(e,t){var n=e.type.contextTypes;if(!n)return os;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function $n(e){return e=e.childContextTypes,e!=null}function am(){rt(Fn),rt(fn)}function S3(e,t,n){if(fn.current!==os)throw Error(Q(168));Ze(fn,t),Ze(Fn,n)}function kx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Q(108,dL(e)||"Unknown",i));return ft({},n,r)}function lm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||os,la=fn.current,Ze(fn,e),Ze(Fn,Fn.current),!0}function k3(e,t,n){var r=e.stateNode;if(!r)throw Error(Q(169));n?(e=kx(e,t,la),r.__reactInternalMemoizedMergedChildContext=e,rt(Fn),rt(fn),Ze(fn,e)):rt(Fn),Ze(Fn,n)}var $i=null,x1=!1,Jg=!1;function Ix(e){$i===null?$i=[e]:$i.push(e)}function T9(e){x1=!0,Ix(e)}function vs(){if(!Jg&&$i!==null){Jg=!0;var e=0,t=Ue;try{var n=$i;for(Ue=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}$i=null,x1=!1}catch(i){throw $i!==null&&($i=$i.slice(e+1)),q5(Qy,vs),i}finally{Ue=t,Jg=!1}}return null}var ll=[],cl=0,cm=null,um=0,dr=[],hr=0,ca=null,zi=1,Hi="";function Is(e,t){ll[cl++]=um,ll[cl++]=cm,cm=e,um=t}function Cx(e,t,n){dr[hr++]=zi,dr[hr++]=Hi,dr[hr++]=ca,ca=e;var r=zi;e=Hi;var i=32-Wr(r)-1;r&=~(1<<i),n+=1;var o=32-Wr(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,zi=1<<32-Wr(t)+i|n<<i|r,Hi=o+e}else zi=1<<o|n<<i|r,Hi=e}function av(e){e.return!==null&&(Is(e,1),Cx(e,1,0))}function lv(e){for(;e===cm;)cm=ll[--cl],ll[cl]=null,um=ll[--cl],ll[cl]=null;for(;e===ca;)ca=dr[--hr],dr[hr]=null,Hi=dr[--hr],dr[hr]=null,zi=dr[--hr],dr[hr]=null}var tr=null,qn=null,lt=!1,Br=null;function Tx(e,t){var n=mr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function I3(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,tr=e,qn=jo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,tr=e,qn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ca!==null?{id:zi,overflow:Hi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=mr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,tr=e,qn=null,!0):!1;default:return!1}}function Z0(e){return(e.mode&1)!==0&&(e.flags&128)===0}function X0(e){if(lt){var t=qn;if(t){var n=t;if(!I3(e,t)){if(Z0(e))throw Error(Q(418));t=jo(n.nextSibling);var r=tr;t&&I3(e,t)?Tx(r,n):(e.flags=e.flags&-4097|2,lt=!1,tr=e)}}else{if(Z0(e))throw Error(Q(418));e.flags=e.flags&-4097|2,lt=!1,tr=e}}}function C3(e){for(e=e
Line truncated
|
|
||||||
Error generating stack: `+o.message+`
|
|
||||||
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function ip(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function e2(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var F9=typeof WeakMap=="function"?WeakMap:Map;function nS(e,t,n){n=Wi(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){vm||(vm=!0,u2=r),e2(e,t)},n}function rS(e,t,n){n=Wi(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){e2(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){e2(e,t),typeof r!="function"&&(Ko===null?Ko=new Set([this]):Ko.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function O3(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new F9;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=q9.bind(null,e,t,n),t.then(e,e))}function N3(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function F3(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Wi(-1,1),t.tag=2,Yo(n,t,1))),n.lanes|=1),e)}var $9=io.ReactCurrentOwner,Rn=!1;function En(e,t,n,r){t.child=e===null?Ox(t,null,n,r):zl(t,e.child,n,r)}function $3(e,t,n,r,i){n=n.render;var o=t.ref;return kl(t,i),r=Ev(e,t,n,r,o,i),n=wv(),e!==null&&!Rn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qi(e,t,i)):(lt&&n&&av(t),t.flags|=1,En(e,t,r,i),t.child)}function B3(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Av(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,iS(e,t,o,r,i)):(e=xf(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ju,n(s,r)&&e.ref===t.ref)return Qi(e,t,i)}return t.flags|=1,e=Xo(o,r),e.ref=t.ref,e.return=t,t.child=e}function iS(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ju(o,r)&&e.ref===t.ref)if(Rn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Rn=!0);else return t.lanes=e.lanes,Qi(e,t,i)}return t2(e,t,n,r,i)}function oS(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ze(hl,Xn),Xn|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ze(hl,Xn),Xn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ze(hl,Xn),Xn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ze(hl,Xn),Xn|=r;return En(e,t,i,n),t.child}function sS(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function t2(e,t,n,r,i){var o=$n(n)?la:fn.current;return o=$l(t,o),kl(t,i),n=Ev(e,t,n,r,o,i),r=wv(),e!==null&&!Rn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qi(e,t,i)):(lt&&r&&av(t),t.flags|=1,En(e,t,n,i),t.child)}function z3(e,t,n,r,i){if($n(n)){var o=!0;lm(t)}else o=!1;if(kl(t,i),t.stateNode===null)wf(e,t),Rx(t,n,r),J0(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=br(c):(c=$n(n)?la:fn.current,c=$l(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&L3(t,s,r,c),wo=!1;var h=t.memoizedState;s.state=h,fm(t,r,s,i),l=t.memoizedState,a!==r||h!==l||Fn.current||wo?(typeof u=="function"&&(Q0(t,n,u,r),l=t.memoizedState),(a=wo||A3(t,n,a,r,h,l,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Lx(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Dr(t.type,a),s.props=c,d=t.pendingProps,h=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=br(l):(l=$n(n)?la:fn.current,l=$l(t,l));var m=n.getDerivedStateFromProps;(u=typeof m=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||h!==l)&&L3(t,s,r,l),wo=!1,h=t.memoizedState,s.state=h,fm(t,r,s,i);var g=t.memoizedS
Line truncated
|
|
||||||
|
|
||||||
(If you want to keep your local drawing, simply close the browser tab instead.)`,errorAddingToLibrary:"Couldn't add item to the library",errorRemovingFromLibrary:"Couldn't remove item from the library",confirmAddLibrary:"This will add {{numShapes}} shape(s) to your library. Are you sure?",imageDoesNotContainScene:"This image does not seem to contain any scene data. Have you enabled scene embedding during export?",cannotRestoreFromImage:"Scene couldn't be restored from this image file",invalidSceneUrl:"Couldn't import scene from the supplied URL. It's either malformed, or doesn't contain valid Excalidraw JSON data.",resetLibrary:"This will clear your library. Are you sure?",removeItemsFromsLibrary:"Delete {{count}} item(s) from library?",invalidEncryptionKey:"Encryption key must be of 22 characters. Live collaboration is disabled.",collabOfflineWarning:`No internet connection available.
|
|
||||||
Your changes will not be saved!`},JS={unsupportedFileType:"Unsupported file type.",imageInsertError:"Couldn't insert image. Try again later...",fileTooBig:"File is too big. Maximum allowed size is {{maxSize}}.",svgImageInsertError:"Couldn't insert SVG image. The SVG markup looks invalid.",failedToFetchImage:"Failed to fetch image.",cannotResolveCollabServer:"Couldn't connect to the collab server. Please reload the page and try again.",importLibraryError:"Couldn't load library",saveLibraryError:"Couldn't save library to storage. Please save your library to a file locally to make sure you don't lose changes.",collabSaveFailed:"Couldn't save to the backend database. If problems persist, you should save your file locally to ensure you don't lose your work.",collabSaveFailed_sizeExceeded:"Couldn't save to the backend database, the canvas seems to be too big. You should save the file locally to ensure you don't lose your work.",imageToolNotSupported:"Images are disabled.",brave_measure_text_error:{line1:"Looks like you are using Brave browser with the <bold>Aggressively Block Fingerprinting</bold> setting enabled.",line2:"This could result in breaking the <bold>Text Elements</bold> in your drawings.",line3:"We strongly recommend disabling this setting. You can follow <link>these steps</link> on how to do so.",line4:"If disabling this setting doesn't fix the display of text elements, please open an <issueLink>issue</issueLink> on our GitHub, or write us on <discordLink>Discord</discordLink>"},libraryElementTypeError:{embeddable:"Embeddable elements cannot be added to the library.",iframe:"IFrame elements cannot be added to the library.",image:"Support for adding images to the library coming soon!"},asyncPasteFailedOnRead:"Couldn't paste (couldn't read from system clipboard).",asyncPasteFailedOnParse:"Couldn't paste.",copyToSystemClipboardFailed:"Couldn't copy to clipboard."},ek={selection:"Selection",image:"Insert image",rectangle:"Rectangle",diamond:"Diamond",ellipse:"Ellipse",arrow:"Arrow",line:"Line",freedraw:"Draw",text:"Text",library:"Library",lock:"Keep selected tool active after drawing",penMode:"Pen mode - prevent touch",link:"Add / Update link for a selected shape",eraser:"Eraser",frame:"Frame tool",magicframe:"Wireframe to code",embeddable:"Web Embed",laser:"Laser pointer",hand:"Hand (panning tool)",extraTools:"More tools",mermaidToExcalidraw:"Mermaid to Excalidraw",magicSettings:"AI settings"},tk={canvasActions:"Canvas actions",selectedShapeActions:"Selected shape actions",shapes:"Shapes"},nk={canvasPanning:"To move canvas, hold mouse wheel or spacebar while dragging, or use the hand tool",linearElement:"Click to start multiple points, drag for single line",freeDraw:"Click and drag, release when you're finished",text:"Tip: you can also add text by double-clicking anywhere with the selection tool",embeddable:"Click-drag to create a website embed",text_selected:"Double-click or press ENTER to edit text",text_editing:"Press Escape or CtrlOrCmd+ENTER to finish editing",linearElementMulti:"Click on last point or press Escape or Enter to finish",lockAngle:"You can constrain angle by holding SHIFT",resize:`You can constrain proportions by holding SHIFT while resizing,
|
|
||||||
hold ALT to resize from the center`,resizeImage:`You can resize freely by holding SHIFT,
|
|
||||||
hold ALT to resize from the center`,rotate:"You can constrain angles by holding SHIFT while rotating",lineEditor_info:"Hold CtrlOrCmd and Double-click or press CtrlOrCmd + Enter to edit points",lineEditor_pointSelected:`Press Delete to remove point(s),
|
|
||||||
CtrlOrCmd+D to duplicate, or drag to move`,lineEditor_nothingSelected:`Select a point to edit (hold SHIFT to select multiple),
|
|
||||||
or hold Alt and click to add new points`,placeImage:"Click to place the image, or click and drag to set its size manually",publishLibrary:"Publish your own library",bindTextToElement:"Press enter to add text",deepBoxSelect:"Hold CtrlOrCmd to deep select, and to prevent dragging",eraserRevert:"Hold Alt to revert the elements marked for deletion",firefox_clipboard_write:'This feature can likely be enabled by setting the "dom.events.asyncClipboard.clipboardItem" flag to "true". To change the browser flags in Firefox, visit the "about:config" page.',disableSnapping:"Hold CtrlOrCmd to disable snapping"},rk={cannotShowPreview:"Cannot show preview",canvasTooBig:"The canvas may be too big.",canvasTooBigTip:"Tip: try moving the farthest elements a bit closer together."},ik={headingMain:"Encountered an error. Try <button>reloading the page</button>.",clearCanvasMessage:"If reloading doesn't work, try <button>clearing the canvas</button>.",clearCanvasCaveat:" This will result in loss of work ",trackedToSentry:"The error with identifier {{eventId}} was tracked on our system.",openIssueMessage:"We were very cautious not to include your scene information on the error. If your scene is not private, please consider following up on our <button>bug tracker</button>. Please include information below by copying and pasting into the GitHub issue.",sceneContent:"Scene content:"},ok={or:"Or"},sk={desc_intro:"Invite people to collaborate on your drawing.",desc_privacy:"Don't worry, the session is end-to-end encrypted, and fully private. Not even our server can see what you draw.",button_startSession:"Start session",button_stopSession:"Stop session",desc_inProgressIntro:"Live-collaboration session is now in progress.",desc_shareLink:"Share this link with anyone you want to collaborate with:",desc_exitSession:"Stopping the session will disconnect you from the room, but you'll be able to continue working with the scene, locally. Note that this won't affect other people, and they'll still be able to collaborate on their version.",shareTitle:"Join a live collaboration session on Excalidraw"},ak={title:"Error"},lk={disk_title:"Save to disk",disk_details:"Export the scene data to a file from which you can import later.",disk_button:"Save to file",link_title:"Shareable link",link_details:"Export as a read-only link.",link_button:"Export to Link",excalidrawplus_description:"Save the scene to your Excalidraw+ workspace.",excalidrawplus_button:"Export",excalidrawplus_exportError:"Couldn't export to Excalidraw+ at this moment..."},ck={blog:"Read our blog",click:"click",deepSelect:"Deep select",deepBoxSelect:"Deep select within box, and prevent dragging",curvedArrow:"Curved arrow",curvedLine:"Curved line",documentation:"Documentation",doubleClick:"double-click",drag:"drag",editor:"Editor",editLineArrowPoints:"Edit line/arrow points",editText:"Edit text / add label",github:"Found an issue? Submit",howto:"Follow our guides",or:"or",preventBinding:"Prevent arrow binding",tools:"Tools",shortcuts:"Keyboard shortcuts",textFinish:"Finish editing (text editor)",textNewLine:"Add new line (text editor)",title:"Help",view:"View",zoomToFit:"Zoom to fit all elements",zoomToSelection:"Zoom to selection",toggleElementLock:"Lock/unlock selection",movePageUpDown:"Move page up/down",movePageLeftRight:"Move page left/right"},uk={title:"Clear canvas"},dk={title:"Publish library",itemName:"Item name",authorName:"Author name",githubUsername:"GitHub username",twitterUsername:"Twitter username",libraryName:"Library name",libraryDesc:"Library description",website:"Website",placeholder:{authorName:"Your name or username",libraryName:"Name of your library",libraryDesc:"Description of your library to help people understand its usage",githubHandle:"GitHub handle (optional), so you can edit the library once submitted for review",twitterHandle:"Twitter username (optional), so we know who to credit when promoting over Twitter",website:"Link to your personal website or elsewhere (optional)"},errors:{required:"Required",website:"Enter a valid URL"},noteDescription:"Submit your library to be included in the <link>public library repository</link> for other people to use in their drawings.",noteGuidelines:"The library needs to be manually approved first. Please read the <link>guidelines</link> before submitting. You will need a GitHub account to communicate and make changes if requested, but it is not strictly required.",noteLicense:"By submitting, you agree the library will be published under the <link>MIT License</link>, which in short means anyone can use them without restrictions.",noteItems:"Each library item must have its own name so it's filterable. The following library items will be included:",atleastOneLibItem:"Please select at least one library item to get started",republishWarning:"Note: some of the selected items are marked as already published/submitted. You should only resubmit items when updating an existing library or submission."},hk={title:"Library submitted",
Line truncated
|
|
||||||
Will increase exported file size.`},title:{exportToPng:"Export to PNG",exportToSvg:"Export to SVG",copyPngToClipboard:"Copy PNG to clipboard"},button:{exportToPng:"PNG",exportToSvg:"SVG",copyPngToClipboard:"Copy to clipboard"}},gk={tooltip:"Your drawings are end-to-end encrypted so Excalidraw's servers will never see them.",link:"Blog post on end-to-end encryption in Excalidraw"},pk={angle:"Angle",element:"Element",elements:"Elements",height:"Height",scene:"Scene",selected:"Selected",storage:"Storage",title:"Stats for nerds",total:"Total",version:"Version",versionCopy:"Click to copy",versionNotAvailable:"Version not available",width:"Width"},yk={addedToLibrary:"Added to library",copyStyles:"Copied styles.",copyToClipboard:"Copied to clipboard.",copyToClipboardAsPng:`Copied {{exportSelection}} to clipboard as PNG
|
|
||||||
({{exportColorScheme}})`,fileSaved:"File saved.",fileSavedToFilename:"Saved to {filename}",canvas:"canvas",selection:"selection",pasteAsSingleElement:`Use {{shortcut}} to paste as a single element,
|
|
||||||
or paste into an existing text editor`,unableToEmbed:"Embedding this url is currently not allowed. Raise an issue on GitHub to request the url whitelisted",unrecognizedLinkFormat:"The link you embedded does not match the expected format. Please try to paste the 'embed' string provided by the source site"},vk={transparent:"Transparent",black:"Black",white:"White",red:"Red",pink:"Pink",grape:"Grape",violet:"Violet",gray:"Gray",blue:"Blue",cyan:"Cyan",teal:"Teal",green:"Green",yellow:"Yellow",orange:"Orange",bronze:"Bronze"},Ek={app:{center_heading:"All your data is saved locally in your browser.",center_heading_plus:"Did you want to go to the Excalidraw+ instead?",menuHint:"Export, preferences, languages, ..."},defaults:{menuHint:"Export, preferences, and more...",center_heading:"Diagrams. Made. Simple.",toolbarHint:"Pick a tool & Start drawing!",helpHint:"Shortcuts & help"}},wk={mostUsedCustomColors:"Most used custom colors",colors:"Colors",shades:"Shades",hexCode:"Hex code",noShades:"No shades available for this color"},bk={action:{exportToImage:{title:"Export as image",button:"Export as image",description:"Export the scene data as an image from which you can import later."},saveToDisk:{title:"Save to disk",button:"Save to disk",description:"Export the scene data to a file from which you can import later."},excalidrawPlus:{title:"Excalidraw+",button:"Export to Excalidraw+",description:"Save the scene to your Excalidraw+ workspace."}},modal:{loadFromFile:{title:"Load from file",button:"Load from file",description:"Loading from a file will <bold>replace your existing content</bold>.<br></br>You can back up your drawing first using one of the options below."},shareableLink:{title:"Load from link",button:"Replace my content",description:"Loading external drawing will <bold>replace your existing content</bold>.<br></br>You can back up your drawing first by using one of the options below."}}},_k={title:"Mermaid to Excalidraw",button:"Insert",description:"Currently only <flowchartLink>Flowchart</flowchartLink>,<sequenceLink> Sequence, </sequenceLink> and <classLink>Class </classLink>Diagrams are supported. The other types will be rendered as image in Excalidraw.",syntax:"Mermaid Syntax",preview:"Preview"},xk={search:{placeholder:"Quick search",empty:"No users found"},hint:{text:"Click on user to follow",followStatus:"You're currently following this user",inCall:"User is in a voice call",micMuted:"User's microphone is muted",isSpeaking:"User is speaking"}},Uv={labels:ZS,library:XS,buttons:qS,alerts:QS,errors:JS,toolBar:ek,headings:tk,hints:nk,canvasError:rk,errorSplash:ik,shareDialog:ok,roomDialog:sk,errorDialog:ak,exportDialog:lk,helpDialog:ck,clearCanvasDialog:uk,publishDialog:dk,publishSuccessDialog:hk,confirmDialog:fk,imageExportDialog:mk,encrypted:gk,stats:pk,toast:yk,colors:vk,welcomeScreen:Ek,colorPicker:wk,overwriteConfirm:bk,mermaid:_k,userList:xk},AR=Object.freeze(Object.defineProperty({__proto__:null,alerts:QS,buttons:qS,canvasError:rk,clearCanvasDialog:uk,colorPicker:wk,colors:vk,confirmDialog:fk,default:Uv,encrypted:gk,errorDialog:ak,errorSplash:ik,errors:JS,exportDialog:lk,headings:tk,helpDialog:ck,hints:nk,imageExportDialog:mk,labels:ZS,library:XS,mermaid:_k,overwriteConfirm:bk,publishDialog:dk,publishSuccessDialog:hk,roomDialog:sk,shareDialog:ok,stats:pk,toast:yk,toolBar:ek,userList:xk,welcomeScreen:Ek},Symbol.toStringTag,{value:"Module"})),Sk=100,kk=36,Ik={"ar-SA":94,"az-AZ":17,"bg-BG":71,"bn-BD":52,"ca-ES":83,"cs-CZ":86,"da-DK":61,"de-DE":100,"el-GR":80,en:Sk,"es-ES":96,"eu-ES":97,"fa-IR":84,"fi-FI":76,"fr-FR":99,"gl-ES":86,"he-IL":77,"hi-IN":76,"hu-HU":76,"id-ID":91,"it-IT":98,"ja-JP":90,kaa:kk,"kab-KAB":76,"kk-KZ":18,"km-KH":83,"ko-KR":100,"ku-TR":87,"lt-LT":48,"lv-LV":77,"mr-IN":98,"my-MM":35,"nb-NO":93,"nl-NL":75,"nn-NO":67,"oc-FR":92,"pa-IN":78,"pl-PL":99,"pt-BR":91,"pt-PT":83,"ro-RO":99,"ru-RU":92,"si-LK":7,"sk-SK":100,"sl-SI":100,"sv-SE":100,"ta-IN":81,"th-TH":44,"tr-TR":87,"uk-UA":93,"vi-VN":49,"zh-CN":100,"zh-HK":22,"zh-TW":100},LR=Object.freeze(Object.defineProperty({__proto__:null,default:Ik,en:Sk,kaa:kk},Symbol.toStringTag,{value:"Module"}));let PR=0;function RR(e,t){const n=`atom${++PR}`,r={toString:()=>n};return typeof e=="function"?r.read=e:(r.init=e,r.read=i=>i(r),r.write=(i,o,s)=>o(r,typeof s=="function"?s(i(r)):s)),t&&(r.write=t),r}var Kn={VITE_APP_BACKEND_V2_GET_URL:"https://json.excalidraw.com/api/v2/",VITE_APP_BACKEND_V2_POST_URL:"https://json.excalidraw.com/api/v2/post/",VITE_APP_LIBRARY_URL:"https://libraries.excalidraw.com",VITE_APP_LIBRARY_BACKEND:"https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries",VITE_APP_PLUS_LP:"https://plus.excalidraw.com",VITE_APP_PLUS_APP:"https://app.excalidraw.com",VITE_APP_AI_BACKEND:"https://oss-ai.excalidraw.com",VITE_APP_WS_SERVER_URL:"https://oss-collab.excalidraw.com",VITE_APP_FIREBASE_CONFIG:'{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseUR
Line truncated
|
|
||||||
`),ma=e=>e,I2=async(e,...t)=>new Promise(n=>{n(e(...t))}),Ft=e=>!!e&&e.type==="image"&&!!e.fileId,Gi=e=>!!e&&e.type==="image",bn=e=>!!e&&e.type==="embeddable",Io=e=>!!e&&e.type==="iframe",fr=e=>!!e&&(e.type==="iframe"||e.type==="embeddable"),ce=e=>e!=null&&e.type==="text",pd=e=>e!=null&&e.type==="frame",uu=e=>e!=null&&e.type==="magicframe",pe=e=>e!=null&&(e.type==="frame"||e.type==="magicframe"),Hn=e=>e!=null&&RD(e.type),RD=e=>e==="freedraw",we=e=>e!=null&&qv(e.type),Ge=e=>e!=null&&e.type==="arrow",qv=e=>e==="arrow"||e==="line",dn=(e,t=!0)=>e!=null&&(!e.locked||t===!0)&&Qk(e.type),Qk=e=>e==="arrow",yd=(e,t=!0)=>e!=null&&(!e.locked||t===!0)&&(e.type==="rectangle"||e.type==="diamond"||e.type==="ellipse"||e.type==="image"||e.type==="iframe"||e.type==="embeddable"||e.type==="frame"||e.type==="magicframe"||e.type==="text"&&!e.containerId),ia=(e,t=!0)=>e!=null&&(!e.locked||t===!0)&&(e.type==="rectangle"||e.type==="diamond"||e.type==="ellipse"||Ge(e)),Jk=e=>{const t=e==null?void 0:e.type;if(!t)return!1;switch(t){case"text":case"diamond":case"rectangle":case"iframe":case"embeddable":case"ellipse":case"arrow":case"freedraw":case"line":case"frame":case"magicframe":case"image":case"selection":return!0;default:return jl(t,null),!1}},ls=e=>{var t;return ia(e)&&!!((t=e.boundElements)!=null&&t.some(({type:n})=>n==="text"))},Mt=e=>e!==null&&"containerId"in e&&e.containerId!==null&&ce(e),uc=e=>e==="rectangle"||e==="embeddable"||e==="iframe"||e==="image",eI=e=>e==="line"||e==="arrow"||e==="diamond",DD=(e,t)=>!!((e===Vt.ADAPTIVE_RADIUS||e===Vt.LEGACY)&&uc(t.type)||e===Vt.PROPORTIONAL_RADIUS&&eI(t.type)),OD=e=>eI(e.type)?{type:Vt.PROPORTIONAL_RADIUS}:uc(e.type)?{type:Vt.ADAPTIVE_RADIUS}:null;let ND=new Dk(Date.now());const bs=()=>Math.floor(ND.next()*2**31),xr=()=>Kv(),Ib=e=>{const t=new Map,n=[];for(const r of e)r.isDeleted||(n.push(r),t.set(r.id,r));return{elementsMap:t,elements:n}},FD=e=>{const t=["includeBoundTextElement","includeElementsInFrames"];let n="";for(const r of t)n+=`${r}:${e[r]?"1":"0"}`;return n},Cb=e=>typeof e=="string",zs=class zs{constructor(){M(this,"callbacks",new Set);M(this,"nonDeletedElements",[]);M(this,"nonDeletedElementsMap",ma(new Map));M(this,"elements",[]);M(this,"nonDeletedFramesLikes",[]);M(this,"frames",[]);M(this,"elementsMap",ma(new Map));M(this,"selectedElementsCache",{selectedElementIds:null,elements:null,cache:new Map});M(this,"versionNonce");M(this,"addNewElement",t=>{t.frameId?this.insertElementAtIndex(t,this.getElementIndex(t.frameId)):this.replaceAllElements([...this.elements,t])});M(this,"getContainerElement",t=>t&&t.containerId&&this.getElement(t.containerId)||null)}static mapElementToScene(t,n){Cb(t)?this.sceneMapById.set(t,n):(this.sceneMapByElement.set(t,n),this.sceneMapById.set(t.id,n))}static getScene(t){return Cb(t)?this.sceneMapById.get(t)||null:this.sceneMapByElement.get(t)||null}getElementsMapIncludingDeleted(){return this.elementsMap}getNonDeletedElementsMap(){return this.nonDeletedElementsMap}getElementsIncludingDeleted(){return this.elements}getNonDeletedElements(){return this.nonDeletedElements}getFramesIncludingDeleted(){return this.frames}getSelectedElements(t){const n=FD(t),r=(t==null?void 0:t.elements)||this.nonDeletedElements;if(this.selectedElementsCache.elements===r&&this.selectedElementsCache.selectedElementIds===t.selectedElementIds){const o=this.selectedElementsCache.cache.get(n);if(o)return o}else(t==null?void 0:t.elements)==null&&this.selectedElementsCache.cache.clear();const i=qe(r,{selectedElementIds:t.selectedElementIds},t);return(t==null?void 0:t.elements)==null&&(this.selectedElementsCache.selectedElementIds=t.selectedElementIds,this.selectedElementsCache.elements=this.nonDeletedElements,this.selectedElementsCache.cache.set(n,i)),i}getNonDeletedFramesLikes(){return this.nonDeletedFramesLikes}getElement(t){return this.elementsMap.get(t)||null}getVersionNonce(){return this.versionNonce}getNonDeletedElement(t){const n=this.getElement(t);return n&&ty(n)?n:null}mapElements(t){let n=!1;const r=this.elements.map(i=>{const o=t(i);return o!==i&&(n=!0),o});return n&&this.replaceAllElements(r),n}replaceAllElements(t){this.elements=t instanceof Array?t:Array.from(t.values());const n=[];this.elementsMap.clear(),this.elements.forEach(i=>{pe(i)&&n.push(i),this.elementsMap.set(i.id,i),zs.mapElementToScene(i,this)});const r=Ib(this.elements);this.nonDeletedElements=r.elements,this.nonDeletedElementsMap=r.elementsMap,this.frames=n,this.nonDeletedFramesLikes=Ib(this.frames).elements,this.informMutation()}informMutation(){this.versionNonce=bs();for(const t of Array.from(this.callbacks))t()}addCallback(t){if(this.callbacks.has(t))throw new Error;return this.callbacks.add(t),()=>{if(!this.callbacks.has(t))throw new Error;this.callbacks.delete(t)}}destroy(){this.nonDeletedElements=[],this.elements=[],this.nonDeletedFramesLikes=[],this.frames=[],this.elementsMap.clear(),this.selectedElementsCache.selectedElementIds=null,this.selectedElementsCache.elements=null,this.selectedEl
Line truncated
|
|
||||||
C ${l} ${c}, ${l} ${c}, ${l-g} ${c+p}
|
|
||||||
L ${u+g} ${d-p}
|
|
||||||
C ${u} ${d}, ${u} ${d}, ${u-g} ${d-p}
|
|
||||||
L ${h+g} ${m+p}
|
|
||||||
C ${h} ${m}, ${h} ${m}, ${h+g} ${m-p}
|
|
||||||
L ${s-g} ${a+p}
|
|
||||||
C ${s} ${a}, ${s} ${a}, ${s+g} ${a+p}`,ur(e,!0))}else o=t.polygon([[s,a],[l,c],[u,d],[h,m]],ur(e));return o}case"ellipse":return t.ellipse(e.width/2,e.height/2,e.width,e.height,ur(e));case"line":case"arrow":{let o;const s=ur(e),a=e.points.length?e.points:[[0,0]];if(e.roundness?o=[t.curve(a,s)]:s.fill?o=[t.polygon(a,s)]:o=[t.linearPath(a,s)],e.type==="arrow"){const{startArrowhead:l=null,endArrowhead:c="arrow"}=e;if(l!==null){const u=Pb(e,o,"start",l,t,s,r);o.push(...u)}if(c!==null){const u=Pb(e,o,"end",c,t,s,r);o.push(...u)}}return o}case"freedraw":{let o;if(Rz(e),cs(e.points)){const s=jD(e.points,.75);o=t.curve(s,{...ur(e),stroke:"none"})}else o=null;return o}case"frame":case"magicframe":case"text":case"image":return null;default:return jl(e,`generateElementShape(): Unimplemented type ${e==null?void 0:e.type}`),null}},_n=(e,t)=>[0,0,0,0,t,e,1,0],lI=(e,t)=>[0,0,0,0,t,e,0,0],Ra=(e=0,t=0)=>{const n=[0,0,0,0,0,0,0,0];if(t<0||t>7)throw new Error(`Expected \`index\` between 0 and 7, got \`${t}\``);return e!==0&&(n[t]=e),n},z1=e=>[e[0],e[1],e[2],e[3],-e[4],-e[5],-e[6],-e[7]],JD=(e,t)=>Qv(t)?[e[0]+t,e[1],e[2],e[3],e[4],e[5],e[6],e[7]]:[e[0]+t[0],e[1]+t[1],e[2]+t[2],e[3]+t[3],e[4]+t[4],e[5]+t[5],e[6]+t[6],e[7]+t[7]],Pm=(e,t)=>Qv(t)?[e[0]-t,e[1],e[2],e[3],e[4],e[5],e[6],e[7]]:[e[0]-t[0],e[1]-t[1],e[2]-t[2],e[3]-t[3],e[4]-t[4],e[5]-t[5],e[6]-t[6],e[7]-t[7]],Zl=(e,t)=>Qv(t)?[e[0]*t,e[1]*t,e[2]*t,e[3]*t,e[4]*t,e[5]*t,e[6]*t,e[7]*t]:[eO(e,t),t[1]*e[0]+t[0]*e[1]-t[4]*e[2]+t[5]*e[3]+t[2]*e[4]-t[3]*e[5]-t[7]*e[6]-t[6]*e[7],t[2]*e[0]+t[0]*e[2]-t[6]*e[3]+t[3]*e[6],t[3]*e[0]+t[6]*e[2]+t[0]*e[3]-t[2]*e[6],t[4]*e[0]+t[2]*e[1]-t[1]*e[2]+t[7]*e[3]+t[0]*e[4]+t[6]*e[5]-t[5]*e[6]+t[3]*e[7],t[5]*e[0]-t[3]*e[1]+t[7]*e[2]+t[1]*e[3]-t[6]*e[4]+t[0]*e[5]+t[4]*e[6]+t[2]*e[7],t[6]*e[0]+t[3]*e[2]-t[2]*e[3]+t[0]*e[6],t[7]*e[0]+t[6]*e[1]+t[5]*e[2]+t[4]*e[3]+t[3]*e[4]+t[2]*e[5]+t[1]*e[6]+t[0]*e[7]],eO=(e,t)=>t[0]*e[0]+t[2]*e[2]+t[3]*e[3]-t[6]*e[6],tO=(e,t)=>[t[0]*e[0],t[1]*e[0]+t[0]*e[1],t[2]*e[0]+t[0]*e[2],t[3]*e[0]+t[0]*e[3],t[4]*e[0]+t[2]*e[1]-t[1]*e[2]+t[0]*e[4],t[5]*e[0]-t[3]*e[1]+t[1]*e[3]+t[0]*e[5],t[6]*e[0]+t[3]*e[2]-t[2]*e[3]+t[0]*e[6],t[7]*e[0]+t[6]*e[1]+t[5]*e[2]+t[4]*e[3]+t[3]*e[4]+t[2]*e[5]+t[1]*e[6]],cI=(e,t)=>[uI(e,t),e[1]*t[7]+e[4]*t[5]-e[5]*t[4]+e[7]*t[1],e[2]*t[7]-e[4]*t[6]+e[6]*t[4]+e[7]*t[2],e[3]*t[7]+e[5]*t[6]-e[6]*t[5]+e[7]*t[3],e[4]*t[7]+e[7]*t[4],e[5]*t[7]+e[7]*t[5],e[6]*t[7]+e[7]*t[6],e[7]*t[7]],uI=(e,t)=>e[0]*t[7]+e[1]*t[6]+e[2]*t[5]+e[3]*t[4]+e[4]*t[3]+e[5]*t[2]+e[6]*t[1]+e[7]*t[0],nO=(e,t)=>[t[0]*e[0]+t[2]*e[2]+t[3]*e[3]-t[6]*e[6],t[1]*e[0]+t[0]*e[1]-t[4]*e[2]+t[5]*e[3]+t[2]*e[4]-t[3]*e[5]-t[7]*e[6]-t[6]*e[7],t[2]*e[0]+t[0]*e[2]-t[6]*e[3]+t[3]*e[6],t[3]*e[0]+t[6]*e[2]+t[0]*e[3]-t[2]*e[6],t[4]*e[0]+t[7]*e[3]+t[0]*e[4]+t[3]*e[7],t[5]*e[0]+t[7]*e[2]+t[0]*e[5]+t[2]*e[7],t[6]*e[0]+t[0]*e[6],t[7]*e[0]+t[0]*e[7]],dI=e=>Math.sqrt(Math.abs(e[0]*e[0]-e[2]*e[2]-e[3]*e[3]+e[6]*e[6])),rO=e=>Math.sqrt(Math.abs(e[7]*e[7]-e[5]*e[5]-e[4]*e[4]+e[1]*e[1])),H1=e=>{const t=dI(e);if(t===0||t===1)return e;const n=e[6]<0?-1:1;return Zl(e,n/t)},iO=e=>{const t=rO(e);return t===0||t===1?e:Zl(e,1/t)},Qv=e=>typeof e=="number";Ra(1,1);Ra(1,2);Ra(1,3);Ra(1,4);Ra(1,5);Ra(1,6);Ra(1,7);const ga=(e,t,n)=>H1([0,n,e,t,0,0,0,0]),qd=(e,t)=>H1(cI(t,e)),oO=(e,t)=>nO(e,t),sO=(e,t)=>oO(qd(e,t),t),aO=e=>Math.sign(e[1]),pa=([e,t])=>[0,0,0,0,t,e,1,0],ya=e=>[e[5],e[4]],hI=e=>[0,0,0,0,Math.abs(e[4]),Math.abs(e[5]),1,0],lO=(e,t)=>H1(tO(e,t)),Rb=(e,t)=>dI(cI(e,t)),Qr=(e,t)=>uI(e,t),Jv=e=>[0,0,0,0,e[4],e[5],0,0],cO=(e,t)=>iO([0,0,0,0,t[4]-e[4],t[5]-e[5],0,0]),eE=(e,t)=>JD(Zl(e,Math.sin(t/2)),Math.cos(t/2)),uO=e=>[1,0,0,0,-(.5*e[5]),.5*e[4],0,0],dO=(e,t)=>{const n=.5*t;return[1,0,0,0,n*e[4],n*e[5],0,0]},hO=(e,t)=>Zl(t,e),Gr=(e,t)=>H1(Zl(Zl(e,t),z1(e))),Db={mouse:8,pen:16,touch:28},fO=16,fI={e:!0,s:!0,n:!0,w:!0},mO={e:!0,s:!0,n:!0,w:!0,rotation:!0},gO={e:!0,s:!0,n:!0,w:!0},Ob={e:!0,s:!0,n:!0,w:!0,nw:!0,se:!0},gp={e:!0,s:!0,n:!0,w:!0},Li=(e,t,n,r,i,o,s)=>{const[a,l]=_e(e+n/2,t+r/2,i,o,s);return[a-n/2,l-r/2,n,r]},tE=([e,t,n,r,i,o],s,a,l,c={},u=4)=>{const d=Db[l],h=d/a.value,m=d/a.value,g=d/a.value,p=d/a.value,v=n-e,y=r-t,E=u/a.value,w=(d-ud*2)/(2*a.value),x={nw:c.nw?void 0:Li(e-E-g+w,t-E-p+w,h,m,i,o,s),ne:c.ne?void 0:Li(n+E-w,t-E-p+w,h,m,i,o,s),sw:c.sw?void 0:Li(e-E-g+w,r+E-w,h,m,i,o,s),se:c.se?void 0:Li(n+E-w,r+E-w,h,m,i,o,s),rotation:c.rotation?void 0:Li(e+v/2-h/2,t-E-p+w-fO/a.value,h,m,i,o,s)},C=5*Db.mouse/a.value;return Math.abs(v)>C&&(c.n||(x.n=Li(e+v/2-h/2,t-E-p+w,h,m,i,o,s)),c.s||(x.s=Li(e+v/2-h/2,r+E-w,h,m,i,o,s))),Math.abs(y)>C&&(c.w||(x.w=Li(e-E-g+w,t+y/2-m/2,h,m,i,o,s)),c.e||(x.e=Li(n+E-w,t+y/2-m/2,h,m,i,o,s))),x},mI=(e,t,n,r="mouse")=>{if(e.locked)return{};let i={};if(e.type==="freedraw"||we(e)){if(e.points.length===2){const[,s]=e.points;s[0]===0||s[1]===0?i=gp:s[0]>0&&s[1]<0?i=Ob:s[0]>0&&s[1]>0?i=gp:s[0]<0&&s[1]>0?i=Ob:s[0]<0&&s[1]<0&&(i=gp)}}else ce(e)?i=gO:pe(e)&&(i={rotation:!0});const o=we(e)?ud+8:ud;return tE(Ee(e,n,!0),e.angle,t,r,i,o)},nE=Line truncated
|
|
||||||
`),Mi=(e,t,n)=>{let r;const i={x:e.x,y:e.y,text:e.text,width:e.width,height:e.height};i.text=e.text,t&&(r=Ii(t,e),i.text=Jd(e.originalText,Bt(e),r));const o=ds(i.text,Bt(e),e.lineHeight);if(i.width=o.width,i.height=o.height,t){const s=eh(t,e),a=Ii(t,e);if(!Ge(t)&&o.height>s){const d=Ea(o.height,t.type);J(t,{height:d}),Om(t.id,d)}if(o.width>a){const d=Ea(o.width,t.type);J(t,{width:d})}const l={...e,...i},{x:c,y:u}=Y1(t,l,n);i.x=c,i.y=u}J(e,i)},kI=(e,t,n)=>{const r=be(e);t.forEach(i=>{const o=n.get(i.id),s=va(i);if(s){const a=n.get(s);if(a){const l=r.get(o);l&&J(l,{boundElements:(i.boundElements||[]).filter(u=>u.id!==a&&u.id!==s).concat({type:"text",id:a})});const c=r.get(a);c&&ce(c)&&J(c,{containerId:l?o:null})}}})},j1=(e,t,n,r=!1)=>{if(!va(e))return;SI(e.id);const o=ke(e,t);if(o&&o.text){if(!e)return;let s=o.text,a=o.height,l=o.width;const c=Ii(e,o),u=eh(e,o);let d=e.height;if(r||n!=="n"&&n!=="s"){s&&(s=Jd(o.originalText,Bt(o),c));const h=ds(s,Bt(o),o.lineHeight);a=h.height,l=h.width}if(a>u){d=Ea(a,e.type);const h=d-e.height,m=!Ge(e)&&(n==="ne"||n==="nw"||n==="n")?e.y-h:e.y;J(e,{height:d,y:m})}J(o,{text:s,width:l,height:a}),Ge(e)||J(o,Y1(e,o,t))}},Y1=(e,t,n)=>{if(Ge(e))return ue.getBoundTextElementPosition(e,t,n);const r=LI(e),i=eh(e,t),o=Ii(e,t);let s,a;return t.verticalAlign===Qn.TOP?a=r.y:t.verticalAlign===Qn.BOTTOM?a=r.y+(i-t.height):a=r.y+(i/2-t.height/2),t.textAlign===hd.LEFT?s=r.x:t.textAlign===hd.RIGHT?s=r.x+(o-t.width):s=r.x+(o/2-t.width/2),{x:s,y:a}},ds=(e,t,n)=>{e=e.split(`
|
|
||||||
`).map(s=>s||" ").join(`
|
|
||||||
`);const r=parseFloat(t),i=qO(e,r,n);return{width:K1(e,t),height:i}},XO=e=>{const t=lE(e.text).length;return e.height/t/e.fontSize},Qd=(e,t)=>e*t,II=(e,t,n)=>{const{unitsPerEm:r,ascender:i,descender:o}=Wb[e]||Wb[Xt.Helvetica],s=t/r,a=n-s*i+s*o;return s*i+a},CI=(e,t)=>Qd(e,t)+Nt*2;let vp;const Au=(e,t)=>{vp||(vp=document.createElement("canvas"));const n=vp.getContext("2d");return n.font=t,n.measureText(e).width},K1=(e,t)=>{const n=lE(e);let r=0;return n.forEach(i=>{r=Math.max(r,Au(i,t))}),r},qO=(e,t,n)=>{const r=lE(e).length;return Qd(t,n)*r},QO=e=>{const t=e.split("-");return t.length>1&&t.forEach((n,r)=>{r!==t.length-1&&(t[r]=n+="-")}),t.join(" ").split(" ")},Jd=(e,t,n)=>{if(!Number.isFinite(n)||n<0)return e;const r=[],i=e.split(`
|
|
||||||
`),o=Au(" ",t);let s="",a=0;const l=u=>{u.trim()&&r.push(u)},c=()=>{s="",a=0};return i.forEach(u=>{if(K1(u,t)<=n){r.push(u);return}const h=QO(u);c();let m=0;for(;m<h.length;){const g=Au(h[m],t);if(g===n)l(h[m]),m++;else if(g>n){for(l(s),c();h[m].length>0;){const p=String.fromCodePoint(h[m].codePointAt(0)),v=TI.calculate(p,t);a+=v,h[m]=h[m].slice(p.length),a>=n?(l(s),s=p,a=v):s+=p}a+o>=n?(l(s),c()):s.endsWith("-")||(s+=" ",a+=o),m++}else for(;a<n&&m<h.length;){const p=h[m];if(a=Au(s+p,t),a>n){l(s),c();break}m++;const v=!p.endsWith("-");if(s+=p,v&&(s+=" "),a+o>=n){v?r.push(s.slice(0,-1)):r.push(s),c();break}}}s.slice(-1)===" "&&(s=s.slice(0,-1),l(s))}),r.join(`
|
|
||||||
`)},TI=(()=>{const e={};return{calculate:(r,i)=>{const o=r.charCodeAt(0);if(e[i]||(e[i]=[]),!e[i][o]){const s=Au(r,i);e[i][o]=s}return e[i][o]},getCache:r=>e[r]}})(),MI="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".toLocaleUpperCase(),AI=(e,t)=>{const n=JO(e);return n===0?ds(MI.split("").join(`
|
|
||||||
`),e,t).width+Nt*2:n+Nt*2},JO=e=>{const t=TI.getCache(e);if(!t)return 0;const n=t.filter(r=>r!==void 0);return Math.max(...n)},va=e=>{var t,n,r;return(t=e==null?void 0:e.boundElements)!=null&&t.length&&((r=(n=e==null?void 0:e.boundElements)==null?void 0:n.filter(i=>i.type==="text")[0])==null?void 0:r.id)||null},ke=(e,t)=>{if(!e)return null;const n=va(e);return n&&t.get(n)||null},kn=(e,t)=>e&&e.containerId&&t.get(e.containerId)||null,Ep=(e,t,n)=>{if(!Ge(e))return{x:e.x+e.width/2,y:e.y+e.height/2};const r=ue.getPointsGlobalCoordinates(e,n);if(r.length%2===1){const s=Math.floor(e.points.length/2),a=ue.getPointGlobalCoordinates(e,e.points[s],n);return{x:a[0],y:a[1]}}const i=e.points.length/2-1;let o=ue.getEditorMidPoints(e,n,t)[i];return o||(o=ue.getSegmentMidPoint(e,r[i],r[i+1],i+1,n)),{x:o[0],y:o[1]}},LI=e=>{let t=Nt,n=Nt;return e.type==="ellipse"&&(t+=e.width/2*(1-Math.sqrt(2)/2),n+=e.height/2*(1-Math.sqrt(2)/2)),e.type==="diamond"&&(t+=e.width/4,n+=e.height/4),{x:e.x+t,y:e.y+n}},eN=(e,t)=>!t||Ge(t)?e.angle:t.angle,tN=(e,t)=>e.some(n=>{if(Mt(n)){const r=kn(n,t);return!Ge(r)}return!1}),nN=(e,t)=>e.some(n=>{if(Mt(n)){const r=kn(n,t);return!Ge(r)}return ce(n)}),Ub=(e,t,n,r,i)=>{const o=qe(e,t);if(o.length===1)return ia(o[0],!1)?o[0]:null;let s=null;for(let a=e.length-1;a>=0;--a){if(e[a].isDeleted)continue;const[l,c,u,d]=Ee(e[a],i);if(Ge(e[a])&&vd(e[a],t,null,[n,r],i)){s=e[a];break}else if(l<n&&n<u&&c<r&&r<d){s=e[a];break}}return ia(s,!1)?s:null},rN=new Set(["rectangle","ellipse","diamond","arrow"]),iN=e=>rN.has(e.type),Ea=(e,t)=>{e=Math.ceil(e);const n=Nt*2;return t==="ellipse"?Math.round((e+n)/Math.sqrt(2)*2):t==="arrow"?e+n*8:t==="diamond"?2*(e+n):e+n},Ii=(e,t)=>{const{width:n}=e;if(Ge(e)){const r=((t==null?void 0:t.fontSize)??Xr)*bR;return Math.max(wR*n,r)}return e.type==="ellipse"?Math.round(n/2*Math.sqrt(2))-Nt*2:e.type==="diamond"?Math.round(n/2)-Nt*2:n-Nt*2},eh=(e,t)=>{const{height:n}=e;return Ge(e)?n-Nt*8*2<=0?t.height:n:e.type==="ellipse"?Math.round(n/2*Math.sqrt(2))-Nt*2:e.type==="diamond"?Math.round(n/2)-Nt*2:n-Nt*2},oN=()=>K1(MI,Bt({fontSize:Xr,fontFamily:oo}))>0,wp={[Xt.Virgil]:1.25,[Xt.Helvetica]:1.15,[Xt.Cascadia]:1.2},Wb={[Xt.Virgil]:{unitsPerEm:1e3,ascender:886,descender:-374},[Xt.Helvetica]:{unitsPerEm:2048,ascender:1577,descender:-471},[Xt.Cascadia]:{unitsPerEm:2048,ascender:1977,descender:-480},[Xt.Assistant]:{unitsPerEm:1e3,ascender:1021,descender:-287}},wa=e=>e in wp?wp[e]:wp[oo],wl=class wl{static getBounds(t,n){const r=wl.boundsCache.get(t);if(r!=null&&r.version&&r.version===t.version&&!Mt(t))return r.bounds;const i=wl.calculateBounds(t,n);return wl.boundsCache.set(t,{version:t.version,bounds:i}),i}static calculateBounds(t,n){let r;const[i,o,s,a,l,c]=Ee(t,n);if(Hn(t)){const[u,d,h,m]=cE(t.points.map(([g,p])=>_e(g,p,l-t.x,c-t.y,t.angle)));return[u+t.x,d+t.y,h+t.x,m+t.y]}else if(we(t))r=mN(t,l,c,n);else if(t.type==="diamond"){const[u,d]=_e(l,o,l,c,t.angle),[h,m]=_e(l,a,l,c,t.angle),[g,p]=_e(i,c,l,c,t.angle),[v,y]=_e(s,c,l,c,t.angle),E=Math.min(u,h,g,v),w=Math.min(d,m,p,y),x=Math.max(u,h,g,v),C=Math.max(d,m,p,y);r=[E,w,x,C]}else if(t.type==="ellipse"){const u=(s-i)/2,d=(a-o)/2,h=Math.cos(t.angle),m=Math.sin(t.angle),g=Math.hypot(u*h,d*m),p=Math.hypot(d*h,u*m);r=[l-g,c-p,l+g,c+p]}else{const[u,d]=_e(i,o,l,c,t.angle),[h,m]=_e(i,a,l,c,t.angle),[g,p]=_e(s,a,l,c,t.angle),[v,y]=_e(s,o,l,c,t.angle),E=Math.min(u,h,g,v),w=Math.min(d,m,p,y),x=Math.max(u,h,g,v),C=Math.max(d,m,p,y);r=[E,w,x,C]}return r}};M(wl,"boundsCache",new WeakMap);let O2=wl;const Ee=(e,t,n=!1)=>{if(Hn(e))return cN(e);if(we(e))return ue.getElementAbsoluteCoords(e,t,n);if(ce(e)){const r=t?kn(e,t):null;if(Ge(r)){const i=ue.getBoundTextElementPosition(r,e,t);return[i.x,i.y,i.x+e.width,i.y+e.height,i.x+e.width/2,i.y+e.height/2]}}return[e.x,e.y,e.x+e.width,e.y+e.height,e.x+e.width/2,e.y+e.height/2]},Vb=(e,t)=>{const[n,r,i,o,s,a]=Ee(e,t),l=[s,a];if(we(e)||Hn(e)){const y=[];let E=0;for(;E<e.points.length-1;)y.push([st([e.points[E][0]+e.x,e.points[E][1]+e.y],l,e.angle),st([e.points[E+1][0]+e.x,e.points[E+1][1]+e.y],l,e.angle)]),E++;return y}const[c,u,d,h,m,g,p,v]=[[n,r],[i,r],[n,o],[i,o],[s,r],[s,o],[n,a],[i,a]].map(y=>st(y,l,e.angle));return e.type==="diamond"?[[m,p],[m,v],[g,p],[g,v]]:e.type==="ellipse"?[[m,p],[m,v],[g,p],[g,v],[m,p],[m,v],[g,p],[g,v]]:[[c,u],[d,h],[c,d],[u,h],[c,v],[d,v],[u,p],[h,p]]},sN=e=>[e.x,e.y,e.x+e.width,e.y+e.height,e.x+e.width/2,e.y+e.height/2],aN=e=>{const t=Math.floor(e.width/2)+1,n=0,r=e.width,i=Math.floor(e.height/2)+1,o=t,s=e.height;return[t,n,r,i,o,s,0,i]},_s=e=>{for(const t of e.sets)if(t.type==="path")return t.ops;return e.sets[0].ops},Gb=(e,t,n,r,i)=>{const o=1-e;return Math.pow(o,3)*t+3*Math.pow(o,2)*e*n+3*o*Math.pow(e,2)*r+Math.pow(e,3)*i},jb=(e,t,n,r)=>{const i=t-e,o=n-t,s=r-n,a=3*i-6*o+3*s,l=6*o-6*i,c=3*i,u=l*l-4*a*c;if(!(u>=0))return!1;let h=null,m=null,g=1/0,p=1/0;return a===0?g=p=-c/l:(g=(-l+Math.sqrt(u))/(2*a),p=(-l-Math.sqrt(u))/(2*a)),g>=0&&g<=1&&(h=Gb(g,e,t,n,r)),p>=0&&p<=1&&(m=Gb(p,e,t,n,r))
Line truncated
|
|
||||||
<script src="${e}.js"><\/script>
|
|
||||||
<style type="text/css">
|
|
||||||
* { margin: 0px; }
|
|
||||||
table, .gist { height: 100%; }
|
|
||||||
.gist .gist-file { height: calc(100vh - 2px); padding: 0px; display: grid; grid-template-rows: 1fr auto; }
|
|
||||||
</style>
|
|
||||||
`),intrinsicSize:{w:550,h:720}};return Ri.set(e,l),l}return Ri.set(e,{link:e,intrinsicSize:r,type:n}),{link:e,intrinsicSize:r,type:n}},KI=e=>{let t;Io(e)?t="IFrame element":t=!e.link||(e==null?void 0:e.link)===""?"Empty Web-Embed":e.link;const n=Math.max(Math.min(e.width/2,e.width/t.length),e.width/30),r=Xt.Helvetica,i=Bt({fontSize:n,fontFamily:r});return Sr({x:e.x+e.width/2,y:e.y+e.height/2,strokeColor:e.strokeColor!=="transparent"?e.strokeColor:"black",backgroundColor:"transparent",fontFamily:r,fontSize:n,text:Jd(t,i,e.width-20),textAlign:"center",verticalAlign:Qn.MIDDLE,angle:e.angle??0})};ne({name:"setEmbeddableAsActiveTool",trackEvent:{category:"toolbar"},perform:(e,t,n,r)=>{const i=bt(t,{type:"embeddable"});return di(r.canvas,{...t,activeTool:i}),{elements:e,appState:{...t,activeTool:bt(t,{type:"embeddable"})},commitToHistory:!1}}});const t_=(e,t)=>{try{const{hostname:n}=new URL(e),r=n.replace(/^www\./,""),i=r.replace(/^([^.]+)/,"*");if(t instanceof Set)return B2.has(r)||B2.has(i);if(r===t.replace(/^www\./,""))return!0}catch{}return!1},rF=e=>{const t=e.match(eF);if(t&&t.length===2)return t[1];const n=e.match(QN);if(n&&n.length===2)return n[1];if(e_.test(e))return`https://giphy.com/embed/${e_.exec(e)[1]}`;const r=e.match(nF);return r&&r.length===2?r[1]:e},Rf=(e,t)=>{if(!e)return!1;if(t!=null)if(typeof t=="function"){const n=t(e);if(typeof n=="boolean")return n}else{if(typeof t=="boolean")return t;if(t instanceof RegExp)return t.test(e);if(Array.isArray(t)){for(const n of t)if(n instanceof RegExp){if(e.match(n))return!0}else if(t_(e,n))return!0;return!1}}return t_(e,B2)},Wc=(e,t,n)=>{if(typeof n>"u")return e.draw(t);const r={sets:t.sets,shape:t.shape,options:{...t.options,fixedDecimalPlaceDigits:n}};return e.draw(r)},Vc=(e,t,n,r,i)=>{if(!r.enabled||!r.clip)return null;const o=rr(e,i);if(o){const s=t.ownerDocument.createElementNS(Ke,"g");return s.setAttributeNS(Ke,"clip-path",`url(#${o.id})`),n.forEach(a=>s.appendChild(a)),s}return null},z2=(e,t,n,r,i,o,s,a)=>{var w;const l={x:o,y:s},[c,u,d,h]=Ee(e,t);let m=(d-c)/2-(e.x-c),g=(h-u)/2-(e.y-u);if(ce(e)){const x=kn(e,t);if(Ge(x)){const[C,S,I,T]=Ee(x,t),L=ue.getBoundTextElementPosition(x,e,t);m=(I-C)/2-(L.x-C),g=(T-S)/2-(L.y-S),o=o+L.x-e.x,s=s+L.y-e.y}}const p=180*e.angle/Math.PI;let v=r;if(e.link){const x=r.ownerDocument.createElementNS(Ke,"a");x.setAttribute("href",xi(e.link)),v.appendChild(x),v=x}const y=(x,C)=>{v.appendChild(x)},E=(((w=rr(e,t))==null?void 0:w.opacity)??100)*e.opacity/1e4;switch(e.type){case"selection":throw new Error("Selection rendering is not supported for SVG");case"rectangle":case"diamond":case"ellipse":{const x=Xe.generateElementShape(e,null),C=Wc(n,x,Oc);E!==1&&(C.setAttribute("stroke-opacity",`${E}`),C.setAttribute("fill-opacity",`${E}`)),C.setAttribute("stroke-linecap","round"),C.setAttribute("transform",`translate(${o||0} ${s||0}) rotate(${p} ${m} ${g})`);const S=Vc(e,v,[C],a.frameRendering,t);y(S||C);break}case"iframe":case"embeddable":{const x=Xe.generateElementShape(e,a),C=Wc(n,x,Oc),S=e.opacity/100;S!==1&&(C.setAttribute("stroke-opacity",`${S}`),C.setAttribute("fill-opacity",`${S}`)),C.setAttribute("stroke-linecap","round"),C.setAttribute("transform",`translate(${o||0} ${s||0}) rotate(${p} ${m} ${g})`),y(C);const I=KI(e);z2(I,t,n,v,i,I.x+l.x-e.x,I.y+l.y-e.y,a);const T=Wc(n,x,Oc);for(T.setAttribute("stroke-linecap","round"),T.setAttribute("transform",`translate(${o||0} ${s||0}) rotate(${p} ${m} ${g})`);T.firstChild;)T.removeChild(T.firstChild);const L=oa(Math.min(e.width,e.height),e),A=yl(BI(e.link||""));if(a.renderEmbeddables===!1||(A==null?void 0:A.type)==="document"){const F=r.ownerDocument.createElementNS(Ke,"a");F.setAttribute("href",xi(e.link||"")),F.setAttribute("target","_blank"),F.setAttribute("rel","noopener noreferrer"),F.style.borderRadius=`${L}px`,T.appendChild(F)}else{const F=r.ownerDocument.createElementNS(Ke,"foreignObject");F.style.width=`${e.width}px`,F.style.height=`${e.height}px`,F.style.border="none";const P=F.ownerDocument.createElementNS(Ke,"div");P.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),P.style.width="100%",P.style.height="100%";const O=P.ownerDocument.createElement("iframe");O.src=(A==null?void 0:A.link)??"",O.style.width="100%",O.style.height="100%",O.style.border="none",O.style.borderRadius=`${L}px`,O.style.top="0",O.style.left="0",O.allowFullscreen=!0,P.appendChild(O),F.appendChild(P),T.appendChild(F)}y(T);break}case"line":case"arrow":{const x=ke(e,t),C=r.ownerDocument.createElementNS(Ke,"mask");if(x){C.setAttribute("id",`mask-${e.id}`);const L=r.ownerDocument.createElementNS(Ke,"rect");o=o||0,s=s||0,L.setAttribute("x","0"),L.setAttribute("y","0"),L.setAttribute("fill","#fff"),L.setAttribute("width",`${e.width+100+o}`),L.setAttribute("height",`${e.height+100+s}`),C.appendChild(L);const A=r.ownerDocument.createElementNS(Ke,"rect"),F=ue.getBoundTextElementPosition(e,x,t),P=o+F.x-e.x,O=s+F.y-e.y;A.setAttribute("x",P.toString()),A.setAttribute("y",O.toString()),A.setAttribute("fil
Line truncated
|
|
||||||
`).split(`
|
|
||||||
`),S=Qd(e.fontSize,e.lineHeight),I=e.textAlign==="center"?e.width/2:e.textAlign==="right"?e.width:0,T=II(e.fontFamily,e.fontSize,S),L=Vk(e.text)?"rtl":"ltr",A=e.textAlign==="center"?"middle":e.textAlign==="right"||L==="rtl"?"end":"start";for(let P=0;P<C.length;P++){const O=r.ownerDocument.createElementNS(Ke,"text");O.textContent=C[P],O.setAttribute("x",`${I}`),O.setAttribute("y",`${P*S+T}`),O.setAttribute("font-family",Zv(e)),O.setAttribute("font-size",`${e.fontSize}px`),O.setAttribute("fill",e.strokeColor),O.setAttribute("text-anchor",A),O.setAttribute("style","white-space: pre;"),O.setAttribute("direction",L),O.setAttribute("dominant-baseline","alphabetic"),x.appendChild(O)}const F=Vc(e,v,[x],a.frameRendering,t);y(F||x)}else throw new Error(`Unimplemented type ${e.type}`)}},iF=(e,t,n,r,i,o)=>{r&&(e.filter(s=>!fr(s)).forEach(s=>{if(!s.isDeleted)try{z2(s,t,n,r,i,s.x+o.offsetX,s.y+o.offsetY,o)}catch(a){console.error(a)}}),e.filter(s=>fr(s)).forEach(s=>{if(!s.isDeleted)try{z2(s,t,n,r,i,s.x+o.offsetX,s.y+o.offsetY,o)}catch(a){console.error(a)}}))},Da=(()=>{if(typeof self>"u")return!1;if("top"in self&&self!==top)try{}catch{return!1}else if("showOpenFilePicker"in self)return"showOpenFilePicker";return!1})(),oF=ie(Da?()=>import("./file-open-002ab408-YYr_q30i.js"):()=>import("./file-open-7c801643-DzelrtLq.js"),__vite__mapDeps([]));async function sF(...e){return(await oF).default(...e)}ie(Da?()=>import("./directory-open-4ed118d0-LU9zN15H.js"):()=>import("./directory-open-01563666-cQgJ4y3t.js"),__vite__mapDeps([]));const aF=ie(Da?()=>import("./file-save-745eba88-h9NxcJsg.js"):()=>import("./file-save-3189631c-fOa8IYo3.js"),__vite__mapDeps([]));async function lF(...e){return(await aF).default(...e)}class cF extends Error{constructor(t="Couldn't export canvas.",n="CANVAS_ERROR"){super(),this.name=n,this.message=t}}class ql extends DOMException{constructor(t="Request Aborted"){super(t,"AbortError")}}class js extends Error{constructor(n="Image Scene Data Error",r="IMAGE_SCENE_DATA_ERROR"){super(n);M(this,"code");this.name="EncodingError",this.code=r}}const n_=500,fE=e=>{var r,i;const t=(r=e.extensions)==null?void 0:r.reduce((o,s)=>(o.push(de[s]),o),[]),n=(i=e.extensions)==null?void 0:i.reduce((o,s)=>s==="jpg"?o.concat(".jpg",".jpeg"):o.concat(`.${s}`),[]);return sF({description:e.description,extensions:n,mimeTypes:t,multiple:e.multiple??!1,legacySetup:(o,s,a)=>{const l=fa(s,n_),c=()=>{u(),document.addEventListener(Z.KEYUP,l),document.addEventListener(Z.POINTER_UP,l),l()},u=()=>{var h;if((h=a.files)!=null&&h.length){const m=e.multiple?[...a.files]:a.files[0];o(m)}};requestAnimationFrame(()=>{window.addEventListener(Z.FOCUS,c)});const d=window.setInterval(()=>{u()},n_);return h=>{clearInterval(d),l.cancel(),window.removeEventListener(Z.FOCUS,c),document.removeEventListener(Z.KEYUP,l),document.removeEventListener(Z.POINTER_UP,l),h&&(console.warn("Opening the file was canceled (legacy-fs)."),h(new ql))}}})},Bm=(e,t)=>lF(e,{fileName:`${t.name}.${t.extension}`,description:t.description,extensions:[`.${t.extension}`]},t.fileHandle),uF={selection:!0,text:!0,rectangle:!0,diamond:!0,ellipse:!0,line:!0,image:!0,arrow:!0,freedraw:!0,eraser:!1,custom:!0,frame:!0,embeddable:!0,hand:!0,laser:!1,magicframe:!1},dF=e=>Object.keys(Xt).includes(e)?Xt[e]:oo,r_=e=>e?{...e,focus:e.focus||0}:null,Wa=(e,t)=>{const n={type:t.type||e.type,version:e.version||1,versionNonce:e.versionNonce??0,isDeleted:e.isDeleted??!1,id:e.id||xr(),fillStyle:e.fillStyle||dt.fillStyle,strokeWidth:e.strokeWidth||dt.strokeWidth,strokeStyle:e.strokeStyle??dt.strokeStyle,roughness:e.roughness??dt.roughness,opacity:e.opacity==null?dt.opacity:e.opacity,angle:e.angle||0,x:t.x??e.x??0,y:t.y??e.y??0,strokeColor:e.strokeColor||dt.strokeColor,backgroundColor:e.backgroundColor||dt.backgroundColor,width:e.width||0,height:e.height||0,seed:e.seed??1,groupIds:e.groupIds??[],frameId:e.frameId??null,roundness:e.roundness?e.roundness:e.strokeSharpness==="round"?{type:uc(e.type)?Vt.LEGACY:Vt.PROPORTIONAL_RADIUS}:null,boundElements:e.boundElementIds?e.boundElementIds.map(r=>({type:"arrow",id:r})):e.boundElements??[],updated:e.updated??cc(),link:e.link?xi(e.link):null,locked:e.locked??!1};return("customData"in e||"customData"in t)&&(n.customData="customData"in t?t.customData:e.customData),Do in e&&(n[Do]=e[Do]),{...n,...BT(n),...t}},hF=e=>{switch(e.type){case"text":let t=e.fontSize,n=e.fontFamily;if("font"in e){const[o,s]=e.font.split(" ");t=parseFloat(o),n=dF(s)}const r=typeof e.text=="string"&&e.text||"",i=e.lineHeight||(e.height?XO(e):wa(e.fontFamily));return e=Wa(e,{fontSize:t,fontFamily:n,text:r,textAlign:e.textAlign||D1,verticalAlign:e.verticalAlign||_m,containerId:e.containerId??null,originalText:e.originalText||r,lineHeight:i}),!r&&!e.isDeleted&&(e={...e,originalText:r,isDeleted:!0},e=pc(e)),e;case"freedraw":return Wa(e,{points:e.points,lastCommittedPoint:null,simulatePressure:e.simulatePressure,pressures:e.pressures});case"image":return Wa(e,{status:e.status||"pending",fileId:e.f
Line truncated
|
|
||||||
<rect transform="translate(${A.x+w} ${A.y+x}) rotate(${A.angle} ${G} ${q})"
|
|
||||||
width="${A.width}"
|
|
||||||
height="${A.height}"
|
|
||||||
>
|
|
||||||
</rect>
|
|
||||||
</clipPath>`}if(y.innerHTML=`
|
|
||||||
${LF}
|
|
||||||
${h}
|
|
||||||
<defs>
|
|
||||||
<style class="style-fonts">
|
|
||||||
@font-face {
|
|
||||||
font-family: "Virgil";
|
|
||||||
src: url("${E}Virgil.woff2");
|
|
||||||
}
|
|
||||||
@font-face {
|
|
||||||
font-family: "Cascadia";
|
|
||||||
src: url("${E}Cascadia.woff2");
|
|
||||||
}
|
|
||||||
@font-face {
|
|
||||||
font-family: "Assistant";
|
|
||||||
src: url("${E}Assistant-Regular.woff2");
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
${S}
|
|
||||||
</defs>
|
|
||||||
`,t.exportBackground&&a){const A=y.ownerDocument.createElementNS(Ke,"rect");A.setAttribute("x","0"),A.setAttribute("y","0"),A.setAttribute("width",`${p}`),A.setAttribute("height",`${v}`),A.setAttribute("fill",a),y.appendChild(A)}const T=ws.svg(y),L=(r==null?void 0:r.renderEmbeddables)??!1;return iF(d,ma(be(d)),T,y,n||{},{offsetX:w,offsetY:x,isExporting:!0,exportWithDarkMode:s,renderEmbeddables:L,frameRendering:i,canvasBackgroundColor:a,embedsValidationStatus:L?new Map(d.filter(A=>pe(A)).map(A=>[A.id,!0])):new Map}),y},EE=(e,t)=>{const[n,r,i,o]=nt(e),s=un(n,i)+t*2,a=un(r,o)+t*2;return[n,r,s,a]},DF=(e,t,n)=>{const[,,r,i]=EE(e,t).map(o=>Math.trunc(o*n));return[r,i]};var wE={};(function(e){(function(t){t(typeof DO_NOT_EXPORT_CRC>"u"?e:{})})(function(t){t.version="0.3.0";function n(){for(var c=0,u=new Array(256),d=0;d!=256;++d)c=d,c=c&1?-306674912^c>>>1:c>>>1,c=c&1?-306674912^c>>>1:c>>>1,c=c&1?-306674912^c>>>1:c>>>1,c=c&1?-306674912^c>>>1:c>>>1,c=c&1?-306674912^c>>>1:c>>>1,c=c&1?-306674912^c>>>1:c>>>1,c=c&1?-306674912^c>>>1:c>>>1,c=c&1?-306674912^c>>>1:c>>>1,u[d]=c;return typeof Int32Array<"u"?new Int32Array(u):u}var r=n(),i=typeof Buffer<"u";function o(c){if(c.length>32768&&i)return a(new Buffer(c));for(var u=-1,d=c.length-1,h=0;h<d;)u=r[(u^c.charCodeAt(h++))&255]^u>>>8,u=r[(u^c.charCodeAt(h++))&255]^u>>>8;return h===d&&(u=u>>>8^r[(u^c.charCodeAt(h))&255]),u^-1}function s(c){if(c.length>1e4)return a(c);for(var u=-1,d=0,h=c.length-3;d<h;)u=u>>>8^r[(u^c[d++])&255],u=u>>>8^r[(u^c[d++])&255],u=u>>>8^r[(u^c[d++])&255],u=u>>>8^r[(u^c[d++])&255];for(;d<h+3;)u=u>>>8^r[(u^c[d++])&255];return u^-1}function a(c){for(var u=-1,d=0,h=c.length-7;d<h;)u=u>>>8^r[(u^c[d++])&255],u=u>>>8^r[(u^c[d++])&255],u=u>>>8^r[(u^c[d++])&255],u=u>>>8^r[(u^c[d++])&255],u=u>>>8^r[(u^c[d++])&255],u=u>>>8^r[(u^c[d++])&255],u=u>>>8^r[(u^c[d++])&255],u=u>>>8^r[(u^c[d++])&255];for(;d<h+7;)u=u>>>8^r[(u^c[d++])&255];return u^-1}function l(c){for(var u=-1,d=0,h=c.length,m,g;d<h;)m=c.charCodeAt(d++),m<128?u=u>>>8^r[(u^m)&255]:m<2048?(u=u>>>8^r[(u^(192|m>>6&31))&255],u=u>>>8^r[(u^(128|m&63))&255]):m>=55296&&m<57344?(m=(m&1023)+64,g=c.charCodeAt(d++)&1023,u=u>>>8^r[(u^(240|m>>8&7))&255],u=u>>>8^r[(u^(128|m>>2&63))&255],u=u>>>8^r[(u^(128|g>>6&15|m&3))&255],u=u>>>8^r[(u^(128|g&63))&255]):(u=u>>>8^r[(u^(224|m>>12&15))&255],u=u>>>8^r[(u^(128|m>>6&63))&255],u=u>>>8^r[(u^(128|m&63))&255]);return u^-1}t.table=r,t.bstr=o,t.buf=s,t.str=l})})(wE);var OF=wE,NF=BF,hi=new Uint8Array(4),FF=new Int32Array(hi.buffer),$F=new Uint32Array(hi.buffer);function BF(e){if(e[0]!==137)throw new Error("Invalid .png file header");if(e[1]!==80)throw new Error("Invalid .png file header");if(e[2]!==78)throw new Error("Invalid .png file header");if(e[3]!==71)throw new Error("Invalid .png file header");if(e[4]!==13)throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(e[5]!==10)throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(e[6]!==26)throw new Error("Invalid .png file header");if(e[7]!==10)throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");for(var t=!1,n=[],r=8;r<e.length;){hi[3]=e[r++],hi[2]=e[r++],hi[1]=e[r++],hi[0]=e[r++];var i=$F[0]+4,o=new Uint8Array(i);o[0]=e[r++],o[1]=e[r++],o[2]=e[r++],o[3]=e[r++];var s=String.fromCharCode(o[0])+String.fromCharCode(o[1])+String.fromCharCode(o[2])+String.fromCharCode(o[3]);if(!n.length&&s!=="IHDR")throw new Error("IHDR header missing");if(s==="IEND"){t=!0,n.push({name:s,data:new Uint8Array(0)});break}for(var a=4;a<i;a++)o[a]=e[r++];hi[3]=e[r++],hi[2]=e[r++],hi[1]=e[r++],hi[0]=e[r++];var l=FF[0],c=OF.buf(o);if(c!==l)throw new Error("CRC values for "+s+" header do not match, PNG file is likely corrupted");var u=new Uint8Array(o.buffer.slice(4));n.push({name:s,data:u})}if(!t)throw new Error(".png file ended prematurely: no IEND header was found");return n}const pC=rc(NF);var J1={},zF=HF;function HF(e,t){if(e=String(e),t=String(t),!/^[\x00-\xFF]+$/.test(e)||!/^[\x00-\xFF]+$/.test(t))throw new Error("Only Latin-1 characters are permitted in PNG tEXt chunks. You might want to consider base64 encoding and/or zEXt compression");if(e.length>=80)throw new Error('Keyword "'+e+'" is longer than the 79-character limit imposed by the PNG specification');for(var n=e.length+t.length+1,r=new Uint8Array(n),i=0,o,s=0;s<e.length;s++){if(!(o=e.charCodeAt(s)))throw new Error("0x00 character is not permitted in tEXt keywords");r[i++]=o}r[i++]=0;for(var a=0;a<t.length;a++){if(!(o=t.charCodeAt(a)))throw new Error("0x00 character is not permitted in tEXt content");r[i++]=o}return{name:"tEXt",data:r}}var UF=WF;function WF(e){e.data&&e.name&&(e=e.data);for(var t=!0,n="",r="",i=0;i<e.length;i++){var o=e[i];if(t)o?r+=String.fromCharCode(o):t=!1;else if(o)n+=String.fromCharCode(o);else throw new Error("Invalid NULL character found. 0x00 character is not permitted in tEXt content")}return{keyword:r,text:n}}J1.encode=zF;J1.decode=UF;
Line truncated
|
|
||||||
`).map(o=>o.trim().split(" "));if(t.length&&t[0].length!==2&&(t=e.trim().split(`
|
|
||||||
`).map(o=>o.trim().split(","))),t.length===0)return{type:Fs,reason:"No values"};const n=t[0].length;if(!t.every(o=>o.length===n))return{type:Fs,reason:"All rows don't have same number of columns"};const i=e6(t);if(i.type!==Md){const o=e6(qB(t));if(o.type===Md)return o}return i},Vm=KP(GP),wr={fillStyle:"hachure",fontFamily:oo,fontSize:Xr,opacity:100,roughness:1,strokeColor:ve.black,roundness:null,strokeStyle:"solid",strokeWidth:1,verticalAlign:Qn.MIDDLE,locked:!1},gT=e=>{const t=(zr+We)*e.values.length+We,n=es+We*2;return{chartWidth:t,chartHeight:n}},JB=(e,t,n,r,i)=>{var o;return((o=e.labels)==null?void 0:o.map((s,a)=>Sr({groupIds:[r],backgroundColor:i,...wr,text:s.length>8?`${s.slice(0,5)}...`:s,x:t+a*(zr+We)+We*2,y:n+We/2,width:zr,angle:5.87,fontSize:16,textAlign:"center",verticalAlign:"top"})))||[]},ez=(e,t,n,r,i)=>{const o=Sr({groupIds:[r],backgroundColor:i,...wr,x:t-We,y:n-We,text:"0",textAlign:"right"}),s=Sr({groupIds:[r],backgroundColor:i,...wr,x:t-We,y:n-es-o.height/2,text:Math.max(...e.values).toLocaleString(),textAlign:"right"});return[o,s]},tz=(e,t,n,r,i)=>{const{chartWidth:o,chartHeight:s}=gT(e),a=Qo({backgroundColor:i,groupIds:[r],...wr,type:"line",x:t,y:n,startArrowhead:null,endArrowhead:null,width:o,points:[[0,0],[o,0]]}),l=Qo({backgroundColor:i,groupIds:[r],...wr,type:"line",x:t,y:n,startArrowhead:null,endArrowhead:null,height:s,points:[[0,0],[0,-s]]}),c=Qo({backgroundColor:i,groupIds:[r],...wr,type:"line",x:t,y:n-es-We,startArrowhead:null,endArrowhead:null,strokeStyle:"dotted",width:o,opacity:mT,points:[[0,0],[o,0]]});return[a,l,c]},pT=(e,t,n,r,i,o)=>{const{chartWidth:s,chartHeight:a}=gT(e),l=e.title?Sr({backgroundColor:i,groupIds:[r],...wr,text:e.title,x:t+s/2,y:n-es-We*2-Xr,roundness:null,textAlign:"center"}):null,c=o?hs({backgroundColor:i,groupIds:[r],...wr,type:"rectangle",x:t,y:n-a,width:s,height:a,strokeColor:ve.black,fillStyle:"solid",opacity:6}):null;return[...c?[c]:[],...l?[l]:[],...JB(e,t,n,r,i),...ez(e,t,n,r,i),...tz(e,t,n,r,i)]},nz=(e,t,n)=>{const r=Math.max(...e.values),i=xr(),o=Vm[Math.floor(Math.random()*Vm.length)];return[...e.values.map((a,l)=>{const c=a/r*es;return hs({backgroundColor:o,groupIds:[i],...wr,type:"rectangle",x:t+l*(zr+We)+We,y:n-c-We,width:zr,height:c})}),...pT(e,t,n,i,o,!1)]},rz=(e,t,n)=>{const r=Math.max(...e.values),i=xr(),o=Vm[Math.floor(Math.random()*Vm.length)];let s=0;const a=[];for(const p of e.values){const v=s*(zr+We),y=-(p/r)*es;a.push([v,y]),s++}const l=Math.max(...a.map(p=>p[0])),c=Math.max(...a.map(p=>p[1])),u=Math.min(...a.map(p=>p[0])),d=Math.min(...a.map(p=>p[1])),h=Qo({backgroundColor:o,groupIds:[i],...wr,type:"line",x:t+We+zr/2,y:n-We,startArrowhead:null,endArrowhead:null,height:c-d,width:l-u,strokeWidth:2,points:a}),m=e.values.map((p,v)=>{const y=v*(zr+We)+We/2,E=-(p/r)*es+We/2;return hs({backgroundColor:o,groupIds:[i],...wr,fillStyle:"solid",strokeWidth:2,type:"ellipse",x:t+y+zr/2,y:n+E-We*2,width:We,height:We})}),g=e.values.map((p,v)=>{const y=v*(zr+We)+We/2,E=p/r*es+We/2+We;return Qo({backgroundColor:o,groupIds:[i],...wr,type:"line",x:t+y+zr/2+We/2,y:n-E,startArrowhead:null,endArrowhead:null,height:E,strokeStyle:"dotted",opacity:mT,points:[[0,0],[0,E]]})});return[...pT(e,t,n,i,o,!1),h,...g,...m]},iz=(e,t,n,r)=>e==="line"?rz(t,n,r):nz(t,n,r),ME="clipboard"in navigator&&"writeText"in navigator.clipboard,AE="clipboard"in navigator&&"write"in navigator.clipboard&&"ClipboardItem"in window&&"toBlob"in HTMLCanvasElement.prototype,oz=e=>!!([yr.excalidraw,yr.excalidrawClipboard,yr.excalidrawClipboardWithAPI].includes(e==null?void 0:e.type)&&Array.isArray(e.elements)),sz=({types:e,files:t})=>{var r,i,o,s;!e&&!t&&console.warn("createPasteEvent: no types or files provided");const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});if(e)for(const[a,l]of Object.entries(e))try{if((r=n.clipboardData)==null||r.setData(a,l),((i=n.clipboardData)==null?void 0:i.getData(a))!==l)throw new Error(`Failed to set "${a}" as clipboardData item`)}catch(c){throw new Error(c.message)}if(t){let a=-1;for(const l of t){a++;try{if((o=n.clipboardData)==null||o.items.add(l),((s=n.clipboardData)==null?void 0:s.files[a])!==l)throw new Error(`Failed to set file "${l.name}" as clipboardData item`)}catch(c){throw new Error(c.message)}}}return n},az=({elements:e,files:t})=>{const n=be(e),r=new Set(e.filter(a=>pe(a)));let i=!1;const o=e.reduce((a,l)=>(Ft(l)&&(i=!0,t&&t[l.fileId]&&(a[l.fileId]=t[l.fileId])),a),{});i&&!t&&console.warn("copyToClipboard: attempting to file element(s) without providing associated `files` object.");const s={type:yr.excalidrawClipboard,elements:e.map(a=>{if(rr(a,n)&&!r.has(rr(a,n))){const l=th(a);return J(l,{frameId:null}),l}return a}),files:t?o:void 0};return JSON.stringify(s)},lz=async(e,t,n)=>{await Fa(az({elements:e,files:t}),n)},cz=e=>{const t=QB(e);return t.type===Md?{spreadsheet:t.spreadsheet}:null};function yT(e){var n;let t=[];for(const r of e.childNodes)if(r.nodeType===3){const i=(n=r.textContent)==null?void 0:n.trim();i&&t.push({ty
Line truncated
|
|
||||||
`).trim()}:i:{type:"text",value:(((r=e.clipboardData)==null?void 0:r.getData("text/plain"))||"").trim()}}catch{return{type:"text",value:""}}},vT=async(e,t=!1)=>{const n=await hz(e,t);if(n.type==="mixedContent")return{mixedContent:n.value};try{const r=!t&&cz(n.value);if(r)return r}catch(r){console.error(r)}try{const r=JSON.parse(n.value),i=r.type===yr.excalidrawClipboardWithAPI;if(oz(r))return{elements:r.elements,files:r.files,text:t?JSON.stringify(r.elements,null,2):void 0,programmaticAPI:i}}catch{}return{text:n.value}},fz=async e=>{try{await navigator.clipboard.write([new window.ClipboardItem({[de.png]:e})])}catch(t){if(Xd(e))await navigator.clipboard.write([new window.ClipboardItem({[de.png]:await e})]);else throw t}},Fa=async(e,t)=>{var n,r;if(ME)try{await navigator.clipboard.writeText(e||"");return}catch(i){console.error(i)}try{if(t){if((n=t.clipboardData)==null||n.setData("text/plain",e||""),((r=t.clipboardData)==null?void 0:r.getData("text/plain"))!==e)throw new Error("Failed to setData on clipboardEvent");return}}catch(i){console.error(i)}if(!mz(e))throw new Error("Error copying to clipboard.")},mz=e=>{e||(e=" ");const t=document.documentElement.getAttribute("dir")==="rtl",n=document.createElement("textarea");n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";const r=window.pageYOffset||document.documentElement.scrollTop;n.style.top=`${r}px`,n.style.fontSize="12pt",n.setAttribute("readonly",""),n.value=e,document.body.appendChild(n);let i=!1;try{n.select(),n.setSelectionRange(0,n.value.length),i=document.execCommand("copy")}catch(o){console.error(o)}return n.remove(),i},og=({elements:e,appState:t,files:n,maxWidthOrHeight:r,getDimensions:i,exportPadding:o,exportingFrame:s})=>{const{elements:a,appState:l}=_a({elements:e,appState:t},null,null),{exportBackground:c,viewBackgroundColor:u}=l;return gC(a,{...l,offsetTop:0,offsetLeft:0,width:0,height:0},n||{},{exportBackground:c,exportPadding:o,viewBackgroundColor:u,exportingFrame:s},(d,h)=>{const m=document.createElement("canvas");if(r){typeof i=="function"&&console.warn("`getDimensions()` is ignored when `maxWidthOrHeight` is supplied.");const p=Math.max(d,h),v=r<p?r/p:(t==null?void 0:t.exportScale)??1;return m.width=d*v,m.height=h*v,{canvas:m,scale:v}}const g=(i==null?void 0:i(d,h))||{width:d,height:h};return m.width=g.width,m.height=g.height,{canvas:m,scale:g.scale??1}})},gz=async e=>{var i;let{mimeType:t=de.png,quality:n}=e;t===de.png&&typeof n=="number"&&console.warn(`"quality" will be ignored for "${de.png}" mimeType`),t==="image/jpg"&&(t=de.jpg),t===de.jpg&&!((i=e.appState)!=null&&i.exportBackground)&&(console.warn(`Defaulting "exportBackground" to "true" for "${de.jpg}" mimeType`),e={...e,appState:{...e.appState,exportBackground:!0}});const r=await og(e);return n=n||(/image\/jpe?g/.test(t)?.92:.8),new Promise((o,s)=>{r.toBlob(async a=>{var l;if(!a)return s(new Error("couldn't export to blob"));a&&t===de.png&&((l=e.appState)!=null&&l.exportEmbedScene)&&(a=await fT({blob:a,metadata:hc(e.elements,e.appState,e.files||{},"local")})),o(a)},t,n)})},ET=async({elements:e,appState:t=qr(),files:n={},exportPadding:r,renderEmbeddables:i,exportingFrame:o})=>{const{elements:s,appState:a}=_a({elements:e,appState:t},null,null),l={...a,exportPadding:r};return vE(s,l,n,{exportingFrame:o,renderEmbeddables:i})},pz=e=>e.type==="diamond"?[[e.width/2,0],[e.width,e.height/2],[e.width/2,e.height],[0,e.height/2]]:[[0,0],[0+e.width,0],[0+e.width,e.height],[0,e.height]],yz=e=>we(e)||Hn(e)?e.points:pz(e),t6=e=>{const t=e.reduce((n,[r,i])=>(n.minY=Math.min(n.minY,i),n.minX=Math.min(n.minX,r),n.maxX=Math.max(n.maxX,r),n.maxY=Math.max(n.maxY,i),n),{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,cx:0,cy:0});return t.cx=(t.maxX+t.minX)/2,t.cy=(t.maxY+t.minY)/2,t},wT=e=>{const t=yz(e),{cx:n,cy:r}=t6(t),i=[n,r],o=t.map(u=>st([u[0],u[1]],i,e.angle)),{minX:s,minY:a,maxX:l,maxY:c}=t6(o);return[s+e.x,a+e.y,l+e.x,c+e.y]},n6=(e,t,n=!1)=>{const r=wT(e),i=t[0]<=r[0]&&t[2]>=r[2]&&t[1]<=r[1]&&t[3]>=r[3];return n?i?!0:r[0]<=t[0]&&r[2]>=t[2]&&r[1]<=t[1]&&r[3]>=t[3]:i},vz=(e,t)=>{const n=wT(e);return(Uh(n[0],t[0],t[2])||Uh(t[0],n[0],n[2]))&&(Uh(n[1],t[1],t[3])||Uh(t[1],n[1],n[3]))},Ez=({elements:e,bounds:t,type:n,errorMargin:r=0})=>{var s;Jk(t)&&(t=ba(t,be(e)));const i=[t[0]-r,t[1]-r,t[2]+r,t[3]+r],o=new Set;for(const a of e){if(o.has(a.id))continue;if(n==="overlap"?vz(a,i):n==="inside"?n6(a,i):n6(a,i,!0)){if(o.add(a.id),a.boundElements)for(const c of a.boundElements)o.add(c.id);ce(a)&&a.containerId&&o.add(a.containerId),Ge(a)&&(a.startBinding&&o.add(a.startBinding.elementId),a.endBinding&&o.add((s=a.endBinding)==null?void 0:s.elementId))}}return e.filter(a=>o.has(a.id))};function r6(e){return[Math.min(e[0][0],e[1][0]),Math.min(e[0][1],e[1][1]),Math.max(e[0][0],e[1][0]),Math.max(e[0][1],e[1][1])]}function bT(e,t){return e[0]*t[1]-t[0]*e[1]}function wz(e,t){return e[0]<=t[2]&&e[2]>=t[0]&&e[1]<=t[3]&&e[3]>=t[1]}function Gm(e,t){return[e[0]
Line truncated
|
|
||||||
`).split(`
|
|
||||||
`),c=e.textAlign==="center"?e.width/2:e.textAlign==="right"?e.width:0,u=Qd(e.fontSize,e.lineHeight),d=II(e.fontFamily,e.fontSize,u);for(let h=0;h<l.length;h++)n.fillText(l[h],c,h*u+d);n.restore(),a&&n.canvas.remove()}else throw new Error(`Unimplemented type ${e.type}`)}},Q2=new WeakMap,a6=(e,t,n,r)=>{var c,u;const i=n?r.zoom:Cz.zoom,o=Q2.get(e),s=o&&o.zoomValue!==i.value&&!(r!=null&&r.shouldCacheIgnoreZoom),a=((c=ke(e,t))==null?void 0:c.version)||null,l=((u=rr(e,t))==null?void 0:u.opacity)||100;if(!o||s||o.theme!==r.theme||o.boundTextElementVersion!==a||o.containingFrameOpacity!==l){const d=Mz(e,t,i,n,r);return Q2.set(e,d),d}return o},l6=(e,t,n,r,i)=>{const o=e.element,s=lg(o),a=e.scale;let[l,c,u,d]=Ee(o,i);Hn(o)&&(l=Math.floor(l),u=Math.ceil(u),c=Math.floor(c),d=Math.ceil(d));const h=((l+u)/2+r.scrollX)*window.devicePixelRatio,m=((c+d)/2+r.scrollY)*window.devicePixelRatio;t.save(),t.scale(1/window.devicePixelRatio,1/window.devicePixelRatio);const g=ke(o,i);if(Ge(o)&&g){const p=document.createElement("canvas"),v=p.getContext("2d"),y=Math.max(un(l,u),un(c,d));p.width=y*window.devicePixelRatio*a+s*e.scale*10,p.height=y*window.devicePixelRatio*a+s*e.scale*10;const E=(p.width-e.canvas.width)/2,w=(p.height-e.canvas.height)/2;v.translate(p.width/2,p.height/2),v.rotate(o.angle),v.drawImage(e.canvas,-e.canvas.width/2,-e.canvas.height/2,e.canvas.width,e.canvas.height);const[,,,,x,C]=Ee(g,i);v.rotate(-o.angle);const S=p.width/2-(x-l)*window.devicePixelRatio*a-E-s*a,I=p.height/2-(C-c)*window.devicePixelRatio*a-w-s*a;v.translate(-S,-I),v.clearRect(-(g.width/2+Nt)*window.devicePixelRatio*a,-(g.height/2+Nt)*window.devicePixelRatio*a,(g.width+Nt*2)*window.devicePixelRatio*a,(g.height+Nt*2)*window.devicePixelRatio*a),t.translate(h,m),t.drawImage(p,-(u-l)/2*window.devicePixelRatio-E/a-s,-(d-c)/2*window.devicePixelRatio-w/a-s,p.width/a,p.height/a)}else if(t.translate(h,m),t.rotate(o.angle),"scale"in e.element&&!PT(o,n)&&t.scale(e.element.scale[0],e.element.scale[1]),t.translate(-h,-m),t.drawImage(e.canvas,(l+r.scrollX)*window.devicePixelRatio-s*e.scale/e.scale,(c+r.scrollY)*window.devicePixelRatio-s*e.scale/e.scale,e.canvas.width/e.scale,e.canvas.height/e.scale),Iz.VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX==="true"&&ls(o)){const p=ke(o,i),v=LI(o);t.strokeStyle="#c92a2a",t.lineWidth=3,t.strokeRect((v.x+r.scrollX)*window.devicePixelRatio,(v.y+r.scrollY)*window.devicePixelRatio,Ii(o,p)*window.devicePixelRatio,eh(o,p)*window.devicePixelRatio)}t.restore()},Pz=(e,t,n)=>{t.save(),t.translate(e.x+n.scrollX,e.y+n.scrollY),t.fillStyle="rgba(0, 0, 200, 0.04)";const r=.5/n.zoom.value;t.fillRect(r,r,e.width,e.height),t.lineWidth=1/n.zoom.value,t.strokeStyle=" rgb(105, 101, 219)",t.strokeRect(r,r,e.width,e.height),t.restore()},Zh=(e,t,n,r,i,o,s)=>{switch(i.globalAlpha=DT(e,rr(e,t),o.elementsPendingErasure),e.type){case"magicframe":case"frame":{s.frameRendering.enabled&&s.frameRendering.outline&&(i.save(),i.translate(e.x+s.scrollX,e.y+s.scrollY),i.fillStyle="rgba(0, 0, 200, 0.04)",i.lineWidth=vt.strokeWidth/s.zoom.value,i.strokeStyle=vt.strokeColor,uu(e)&&(i.strokeStyle=s.theme==="light"?"#7affd7":"#1d8264"),i.roundRect?(i.beginPath(),i.roundRect(0,0,e.width,e.height,vt.radius/s.zoom.value),i.stroke(),i.closePath()):i.strokeRect(0,0,e.width,e.height),i.restore());break}case"freedraw":{if(Xe.generateElementShape(e,null),o.isExporting){const[a,l,c,u]=Ee(e,t),d=(a+c)/2+s.scrollX,h=(l+u)/2+s.scrollY,m=(c-a)/2-(e.x-a),g=(u-l)/2-(e.y-l);i.save(),i.translate(d,h),i.rotate(e.angle),i.translate(-m,-g),Wf(e,r,i,o,s),i.restore()}else{const a=a6(e,t,o,s);l6(a,i,o,s,n)}break}case"rectangle":case"diamond":case"ellipse":case"line":case"arrow":case"image":case"text":case"iframe":case"embeddable":{if(Xe.generateElementShape(e,o),o.isExporting){const[a,l,c,u]=Ee(e,t),d=(a+c)/2+s.scrollX,h=(l+u)/2+s.scrollY;let m=(c-a)/2-(e.x-a),g=(u-l)/2-(e.y-l);if(ce(e)){const v=kn(e,t);if(Ge(v)){const y=ue.getBoundTextElementPosition(v,e,t);m=(c-a)/2-(y.x-a),g=(u-l)/2-(y.y-l)}}i.save(),i.translate(d,h),RT(e,o,s)&&(i.filter="none");const p=ke(e,t);if(Ge(e)&&p){const v=document.createElement("canvas"),y=v.getContext("2d"),E=Math.max(un(a,c),un(l,u)),w=lg(e);v.width=E*s.exportScale+w*10*s.exportScale,v.height=E*s.exportScale+w*10*s.exportScale,y.translate(v.width/2,v.height/2),y.scale(s.exportScale,s.exportScale),m=e.width/2-(e.x-a),g=e.height/2-(e.y-l),y.rotate(e.angle);const x=ws.canvas(v);y.translate(-m,-g),Wf(e,x,y,o,s),y.translate(m,g),y.rotate(-e.angle);const[,,,,C,S]=Ee(p,t),I=(a+c)/2-C,T=(l+u)/2-S;y.translate(-I,-T),y.clearRect(-p.width/2,-p.height/2,p.width,p.height),i.scale(1/s.exportScale,1/s.exportScale),i.drawImage(v,-v.width/2,-v.height/2,v.width,v.height)}else i.rotate(e.angle),e.type==="image"&&i.scale(e.scale[0],e.scale[1]),i.translate(-m,-g),Wf(e,r,i,o,s);i.restore()}else{const a=a6(e,t,o,s),l=i.imageSmoothingEnabled;!(s!=null&&s.shouldCacheIgnoreZoom)&&(!e.angle||UD(e.angle))&&(i.imageSmoothingEnabled=!1),l6(a,i,o,s,n),i.imageSmoothingEnabled=l}br
Line truncated
|
|
||||||
.`.concat(XV,` {
|
|
||||||
overflow: hidden `).concat(r,`;
|
|
||||||
padding-right: `).concat(a,"px ").concat(r,`;
|
|
||||||
}
|
|
||||||
body {
|
|
||||||
overflow: hidden `).concat(r,`;
|
|
||||||
overscroll-behavior: contain;
|
|
||||||
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
||||||
padding-left: `.concat(i,`px;
|
|
||||||
padding-top: `).concat(o,`px;
|
|
||||||
padding-right: `).concat(s,`px;
|
|
||||||
margin-left:0;
|
|
||||||
margin-top:0;
|
|
||||||
margin-right: `).concat(a,"px ").concat(r,`;
|
|
||||||
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
||||||
}
|
|
||||||
|
|
||||||
.`).concat(jf,` {
|
|
||||||
right: `).concat(a,"px ").concat(r,`;
|
|
||||||
}
|
|
||||||
|
|
||||||
.`).concat(Yf,` {
|
|
||||||
margin-right: `).concat(a,"px ").concat(r,`;
|
|
||||||
}
|
|
||||||
|
|
||||||
.`).concat(jf," .").concat(jf,` {
|
|
||||||
right: 0 `).concat(r,`;
|
|
||||||
}
|
|
||||||
|
|
||||||
.`).concat(Yf," .").concat(Yf,` {
|
|
||||||
margin-right: 0 `).concat(r,`;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
`).concat(qV,": ").concat(a,`px;
|
|
||||||
}
|
|
||||||
`)},yG=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=_.useMemo(function(){return mG(i)},[i]);return _.createElement(gG,{styles:pG(o,!t,i,n?"":"!important")})},hy=!1;if(typeof window<"u")try{var Jh=Object.defineProperty({},"passive",{get:function(){return hy=!0,!0}});window.addEventListener("test",Jh,Jh),window.removeEventListener("test",Jh,Jh)}catch{hy=!1}var Ya=hy?{passive:!1}:!1,vG=function(e){return e.tagName==="TEXTAREA"},C8=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!vG(e)&&n[t]==="visible")},EG=function(e){return C8(e,"overflowY")},wG=function(e){return C8(e,"overflowX")},B6=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=T8(e,n);if(r){var i=M8(e,n),o=i[1],s=i[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},bG=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},_G=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},T8=function(e,t){return e==="v"?EG(t):wG(t)},M8=function(e,t){return e==="v"?bG(t):_G(t)},xG=function(e,t){return e==="h"&&t==="rtl"?-1:1},SG=function(e,t,n,r,i){var o=xG(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,l=t.contains(a),c=!1,u=s>0,d=0,h=0;do{var m=M8(e,a),g=m[0],p=m[1],v=m[2],y=p-v-o*g;(g||y)&&T8(e,a)&&(d+=y,h+=g),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(i&&d===0||!i&&s>d)||!u&&(i&&h===0||!i&&-s>h))&&(c=!0),c},ef=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},z6=function(e){return[e.deltaX,e.deltaY]},H6=function(e){return e&&"current"in e?e.current:e},kG=function(e,t){return e[0]===t[0]&&e[1]===t[1]},IG=function(e){return`
|
|
||||||
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
||||||
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
||||||
`)},CG=0,Ka=[];function TG(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(CG++)[0],o=_.useState(function(){return I8()})[0],s=_.useRef(e);_.useEffect(function(){s.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var p=ZV([e.lockRef.current],(e.shards||[]).map(H6),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=_.useCallback(function(p,v){if("touches"in p&&p.touches.length===2)return!s.current.allowPinchZoom;var y=ef(p),E=n.current,w="deltaX"in p?p.deltaX:E[0]-y[0],x="deltaY"in p?p.deltaY:E[1]-y[1],C,S=p.target,I=Math.abs(w)>Math.abs(x)?"h":"v";if("touches"in p&&I==="h"&&S.type==="range")return!1;var T=B6(I,S);if(!T)return!0;if(T?C=I:(C=I==="v"?"h":"v",T=B6(I,S)),!T)return!1;if(!r.current&&"changedTouches"in p&&(w||x)&&(r.current=C),!C)return!0;var L=r.current||C;return SG(L,v,p,L==="h"?w:x,!0)},[]),l=_.useCallback(function(p){var v=p;if(!(!Ka.length||Ka[Ka.length-1]!==o)){var y="deltaY"in v?z6(v):ef(v),E=t.current.filter(function(C){return C.name===v.type&&C.target===v.target&&kG(C.delta,y)})[0];if(E&&E.should){v.cancelable&&v.preventDefault();return}if(!E){var w=(s.current.shards||[]).map(H6).filter(Boolean).filter(function(C){return C.contains(v.target)}),x=w.length>0?a(v,w[0]):!s.current.noIsolation;x&&v.cancelable&&v.preventDefault()}}},[]),c=_.useCallback(function(p,v,y,E){var w={name:p,delta:v,target:y,should:E};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(x){return x!==w})},1)},[]),u=_.useCallback(function(p){n.current=ef(p),r.current=void 0},[]),d=_.useCallback(function(p){c(p.type,z6(p),p.target,a(p,e.lockRef.current))},[]),h=_.useCallback(function(p){c(p.type,ef(p),p.target,a(p,e.lockRef.current))},[]);_.useEffect(function(){return Ka.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Ya),document.addEventListener("touchmove",l,Ya),document.addEventListener("touchstart",u,Ya),function(){Ka=Ka.filter(function(p){return p!==o}),document.removeEventListener("wheel",l,Ya),document.removeEventListener("touchmove",l,Ya),document.removeEventListener("touchstart",u,Ya)}},[]);var m=e.removeScrollBar,g=e.inert;return _.createElement(_.Fragment,null,g?_.createElement(o,{styles:IG(i)}):null,m?_.createElement(yG,{gapMode:"margin"}):null)}const MG=oG(k8,TG);var A8=_.forwardRef(function(e,t){return _.createElement(yg,Mo({},e,{ref:t,sideCar:MG}))});A8.classNames=yg.classNames;const AG=A8,L8="Popover",[P8,JJ]=ah(L8,[w8]),vg=w8(),[LG,wc]=P8(L8),PG=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!1}=e,a=vg(t),l=_.useRef(null),[c,u]=_.useState(!1),[d=!1,h]=KE({prop:r,defaultProp:i,onChange:o});return _.createElement(NV,a,_.createElement(LG,{scope:t,contentId:VE(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:_.useCallback(()=>h(m=>!m),[h]),hasCustomAnchor:c,onCustomAnchorAdd:_.useCallback(()=>u(!0),[]),onCustomAnchorRemove:_.useCallback(()=>u(!1),[]),modal:s},n))},RG="PopoverTrigger",DG=_.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=wc(RG,n),o=vg(n),s=Ci(t,i.triggerRef),a=_.createElement(Un.button,Ye({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":O8(i.open)},r,{ref:s,onClick:hn(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?a:_.createElement(FV,Ye({asChild:!0},o),a)}),R8="PopoverPortal",[OG,NG]=P8(R8,{forceMount:void 0}),FG=e=>{const{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=wc(R8,t);return _.createElement(OG,{scope:t,forceMount:n},_.createElement(pg,{present:n||o.open},_.createElement(zV,{asChild:!0,container:i},r)))},Dd="PopoverContent",$G=_.forwardRef((e,t)=>{const n=NG(Dd,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=wc(Dd,e.__scopePopover);return _.createElement(pg,{present:r||o.open},o.modal?_.createElement(BG,Ye({},i,{ref:t})):_.createElement(zG,Ye({},i,{ref:t})))}),BG=_.forwardRef((e,t)=>{const n=wc(Dd,e.__scopePopover),r=_.useRef(null),i=Ci(t,r),o=_.useRef(!1);return _.useEffect(()=>{const s=r.current;if(s)return YV(s)},[]),_.createElement(AG,{as:Pd,allowPinchZoom:!0},_.createElement(D8,Ye({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:hn(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),o.current||(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:hn(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;o.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:hn(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})))}),zG=_.forwardRef((e,t)=>{const n=wc(Dd,e.__scopePopover),r=_.useRef(!1);return _.createElement(
Line truncated
|
|
||||||
|
|
||||||
${b("hints.firefox_clipboard_write")}`):new Error(b("alerts.couldNotCopyToClipboard"))}else throw new Error("Unsupported export type")},nj=async(e,t,n,r)=>{const{exportBackground:i,viewBackgroundColor:o,fileHandle:s}=t,a=qI(s);if(!s||!yF(a))throw new Error("fileHandle should exist and should be of type svg or png when resaving");t={...t,exportEmbedScene:!0};const{exportedElements:l,exportingFrame:c}=Sg(e,t,!1);return await kg(a,l,t,n,{exportBackground:i,viewBackgroundColor:o,name:r,fileHandle:s,exportingFrame:c}),{fileHandle:s}},Ig=({children:e,checked:t,onChange:n,className:r})=>k("div",{className:se("Checkbox",r,{"is-checked":t}),onClick:i=>{n(!t,i),i.currentTarget.querySelector(".Checkbox-box").focus()},children:[f("button",{className:"Checkbox-box",role:"checkbox","aria-checked":t,children:AH}),f("div",{className:"Checkbox-label",children:e})]}),rj=ne({name:"changeProjectName",trackEvent:!1,perform:(e,t,n)=>({appState:{...t,name:n},commitToHistory:!1}),PanelComponent:({appState:e,updateData:t,appProps:n,data:r,app:i})=>f(ej,{label:b("labels.fileTitle"),value:i.getName(),onChange:o=>t(o),ignoreFocus:(r==null?void 0:r.ignoreFocus)??!1})}),ij=ne({name:"changeExportScale",trackEvent:{category:"export",action:"scale"},perform:(e,t,n)=>({appState:{...t,exportScale:n},commitToHistory:!1}),PanelComponent:({elements:e,appState:t,updateData:n})=>{const r=je(e),o=Lt(r,t)?qe(r,t):r;return f(re,{children:Bv.map(s=>{const[a,l]=DF(o,ac,s),c=`${b("imageExportDialog.label.scale")} ${s}x (${a}x${l})`;return f(Ce,{size:"small",type:"radio",icon:`${s}x`,name:"export-canvas-scale",title:c,"aria-label":c,id:"export-canvas-scale",checked:s===t.exportScale,onChange:()=>n(s)},s)})})}}),oj=ne({name:"changeExportBackground",trackEvent:{category:"export",action:"toggleBackground"},perform:(e,t,n)=>({appState:{...t,exportBackground:n},commitToHistory:!1}),PanelComponent:({appState:e,updateData:t})=>f(Ig,{checked:e.exportBackground,onChange:n=>t(n),children:b("imageExportDialog.label.withBackground")})}),V8=ne({name:"changeExportEmbedScene",trackEvent:{category:"export",action:"embedScene"},perform:(e,t,n)=>({appState:{...t,exportEmbedScene:n},commitToHistory:!1}),PanelComponent:({appState:e,updateData:t})=>k(Ig,{checked:e.exportEmbedScene,onChange:n=>t(n),children:[b("imageExportDialog.label.embedScene"),f(ro,{label:b("imageExportDialog.tooltip.embedScene"),long:!0,children:f("div",{className:"excalidraw-tooltip-icon",children:BH})})]})}),q6=ne({name:"saveToActiveFile",trackEvent:{category:"export"},predicate:(e,t,n,r)=>!!r.props.UIOptions.canvasActions.saveToActiveFile&&!!t.fileHandle&&!t.viewModeEnabled,perform:async(e,t,n,r)=>{const i=!!t.fileHandle;try{const{fileHandle:o}=mE(t.fileHandle)?await nj(e,t,r.files,r.getName()):await eC(e,t,r.files,r.getName());return{commitToHistory:!1,appState:{...t,fileHandle:o,toast:i?{message:o!=null&&o.name?b("toast.fileSavedToFilename").replace("{filename}",`"${o.name}"`):b("toast.fileSaved")}:null}}}catch(o){return(o==null?void 0:o.name)!=="AbortError"?console.error(o):console.warn(o),{commitToHistory:!1}}},keyTest:e=>e.key===D.S&&e[D.CTRL_OR_CMD]&&!e.shiftKey}),G8=ne({name:"saveFileToDisk",viewMode:!0,trackEvent:{category:"export"},perform:async(e,t,n,r)=>{try{const{fileHandle:i}=await eC(e,{...t,fileHandle:null},r.files,r.getName());return{commitToHistory:!1,appState:{...t,openDialog:null,fileHandle:i,toast:{message:b("toast.fileSaved")}}}}catch(i){return(i==null?void 0:i.name)!=="AbortError"?console.error(i):console.warn(i),{commitToHistory:!1}}},keyTest:e=>e.key===D.S&&e.shiftKey&&e[D.CTRL_OR_CMD],PanelComponent:({updateData:e})=>f(Ce,{type:"button",icon:PH,title:b("buttons.saveAs"),"aria-label":b("buttons.saveAs"),showAriaLabel:gn().editor.isMobile,hidden:!Da,onClick:()=>e(null),"data-testid":"save-as-button"})}),fy=ne({name:"loadScene",trackEvent:{category:"export"},predicate:(e,t,n,r)=>!!r.props.UIOptions.canvasActions.loadScene&&!t.viewModeEnabled,perform:async(e,t,n,r)=>{try{const{elements:i,appState:o,files:s}=await kF(t,e);return{elements:i,appState:o,files:s,commitToHistory:!0}}catch(i){return(i==null?void 0:i.name)==="AbortError"?(console.warn(i),!1):{elements:e,appState:{...t,errorMessage:i.message},files:r.files,commitToHistory:!1}}},keyTest:e=>e[D.CTRL_OR_CMD]&&e.key===D.O}),sj=ne({name:"exportWithDarkMode",trackEvent:{category:"export",action:"toggleTheme"},perform:(e,t,n)=>({appState:{...t,exportWithDarkMode:n},commitToHistory:!1}),PanelComponent:({appState:e,updateData:t})=>f("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"-45px",marginBottom:"10px"},children:f(tj,{value:e.exportWithDarkMode?Tt.DARK:Tt.LIGHT,onChange:n=>{t(n===Tt.DARK)},title:b("imageExportDialog.label.darkMode")})})});let j8="{}";const aj=ne({name:"copyStyles",trackEvent:{category:"element"},perform:(e,t,n,r)=>{const i=[],o=e.find(s=>t.selectedElementIds[s.id]);if(i.push(o),o&&ls(o)){const s=ke(o,r.scene.getNonDeletedElementsMap());i.push(s)}return o&&(j8=JSON.stringify(i)),{appState:{..
Line truncated
|
|
||||||
|
|
||||||
`);try{Fa(o)}catch{throw new Error(b("errors.copyToSystemClipboardFailed"))}return{commitToHistory:!1}},predicate:(e,t,n,r)=>ME&&r.scene.getSelectedElements({selectedElementIds:t.selectedElementIds,includeBoundTextElement:!0}).some(ce),contextItemLabel:"labels.copyText"}),o4=ne({name:"gridMode",viewMode:!0,trackEvent:{category:"canvas",predicate:e=>!e.gridSize},perform(e,t){return{appState:{...t,gridSize:this.checked(t)?null:Cl,objectsSnapModeEnabled:!1},commitToHistory:!1}},checked:e=>e.gridSize!==null,predicate:(e,t,n)=>typeof n.gridModeEnabled>"u",contextItemLabel:"labels.showGrid",keyTest:e=>e[D.CTRL_OR_CMD]&&e.code===De.QUOTE}),my=ne({name:"zenMode",viewMode:!0,trackEvent:{category:"canvas",predicate:e=>!e.zenModeEnabled},perform(e,t){return{appState:{...t,zenModeEnabled:!this.checked(t)},commitToHistory:!1}},checked:e=>e.zenModeEnabled,predicate:(e,t,n)=>typeof n.zenModeEnabled>"u",contextItemLabel:"buttons.zenMode",keyTest:e=>!e[D.CTRL_OR_CMD]&&e.altKey&&e.code===De.Z}),_j=ne({name:"objectsSnapMode",viewMode:!0,trackEvent:{category:"canvas",predicate:e=>!e.objectsSnapModeEnabled},perform(e,t){return{appState:{...t,objectsSnapModeEnabled:!this.checked(t),gridSize:null},commitToHistory:!1}},checked:e=>e.objectsSnapModeEnabled,predicate:(e,t,n)=>typeof n.objectsSnapModeEnabled>"u",contextItemLabel:"buttons.objectsSnapMode",keyTest:e=>!e[D.CTRL_OR_CMD]&&e.altKey&&e.code===De.S}),e1=ne({name:"stats",viewMode:!0,trackEvent:{category:"menu"},perform(e,t){return{appState:{...t,showStats:!this.checked(t)},commitToHistory:!1}},checked:e=>e.showStats,contextItemLabel:"stats.title",keyTest:e=>!e[D.CTRL_OR_CMD]&&e.altKey&&e.code===De.SLASH}),xj=ne({name:"unbindText",contextItemLabel:"labels.unbindText",trackEvent:{category:"element"},predicate:(e,t,n,r)=>r.scene.getSelectedElements(t).some(o=>ls(o)),perform:(e,t,n,r)=>{const i=r.scene.getSelectedElements(t),o=r.scene.getNonDeletedElementsMap();return i.forEach(s=>{var l;const a=ke(s,o);if(a){const{width:c,height:u}=ds(a.originalText,Bt(a),a.lineHeight),d=ZO(s.id);SI(s.id);const{x:h,y:m}=Y1(s,a,o);J(a,{containerId:null,width:c,height:u,text:a.originalText,x:h,y:m}),J(s,{boundElements:(l=s.boundElements)==null?void 0:l.filter(g=>g.id!==a.id),height:d||s.height})}}),{elements:e,appState:t,commitToHistory:!0}}}),Sj=ne({name:"bindText",contextItemLabel:"labels.bindText",trackEvent:{category:"element"},predicate:(e,t,n,r)=>{const i=r.scene.getSelectedElements(t);if(i.length===2){const o=ce(i[0])||ce(i[1]);let s;if(ia(i[0])?s=i[0]:ia(i[1])&&(s=i[1]),o&&s&&ke(s,r.scene.getNonDeletedElementsMap())===null)return!0}return!1},perform:(e,t,n,r)=>{const i=r.scene.getSelectedElements(t);let o,s;ce(i[0])&&ia(i[1])?(o=i[0],s=i[1]):(o=i[1],s=i[0]),J(o,{containerId:s.id,verticalAlign:Qn.MIDDLE,textAlign:hd.CENTER}),J(s,{boundElements:(s.boundElements||[]).concat({type:"text",id:o.id})});const a=s.height;return Mi(o,s,r.scene.getNonDeletedElementsMap()),Om(s.id,a),{elements:kj(e,s,o),appState:{...t,selectedElementIds:{[s.id]:!0}},commitToHistory:!0}}}),kj=(e,t,n)=>{const r=e.slice(),i=r.findIndex(s=>s.id===n.id);r.splice(i,1);const o=r.findIndex(s=>s.id===t.id);return r.splice(o+1,0,n),r},Ij=(e,t,n)=>{const r=e.slice(),i=r.findIndex(s=>s.id===t.id);r.splice(i,1);const o=r.findIndex(s=>s.id===n.id);return r.splice(o,0,t),r},Cj=ne({name:"wrapTextInContainer",contextItemLabel:"labels.createContainerFromText",trackEvent:{category:"element"},predicate:(e,t,n,r)=>{const i=r.scene.getSelectedElements(t),o=i.every(s=>ce(s));return i.length>0&&o},perform:(e,t,n,r)=>{var a;const i=r.scene.getSelectedElements(t);let o=e.slice();const s={};for(const l of i)if(ce(l)){const c=hs({type:"rectangle",backgroundColor:t.currentItemBackgroundColor,boundElements:[...l.boundElements||[],{id:l.id,type:"text"}],angle:l.angle,fillStyle:t.currentItemFillStyle,strokeColor:t.currentItemStrokeColor,roughness:t.currentItemRoughness,strokeWidth:t.currentItemStrokeWidth,strokeStyle:t.currentItemStrokeStyle,roundness:t.currentItemRoundness==="round"?{type:uc("rectangle")?Vt.ADAPTIVE_RADIUS:Vt.PROPORTIONAL_RADIUS}:null,opacity:100,locked:!1,x:l.x-Nt,y:l.y-Nt,width:Ea(l.width,"rectangle"),height:Ea(l.height,"rectangle"),groupIds:l.groupIds,frameId:l.frameId});if((a=l.boundElements)!=null&&a.length){const u=l.boundElements.filter(h=>h.type==="arrow").map(h=>h.id);o.filter(h=>u.includes(h.id)).forEach(h=>{let m=h.startBinding,g=h.endBinding;(m==null?void 0:m.elementId)===l.id&&(m={...m,elementId:c.id}),(g==null?void 0:g.elementId)===l.id&&(g={...g,elementId:c.id}),(m||g)&&J(h,{startBinding:m,endBinding:g},!1)})}J(l,{containerId:c.id,verticalAlign:Qn.MIDDLE,boundElements:null,textAlign:hd.CENTER},!1),Mi(l,c,r.scene.getNonDeletedElementsMap()),o=Ij([...o,c],c,l),s[c.id]=!0}return{elements:o,appState:{...t,selectedElementIds:s},commitToHistory:!0}}}),JE=320,q8=85,gy=5,Tj=42,Mj=500;let py=!1;const tf=new Map,Aj=({element:e,elementsMap:t,setAppState:n,onLinkOpen:r,setToast:i,updateEmbedValidationStatus:o})=>{const s=kw(),a=
Line truncated
|
|
||||||
* @license React
|
|
||||||
* use-sync-external-store-shim.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/var Jl=_;function sY(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var aY=typeof Object.is=="function"?Object.is:sY,lY=Jl.useState,cY=Jl.useEffect,uY=Jl.useLayoutEffect,dY=Jl.useDebugValue;function hY(e,t){var n=t(),r=lY({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return uY(function(){i.value=n,i.getSnapshot=t,Xp(i)&&o({inst:i})},[e,n,t]),cY(function(){return Xp(i)&&o({inst:i}),e(function(){Xp(i)&&o({inst:i})})},[e]),dY(n),n}function Xp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!aY(e,n)}catch{return!0}}function fY(e,t){return t()}var mY=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?fY:hY;v7.useSyncExternalStore=Jl.useSyncExternalStore!==void 0?Jl.useSyncExternalStore:mY;y7.exports=v7;var gY=y7.exports;/**
|
|
||||||
* @license React
|
|
||||||
* use-sync-external-store-shim/with-selector.production.min.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/var Tg=_,pY=gY;function yY(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vY=typeof Object.is=="function"?Object.is:yY,EY=pY.useSyncExternalStore,wY=Tg.useRef,bY=Tg.useEffect,_Y=Tg.useMemo,xY=Tg.useDebugValue;p7.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=wY(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=_Y(function(){function l(m){if(!c){if(c=!0,u=m,m=r(m),i!==void 0&&s.hasValue){var g=s.value;if(i(g,m))return d=g}return d=m}if(g=d,vY(u,m))return g;var p=r(m);return i!==void 0&&i(g,p)?g:(u=m,d=p)}var c=!1,u,d,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,i]);var a=EY(e,o[0],o[1]);return bY(function(){s.hasValue=!0,s.value=a},[a]),xY(a),a};g7.exports=p7;var SY=g7.exports;const kY=rc(SY);var E7={VITE_APP_BACKEND_V2_GET_URL:"https://json.excalidraw.com/api/v2/",VITE_APP_BACKEND_V2_POST_URL:"https://json.excalidraw.com/api/v2/post/",VITE_APP_LIBRARY_URL:"https://libraries.excalidraw.com",VITE_APP_LIBRARY_BACKEND:"https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries",VITE_APP_PLUS_LP:"https://plus.excalidraw.com",VITE_APP_PLUS_APP:"https://app.excalidraw.com",VITE_APP_AI_BACKEND:"https://oss-ai.excalidraw.com",VITE_APP_WS_SERVER_URL:"https://oss-collab.excalidraw.com",VITE_APP_FIREBASE_CONFIG:'{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}',VITE_APP_DISABLE_TRACKING:"",VITE_APP_GIT_SHA:"",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:IY}=te,{useSyncExternalStoreWithSelector:CY}=kY;let m4=!1;function TY(e,t=e.getState,n){(E7?"production":void 0)!=="production"&&n&&!m4&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),m4=!0);const r=CY(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return IY(r),r}const g4=e=>{(E7?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?oY(e):e,n=(r,i)=>TY(t,r,i);return Object.assign(n,t),n},MY=e=>e?g4(e):g4;var p4,y4;const v4=typeof window<"u"&&((p4=window.document)!=null&&p4.createElement||((y4=window.navigator)==null?void 0:y4.product)==="ReactNative")?te.useLayoutEffect:te.useEffect;function ci(){const e=MY(t=>({current:new Array,version:0,set:t}));return{In:({children:t})=>{const n=e(i=>i.set),r=e(i=>i.version);return v4(()=>{n(i=>({version:i.version+1}))},[]),v4(()=>(n(({current:i})=>({current:[...i,t]})),()=>n(({current:i})=>({current:i.filter(o=>o!==t)}))),[t,r]),null},Out:()=>{const t=e(n=>n.current);return te.createElement(te.Fragment,null,t)}}}const w7=te.createContext(null),Tn=()=>te.useContext(w7),AY=()=>te.useMemo(()=>({MainMenuTunnel:ci(),WelcomeScreenMenuHintTunnel:ci(),WelcomeScreenToolbarHintTunnel:ci(),WelcomeScreenHelpHintTunnel:ci(),WelcomeScreenCenterTunnel:ci(),FooterCenterTunnel:ci(),DefaultSidebarTriggerTunnel:ci(),DefaultSidebarTabTriggersTunnel:ci(),OverwriteConfirmDialogTunnel:ci(),TTDDialogTriggerTunnel:ci(),jotaiScope:Symbol()}),[]),b7=({appState:e,elementsMap:t,renderAction:n})=>{var h;const r=FE(t,e);let i=!1;r.length===2&&(ls(r[0])||ls(r[1]))&&(i=!0);const o=!!e.editingElement,s=gn(),a=document.documentElement.getAttribute("dir")==="rtl",l=gl(e.activeTool.type)&&!Ei(e.currentItemBackgroundColor)||r.some(m=>gl(m.type)&&!Ei(m.backgroundColor)),c=gl(e.activeTool.type)||r.some(m=>gl(m.type)),u=r.length===1||i;let d=((h=r[0])==null?void 0:h.type)||null;for(const m of r)if(m.type!==d){d=null;break}return k("div",{className:"panelColumn",children:[f("div",{children:(M2(e.activeTool.type)&&e.activeTool.type!=="image"&&d!=="image"&&d!=="frame"&&d!=="magicframe"||r.some(m=>M2(m.type)))&&n("changeStrokeColor")}),c&&f("div",{children:n("changeBackgroundColor")}),l&&n("changeFillStyle"),(Mb(e.activeTool.type)||r.some(m=>Mb(m.type)))&&n("changeStrokeWidth"),(e.activeTool.type==="freedraw"||r.some(m=>m.type==="freedraw"))&&n("changeStrokeShape"),(Ab(e.activeTool.type)||r.some(m=>Ab(m.type)))&&k(re,{children:[n("changeStrokeStyle"),n("changeSloppiness")]}),(A2(e.activeTool.type)||r.some(m=>A2(m.type)))&&f(re,{children:n("changeRoundness")}),(e.activeTool.type==="text"||r.some(ce))&&k(re,{children:[n("changeFontSize"),n("changeFontFamily"),(e.activeTool.type==="text"||nN(r,t))&&n("changeTextAlign")]}),tN(r,t)&&n("changeVerticalAlign"),(Lm(e.activeTool.type)||r.some(m=>Lm(m.type)))&&f(re,{children:n("changeArrowheadLine truncated
|
|
||||||
A[Christmas] -->|Get money| B(Go shopping)
|
|
||||||
B --> C{Let me think}
|
|
||||||
C -->|One| D[Laptop]
|
|
||||||
C -->|Two| E[iPhone]
|
|
||||||
C -->|Three| F[Car]`,M4=fa(pw,300),NZ=({mermaidToExcalidrawLib:e})=>{const[t,n]=_.useState(()=>Si.get(qo.MERMAID_TO_EXCALIDRAW)||OZ),r=_.useDeferredValue(t.trim()),[i,o]=_.useState(null),s=_.useRef(null),a=_.useRef({elements:[],files:null}),l=xc();_.useEffect(()=>{_M({canvasRef:s,data:a,mermaidToExcalidrawLib:e,setError:o,mermaidDefinition:r}).catch(()=>{}),M4(r)},[r,e]),_.useEffect(()=>()=>{M4.flush()},[]);const c=()=>{xM({app:l,data:a,text:t,shouldSaveMermaidDataToStorage:!0})};return k(re,{children:[f("div",{className:"ttd-dialog-desc",children:f(On,{i18nKey:"mermaid.description",flowchartLink:u=>f("a",{href:"https://mermaid.js.org/syntax/flowchart.html",children:u}),sequenceLink:u=>f("a",{href:"https://mermaid.js.org/syntax/sequenceDiagram.html",children:u}),classLink:u=>f("a",{href:"https://mermaid.js.org/syntax/classDiagram.html",children:u})})}),k(SM,{children:[f(s1,{label:b("mermaid.syntax"),children:f(kM,{input:t,placeholder:"Write Mermaid diagram defintion here...",onChange:u=>n(u.target.value),onKeyboardSubmit:()=>{c()}})}),f(s1,{label:b("mermaid.preview"),panelAction:{action:()=>{c()},label:b("mermaid.button"),icon:Vf},renderSubmitShortcut:()=>f(CM,{}),children:f(IM,{canvasRef:s,loaded:e.loaded,error:i})})]})]})},TM=({children:e,...t})=>f(V7,{className:"ttd-dialog-triggers",...t,children:e});TM.displayName="TTDDialogTabTriggers";const _y=({children:e,tab:t,onSelect:n,...r})=>f(G7,{value:t,asChild:!0,onSelect:n,children:f("button",{type:"button",className:"ttd-dialog-tab-trigger",...r,children:e})});_y.displayName="TTDDialogTabTrigger";const n0=3,Za=1e3,FZ=mt(null),$Z=mt(null),MM=e=>{var n;const t=mn();return((n=t.openDialog)==null?void 0:n.name)!=="ttd"?null:f(BZ,{...e,tab:t.openDialog.tab})},BZ=uh("TTDDialogBase",({tab:e,...t})=>{const n=xc(),r=Mn(),i=_.useRef(null),[o,s]=ze($Z),[a,l]=_.useState((o==null?void 0:o.prompt)??""),c=a.trim(),u=S=>{l(S.target.value),s(I=>({generatedResponse:(I==null?void 0:I.generatedResponse)??null,prompt:S.target.value}))},[d,h]=_.useState(!1),[m,g]=ze(FZ),p=async()=>{if(c.length>Za||c.length<n0||d||(m==null?void 0:m.rateLimitRemaining)===0||"__fallback"in t){c.length<n0&&C(new Error(`Prompt is too short (min ${n0} characters)`)),c.length>Za&&C(new Error(`Prompt is too long (max ${Za} characters)`));return}try{h(!0),Ae("ai","generate","ttd");const{generatedResponse:S,error:I,rateLimit:T,rateLimitRemaining:L}=await t.onTextSubmit(c);if(typeof S=="string"&&s(A=>({generatedResponse:S,prompt:(A==null?void 0:A.prompt)??null})),kb(T)&&kb(L)&&g({rateLimit:T,rateLimitRemaining:L}),I){C(I);return}if(!S){C(new Error("Generation failed"));return}try{await _M({canvasRef:i,data:w,mermaidToExcalidrawLib:y,setError:C,mermaidDefinition:S}),Ae("ai","mermaid parse success","ttd")}catch(A){console.info(`%cTTD mermaid render errror: ${A.message}`,"color: red"),console.info(`>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|
|
||||||
TTD mermaid definition render errror: ${A.message}`,"color: yellow"),Ae("ai","mermaid parse failed","ttd"),C(new Error("Generated an invalid diagram :(. You may also try a different prompt."))}}catch(S){let I=S.message;(!I||I==="Failed to fetch")&&(I="Request failed"),C(new Error(I))}finally{h(!1)}},v=_.useRef(p);v.current=p;const[y,E]=_.useState({loaded:!1,api:ie(()=>import("./index-jpNTxDe4.js").then(S=>S.aN),__vite__mapDeps([]))});_.useEffect(()=>{(async()=>{await y.api,E(I=>({...I,loaded:!0}))})()},[y.api]);const w=_.useRef({elements:[],files:null}),[x,C]=_.useState(null);return f(Vn,{className:"ttd-dialog",onCloseRequest:()=>{n.setOpenDialog(null)},size:1200,title:!1,...t,autofocus:!1,children:k(sw,{dialog:"ttd",tab:e,children:["__fallback"in t&&t.__fallback?f("p",{className:"dialog-mermaid-title",children:b("mermaid.title")}):k(TM,{children:[f(_y,{tab:"text-to-diagram",children:k("div",{style:{display:"flex",alignItems:"center"},children:[b("labels.textToDiagram"),f("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:"1px 6px",marginLeft:"10px",fontSize:10,borderRadius:"12px",background:"pink",color:"#000"},children:"AI Beta"})]})}),f(_y,{tab:"mermaid",children:"Mermaid"})]}),f(o1,{className:"ttd-dialog-content",tab:"mermaid",children:f(NZ,{mermaidToExcalidrawLib:y})}),!("__fallback"in t)&&k(o1,{className:"ttd-dialog-content",tab:"text-to-diagram",children:[f("div",{className:"ttd-dialog-desc",children:"Currently we use Mermaid as a middle step, so you'll get best results if you describe a diagram, workflow, flow chart, and similar."}),k(SM,{children:[f(s1,{label:b("labels.prompt"),panelAction:{action:p,label:"Generate",icon:Vf},onTextSubmitInProgess:d,panelActionDisabled:c.length>Za||(m==null?void 0:m.rateLimitRemaining)===0,renderTopRight:()=>m?k("div",{className:"ttd-dialog-rate-limit",style:{fontSize:12,marginLeft:"auto",color:m.rateLimitRemaining===0?"var(--color-danger)":void 0},children:[m.rateLimitRemaining," requests left today"]}):null,renderSubmitShortcut:()=>f(CM,{}),renderBottomRight:()=>{if(typeof(o==null?void 0:o.generatedResponse)=="string")return k("div",{className:"excalidraw-link",style:{marginLeft:"auto",fontSize:14},onClick:()=>{typeof(o==null?void 0:o.generatedResponse)=="string"&&(pw(o.generatedResponse),r({openDialog:{name:"ttd",tab:"mermaid"}}))},children:["View as Mermaid",f(Zf,{icon:Vf})]});const S=c.length/Za;return S>.8?k("div",{style:{marginLeft:"auto",fontSize:12,fontFamily:"monospace",color:S>1?"var(--color-danger)":void 0},children:["Length: ",c.length,"/",Za]}):null},children:f(kM,{onChange:u,input:a,placeholder:"Describe what you want to see...",onKeyboardSubmit:()=>{v.current()}})}),f(s1,{label:"Preview",panelAction:{action:()=>{console.info("Panel action clicked"),xM({app:n,data:w})},label:"Insert",icon:Vf},children:f(IM,{canvasRef:i,error:x,loaded:y.loaded})})]})]})]})})}),zZ=({UIOptions:e})=>k(Ne,{__fallback:!0,children:[f(Ne.DefaultItems.LoadScene,{}),f(Ne.DefaultItems.SaveToActiveFile,{}),e.canvasActions.export&&f(Ne.DefaultItems.Export,{}),e.canvasActions.saveAsImage&&f(Ne.DefaultItems.SaveAsImage,{}),f(Ne.DefaultItems.Help,{}),f(Ne.DefaultItems.ClearCanvas,{}),f(Ne.Separator,{}),f(Ne.Group,{title:"Excalidraw links",children:f(Ne.DefaultItems.Socials,{})}),f(Ne.Separator,{}),f(Ne.DefaultItems.ToggleTheme,{}),f(Ne.DefaultItems.ChangeCanvasBackground,{})]}),HZ=()=>k(Js,{__fallback:!0,children:[f(Js.Actions.SaveToDisk,{}),f(Js.Actions.ExportToImage,{})]}),UZ=({actionManager:e,appState:t,files:n,setAppState:r,elements:i,canvas:o,onLockToggle:s,onHandToolToggle:a,onPenModeToggle:l,showExitZenModeBtn:c,renderTopRightUI:u,renderCustomStats:d,UIOptions:h,onExportImage:m,renderWelcomeScreen:g,children:p,app:v,isCollaborating:y,openAIKey:E,isOpenAIKeyPersisted:w,onOpenAIAPIKeyChange:x,onMagicSettingsConfirm:C})=>{var $,Y,R;const S=gn(),I=AY(),[T,L]=ze(_g,en),A=()=>h.canvasActions.export?f(iK,{elements:i,appState:t,files:n,actionManager:e,exportOpts:h.canvasActions.export,canvas:o,setAppState:r}):null,F=()=>{var N;return!h.canvasActions.saveAsImage||((N=t.openDialog)==null?void 0:N.name)!=="imageExport"?null:f(BY,{elements:i,appState:t,files:n,actionManager:e,onExportImage:m,onCloseRequest:()=>r({openDialog:null}),name:v.getName()})},P=()=>k("div",{style:{position:"relative"},children:[f(I.MainMenuTunnel.Out,{}),g&&f(I.WelcomeScreenMenuHintTunnel.Out,{})]}),O=()=>f(Nd,{heading:"selectedShapeActions",className:se("selected-shape-actions zen-mode-transition",{"transition-left":t.zenModeEnabled}),children:f(Yr,{className:zS.SHAPE_ACTIONS_MENU,padding:2,style:{maxHeight:`${t.height-166}px`},children:f(b7,{appState:t,elementsMap:v.scene.getNonDeletedElementsMap(),renderAction:e.renderAction})})}),V=()=>{var B,z;const N=DE(t,i);return f(x7,{side:"top",children:k("div",{className:"App-menu App-menu_top",children:[k(gr.Col,{gap:6,className:se("App-menu_top__left"),children:[P(),N&&O()]}),!t.viewModeEnabled&&f(Nd,{heading:"shapes",className:"shapes-s
Line truncated
|
|
||||||
Your role is to transform low-fidelity wireframes into working front-end HTML code.
|
|
||||||
|
|
||||||
YOU MUST FOLLOW FOLLOWING RULES:
|
|
||||||
|
|
||||||
- Use HTML, CSS, JavaScript to build a responsive, accessible, polished prototype
|
|
||||||
- Leverage Tailwind for styling and layout (import as script <script src="https://cdn.tailwindcss.com"><\/script>)
|
|
||||||
- Inline JavaScript when needed
|
|
||||||
- Fetch dependencies from CDNs when needed (using unpkg or skypack)
|
|
||||||
- Source images from Unsplash or create applicable placeholders
|
|
||||||
- Interpret annotations as intended vs literal UI
|
|
||||||
- Fill gaps using your expertise in UX and business logic
|
|
||||||
- generate primarily for desktop UI, but make it responsive.
|
|
||||||
- Use grid and flexbox wherever applicable.
|
|
||||||
- Convert the wireframe in its entirety, don't omit elements if possible.
|
|
||||||
|
|
||||||
If the wireframes, diagrams, or text is unclear or unreadable, refer to provided text for clarification.
|
|
||||||
|
|
||||||
Your goal is a production-ready prototype that brings the wireframes to life.
|
|
||||||
|
|
||||||
Please output JUST THE HTML file containing your best attempt at implementing the provided wireframes.`;async function PX({image:e,apiKey:t,text:n,theme:r="light"}){const i={model:"gpt-4-vision-preview",max_tokens:4096,temperature:.1,messages:[{role:"system",content:LX},{role:"user",content:[{type:"image_url",image_url:{url:e,detail:"high"}},{type:"text",text:`Above is the reference wireframe. Please make a new website based on these and return just the HTML file. Also, please make it for the ${r} theme. What follows are the wireframe's text annotations (if any)...`},{type:"text",text:n}]}]};let o;const s=await fetch("https://api.openai.com/v1/chat/completions",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify(i)});return s.ok?o={...await s.json(),ok:!0}:o={...await s.json(),ok:!1},o}const RX="small",o0=e=>k("label",{className:se("ToolIcon ToolIcon__MagicButton",`ToolIcon_size_${RX}`,{"is-mobile":e.isMobile}),title:`${e.title}`,children:[f("input",{className:"ToolIcon_type_checkbox",type:"checkbox",name:e.name,onChange:e.onChange,checked:e.checked,"aria-label":e.title}),f("div",{className:"ToolIcon__icon",children:e.icon})]}),DX=({height:e,width:t,userToFollow:n,onDisconnect:r})=>f("div",{className:"follow-mode",style:{width:t,height:e},children:k("div",{className:"follow-mode__badge",children:[k("div",{className:"follow-mode__badge__label",children:["Following"," ",f("span",{className:"follow-mode__badge__username",title:n.username,children:n.username})]}),f("button",{onClick:r,className:"follow-mode__disconnect-btn",children:yc})]})});class OX{constructor(){M(this,"targets",new WeakMap);M(this,"rafIds",new WeakMap)}register(t,n){this.targets.set(t,{callback:n,stopped:!0})}start(t){const n=this.targets.get(t);n&&(this.rafIds.has(t)||(this.targets.set(t,{...n,stopped:!1}),this.scheduleFrame(t)))}stop(t){const n=this.targets.get(t);n&&!n.stopped&&this.targets.set(t,{...n,stopped:!0}),this.cancelFrame(t)}constructFrame(t){return n=>{const r=this.targets.get(t);if(!r)return;const i=this.onFrame(r,n);!r.stopped&&!i?this.scheduleFrame(t):this.cancelFrame(t)}}scheduleFrame(t){const n=requestAnimationFrame(this.constructFrame(t));this.rafIds.set(t,n)}cancelFrame(t){if(this.rafIds.has(t)){const n=this.rafIds.get(t);cancelAnimationFrame(n)}this.rafIds.delete(t)}onFrame(t,n){return t.callback(n)??!1}}function NX(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var FX={};NX(FX,"LaserPointer",()=>l1);function pt([e,t,n],[r,i,o]){return[e+r,t+i,n+o]}function mu([e,t,n],[r,i,o]){return[e-r,t-i,n-o]}function St([e,t,n],r){return[e*r,t*r,n*r]}function Xa([e,t,n]){return[e/Math.sqrt(e**2+t**2),t/Math.sqrt(e**2+t**2),n]}function on([e,t,n],r){return[Math.cos(r)*e-Math.sin(r)*t,Math.sin(r)*e+Math.cos(r)*t,n]}function $X(e,t,n){return pt(e,St(mu(t,e),n))}function U4(e,t,n){return Math.atan2(n[1]-e[1],n[0]-e[0])-Math.atan2(t[1]-e[1],t[0]-e[0])}function W4(e){return Math.atan2(Math.sin(e),Math.cos(e))}function V4([e,t]){return Math.sqrt(e**2+t**2)}function Ol([e,t],[n,r]){return Math.sqrt((n-e)**2+(r-t)**2)}function BX(e){if(e.length<2)return 0;let t=0;for(let n=1;n<=e.length-1;n++)t+=Ol(e[n-1],e[n]);return t+=Ol(e[e.length-2],e[e.length-1]),t}const zX=(e,t,n)=>Math.max(t,Math.min(n,e));function HX(e,t,n){const r=Ol(t,n);if(r===0)return Ol(e,t);const i=zX(((e[0]-t[0])*(n[0]-t[0])+(e[1]-t[1])*(n[1]-t[1]))/r**2,0,1),o=[t[0]+i*(n[0]-t[0]),t[1]+i*(n[1]-t[1]),e[2]];return Ol(o,e)}function a1(e,t){if(t===0||e.length<=2)return e;const n=e[0],r=e[e.length-1],[i,o]=e.reduce(([s,a],l,c)=>{const u=HX(l,n,r);return u>s?[u,c]:[s,a]},[0,-1]);if(i>=t){const s=e[o];return[...a1([n,...e.slice(1,o),s],t).slice(0,-1),s,...a1([s,...e.slice(o,-1),r],t).slice(1)]}else return[n,r]}const xo=class xo{constructor(t){this.originalPoints=[],this.stablePoints=[],this.tailPoints=[],this.isFresh=!0,this.options=Object.assign({},xo.defaults,t)}get lastPoint(){return this.tailPoints[this.tailPoints.length-1]??this.stablePoints[this.stablePoints.length-1]}addPoint(t){const n=this.originalPoints[this.originalPoints.length-1];if(!(n&&n[0]===t[0]&&n[1]===t[1])){if(this.originalPoints.push(t),this.isFresh){this.isFresh=!1,this.stablePoints.push(t);return}this.options.streamline>0&&(t=$X(this.lastPoint,t,1-this.options.streamline)),this.tailPoints.push(t),BX(this.tailPoints)>xo.constants.maxTailLength&&this.stabilizeTail()}}close(){this.stabilizeTail()}stabilizeTail(){if(this.options.simplify>0&&this.options.simplifyPhase=="tail")throw new Error("Not implemented yet");this.stablePoints.push(...this.tailPoints),this.tailPoints=[]}getSize(t,n,r,i,o){return(t??this.options.size)*this.options.sizeMapping({pressure:n,runningLength:o,currentIndex:r,totalLength:i})}getStrokeOutline(t){if(this.isFresh)return[];let n=[...this.stablePoints,...this.tailPoints];this.options.simplify>0&&this.options.simplifyPhase==="input"&&(n=a1(n,this.options.simplify));const r=n.length;if(r===0)return[];if
Line truncated
|
|
||||||
`).reduce((U,$,Y,R)=>U.concat(Y?U[Y-1]+R[Y-1].length+1:P),[]).reverse()},w=P=>{P.preventDefault(),P.stopPropagation()};let x=!1;const C=()=>{var G,q;S();const P=(G=$t.getScene(i))==null?void 0:G.getElement(i.id);if(!P)return;let O=u.value;const V=kn(P,a.scene.getNonDeletedElementsMap());if(V){if(O=P.text,u.value.trim()){const U=va(V);!U||U!==i.id?J(V,{boundElements:(V.boundElements||[]).concat({type:"text",id:i.id})}):Ge(V)&&pc(V)}else J(V,{boundElements:(q=V.boundElements)==null?void 0:q.filter(U=>!ce(U))});Mi(P,V,a.scene.getNonDeletedElementsMap())}n({text:O,viaKeyboard:x,originalText:u.value})},S=()=>{A||(A=!0,u.onblur=null,u.oninput=null,u.onkeydown=null,F&&F.disconnect(),window.removeEventListener("resize",c),window.removeEventListener("wheel",w,!0),window.removeEventListener("pointerdown",T),window.removeEventListener("pointerup",I),window.removeEventListener("blur",C),window.removeEventListener("beforeunload",C),L(),u.remove())},I=P=>{window.removeEventListener("pointerup",I);const O=P==null?void 0:P.target,V=O instanceof HTMLElement&&O.classList.contains("active-color");setTimeout(()=>{if(u.onblur=C,V){const G=(U,$)=>{U.find(R=>{var N;return R.removedNodes.length>0&&((N=R.removedNodes[0].dataset)==null?void 0:N.radixPopperContentWrapper)!==void 0})&&(setTimeout(()=>{u.focus()}),$.disconnect())};new MutationObserver(G).observe(document.querySelector(".excalidraw-container"),{childList:!0})}V||u.focus()})},T=P=>{const O=P.target instanceof HTMLElement&&P.target.classList.contains("active-color");((P.target instanceof HTMLElement||P.target instanceof SVGElement)&&P.target.closest(`.${zS.SHAPE_ACTIONS_MENU}`)&&!Ns(P.target)||O)&&(u.onblur=null,window.addEventListener("pointerup",I),window.addEventListener("blur",C))},L=$t.getScene(i).addCallback(()=>{var O;c(),!!((O=document.activeElement)!=null&&O.closest(".color-picker-content"))||u.focus()});let A=!1;u.select(),I();let F=null;o&&"ResizeObserver"in window?(F=new window.ResizeObserver(()=>{c()}),F.observe(o)):window.addEventListener("resize",c),window.addEventListener("pointerdown",T),window.addEventListener("wheel",w,{passive:!1,capture:!0}),window.addEventListener("beforeunload",C),s==null||s.querySelector(".excalidraw-textEditorContainer").appendChild(u)},FM=te.createContext(null),$M=te.createContext(null),BM={viewport:{isMobile:!1,isLandscape:!1},editor:{isMobile:!1,canFitSidebar:!1},isTouchScreen:!1},vw=te.createContext(BM);vw.displayName="DeviceContext";const Ew=te.createContext({container:null,id:null});Ew.displayName="ExcalidrawContainerContext";const ww=te.createContext([]);ww.displayName="ExcalidrawElementsContext";const bw=te.createContext({...qr(),width:0,height:0,offsetLeft:0,offsetTop:0});bw.displayName="ExcalidrawAppStateContext";const _w=te.createContext(()=>{console.warn("Uninitialized ExcalidrawSetAppStateContext context!")});_w.displayName="ExcalidrawSetAppStateContext";const xw=te.createContext(null);xw.displayName="ExcalidrawActionManagerContext";const xc=()=>_.useContext(FM),Sw=()=>_.useContext($M),gn=()=>_.useContext(vw),uo=()=>_.useContext(Ew),Ag=()=>_.useContext(ww),kw=()=>_.useContext(bw),Mn=()=>_.useContext(_w),Cr=()=>_.useContext(xw);let Zc=!1,s0=0,Ss=!1,Xc=!1,a0=!1,l0={horizontal:null,vertical:null},mo=0,qc=!1;const c0=new Map;let sf=!1,G4=0,j4=!1,ks=null;const Pe={pointers:new Map,lastCenter:null,initialDistance:null,initialScale:null};class Iw extends te.Component{constructor(n){super(n);M(this,"canvas");M(this,"interactiveCanvas",null);M(this,"rc");M(this,"unmounted",!1);M(this,"actionManager");M(this,"device",BM);M(this,"excalidrawContainerRef",te.createRef());M(this,"scene");M(this,"renderer");M(this,"fonts");M(this,"resizeObserver");M(this,"nearestScrollableContainer");M(this,"library");M(this,"libraryItemsFromStorage");M(this,"id");M(this,"history");M(this,"excalidrawContainerValue");M(this,"files",{});M(this,"imageCache",new Map);M(this,"iFrameRefs",new Map);M(this,"embedsValidationStatus",new Map);M(this,"initializedEmbeds",new Set);M(this,"elementsPendingErasure",new Set);M(this,"hitLinkElement");M(this,"lastPointerDownEvent",null);M(this,"lastPointerUpEvent",null);M(this,"lastPointerMoveEvent",null);M(this,"lastViewportPosition",{x:0,y:0});M(this,"animationFrameHandler",new OX);M(this,"laserTrails",new UX(this.animationFrameHandler,this));M(this,"eraserTrail",new ky(this.animationFrameHandler,this,{streamline:.2,size:5,keepHead:!0,sizeMapping:n=>{const o=Math.max(0,1-(performance.now()-n.pressure)/200),s=(10-Math.min(10,n.totalLength-n.currentIndex))/10;return Math.min(ra(s),ra(o))},fill:()=>this.state.theme===Tt.LIGHT?"rgba(0, 0, 0, 0.2)":"rgba(255, 255, 255, 0.2)"}));M(this,"onChangeEmitter",new yo);M(this,"onPointerDownEmitter",new yo);M(this,"onPointerUpEmitter",new yo);M(this,"onUserFollowEmitter",new yo);M(this,"onScrollChangeEmitter",new yo);M(this,"missingPointerEventCleanupEmitter",new yo);M(this,"onRemoveEventListenersEmitter",new yo);M(this,"updateEmbedValidationStatus",(n,r)=>{this.embedsValidationSt
Line truncated
|
|
||||||
<style>
|
|
||||||
html, body {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
color: ${this.state.theme==="dark"?"white":"black"};
|
|
||||||
}
|
|
||||||
body {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
flex-direction: column;
|
|
||||||
gap: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Spinner {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Spinner svg {
|
|
||||||
animation: rotate 1.6s linear infinite;
|
|
||||||
transform-origin: center center;
|
|
||||||
width: 40px;
|
|
||||||
height: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Spinner circle {
|
|
||||||
stroke: currentColor;
|
|
||||||
animation: dash 1.6s linear 0s infinite;
|
|
||||||
stroke-linecap: round;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes rotate {
|
|
||||||
100% {
|
|
||||||
transform: rotate(360deg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes dash {
|
|
||||||
0% {
|
|
||||||
stroke-dasharray: 1, 300;
|
|
||||||
stroke-dashoffset: 0;
|
|
||||||
}
|
|
||||||
50% {
|
|
||||||
stroke-dasharray: 150, 300;
|
|
||||||
stroke-dashoffset: -200;
|
|
||||||
}
|
|
||||||
100% {
|
|
||||||
stroke-dasharray: 1, 300;
|
|
||||||
stroke-dashoffset: -280;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<div class="Spinner">
|
|
||||||
<svg
|
|
||||||
viewBox="0 0 100 100"
|
|
||||||
>
|
|
||||||
<circle
|
|
||||||
cx="50"
|
|
||||||
cy="50"
|
|
||||||
r="46"
|
|
||||||
stroke-width="8"
|
|
||||||
fill="none"
|
|
||||||
stroke-miter-limit="10"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
<div>Generating...</div>
|
|
||||||
`)};else{let I;S.code==="ERR_GENERATION_INTERRUPTED"?I="Generation was interrupted...":I=S.message||"Generation failed",h={intrinsicSize:{w:s.width,h:s.height},type:"document",srcdoc:()=>pl(`
|
|
||||||
<style>
|
|
||||||
html, body {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
body {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
color: ${ve.red[3]};
|
|
||||||
}
|
|
||||||
h1, h3 {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0.5rem;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<h1>Error!</h1>
|
|
||||||
<h3>${I}</h3>
|
|
||||||
`)}}}else h=yl(BI(s.link||""));const m=((v=this.state.activeEmbeddable)==null?void 0:v.element)===s&&((y=this.state.activeEmbeddable)==null?void 0:y.state)==="active",g=((E=this.state.activeEmbeddable)==null?void 0:E.element)===s&&((w=this.state.activeEmbeddable)==null?void 0:w.state)==="hover";return f("div",{className:se("excalidraw__embeddable-container",{"is-hovered":g}),style:{transform:c?`translate(${a-this.state.offsetLeft}px, ${l-this.state.offsetTop}px) scale(${n})`:"none",display:c?"block":"none",opacity:DT(s,rr(s,this.scene.getNonDeletedElementsMap()),this.elementsPendingErasure),"--embeddable-radius":`${oa(Math.min(s.width,s.height),s)}px`},children:k("div",{className:"excalidraw__embeddable-container__inner",style:{width:c?`${s.width}px`:0,height:c?`${s.height}px`:0,transform:c?`rotate(${s.angle}rad)`:"none",pointerEvents:m?Ms.enabled:Ms.disabled},children:[g&&f("div",{className:"excalidraw__embeddable-hint",children:b("buttons.embeddableInteractionButton")}),f("div",{className:"excalidraw__embeddable__outer",style:{padding:`${s.strokeWidth}px`},children:(bn(s)?(C=(x=this.props).renderEmbeddable)==null?void 0:C.call(x,s,this.state):null)??f("iframe",{ref:S=>this.cacheEmbeddableRef(s,S),className:"excalidraw__embeddable",srcDoc:(h==null?void 0:h.type)==="document"?h.srcdoc(this.state.theme):void 0,src:(h==null?void 0:h.type)!=="document"?(h==null?void 0:h.link)??"":void 0,scrolling:"no",referrerPolicy:"no-referrer-when-downgrade",title:"Excalidraw Embedded Content",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0,sandbox:"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-presentation allow-downloads"})})]})},s.id)})})}toggleOverscrollBehavior(n){document.documentElement.style.overscrollBehaviorX=n.type==="pointerenter"?"none":"auto"}render(){var d,h,m,g,p;const n=this.scene.getSelectedElements(this.state),{renderTopRightUI:r,renderCustomStats:i}=this.props,o=this.scene.getVersionNonce(),{elementsMap:s,visibleElements:a}=this.renderer.getRenderableElements({versionNonce:o,zoom:this.state.zoom,offsetLeft:this.state.offsetLeft,offsetTop:this.state.offsetTop,scrollX:this.state.scrollX,scrollY:this.state.scrollY,height:this.state.height,width:this.state.width,editingElement:this.state.editingElement,pendingImageElementId:this.state.pendingImageElementId}),l=this.scene.getNonDeletedElementsMap(),c=!(this.state.editingElement&&we(this.state.editingElement))&&(this.state.selectionElement||this.state.draggingElement||this.state.resizingElement||this.state.activeTool.type==="laser"&&this.state.cursorButton==="down"||this.state.editingElement&&!ce(this.state.editingElement)),u=n[0];return f("div",{className:se("excalidraw excalidraw-container",{"excalidraw--view-mode":this.state.viewModeEnabled,"excalidraw--mobile":this.device.editor.isMobile}),style:{"--ui-pointerEvents":c?Ms.disabled:Ms.enabled},ref:this.excalidrawContainerRef,onDrop:this.handleAppOnDrop,tabIndex:0,onKeyDown:this.props.handleKeyboardGlobally?void 0:this.onKeyDown,onPointerEnter:this.toggleOverscrollBehavior,onPointerLeave:this.toggleOverscrollBehavior,children:f(FM.Provider,{value:this,children:f($M.Provider,{value:this.props,children:f(Ew.Provider,{value:this.excalidrawContainerValue,children:f(vw.Provider,{value:this.device,children:f(_w.Provider,{value:this.setAppState,children:f(bw.Provider,{value:this.state,children:k(ww.Provider,{value:this.scene.getNonDeletedElements(),children:[k(xw.Provider,{value:this.actionManager,children:[f(VZ,{canvas:this.canvas,appState:this.state,files:this.files,setAppState:this.setAppState,actionManager:this.actionManager,elements:this.scene.getNonDeletedElements(),onLockToggle:this.toggleLock,onPenModeToggle:this.togglePenMode,onHandToolToggle:this.onHandToolToggle,langCode:Yd().code,renderTopRightUI:r,renderCustomStats:i,showExitZenModeBtn:typeof((d=this.props)==null?void 0:d.zenModeEnabled)>"u"&&this.state.zenModeEnabled,UIOptions:this.props.UIOptions,onExportImage:this.onExportImage,renderWelcomeScreen:!this.state.isLoading&&this.state.showWelcomeScreen&&this.state.activeTool.type==="selection"&&!this.state.zenModeEnabled&&!this.scene.getElementsIncludingDeleted().length,app:this,isCollaborating:this.props.isCollaborating,openAIKey:this.OPENAI_KEY,isOpenAIKeyPersisted:this.OPENAI_KEY_IS_PERSISTED,onOpenAIAPIKeyChange:this.onOpenAIKeyChange,onMagicSettingsConfirm:this.onMagicSettingsConfirm,children:this.props.children}),f("div",{className:"excalidraw-textEditorContainer"}),f("div",{className:"excalidraw-contextMenuContainer"}),f("div",{className:"excalidraw-eye-dropper-container"}),f(TX,{trails:[this.laserTrails,this.eraserTrail]}),n.length===1&&this.state.showHyperlinkPopup&&f(Aj,{element:u,elementsMap:l,setAppState:this.setAppState,onLinkOpen:this.props.onLinkOpen,setToast:this.setToast,updateEmbedValidationStatus:this.updateEmbedValidationStatus},u.id),this.props.aiEna
Line truncated
|
|
||||||
|
|
||||||
`)}async onMagicFrameGenerate(n,r){var h;if(!this.OPENAI_KEY){this.setState({openDialog:{name:"settings",tab:"diagram-to-code",source:"generation"}}),Ae("ai","generate (missing key)","d2c");return}const i=PE(this.scene.getNonDeletedElements(),n).filter(m=>!uu(m));if(!i.length){r==="button"?(this.setState({errorMessage:"Cannot generate from an empty frame"}),Ae("ai","generate (no-children)","d2c")):this.setActiveTool({type:"magicframe"});return}const o=this.insertIframeElement({sceneX:n.x+n.width+30,sceneY:n.y,width:n.width,height:n.height});if(!o)return;this.updateMagicGeneration({frameElement:o,data:{status:"pending"}}),this.setState({selectedElementIds:{[o.id]:!0}});const s=await gz({elements:this.scene.getNonDeletedElements(),appState:{...this.state,exportBackground:!0,viewBackgroundColor:this.state.viewBackgroundColor},exportingFrame:n,files:this.files}),a=await bp(s),l=this.getTextFromElements(i);Ae("ai","generate (start)","d2c");const c=await PX({image:a,apiKey:this.OPENAI_KEY,text:l,theme:this.state.theme});if(!c.ok){Ae("ai","generate (failed)","d2c"),console.error(c.error),this.updateMagicGeneration({frameElement:o,data:{status:"error",code:"ERR_OAI",message:((h=c.error)==null?void 0:h.message)||"Unknown error during generation"}});return}if(Ae("ai","generate (success)","d2c"),c.choices[0].message.content==null){this.updateMagicGeneration({frameElement:o,data:{status:"error",code:"ERR_OAI",message:"Nothing genereated :("}});return}const u=c.choices[0].message.content,d=u.slice(u.indexOf("<!DOCTYPE html>"),u.indexOf("</html>")+7);this.updateMagicGeneration({frameElement:o,data:{status:"done",html:d}})}onIframeSrcCopy(n){var r,i;((i=(r=n.customData)==null?void 0:r.generationData)==null?void 0:i.status)==="done"&&(Fa(n.customData.generationData.html),this.setToast({message:"copied to clipboard",closable:!1,duration:1500}))}async componentDidMount(){var r;this.unmounted=!1,this.excalidrawContainerValue.container=this.excalidrawContainerRef.current,this.scene.addCallback(this.onSceneUpdated),this.addEventListeners(),this.props.autoFocus&&this.excalidrawContainerRef.current&&this.focusContainer(),this.refreshViewportBreakpoints(),this.refreshEditorBreakpoints(),m2&&this.excalidrawContainerRef.current&&(this.resizeObserver=new ResizeObserver(()=>{this.refreshEditorBreakpoints(),this.updateDOMRect()}),(r=this.resizeObserver)==null||r.observe(this.excalidrawContainerRef.current)),new URLSearchParams(window.location.search.slice(1)).has("web-share-target")?this.restoreFileFromShare():this.updateDOMRect(this.initializeScene),eR()&&!oN()&&this.setState({errorMessage:f(sX,{})})}componentWillUnmount(){var n;this.renderer.destroy(),this.scene=new $t,this.renderer=new z4(this.scene),this.files={},this.imageCache.clear(),(n=this.resizeObserver)==null||n.disconnect(),this.unmounted=!0,this.removeEventListeners(),this.scene.destroy(),this.library.destroy(),this.laserTrails.stop(),this.eraserTrail.stop(),this.onChangeEmitter.clear(),Xe.destroy(),$r.destroy(),clearTimeout(mo),Lt.clearCache(),Zn.clearCache(),mo=0,document.documentElement.style.overscrollBehaviorX=""}removeEventListeners(){this.onRemoveEventListenersEmitter.trigger()}addEventListeners(){this.removeEventListeners(),this.props.handleKeyboardGlobally&&this.onRemoveEventListenersEmitter.once(gt(document,Z.KEYDOWN,this.onKeyDown,!1)),this.onRemoveEventListenersEmitter.once(gt(this.excalidrawContainerRef.current,Z.WHEEL,this.onWheel,{passive:!1}),gt(window,Z.MESSAGE,this.onWindowMessage,!1),gt(document,Z.POINTER_UP,this.removePointer),gt(document,Z.COPY,this.onCopy),gt(document,Z.KEYUP,this.onKeyUp,{passive:!0}),gt(document,Z.MOUSE_MOVE,this.updateCurrentCursorPosition),gt(document.fonts,"loadingdone",n=>{const r=n.fontfaces;this.fonts.onFontsLoaded(r)}),gt(document,Z.GESTURE_START,this.onGestureStart,!1),gt(document,Z.GESTURE_CHANGE,this.onGestureChange,!1),gt(document,Z.GESTURE_END,this.onGestureEnd,!1),gt(window,Z.FOCUS,()=>{this.maybeCleanupAfterMissingPointerUp(null)})),!this.state.viewModeEnabled&&(this.onRemoveEventListenersEmitter.once(gt(document,Z.FULLSCREENCHANGE,this.onFullscreenChange),gt(document,Z.PASTE,this.pasteFromClipboard),gt(document,Z.CUT,this.onCut),gt(window,Z.RESIZE,this.onResize,!1),gt(window,Z.UNLOAD,this.onUnload,!1),gt(window,Z.BLUR,this.onBlur,!1),gt(this.excalidrawContainerRef.current,Z.DRAG_OVER,this.disableEvent,!1),gt(this.excalidrawContainerRef.current,Z.DROP,this.disableEvent,!1)),this.props.detectScroll&&this.onRemoveEventListenersEmitter.once(gt(TD(this.excalidrawContainerRef.current),Z.SCROLL,this.onScroll)))}componentDidUpdate(n,r){var l,c,u,d,h,m;this.updateEmbeddables();const i=this.scene.getElementsIncludingDeleted(),o=this.scene.getNonDeletedElementsMap();!this.state.showWelcomeScreen&&!i.length&&this.setState({showWelcomeScreen:!0}),n.UIOptions.dockedSidebarBreakpoint!==this.props.UIOptions.dockedSidebarBreakpoint&&this.refreshEditorBreakpoints(),r.userToFollow&&!this.state.collaborators.has(r.userToFollow.socketId)
Line truncated
|
|
||||||
|
|
||||||
`),r)}}addTextFromPaste(n,r=!1){const{x:i,y:o}=et({clientX:this.lastViewportPosition.x,clientY:this.lastViewportPosition.y},this.state),s={x:i,y:o,strokeColor:this.state.currentItemStrokeColor,backgroundColor:this.state.currentItemBackgroundColor,fillStyle:this.state.currentItemFillStyle,strokeWidth:this.state.currentItemStrokeWidth,strokeStyle:this.state.currentItemStrokeStyle,roundness:null,roughness:this.state.currentItemRoughness,opacity:this.state.currentItemOpacity,text:n,fontSize:this.state.currentItemFontSize,fontFamily:this.state.currentItemFontFamily,textAlign:this.state.currentItemTextAlign,verticalAlign:_m,locked:!1},a=10;let l=o;const c=r?[n]:n.split(`
|
|
||||||
`),u=c.reduce((h,m,g)=>{var y;const p=m.trim(),v=wa(s.fontFamily);if(p.length){const E=this.getTopLayerFrameAtSceneCoords({x:i,y:l}),w=Sr({...s,x:i,y:l,text:p,lineHeight:v,frameId:E?E.id:null});h.push(w),l+=w.height+a}else((y=c[g-1])==null?void 0:y.trim())&&(l+=Qd(s.fontSize,v)+a);return h},[]);if(u.length===0)return;const d=u[0].frameId;d?this.scene.insertElementsAtIndex(u,this.scene.getElementIndex(d)):this.scene.replaceAllElements([...this.scene.getElementsIncludingDeleted(),...u]),this.setState({selectedElementIds:$e(Object.fromEntries(u.map(h=>[h.id,!0])),this.state)}),!r&&u.length>1&&j4===!1&&!this.device.editor.isMobile&&(this.setToast({message:b("toast.pasteAsSingleElement",{shortcut:K("CtrlOrCmd+Shift+V")}),duration:5e3}),j4=!0),this.history.resumeRecording()}handleTextWysiwyg(n,{isExistingElement:r=!1}){const i=this.scene.getElementsMapIncludingDeleted(),o=(s,a,l)=>{this.scene.replaceAllElements([...this.scene.getElementsIncludingDeleted().map(c=>c.id===n.id&&ce(c)?jN(c,kn(c,i),i,{text:s,isDeleted:l,originalText:a}):c)])};VX({id:n.id,canvas:this.canvas,getViewportCoords:(s,a)=>{const{x:l,y:c}=Ur({sceneX:s,sceneY:a},this.state);return[l-this.state.offsetLeft,c-this.state.offsetTop]},onChange:Je(s=>{o(s,s,!1),ty(n)&&us(n,i)}),onSubmit:Je(({text:s,viaKeyboard:a,originalText:l})=>{const c=!s.trim();if(o(s,l,c),!c&&a){const u=n.containerId?n.containerId:n.id;this.setState(d=>({selectedElementIds:$e({...d.selectedElementIds,[u]:!0},d)}))}c&&aE(this.scene.getNonDeletedElements(),[n]),(!c||r)&&this.history.resumeRecording(),this.setState({draggingElement:null,editingElement:null}),this.state.activeTool.locked&&di(this.interactiveCanvas,this.state),this.focusContainer()}),element:n,excalidrawContainer:this.excalidrawContainerRef.current,app:this}),this.deselectElements(),o(n.text,n.originalText,!1)}deselectElements(){this.setState({selectedElementIds:$e({},this.state),selectedGroupIds:{},editingGroupId:null,activeEmbeddable:null})}getTextElementAtPosition(n,r){const i=this.getElementAtPosition(n,r,{includeBoundTextElement:!0});return i&&ce(i)&&!i.isDeleted?i:null}getElementAtPosition(n,r,i){const o=this.getElementsAtPosition(n,r,i==null?void 0:i.includeBoundTextElement,i==null?void 0:i.includeLockedElements);if(o.length>1){if(i!=null&&i.preferSelected){for(let a=o.length-1;a>-1;a--)if(this.state.selectedElementIds[o[a].id])return o[a]}const s=o[o.length-1];return pp(s,this.state,this.frameNameBoundsCache,n,r,this.scene.getNonDeletedElementsMap())?o[o.length-2]:s}return o.length===1?o[0]:null}getElementsAtPosition(n,r,i=!1,o=!1){const s=i&&o?this.scene.getNonDeletedElements():this.scene.getNonDeletedElements().filter(l=>(o||!l.locked)&&(i||!(ce(l)&&l.containerId))),a=this.scene.getNonDeletedElementsMap();return ZD(s,l=>Rm(l,this.state,this.frameNameBoundsCache,n,r,a)).filter(l=>{const c=rr(l,a);return c&&this.state.frameRendering.enabled&&this.state.frameRendering.clip?s6({x:n,y:r},c,a):!0})}handleHoverSelectedLinearElement(n,r,i){const o=this.scene.getNonDeletedElementsMap(),s=ue.getElement(n.elementId,o),a=ke(s,o);if(s)if(this.state.selectedLinearElement){let l=-1,c=null;vd(s,this.state,this.frameNameBoundsCache,[r,i],o)?(l=ue.getPointIndexUnderCursor(s,o,this.state.zoom,r,i),c=ue.getSegmentMidpointHitCoords(n,{x:r,y:i},this.state,this.scene.getNonDeletedElementsMap()),l>=0||c?He(this.interactiveCanvas,Be.POINTER):He(this.interactiveCanvas,Be.MOVE)):nE([s],this.state)&&pp(s,this.state,this.frameNameBoundsCache,r,i,o)?He(this.interactiveCanvas,Be.MOVE):a&&Rm(a,this.state,this.frameNameBoundsCache,r,i,this.scene.getNonDeletedElementsMap())&&He(this.interactiveCanvas,Be.MOVE),this.state.selectedLinearElement.hoverPointIndex!==l&&this.setState({selectedLinearElement:{...this.state.selectedLinearElement,hoverPointIndex:l}}),ue.arePointsEqual(this.state.selectedLinearElement.segmentMidPointHoveredCoords,c)||this.setState({selectedLinearElement:{...this.state.selectedLinearElement,segmentMidPointHoveredCoords:c}})}else He(this.interactiveCanvas,Be.AUTO)}updateGestureOnPointerDown(n){Pe.pointers.set(n.pointerId,{x:n.clientX,y:n.clientY}),Pe.pointers.size===2&&(Pe.lastCenter=u4(Pe.pointers),Pe.initialScale=this.state.zoom.value,Pe.initialDistance=d4(Array.from(Pe.pointers.values())))}initialPointerDownState(n){const r=et(n,this.state),i=this.scene.getSelectedElements(this.state),[o,s,a,l]=nt(i);return{origin:r,withCmdOrCtrl:n[D.CTRL_OR_CMD],originInGrid:Oo(jt(r.x,r.y,n[D.CTRL_OR_CMD]?null:this.state.gridSize)),scrollbars:w4(l0,n.clientX-this.state.offsetLeft,n.clientY-this.state.offsetTop),lastCoords:{...r},originalElements:this.scene.getNonDeletedElements().reduce((c,u)=>(c.set(u.id,th(u)),c),new Map),resize:{handleType:!1,isResizing:!1,offset:{x:0,y:0},arrowDirection:"origin",center:{x:(a+o)/2,y:(l+s)/2}},hit:{element:null,allHitElements:[],wasAddedToSelection:!1,hasBeenDuplicated:!1,hasHitCommonBoundingBoxOfSelectedElements:this.isHittingCommonBoundingBoxOfSelectedElements(r,i)},drag:{hasOccurred:!1,offset:nul
Line truncated
|
|
||||||
Copyright (c) Microsoft Corporation.
|
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
|
||||||
purpose with or without fee is hereby granted.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
||||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
||||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
||||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
||||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
||||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
||||||
PERFORMANCE OF THIS SOFTWARE.
|
|
||||||
***************************************************************************** */var Iy=function(e,t){return Iy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Iy(e,t)};function Lg(e,t){Iy(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var tt=function(){return tt=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},tt.apply(this,arguments)};function Y4(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function YX(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function $s(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(YX(arguments[t]));return e}var ns;(function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"})(ns||(ns={}));var Jr;(function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"})(Jr||(Jr={}));(function(e){function t(n){switch(n){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}e.fromString=t})(Jr||(Jr={}));var Aa;(function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"})(Aa||(Aa={}));(function(e){function t(n){return n>=200&&n<300?e.Success:n===429?e.RateLimit:n>=400&&n<500?e.Invalid:n>=500?e.Failed:e.Unknown}e.fromHttpCode=t})(Aa||(Aa={}));/*! *****************************************************************************
|
|
||||||
Copyright (c) Microsoft Corporation.
|
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
|
||||||
purpose with or without fee is hereby granted.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
||||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
||||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
||||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
||||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
||||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
||||||
PERFORMANCE OF THIS SOFTWARE.
|
|
||||||
***************************************************************************** */function KX(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function ZX(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(KX(arguments[t]));return e}/*! *****************************************************************************
|
|
||||||
Copyright (c) Microsoft Corporation.
|
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
|
||||||
purpose with or without fee is hereby granted.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
||||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
||||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
||||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
||||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
||||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
||||||
PERFORMANCE OF THIS SOFTWARE.
|
|
||||||
***************************************************************************** */var me=function(){return me=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},me.apply(this,arguments)};function XX(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function Ds(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(XX(arguments[t]));return e}function zM(e){switch(Object.prototype.toString.call(e)){case"[object Error]":return!0;case"[object Exception]":return!0;case"[object DOMException]":return!0;default:return gs(e,Error)}}function HM(e){return Object.prototype.toString.call(e)==="[object ErrorEvent]"}function K4(e){return Object.prototype.toString.call(e)==="[object DOMError]"}function qX(e){return Object.prototype.toString.call(e)==="[object DOMException]"}function tc(e){return Object.prototype.toString.call(e)==="[object String]"}function Bd(e){return e===null||typeof e!="object"&&typeof e!="function"}function Pg(e){return Object.prototype.toString.call(e)==="[object Object]"}function Tw(e){return typeof Event<"u"&&gs(e,Event)}function Z4(e){return typeof Element<"u"&&gs(e,Element)}function QX(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function Mw(e){return!!(e&&e.then&&typeof e.then=="function")}function JX(e){return Pg(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function gs(e,t){try{return e instanceof t}catch{return!1}}function c1(e){try{for(var t=e,n=5,r=80,i=[],o=0,s=0,a=" > ",l=a.length,c=void 0;t&&o++<n&&(c=eq(t),!(c==="html"||o>1&&s+i.length*l+c.length>=r));)i.push(c),s+=c.length,t=t.parentNode;return i.reverse().join(a)}catch{return"<unknown>"}}function eq(e){var t=e,n=[],r,i,o,s,a;if(!t||!t.tagName)return"";if(n.push(t.tagName.toLowerCase()),t.id&&n.push("#"+t.id),r=t.className,r&&tc(r))for(i=r.split(/\s+/),a=0;a<i.length;a++)n.push("."+i[a]);var l=["type","name","title","alt"];for(a=0;a<l.length;a++)o=l[a],s=t.getAttribute(o),s&&n.push("["+o+'="'+s+'"]');return n.join("")}/*! *****************************************************************************
|
|
||||||
Copyright (c) Microsoft Corporation.
|
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
|
||||||
purpose with or without fee is hereby granted.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
||||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
||||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
||||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
||||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
||||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
||||||
PERFORMANCE OF THIS SOFTWARE.
|
|
||||||
***************************************************************************** */var Cy=function(e,t){return Cy=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},Cy(e,t)};function tq(e,t){Cy(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Bs=function(){return Bs=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Bs.apply(this,arguments)};function UM(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function nq(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}var rq=Object.setPrototypeOf||({__proto__:[]}instanceof Array?iq:oq);function iq(e,t){return e.__proto__=t,e}function oq(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e}var Kt=function(e){tq(t,e);function t(n){var r=this.constructor,i=e.call(this,n)||this;return i.message=n,i.name=r.prototype.constructor.name,rq(i,r.prototype),i}return t}(Error),sq=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,Qc="Invalid Dsn",WM=function(){function e(t){typeof t=="string"?this._fromString(t):this._fromComponents(t),this._validate()}return e.prototype.toString=function(t){t===void 0&&(t=!1);var n=this,r=n.host,i=n.path,o=n.pass,s=n.port,a=n.projectId,l=n.protocol,c=n.publicKey;return l+"://"+c+(t&&o?":"+o:"")+("@"+r+(s?":"+s:"")+"/"+(i&&i+"/")+a)},e.prototype._fromString=function(t){var n=sq.exec(t);if(!n)throw new Kt(Qc);var r=nq(n.slice(1),6),i=r[0],o=r[1],s=r[2],a=s===void 0?"":s,l=r[3],c=r[4],u=c===void 0?"":c,d=r[5],h="",m=d,g=m.split("/");if(g.length>1&&(h=g.slice(0,-1).join("/"),m=g.pop()),m){var p=m.match(/^\d+/);p&&(m=p[0])}this._fromComponents({host:l,pass:a,path:h,projectId:m,port:u,protocol:i,publicKey:o})},e.prototype._fromComponents=function(t){"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),this.user=t.publicKey||"",this.protocol=t.protocol,this.publicKey=t.publicKey||"",this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},e.prototype._validate=function(){var t=this;if(["protocol","publicKey","host","projectId"].forEach(function(n){if(!t[n])throw new Kt(Qc+": "+n+" missing")}),!this.projectId.match(/^\d+$/))throw new Kt(Qc+": Invalid projectId "+this.projectId);if(this.protocol!=="http"&&this.protocol!=="https")throw new Kt(Qc+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new Kt(Qc+": Invalid port "+this.port)},e}();function Aw(){return Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function aq(e,t){return e.require(t)}function Uu(e,t){return t===void 0&&(t=0),typeof e!="string"||t===0||e.length<=t?e:e.substr(0,t)+"..."}function u1(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var i=e[r];try{n.push(String(i))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function u0(e,t){return tc(e)?QX(t)?t.test(e):typeof t=="string"?e.indexOf(t)!==-1:!1:!1}var lq={};function Pt(){return Aw()?global:typeof window<"u"?window:typeof self<"u"?self:lq}function Nl(){var e=Pt(),t=e.crypto||e.msCrypto;if(t!==void 0&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=n[3]&4095|16384,n[4]=n[4]&16383|32768;var r=function(i){for(var o=i.toString(16);o.length<4;)o="0"+o;return o};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(i){var o=Math.random()*16|0,s=i==="x"?o:o&3|8;return s.toString(16)})}function d0(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function Os(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function Xf(e){var t=Pt(),n=["debug","info","warn","error","log","assert"];if(!("console"in t))return e();var r=t.console,i={};n.forEach(function(s){s in t.console&&r[s].__sentry_original__&&(i[s]=r[s],r[s]=r[s].__sentry_original__)});var o=e();return Object.keys(i).forEach(function(s){r[s]=i[s]}),o}function Ty(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.excepLine truncated
|
|
||||||
Type: `+e+`
|
|
||||||
Name: `+bo(s)+`
|
|
||||||
Error: `+a)}}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function _q(){"console"in ct&&["debug","info","warn","error","log","assert"].forEach(function(e){e in ct.console&&Zt(ct.console,e,function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Kr("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,ct.console,n)}})})}function xq(){vq()&&Zt(ct,"fetch",function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:Sq(t),url:kq(t)},startTimestamp:Date.now()};return Kr("fetch",Bs({},r)),e.apply(ct,t).then(function(i){return Kr("fetch",Bs(Bs({},r),{endTimestamp:Date.now(),response:i})),i},function(i){throw Kr("fetch",Bs(Bs({},r),{endTimestamp:Date.now(),error:i})),i})}})}function Sq(e){return e===void 0&&(e=[]),"Request"in ct&&gs(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function kq(e){return e===void 0&&(e=[]),typeof e[0]=="string"?e[0]:"Request"in ct&&gs(e[0],Request)?e[0].url:String(e[0])}function Iq(){if("XMLHttpRequest"in ct){var e=[],t=[],n=XMLHttpRequest.prototype;Zt(n,"open",function(r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var s=this,a=i[1];s.__sentry_xhr__={method:tc(i[0])?i[0].toUpperCase():i[0],url:i[1]},tc(a)&&s.__sentry_xhr__.method==="POST"&&a.match(/sentry_key/)&&(s.__sentry_own_request__=!0);var l=function(){if(s.readyState===4){try{s.__sentry_xhr__&&(s.__sentry_xhr__.status_code=s.status)}catch{}try{var c=e.indexOf(s);if(c!==-1){e.splice(c);var u=t.splice(c)[0];s.__sentry_xhr__&&u[0]!==void 0&&(s.__sentry_xhr__.body=u[0])}}catch{}Kr("xhr",{args:i,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:s})}};return"onreadystatechange"in s&&typeof s.onreadystatechange=="function"?Zt(s,"onreadystatechange",function(c){return function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];return l(),c.apply(s,u)}}):s.addEventListener("readystatechange",l),r.apply(s,i)}}),Zt(n,"send",function(r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return e.push(this),t.push(i),Kr("xhr",{args:i,startTimestamp:Date.now(),xhr:this}),r.apply(this,i)}})}}var af;function Cq(){if(!wq())return;var e=ct.onpopstate;ct.onpopstate=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=ct.location.href,o=af;if(af=i,Kr("history",{from:o,to:i}),e)return e.apply(this,n)};function t(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=r.length>2?r[2]:void 0;if(o){var s=af,a=String(o);af=a,Kr("history",{from:s,to:a})}return n.apply(this,r)}}Zt(ct.history,"pushState",t),Zt(ct.history,"replaceState",t)}var Tq=1e3,lf,cf;function Mq(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch{}return!1}function Aq(e){if(e.type!=="keypress")return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)return!1}catch{}return!0}function Q4(e,t){return t===void 0&&(t=!1),function(n){if(!(!n||cf===n)&&!Aq(n)){var r=n.type==="keypress"?"input":n.type;lf===void 0?(e({event:n,name:r,global:t}),cf=n):Mq(cf,n)&&(e({event:n,name:r,global:t}),cf=n),clearTimeout(lf),lf=ct.setTimeout(function(){lf=void 0},Tq)}}}function Lq(){if("document"in ct){var e=Kr.bind(null,"dom"),t=Q4(e,!0);ct.document.addEventListener("click",t,!1),ct.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(function(n){var r=ct[n]&&ct[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Zt(r,"addEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{var l=this,c=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},u=c[o]=c[o]||{refCount:0};if(!u.handler){var d=Q4(e);u.handler=d,i.call(this,o,d,a)}u.refCount+=1}catch{}return i.call(this,o,s,a)}}),Zt(r,"removeEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{var l=this,c=l.__sentry_instrumentation_handlers__||{},u=c[o];u&&(u.refCount-=1,u.refCount<=0&&(i.call(this,o,u.handler,a),u.handler=void 0,delete c[o]),Object.keys(c).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,o,s,a)}}))})}}var m0=null;function Pq(){m0=ct.onerror,ct.onerror=function(e,t,n,r,i){return Kr("error",{column:r,error:i,line:n,msg:e,url:t}),m0?m0.apply(this,arguments):!1}}var g0=null;function Rq(){g0=ct.onunhandledrejection,ct.onunhandledrejection=function(e){return Kr("unhandledrejection",e),g0?g0.apply(this,arguments):!0}}var Fi;(function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"})(Fi||(Fi={}));var Nn=function(){function e(t){var n=this;this._state=Fi.PENDING,this._handlers=[],this._resolve=function(r){n._setResult(Fi.RESOLVED,r)},this._reject=function(r){n._setResult(Fi.REJECTED,r)},this._setResult=function(r,i){if(n._state===Fi.PENDIN
Line truncated
|
|
||||||
Copyright (c) Microsoft Corporation.
|
|
||||||
|
|
||||||
Permission to use, copy, modify, and/or distribute this software for any
|
|
||||||
purpose with or without fee is hereby granted.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
||||||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
||||||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
||||||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
||||||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
||||||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
||||||
PERFORMANCE OF THIS SOFTWARE.
|
|
||||||
***************************************************************************** */var vn=function(){return vn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},vn.apply(this,arguments)};function Hq(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Uq(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Wq(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function rs(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Wq(arguments[t]));return e}var n5=[];function Vq(e){var t=e.defaultIntegrations&&rs(e.defaultIntegrations)||[],n=e.integrations,r=[];if(Array.isArray(n)){var i=n.map(function(l){return l.name}),o=[];t.forEach(function(l){i.indexOf(l.name)===-1&&o.indexOf(l.name)===-1&&(r.push(l),o.push(l.name))}),n.forEach(function(l){o.indexOf(l.name)===-1&&(r.push(l),o.push(l.name))})}else typeof n=="function"?(r=n(t),r=Array.isArray(r)?r:[r]):r=rs(t);var s=r.map(function(l){return l.name}),a="Debug";return s.indexOf(a)!==-1&&r.push.apply(r,rs(r.splice(s.indexOf(a),1))),r}function Gq(e){n5.indexOf(e.name)===-1&&(e.setupOnce(Rg,ln),n5.push(e.name),Ve.log("Integration installed: "+e.name))}function jq(e){var t={};return Vq(e).forEach(function(n){t[n.name]=n,Gq(n)}),t}var Yq=function(){function e(t,n){this._integrations={},this._processing=0,this._backend=new t(n),this._options=n,n.dsn&&(this._dsn=new WM(n.dsn))}return e.prototype.captureException=function(t,n,r){var i=this,o=n&&n.event_id;return this._process(this._getBackend().eventFromException(t,n).then(function(s){return i._captureEvent(s,n,r)}).then(function(s){o=s})),o},e.prototype.captureMessage=function(t,n,r,i){var o=this,s=r&&r.event_id,a=Bd(t)?this._getBackend().eventFromMessage(String(t),n,r):this._getBackend().eventFromException(t,r);return this._process(a.then(function(l){return o._captureEvent(l,r,i)}).then(function(l){s=l})),s},e.prototype.captureEvent=function(t,n,r){var i=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(function(o){i=o})),i},e.prototype.captureSession=function(t){t.release?(this._sendSession(t),t.update({init:!1})):Ve.warn("Discarded session because of missing release")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(t){var n=this;return this._isClientProcessing(t).then(function(r){return n._getBackend().getTransport().close(t).then(function(i){return r&&i})})},e.prototype.close=function(t){var n=this;return this.flush(t).then(function(r){return n.getOptions().enabled=!1,r})},e.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=jq(this._options))},e.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch{return Ve.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(t,n){var r,i,o=!1,s=!1,a,l=n.exception&&n.exception.values;if(l){s=!0;try{for(var c=Uq(l),u=c.next();!u.done;u=c.next()){var d=u.value,h=d.mechanism;if(h&&h.handled===!1){o=!0;break}}}catch(v){r={error:v}}finally{try{u&&!u.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}}var m=n.user;if(!t.userAgent){var g=n.request?n.request.headers:{};for(var p in g)if(p.toLowerCase()==="user-agent"){a=g[p];break}}t.update(vn(vn({},o&&{status:ns.Crashed}),{user:m,userAgent:a,errors:t.errors+Number(s||o)})),this.captureSession(t)},e.prototype._sendSession=function(t){this._getBackend().sendSession(t)},e.prototype._isClientProcessing=function(t){var n=this;return new Nn(function(r){var i=0,o=1,s=setInterval(function(){n._processing==0?(clearInterval(s),r(!0)):(i+=o,t&&i>=t&&(clearInterval(s),r(!1)))},o)})},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return this.getOptions().enabled!==!1&&this._dsn!==void 0},e.prototype._prepareEvent=function(t,n,r){var i=this,o=this.getOptions().normalizeDepth,s=o===void 0?3:o,a=vn(vn({},t),{event_id:t.event_id||(r&&r.event_id?r.event_id:Nl()),timestamp:t.timestamp||Pw()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var l=n;r&&r.captureContext&&(l=h1.clone(l).update(r.captureContext));var c=Nn.resolve(a);return l&Line truncated
|
|
||||||
Reason: `+c))})},e.prototype._process=function(t){var n=this;this._processing+=1,t.then(function(r){return n._processing-=1,r},function(r){return n._processing-=1,r})},e}(),Kq=function(){function e(){}return e.prototype.sendEvent=function(t){return Nn.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:Aa.Skipped})},e.prototype.close=function(t){return Nn.resolve(!0)},e}(),Zq=function(){function e(t){this._options=t,this._options.dsn||Ve.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(t,n){throw new Kt("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(t,n,r){throw new Kt("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,function(n){Ve.error("Error while sending event: "+n)})},e.prototype.sendSession=function(t){if(!this._transport.sendSession){Ve.warn("Dropping session because custom transport doesn't implement sendSession");return}this._transport.sendSession(t).then(null,function(n){Ve.error("Error while sending session: "+n)})},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new Kq},e}();function eA(e){if(!(!e.metadata||!e.metadata.sdk)){var t=e.metadata.sdk,n=t.name,r=t.version;return{name:n,version:r}}}function Xq(e,t){return t&&(e.sdk=e.sdk||{name:t.name,version:t.version},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=rs(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=rs(e.sdk.packages||[],t.packages||[])),e}function tA(e,t){var n=eA(t),r=JSON.stringify(vn({sent_at:new Date().toISOString()},n&&{sdk:n})),i=JSON.stringify({type:"session"});return{body:r+`
|
|
||||||
`+i+`
|
|
||||||
`+JSON.stringify(e),type:"session",url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function nA(e,t){var n=eA(t),r=e.type||"event",i=r==="transaction",o=e.debug_meta||{},s=o.transactionSampling,a=Hq(o,["transactionSampling"]),l=s||{},c=l.method,u=l.rate;Object.keys(a).length===0?delete e.debug_meta:e.debug_meta=a;var d={body:JSON.stringify(n?Xq(e,t.metadata.sdk):e),type:r,url:i?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(i){var h=JSON.stringify(vn({event_id:e.event_id,sent_at:new Date().toISOString()},n&&{sdk:n})),m=JSON.stringify({type:e.type,sample_rates:[{id:c,rate:u}]}),g=h+`
|
|
||||||
`+m+`
|
|
||||||
`+d.body;d.body=g}return d}function qq(e,t){t.debug===!0&&Ve.enable();var n=ln(),r=new e(t);n.bindClient(r)}var r5="6.2.5",i5,Qq=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){i5=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.__sentry_original__||this;return i5.apply(r,t)}},e.id="FunctionToString",e}(),Jq=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],eQ=function(){function e(t){t===void 0&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){Rg(function(t){var n=ln();if(!n)return t;var r=n.getIntegration(e);if(r){var i=n.getClient(),o=i?i.getOptions():{},s=r._mergeOptions(o);if(r._shouldDropEvent(t,s))return null}return t})},e.prototype._shouldDropEvent=function(t,n){return this._isSentryError(t,n)?(Ve.warn(`Event dropped due to being internal Sentry Error.
|
|
||||||
Event: `+Os(t)),!0):this._isIgnoredError(t,n)?(Ve.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Os(t)),!0):this._isDeniedUrl(t,n)?(Ve.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Os(t)+`.
|
|
||||||
Url: `+this._getEventFilterUrl(t)),!0):this._isAllowedUrl(t,n)?!1:(Ve.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Os(t)+`.
|
|
||||||
Url: `+this._getEventFilterUrl(t)),!0)},e.prototype._isSentryError=function(t,n){if(!n.ignoreInternal)return!1;try{return t&&t.exception&&t.exception.values&&t.exception.values[0]&&t.exception.values[0].type==="SentryError"||!1}catch{return!1}},e.prototype._isIgnoredError=function(t,n){return!n.ignoreErrors||!n.ignoreErrors.length?!1:this._getPossibleEventMessages(t).some(function(r){return n.ignoreErrors.some(function(i){return u0(r,i)})})},e.prototype._isDeniedUrl=function(t,n){if(!n.denyUrls||!n.denyUrls.length)return!1;var r=this._getEventFilterUrl(t);return r?n.denyUrls.some(function(i){return u0(r,i)}):!1},e.prototype._isAllowedUrl=function(t,n){if(!n.allowUrls||!n.allowUrls.length)return!0;var r=this._getEventFilterUrl(t);return r?n.allowUrls.some(function(i){return u0(r,i)}):!0},e.prototype._mergeOptions=function(t){return t===void 0&&(t={}),{allowUrls:rs(this._options.whitelistUrls||[],this._options.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:rs(this._options.blacklistUrls||[],this._options.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:rs(this._options.ignoreErrors||[],t.ignoreErrors||[],Jq),ignoreInternal:typeof this._options.ignoreInternal<"u"?this._options.ignoreInternal:!0}},e.prototype._getPossibleEventMessages=function(t){if(t.message)return[t.message];if(t.exception)try{var n=t.exception.values&&t.exception.values[0]||{},r=n.type,i=r===void 0?"":r,o=n.value,s=o===void 0?"":o;return[""+s,i+": "+s]}catch{return Ve.error("Cannot extract message for event "+Os(t)),[]}return[]},e.prototype._getEventFilterUrl=function(t){try{if(t.stacktrace){var n=t.stacktrace.frames;return n&&n[n.length-1].filename||null}if(t.exception){var r=t.exception.values&&t.exception.values[0].stacktrace&&t.exception.values[0].stacktrace.frames;return r&&r[r.length-1].filename||null}return null}catch{return Ve.error("Cannot extract url for event "+Os(t)),null}},e.id="InboundFilters",e}(),pu="?",tQ=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,nQ=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rQ=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,iQ=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,oQ=/\((\S*)(?::(\d+))(?::(\d+))\)/,sQ=/Minified React error #\d+;/i;function zd(e){var t=null,n=0;e&&(typeof e.framesToPop=="number"?n=e.framesToPop:sQ.test(e.message)&&(n=1));try{if(t=lQ(e),t)return o5(t,n)}catch{}try{if(t=aQ(e),t)return o5(t,n)}catch{}return{message:Nw(e),name:e&&e.name,stack:[],failed:!0}}function aQ(e){if(!e||!e.stack)return null;for(var t=[],n=e.stack.split(`
|
|
||||||
`),r,i,o,s,a=0;a<n.length;++a){if(o=tQ.exec(n[a])){var l=o[2]&&o[2].indexOf("native")===0;r=o[2]&&o[2].indexOf("eval")===0,r&&(i=oQ.exec(o[2]))&&(o[2]=i[1],o[3]=i[2],o[4]=i[3]),s={url:o[2]&&o[2].indexOf("address at ")===0?o[2].substr(11):o[2],func:o[1]||pu,args:l?[o[2]]:[],line:o[3]?+o[3]:null,column:o[4]?+o[4]:null}}else if(o=rQ.exec(n[a]))s={url:o[2],func:o[1]||pu,args:[],line:+o[3],column:o[4]?+o[4]:null};else if(o=nQ.exec(n[a]))r=o[3]&&o[3].indexOf(" > eval")>-1,r&&(i=iQ.exec(o[3]))?(o[1]=o[1]||"eval",o[3]=i[1],o[4]=i[2],o[5]=""):a===0&&!o[5]&&e.columnNumber!==void 0&&(t[0].column=e.columnNumber+1),s={url:o[3],func:o[1]||pu,args:o[2]?o[2].split(","):[],line:o[4]?+o[4]:null,column:o[5]?+o[5]:null};else continue;!s.func&&s.line&&(s.func=pu),t.push(s)}return t.length?{message:Nw(e),name:e.name,stack:t}:null}function lQ(e){if(!e||!e.stacktrace)return null;for(var t=e.stacktrace,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,i=t.split(`
|
|
||||||
`),o=[],s,a=0;a<i.length;a+=2){var l=null;(s=n.exec(i[a]))?l={url:s[2],func:s[3],args:[],line:+s[1],column:null}:(s=r.exec(i[a]))&&(l={url:s[6],func:s[3]||s[4],args:s[5]?s[5].split(","):[],line:+s[1],column:+s[2]}),l&&(!l.func&&l.line&&(l.func=pu),o.push(l))}return o.length?{message:Nw(e),name:e.name,stack:o}:null}function o5(e,t){try{return tt(tt({},e),{stack:e.stack.slice(t)})}catch{return e}}function Nw(e){var t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}var cQ=50;function rA(e){var t=Fw(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),n.type===void 0&&n.value===""&&(n.value="Unrecoverable error caught"),n}function uQ(e,t,n){var r={exception:{values:[{type:Tw(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+yq(e)}]},extra:{__serialized__:GM(e)}};if(t){var i=zd(t),o=Fw(i.stack);r.stacktrace={frames:o}}return r}function s5(e){var t=rA(e);return{exception:{values:[t]}}}function Fw(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return(n.indexOf("captureMessage")!==-1||n.indexOf("captureException")!==-1)&&(t=t.slice(1)),r.indexOf("sentryWrapped")!==-1&&(t=t.slice(0,-1)),t.slice(0,cQ).map(function(i){return{colno:i.column===null?void 0:i.column,filename:i.url||t[0].url,function:i.func||"?",in_app:!0,lineno:i.line===null?void 0:i.line}}).reverse()}function dQ(e,t,n){var r=n&&n.syntheticException||void 0,i=Ly(t,r,{attachStacktrace:e.attachStacktrace});return nc(i,{handled:!0,type:"generic"}),i.level=Jr.Error,n&&n.event_id&&(i.event_id=n.event_id),Nn.resolve(i)}function hQ(e,t,n,r){n===void 0&&(n=Jr.Info);var i=r&&r.syntheticException||void 0,o=Py(t,i,{attachStacktrace:e.attachStacktrace});return o.level=n,r&&r.event_id&&(o.event_id=r.event_id),Nn.resolve(o)}function Ly(e,t,n){n===void 0&&(n={});var r;if(HM(e)&&e.error){var i=e;return e=i.error,r=s5(zd(e)),r}if(K4(e)||qX(e)){var o=e,s=o.name||(K4(o)?"DOMError":"DOMException"),a=o.message?s+": "+o.message:s;return r=Py(a,t,n),Ty(r,a),"code"in o&&(r.tags=tt(tt({},r.tags),{"DOMException.code":""+o.code})),r}if(zM(e))return r=s5(zd(e)),r;if(Pg(e)||Tw(e)){var l=e;return r=uQ(l,t,n.rejection),nc(r,{synthetic:!0}),r}return r=Py(e,t,n),Ty(r,""+e,void 0),nc(r,{synthetic:!0}),r}function Py(e,t,n){n===void 0&&(n={});var r={message:e};if(n.attachStacktrace&&t){var i=zd(t),o=Fw(i.stack);r.stacktrace={frames:o}}return r}var fQ={event:"error",transaction:"transaction",session:"session"},iA=function(){function e(t){this.options=t,this._buffer=new Dq(30),this._rateLimits={},this._api=new JM(t.dsn,t._metadata),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(t){throw new Kt("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(t){return this._buffer.drain(t)},e.prototype._handleResponse=function(t){var n=t.requestType,r=t.response,i=t.headers,o=t.resolve,s=t.reject,a=Aa.fromHttpCode(r.status),l=this._handleRateLimit(i);if(l&&Ve.warn("Too many requests, backing off until: "+this._disabledUntil(n)),a===Aa.Success){o({status:a});return}s(r)},e.prototype._disabledUntil=function(t){var n=fQ[t];return this._rateLimits[n]||this._rateLimits.all},e.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},e.prototype._handleRateLimit=function(t){var n,r,i,o,s=Date.now(),a=t["x-sentry-rate-limits"],l=t["retry-after"];if(a){try{for(var c=Y4(a.trim().split(",")),u=c.next();!u.done;u=c.next()){var d=u.value,h=d.split(":",2),m=parseInt(h[0],10),g=(isNaN(m)?60:m)*1e3;try{for(var p=(i=void 0,Y4(h[1].split(";"))),v=p.next();!v.done;v=p.next()){var y=v.value;this._rateLimits[y||"all"]=new Date(s+g)}}catch(E){i={error:E}}finally{try{v&&!v.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}}catch(E){n={error:E}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return!0}else if(l)return this._rateLimits.all=new Date(s+uq(s,l)),!0;return!1},e}();function mQ(){var e,t,n=Pt();if(My(n.fetch))return n.fetch.bind(n);var r=n.document,i=n.fetch;if(typeof((e=r)===null||e===void 0?void 0:e.createElement)=="function")try{var o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o),!((t=o.contentWindow)===null||t===void 0)&&t.fetch&&(i=o.contentWindow.fetch),r.head.removeChild(o)}catch(s){Ve.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",s)}return i.bind(n)}var gQ=function(e){Lg(t,e);function t(n,r){r===void 0&&(r=mQ());var i=e.call(this,n)||this;return i._fetch=r,i}return t.prototype.sendEvent=function(n){return this._sendRequest(nA(n,this._api),n)},t.prototype.sendSession=function(n){return this._sendRequest(tA(n,this._api),n)},t.prototype._sendRequest=function(n,r){var i=this;if(this._isRateLimited(n.type))return Promise.reject({event:r,type:n.type,reason:"Transport locked till "+this._disabledUntil(n.type)+" due to too ma
Line truncated
|
|
||||||
function __vite__mapDeps(indexes) {
|
|
||||||
if (!__vite__mapDeps.viteFileDeps) {
|
|
||||||
__vite__mapDeps.viteFileDeps = ["assets/pica-k97f9p3G.js","assets/_commonjs-dynamic-modules-h-SxKiO4.js","assets/index.esm-EExsODKC.js","assets/index.esm-J35DBGFx.js","assets/index.esm-h2kZ9fZN.js","assets/index.esm-Aqyp0Gpy.js"]
|
|
||||||
}
|
|
||||||
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
||||||
}
|
|
||||||
//# sourceMappingURL=index-2K3MavtT.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"mappings":";;;;;;;;GASa,IAAIA,GAAE,OAAO,IAAI,eAAe,EAAEC,GAAE,OAAO,IAAI,cAAc,EAAEC,GAAE,OAAO,IAAI,gBAAgB,EAAEC,GAAE,OAAO,IAAI,mBAAmB,EAAEC,GAAE,OAAO,IAAI,gBAAgB,EAAEC,GAAE,OAAO,IAAI,gBAAgB,EAAEC,GAAE,OAAO,IAAI,eAAe,EAAEC,GAAE,OAAO,IAAI,mBAAmB,EAAEC,GAAE,OAAO,IAAI,gBAAgB,EAAEC,GAAE,OAAO,IAAI,YAAY,EAAEC,GAAE,OAAO,IAAI,YAAY,EAAEC,GAAE,OAAO,SAAS,SAASC,GAAEC,EAAE,CAAC,OAAUA,IAAP,MAAqB,OAAOA,GAAlB,SAA2B,MAAKA,EAAEF,IAAGE,EAAEF,EAAC,GAAGE,EAAE,YAAY,EAAqB,OAAOA,GAApB,WAAsBA,EAAE,KAAI,CAC1e,IAAIC,GAAE,CAAC,UAAU,UAAU,CAAC,MAAM,EAAE,EAAE,mBAAmB,UAAU,GAAG,oBAAoB,UAAU,GAAG,gBAAgB,UAAU,EAAE,EAAEC,GAAE,OAAO,OAAOC,GAAE,GAAG,SAASC,GAAEJ,EAAEK,EAAEC,EAAE,CAAC,KAAK,MAAMN,EAAE,KAAK,QAAQK,EAAE,KAAK,KAAKF,GAAE,KAAK,QAAQG,GAAGL,EAAC,CAACG,GAAE,UAAU,iBAAiB,GACnQA,GAAE,UAAU,SAAS,SAASJ,EAAEK,EAAE,CAAC,GAAc,OAAOL,GAAlB,UAAkC,OAAOA,GAApB,YAA6BA,GAAN,KAAQ,MAAM,MAAM,uHAAuH,EAAE,KAAK,QAAQ,gBAAgB,KAAKA,EAAEK,EAAE,UAAU,CAAC,EAAED,GAAE,UAAU,YAAY,SAASJ,EAAE,CAAC,KAAK,QAAQ,mBAAmB,KAAKA,EAAE,aAAa,CAAC,EAAE,SAASO,IAAG,EAAEA,GAAE,UAAUH,GAAE,UAAU,SAASI,GAAER,EAAEK,EAAEC,EAAE,CAAC,KAAK,MAAMN,EAAE,KAAK,QAAQK,EAAE,KAAK,KAAKF,GAAE,KAAK,QAAQG,GAAGL,EAAC,CAAC,IAAIQ,GAAED,GAAE,UAAU,IAAID,GACrfE,GAAE,YAAYD,GAAEN,GAAEO,GAAEL,GAAE,SAAS,EAAEK,GAAE,qBAAqB,GAAG,IAAIC,GAAE,MAAM,QAAQC,GAAE,OAAO,UAAU,eAAeC,GAAE,CAAC,QAAQ,IAAI,EAAEC,GAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,EAAE,EACxK,SAASC,GAAEd,EAAEK,EAAEC,EAAE,CAAC,IAAIS,EAAEC,EAAE,GAAGC,EAAE,KAAKC,EAAE,KAAK,GAASb,GAAN,KAAQ,IAAIU,KAAcV,EAAE,MAAX,SAAiBa,EAAEb,EAAE,KAAcA,EAAE,MAAX,SAAiBY,EAAE,GAAGZ,EAAE,KAAKA,EAAEM,GAAE,KAAKN,EAAEU,CAAC,GAAG,CAACF,GAAE,eAAeE,CAAC,IAAIC,EAAED,CAAC,EAAEV,EAAEU,CAAC,GAAG,IAAII,EAAE,UAAU,OAAO,EAAE,GAAOA,IAAJ,EAAMH,EAAE,SAASV,UAAU,EAAEa,EAAE,CAAC,QAAQC,EAAE,MAAMD,CAAC,EAAEE,EAAE,EAAEA,EAAEF,EAAEE,IAAID,EAAEC,CAAC,EAAE,UAAUA,EAAE,CAAC,EAAEL,EAAE,SAASI,CAAC,CAAC,GAAGpB,GAAGA,EAAE,aAAa,IAAIe,KAAKI,EAAEnB,EAAE,aAAamB,EAAWH,EAAED,CAAC,IAAZ,SAAgBC,EAAED,CAAC,EAAEI,EAAEJ,CAAC,GAAG,MAAM,CAAC,SAAS5B,GAAE,KAAKa,EAAE,IAAIiB,EAAE,IAAIC,EAAE,MAAMF,EAAE,OAAOJ,GAAE,OAAO,CAAC,CAC7a,SAASU,GAAEtB,EAAEK,EAAE,CAAC,MAAM,CAAC,SAASlB,GAAE,KAAKa,EAAE,KAAK,IAAIK,EAAE,IAAIL,EAAE,IAAI,MAAMA,EAAE,MAAM,OAAOA,EAAE,MAAM,CAAC,CAAC,SAASuB,GAAEvB,EAAE,CAAC,OAAiB,OAAOA,GAAlB,UAA4BA,IAAP,MAAUA,EAAE,WAAWb,EAAC,CAAC,SAASqC,GAAOxB,EAAE,CAAC,IAAIK,EAAE,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE,MAAM,IAAIL,EAAE,QAAQ,QAAQ,SAASA,EAAE,CAAC,OAAOK,EAAEL,CAAC,CAAC,CAAC,CAAC,CAAC,IAAIyB,GAAE,OAAO,SAASC,GAAE1B,EAAEK,EAAE,CAAC,OAAiB,OAAOL,GAAlB,UAA4BA,IAAP,MAAgBA,EAAE,KAAR,KAAYwB,GAAO,GAAGxB,EAAE,GAAG,EAAEK,EAAE,SAAS,EAAE,CAAC,CAC/W,SAASsB,GAAE3B,EAAEK,EAAEC,EAAES,EAAEC,EAAE,CAAC,IAAIC,EAAE,OAAOjB,GAAmBiB,IAAd,aAA6BA,IAAZ,aAAcjB,EAAE,MAAK,IAAIkB,EAAE,GAAG,GAAUlB,IAAP,KAASkB,EAAE,OAAQ,QAAOD,EAAC,CAAE,IAAK,SAAS,IAAK,SAASC,EAAE,GAAG,MAAM,IAAK,SAAS,OAAOlB,EAAE,SAAU,MAAKb,GAAE,KAAKC,GAAE8B,EAAE,EAAE,CAAC,CAAC,GAAGA,EAAE,OAAOA,EAAElB,EAAEgB,EAAEA,EAAEE,CAAC,EAAElB,EAAOe,IAAL,GAAO,IAAIW,GAAER,EAAE,CAAC,EAAEH,EAAEL,GAAEM,CAAC,GAAGV,EAAE,GAASN,GAAN,OAAUM,EAAEN,EAAE,QAAQyB,GAAE,KAAK,EAAE,KAAKE,GAAEX,EAAEX,EAAEC,EAAE,GAAG,SAASN,EAAE,CAAC,OAAOA,CAAC,CAAC,GAASgB,GAAN,OAAUO,GAAEP,CAAC,IAAIA,EAAEM,GAAEN,EAAEV,GAAG,CAACU,EAAE,KAAKE,GAAGA,EAAE,MAAMF,EAAE,IAAI,IAAI,GAAGA,EAAE,KAAK,QAAQS,GAAE,KAAK,EAAE,KAAKzB,CAAC,GAAGK,EAAE,KAAKW,CAAC,GAAG,EAAyB,GAAvBE,EAAE,EAAEH,EAAOA,IAAL,GAAO,IAAIA,EAAE,IAAOL,GAAEV,CAAC,EAAE,QAAQmB,EAAE,EAAEA,EAAEnB,EAAE,OAAOmB,IAAI,CAACF,EACrfjB,EAAEmB,CAAC,EAAE,IAAIC,EAAEL,EAAEW,GAAET,EAAEE,CAAC,EAAED,GAAGS,GAAEV,EAAEZ,EAAEC,EAAEc,EAAEJ,CAAC,CAAC,SAASI,EAAErB,GAAEC,CAAC,EAAe,OAAOoB,GAApB,WAAsB,IAAIpB,EAAEoB,EAAE,KAAKpB,CAAC,EAAEmB,EAAE,EAAE,EAAEF,EAAEjB,EAAE,QAAQ,MAAMiB,EAAEA,EAAE,MAAMG,EAAEL,EAAEW,GAAET,EAAEE,GAAG,EAAED,GAAGS,GAAEV,EAAEZ,EAAEC,EAAEc,EAAEJ,CAAC,UAAqBC,IAAX,SAAa,MAAMZ,EAAE,OAAOL,CAAC,EAAE,MAAM,mDAAuEK,IAApB,kBAAsB,qBAAqB,OAAO,KAAKL,CAAC,EAAE,KAAK,IAAI,EAAE,IAAIK,GAAG,2EAA2E,EAAE,OAAOa,CAAC,CACzZ,SAASU,GAAE5B,EAAEK,EAAEC,EAAE,CAAC,GAASN,GAAN,KAAQ,OAAOA,EAAE,IAAIe,EAAE,CAAE,EAACC,EAAE,EAAEW,UAAE3B,EAAEe,EAAE,GAAG,GAAG,SAASf,EAAE,CAAC,OAAOK,EAAE,KAAKC,EAAEN,EAAEgB,GAAG,CAAC,CAAC,EAASD,CAAC,CAAC,SAASc,GAAE7B,EAAE,CAAC,GAAQA,EAAE,UAAP,GAAe,CAAC,IAAIK,EAAEL,EAAE,QAAQK,EAAEA,EAAG,EAACA,EAAE,KAAK,SAASA,EAAE,EAAQL,EAAE,UAAN,GAAoBA,EAAE,UAAP,MAAeA,EAAE,QAAQ,EAAEA,EAAE,QAAQK,EAAC,EAAE,SAASA,EAAE,EAAQL,EAAE,UAAN,GAAoBA,EAAE,UAAP,MAAeA,EAAE,QAAQ,EAAEA,EAAE,QAAQK,EAAC,CAAC,EAAOL,EAAE,UAAP,KAAiBA,EAAE,QAAQ,EAAEA,EAAE,QAAQK,EAAE,CAAC,GAAOL,EAAE,UAAN,EAAc,OAAOA,EAAE,QAAQ,QAAQ,MAAMA,EAAE,OAAQ,CAC5Z,IAAI8B,GAAE,CAAC,QAAQ,IAAI,EAAEC,GAAE,CAAC,WAAW,IAAI,EAAEC,GAAE,CAAC,uBAAuBF,GAAE,wBAAwBC,GAAE,kBAAkBnB,EAAC,EAAEqB,GAAA,SAAiB,CAAC,IAAIL,GAAE,QAAQ,SAAS5B,EAAEK,EAAEC,EAAE,CAACsB,GAAE5B,EAAE,UAAU,CAACK,EAAE,MAAM,KAAK,SAAS,CAAC,EAAEC,CAAC,CAAC,EAAE,MAAM,SAASN,EAAE,CAAC,IAAIK,EAAE,EAAEuB,UAAE5B,EAAE,UAAU,CAACK,GAAG,CAAC,EAASA,CAAC,EAAE,QAAQ,SAASL,EAAE,CAAC,OAAO4B,GAAE5B,EAAE,SAASA,EAAE,CAAC,OAAOA,CAAC,CAAC,GAAG,CAAE,GAAE,KAAK,SAASA,EAAE,CAAC,GAAG,CAACuB,GAAEvB,CAAC,EAAE,MAAM,MAAM,uEAAuE,EAAE,OAAOA,CAAC,CAAC,EAAEiC,GAAA,UAAkB7B,GAAkB6BLine truncated
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
@charset "UTF-8";.excalidraw .ToolIcon{border-radius:var(--border-radius-lg);display:inline-flex;align-items:center;position:relative;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}.excalidraw .ToolIcon__hidden{display:none!important}.excalidraw .ToolIcon.fillable .ToolIcon_type_radio:checked+.ToolIcon__icon,.excalidraw .ToolIcon.fillable .ToolIcon_type_checkbox:checked+.ToolIcon__icon{--icon-fill-color: var(--color-on-primary-container)}.excalidraw .ToolIcon.fillable .ToolIcon_type_radio:checked+.ToolIcon__icon svg,.excalidraw .ToolIcon.fillable .ToolIcon_type_checkbox:checked+.ToolIcon__icon svg{fill:var(--icon-fill-color)}.excalidraw .ToolIcon .ToolIcon_type_radio:checked+.ToolIcon__icon,.excalidraw .ToolIcon .ToolIcon_type_checkbox:checked+.ToolIcon__icon{background:var(--color-surface-primary-container);--keybinding-color: var(--color-on-primary-container)}.excalidraw .ToolIcon .ToolIcon_type_radio:checked+.ToolIcon__icon svg,.excalidraw .ToolIcon .ToolIcon_type_checkbox:checked+.ToolIcon__icon svg{color:var(--color-on-primary-container)}.excalidraw .ToolIcon .ToolIcon__keybinding{bottom:4px;right:4px}.excalidraw .ToolIcon .ToolIcon__icon:hover{background:var(--button-hover-bg)}.excalidraw .ToolIcon .ToolIcon__icon:active{background:var(--button-hover-bg);border:1px solid var(--button-active-border)}.excalidraw .ToolIcon .ToolIcon__icon:active svg{color:var(--color-on-primary-container)}.excalidraw .ToolIcon--plain{background-color:transparent}.excalidraw .ToolIcon--plain .ToolIcon__icon{width:2rem;height:2rem}.excalidraw .ToolIcon_type_radio,.excalidraw .ToolIcon_type_checkbox{position:absolute;opacity:0;pointer-events:none}.excalidraw .ToolIcon__icon{box-sizing:border-box;width:var(--default-button-size);height:var(--default-button-size);color:var(--icon-fill-color);display:flex;justify-content:center;align-items:center;border-radius:var(--border-radius-lg)}.excalidraw .ToolIcon__icon+.ToolIcon__label{margin-inline-start:0}.excalidraw .ToolIcon__icon svg{position:relative;width:var(--default-icon-size);height:var(--default-icon-size);color:var(--icon-fill-color)}.excalidraw .ToolIcon__label{display:flex;align-items:center;color:var(--icon-fill-color);font-family:var(--ui-font);margin:0 .8em;text-overflow:ellipsis}.excalidraw .ToolIcon__label .Spinner{margin-left:.6em}.excalidraw .ToolIcon_size_small .ToolIcon__icon{width:2rem;height:2rem;font-size:.8em}.excalidraw .ToolIcon_type_button,.excalidraw .Modal .ToolIcon_type_button{padding:0;border:none;margin:0;font-size:inherit;background-color:initial}.excalidraw .ToolIcon_type_button:focus-visible,.excalidraw .Modal .ToolIcon_type_button:focus-visible{box-shadow:0 0 0 2px var(--focus-highlight-color)}.excalidraw .ToolIcon_type_button.ToolIcon--selected,.excalidraw .Modal .ToolIcon_type_button.ToolIcon--selected{background-color:var(--button-gray-2)}.excalidraw .ToolIcon_type_button.ToolIcon--selected:active,.excalidraw .Modal .ToolIcon_type_button.ToolIcon--selected:active,.excalidraw .ToolIcon_type_button:active,.excalidraw .Modal .ToolIcon_type_button:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon_type_button--show,.excalidraw .Modal .ToolIcon_type_button--show{visibility:visible}.excalidraw .ToolIcon_type_button--hide,.excalidraw .Modal .ToolIcon_type_button--hide{display:none!important}.excalidraw .ToolIcon_type_floating,.excalidraw .ToolIcon_type_floating:hover,.excalidraw .ToolIcon_type_floating:active{background-color:transparent}.excalidraw .ToolIcon_type_floating .ToolIcon__icon{background-color:var(--button-gray-1);width:2rem;height:2rem}.excalidraw .ToolIcon_type_floating .ToolIcon__icon:hover{background-color:var(--button-gray-2)}.excalidraw .ToolIcon_type_floating .ToolIcon__icon:active{background-color:var(--button-gray-3)}.excalidraw .ToolIcon__keybinding{position:absolute;bottom:2px;right:3px;font-size:.625rem;color:var(--keybinding-color);font-family:var(--ui-font);-webkit-user-select:none;user-select:none}:root[dir=ltr] .excalidraw .unlocked-icon{left:2px}:root[dir=rtl] .excalidraw .unlocked-icon{right:2px}.excalidraw .App-toolbar-container .ToolIcon__icon{width:var(--lg-button-size);height:var(--lg-button-size)}@media screen and (max-width: 450px){.excalidraw .App-toolbar-container .ToolIcon__icon{width:1.8rem;height:1.8rem}}@media screen and (max-width: 379px){.excalidraw .App-toolbar-container .ToolIcon__icon{width:1.5rem;height:1.5rem}}.excalidraw .App-toolbar-container .ToolIcon__icon svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .App-toolbar-container .ToolIcon__LaserPointer .ToolIcon__icon,.excalidraw .App-toolbar-container .ToolIcon__MagicButton .ToolIcon__icon{width:var(--default-button-size);height:var(--default-button-size)}.excalidraw .Spinner{display:flex;align-items:center;justify-content:center;height:100%;margin-left:auto;margin-right:auto;--spinner-color: var(--icon-fill-color)}.excalidraw .Spinner svg{animation:rotate 1.6s lLine truncated
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
const d=Object.create(null);d.open="0";d.close="1";d.ping="2";d.pong="3";d.message="4";d.upgrade="5";d.noop="6";const O=Object.create(null);Object.keys(d).forEach(s=>{O[d[s]]=s});const L={type:"error",data:"parser error"},te=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",se=typeof ArrayBuffer=="function",ne=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,V=({type:s,data:e},t,n)=>te&&e instanceof Blob?t?n(e):$(e,n):se&&(e instanceof ArrayBuffer||ne(e))?t?n(e):$(new Blob([e]),n):n(d[s]+(e||"")),$=(s,e)=>{const t=new FileReader;return t.onload=function(){const n=t.result.split(",")[1];e("b"+(n||""))},t.readAsDataURL(s)};function Y(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let S;function ye(s,e){if(te&&s.data instanceof Blob)return s.data.arrayBuffer().then(Y).then(e);if(se&&(s.data instanceof ArrayBuffer||ne(s.data)))return e(Y(s.data));V(s,!1,t=>{S||(S=new TextEncoder),e(S.encode(t))})}const z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<z.length;s++)E[z.charCodeAt(s)]=s;const ge=s=>{let e=s.length*.75,t=s.length,n,i=0,r,o,h,a;s[s.length-1]==="="&&(e--,s[s.length-2]==="="&&e--);const g=new ArrayBuffer(e),y=new Uint8Array(g);for(n=0;n<t;n+=4)r=E[s.charCodeAt(n)],o=E[s.charCodeAt(n+1)],h=E[s.charCodeAt(n+2)],a=E[s.charCodeAt(n+3)],y[i++]=r<<2|o>>4,y[i++]=(o&15)<<4|h>>2,y[i++]=(h&3)<<6|a&63;return g},me=typeof ArrayBuffer=="function",F=(s,e)=>{if(typeof s!="string")return{type:"message",data:ie(s,e)};const t=s.charAt(0);return t==="b"?{type:"message",data:be(s.substring(1),e)}:O[t]?s.length>1?{type:O[t],data:s.substring(1)}:{type:O[t]}:L},be=(s,e)=>{if(me){const t=ge(s);return ie(t,e)}else return{base64:!0,data:s}},ie=(s,e)=>{switch(e){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}},re="",we=(s,e)=>{const t=s.length,n=new Array(t);let i=0;s.forEach((r,o)=>{V(r,!1,h=>{n[o]=h,++i===t&&e(n.join(re))})})},ve=(s,e)=>{const t=s.split(re),n=[];for(let i=0;i<t.length;i++){const r=F(t[i],e);if(n.push(r),r.type==="error")break}return n};function _e(){return new TransformStream({transform(s,e){ye(s,t=>{const n=t.length;let i;if(n<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,n);else if(n<65536){i=new Uint8Array(3);const r=new DataView(i.buffer);r.setUint8(0,126),r.setUint16(1,n)}else{i=new Uint8Array(9);const r=new DataView(i.buffer);r.setUint8(0,127),r.setBigUint64(1,BigInt(n))}s.data&&typeof s.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let x;function k(s){return s.reduce((e,t)=>e+t.length,0)}function A(s,e){if(s[0].length===e)return s.shift();const t=new Uint8Array(e);let n=0;for(let i=0;i<e;i++)t[i]=s[0][n++],n===s[0].length&&(s.shift(),n=0);return s.length&&n<s[0].length&&(s[0]=s[0].slice(n)),t}function Ee(s,e){x||(x=new TextDecoder);const t=[];let n=0,i=-1,r=!1;return new TransformStream({transform(o,h){for(t.push(o);;){if(n===0){if(k(t)<1)break;const a=A(t,1);r=(a[0]&128)===128,i=a[0]&127,i<126?n=3:i===126?n=1:n=2}else if(n===1){if(k(t)<2)break;const a=A(t,2);i=new DataView(a.buffer,a.byteOffset,a.length).getUint16(0),n=3}else if(n===2){if(k(t)<8)break;const a=A(t,8),g=new DataView(a.buffer,a.byteOffset,a.length),y=g.getUint32(0);if(y>Math.pow(2,21)-1){h.enqueue(L);break}i=y*Math.pow(2,32)+g.getUint32(4),n=3}else{if(k(t)<i)break;const a=A(t,i);h.enqueue(F(r?a:x.decode(a),e)),n=0}if(i===0||i>s){h.enqueue(L);break}}}})}const oe=4;function u(s){if(s)return ke(s)}function ke(s){for(var e in u.prototype)s[e]=u.prototype[e];return s}u.prototype.on=u.prototype.addEventListener=function(s,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(e),this};u.prototype.once=function(s,e){function t(){this.off(s,t),e.apply(this,arguments)}return t.fn=e,this.on(s,t),this};u.prototype.off=u.prototype.removeListener=u.prototype.removeAllListeners=u.prototype.removeEventListener=function(s,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+s];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var n,i=0;i<t.length;i++)if(n=t[i],n===e||n.fn===e){t.splice(i,1);break}return t.length===0&&delete this._callbacks["$"+s],this};u.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+s],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(t){t=t.slice(0);for(var n=0,i=t.length;n<i;++n)t[n].apply(this,e)}return this};u.prototype.emitReserved=u.prototype.emit;u.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]};u.prototype.hasListeners=function(s){return!!this.listeners(s).length};const f=typeof self<Line truncated
|
|
||||||
//# sourceMappingURL=index-5Jz4PfUi.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index-5Jz4PfUi.js","sources":["../../../node_modules/engine.io-parser/build/esm/commons.js","../../../node_modules/engine.io-parser/build/esm/encodePacket.browser.js","../../../node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js","../../../node_modules/engine.io-parser/build/esm/decodePacket.browser.js","../../../node_modules/engine.io-parser/build/esm/index.js","../../../node_modules/@socket.io/component-emitter/index.mjs","../../../node_modules/engine.io-client/build/esm/globalThis.browser.js","../../../node_modules/engine.io-client/build/esm/util.js","../../../node_modules/engine.io-client/build/esm/contrib/parseqs.js","../../../node_modules/engine.io-client/build/esm/transport.js","../../../node_modules/engine.io-client/build/esm/contrib/yeast.js","../../../node_modules/engine.io-client/build/esm/contrib/has-cors.js","../../../node_modules/engine.io-client/build/esm/transports/xmlhttprequest.browser.js","../../../node_modules/engine.io-client/build/esm/transports/polling.js","../../../node_modules/engine.io-client/build/esm/transports/websocket-constructor.browser.js","../../../node_modules/engine.io-client/build/esm/transports/websocket.js","../../../node_modules/engine.io-client/build/esm/transports/webtransport.js","../../../node_modules/engine.io-client/build/esm/transports/index.js","../../../node_modules/engine.io-client/build/esm/contrib/parseuri.js","../../../node_modules/engine.io-client/build/esm/socket.js","../../../node_modules/socket.io-client/build/esm/url.js","../../../node_modules/socket.io-parser/build/esm/is-binary.js","../../../node_modules/socket.io-parser/build/esm/binary.js","../../../node_modules/socket.io-parser/build/esm/index.js","../../../node_modules/socket.io-client/build/esm/on.js","../../../node_modules/socket.io-client/build/esm/socket.js","../../../node_modules/socket.io-client/build/esm/contrib/backo2.js","../../../node_modules/socket.io-client/build/esm/manager.js","../../../node_modules/socket.io-client/build/esm/index.js"],"sourcesContent":["const PACKET_TYPES = Object.create(null); // no Map = no polyfill\nPACKET_TYPES[\"open\"] = \"0\";\nPACKET_TYPES[\"close\"] = \"1\";\nPACKET_TYPES[\"ping\"] = \"2\";\nPACKET_TYPES[\"pong\"] = \"3\";\nPACKET_TYPES[\"message\"] = \"4\";\nPACKET_TYPES[\"upgrade\"] = \"5\";\nPACKET_TYPES[\"noop\"] = \"6\";\nconst PACKET_TYPES_REVERSE = Object.create(null);\nObject.keys(PACKET_TYPES).forEach(key => {\n PACKET_TYPES_REVERSE[PACKET_TYPES[key]] = key;\n});\nconst ERROR_PACKET = { type: \"error\", data: \"parser error\" };\nexport { PACKET_TYPES, PACKET_TYPES_REVERSE, ERROR_PACKET };\n","import { PACKET_TYPES } from \"./commons.js\";\nconst withNativeBlob = typeof Blob === \"function\" ||\n (typeof Blob !== \"undefined\" &&\n Object.prototype.toString.call(Blob) === \"[object BlobConstructor]\");\nconst withNativeArrayBuffer = typeof ArrayBuffer === \"function\";\n// ArrayBuffer.isView method is not defined in IE10\nconst isView = obj => {\n return typeof ArrayBuffer.isView === \"function\"\n ? ArrayBuffer.isView(obj)\n : obj && obj.buffer instanceof ArrayBuffer;\n};\nconst encodePacket = ({ type, data }, supportsBinary, callback) => {\n if (withNativeBlob && data instanceof Blob) {\n if (supportsBinary) {\n return callback(data);\n }\n else {\n return encodeBlobAsBase64(data, callback);\n }\n }\n else if (withNativeArrayBuffer &&\n (data instanceof ArrayBuffer || isView(data))) {\n if (supportsBinary) {\n return callback(data);\n }\n else {\n return encodeBlobAsBase64(new Blob([data]), callback);\n }\n }\n // plain string\n return callback(PACKET_TYPES[type] + (data || \"\"));\n};\nconst encodeBlobAsBase64 = (data, callback) => {\n const fileReader = new FileReader();\n fileReader.onload = function () {\n const content = fileReader.result.split(\",\")[1];\n callback(\"b\" + (content || \"\"));\n };\n return fileReader.readAsDataURL(data);\n};\nfunction toArray(data) {\n if (data instanceof Uint8Array) {\n return data;\n }\n else if (data instanceof ArrayBuffer) {\n return new Uint8Array(data);\n }\n else {\n return new Uint8Array(data.buffer, data.byteOffset, data.byteLength);\n }\n}\nlet TEXT_ENCODER;\nexport function encodePacketToBinary(packet, callback) {\n if (withNativeBlob && packet.data instanceof Blob) {\n return packet.data\n .arrayBuffer()\n .then(toArray)\n .then(callback);\n }\n else if (withNativeArrayBuffer &&\n (packet.data instanceof ArrayBuffer || isView(packet.data))) {\n return callback(toArray(packet.data));\n }\n encodePacket(packet, false, encoded => {\n if (!TEXT_ENCODER) {\n TEXT_ENCODER = new TextEncoder();\n }\n callback(TEXT_ENCODER.encode(encoded));\n Line truncated
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
import{b as k,a as v,m as D,G,l as j}from"./layout-ewywu0M6.js";import{i as A,u as M,s as _,a as H,b as V,p as B,c as q,d as U,e as W,f as Y,g as O,h as X}from"./edges-49ac43a2-VNwnN65b.js";import{l as i,q as N,c as E,h as L}from"./index-jpNTxDe4.js";import{c as z}from"./createText-3df630b5-oLWc-GwH.js";var K=4;function Q(e){return k(e,K)}function y(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:Z(e),edges:I(e)};return v(e.graph())||(t.value=Q(e.graph())),t}function Z(e){return D(e.nodes(),function(t){var n=e.node(t),r=e.parent(t),s={v:t};return v(n)||(s.value=n),v(r)||(s.parent=r),s})}function I(e){return D(e.edges(),function(t){var n=e.edge(t),r={v:t.v,w:t.w};return v(t.name)||(r.name=t.name),v(n)||(r.value=n),r})}let f={},x={},T={};const tt=()=>{x={},T={},f={}},S=(e,t)=>(i.trace("In isDecendant",t," ",e," = ",x[t].includes(e)),!!x[t].includes(e)),et=(e,t)=>(i.info("Decendants of ",t," is ",x[t]),i.info("Edge is ",e),e.v===t||e.w===t?!1:x[t]?x[t].includes(e.v)||S(e.v,t)||S(e.w,t)||x[t].includes(e.w):(i.debug("Tilt, ",t,",not in decendants"),!1)),J=(e,t,n,r)=>{i.warn("Copying children of ",e,"root",r,"data",t.node(e),r);const s=t.children(e)||[];e!==r&&s.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(a=>{if(t.children(a).length>0)J(a,t,n,r);else{const h=t.node(a);i.info("cp ",a," to ",r," with parent ",e),n.setNode(a,h),r!==t.parent(a)&&(i.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==r&&a!==e?(i.debug("Setting parent",a,e),n.setParent(a,e)):(i.info("In copy ",e,"root",r,"data",t.node(e),r),i.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==r,"node!==clusterId",a!==e));const l=t.edges(a);i.debug("Copying Edges",l),l.forEach(d=>{i.info("Edge",d);const w=t.edge(d.v,d.w,d.name);i.info("Edge data",w,r);try{et(d,r)?(i.info("Copying as ",d.v,d.w,w,d.name),n.setEdge(d.v,d.w,w,d.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",d.v,"-->",d.w," rootId: ",r," clusterId:",e)}catch(g){i.error(g)}})}i.debug("Removing node",a),t.removeNode(a)})},p=(e,t)=>{const n=t.children(e);let r=[...n];for(const s of n)T[s]=e,r=[...r,...p(s,t)];return r},m=(e,t)=>{i.trace("Searching",e);const n=t.children(e);if(i.trace("Searching children of id ",e,n),n.length<1)return i.trace("This is a valid node",e),e;for(const r of n){const s=m(r,t);if(s)return i.trace("Found replacement for",e," => ",s),s}},b=e=>!f[e]||!f[e].externalConnections?e:f[e]?f[e].id:e,nt=(e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",m(n,e)),x[n]=p(n,e),f[n]={id:m(n,e),clusterData:e.node(n)})}),e.nodes().forEach(function(n){const r=e.children(n),s=e.edges();r.length>0?(i.debug("Cluster identified",n,x),s.forEach(a=>{if(a.v!==n&&a.w!==n){const h=S(a.v,n),l=S(a.w,n);h^l&&(i.warn("Edge: ",a," leaves cluster ",n),i.warn("Decendants of XXX ",n,": ",x[n]),f[n].externalConnections=!0)}})):i.debug("Not a cluster ",n,x)}),e.edges().forEach(function(n){const r=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,a=n.w;if(i.warn("Fix XXX",f,"ids:",n.v,n.w,"Translating: ",f[n.v]," --- ",f[n.w]),f[n.v]&&f[n.w]&&f[n.v]===f[n.w]){i.warn("Fixing and trixing link to self - removing XXX",n.v,n.w,n.name),i.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=b(n.v),a=b(n.w),e.removeEdge(n.v,n.w,n.name);const h=n.w+"---"+n.v;e.setNode(h,{domId:h,id:h,labelStyle:"",labelText:r.label,padding:0,shape:"labelRect",style:""});const l=JSON.parse(JSON.stringify(r)),d=JSON.parse(JSON.stringify(r));l.label="",l.arrowTypeEnd="none",d.label="",l.fromCluster=n.v,d.toCluster=n.v,e.setEdge(s,h,l,n.name+"-cyclic-special"),e.setEdge(h,a,d,n.name+"-cyclic-special")}else(f[n.v]||f[n.w])&&(i.warn("Fixing and trixing - removing XXX",n.v,n.w,n.name),s=b(n.v),a=b(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v&&(r.fromCluster=n.v),a!==n.w&&(r.toCluster=n.w),i.warn("Fix Replacing with XXX",s,a,n.name),e.setEdge(s,a,r,n.name))}),i.warn("Adjusted Graph",y(e)),R(e,0),i.trace(f)},R=(e,t)=>{if(i.warn("extractor - ",t,y(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),r=!1;for(const s of n){const a=e.children(s);r=r||a.length>0}if(!r){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(const s of n)if(i.debug("Extracting node",s,f,f[s]&&!f[s].externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!f[s])i.debug("Not a cluster",s,t);else if(!f[s].externalConnections&&e.children(s)&&e.children(s).length>0){i.warn("Cluster without external connections, without a parent and with children",s,t);let h=e.graph().rankdir==="TB"?"LR":"TB";f[s]&&f[s].clusterData&&f[s].clusterData.dir&&(h=f[s].clusterData.dir,i.warn("Fixing dir",f[s].clusterData.dir,h));const l=newLine truncated
|
|
||||||
//# sourceMappingURL=index-a92ac404-gZDUZJdp.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index-a92ac404-gZDUZJdp.js","sources":["../../../node_modules/lodash-es/clone.js","../../../node_modules/dagre-d3-es/src/graphlib/json.js","../../../node_modules/mermaid/dist/index-a92ac404.js"],"sourcesContent":["import baseClone from './_baseClone.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\nfunction clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n}\n\nexport default clone;\n","import * as _ from 'lodash-es';\nimport { Graph } from './graph.js';\n\nexport { write, read };\n\nfunction write(g) {\n var json = {\n options: {\n directed: g.isDirected(),\n multigraph: g.isMultigraph(),\n compound: g.isCompound(),\n },\n nodes: writeNodes(g),\n edges: writeEdges(g),\n };\n if (!_.isUndefined(g.graph())) {\n json.value = _.clone(g.graph());\n }\n return json;\n}\n\nfunction writeNodes(g) {\n return _.map(g.nodes(), function (v) {\n var nodeValue = g.node(v);\n var parent = g.parent(v);\n var node = { v: v };\n if (!_.isUndefined(nodeValue)) {\n node.value = nodeValue;\n }\n if (!_.isUndefined(parent)) {\n node.parent = parent;\n }\n return node;\n });\n}\n\nfunction writeEdges(g) {\n return _.map(g.edges(), function (e) {\n var edgeValue = g.edge(e);\n var edge = { v: e.v, w: e.w };\n if (!_.isUndefined(e.name)) {\n edge.name = e.name;\n }\n if (!_.isUndefined(edgeValue)) {\n edge.value = edgeValue;\n }\n return edge;\n });\n}\n\nfunction read(json) {\n var g = new Graph(json.options).setGraph(json.value);\n _.each(json.nodes, function (entry) {\n g.setNode(entry.v, entry.value);\n if (entry.parent) {\n g.setParent(entry.v, entry.parent);\n }\n });\n _.each(json.edges, function (entry) {\n g.setEdge({ v: entry.v, w: entry.w, name: entry.name }, entry.value);\n });\n return g;\n}\n","import { layout } from \"dagre-d3-es/src/dagre/index.js\";\nimport * as graphlibJson from \"dagre-d3-es/src/graphlib/json.js\";\nimport { c as createLabel, i as intersectRect, a as insertMarkers, b as clear$2, d as clear$3, u as updateNodeBounds, s as setNodeElem, e as insertNode, f as insertEdgeLabel, p as positionNode, g as insertEdge, h as positionEdgeLabel } from \"./edges-49ac43a2.js\";\nimport { l as log, n as evaluate, c as getConfig } from \"./mermaid-b0ad2de1.js\";\nimport * as graphlib from \"dagre-d3-es/src/graphlib/index.js\";\nimport { c as createText } from \"./createText-3df630b5.js\";\nimport { select } from \"d3\";\nlet clusterDb = {};\nlet descendants = {};\nlet parents = {};\nconst clear$1 = () => {\n descendants = {};\n parents = {};\n clusterDb = {};\n};\nconst isDescendant = (id, ancenstorId) => {\n log.trace(\"In isDecendant\", ancenstorId, \" \", id, \" = \", descendants[ancenstorId].includes(id));\n if (descendants[ancenstorId].includes(id)) {\n return true;\n }\n return false;\n};\nconst edgeInCluster = (edge, clusterId) => {\n log.info(\"Decendants of \", clusterId, \" is \", descendants[clusterId]);\n log.info(\"Edge is \", edge);\n if (edge.v === clusterId) {\n return false;\n }\n if (edge.w === clusterId) {\n return false;\n }\n if (!descendants[clusterId]) {\n log.debug(\"Tilt, \", clusterId, \",not in decendants\");\n return false;\n }\n return descendants[clusterId].includes(edge.v) || isDescendant(edge.v, clusterId) || isDescendant(edge.w, clusterId) || descendants[clusterId].includes(edge.w);\n};\nconst copy = (clusterId, graph, newGraph, rootId) => {\n log.warn(\n \"Copying children of \",\n clusterId,\n \"root\",\n rootId,\n \"data\",\n graph.node(clusterId),\n rootId\n );\n const nodes = graph.children(clusterId) || [];\n if (clusterId !== rootId) {\n nodes.push(clusterId);\n }\n log.warn(\"Copying (nodes) clusterId\", clusterId, \"nodes\", nodes);\n nodes.forEach((node) => {\n if (graph.children(node).length > 0) {\n copy(node, graph, newGraph, rootId);\n } else {\n const data = graph.node(node);\n log.info(\"cp \", node, \" to \", rootId, \" with parenLine truncated
|
|
||||||
@@ -1,99 +0,0 @@
|
|||||||
import{h as fc,g as pc,i as rt}from"./index-2K3MavtT.js";const Ln=20,gc={rect:"rectangle",circle:"ellipse"},mc={startOnLoad:!1,flowchart:{curve:"linear"},themeVariables:{fontSize:`${Ln*1.25}px`}};class Cr{constructor({converter:e}){this.convert=(i,r)=>this.converter(i,{...r,fontSize:r.fontSize||Ln}),this.converter=e}}var de;(function(t){t.ROUND="round",t.STADIUM="stadium",t.DOUBLECIRCLE="doublecircle",t.CIRCLE="circle",t.DIAMOND="diamond"})(de||(de={}));var cn;(function(t){t.COLOR="color"})(cn||(cn={}));var Ae;(function(t){t.FILL="fill",t.STROKE="stroke",t.STROKE_WIDTH="stroke-width",t.STROKE_DASHARRAY="stroke-dasharray"})(Ae||(Ae={}));var Fn={};Object.defineProperty(Fn,"__esModule",{value:!0});var Ms=Fn.removeMarkdown=void 0,_c=function(t,e){e===void 0&&(e={listUnicodeChar:""}),e=e||{},e.listUnicodeChar=e.hasOwnProperty("listUnicodeChar")?e.listUnicodeChar:!1,e.stripListLeaders=e.hasOwnProperty("stripListLeaders")?e.stripListLeaders:!0,e.gfm=e.hasOwnProperty("gfm")?e.gfm:!0,e.useImgAltText=e.hasOwnProperty("useImgAltText")?e.useImgAltText:!0,e.preserveLinks=e.hasOwnProperty("preserveLinks")?e.preserveLinks:!1;var i=t||"";i=i.replace(/^(-\s*?|\*\s*?|_\s*?){3,}\s*$/gm,"");try{e.stripListLeaders&&(e.listUnicodeChar?i=i.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,e.listUnicodeChar+" $1"):i=i.replace(/^([\s\t]*)([\*\-\+]|\d+\.)\s+/gm,"$1")),e.gfm&&(i=i.replace(/\n={2,}/g,`
|
|
||||||
`).replace(/~{3}.*\n/g,"").replace(/~~/g,"").replace(/`{3}.*\n/g,"")),e.preserveLinks&&(i=i.replace(/\[(.*?)\][\[\(](.*?)[\]\)]/g,"$1 ($2)")),i=i.replace(/<[^>]*>/g,"").replace(/^[=\-]{2,}\s*$/g,"").replace(/\[\^.+?\](\: .*?$)?/g,"").replace(/\s{0,2}\[.*?\]: .*?$/g,"").replace(/\!\[(.*?)\][\[\(].*?[\]\)]/g,e.useImgAltText?"$1":"").replace(/\[(.*?)\][\[\(].*?[\]\)]/g,"$1").replace(/^\s{0,3}>\s?/g,"").replace(/(^|\n)\s{0,3}>\s?/g,`
|
|
||||||
|
|
||||||
`).replace(/^\s{1,2}\[(.*?)\]: (\S+)( ".*?")?\s*$/g,"").replace(/^(\n)?\s{0,}#{1,6}\s+| {0,}(\n)?\s{0,}#{0,} {0,}(\n)?\s{0,}$/gm,"$1$2$3").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/([\*_]{1,3})(\S.*?\S{0,1})\1/g,"$2").replace(/(`{3,})(.*?)\1/gm,"$2").replace(/`(.+?)`/g,"$1").replace(/\n{2,}/g,`
|
|
||||||
|
|
||||||
`)}catch(r){return console.error(r),t}return i};Ms=Fn.removeMarkdown=_c;const yc={arrow_circle:{endArrowhead:"dot"},arrow_cross:{endArrowhead:"bar"},double_arrow_circle:{endArrowhead:"dot",startArrowhead:"dot"},double_arrow_cross:{endArrowhead:"bar",startArrowhead:"bar"},double_arrow_point:{endArrowhead:"arrow",startArrowhead:"arrow"}},bc=t=>yc[t],Bi=t=>{let e=t.text;return t.labelType==="markdown"&&(e=Ms(t.text)),Cc(e)},Cc=t=>{const e=/\s?(fa|fab):[a-zA-Z0-9-]+/g;return t.replace(e,"")},xc=t=>{const e={};return Object.keys(t).forEach(i=>{var r;switch(i){case Ae.FILL:{e.backgroundColor=t[i],e.fillStyle="solid";break}case Ae.STROKE:{e.strokeColor=t[i];break}case Ae.STROKE_WIDTH:{e.strokeWidth=Number((r=t[i])==null?void 0:r.split("px")[0]);break}case Ae.STROKE_DASHARRAY:{e.strokeStyle="dashed";break}}}),e},Tc=t=>{const e={};return Object.keys(t).forEach(i=>{switch(i){case cn.COLOR:{e.strokeColor=t[i];break}}}),e},Sc=t=>{const e={};t.subGraphs.map(r=>{r.nodeIds.forEach(n=>{e[r.id]={id:r.id,parent:null,isLeaf:!1},e[n]={id:n,parent:r.id,isLeaf:t.vertices[n]!==void 0}})});const i={};return[...Object.keys(t.vertices),...t.subGraphs.map(r=>r.id)].forEach(r=>{if(!e[r])return;let n=e[r];const s=[];for(n.isLeaf||s.push(`subgraph_group_${n.id}`);n.parent;)s.push(`subgraph_group_${n.parent}`),n=e[n.parent];i[r]=s}),{getGroupIds:r=>i[r]||[],getParentId:r=>e[r]?e[r].parent:null}},kc=new Cr({converter:(t,e)=>{const i=[],r=e.fontSize,{getGroupIds:n,getParentId:s}=Sc(t);return t.subGraphs.reverse().forEach(o=>{const a=n(o.id),l={id:o.id,type:"rectangle",groupIds:a,x:o.x,y:o.y,width:o.width,height:o.height,label:{groupIds:a,text:Bi(o),fontSize:r,verticalAlign:"top"}};i.push(l)}),Object.values(t.vertices).forEach(o=>{if(!o)return;const a=n(o.id),l=xc(o.containerStyle),c=Tc(o.labelStyle);let h={id:o.id,type:"rectangle",groupIds:a,x:o.x,y:o.y,width:o.width,height:o.height,strokeWidth:2,label:{groupIds:a,text:Bi(o),fontSize:r,...c},link:o.link||null,...l};switch(o.type){case de.STADIUM:{h={...h,roundness:{type:3}};break}case de.ROUND:{h={...h,roundness:{type:3}};break}case de.DOUBLECIRCLE:{a.push(`doublecircle_${o.id}}`);const p={type:"ellipse",groupIds:a,x:o.x+5,y:o.y+5,width:o.width-5*2,height:o.height-5*2,strokeWidth:2,roundness:{type:3},label:{groupIds:a,text:Bi(o),fontSize:r}};h={...h,groupIds:a,type:"ellipse"},i.push(p);break}case de.CIRCLE:{h.type="ellipse";break}case de.DIAMOND:{h.type="diamond";break}}i.push(h)}),t.edges.forEach(o=>{let a=[];const l=s(o.start),c=s(o.end);l&&l===c&&(a=n(l));const{startX:h,startY:u,reflectionPoints:p}=o,d=p.map(E=>[E.x-p[0].x,E.y-p[0].y]),m=bc(o.type),C={id:`${o.start}_${o.end}`,type:"arrow",groupIds:a,x:h,y:u,strokeWidth:o.stroke==="thick"?4:2,strokeStyle:o.stroke==="dotted"?"dashed":void 0,points:d,...o.text?{label:{text:Bi(o),fontSize:r,groupIds:a}}:{},roundness:{type:2},...m},$=i.find(E=>E.id===o.start),y=i.find(E=>E.id===o.end);!$||!y||(C.start={id:$.id||""},C.end={id:y.id||""},i.push(C))}),{elements:i}}});let Xt=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,i)=>(i&=63,i<36?e+=i.toString(36):i<62?e+=(i-26).toString(36).toUpperCase():i>62?e+="-":e+="_",e),"");const vc=new Cr({converter:t=>{const e=Xt(),{width:i,height:r}=t,n={type:"image",x:0,y:0,width:i,height:r,status:"saved",fileId:e};return{files:{[e]:{id:e,mimeType:t.mimeType,dataURL:t.dataURL}},elements:[n]}}}),ti=t=>{const e={type:"line",x:t.startX,y:t.startY,points:[[0,0],[t.endX-t.startX,t.endY-t.startY]],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:t.strokeStyle||"solid",strokeColor:t.strokeColor||"#000",strokeWidth:t.strokeWidth||1};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},Ji=t=>{const e={type:"text",x:t.x,y:t.y,width:t.width,height:t.height,text:t.text||"",fontSize:t.fontSize,verticalAlign:"middle"};return t.groupId&&Object.assign(e,{groupIds:[t.groupId]}),t.id&&Object.assign(e,{id:t.id}),e},Ke=t=>{var r,n,s,o;let e={};t.type==="rectangle"&&t.subtype==="activation"&&(e={backgroundColor:"#e9ecef",fillStyle:"solid"});const i={id:t.id,type:t.type,x:t.x,y:t.y,width:t.width,height:t.height,label:{text:((r=t==null?void 0:t.label)==null?void 0:r.text)||"",fontSize:(n=t==null?void 0:t.label)==null?void 0:n.fontSize,verticalAlign:((s=t.label)==null?void 0:s.verticalAlign)||"middle",strokeColor:((o=t.label)==null?void 0:o.color)||"#000",groupIds:t.groupId?[t.groupId]:[]},strokeStyle:t==null?void 0:t.strokeStyle,strokeWidth:t==null?void 0:t.strokeWidth,strokeColor:t==null?void 0:t.strokeColor,backgroundColor:t==null?void 0:t.bgColor,fillStyle:"solid",...e};return t.groupId&&Object.assign(i,{groupIds:[t.groupId]}),i},$s=t=>{var i;const e={type:"arrow",x:t.startX,y:t.startY,points:t.points||[[0,0],[t.endX-t.startX,t.endY-t.startY]],width:t.endX-t.startX,height:t.endY-t.startY,strokeStyle:(t==null?void 0:t.strokeStyle)||"solid",endArrowhead:(t==null?void 0:t.endArrowhead)||null,startArrowhead:(t==null?void 0:t.startArrowhead)||null,label:{text:((i=t==null?voi
Line truncated
|
|
||||||
[ ]{`+Math.min.apply(Math,n)+"}","g");r=r.map(function(a){return a.replace(s,`
|
|
||||||
`)})}r[0]=r[0].replace(/^\r?\n/,"");var o=r[0];return e.forEach(function(a,l){var c=o.match(/(?:^|\n)( *)$/),h=c?c[1]:"",u=a;typeof a=="string"&&a.includes(`
|
|
||||||
`)&&(u=String(a).split(`
|
|
||||||
`).map(function(p,d){return d===0?p:""+h+p}).join(`
|
|
||||||
`)),o+=u+r[l+1]}),o}var Ds={exports:{}};(function(t,e){(function(i,r){t.exports=r()})(fc,function(){var i=1e3,r=6e4,n=36e5,s="millisecond",o="second",a="minute",l="hour",c="day",h="week",u="month",p="quarter",d="year",m="date",_="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(v){var k=["th","st","nd","rd"],S=v%100;return"["+v+(k[(S-20)%10]||k[S]||k[0])+"]"}},E=function(v,k,S){var L=String(v);return!L||L.length>=k?v:""+Array(k+1-L.length).join(S)+v},W={s:E,z:function(v){var k=-v.utcOffset(),S=Math.abs(k),L=Math.floor(S/60),w=S%60;return(k<=0?"+":"-")+E(L,2,"0")+":"+E(w,2,"0")},m:function v(k,S){if(k.date()<S.date())return-v(S,k);var L=12*(S.year()-k.year())+(S.month()-k.month()),w=k.clone().add(L,u),F=S-w<0,q=k.clone().add(L+(F?-1:1),u);return+(-(L+(S-w)/(F?w-q:q-w))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:u,y:d,w:h,d:c,D:m,h:l,m:a,s:o,ms:s,Q:p}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},x="en",j={};j[x]=y;var U="$isDayjsObject",vt=function(v){return v instanceof it||!(!v||!v[U])},Ct=function v(k,S,L){var w;if(!k)return x;if(typeof k=="string"){var F=k.toLowerCase();j[F]&&(w=F),S&&(j[F]=S,w=F);var q=k.split("-");if(!w&&q.length>1)return v(q[0])}else{var P=k.name;j[P]=k,w=P}return!L&&w&&(x=w),w||!L&&x},z=function(v,k){if(vt(v))return v.clone();var S=typeof k=="object"?k:{};return S.date=v,S.args=arguments,new it(S)},R=W;R.l=Ct,R.i=vt,R.w=function(v,k){return z(v,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var it=function(){function v(S){this.$L=Ct(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[U]=!0}var k=v.prototype;return k.parse=function(S){this.$d=function(L){var w=L.date,F=L.utc;if(w===null)return new Date(NaN);if(R.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var q=w.match(C);if(q){var P=q[2]-1||0,K=(q[7]||"0").substring(0,3);return F?new Date(Date.UTC(q[1],P,q[3]||1,q[4]||0,q[5]||0,q[6]||0,K)):new Date(q[1],P,q[3]||1,q[4]||0,q[5]||0,q[6]||0,K)}}return new Date(w)}(S),this.init()},k.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},k.$utils=function(){return R},k.isValid=function(){return this.$d.toString()!==_},k.isSame=function(S,L){var w=z(S);return this.startOf(L)<=w&&w<=this.endOf(L)},k.isAfter=function(S,L){return z(S)<this.startOf(L)},k.isBefore=function(S,L){return this.endOf(L)<z(S)},k.$g=function(S,L,w){return R.u(S)?this[L]:this.set(w,S)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(S,L){var w=this,F=!!R.u(L)||L,q=R.p(S),P=function(Ot,Q){var at=R.w(w.$u?Date.UTC(w.$y,Q,Ot):new Date(w.$y,Q,Ot),w);return F?at:at.endOf(c)},K=function(Ot,Q){return R.w(w.toDate()[Ot].apply(w.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(Q)),w)},H=this.$W,J=this.$M,st=this.$D,zt="set"+(this.$u?"UTC":"");switch(q){case d:return F?P(1,0):P(31,11);case u:return F?P(1,J):P(0,J+1);case h:var wt=this.$locale().weekStart||0,Qt=(H<wt?H+7:H)-wt;return P(F?st-Qt:st+(6-Qt),J);case c:case m:return K(zt+"Hours",0);case l:return K(zt+"Minutes",1);case a:return K(zt+"Seconds",2);case o:return K(zt+"Milliseconds",3);default:return this.clone()}},k.endOf=function(S){return this.startOf(S,!1)},k.$set=function(S,L){var w,F=R.p(S),q="set"+(this.$u?"UTC":""),P=(w={},w[c]=q+"Date",w[m]=q+"Date",w[u]=q+"Month",w[d]=q+"FullYear",w[l]=q+"Hours",w[a]=q+"Minutes",w[o]=q+"Seconds",w[s]=q+"Milliseconds",w)[F],K=F===c?this.$D+(L-this.$W):L;if(F===u||F===d){var H=this.clone().set(m,1);H.$d[P](K),H.init(),this.$d=H.set(m,Math.min(this.$D,H.daysInMonth())).$d}else P&&this.$d[P](K);return this.init(),this},k.set=function(S,L){return this.clone().$set(S,L)},k.get=function(S){return this[R.p(S)]()},k.add=function(S,L){var w,F=this;S=Number(S);var q=R.p(L),P=function(J){var st=z(F);return R.w(st.date(st.date()+Math.round(J*S)),F)};if(q===u)return this.set(u,this.$M+S);if(q===d)return this.set(d,this.$y+S);if(q===c)return P(1);if(q===h)return P(7);var K=(w={},w[a]=r,w[l]=n,w[o]=i,w)[q]||1,H=this.$d.getTime()+S*K;return R.w(H,this)},k.subtract=function(S,L){return this.add(-1*S,L)},k.format=function(S){var L=this,w=this.$locale();if(!this.isValid())return w.invalidDate||_;var F=S||"YYYY-MM-DDTHH:mm:ssZ",q=R.z(this),P=this.$H,K=this.$m,H=this.$M,J=w.weekdays,st=w.months,zt=w.meridiem,wt=function(Q,at,Wt,te){return Q&&(Q[at]||Q(L,F))||Wt[at].slice(0,te)},Qt=function(Q){return R.s(P%12||12,Q,"0")},Ot=zt|
Line truncated
|
|
||||||
`+Z),Q&&(Z=Bt(Z,R," "),Z=Bt(Z,it," "),Z=Bt(Z,V," ")),E&&Ti?E.createHTML(Z):Z},e.setConfig=function(O){Wr(O),Wt=!0},e.clearConfig=function(){we=null,Wt=!1},e.isValidAttribute=function(O,f,b){we||Wr({});const B=nt(O),G=nt(f);return Co(B,G,b)},e.addHook=function(O,f){typeof f=="function"&&(z[O]=z[O]||[],Ge(z[O],f))},e.removeHook=function(O){if(z[O])return Go(z[O])},e.removeHooks=function(O){z[O]&&(z[O]=[])},e.removeAllHooks=function(){z={}},e}var lr=va();const Wi={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:t=>t>=255?255:t<0?0:t,g:t=>t>=255?255:t<0?0:t,b:t=>t>=255?255:t<0?0:t,h:t=>t%360,s:t=>t>=100?100:t<0?0:t,l:t=>t>=100?100:t<0?0:t,a:t=>t>=1?1:t<0?0:t},toLinear:t=>{const e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},hue2rgb:(t,e,i)=>(i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t),hsl2rgb:({h:t,s:e,l:i},r)=>{if(!e)return i*2.55;t/=360,e/=100,i/=100;const n=i<.5?i*(1+e):i+e-i*e,s=2*i-n;switch(r){case"r":return Wi.hue2rgb(s,n,t+1/3)*255;case"g":return Wi.hue2rgb(s,n,t)*255;case"b":return Wi.hue2rgb(s,n,t-1/3)*255}},rgb2hsl:({r:t,g:e,b:i},r)=>{t/=255,e/=255,i/=255;const n=Math.max(t,e,i),s=Math.min(t,e,i),o=(n+s)/2;if(r==="l")return o*100;if(n===s)return 0;const a=n-s,l=o>.5?a/(2-n-s):a/(n+s);if(r==="s")return l*100;switch(n){case t:return((e-i)/a+(e<i?6:0))*60;case e:return((i-t)/a+2)*60;case i:return((t-e)/a+4)*60;default:return-1}}},If=Wi,Mf={clamp:(t,e,i)=>e>i?Math.min(e,Math.max(i,t)):Math.min(i,Math.max(e,t)),round:t=>Math.round(t*1e10)/1e10},$f=Mf,Df={dec2hex:t=>{const e=Math.round(t).toString(16);return e.length>1?e:`0${e}`}},Nf=Df,Rf={channel:If,lang:$f,unit:Nf},N=Rf,ee={};for(let t=0;t<=255;t++)ee[t]=N.unit.dec2hex(t);const lt={ALL:0,RGB:1,HSL:2};class Pf{constructor(){this.type=lt.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=lt.ALL}is(e){return this.type===e}}const qf=Pf;class zf{constructor(e,i){this.color=i,this.changed=!1,this.data=e,this.type=new qf}set(e,i){return this.color=i,this.changed=!1,this.data=e,this.type.type=lt.ALL,this}_ensureHSL(){const e=this.data,{h:i,s:r,l:n}=e;i===void 0&&(e.h=N.channel.rgb2hsl(e,"h")),r===void 0&&(e.s=N.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=N.channel.rgb2hsl(e,"l"))}_ensureRGB(){const e=this.data,{r:i,g:r,b:n}=e;i===void 0&&(e.r=N.channel.hsl2rgb(e,"r")),r===void 0&&(e.g=N.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=N.channel.hsl2rgb(e,"b"))}get r(){const e=this.data,i=e.r;return!this.type.is(lt.HSL)&&i!==void 0?i:(this._ensureHSL(),N.channel.hsl2rgb(e,"r"))}get g(){const e=this.data,i=e.g;return!this.type.is(lt.HSL)&&i!==void 0?i:(this._ensureHSL(),N.channel.hsl2rgb(e,"g"))}get b(){const e=this.data,i=e.b;return!this.type.is(lt.HSL)&&i!==void 0?i:(this._ensureHSL(),N.channel.hsl2rgb(e,"b"))}get h(){const e=this.data,i=e.h;return!this.type.is(lt.RGB)&&i!==void 0?i:(this._ensureRGB(),N.channel.rgb2hsl(e,"h"))}get s(){const e=this.data,i=e.s;return!this.type.is(lt.RGB)&&i!==void 0?i:(this._ensureRGB(),N.channel.rgb2hsl(e,"s"))}get l(){const e=this.data,i=e.l;return!this.type.is(lt.RGB)&&i!==void 0?i:(this._ensureRGB(),N.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(lt.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(lt.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(lt.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(lt.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(lt.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(lt.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}}const Wf=zf,jf=new Wf({r:0,g:0,b:0,a:0},"transparent"),wr=jf,wa={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:t=>{if(t.charCodeAt(0)!==35)return;const e=t.match(wa.re);if(!e)return;const i=e[1],r=parseInt(i,16),n=i.length,s=n%4===0,o=n>4,a=o?1:17,l=o?8:4,c=s?0:-1,h=o?255:15;return wr.set({r:(r>>l*(c+3)&h)*a,g:(r>>l*(c+2)&h)*a,b:(r>>l*(c+1)&h)*a,a:s?(r&h)*a/255:1},t)},stringify:t=>{const{r:e,g:i,b:r,a:n}=t;return n<1?`#${ee[Math.round(e)]}${ee[Math.round(i)]}${ee[Math.round(r)]}${ee[Math.round(n*255)]}`:`#${ee[Math.round(e)]}${ee[Math.round(i)]}${ee[Math.round(r)]}`}},ei=wa,ji={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:t=>{const e=t.match(ji.hueRe);if(e){const[,i,r]=e;switch(r){case"grad":return N.channel.clamp.h(parseFloat(i)*.9);case"rad":return N.channel.clamp.h(parseFloat(i)*180/Math.PI);case"turn":return N.channel.clamp.h(parseFloat(i)*360)}}return N.channel.clamp.h(parseFloat(t))},parse:t=>{const e=t.charCodeAt(0);if(e!==104&&e!==72)return;const i=t.match(ji.re);if(!i)return;const[,r,n,s,o,a]=i;return wr.set
Line truncated
|
|
||||||
|
|
||||||
`+t.mark.snippet),r+" "+i):r}function fi(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=Xa(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}fi.prototype=Object.create(Error.prototype);fi.prototype.constructor=fi;fi.prototype.toString=function(e){return this.name+": "+Xa(this,e)};var Vt=fi;function nn(t,e,i,r,n){var s="",o="",a=Math.floor(n/2)-1;return r-e>a&&(s=" ... ",e=r-a+s.length),i-r>a&&(o=" ...",i=r+a-o.length),{str:s+t.slice(e,i).replace(/\t/g,"→")+o,pos:r-e+s.length}}function on(t,e){return ut.repeat(" ",e-t.length)+t}function g0(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var i=/\r?\n|\r|\0/g,r=[0],n=[],s,o=-1;s=i.exec(t.buffer);)n.push(s.index),r.push(s.index+s[0].length),t.position<=s.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var a="",l,c,h=Math.min(t.line+e.linesAfter,n.length).toString().length,u=e.maxLength-(e.indent+h+3);for(l=1;l<=e.linesBefore&&!(o-l<0);l++)c=nn(t.buffer,r[o-l],n[o-l],t.position-(r[o]-r[o-l]),u),a=ut.repeat(" ",e.indent)+on((t.line-l+1).toString(),h)+" | "+c.str+`
|
|
||||||
`+a;for(c=nn(t.buffer,r[o],n[o],t.position,u),a+=ut.repeat(" ",e.indent)+on((t.line+1).toString(),h)+" | "+c.str+`
|
|
||||||
`,a+=ut.repeat("-",e.indent+h+3+c.pos)+`^
|
|
||||||
`,l=1;l<=e.linesAfter&&!(o+l>=n.length);l++)c=nn(t.buffer,r[o+l],n[o+l],t.position-(r[o]-r[o+l]),u),a+=ut.repeat(" ",e.indent)+on((t.line+l+1).toString(),h)+" | "+c.str+`
|
|
||||||
`;return a.replace(/\n$/,"")}var m0=g0,_0=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],y0=["scalar","sequence","mapping"];function b0(t){var e={};return t!==null&&Object.keys(t).forEach(function(i){t[i].forEach(function(r){e[String(r)]=i})}),e}function C0(t,e){if(e=e||{},Object.keys(e).forEach(function(i){if(_0.indexOf(i)===-1)throw new Vt('Unknown option "'+i+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(i){return i},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=b0(e.styleAliases||null),y0.indexOf(this.kind)===-1)throw new Vt('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var ht=C0;function gs(t,e){var i=[];return t[e].forEach(function(r){var n=i.length;i.forEach(function(s,o){s.tag===r.tag&&s.kind===r.kind&&s.multi===r.multi&&(n=o)}),i[n]=r}),i}function x0(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,i;function r(n){n.multi?(t.multi[n.kind].push(n),t.multi.fallback.push(n)):t[n.kind][n.tag]=t.fallback[n.tag]=n}for(e=0,i=arguments.length;e<i;e+=1)arguments[e].forEach(r);return t}function wn(t){return this.extend(t)}wn.prototype.extend=function(e){var i=[],r=[];if(e instanceof ht)r.push(e);else if(Array.isArray(e))r=r.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(i=i.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit));else throw new Vt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");i.forEach(function(s){if(!(s instanceof ht))throw new Vt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Vt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Vt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(s){if(!(s instanceof ht))throw new Vt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(wn.prototype);return n.implicit=(this.implicit||[]).concat(i),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=gs(n,"implicit"),n.compiledExplicit=gs(n,"explicit"),n.compiledTypeMap=x0(n.compiledImplicit,n.compiledExplicit),n};var T0=wn,S0=new ht("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),k0=new ht("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),v0=new ht("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),Ka=new T0({explicit:[S0,k0,v0]});function w0(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function B0(){return null}function E0(t){return t===null}var A0=new ht("tag:yaml.org,2002:null",{kind:"scalar",resolve:w0,construct:B0,predicate:E0,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function L0(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function F0(t){return t==="true"||t==="True"||t==="TRUE"}function O0(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var I0=new ht("tag:yaml.org,2002:bool",{kind:"scalar",resolve:L0,construct:F0,predicate:O0,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function M0(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function $0(t){return 48<=t&&t<=55}function D0(t){return 48<=t&&t<=57}function N0(t){if(t===null)return!1;var e=t.length,i=0,r=!1,n;if(!e)return!1;if(n=t[i],(n==="-"||n==="+")&&(n=t[++i]),n==="0"){if(i+1===e)return!0;if(n=t[++i],n==="b"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(n!=="0"&&n!=="1")return!1;r=!0}return r&&n!=="_"}if(n==="x"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!M0(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}if(n==="o"){for(i++;i<e;i++)if(n=t[i],n!=="_"){if(!$0(t.charCodeAt(i)))return!1;r=!0}return r&&n!=="_"}}if(n==="_")return!1;for(;i<e;i++)if(n=t[i],n!=="_"){if(!D0(t.charCodeAt(i)))return!1;r=!0}return!(!r||n==="_")}function R0(t){var e=t,i=1,r;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),r=e[0],(r==="-"||r==="+")&&(r==="-"&&(i=-1),e=e.slice(1),r=e[0]),e==="0")return 0;if(r==="0"){if(e[1]==="b")return i*parseInt(e.
Line truncated
|
|
||||||
\r`;function i_(t){if(t===null)return!1;var e,i,r=0,n=t.length,s=Xn;for(i=0;i<n;i++)if(e=s.indexOf(t.charAt(i)),!(e>64)){if(e<0)return!1;r+=6}return r%8===0}function r_(t){var e,i,r=t.replace(/[\r\n=]/g,""),n=r.length,s=Xn,o=0,a=[];for(e=0;e<n;e++)e%4===0&&e&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(r.charAt(e));return i=n%4*6,i===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):i===18?(a.push(o>>10&255),a.push(o>>2&255)):i===12&&a.push(o>>4&255),new Uint8Array(a)}function n_(t){var e="",i=0,r,n,s=t.length,o=Xn;for(r=0;r<s;r++)r%3===0&&r&&(e+=o[i>>18&63],e+=o[i>>12&63],e+=o[i>>6&63],e+=o[i&63]),i=(i<<8)+t[r];return n=s%3,n===0?(e+=o[i>>18&63],e+=o[i>>12&63],e+=o[i>>6&63],e+=o[i&63]):n===2?(e+=o[i>>10&63],e+=o[i>>4&63],e+=o[i<<2&63],e+=o[64]):n===1&&(e+=o[i>>2&63],e+=o[i<<4&63],e+=o[64],e+=o[64]),e}function o_(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var s_=new ht("tag:yaml.org,2002:binary",{kind:"scalar",resolve:i_,construct:r_,predicate:o_,represent:n_}),a_=Object.prototype.hasOwnProperty,l_=Object.prototype.toString;function c_(t){if(t===null)return!0;var e=[],i,r,n,s,o,a=t;for(i=0,r=a.length;i<r;i+=1){if(n=a[i],o=!1,l_.call(n)!=="[object Object]")return!1;for(s in n)if(a_.call(n,s))if(!o)o=!0;else return!1;if(!o)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function h_(t){return t!==null?t:[]}var u_=new ht("tag:yaml.org,2002:omap",{kind:"sequence",resolve:c_,construct:h_}),d_=Object.prototype.toString;function f_(t){if(t===null)return!0;var e,i,r,n,s,o=t;for(s=new Array(o.length),e=0,i=o.length;e<i;e+=1){if(r=o[e],d_.call(r)!=="[object Object]"||(n=Object.keys(r),n.length!==1))return!1;s[e]=[n[0],r[n[0]]]}return!0}function p_(t){if(t===null)return[];var e,i,r,n,s,o=t;for(s=new Array(o.length),e=0,i=o.length;e<i;e+=1)r=o[e],n=Object.keys(r),s[e]=[n[0],r[n[0]]];return s}var g_=new ht("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:f_,construct:p_}),m_=Object.prototype.hasOwnProperty;function __(t){if(t===null)return!0;var e,i=t;for(e in i)if(m_.call(i,e)&&i[e]!==null)return!1;return!0}function y_(t){return t!==null?t:{}}var b_=new ht("tag:yaml.org,2002:set",{kind:"mapping",resolve:__,construct:y_}),C_=X0.extend({implicit:[Q0,e_],explicit:[s_,u_,g_,b_]}),se=Object.prototype.hasOwnProperty,ur=1,Qa=2,tl=3,dr=4,sn=1,x_=2,ms=3,T_=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,S_=/[\x85\u2028\u2029]/,k_=/[,\[\]\{\}]/,el=/^(?:!|!!|![a-z\-]+!)$/i,il=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _s(t){return Object.prototype.toString.call(t)}function Nt(t){return t===10||t===13}function me(t){return t===9||t===32}function mt(t){return t===9||t===32||t===10||t===13}function Le(t){return t===44||t===91||t===93||t===123||t===125}function v_(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function w_(t){return t===120?2:t===117?4:t===85?8:0}function B_(t){return 48<=t&&t<=57?t-48:-1}function ys(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
|
|
||||||
`:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"
":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function E_(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var rl=new Array(256),nl=new Array(256);for(var Ee=0;Ee<256;Ee++)rl[Ee]=ys(Ee)?1:0,nl[Ee]=ys(Ee);function A_(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||C_,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ol(t,e){var i={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return i.snippet=m0(i),new Vt(e,i)}function M(t,e){throw ol(t,e)}function fr(t,e){t.onWarning&&t.onWarning.call(null,ol(t,e))}var bs={YAML:function(e,i,r){var n,s,o;e.version!==null&&M(e,"duplication of %YAML directive"),r.length!==1&&M(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),n===null&&M(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),o=parseInt(n[2],10),s!==1&&M(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,o!==1&&o!==2&&fr(e,"unsupported YAML version of the document")},TAG:function(e,i,r){var n,s;r.length!==2&&M(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],el.test(n)||M(e,"ill-formed tag handle (first argument) of the TAG directive"),se.call(e.tagMap,n)&&M(e,'there is a previously declared suffix for "'+n+'" tag handle'),il.test(s)||M(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{M(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function ne(t,e,i,r){var n,s,o,a;if(e<i){if(a=t.input.slice(e,i),r)for(n=0,s=a.length;n<s;n+=1)o=a.charCodeAt(n),o===9||32<=o&&o<=1114111||M(t,"expected valid JSON character");else T_.test(a)&&M(t,"the stream contains non-printable characters");t.result+=a}}function Cs(t,e,i,r){var n,s,o,a;for(ut.isObject(i)||M(t,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(i),o=0,a=n.length;o<a;o+=1)s=n[o],se.call(e,s)||(e[s]=i[s],r[s]=!0)}function Fe(t,e,i,r,n,s,o,a,l){var c,h;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),c=0,h=n.length;c<h;c+=1)Array.isArray(n[c])&&M(t,"nested arrays are not supported inside keys"),typeof n=="object"&&_s(n[c])==="[object Object]"&&(n[c]="[object Object]");if(typeof n=="object"&&_s(n)==="[object Object]"&&(n="[object Object]"),n=String(n),e===null&&(e={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,h=s.length;c<h;c+=1)Cs(t,e,s[c],i);else Cs(t,e,s,i);else!t.json&&!se.call(i,n)&&se.call(e,n)&&(t.line=o||t.line,t.lineStart=a||t.lineStart,t.position=l||t.position,M(t,"duplicated mapping key")),n==="__proto__"?Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[n]=s,delete i[n];return e}function Kn(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):M(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function et(t,e,i){for(var r=0,n=t.input.charCodeAt(t.position);n!==0;){for(;me(n);)n===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),n=t.input.charCodeAt(++t.position);if(e&&n===35)do n=t.input.charCodeAt(++t.position);while(n!==10&&n!==13&&n!==0);if(Nt(n))for(Kn(t),n=t.input.charCodeAt(t.position),r++,t.lineIndent=0;n===32;)t.lineIndent++,n=t.input.charCodeAt(++t.position);else break}return i!==-1&&r!==0&&t.lineIndent<i&&fr(t,"deficient indentation"),r}function Mr(t){var e=t.position,i;return i=t.input.charCodeAt(e),!!((i===45||i===46)&&i===t.input.charCodeAt(e+1)&&i===t.input.charCodeAt(e+2)&&(e+=3,i=t.input.charCodeAt(e),i===0||mt(i)))}function Zn(t,e){e===1?t.result+=" ":e>1&&(t.result+=ut.repeat(`
|
|
||||||
`,e-1))}function L_(t,e,i){var r,n,s,o,a,l,c,h,u=t.kind,p=t.result,d;if(d=t.input.charCodeAt(t.position),mt(d)||Le(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(n=t.input.charCodeAt(t.position+1),mt(n)||i&&Le(n)))return!1;for(t.kind="scalar",t.result="",s=o=t.position,a=!1;d!==0;){if(d===58){if(n=t.input.charCodeAt(t.position+1),mt(n)||i&&Le(n))break}else if(d===35){if(r=t.input.charCodeAt(t.position-1),mt(r))break}else{if(t.position===t.lineStart&&Mr(t)||i&&Le(d))break;if(Nt(d))if(l=t.line,c=t.lineStart,h=t.lineIndent,et(t,!1,-1),t.lineIndent>=e){a=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=o,t.line=l,t.lineStart=c,t.lineIndent=h;break}}a&&(ne(t,s,o,!1),Zn(t,t.line-l),s=o=t.position,a=!1),me(d)||(o=t.position+1),d=t.input.charCodeAt(++t.position)}return ne(t,s,o,!1),t.result?!0:(t.kind=u,t.result=p,!1)}function F_(t,e){var i,r,n;if(i=t.input.charCodeAt(t.position),i!==39)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(i=t.input.charCodeAt(t.position))!==0;)if(i===39)if(ne(t,r,t.position,!0),i=t.input.charCodeAt(++t.position),i===39)r=t.position,t.position++,n=t.position;else return!0;else Nt(i)?(ne(t,r,n,!0),Zn(t,et(t,!1,e)),r=n=t.position):t.position===t.lineStart&&Mr(t)?M(t,"unexpected end of the document within a single quoted scalar"):(t.position++,n=t.position);M(t,"unexpected end of the stream within a single quoted scalar")}function O_(t,e){var i,r,n,s,o,a;if(a=t.input.charCodeAt(t.position),a!==34)return!1;for(t.kind="scalar",t.result="",t.position++,i=r=t.position;(a=t.input.charCodeAt(t.position))!==0;){if(a===34)return ne(t,i,t.position,!0),t.position++,!0;if(a===92){if(ne(t,i,t.position,!0),a=t.input.charCodeAt(++t.position),Nt(a))et(t,!1,e);else if(a<256&&rl[a])t.result+=nl[a],t.position++;else if((o=w_(a))>0){for(n=o,s=0;n>0;n--)a=t.input.charCodeAt(++t.position),(o=v_(a))>=0?s=(s<<4)+o:M(t,"expected hexadecimal character");t.result+=E_(s),t.position++}else M(t,"unknown escape sequence");i=r=t.position}else Nt(a)?(ne(t,i,r,!0),Zn(t,et(t,!1,e)),i=r=t.position):t.position===t.lineStart&&Mr(t)?M(t,"unexpected end of the document within a double quoted scalar"):(t.position++,r=t.position)}M(t,"unexpected end of the stream within a double quoted scalar")}function I_(t,e){var i=!0,r,n,s,o=t.tag,a,l=t.anchor,c,h,u,p,d,m=Object.create(null),_,C,$,y;if(y=t.input.charCodeAt(t.position),y===91)h=93,d=!1,a=[];else if(y===123)h=125,d=!0,a={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=a),y=t.input.charCodeAt(++t.position);y!==0;){if(et(t,!0,e),y=t.input.charCodeAt(t.position),y===h)return t.position++,t.tag=o,t.anchor=l,t.kind=d?"mapping":"sequence",t.result=a,!0;i?y===44&&M(t,"expected the node content, but found ','"):M(t,"missed comma between flow collection entries"),C=_=$=null,u=p=!1,y===63&&(c=t.input.charCodeAt(t.position+1),mt(c)&&(u=p=!0,t.position++,et(t,!0,e))),r=t.line,n=t.lineStart,s=t.position,Ne(t,e,ur,!1,!0),C=t.tag,_=t.result,et(t,!0,e),y=t.input.charCodeAt(t.position),(p||t.line===r)&&y===58&&(u=!0,y=t.input.charCodeAt(++t.position),et(t,!0,e),Ne(t,e,ur,!1,!0),$=t.result),d?Fe(t,a,m,C,_,$,r,n,s):u?a.push(Fe(t,null,m,C,_,$,r,n,s)):a.push(_),et(t,!0,e),y=t.input.charCodeAt(t.position),y===44?(i=!0,y=t.input.charCodeAt(++t.position)):i=!1}M(t,"unexpected end of the stream within a flow collection")}function M_(t,e){var i,r,n=sn,s=!1,o=!1,a=e,l=0,c=!1,h,u;if(u=t.input.charCodeAt(t.position),u===124)r=!1;else if(u===62)r=!0;else return!1;for(t.kind="scalar",t.result="";u!==0;)if(u=t.input.charCodeAt(++t.position),u===43||u===45)sn===n?n=u===43?ms:x_:M(t,"repeat of a chomping mode identifier");else if((h=B_(u))>=0)h===0?M(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?M(t,"repeat of an indentation width identifier"):(a=e+h-1,o=!0);else break;if(me(u)){do u=t.input.charCodeAt(++t.position);while(me(u));if(u===35)do u=t.input.charCodeAt(++t.position);while(!Nt(u)&&u!==0)}for(;u!==0;){for(Kn(t),t.lineIndent=0,u=t.input.charCodeAt(t.position);(!o||t.lineIndent<a)&&u===32;)t.lineIndent++,u=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>a&&(a=t.lineIndent),Nt(u)){l++;continue}if(t.lineIndent<a){n===ms?t.result+=ut.repeat(`
|
|
||||||
`,s?1+l:l):n===sn&&s&&(t.result+=`
|
|
||||||
`);break}for(r?me(u)?(c=!0,t.result+=ut.repeat(`
|
|
||||||
`,s?1+l:l)):c?(c=!1,t.result+=ut.repeat(`
|
|
||||||
`,l+1)):l===0?s&&(t.result+=" "):t.result+=ut.repeat(`
|
|
||||||
`,l):t.result+=ut.repeat(`
|
|
||||||
`,s?1+l:l),s=!0,o=!0,l=0,i=t.position;!Nt(u)&&u!==0;)u=t.input.charCodeAt(++t.position);ne(t,i,t.position,!1)}return!0}function xs(t,e){var i,r=t.tag,n=t.anchor,s=[],o,a=!1,l;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),l=t.input.charCodeAt(t.position);l!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,M(t,"tab characters must not be used in indentation")),!(l!==45||(o=t.input.charCodeAt(t.position+1),!mt(o))));){if(a=!0,t.position++,et(t,!0,-1)&&t.lineIndent<=e){s.push(null),l=t.input.charCodeAt(t.position);continue}if(i=t.line,Ne(t,e,tl,!1,!0),s.push(t.result),et(t,!0,-1),l=t.input.charCodeAt(t.position),(t.line===i||t.lineIndent>e)&&l!==0)M(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return a?(t.tag=r,t.anchor=n,t.kind="sequence",t.result=s,!0):!1}function $_(t,e,i){var r,n,s,o,a,l,c=t.tag,h=t.anchor,u={},p=Object.create(null),d=null,m=null,_=null,C=!1,$=!1,y;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=u),y=t.input.charCodeAt(t.position);y!==0;){if(!C&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,M(t,"tab characters must not be used in indentation")),r=t.input.charCodeAt(t.position+1),s=t.line,(y===63||y===58)&&mt(r))y===63?(C&&(Fe(t,u,p,d,m,null,o,a,l),d=m=_=null),$=!0,C=!0,n=!0):C?(C=!1,n=!0):M(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,y=r;else{if(o=t.line,a=t.lineStart,l=t.position,!Ne(t,i,Qa,!1,!0))break;if(t.line===s){for(y=t.input.charCodeAt(t.position);me(y);)y=t.input.charCodeAt(++t.position);if(y===58)y=t.input.charCodeAt(++t.position),mt(y)||M(t,"a whitespace character is expected after the key-value separator within a block mapping"),C&&(Fe(t,u,p,d,m,null,o,a,l),d=m=_=null),$=!0,C=!1,n=!1,d=t.tag,m=t.result;else if($)M(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=c,t.anchor=h,!0}else if($)M(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=c,t.anchor=h,!0}if((t.line===s||t.lineIndent>e)&&(C&&(o=t.line,a=t.lineStart,l=t.position),Ne(t,e,dr,!0,n)&&(C?m=t.result:_=t.result),C||(Fe(t,u,p,d,m,_,o,a,l),d=m=_=null),et(t,!0,-1),y=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&y!==0)M(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return C&&Fe(t,u,p,d,m,null,o,a,l),$&&(t.tag=c,t.anchor=h,t.kind="mapping",t.result=u),$}function D_(t){var e,i=!1,r=!1,n,s,o;if(o=t.input.charCodeAt(t.position),o!==33)return!1;if(t.tag!==null&&M(t,"duplication of a tag property"),o=t.input.charCodeAt(++t.position),o===60?(i=!0,o=t.input.charCodeAt(++t.position)):o===33?(r=!0,n="!!",o=t.input.charCodeAt(++t.position)):n="!",e=t.position,i){do o=t.input.charCodeAt(++t.position);while(o!==0&&o!==62);t.position<t.length?(s=t.input.slice(e,t.position),o=t.input.charCodeAt(++t.position)):M(t,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!mt(o);)o===33&&(r?M(t,"tag suffix cannot contain exclamation marks"):(n=t.input.slice(e-1,t.position+1),el.test(n)||M(t,"named tag handle cannot contain such characters"),r=!0,e=t.position+1)),o=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),k_.test(s)&&M(t,"tag suffix cannot contain flow indicator characters")}s&&!il.test(s)&&M(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{M(t,"tag name is malformed: "+s)}return i?t.tag=s:se.call(t.tagMap,n)?t.tag=t.tagMap[n]+s:n==="!"?t.tag="!"+s:n==="!!"?t.tag="tag:yaml.org,2002:"+s:M(t,'undeclared tag handle "'+n+'"'),!0}function N_(t){var e,i;if(i=t.input.charCodeAt(t.position),i!==38)return!1;for(t.anchor!==null&&M(t,"duplication of an anchor property"),i=t.input.charCodeAt(++t.position),e=t.position;i!==0&&!mt(i)&&!Le(i);)i=t.input.charCodeAt(++t.position);return t.position===e&&M(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function R_(t){var e,i,r;if(r=t.input.charCodeAt(t.position),r!==42)return!1;for(r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!mt(r)&&!Le(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&M(t,"name of an alias node must contain at least one character"),i=t.input.slice(e,t.position),se.call(t.anchorMap,i)||M(t,'unidentified alias "'+i+'"'),t.result=t.anchorMap[i],et(t,!0,-1),!0}function Ne(t,e,i,r,n){var s,o,a,l=1,c=!1,h=!1,u,p,d,m,_,C;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=o=a=dr===i||tl===i,r&&et(t,!0,-1)&&(c=!0,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)),l===1)for(;D_(t)||N_(t);)et(t,!0,-1)?(c=!0,a=s,t.lineIndent>e?l=1:t.lineIndent===e?l=0:t.lineIndent<e&&(l=-1)):a=!1;if(a&&(a=c||n),(l===1||dr===i)&&(ur===i||Qa===i?_=e:_=e+1,C=t.position-t.lineStart,l===1?a&&(xs(t,C)||$_(t,C,_))||I_(t,_)?h=!0:(o&&M_(t,_)||F_(t,_)||O_(t,_)?h=!0:R_(t)?(h=!0,(t.tag!==null||t.anchor!==null)&&M(t,"alias node should no
Line truncated
|
|
||||||
`),t.charCodeAt(0)===65279&&(t=t.slice(1)));var i=new A_(t,e),r=t.indexOf("\0");for(r!==-1&&(i.position=r,M(i,"null byte is not allowed in input")),i.input+="\0";i.input.charCodeAt(i.position)===32;)i.lineIndent+=1,i.position+=1;for(;i.position<i.length-1;)P_(i);return i.documents}function q_(t,e,i){e!==null&&typeof e=="object"&&typeof i>"u"&&(i=e,e=null);var r=sl(t,i);if(typeof e!="function")return r;for(var n=0,s=r.length;n<s;n+=1)e(r[n])}function z_(t,e){var i=sl(t,e);if(i.length!==0){if(i.length===1)return i[0];throw new Vt("expected a single document in the stream, but found more")}}var W_=q_,j_=z_,H_={loadAll:W_,load:j_},Y_=Ka,U_=H_.load;const al=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s;function G_(t,e){var i,r;const n=t.match(al);if(n){const s=U_(n[1],{schema:Y_});return s!=null&&s.title&&((i=e.setDiagramTitle)==null||i.call(e,s.title)),s!=null&&s.displayMode&&((r=e.setDisplayMode)==null||r.call(e,s.displayMode)),t.slice(n[0].length)}else return t}const Bn=function(t,e,i){const{depth:r,clobber:n}=Object.assign({depth:2,clobber:!1},i);return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(s=>Bn(t,s,i)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(s=>{t.includes(s)||t.push(s)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(s=>{typeof e[s]=="object"&&(t[s]===void 0||typeof t[s]=="object")?(t[s]===void 0&&(t[s]=Array.isArray(e[s])?[]:{}),t[s]=Bn(t[s],e[s],{depth:r-1,clobber:n})):(n||typeof t[s]!="object"&&typeof e[s]!="object")&&(t[s]=e[s])}),t)},ct=Bn,pi=Object.freeze(r0);let pt=ct({},pi),ll,Re=[],ni=ct({},pi);const $r=(t,e)=>{let i=ct({},t),r={};for(const n of e)hl(n),r=ct(r,n);if(i=ct(i,r),r.theme&&r.theme in Kt){const n=ct({},ll),s=ct(n.themeVariables||{},r.themeVariables);i.theme&&i.theme in Kt&&(i.themeVariables=Kt[i.theme].getThemeVariables(s))}return ni=i,fl(ni),ni},V_=t=>(pt=ct({},pi),pt=ct(pt,t),t.theme&&Kt[t.theme]&&(pt.themeVariables=Kt[t.theme].getThemeVariables(t.themeVariables)),$r(pt,Re),pt),X_=t=>{ll=ct({},t)},K_=t=>(pt=ct(pt,t),$r(pt,Re),pt),cl=()=>ct({},pt),Z_=t=>(fl(t),ct(ni,t),Jt()),Jt=()=>ct({},ni),hl=t=>{["secure",...pt.secure??[]].forEach(e=>{t[e]!==void 0&&(A.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.indexOf("__")===0&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&hl(t[e])})},ul=t=>{t.fontFamily&&(t.themeVariables?t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily}):t.themeVariables={fontFamily:t.fontFamily}),Re.push(t),$r(pt,Re)},pr=(t=pt)=>{Re=[],$r(t,Re)};var dl=(t=>(t.LAZY_LOAD_DEPRECATED="The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",t))(dl||{});const Ts={},J_=t=>{Ts[t]||(A.warn(dl[t]),Ts[t]=!0)},fl=t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&J_("LAZY_LOAD_DEPRECATED")},Q_=function(t,e){for(let i of e)t.attr(i[0],i[1])},ty=function(t,e,i){let r=new Map;return i?(r.set("width","100%"),r.set("style",`max-width: ${e}px;`)):(r.set("height",t),r.set("width",e)),r},ey=function(t,e,i,r){const n=ty(e,i,r);Q_(t,n)},iy=function(t,e,i,r){const n=e.node().getBBox(),s=n.width,o=n.height;A.info(`SVG bounds: ${s}x${o}`,n);let a=0,l=0;A.info(`Graph bounds: ${a}x${l}`,t),a=s+i*2,l=o+i*2,A.info(`Calculated bounds: ${a}x${l}`),ey(e,l,a,r);const c=`${n.x-i} ${n.y-i} ${n.width+2*i} ${n.height+2*i}`;e.attr("viewBox",c)},Xi={},ry=(t,e,i)=>{let r="";return t in Xi&&Xi[t]?r=Xi[t](i):A.warn(`No theme found for ${t}`),` & {
|
|
||||||
font-family: ${i.fontFamily};
|
|
||||||
font-size: ${i.fontSize};
|
|
||||||
fill: ${i.textColor}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Classes common for multiple diagrams */
|
|
||||||
|
|
||||||
& .error-icon {
|
|
||||||
fill: ${i.errorBkgColor};
|
|
||||||
}
|
|
||||||
& .error-text {
|
|
||||||
fill: ${i.errorTextColor};
|
|
||||||
stroke: ${i.errorTextColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
& .edge-thickness-normal {
|
|
||||||
stroke-width: 2px;
|
|
||||||
}
|
|
||||||
& .edge-thickness-thick {
|
|
||||||
stroke-width: 3.5px
|
|
||||||
}
|
|
||||||
& .edge-pattern-solid {
|
|
||||||
stroke-dasharray: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
& .edge-pattern-dashed{
|
|
||||||
stroke-dasharray: 3;
|
|
||||||
}
|
|
||||||
.edge-pattern-dotted {
|
|
||||||
stroke-dasharray: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
& .marker {
|
|
||||||
fill: ${i.lineColor};
|
|
||||||
stroke: ${i.lineColor};
|
|
||||||
}
|
|
||||||
& .marker.cross {
|
|
||||||
stroke: ${i.lineColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
& svg {
|
|
||||||
font-family: ${i.fontFamily};
|
|
||||||
font-size: ${i.fontSize};
|
|
||||||
}
|
|
||||||
|
|
||||||
${r}
|
|
||||||
|
|
||||||
${e}
|
|
||||||
`},ny=(t,e)=>{Xi[t]=e},oy=ry;let Jn="",Dr="",Qn="";const to=t=>di(t,Jt()),pl=function(){Jn="",Qn="",Dr=""},gl=function(t){Jn=to(t).replace(/^\s+/g,"")},ml=function(){return Jn||Dr},_l=function(t){Qn=to(t).replace(/\n\s+/g,`
|
|
||||||
`)},yl=function(){return Qn},bl=function(t){Dr=to(t)},Cl=function(){return Dr},sy={getAccTitle:ml,setAccTitle:gl,getDiagramTitle:Cl,setDiagramTitle:bl,getAccDescription:yl,setAccDescription:_l,clear:pl},ay=Object.freeze(Object.defineProperty({__proto__:null,clear:pl,default:sy,getAccDescription:yl,getAccTitle:ml,getDiagramTitle:Cl,setAccDescription:_l,setAccTitle:gl,setDiagramTitle:bl},Symbol.toStringTag,{value:"Module"}));let he={};const xl=function(t,e,i,r){A.debug("parseDirective is being called",e,i,r);try{if(e!==void 0)switch(e=e.trim(),i){case"open_directive":he={};break;case"type_directive":if(!he)throw new Error("currentDirective is undefined");he.type=e.toLowerCase();break;case"arg_directive":if(!he)throw new Error("currentDirective is undefined");he.args=JSON.parse(e);break;case"close_directive":ly(t,he,r),he=void 0;break}}catch(n){A.error(`Error while rendering sequenceDiagram directive: ${e} jison context: ${i}`),A.error(n.message)}},ly=function(t,e,i){switch(A.info(`Directive type=${e.type} with args:`,e.args),e.type){case"init":case"initialize":{["config"].forEach(r=>{e.args[r]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),e.args[i]=e.args[r],delete e.args[r])}),A.info("sanitize in handleDirective",e.args),qe(e.args),A.info("sanitize in handleDirective (done)",e.args),ul(e.args);break}case"wrap":case"nowrap":t&&t.setWrap&&t.setWrap(e.type==="wrap");break;case"themeCss":A.warn("themeCss encountered");break;default:A.warn(`Unhandled directive: source: '%%{${e.type}: ${JSON.stringify(e.args?e.args:{})}}%%`,e);break}},cy=A,hy=Gn,Tl=Jt,uy=t=>di(t,Tl()),dy=iy,fy=()=>ay,py=(t,e,i,r)=>xl(t,e,i,r),gr={},mr=(t,e,i)=>{if(gr[t])throw new Error(`Diagram ${t} already registered.`);gr[t]=e,i&&vl(t,i),ny(t,e.styles),e.injectUtils&&e.injectUtils(cy,hy,Tl,uy,dy,fy(),py)},eo=t=>{if(t in gr)return gr[t];throw new Error(`Diagram ${t} not found.`)};class Sl extends Error{constructor(e){super(e),this.name="UnknownDiagramError"}}const gy=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,my=/\s*%%.*\n/gm,Pe={},Nr=function(t,e){t=t.replace(al,"").replace(gy,"").replace(my,`
|
|
||||||
`);for(const[i,{detector:r}]of Object.entries(Pe))if(r(t,e))return i;throw new Sl(`No diagram type detected matching given configuration for text: ${t}`)},kl=(...t)=>{for(const{id:e,detector:i,loader:r}of t)vl(e,i,r)},_y=async()=>{A.debug("Loading registered diagrams");const e=(await Promise.allSettled(Object.entries(Pe).map(async([i,{detector:r,loader:n}])=>{if(n)try{eo(i)}catch{try{const{diagram:o,id:a}=await n();mr(a,o,r)}catch(o){throw A.error(`Failed to load external diagram with key ${i}. Removing from detectors.`),delete Pe[i],o}}}))).filter(i=>i.status==="rejected");if(e.length>0){A.error(`Failed to load ${e.length} external diagrams`);for(const i of e)A.error(i);throw new Error(`Failed to load ${e.length} external diagrams`)}},vl=(t,e,i)=>{Pe[t]?A.error(`Detector with key ${t} already exists`):Pe[t]={detector:e,loader:i},A.debug(`Detector with key ${t} added${i?" with loader":""}`)},yy=t=>Pe[t].loader,by="",Cy={curveBasis:Xd,curveBasisClosed:Kd,curveBasisOpen:Zd,curveBumpX:Gd,curveBumpY:Vd,curveBundle:Jd,curveCardinalClosed:tf,curveCardinalOpen:ef,curveCardinal:Qd,curveCatmullRomClosed:nf,curveCatmullRomOpen:of,curveCatmullRom:rf,curveLinear:Ud,curveLinearClosed:sf,curveMonotoneX:af,curveMonotoneY:lf,curveNatural:cf,curveStep:hf,curveStepAfter:df,curveStepBefore:uf},an=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,xy=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Ty=function(t,e){const i=wl(t,/(?:init\b)|(?:initialize\b)/);let r={};if(Array.isArray(i)){const n=i.map(s=>s.args);qe(n),r=ct(r,[...n])}else r=i.args;if(r){let n=Nr(t,e);["config"].forEach(s=>{r[s]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),r[n]=r[s],delete r[s])})}return r},wl=function(t,e=null){try{const i=new RegExp(`[%]{2}(?![{]${xy.source})(?=[}][%]{2}).*
|
|
||||||
`,"ig");t=t.trim().replace(i,"").replace(/'/gm,'"'),A.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let r;const n=[];for(;(r=an.exec(t))!==null;)if(r.index===an.lastIndex&&an.lastIndex++,r&&!e||e&&r[1]&&r[1].match(e)||e&&r[2]&&r[2].match(e)){const s=r[1]?r[1]:r[2],o=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;n.push({type:s,args:o})}return n.length===0&&n.push({type:t,args:null}),n.length===1?n[0]:n}catch(i){return A.error(`ERROR: ${i.message} - Unable to parse directive
|
|
||||||
${e!==null?" type:"+e:""} based on the text:${t}`),{type:null,args:null}}},Sy=function(t,e){for(const[i,r]of e.entries())if(r.match(t))return i;return-1};function ky(t,e){if(!t)return e;const i=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return Cy[i]||e}function vy(t,e){const i=t.trim();if(i)return e.securityLevel!=="loose"?Ns.sanitizeUrl(i):i}const wy=(t,...e)=>{const i=t.split("."),r=i.length-1,n=i[r];let s=window;for(let o=0;o<r;o++)if(s=s[i[o]],!s)return;s[n](...e)};function _r(t,e){return t&&e?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0}function By(t){let e,i=0;t.forEach(s=>{i+=_r(s,e),e=s});let r=i/2,n;return e=void 0,t.forEach(s=>{if(e&&!n){const o=_r(s,e);if(o<r)r-=o;else{const a=r/o;a<=0&&(n=e),a>=1&&(n={x:s.x,y:s.y}),a>0&&a<1&&(n={x:(1-a)*e.x+a*s.x,y:(1-a)*e.y+a*s.y})}}e=s}),n}function Ey(t){return t.length===1?t[0]:By(t)}const Ay=(t,e,i)=>{let r;A.info(`our points ${JSON.stringify(e)}`),e[0]!==i&&(e=e.reverse());let s=25,o;r=void 0,e.forEach(h=>{if(r&&!o){const u=_r(h,r);if(u<s)s-=u;else{const p=s/u;p<=0&&(o=r),p>=1&&(o={x:h.x,y:h.y}),p>0&&p<1&&(o={x:(1-p)*r.x+p*h.x,y:(1-p)*r.y+p*h.y})}}r=h});const a=t?10:5,l=Math.atan2(e[0].y-o.y,e[0].x-o.x),c={x:0,y:0};return c.x=Math.sin(l)*a+(e[0].x+o.x)/2,c.y=-Math.cos(l)*a+(e[0].y+o.y)/2,c};function Ly(t,e,i){let r=JSON.parse(JSON.stringify(i)),n;A.info("our points",r),e!=="start_left"&&e!=="start_right"&&(r=r.reverse()),r.forEach(u=>{n=u});let o=25+t,a;n=void 0,r.forEach(u=>{if(n&&!a){const p=_r(u,n);if(p<o)o-=p;else{const d=o/p;d<=0&&(a=n),d>=1&&(a={x:u.x,y:u.y}),d>0&&d<1&&(a={x:(1-d)*n.x+d*u.x,y:(1-d)*n.y+d*u.y})}}n=u});const l=10+t*.5,c=Math.atan2(r[0].y-a.y,r[0].x-a.x),h={x:0,y:0};return h.x=Math.sin(c)*l+(r[0].x+a.x)/2,h.y=-Math.cos(c)*l+(r[0].y+a.y)/2,e==="start_left"&&(h.x=Math.sin(c+Math.PI)*l+(r[0].x+a.x)/2,h.y=-Math.cos(c+Math.PI)*l+(r[0].y+a.y)/2),e==="end_right"&&(h.x=Math.sin(c-Math.PI)*l+(r[0].x+a.x)/2-5,h.y=-Math.cos(c-Math.PI)*l+(r[0].y+a.y)/2-5),e==="end_left"&&(h.x=Math.sin(c)*l+(r[0].x+a.x)/2-5,h.y=-Math.cos(c)*l+(r[0].y+a.y)/2-5),h}function Fy(t){let e="",i="";for(const r of t)r!==void 0&&(r.startsWith("color:")||r.startsWith("text-align:")?i=i+r+";":e=e+r+";");return{style:e,labelStyle:i}}let Ss=0;const Oy=()=>(Ss++,"id-"+Math.random().toString(36).substr(2,12)+"-"+Ss);function Iy(t){let e="";const i="0123456789abcdef",r=i.length;for(let n=0;n<t;n++)e+=i.charAt(Math.floor(Math.random()*r));return e}const My=t=>Iy(t.length),$y=function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0}},Dy=function(t,e){const i=e.text.replace(Vn.lineBreakRegex," "),[,r]=ro(e.fontSize),n=t.append("text");n.attr("x",e.x),n.attr("y",e.y),n.style("text-anchor",e.anchor),n.style("font-family",e.fontFamily),n.style("font-size",r),n.style("font-weight",e.fontWeight),n.attr("fill",e.fill),e.class!==void 0&&n.attr("class",e.class);const s=n.append("tspan");return s.attr("x",e.x+e.textMargin*2),s.attr("fill",e.fill),s.text(i),n},Ny=Ci((t,e,i)=>{if(!t||(i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},i),Vn.lineBreakRegex.test(t)))return t;const r=t.split(" "),n=[];let s="";return r.forEach((o,a)=>{const l=yr(`${o} `,i),c=yr(s,i);if(l>e){const{hyphenatedStrings:p,remainingWord:d}=Ry(o,e,"-",i);n.push(s,...p),s=d}else c+l>=e?(n.push(s),s=o):s=[s,o].filter(Boolean).join(" ");a+1===r.length&&n.push(s)}),n.filter(o=>o!=="").join(i.joinWith)},(t,e,i)=>`${t}${e}${i.fontSize}${i.fontWeight}${i.fontFamily}${i.joinWith}`),Ry=Ci((t,e,i="-",r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);const n=[...t],s=[];let o="";return n.forEach((a,l)=>{const c=`${o}${a}`;if(yr(c,r)>=e){const u=l+1,p=n.length===u,d=`${c}${i}`;s.push(p?c:d),o=""}else o=c}),{hyphenatedStrings:s,remainingWord:o}},(t,e,i="-",r)=>`${t}${e}${i}${r.fontSize}${r.fontWeight}${r.fontFamily}`);function Py(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},e),io(t,e).height}function yr(t,e){return e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e),io(t,e).width}const io=Ci((t,e)=>{e=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},e);const{fontSize:i,fontFamily:r,fontWeight:n}=e;if(!t)return{width:0,height:0};const[,s]=ro(i),o=["sans-serif",r],a=t.split(Vn.lineBreakRegex),l=[],c=Mt("body");if(!c.remove)return{width:0,height:0,lineHeight:0};const h=c.append("svg");for(const p of o){let d=0;const m={width:0,height:0,lineHeight:0};for(const _ of a){const C=$y();C.text=_||by;const $=Dy(h,C).style("font-size",s).style("font-weight",n).style("font-family",p),y=($._groups||$)[0][0].getBBox();if(y.width===0&&y.height===0)throw new Error("svg element not in render tree");m.width=Math.round(Math.max(m.width,y.width)),d=Math.round(y.height),m.height+=d,m.lineHeight=Math.round(Math.max(m.lineHeight,d))}l.push(m)}h.remove();const u=isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l
Line truncated
|
|
||||||
`);const r=Mt("#"+e),n=r.append("g");n.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),n.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),n.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),n.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),n.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),n.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),n.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),n.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+i),r.attr("height",100),r.attr("width",500),r.attr("viewBox","768 0 912 512")}catch(r){A.error("Error while rendering info diagram"),A.error(Wy(r))}},Hl={setConf:iC,draw:rC},nC={db:{clear:()=>{}},styles:eC,renderer:Hl,parser:{parser:{yy:{}},parse:()=>{}},init:()=>{}},oC=nC,Yl="flowchart-elk",sC=(t,e)=>{var i;return!!(t.match(/^\s*flowchart-elk/)||t.match(/^\s*flowchart|graph/)&&((i=e==null?void 0:e.flowchart)==null?void 0:i.defaultRenderer)==="elk")},aC=async()=>{const{diagram:t}=await rt(()=>import("./flowchart-elk-definition-5082a990-_inAippy.js"),__vite__mapDeps([35,5,9,10,11,12,13,14,2,3,36]));return{id:Yl,diagram:t}},lC={id:Yl,detector:sC,loader:aC},cC=lC,Ul="timeline",hC=t=>t.match(/^\s*timeline/)!==null,uC=async()=>{const{diagram:t}=await rt(()=>import("./timeline-definition-5ed366f4-6Q7yW0Tk.js"),__vite__mapDeps([37,24,14,2,3]));return{id:Ul,diagram:t}},dC={id:Ul,detector:hC,loader:uC},fC=dC,Gl="mindmap",pC=t=>t.match(/^\s*mindmap/)!==null,gC=async()=>{const{diagram:t}=await rt(()=>import("./mindmap-definition-4fc2557c-YYRKFqOa.js"),__vite__mapDeps([38,10,2,3]));return{id:Gl,diagram:t}},mC={id:Gl,detector:pC,loader:gC},_C=mC;let vs=!1;const no=()=>{vs||(vs=!0,mr("error",oC,t=>t.toLowerCase().trim()==="error"),mr("---",{db:{clear:()=>{}},styles:{},renderer:{},parser:{parser:{yy:{}},parse:()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")}},init:()=>null},t=>t.toLowerCase().trimStart().startsWith("---")),kl(Gy,zb,Nb,ob,fb,_b,xb,Ab,Ib,cC,eb,Zy,_C,fC,cb,Xb,Yb,Qb,vb))},yC=t=>t.trimStart().replace(/^\s*%%(?!{)[^\n]+\n?/gm,"");class Vl{constructor(e){var i,r;this.text=e,this.type="graph",this.text+=`
|
|
||||||
`;const n=Jt();try{this.type=Nr(e,n)}catch(a){this.type="error",this.detectError=a}const s=eo(this.type);A.debug("Type "+this.type),this.db=s.db,(r=(i=this.db).clear)==null||r.call(i),this.renderer=s.renderer,this.parser=s.parser;const o=this.parser.parse.bind(this.parser);this.parser.parse=a=>o(yC(G_(a,this.db))),this.parser.parser.yy=this.db,s.init&&(s.init(n),A.info("Initialized diagram "+this.type,n)),this.parse()}parse(){var e,i;if(this.detectError)throw this.detectError;(i=(e=this.db).clear)==null||i.call(e),this.parser.parse(this.text)}async render(e,i){await this.renderer.draw(this.text,e,i,this)}getParser(){return this.parser}getType(){return this.type}}const oo=async t=>{const e=Nr(t,Jt());try{eo(e)}catch{const r=yy(e);if(!r)throw new Sl(`Diagram ${e} not found.`);const{id:n,diagram:s}=await r();mr(n,s)}return new Vl(t)};let En=[];const W1=t=>{En.push(t)},bC=()=>{En.forEach(t=>{t()}),En=[]},CC="graphics-document document";function xC(t,e){t.attr("role",CC),Vi(e)||t.attr("aria-roledescription",e)}function TC(t,e,i,r){if(t.insert!==void 0)if(e||i){if(i){const n="chart-desc-"+r;t.attr("aria-describedby",n),t.insert("desc",":first-child").attr("id",n).text(i)}if(e){const n="chart-title-"+r;t.attr("aria-labelledby",n),t.insert("title",":first-child").attr("id",n).text(e)}}else return}const Xl=["graph","flowchart","flowchart-v2","flowchart-elk","stateDiagram","stateDiagram-v2"],SC=5e4,kC="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",vC="sandbox",wC="loose",BC="http://www.w3.org/2000/svg",EC="http://www.w3.org/1999/xlink",AC="http://www.w3.org/1999/xhtml",LC="100%",FC="100%",OC="border:0;margin:0;",IC="margin:0",MC="allow-top-navigation-by-user-activation allow-popups",$C='The "iframe" tag is not supported by your browser.',DC=["foreignobject"],NC=["dominant-baseline"];async function RC(t,e){no();try{(await oo(t)).parse()}catch(i){if(e!=null&&e.suppressErrors)return!1;throw i}return!0}const PC=function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(i){return i.substring(0,i.length-1)}),e=e.replace(/#\w+;/g,function(i){const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?"fl°°"+r+"¶ß":"fl°"+r+"¶ß"}),e},qC=function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},ws=(t,e,i=[])=>`
|
|
||||||
.${t} ${e} { ${i.join(" !important; ")} !important; }`,zC=(t,e,i={})=>{var r;let n="";if(t.themeCSS!==void 0&&(n+=`
|
|
||||||
${t.themeCSS}`),t.fontFamily!==void 0&&(n+=`
|
|
||||||
:root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(n+=`
|
|
||||||
:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),!Vi(i)&&Xl.includes(e)){const l=t.htmlLabels||((r=t.flowchart)==null?void 0:r.htmlLabels)?["> *","span"]:["rect","polygon","ellipse","circle","path"];for(const c in i){const h=i[c];Vi(h.styles)||l.forEach(u=>{n+=ws(h.id,u,h.styles)}),Vi(h.textStyles)||(n+=ws(h.id,"tspan",h.textStyles))}}return n},WC=(t,e,i,r)=>{const n=zC(t,e,i),s=oy(e,n,t.themeVariables);return xn(Tg(`${r}{${s}}`),kg)},jC=(t="",e,i)=>{let r=t;return!i&&!e&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),r=qC(r),r=r.replace(/<br>/g,"<br/>"),r},HC=(t="",e)=>{const i=e?e.viewBox.baseVal.height+"px":FC,r=btoa('<body style="'+IC+'">'+t+"</body>");return`<iframe style="width:${LC};height:${i};${OC}" src="data:text/html;base64,${r}" sandbox="${MC}">
|
|
||||||
${$C}
|
|
||||||
</iframe>`},Bs=(t,e,i,r,n)=>{const s=t.append("div");s.attr("id",i),r&&s.attr("style",r);const o=s.append("svg").attr("id",e).attr("width","100%").attr("xmlns",BC);return n&&o.attr("xmlns:xlink",n),o.append("g"),t};function Es(t,e){return t.append("iframe").attr("id",e).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const YC=(t,e,i,r)=>{var n,s,o;(n=t.getElementById(e))==null||n.remove(),(s=t.getElementById(i))==null||s.remove(),(o=t.getElementById(r))==null||o.remove()},UC=async function(t,e,i){var r,n,s,o;no(),pr();const a=Zi.detectInit(e);a&&(qe(a),ul(a));const l=Jt();A.debug(l),e.length>((l==null?void 0:l.maxTextSize)??SC)&&(e=kC),e=e.replace(/\r\n?/g,`
|
|
||||||
`),e=e.replace(/<(\w+)([^>]*)>/g,(L,w,F)=>"<"+w+F.replace(/="([^"]*)"/g,"='$1'")+">");const c="#"+t,h="i"+t,u="#"+h,p="d"+t,d="#"+p;let m=Mt("body");const _=l.securityLevel===vC,C=l.securityLevel===wC,$=l.fontFamily;if(i!==void 0){if(i&&(i.innerHTML=""),_){const L=Es(Mt(i),h);m=Mt(L.nodes()[0].contentDocument.body),m.node().style.margin=0}else m=Mt(i);Bs(m,t,p,`font-family: ${$}`,EC)}else{if(YC(document,t,p,h),_){const L=Es(Mt("body"),h);m=Mt(L.nodes()[0].contentDocument.body),m.node().style.margin=0}else m=Mt("body");Bs(m,t,p)}e=PC(e);let y,E;try{y=await oo(e)}catch(L){y=new Vl("error"),E=L}const W=m.select(d).node(),x=y.type,j=W.firstChild,U=j.firstChild,vt=Xl.includes(x)?y.renderer.getClasses(e,y):{},Ct=WC(l,x,vt,c),z=document.createElement("style");z.innerHTML=Ct,j.insertBefore(z,U);try{await y.renderer.draw(e,t,ks,y)}catch(L){throw Hl.draw(e,t,ks),L}const R=m.select(`${d} svg`),it=(n=(r=y.db).getAccTitle)==null?void 0:n.call(r),V=(o=(s=y.db).getAccDescription)==null?void 0:o.call(s);VC(x,R,it,V),m.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",AC);let v=m.select(d).node().innerHTML;if(A.debug("config.arrowMarkerAbsolute",l.arrowMarkerAbsolute),v=jC(v,_,Ua(l.arrowMarkerAbsolute)),_){const L=m.select(d+" svg").node();v=HC(v,L)}else C||(v=lr.sanitize(v,{ADD_TAGS:DC,ADD_ATTR:NC}));if(bC(),E)throw E;const S=Mt(_?u:d).node();return S&&"remove"in S&&S.remove(),{svg:v,bindFunctions:y.db.bindFunctions}};function GC(t={}){var e;t!=null&&t.fontFamily&&!((e=t.themeVariables)!=null&&e.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),X_(t),t!=null&&t.theme&&t.theme in Kt?t.themeVariables=Kt[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Kt.default.getThemeVariables(t.themeVariables));const i=typeof t=="object"?V_(t):cl();Gn(i.logLevel),no()}function VC(t,e,i,r){xC(e,t),TC(e,i,r,e.attr("id"))}const be=Object.freeze({render:UC,parse:RC,parseDirective:xl,getDiagramFromText:oo,initialize:GC,getConfig:Jt,setConfig:Z_,getSiteConfig:cl,updateSiteConfig:K_,reset:()=>{pr()},globalReset:()=>{pr(pi)},defaultConfig:pi});Gn(Jt().logLevel);pr(Jt());const XC=(t,e,i)=>{A.warn(t),Bl(t)?(i&&i(t.str,t.hash),e.push({...t,message:t.str,error:t})):(i&&i(t),t instanceof Error&&e.push({str:t.message,message:t.message,hash:t.name,error:t}))},Kl=async function(t={querySelector:".mermaid"}){try{await KC(t)}catch(e){if(Bl(e)&&A.error(e.str),yt.parseError&&yt.parseError(e),!t.suppressErrors)throw A.error("Use the suppressErrors option to suppress these errors"),e}},KC=async function({postRenderCallback:t,querySelector:e,nodes:i}={querySelector:".mermaid"}){const r=be.getConfig();A.debug(`${t?"":"No "}Callback function found`);let n;if(i)n=i;else if(e)n=document.querySelectorAll(e);else throw new Error("Nodes and querySelector are both undefined");A.debug(`Found ${n.length} diagrams`),(r==null?void 0:r.startOnLoad)!==void 0&&(A.debug("Start On Load: "+(r==null?void 0:r.startOnLoad)),be.updateSiteConfig({startOnLoad:r==null?void 0:r.startOnLoad}));const s=new Zi.initIdGenerator(r.deterministicIds,r.deterministicIDSeed);let o;const a=[];for(const l of Array.from(n)){A.info("Rendering diagram: "+l.id);/*! Check if previously processed */if(l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const c=`mermaid-${s.next()}`;o=l.innerHTML,o=Ac(Zi.entityDecode(o)).trim().replace(/<br\s*\/?>/gi,"<br/>");const h=Zi.detectInit(o);h&&A.debug("Detected early reinit: ",h);try{const{svg:u,bindFunctions:p}=await tc(c,o,l);l.innerHTML=u,t&&await t(c),p&&p(l)}catch(u){XC(u,a,yt.parseError)}}if(a.length>0)throw a[0]},Zl=function(t){be.initialize(t)},ZC=async function(t,e,i){A.warn("mermaid.init is deprecated. Please use run instead."),t&&Zl(t);const r={postRenderCallback:i,querySelector:".mermaid"};typeof e=="string"?r.querySelector=e:e&&(e instanceof HTMLElement?r.nodes=[e]:r.nodes=e),await Kl(r)},JC=async(t,{lazyLoad:e=!0}={})=>{kl(...t),e===!1&&await _y()},Jl=function(){if(yt.startOnLoad){const{startOnLoad:t}=be.getConfig();t&&yt.run().catch(e=>A.error("Mermaid failed to initialize",e))}};if(typeof document<"u"){/*!
|
|
||||||
* Wait for document loaded before starting the execution
|
|
||||||
*/window.addEventListener("load",Jl,!1)}const QC=function(t){yt.parseError=t},br=[];let ln=!1;const Ql=async()=>{if(!ln){for(ln=!0;br.length>0;){const t=br.shift();if(t)try{await t()}catch(e){A.error("Error executing queue",e)}}ln=!1}},t1=async(t,e)=>new Promise((i,r)=>{const n=()=>new Promise((s,o)=>{be.parse(t,e).then(a=>{s(a),i(a)},a=>{var l;A.error("Error parsing",a),(l=yt.parseError)==null||l.call(yt,a),o(a),r(a)})});br.push(n),Ql().catch(r)}),tc=(t,e,i)=>new Promise((r,n)=>{const s=()=>new Promise((o,a)=>{be.render(t,e,i).then(l=>{o(l),r(l)},l=>{var c;A.error("Error parsing",l),(c=yt.parseError)==null||c.call(yt,l),a(l),n(l)})});br.push(s),Ql().catch(n)}),yt={startOnLoad:!0,mermaidAPI:be,parse:t1,render:tc,init:ZC,run:Kl,registerExternalDiagrams:JC,initialize:Zl,parseError:void 0,contentLoaded:Jl,setParseErrorHandler:QC,detectType:Nr},He=t=>{t=i1(t);const e=t.replace(/#(\d+);/g,"&#$1;").replace(/#([a-z]+);/g,"&$1;"),i=document.createElement("textarea");return i.innerHTML=e,i.value},Ie=t=>{const e=t.getAttribute("transform"),i=e==null?void 0:e.match(/translate\(([ \d.-]+),\s*([\d.-]+)\)/);let r=0,n=0;return i&&(r=Number(i[1]),n=Number(i[2])),{transformX:r,transformY:n}},e1=t=>{let e=t;return e=e.replace(/style.*:\S*#.*;/g,i=>i.substring(0,i.length-1)),e=e.replace(/classDef.*:\S*#.*;/g,i=>i.substring(0,i.length-1)),e=e.replace(/#\w+;/g,i=>{const r=i.substring(1,i.length-1);return/^\+?\d+$/.test(r)?`fl°°${r}¶ß`:`fl°${r}¶ß`}),e},i1=function(t){return t.replace(/fl°°/g,"#").replace(/fl°/g,"&").replace(/¶ß/g,";")},ec=(t,e={x:0,y:0})=>{if(t.tagName.toLowerCase()!=="path")throw new Error(`Invalid input: Expected an HTMLElement of tag "path", got ${t.tagName}`);const i=t.getAttribute("d");if(!i)throw new Error('Path element does not contain a "d" attribute');const r=i.split(/(?=[LM])/),n=r[0].substring(1).split(",").map(a=>parseFloat(a)),s=r[r.length-1].substring(1).split(",").map(a=>parseFloat(a)),o=r.map(a=>{const l=a.substring(1).split(",").map(c=>parseFloat(c));return{x:l[0],y:l[1]}}).filter((a,l,c)=>{if(l===c.length-1)return!0;const h=c[l-1];return l===0||a.x!==h.x&&a.y!==h.y}).map(a=>({x:a.x+e.x,y:a.y+e.y}));return{startX:n[0]+e.x,startY:n[1]+e.y,endX:s[0]+e.x,endY:s[1]+e.y,reflectionPoints:o}},r1=(t,e)=>{const i=t.nodes.map(a=>a.startsWith("flowchart-")?a.split("-")[1]:a),r=e.querySelector(`[id='${t.id}']`);if(!r)throw new Error("SubGraph element not found");const n=so(r,e),s=r.getBBox(),o={width:s.width,height:s.height};return t.classes=void 0,t.dir=void 0,{...t,nodeIds:i,...n,...o,text:He(t.title)}},n1=(t,e)=>{var u,p,d;const i=e.querySelector(`[id*="flowchart-${t.id}-"]`);if(!i)return;let r;((u=i.parentElement)==null?void 0:u.tagName.toLowerCase())==="a"&&(r=i.parentElement.getAttribute("xlink:href"));const n=so(r?i.parentElement:i,e),s=i.getBBox(),o={width:s.width,height:s.height},a=(p=i.querySelector(".label-container"))==null?void 0:p.getAttribute("style"),l=(d=i.querySelector(".label"))==null?void 0:d.getAttribute("style"),c={};a==null||a.split(";").forEach(m=>{if(!m)return;const _=m.split(":")[0].trim(),C=m.split(":")[1].trim();c[_]=C});const h={};return l==null||l.split(";").forEach(m=>{if(!m)return;const _=m.split(":")[0].trim(),C=m.split(":")[1].trim();h[_]=C}),{id:t.id,labelType:t.labelType,text:He(t.text),type:t.type,link:r||void 0,...n,...o,containerStyle:c,labelStyle:h}},o1=(t,e)=>{const i=e.querySelector(`[id*="L-${t.start}-${t.end}"]`);if(!i)throw new Error("Edge element not found");const r=so(i,e),n=ec(i,r);return t.length=void 0,{...t,...n,text:He(t.text)}},so=(t,e)=>{var l;if(!t)throw new Error("Element not found");let i=(l=t.parentElement)==null?void 0:l.parentElement;const r=t.childNodes[0];let n={x:0,y:0};if(r){const{transformX:c,transformY:h}=Ie(r),u=r.getBBox();n={x:Number(r.getAttribute("x"))||c+u.x||0,y:Number(r.getAttribute("y"))||h+u.y||0}}const{transformX:s,transformY:o}=Ie(t),a={x:s+n.x,y:o+n.y};for(;i&&i.id!==e.id;){if(i.classList.value==="root"&&i.hasAttribute("transform")){const{transformX:c,transformY:h}=Ie(i);a.x+=c,a.y+=h}i=i.parentElement}return a},s1=(t,e)=>{t.parse();const i=t.parser.yy,r=i.getVertices();Object.keys(r).forEach(o=>{r[o]=n1(r[o],e)});const n=i.getEdges().map(o=>o1(o,e));return{type:"flowchart",subGraphs:i.getSubGraphs().map(o=>r1(o,e)),vertices:r,edges:n}},a1=(t,e)=>{const i={};e!=null&&e.label&&(i.label={text:He(e.label),fontSize:16});const r=t.tagName;if(r==="line")i.startX=Number(t.getAttribute("x1")),i.startY=Number(t.getAttribute("y1")),i.endX=Number(t.getAttribute("x2")),i.endY=Number(t.getAttribute("y2"));else if(r==="path"){const n=t.getAttribute("d");if(!n)throw new Error('Path element does not contain a "d" attribute');const s=n.split(/(?=[LC])/),o=s[0].substring(1).split(",").map(c=>parseFloat(c)),a=[];s.forEach(c=>{const h=c.substring(1).trim().split(" ").map(u=>{const[p,d]=u.split(",");return[parseFloat(p)-o[0],parseFloat(d)-o[1]]});a.push(...h)});const l=a[a.length-1];i.startX=o[0],i.startY=o[1],i.endX=l[0],i.endY=l[1Line truncated
|
|
||||||
function __vite__mapDeps(indexes) {
|
|
||||||
if (!__vite__mapDeps.viteFileDeps) {
|
|
||||||
__vite__mapDeps.viteFileDeps = ["assets/c4Diagram-9cddb37f-N9kopixF.js","assets/svgDrawCommon-f26cad39-uSOEV6F1.js","assets/index-2K3MavtT.js","assets/index-4wu8EIXu.css","assets/flowDiagram-93327f21-bzemmV0w.js","assets/flowDb-6a57c1b4-o7QdmK-d.js","assets/layout-ewywu0M6.js","assets/styles-5f89df53-Cnw1EiWb.js","assets/index-a92ac404-gZDUZJdp.js","assets/edges-49ac43a2-VNwnN65b.js","assets/createText-3df630b5-oLWc-GwH.js","assets/svgDraw-0fcc813d-8P1J7hc8.js","assets/line-reZX-DPl.js","assets/array-Nw74a44z.js","assets/path-aUcfwwLI.js","assets/selectAll-ksDY_7eo.js","assets/flowDiagram-v2-476db779-kB7FwdKI.js","assets/erDiagram-f6946109-z4VASuEu.js","assets/gitGraphDiagram-1e960c50-nR2fIRcx.js","assets/ganttDiagram-7ce12d6b-bNEEGiE3.js","assets/linear-WA_JRKe7.js","assets/init-Hi12RPRh.js","assets/infoDiagram-264bed3e-S8LyFZ95.js","assets/pieDiagram-157505fe-K3QYu1_A.js","assets/arc-uMvMTTPz.js","assets/quadrantDiagram-fd70f2d0-9W_l-w0k.js","assets/requirementDiagram-19c99588-nu0kgzn5.js","assets/sequenceDiagram-5dfd0049-6G3skaqL.js","assets/classDiagram-bc733c3b-nWtrl_HS.js","assets/styles-aefe6593-IaILeGot.js","assets/classDiagram-v2-8931bdaf-hkLGNE-q.js","assets/stateDiagram-133e3642-C-DPoShl.js","assets/styles-fa41df25-AN4ki2j_.js","assets/stateDiagram-v2-6371a76b-m56clzbO.js","assets/journeyDiagram-31be0096-pp8z6RK0.js","assets/flowchart-elk-definition-5082a990-_inAippy.js","assets/_commonjs-dynamic-modules-h-SxKiO4.js","assets/timeline-definition-5ed366f4-6Q7yW0Tk.js","assets/mindmap-definition-4fc2557c-YYRKFqOa.js"]
|
|
||||||
}
|
|
||||||
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
||||||
}
|
|
||||||
//# sourceMappingURL=index-jpNTxDe4.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"mappings":"yDAAO,MAAMA,GAAoB,GACpBC,GAAsB,CAC/B,KAAM,YACN,OAAQ,SACZ,EACaC,GAAiB,CAC1B,YAAa,GACb,UAAW,CAAE,MAAO,QAAU,EAC9B,eAAgB,CACZ,SAAU,GAAGF,GAAoB,IAAI,IACxC,CACL,ECVO,MAAMG,EAAe,CACxB,YAAY,CAAE,UAAAC,GAAc,CACxB,KAAK,QAAU,CAACC,EAAOC,IACZ,KAAK,UAAUD,EAAO,CACzB,GAAGC,EACH,SAAUA,EAAQ,UAAYN,EAC9C,CAAa,EAEL,KAAK,UAAYI,CACpB,CACL,CCXO,IAAIG,IACV,SAAUA,EAAa,CACpBA,EAAY,MAAW,QACvBA,EAAY,QAAa,UACzBA,EAAY,aAAkB,eAC9BA,EAAY,OAAY,SACxBA,EAAY,QAAa,SAC7B,GAAGA,KAAgBA,GAAc,CAAE,EAAC,EAC7B,IAAIC,IACV,SAAUA,EAAsB,CAC7BA,EAAqB,MAAW,OACpC,GAAGA,KAAyBA,GAAuB,CAAE,EAAC,EAC/C,IAAIC,IACV,SAAUA,EAA0B,CACjCA,EAAyB,KAAU,OACnCA,EAAyB,OAAY,SACrCA,EAAyB,aAAkB,eAC3CA,EAAyB,iBAAsB,kBACnD,GAAGA,KAA6BA,GAA2B,GAAG,YCjB9D,OAAO,eAAeC,GAAS,aAAc,CAAE,MAAO,EAAI,CAAE,EAC5D,IAAsBC,GAAAD,GAAA,eAAG,OAYrBE,GAAiB,SAAUC,EAAUP,EAAS,CAC1CA,IAAY,SAAUA,EAAU,CAChC,gBAAiB,EACzB,GACIA,EAAUA,GAAW,GACrBA,EAAQ,gBAAkBA,EAAQ,eAAe,iBAAiB,EAC5DA,EAAQ,gBACR,GACNA,EAAQ,iBAAmBA,EAAQ,eAAe,kBAAkB,EAC9DA,EAAQ,iBACR,GACNA,EAAQ,IAAMA,EAAQ,eAAe,KAAK,EAAIA,EAAQ,IAAM,GAC5DA,EAAQ,cAAgBA,EAAQ,eAAe,eAAe,EACxDA,EAAQ,cACR,GACNA,EAAQ,cAAgBA,EAAQ,eAAe,eAAe,EACxDA,EAAQ,cACR,GACN,IAAIQ,EAASD,GAAY,GAEzBC,EAASA,EAAO,QAAQ,kCAAmC,EAAE,EAC7D,GAAI,CACIR,EAAQ,mBACJA,EAAQ,gBACRQ,EAASA,EAAO,QAAQ,kCAAmCR,EAAQ,gBAAkB,KAAK,EAE1FQ,EAASA,EAAO,QAAQ,kCAAmC,IAAI,GAEnER,EAAQ,MACRQ,EAASA,EAEJ,QAAQ,WAAY;AAAA,CAAI,EAExB,QAAQ,YAAa,EAAE,EAEvB,QAAQ,MAAO,EAAE,EAEjB,QAAQ,YAAa,EAAE,GAE5BR,EAAQ,gBAERQ,EAASA,EAAO,QAAQ,8BAA+B,SAAS,GAEpEA,EAASA,EAEJ,QAAQ,WAAY,EAAE,EAEtB,QAAQ,kBAAmB,EAAE,EAE7B,QAAQ,uBAAwB,EAAE,EAClC,QAAQ,wBAAyB,EAAE,EAEnC,QAAQ,8BAA+BR,EAAQ,cAAgB,KAAO,EAAE,EAExE,QAAQ,4BAA6B,IAAI,EAEzC,QAAQ,gBAAiB,EAAE,EAC3B,QAAQ,qBAAsB;AAAA;AAAA,CAAM,EAEpC,QAAQ,yCAA0C,EAAE,EAEpD,QAAQ,iEAAkE,QAAQ,EAElF,QAAQ,gCAAiC,IAAI,EAC7C,QAAQ,gCAAiC,IAAI,EAE7C,QAAQ,mBAAoB,IAAI,EAEhC,QAAQ,WAAY,IAAI,EAExB,QAAQ,UAAW;AAAA;AAAA,CAAM,CACjC,OACMS,EAAG,CACN,eAAQ,MAAMA,CAAC,EACRF,CACV,CACD,OAAOC,CACX,EACAH,GAAAD,GAAA,eAAyBE,GCvFzB,MAAMI,GAA2B,CAC7B,aAAc,CACV,aAAc,KACjB,EACD,YAAa,CACT,aAAc,KACjB,EACD,oBAAqB,CACjB,aAAc,MACd,eAAgB,KACnB,EACD,mBAAoB,CAChB,aAAc,MACd,eAAgB,KACnB,EACD,mBAAoB,CAChB,aAAc,QACd,eAAgB,OACnB,CACL,EACaC,GAA8BC,GAChCF,GAAyBE,CAAgB,EAGvCC,GAAWC,GAAY,CAChC,IAAIC,EAAOD,EAAQ,KACnB,OAAIA,EAAQ,YAAc,aACtBC,EAAOT,GAAeQ,EAAQ,IAAI,GAE/BE,GAAuBD,CAAI,CACtC,EAIMC,GAA0BC,GAAU,CACtC,MAAMC,EAAmB,6BACzB,OAAOD,EAAM,QAAQC,EAAkB,EAAE,CAC7C,EAIaC,GAAgCC,GAAU,CACnD,MAAMC,EAAqB,GAC3B,cAAO,KAAKD,CAAK,EAAE,QAASE,GAAa,OACrC,OAAQA,EAAQ,CACZ,KAAKnB,GAAyB,KAAM,CAChCkB,EAAmB,gBAAkBD,EAAME,CAAQ,EACnDD,EAAmB,UAAY,QAC/B,KACH,CACD,KAAKlB,GAAyB,OAAQ,CAClCkB,EAAmB,YAAcD,EAAME,CAAQ,EAC/C,KACH,CACD,KAAKnB,GAAyB,aAAc,CACxCkB,EAAmB,YAAc,QAAOE,EAAAH,EAAME,CAAQ,IAAd,YAAAC,EAAiB,MAAM,MAAM,EAAE,EACvE,KACH,CACD,KAAKpB,GAAyB,iBAAkB,CAC5CkB,EAAmB,YAAc,SACjC,KACH,CACJ,CACT,CAAK,EACMA,CACX,EAIaG,GAAqCJ,GAAU,CACxD,MAAMC,EAAqB,GAC3B,cAAO,KAAKD,CAAK,EAAE,QAASE,GAAa,CACrC,OAAQA,EAAQ,CACZ,KAAKpB,GAAqB,MAAO,CAC7BmB,EAAmB,YAAcD,EAAME,CAAQ,EAC/C,KACH,CACJ,CACT,CAAK,EACMD,CACX,EClFMI,GAAmB1B,GAAU,CAE/B,MAAM2B,EAAO,GACb3B,EAAM,UAAU,IAAK4B,GAAa,CAC9BA,EAAS,QAAQ,QAASC,GAAW,CACjCF,EAAKC,EAAS,EAAE,EAAI,CAChB,GAAIA,EAAS,GACb,OAAQ,KACR,OAAQ,EACxB,EACYD,EAAKE,CAAM,EAAI,CACX,GAAIA,EACJ,OAAQD,EAAS,GACjB,OAAQ5B,EAAM,SAAS6B,CAAM,IAAM,MACnD,CACA,CAAS,CACT,CAAK,EACD,MAAMC,EAAS,GACf,OAAC,GAAG,OAAO,KAAK9B,EAAM,QAAQ,EAAG,GAAGA,EAAM,UAAU,IAAK+B,GAAMA,EAAE,EAAE,CAAC,EAAE,QAASC,GAAO,CAClF,GAAI,CAACL,EAAKK,CAAE,EACR,OAEJ,IAAIC,EAAON,EAAKK,CAAE,EAClB,MAAME,EAAW,GAIjB,IAHKD,EAAK,QACNC,EAAS,KAAK,kBAAkBD,EAAK,EAAE,EAAE,EAGrCA,EAAK,QACLC,EAAS,KAAK,kBAAkBD,EAAK,MAAM,EAAE,EAC7CA,EAAON,EAAKM,EAAK,MAAM,EAM/BH,EAAOE,CAAE,EAAIE,CACrB,CAAK,EACM,CACH,YAAcC,GACHL,EAAOK,CAAS,GAAK,GAEhC,YAAcA,GACHR,EAAKQ,CAAS,EAAIR,EAAKQ,CAAS,EAAE,OAAS,IAE9D,CACA,EACaC,GAAyC,IAAItC,GAAe,CACrE,UAAW,CAACE,EAAOC,IAAY,CAC3B,MAAMoC,EAAW,GACXC,EAAWrC,EAAQ,SACnB,CAAE,YAAAsC,EAAa,YAAAC,CAAa,EAAGd,GAAgB1B,CAAK,EAE1D,OAAAA,EAAM,UAAU,QAAS,EAAC,QAAS4B,GAAa,CAC5C,MAAMM,EAAWK,EAAYX,EAAS,EAAE,EAClCa,EAAmB,CACrB,GAAIb,EAAS,GACb,KAAM,YACN,SAAAM,EACA,EAAGN,EAAS,EACZ,EAAGA,EAAS,EACZ,MAAOA,EAAS,MAChB,OAAQA,EAAS,OACjB,MAAO,CACH,SAAAM,EACA,KAAMpB,GAAQc,CAAQ,EACtB,SAAAU,EACA,cAAe,KAClB,CACjB,EACYD,EAAS,KAAKI,CAAgB,CAC1C,CAAS,EAED,OAAO,OAAOzC,EAAM,QAAQ,EAAE,QAAS0C,GAAW,CAC9C,GAAI,CAACA,EACD,OAEJ,MAAMR,EAAWK,EAAYG,EAAO,EAAE,EAEhCC,EAAiBvB,GAA6BsB,EAAO,cAAc,EACnEE,EAAanB,GAAkCiB,EAAO,UAAU,EACtE,IAAID,EAAmB,CACnB,GAAIC,EAAO,GACX,KAAM,YACN,SAAAR,EACA,EAAGQ,EAAO,EACV,EAAGA,EAAO,EACV,MAAOA,EAAO,MACd,OAAQA,EAAO,OACf,YAAa,EACb,MAAO,CACH,SAAAR,EACA,KAAMpB,GAAQ4B,CAAM,EACpB,SAAAJ,EACA,GAAGM,CACN,EACD,KAAMF,EAAO,MAAQ,KACrB,GAAGC,CACnB,EACY,OAAQD,EAAO,KAAI,CACf,KAAKxC,GAAY,QAAS,CACtBuC,EAAmB,CAAE,GAAGA,EAAkB,UAAW,CAAE,KAAM,CAAC,GAC9D,KACH,CACD,KAAKvC,GAAY,MAAO,CACpBuC,EAAmB,CAAE,GAAGA,EAAkB,UAAW,CAAE,KAAM,CAAC,GAC9D,KACH,CACD,KAAKvC,GAAY,aAAc,CAG3BgC,EAAS,KAAK,gBAAgBQ,EAAO,EAAE,GAAG,EAE1C,MAAMG,EAAc,CAChB,KAAM,UACN,SAAAX,EACA,EAAGQ,EAAO,EAAI,EACd,EAAGA,EAAO,EAAI,EACd,MAAOA,EAAO,MAAQ,EAAgB,EACtC,OAAQA,EAAO,OAAS,EAAgB,EACxC,YAAa,EACb,UAAW,CAAE,KAAM,Line truncated
|
|
||||||
@@ -1,446 +0,0 @@
|
|||||||
import{F as Ne,h as E,C as De,f as be}from"./index.esm-J35DBGFx.js";import{_ as He,d as I,a as ze,e as q,f as fe}from"./index-2K3MavtT.js";/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var ye="firebasestorage.googleapis.com",Re="storageBucket",Xe=2*60*1e3,Ge=10*60*1e3,p=function(t){He(e,t);function e(r,n){var a=t.call(this,ee(r),"Firebase Storage: "+n+" ("+ee(r)+")")||this;return a.customData={serverResponse:null},Object.setPrototypeOf(a,e.prototype),a}return e.prototype._codeEquals=function(r){return ee(r)===this.code},Object.defineProperty(e.prototype,"message",{get:function(){return this.customData.serverResponse?this.message+`
|
|
||||||
`+this.customData.serverResponse:this.message},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"serverResponse",{get:function(){return this.customData.serverResponse},set:function(r){this.customData.serverResponse=r},enumerable:!1,configurable:!0}),e}(Ne);function ee(t){return"storage/"+t}function oe(){var t="An unknown error occurred, please check the error payload for server response.";return new p("unknown",t)}function $e(t){return new p("object-not-found","Object '"+t+"' does not exist.")}function We(t){return new p("quota-exceeded","Quota for bucket '"+t+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}function Ke(){var t="User is not authenticated, please authenticate using Firebase Authentication and try again.";return new p("unauthenticated",t)}function Ye(t){return new p("unauthorized","User does not have permission to access '"+t+"'.")}function Ze(){return new p("retry-limit-exceeded","Max retry time for operation exceeded, please try again.")}function we(){return new p("canceled","User canceled the upload/download.")}function Je(t){return new p("invalid-url","Invalid URL '"+t+"'.")}function Qe(t){return new p("invalid-default-bucket","Invalid default bucket '"+t+"'.")}function Ve(){return new p("no-default-bucket","No default bucket found. Did you set the '"+Re+"' property when initializing the app?")}function ke(){return new p("cannot-slice-blob","Cannot slice blob for upload. Please retry the upload.")}function et(){return new p("server-file-wrong-size","Server recorded incorrect upload file size, please retry the upload.")}function tt(){return new p("no-download-url","The given file does not have any download URLs.")}function C(t){return new p("invalid-argument",t)}function Te(){return new p("app-deleted","The Firebase app was deleted.")}function Se(t){return new p("invalid-root-operation","The operation '"+t+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function M(t,e){return new p("invalid-format","String does not match format '"+t+"': "+e)}function H(t){throw new p("internal-error","Internal error: "+t)}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var w={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"},te=function(){function t(e,r){this.data=e,this.contentType=r||null}return t}();function Pe(t,e){switch(t){case w.RAW:return new te(Ue(e));case w.BASE64:case w.BASE64URL:return new te(xe(t,e));case w.DATA_URL:return new te(nt(e),at(e))}throw oe()}function Ue(t){for(var e=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n<=127)e.push(n);else if(n<=2047)e.push(192|n>>6,128|n&63);else if((n&64512)===55296){var a=r<t.length-1&&(t.charCodeAt(r+1)&64512)===56320;if(!a)e.push(239,191,189);else{var o=n,i=t.charCodeAt(++r);n=65536|(o&1023)<<10|i&1023,e.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|n&63)}}else(n&64512)===56320?e.push(239,191,189):e.push(224|n>>12,128|n>>6&63,128|n&63)}return new Uint8Array(e)}function rt(t){var e;try{e=decodeURIComponent(t)}catch{throw M(w.DATA_URL,"Malformed data URL.")}return Ue(e)}function xe(t,e){switch(t){case w.BASE64:{var r=e.indexOf("-")!==-1,n=e.indexOf("_")!==-1;if(r||n){var a=r?"-":"_";throw M(t,"Invalid character '"+a+"' found: is it base64url encoded?")}break}case w.BASE64URL:{var o=e.indexOf("+")!==-1,i=e.indexOf("/")!==-1;if(o||i){var a=o?"+":"/";throw M(t,"Invalid character '"+a+"' found: is it base64 encoded?")}e=e.replace(/-/g,"+").replace(/_/g,"/");break}}var u;try{u=atob(e)}catch{throw M(t,"Invalid character found")}for(var s=new Uint8Array(u.length),l=0;l<u.length;l++)s[l]=u.charCodeAt(l);return s}var Ee=function(){function t(e){this.base64=!1,this.contentType=null;var r=e.match(/^data:([^,]+)?,/);if(r===null)throw M(w.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var n=r[1]||null;n!=null&&(this.base64=ot(n,";base64"),this.contentType=this.base64?n.substring(0,n.length-7):n),this.rest=e.substring(e.indexOf(",")+1)}return t}();function nt(t){var e=new Ee(t);return e.base64?xe(w.BASE64,e.rest):rt(e.rest)}function at(t){var e=new Ee(t);return e.contentType}function ot(t,e){var r=t.length>=e.length;return r?t.substring(t.length-e.length)===e:!1}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var it={STATE_CHANGED:"state_changed"},g={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function re(t){switch(t){case"running":case"pausing":case"canceling":return g.RUNNING;case"paused":return g.PAUSED;case"success":return g.SUCCESS;case"canceled":return g.CANCELED;case"error":return g.ERROR;default:return g.ERROR}}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var A;(function(t){t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_ERROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT"})(A||(A={}));/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var st=function(){function t(){var e=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=A.NO_ERROR,this.sendPromise_=new Promise(function(r){e.xhr_.addEventListener("abort",function(){e.errorCode_=A.ABORT,r(e)}),e.xhr_.addEventListener("error",function(){e.errorCode_=A.NETWORK_ERROR,r(e)}),e.xhr_.addEventListener("load",function(){r(e)})})}return t.prototype.send=function(e,r,n,a){if(this.sent_)throw H("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(r,e,!0),a!==void 0)for(var o in a)a.hasOwnProperty(o)&&this.xhr_.setRequestHeader(o,a[o].toString());return n!==void 0?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},t.prototype.getErrorCode=function(){if(!this.sent_)throw H("cannot .getErrorCode() before sending");return this.errorCode_},t.prototype.getStatus=function(){if(!this.sent_)throw H("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}},t.prototype.getResponseText=function(){if(!this.sent_)throw H("cannot .getResponseText() before sending");return this.xhr_.responseText},t.prototype.abort=function(){this.xhr_.abort()},t.prototype.getResponseHeader=function(e){return this.xhr_.getResponseHeader(e)},t.prototype.addUploadProgressListener=function(e){this.xhr_.upload!=null&&this.xhr_.upload.addEventListener("progress",e)},t.prototype.removeUploadProgressListener=function(e){this.xhr_.upload!=null&&this.xhr_.upload.removeEventListener("progress",e)},t}();/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var ut=function(){function t(){}return t.prototype.createXhrIo=function(){return new st},t}();/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var k=function(){function t(e,r){this.bucket=e,this.path_=r}return Object.defineProperty(t.prototype,"path",{get:function(){return this.path_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRoot",{get:function(){return this.path.length===0},enumerable:!1,configurable:!0}),t.prototype.fullServerUrl=function(){var e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)},t.prototype.bucketOnlyServerUrl=function(){var e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o"},t.makeFromBucketSpec=function(e){var r;try{r=t.makeFromUrl(e)}catch{return new t(e,"")}if(r.path==="")return r;throw Qe(e)},t.makeFromUrl=function(e){var r=null,n="([A-Za-z0-9.\\-_]+)";function a(P){P.path.charAt(P.path.length-1)==="/"&&(P.path_=P.path_.slice(0,-1))}var o="(/(.*))?$",i=new RegExp("^gs://"+n+o,"i"),u={bucket:1,path:3};function s(P){P.path_=decodeURIComponent(P.path)}for(var l="v[A-Za-z0-9_]+",c=ye.replace(/[.]/g,"\\."),h="(/([^?#]*).*)?$",d=new RegExp("^https?://"+c+"/"+l+"/b/"+n+"/o"+h,"i"),m={bucket:1,path:3},f="(?:storage.googleapis.com|storage.cloud.google.com)",_="([^?#]*)",b=new RegExp("^https?://"+f+"/"+n+"/"+_,"i"),x={bucket:1,path:2},y=[{regex:i,indices:u,postModify:a},{regex:d,indices:m,postModify:s},{regex:b,indices:x,postModify:s}],R=0;R<y.length;R++){var T=y[R],L=T.regex.exec(e);if(L){var D=L[T.indices.bucket],F=L[T.indices.path];F||(F=""),r=new t(D,F),T.postModify(r);break}}if(r==null)throw Je(e);return r},t}(),lt=function(){function t(e){this.promise_=Promise.reject(e)}return t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(e){},t}();/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function ct(t,e,r){var n=1,a=null,o=!1,i=0;function u(){return i===2}var s=!1;function l(){for(var f=[],_=0;_<arguments.length;_++)f[_]=arguments[_];s||(s=!0,e.apply(null,f))}function c(f){a=setTimeout(function(){a=null,t(h,u())},f)}function h(f){for(var _=[],b=1;b<arguments.length;b++)_[b-1]=arguments[b];if(!s){if(f){l.call.apply(l,fe([null,f],_));return}var x=u()||o;if(x){l.call.apply(l,fe([null,f],_));return}n<64&&(n*=2);var y;i===1?(i=2,y=0):y=(n+Math.random())*1e3,c(y)}}var d=!1;function m(f){d||(d=!0,!s&&(a!==null?(f||(i=2),clearTimeout(a),c(0)):f||(i=1)))}return c(0),setTimeout(function(){o=!0,m(!0)},r),m}function ft(t){t(!1)}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function ht(t){return t!==void 0}function dt(t){return typeof t=="function"}function pt(t){return typeof t=="object"&&!Array.isArray(t)}function W(t){return typeof t=="string"||t instanceof String}function he(t){return ie()&&t instanceof Blob}function ie(){return typeof Blob<"u"}function ne(t,e,r,n){if(n<e)throw C("Invalid value for '"+t+"'. Expected "+e+" or greater.");if(n>r)throw C("Invalid value for '"+t+"'. Expected "+r+" or less.")}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function O(t){return"https://"+ye+"/v0"+t}function Oe(t){var e=encodeURIComponent,r="?";for(var n in t)if(t.hasOwnProperty(n)){var a=e(n)+"="+e(t[n]);r=r+a+"&"}return r=r.slice(0,-1),r}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var _t=function(){function t(e,r,n,a,o,i,u,s,l,c,h){var d=this;this.pendingXhr_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=e,this.method_=r,this.headers_=n,this.body_=a,this.successCodes_=o.slice(),this.additionalRetryCodes_=i.slice(),this.callback_=u,this.errorCallback_=s,this.progressCallback_=c,this.timeout_=l,this.pool_=h,this.promise_=new Promise(function(m,f){d.resolve_=m,d.reject_=f,d.start_()})}return t.prototype.start_=function(){var e=this;function r(a,o){if(o){a(!1,new z(!1,null,!0));return}var i=e.pool_.createXhrIo();e.pendingXhr_=i;function u(s){var l=s.loaded,c=s.lengthComputable?s.total:-1;e.progressCallback_!==null&&e.progressCallback_(l,c)}e.progressCallback_!==null&&i.addUploadProgressListener(u),i.send(e.url_,e.method_,e.body_,e.headers_).then(function(s){e.progressCallback_!==null&&s.removeUploadProgressListener(u),e.pendingXhr_=null,s=s;var l=s.getErrorCode()===A.NO_ERROR,c=s.getStatus();if(!l||e.isRetryStatusCode_(c)){var h=s.getErrorCode()===A.ABORT;a(!1,new z(!1,null,h));return}var d=e.successCodes_.indexOf(c)!==-1;a(!0,new z(d,s))})}function n(a,o){var i=e.resolve_,u=e.reject_,s=o.xhr;if(o.wasSuccessCode)try{var l=e.callback_(s,s.getResponseText());ht(l)?i(l):i()}catch(h){u(h)}else if(s!==null){var c=oe();c.serverResponse=s.getResponseText(),e.errorCallback_?u(e.errorCallback_(s,c)):u(c)}else if(o.canceled){var c=e.appDelete_?Te():we();u(c)}else{var c=Ze();u(c)}}this.canceled_?n(!1,new z(!1,null,!0)):this.backoffId_=ct(r,n,this.timeout_)},t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(e){this.canceled_=!0,this.appDelete_=e||!1,this.backoffId_!==null&&ft(this.backoffId_),this.pendingXhr_!==null&&this.pendingXhr_.abort()},t.prototype.isRetryStatusCode_=function(e){var r=e>=500&&e<600,n=[408,429],a=n.indexOf(e)!==-1,o=this.additionalRetryCodes_.indexOf(e)!==-1;return r||a||o},t}(),z=function(){function t(e,r,n){this.wasSuccessCode=e,this.xhr=r,this.canceled=!!n}return t}();function vt(t,e){e!==null&&e.length>0&&(t.Authorization="Firebase "+e)}function gt(t,e){t["X-Firebase-Storage-Version"]="webjs/"+(e??"AppManager")}function mt(t,e){e&&(t["X-Firebase-GMPID"]=e)}function bt(t,e,r,n,a){var o=Oe(t.urlParams),i=t.url+o,u=Object.assign({},t.headers);return mt(u,e),vt(u,r),gt(u,a),new _t(i,t.method,u,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,n)}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function yt(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}function Rt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=yt();if(r!==void 0){for(var n=new r,a=0;a<t.length;a++)n.append(t[a]);return n.getBlob()}else{if(ie())return new Blob(t);throw new p("unsupported-environment","This browser doesn't seem to support creating Blobs")}}function wt(t,e,r){return t.webkitSlice?t.webkitSlice(e,r):t.mozSlice?t.mozSlice(e,r):t.slice?t.slice(e,r):null}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var se=function(){function t(e,r){var n=0,a="";he(e)?(this.data_=e,n=e.size,a=e.type):e instanceof ArrayBuffer?(r?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(r?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=a}return t.prototype.size=function(){return this.size_},t.prototype.type=function(){return this.type_},t.prototype.slice=function(e,r){if(he(this.data_)){var n=this.data_,a=wt(n,e,r);return a===null?null:new t(a)}else{var o=new Uint8Array(this.data_.buffer,e,r-e);return new t(o,!0)}},t.getBlob=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(ie()){var n=e.map(function(s){return s instanceof t?s.data_:s});return new t(Rt.apply(null,n))}else{var a=e.map(function(s){return W(s)?Pe(w.RAW,s).data:s.data_}),o=0;a.forEach(function(s){o+=s.byteLength});var i=new Uint8Array(o),u=0;return a.forEach(function(s){for(var l=0;l<s.length;l++)i[u++]=s[l]}),new t(i,!0)}},t.prototype.uploadData=function(){return this.data_},t}();/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function ue(t){var e;try{e=JSON.parse(t)}catch{return null}return pt(e)?e:null}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function kt(t){if(t.length===0)return null;var e=t.lastIndexOf("/");if(e===-1)return"";var r=t.slice(0,e);return r}function Tt(t,e){var r=e.split("/").filter(function(n){return n.length>0}).join("/");return t.length===0?r:t+"/"+r}function Ce(t){var e=t.lastIndexOf("/",t.length-2);return e===-1?t:t.slice(e+1)}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function St(t,e){return e}var v=function(){function t(e,r,n,a){this.server=e,this.local=r||e,this.writable=!!n,this.xform=a||St}return t}(),X=null;function Pt(t){return!W(t)||t.length<2?t:Ce(t)}function K(){if(X)return X;var t=[];t.push(new v("bucket")),t.push(new v("generation")),t.push(new v("metageneration")),t.push(new v("name","fullPath",!0));function e(o,i){return Pt(i)}var r=new v("name");r.xform=e,t.push(r);function n(o,i){return i!==void 0?Number(i):i}var a=new v("size");return a.xform=n,t.push(a),t.push(new v("timeCreated")),t.push(new v("updated")),t.push(new v("md5Hash",null,!0)),t.push(new v("cacheControl",null,!0)),t.push(new v("contentDisposition",null,!0)),t.push(new v("contentEncoding",null,!0)),t.push(new v("contentLanguage",null,!0)),t.push(new v("contentType",null,!0)),t.push(new v("metadata","customMetadata",!0)),X=t,X}function Ut(t,e){function r(){var n=t.bucket,a=t.fullPath,o=new k(n,a);return e._makeStorageReference(o)}Object.defineProperty(t,"ref",{get:r})}function xt(t,e,r){var n={};n.type="file";for(var a=r.length,o=0;o<a;o++){var i=r[o];n[i.local]=i.xform(n,e[i.server])}return Ut(n,t),n}function Ae(t,e,r){var n=ue(e);if(n===null)return null;var a=n;return xt(t,a,r)}function Et(t,e){var r=ue(e);if(r===null||!W(r.downloadTokens))return null;var n=r.downloadTokens;if(n.length===0)return null;var a=encodeURIComponent,o=n.split(","),i=o.map(function(u){var s=t.bucket,l=t.fullPath,c="/b/"+a(s)+"/o/"+a(l),h=O(c),d=Oe({alt:"media",token:u});return h+d});return i[0]}function le(t,e){for(var r={},n=e.length,a=0;a<n;a++){var o=e[a];o.writable&&(r[o.server]=t[o.local])}return JSON.stringify(r)}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2019 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var de="prefixes",pe="items";function Ot(t,e,r){var n={prefixes:[],items:[],nextPageToken:r.nextPageToken};if(r[de])for(var a=0,o=r[de];a<o.length;a++){var i=o[a],u=i.replace(/\/$/,""),s=t._makeStorageReference(new k(e,u));n.prefixes.push(s)}if(r[pe])for(var l=0,c=r[pe];l<c.length;l++){var h=c[l],s=t._makeStorageReference(new k(e,h.name));n.items.push(s)}return n}function Ct(t,e,r){var n=ue(r);if(n===null)return null;var a=n;return Ot(t,e,a)}var U=function(){function t(e,r,n,a){this.url=e,this.method=r,this.handler=n,this.timeout=a,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}return t}();/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function S(t){if(!t)throw oe()}function Y(t,e){function r(n,a){var o=Ae(t,a,e);return S(o!==null),o}return r}function At(t,e){function r(n,a){var o=Ct(t,e,a);return S(o!==null),o}return r}function It(t,e){function r(n,a){var o=Ae(t,a,e);return S(o!==null),Et(o,a)}return r}function j(t){function e(r,n){var a;return r.getStatus()===401?a=Ke():r.getStatus()===402?a=We(t.bucket):r.getStatus()===403?a=Ye(t.path):a=n,a.serverResponse=n.serverResponse,a}return e}function Z(t){var e=j(t);function r(n,a){var o=e(n,a);return n.getStatus()===404&&(o=$e(t.path)),o.serverResponse=a.serverResponse,o}return r}function Ie(t,e,r){var n=e.fullServerUrl(),a=O(n),o="GET",i=t.maxOperationRetryTime,u=new U(a,o,Y(t,r),i);return u.errorHandler=Z(e),u}function qt(t,e,r,n,a){var o={};e.isRoot?o.prefix="":o.prefix=e.path+"/",r&&r.length>0&&(o.delimiter=r),n&&(o.pageToken=n),a&&(o.maxResults=a);var i=e.bucketOnlyServerUrl(),u=O(i),s="GET",l=t.maxOperationRetryTime,c=new U(u,s,At(t,e.bucket),l);return c.urlParams=o,c.errorHandler=j(e),c}function Bt(t,e,r){var n=e.fullServerUrl(),a=O(n),o="GET",i=t.maxOperationRetryTime,u=new U(a,o,It(t,r),i);return u.errorHandler=Z(e),u}function jt(t,e,r,n){var a=e.fullServerUrl(),o=O(a),i="PATCH",u=le(r,n),s={"Content-Type":"application/json; charset=utf-8"},l=t.maxOperationRetryTime,c=new U(o,i,Y(t,n),l);return c.headers=s,c.body=u,c.errorHandler=Z(e),c}function Lt(t,e){var r=e.fullServerUrl(),n=O(r),a="DELETE",o=t.maxOperationRetryTime;function i(s,l){}var u=new U(n,a,i,o);return u.successCodes=[200,204],u.errorHandler=Z(e),u}function Ft(t,e){return t&&t.contentType||e&&e.type()||"application/octet-stream"}function qe(t,e,r){var n=Object.assign({},r);return n.fullPath=t.path,n.size=e.size(),n.contentType||(n.contentType=Ft(null,e)),n}function Mt(t,e,r,n,a){var o=e.bucketOnlyServerUrl(),i={"X-Goog-Upload-Protocol":"multipart"};function u(){for(var R="",T=0;T<2;T++)R=R+Math.random().toString().slice(2);return R}var s=u();i["Content-Type"]="multipart/related; boundary="+s;var l=qe(e,n,a),c=le(l,r),h="--"+s+`\r
|
|
||||||
Content-Type: application/json; charset=utf-8\r
|
|
||||||
\r
|
|
||||||
`+c+`\r
|
|
||||||
--`+s+`\r
|
|
||||||
Content-Type: `+l.contentType+`\r
|
|
||||||
\r
|
|
||||||
`,d=`\r
|
|
||||||
--`+s+"--",m=se.getBlob(h,n,d);if(m===null)throw ke();var f={name:l.fullPath},_=O(o),b="POST",x=t.maxUploadRetryTime,y=new U(_,b,Y(t,r),x);return y.urlParams=f,y.headers=i,y.body=m.uploadData(),y.errorHandler=j(e),y}var $=function(){function t(e,r,n,a){this.current=e,this.total=r,this.finalized=!!n,this.metadata=a||null}return t}();function ce(t,e){var r=null;try{r=t.getResponseHeader("X-Goog-Upload-Status")}catch{S(!1)}var n=e||["active"];return S(!!r&&n.indexOf(r)!==-1),r}function Nt(t,e,r,n,a){var o=e.bucketOnlyServerUrl(),i=qe(e,n,a),u={name:i.fullPath},s=O(o),l="POST",c={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":n.size(),"X-Goog-Upload-Header-Content-Type":i.contentType,"Content-Type":"application/json; charset=utf-8"},h=le(i,r),d=t.maxUploadRetryTime;function m(_){ce(_);var b;try{b=_.getResponseHeader("X-Goog-Upload-URL")}catch{S(!1)}return S(W(b)),b}var f=new U(s,l,m,d);return f.urlParams=u,f.headers=c,f.body=h,f.errorHandler=j(e),f}function Dt(t,e,r,n){var a={"X-Goog-Upload-Command":"query"};function o(l){var c=ce(l,["active","final"]),h=null;try{h=l.getResponseHeader("X-Goog-Upload-Size-Received")}catch{S(!1)}h||S(!1);var d=Number(h);return S(!isNaN(d)),new $(d,n.size(),c==="final")}var i="POST",u=t.maxUploadRetryTime,s=new U(r,i,o,u);return s.headers=a,s.errorHandler=j(e),s}var _e=256*1024;function Ht(t,e,r,n,a,o,i,u){var s=new $(0,0);if(i?(s.current=i.current,s.total=i.total):(s.current=0,s.total=n.size()),n.size()!==s.total)throw et();var l=s.total-s.current,c=l;a>0&&(c=Math.min(c,a));var h=s.current,d=h+c,m=c===l?"upload, finalize":"upload",f={"X-Goog-Upload-Command":m,"X-Goog-Upload-Offset":s.current},_=n.slice(h,d);if(_===null)throw ke();function b(T,L){var D=ce(T,["active","final"]),F=s.current+c,P=n.size(),V;return D==="final"?V=Y(e,o)(T,L):V=null,new $(F,P,D==="final",V)}var x="POST",y=e.maxUploadRetryTime,R=new U(r,x,b,y);return R.headers=f,R.body=_.uploadData(),R.progressCallback=u||null,R.errorHandler=j(t),R}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var zt=function(){function t(e,r,n){var a=dt(e)||r!=null||n!=null;if(a)this.next=e,this.error=r,this.complete=n;else{var o=e;this.next=o.next,this.error=o.error,this.complete=o.complete}}return t}();/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function B(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];Promise.resolve().then(function(){return t.apply(void 0,e)})}}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var Be=function(){function t(e,r,n){var a=this;n===void 0&&(n=null),this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=e,this._blob=r,this._metadata=n,this._mappings=K(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=function(o){a._request=void 0,a._chunkMultiplier=1,o._codeEquals("canceled")?(a._needToFetchStatus=!0,a.completeTransitions_()):(a._error=o,a._transition("error"))},this._metadataErrorHandler=function(o){a._request=void 0,o._codeEquals("canceled")?a.completeTransitions_():(a._error=o,a._transition("error"))},this._promise=new Promise(function(o,i){a._resolve=o,a._reject=i,a._start()}),this._promise.then(null,function(){})}return t.prototype._makeProgressCallback=function(){var e=this,r=this._transferred;return function(n){return e._updateProgress(r+n)}},t.prototype._shouldDoResumable=function(e){return e.size()>256*1024},t.prototype._start=function(){this._state==="running"&&this._request===void 0&&(this._resumable?this._uploadUrl===void 0?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this._continueUpload():this._oneShotUpload())},t.prototype._resolveToken=function(e){var r=this;this._ref.storage._getAuthToken().then(function(n){switch(r._state){case"running":e(n);break;case"canceling":r._transition("canceled");break;case"pausing":r._transition("paused");break}})},t.prototype._createResumable=function(){var e=this;this._resolveToken(function(r){var n=Nt(e._ref.storage,e._ref._location,e._mappings,e._blob,e._metadata),a=e._ref.storage._makeRequest(n,r);e._request=a,a.getPromise().then(function(o){e._request=void 0,e._uploadUrl=o,e._needToFetchStatus=!1,e.completeTransitions_()},e._errorHandler)})},t.prototype._fetchStatus=function(){var e=this,r=this._uploadUrl;this._resolveToken(function(n){var a=Dt(e._ref.storage,e._ref._location,r,e._blob),o=e._ref.storage._makeRequest(a,n);e._request=o,o.getPromise().then(function(i){i=i,e._request=void 0,e._updateProgress(i.current),e._needToFetchStatus=!1,i.finalized&&(e._needToFetchMetadata=!0),e.completeTransitions_()},e._errorHandler)})},t.prototype._continueUpload=function(){var e=this,r=_e*this._chunkMultiplier,n=new $(this._transferred,this._blob.size()),a=this._uploadUrl;this._resolveToken(function(o){var i;try{i=Ht(e._ref._location,e._ref.storage,a,e._blob,r,e._mappings,n,e._makeProgressCallback())}catch(s){e._error=s,e._transition("error");return}var u=e._ref.storage._makeRequest(i,o);e._request=u,u.getPromise().then(function(s){e._increaseMultiplier(),e._request=void 0,e._updateProgress(s.current),s.finalized?(e._metadata=s.metadata,e._transition("success")):e.completeTransitions_()},e._errorHandler)})},t.prototype._increaseMultiplier=function(){var e=_e*this._chunkMultiplier;e<32*1024*1024&&(this._chunkMultiplier*=2)},t.prototype._fetchMetadata=function(){var e=this;this._resolveToken(function(r){var n=Ie(e._ref.storage,e._ref._location,e._mappings),a=e._ref.storage._makeRequest(n,r);e._request=a,a.getPromise().then(function(o){e._request=void 0,e._metadata=o,e._transition("success")},e._metadataErrorHandler)})},t.prototype._oneShotUpload=function(){var e=this;this._resolveToken(function(r){var n=Mt(e._ref.storage,e._ref._location,e._mappings,e._blob,e._metadata),a=e._ref.storage._makeRequest(n,r);e._request=a,a.getPromise().then(function(o){e._request=void 0,e._metadata=o,e._updateProgress(e._blob.size()),e._transition("success")},e._errorHandler)})},t.prototype._updateProgress=function(e){var r=this._transferred;this._transferred=e,this._transferred!==r&&this._notifyObservers()},t.prototype._transition=function(e){if(this._state!==e)switch(e){case"canceling":this._state=e,this._request!==void 0&&this._request.cancel();break;case"pausing":this._state=e,this._request!==void 0&&this._request.cancel();break;case"running":var r=this._state==="paused";this._state=e,r&&(this._notifyObservers(),this._start());break;case"paused":this._state=e,this._notifyObservers();break;case"canceled":this._error=we(),this._state=e,this._notifyObservers();break;case"error":this._state=e,this._notifyObservers();break;case"success":this._state=e,this._notifyObservers();break}},t.prototype.completeTransitions_=function(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start();break}},Object.defineProperty(t.prototype,"snapshot",{get:function(){var e=re(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:e,metadata:this._metadata,task:this,ref:this._ref}},enumerable:!1,configurable:!0}),t.prototype.on=function(e,r,n,a){var o=this,i=new zt(r,n,a);return this._addObserver(i),function(){o._removeObserver(i)}},t.prototype.then=function(e,r){return this.Line truncated
|
|
||||||
* @license
|
|
||||||
* Copyright 2019 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var J=function(){function t(e,r){this._service=e,r instanceof k?this._location=r:this._location=k.makeFromUrl(r)}return t.prototype.toString=function(){return"gs://"+this._location.bucket+"/"+this._location.path},t.prototype._newRef=function(e,r){return new t(e,r)},Object.defineProperty(t.prototype,"root",{get:function(){var e=new k(this._location.bucket,"");return this._newRef(this._service,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bucket",{get:function(){return this._location.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullPath",{get:function(){return this._location.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return Ce(this._location.path)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storage",{get:function(){return this._service},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=kt(this._location.path);if(e===null)return null;var r=new k(this._location.bucket,e);return new t(this._service,r)},enumerable:!1,configurable:!0}),t.prototype._throwIfRoot=function(e){if(this._location.path==="")throw Se(e)},t}();function Xt(t,e,r){return t._throwIfRoot("uploadBytesResumable"),new Be(t,new se(e),r)}function Gt(t){var e={prefixes:[],items:[]};return je(t,e).then(function(){return e})}function je(t,e,r){return I(this,void 0,void 0,function(){var n,a,o,i;return q(this,function(u){switch(u.label){case 0:return n={pageToken:r},[4,Le(t,n)];case 1:return a=u.sent(),(o=e.prefixes).push.apply(o,a.prefixes),(i=e.items).push.apply(i,a.items),a.nextPageToken==null?[3,3]:[4,je(t,e,a.nextPageToken)];case 2:u.sent(),u.label=3;case 3:return[2]}})})}function Le(t,e){return I(this,void 0,void 0,function(){var r,n,a;return q(this,function(o){switch(o.label){case 0:return e!=null&&typeof e.maxResults=="number"&&ne("options.maxResults",1,1e3,e.maxResults),[4,t.storage._getAuthToken()];case 1:return r=o.sent(),n=e||{},a=qt(t.storage,t._location,"/",n.pageToken,n.maxResults),[2,t.storage._makeRequest(a,r).getPromise()]}})})}function $t(t){return I(this,void 0,void 0,function(){var e,r;return q(this,function(n){switch(n.label){case 0:return t._throwIfRoot("getMetadata"),[4,t.storage._getAuthToken()];case 1:return e=n.sent(),r=Ie(t.storage,t._location,K()),[2,t.storage._makeRequest(r,e).getPromise()]}})})}function Wt(t,e){return I(this,void 0,void 0,function(){var r,n;return q(this,function(a){switch(a.label){case 0:return t._throwIfRoot("updateMetadata"),[4,t.storage._getAuthToken()];case 1:return r=a.sent(),n=jt(t.storage,t._location,e,K()),[2,t.storage._makeRequest(n,r).getPromise()]}})})}function Kt(t){return I(this,void 0,void 0,function(){var e,r;return q(this,function(n){switch(n.label){case 0:return t._throwIfRoot("getDownloadURL"),[4,t.storage._getAuthToken()];case 1:return e=n.sent(),r=Bt(t.storage,t._location,K()),[2,t.storage._makeRequest(r,e).getPromise().then(function(a){if(a===null)throw tt();return a})]}})})}function Yt(t){return I(this,void 0,void 0,function(){var e,r;return q(this,function(n){switch(n.label){case 0:return t._throwIfRoot("deleteObject"),[4,t.storage._getAuthToken()];case 1:return e=n.sent(),r=Lt(t.storage,t._location),[2,t.storage._makeRequest(r,e).getPromise()]}})})}function Fe(t,e){var r=Tt(t._location.path,e),n=new k(t._location.bucket,r);return new J(t.storage,n)}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function ae(t){return/^[A-Za-z]+:\/\//.test(t)}function Zt(t,e){return new J(t,e)}function Me(t,e){if(t instanceof Q){var r=t;if(r._bucket==null)throw Ve();var n=new J(r,r._bucket);return e!=null?Me(n,e):n}else if(e!==void 0){if(e.includes(".."))throw C('`path` param cannot contain ".."');return Fe(t,e)}else return t}function Jt(t,e){if(e&&ae(e)){if(t instanceof Q)return Zt(t,e);throw C("To use ref(service, url), the first argument must be a Storage instance.")}else return Me(t,e)}function Qt(t){var e=t==null?void 0:t[Re];return e==null?null:k.makeFromBucketSpec(e)}var Q=function(){function t(e,r,n,a,o){this.app=e,this._authProvider=r,this._pool=n,this._url=a,this._firebaseVersion=o,this._bucket=null,this._appId=null,this._deleted=!1,this._maxOperationRetryTime=Xe,this._maxUploadRetryTime=Ge,this._requests=new Set,a!=null?this._bucket=k.makeFromBucketSpec(a):this._bucket=Qt(this.app.options)}return Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this._maxUploadRetryTime},set:function(e){ne("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOperationRetryTime",{get:function(){return this._maxOperationRetryTime},set:function(e){ne("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e},enumerable:!1,configurable:!0}),t.prototype._getAuthToken=function(){return I(this,void 0,void 0,function(){var e,r;return q(this,function(n){switch(n.label){case 0:return e=this._authProvider.getImmediate({optional:!0}),e?[4,e.getToken()]:[3,2];case 1:if(r=n.sent(),r!==null)return[2,r.accessToken];n.label=2;case 2:return[2,null]}})})},t.prototype._delete=function(){return this._deleted=!0,this._requests.forEach(function(e){return e.cancel()}),this._requests.clear(),Promise.resolve()},t.prototype._makeStorageReference=function(e){return new J(this,e)},t.prototype._makeRequest=function(e,r){var n=this;if(this._deleted)return new lt(Te());var a=bt(e,this._appId,r,this._pool,this._firebaseVersion);return this._requests.add(a),a.getPromise().then(function(){return n._requests.delete(a)},function(){return n._requests.delete(a)}),a},t}();/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2020 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function Vt(t,e,r){return t=E(t),Xt(t,e,r)}function er(t){return t=E(t),$t(t)}function tr(t,e){return t=E(t),Wt(t,e)}function rr(t,e){return t=E(t),Le(t,e)}function nr(t){return t=E(t),Gt(t)}function ar(t){return t=E(t),Kt(t)}function or(t){return t=E(t),Yt(t)}function ve(t,e){return t=E(t),Jt(t,e)}function ir(t,e){return Fe(t,e)}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2020 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var G=function(){function t(e,r,n){this._delegate=e,this.task=r,this.ref=n}return Object.defineProperty(t.prototype,"bytesTransferred",{get:function(){return this._delegate.bytesTransferred},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._delegate.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalBytes",{get:function(){return this._delegate.totalBytes},enumerable:!1,configurable:!0}),t}();/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2020 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var ge=function(){function t(e,r){this._delegate=e,this._ref=r,this.cancel=this._delegate.cancel.bind(this._delegate),this.catch=this._delegate.catch.bind(this._delegate),this.pause=this._delegate.pause.bind(this._delegate),this.resume=this._delegate.resume.bind(this._delegate)}return Object.defineProperty(t.prototype,"snapshot",{get:function(){return new G(this._delegate.snapshot,this,this._ref)},enumerable:!1,configurable:!0}),t.prototype.then=function(e,r){var n=this;return this._delegate.then(function(a){if(e)return e(new G(a,n,n._ref))},r)},t.prototype.on=function(e,r,n,a){var o=this,i=void 0;return r&&(typeof r=="function"?i=function(u){return r(new G(u,o,o._ref))}:i={next:r.next?function(u){return r.next(new G(u,o,o._ref))}:void 0,complete:r.complete||void 0,error:r.error||void 0}),this._delegate.on(e,i,n||void 0,a||void 0)},t}(),me=function(){function t(e,r){this._delegate=e,this._service=r}return Object.defineProperty(t.prototype,"prefixes",{get:function(){var e=this;return this._delegate.prefixes.map(function(r){return new N(r,e._service)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){var e=this;return this._delegate.items.map(function(r){return new N(r,e._service)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextPageToken",{get:function(){return this._delegate.nextPageToken||null},enumerable:!1,configurable:!0}),t}();/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2020 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var N=function(){function t(e,r){this._delegate=e,this.storage=r}return Object.defineProperty(t.prototype,"name",{get:function(){return this._delegate.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bucket",{get:function(){return this._delegate.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullPath",{get:function(){return this._delegate.fullPath},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return this._delegate.toString()},t.prototype.child=function(e){var r=ir(this._delegate,e);return new t(r,this.storage)},Object.defineProperty(t.prototype,"root",{get:function(){return new t(this._delegate.root,this.storage)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this._delegate.parent;return e==null?null:new t(e,this.storage)},enumerable:!1,configurable:!0}),t.prototype.put=function(e,r){return this._throwIfRoot("put"),new ge(Vt(this._delegate,e,r),this)},t.prototype.putString=function(e,r,n){r===void 0&&(r=w.RAW),this._throwIfRoot("putString");var a=Pe(r,e),o=ze({},n);return o.contentType==null&&a.contentType!=null&&(o.contentType=a.contentType),new ge(new Be(this._delegate,new se(a.data,!0),o),this)},t.prototype.listAll=function(){var e=this;return nr(this._delegate).then(function(r){return new me(r,e.storage)})},t.prototype.list=function(e){var r=this;return rr(this._delegate,e||void 0).then(function(n){return new me(n,r.storage)})},t.prototype.getMetadata=function(){return er(this._delegate)},t.prototype.updateMetadata=function(e){return tr(this._delegate,e)},t.prototype.getDownloadURL=function(){return ar(this._delegate)},t.prototype.delete=function(){return this._throwIfRoot("delete"),or(this._delegate)},t.prototype._throwIfRoot=function(e){if(this._delegate._location.path==="")throw Se(e)},t}();/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2020 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var sr=function(){function t(e,r){var n=this;this.app=e,this._delegate=r,this.INTERNAL={delete:function(){return n._delegate._delete()}}}return Object.defineProperty(t.prototype,"maxOperationRetryTime",{get:function(){return this._delegate.maxOperationRetryTime},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this._delegate.maxUploadRetryTime},enumerable:!1,configurable:!0}),t.prototype.ref=function(e){if(ae(e))throw C("ref() expected a child path but got a URL, use refFromURL instead.");return new N(ve(this._delegate,e),this)},t.prototype.refFromURL=function(e){if(!ae(e))throw C("refFromURL() expected a full URL but got a child path, use ref() instead.");try{k.makeFromUrl(e)}catch{throw C("refFromUrl() expected a valid full URL but got an invalid one.")}return new N(ve(this._delegate,e),this)},t.prototype.setMaxUploadRetryTime=function(e){this._delegate.maxUploadRetryTime=e},t.prototype.setMaxOperationRetryTime=function(e){this._delegate.maxOperationRetryTime=e},t}(),ur="@firebase/storage",lr="0.4.7";/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2020 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var cr="storage";function fr(t,e){var r=e.instanceIdentifier,n=t.getProvider("app").getImmediate(),a=t.getProvider("auth-internal"),o=new sr(n,new Q(n,a,new ut,r,be.SDK_VERSION));return o}function hr(t){var e={TaskState:g,TaskEvent:it,StringFormat:w,Storage:Q,Reference:N};t.INTERNAL.registerComponent(new De(cr,fr,"PUBLIC").setServiceProps(e).setMultipleInstances(!0)),t.registerVersion(ur,lr)}hr(be);
|
|
||||||
//# sourceMappingURL=index.esm-Aqyp0Gpy.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.esm-Aqyp0Gpy.js","sources":["../../../node_modules/@firebase/storage/dist/index.esm.js"],"sourcesContent":["import firebase from '@firebase/app';\nimport { __extends, __spreadArray, __awaiter, __generator, __assign } from 'tslib';\nimport { FirebaseError, getModularInstance } from '@firebase/util';\nimport { Component } from '@firebase/component';\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * @fileoverview Constants used in the Firebase Storage library.\r\n */\r\n/**\r\n * Domain name for firebase storage.\r\n */\r\nvar DEFAULT_HOST = 'firebasestorage.googleapis.com';\r\n/**\r\n * The key in Firebase config json for the storage bucket.\r\n */\r\nvar CONFIG_STORAGE_BUCKET_KEY = 'storageBucket';\r\n/**\r\n * 2 minutes\r\n *\r\n * The timeout for all operations except upload.\r\n */\r\nvar DEFAULT_MAX_OPERATION_RETRY_TIME = 2 * 60 * 1000;\r\n/**\r\n * 10 minutes\r\n *\r\n * The timeout for upload.\r\n */\r\nvar DEFAULT_MAX_UPLOAD_RETRY_TIME = 10 * 60 * 1000;\n\n/**\r\n * An error returned by the Firebase Storage SDK.\r\n * @public\r\n */\r\nvar FirebaseStorageError = /** @class */ (function (_super) {\r\n __extends(FirebaseStorageError, _super);\r\n /**\r\n * @param code - A StorageErrorCode string to be prefixed with 'storage/' and\r\n * added to the end of the message.\r\n * @param message - Error message.\r\n */\r\n function FirebaseStorageError(code, message) {\r\n var _this = _super.call(this, prependCode(code), \"Firebase Storage: \" + message + \" (\" + prependCode(code) + \")\") || this;\r\n /**\r\n * Stores custom error data unque to FirebaseStorageError.\r\n */\r\n _this.customData = { serverResponse: null };\r\n // Without this, `instanceof FirebaseStorageError`, in tests for example,\r\n // returns false.\r\n Object.setPrototypeOf(_this, FirebaseStorageError.prototype);\r\n return _this;\r\n }\r\n /**\r\n * Compares a StorageErrorCode against this error's code, filtering out the prefix.\r\n */\r\n FirebaseStorageError.prototype._codeEquals = function (code) {\r\n return prependCode(code) === this.code;\r\n };\r\n Object.defineProperty(FirebaseStorageError.prototype, \"message\", {\r\n /**\r\n * Error message including serverResponse if available.\r\n */\r\n get: function () {\r\n if (this.customData.serverResponse) {\r\n return this.message + \"\\n\" + this.customData.serverResponse;\r\n }\r\n else {\r\n return this.message;\r\n }\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n Object.defineProperty(FirebaseStorageError.prototype, \"serverResponse\", {\r\n /**\r\n * Optional response message that was added by the server.\r\n */\r\n get: function () {\r\n return this.customData.serverResponse;\r\n },\r\n set: function (serverResponse) {\r\n this.customData.serverResponse = serverResponse;\r\n },\r\n enumerable: false,\r\n configurable: true\r\n });\r\n return FirebaseStorageError;\r\n}(FirebaseError));\r\nfunction prependCode(code) {\r\n return 'storage/' + code;\r\n}\r\nfunction unknown() {\r\n var message = 'An unknown error occurred, please check the error payload for ' +\r\n 'server response.';\r\n return new FirebaseStorageError(\"unknown\" /* UNKNOWN */, message);\r\n}\r\nfunction objectNotFound(path) {\r\n return new FirebaseStorageError(\"object-not-found\" /* OBJECT_NOT_FOUND */, \"Object '\" + path + \"' does not exist.\");\r\n}\r\nfunction quotaExceeded(bucket) {\r\n return new FirebaseStorageError(\"quota-exceeded\" /* QUOTA_EXCEEDED */, \"Quota for bucket '\" +\r\n bucket +\r\n \"' exceeded, please view quota on \" +\r\n 'https://firebase.google.com/pricing/.');\r\n}\r\nfunction unauthenticated() {\r\n var message = 'User is not authenticated, please authenticate using Firebase ' +\r\n 'Authentication and try again.';\r\n return new FirebaseStorageError(\"unauthenticated\" /* UNAUTHENTICATED */, message);\r\n}\r\nfunction unauthorized(path) {\r\n return new FirebaseStorageError(\"unauthorized\" /* UNAUTHORIZED */, \"User does not havLine truncated
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
import{f as r}from"./index.esm-J35DBGFx.js";import"./index-2K3MavtT.js";var e="firebase",a="8.3.3";/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2018 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/r.registerVersion(e,a,"app");export{r as default};
|
|
||||||
//# sourceMappingURL=index.esm-EExsODKC.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.esm-EExsODKC.js","sources":["../../../node_modules/firebase/app/dist/index.esm.js"],"sourcesContent":["import firebase from '@firebase/app';\nexport { default } from '@firebase/app';\n\nvar name = \"firebase\";\nvar version = \"8.3.3\";\n\n/**\r\n * @license\r\n * Copyright 2018 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nfirebase.registerVersion(name, version, 'app');\n//# sourceMappingURL=index.esm.js.map\n"],"names":["name","version","firebase"],"mappings":"wEAGA,IAAIA,EAAO,WACPC,EAAU,QAEd;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBAC,EAAS,gBAAgBF,EAAMC,EAAS,KAAK","x_google_ignoreList":[0]}
|
|
||||||
@@ -1,318 +0,0 @@
|
|||||||
import{_ as Y,a as z,b as x,c as S,d as J,e as K,f as $}from"./index-2K3MavtT.js";/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function X(t){return C(void 0,t)}function C(t,e){if(!(e instanceof Object))return e;switch(e.constructor){case Date:var r=e;return new Date(r.getTime());case Object:t===void 0&&(t={});break;case Array:t=[];break;default:return e}for(var n in e)!e.hasOwnProperty(n)||!Z(n)||(t[n]=C(t[n],e[n]));return t}function Z(t){return t!=="__proto__"}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var q=function(){function t(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise(function(r,n){e.resolve=r,e.reject=n})}return t.prototype.wrapCallback=function(e){var r=this;return function(n,o){n?r.reject(n):r.resolve(o),typeof e=="function"&&(r.promise.catch(function(){}),e.length===1?e(n):e(n,o))}},t}();/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function F(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function $e(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(F())}function Q(){try{return Object.prototype.toString.call(global.process)==="[object process]"}catch{return!1}}function ee(){return typeof self=="object"&&self.self===self}function ke(){var t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function Be(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function Ue(){return F().indexOf("Electron/")>=0}function Ve(){var t=F();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function We(){return F().indexOf("MSAppHost/")>=0}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var te="FirebaseError",re=function(t){Y(e,t);function e(r,n,o){var i=t.call(this,n)||this;return i.code=r,i.customData=o,i.name=te,Object.setPrototypeOf(i,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,T.prototype.create),i}return e}(Error),T=function(){function t(e,r,n){this.service=e,this.serviceName=r,this.errors=n}return t.prototype.create=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=r[0]||{},i=this.service+"/"+e,f=this.errors[e],p=f?ne(f,o):"Error",d=this.serviceName+": "+p+" ("+i+").",y=new re(i,d,o);return y},t}();function ne(t,e){return t.replace(ie,function(r,n){var o=e[n];return o!=null?String(o):"<"+n+"?>"})}var ie=/\{\$([^}]+)}/g;/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function k(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function oe(t,e){var r=new ae(t,e);return r.subscribe.bind(r)}var ae=function(){function t(e,r){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=r,this.task.then(function(){e(n)}).catch(function(o){n.error(o)})}return t.prototype.next=function(e){this.forEachObserver(function(r){r.next(e)})},t.prototype.error=function(e){this.forEachObserver(function(r){r.error(e)}),this.close(e)},t.prototype.complete=function(){this.forEachObserver(function(e){e.complete()}),this.close()},t.prototype.subscribe=function(e,r,n){var o=this,i;if(e===void 0&&r===void 0&&n===void 0)throw new Error("Missing Observer.");se(e,["next","error","complete"])?i=e:i={next:e,error:r,complete:n},i.next===void 0&&(i.next=D),i.error===void 0&&(i.error=D),i.complete===void 0&&(i.complete=D);var f=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{o.finalError?i.error(o.finalError):i.complete()}catch{}}),this.observers.push(i),f},t.prototype.unsubscribeOne=function(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))},t.prototype.forEachObserver=function(e){if(!this.finalized)for(var r=0;r<this.observers.length;r++)this.sendOne(r,e)},t.prototype.sendOne=function(e,r){var n=this;this.task.then(function(){if(n.observers!==void 0&&n.observers[e]!==void 0)try{r(n.observers[e])}catch(o){typeof console<"u"&&console.error&&console.error(o)}})},t.prototype.close=function(e){var r=this;this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(function(){r.observers=void 0,r.onNoObservers=void 0}))},t}();function se(t,e){if(typeof t!="object"||t===null)return!1;for(var r=0,n=e;r<n.length;r++){var o=n[r];if(o in t&&typeof t[o]=="function")return!0}return!1}function D(){}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2021 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function Ge(t){return t&&t._delegate?t._delegate:t}var j=function(){function t(e,r,n){this.name=e,this.instanceFactory=r,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return t.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},t.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},t.prototype.setServiceProps=function(e){return this.serviceProps=e,this},t.prototype.setInstanceCreatedCallback=function(e){return this.onInstanceCreated=e,this},t}();/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2019 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var N="[DEFAULT]";/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2019 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var ue=function(){function t(e,r){this.name=e,this.container=r,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return t.prototype.get=function(e){e===void 0&&(e=N);var r=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(r)){var n=new q;if(this.instancesDeferred.set(r,n),this.isInitialized(r)||this.shouldAutoInitialize())try{var o=this.getOrInitializeService({instanceIdentifier:r});o&&n.resolve(o)}catch{}}return this.instancesDeferred.get(r).promise},t.prototype.getImmediate=function(e){var r=z({identifier:N,optional:!1},e),n=r.identifier,o=r.optional,i=this.normalizeInstanceIdentifier(n);if(this.isInitialized(i)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:i})}catch(f){if(o)return null;throw f}else{if(o)return null;throw Error("Service "+this.name+" is not available")}},t.prototype.getComponent=function(){return this.component},t.prototype.setComponent=function(e){var r,n;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=e,!!this.shouldAutoInitialize()){if(le(e))try{this.getOrInitializeService({instanceIdentifier:N})}catch{}try{for(var o=x(this.instancesDeferred.entries()),i=o.next();!i.done;i=o.next()){var f=S(i.value,2),p=f[0],d=f[1],y=this.normalizeInstanceIdentifier(p);try{var m=this.getOrInitializeService({instanceIdentifier:y});d.resolve(m)}catch{}}}catch(c){r={error:c}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}}},t.prototype.clearInstance=function(e){e===void 0&&(e=N),this.instancesDeferred.delete(e),this.instances.delete(e)},t.prototype.delete=function(){return J(this,void 0,void 0,function(){var e;return K(this,function(r){switch(r.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all($($([],S(e.filter(function(n){return"INTERNAL"in n}).map(function(n){return n.INTERNAL.delete()}))),S(e.filter(function(n){return"_delete"in n}).map(function(n){return n._delete()}))))];case 1:return r.sent(),[2]}})})},t.prototype.isComponentSet=function(){return this.component!=null},t.prototype.isInitialized=function(e){return e===void 0&&(e=N),this.instances.has(e)},t.prototype.initialize=function(e){var r,n;e===void 0&&(e={});var o=e.instanceIdentifier,i=o===void 0?N:o,f=e.options,p=f===void 0?{}:f,d=this.normalizeInstanceIdentifier(i);if(this.isInitialized(d))throw Error(this.name+"("+d+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var y=this.getOrInitializeService({instanceIdentifier:d,options:p});try{for(var m=x(this.instancesDeferred.entries()),c=m.next();!c.done;c=m.next()){var s=S(c.value,2),a=s[0],g=s[1],v=this.normalizeInstanceIdentifier(a);d===v&&g.resolve(y)}}catch(l){r={error:l}}finally{try{c&&!c.done&&(n=m.return)&&n.call(m)}finally{if(r)throw r.error}}return y},t.prototype.getOrInitializeService=function(e){var r=e.instanceIdentifier,n=e.options,o=n===void 0?{}:n,i=this.instances.get(r);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:fe(r),options:o}),this.instances.set(r,i),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,r,i)}catch{}return i||null},t.prototype.normalizeInstanceIdentifier=function(e){return this.component?this.component.multipleInstances?e:N:e},t.prototype.shouldAutoInitialize=function(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"},t}();function fe(t){return t===N?void 0:t}function le(t){return t.instantiationMode==="EAGER"}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2019 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var ce=function(){function t(e){this.name=e,this.providers=new Map}return t.prototype.addComponent=function(e){var r=this.getProvider(e.name);if(r.isComponentSet())throw new Error("Component "+e.name+" has already been registered with "+this.name);r.setComponent(e)},t.prototype.addOrOverwriteComponent=function(e){var r=this.getProvider(e.name);r.isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},t.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var r=new ue(e,this);return this.providers.set(e,r),r},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}();/*! *****************************************************************************
|
|
||||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
||||||
this file except in compliance with the License. You may obtain a copy of the
|
|
||||||
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
||||||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
||||||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
||||||
|
|
||||||
See the Apache Version 2.0 License for specific language governing permissions
|
|
||||||
and limitations under the License.
|
|
||||||
***************************************************************************** */function E(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<r;e++)for(var i=arguments[e],f=0,p=i.length;f<p;f++,o++)n[o]=i[f];return n}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var _,H=[],u;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(u||(u={}));var U={debug:u.DEBUG,verbose:u.VERBOSE,info:u.INFO,warn:u.WARN,error:u.ERROR,silent:u.SILENT},pe=u.INFO,he=(_={},_[u.DEBUG]="log",_[u.VERBOSE]="log",_[u.INFO]="info",_[u.WARN]="warn",_[u.ERROR]="error",_),de=function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!(e<t.logLevel)){var o=new Date().toISOString(),i=he[e];if(i)console[i].apply(console,E(["["+o+"] "+t.name+":"],r));else throw new Error("Attempted to log a message with an invalid logType (value: "+e+")")}},ve=function(){function t(e){this.name=e,this._logLevel=pe,this._logHandler=de,this._userLogHandler=null,H.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in u))throw new TypeError('Invalid value "'+e+'" assigned to `logLevel`');this._logLevel=e},enumerable:!1,configurable:!0}),t.prototype.setLogLevel=function(e){this._logLevel=typeof e=="string"?U[e]:e},Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e},enumerable:!1,configurable:!0}),t.prototype.debug=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._userLogHandler&&this._userLogHandler.apply(this,E([this,u.DEBUG],e)),this._logHandler.apply(this,E([this,u.DEBUG],e))},t.prototype.log=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._userLogHandler&&this._userLogHandler.apply(this,E([this,u.VERBOSE],e)),this._logHandler.apply(this,E([this,u.VERBOSE],e))},t.prototype.info=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._userLogHandler&&this._userLogHandler.apply(this,E([this,u.INFO],e)),this._logHandler.apply(this,E([this,u.INFO],e))},t.prototype.warn=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._userLogHandler&&this._userLogHandler.apply(this,E([this,u.WARN],e)),this._logHandler.apply(this,E([this,u.WARN],e))},t.prototype.error=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];this._userLogHandler&&this._userLogHandler.apply(this,E([this,u.ERROR],e)),this._logHandler.apply(this,E([this,u.ERROR],e))},t}();function me(t){H.forEach(function(e){e.setLogLevel(t)})}function ge(t,e){for(var r=function(f){var p=null;e&&e.level&&(p=U[e.level]),t===null?f.userLogHandler=null:f.userLogHandler=function(d,y){for(var m=[],c=2;c<arguments.length;c++)m[c-2]=arguments[c];var s=m.map(function(a){if(a==null)return null;if(typeof a=="string")return a;if(typeof a=="number"||typeof a=="boolean")return a.toString();if(a instanceof Error)return a.message;try{return JSON.stringify(a)}catch{return null}}).filter(function(a){return a}).join(" ");y>=(p??d.logLevel)&&t({level:u[y].toLowerCase(),message:s,args:m,type:d.name})}},n=0,o=H;n<o.length;n++){var i=o[n];r(i)}}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2019 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var O,ye=(O={},O["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",O["bad-app-name"]="Illegal App name: '{$appName}",O["duplicate-app"]="Firebase App named '{$appName}' already exists",O["app-deleted"]="Firebase App named '{$appName}' already deleted",O["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",O["invalid-log-argument"]="First argument to `onLog` must be null or a function.",O),R=new T("app","Firebase",ye),V="@firebase/app",be="0.6.19",Ee="@firebase/analytics",Ie="@firebase/auth",we="@firebase/database",Oe="@firebase/functions",Ne="@firebase/installations",_e="@firebase/messaging",Re="@firebase/performance",Ae="@firebase/remote-config",Ce="@firebase/storage",Se="@firebase/firestore",Le="firebase-wrapper";/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2019 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var h,P="[DEFAULT]",Pe=(h={},h[V]="fire-core",h[Ee]="fire-analytics",h[Ie]="fire-auth",h[we]="fire-rtdb",h[Oe]="fire-fn",h[Ne]="fire-iid",h[_e]="fire-fcm",h[Re]="fire-perf",h[Ae]="fire-rc",h[Ce]="fire-gcs",h[Se]="fire-fst",h["fire-js"]="fire-js",h[Le]="fire-js-all",h);/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2019 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var A=new ve("@firebase/app");/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var L=function(){function t(e,r,n){var o=this;this.firebase_=n,this.isDeleted_=!1,this.name_=r.name,this.automaticDataCollectionEnabled_=r.automaticDataCollectionEnabled||!1,this.options_=X(e),this.container=new ce(r.name),this._addComponent(new j("app",function(){return o},"PUBLIC")),this.firebase_.INTERNAL.components.forEach(function(i){return o._addComponent(i)})}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),t.prototype.delete=function(){var e=this;return new Promise(function(r){e.checkDestroyed_(),r()}).then(function(){return e.firebase_.INTERNAL.removeApp(e.name_),Promise.all(e.container.getProviders().map(function(r){return r.delete()}))}).then(function(){e.isDeleted_=!0})},t.prototype._getService=function(e,r){return r===void 0&&(r=P),this.checkDestroyed_(),this.container.getProvider(e).getImmediate({identifier:r})},t.prototype._removeServiceInstance=function(e,r){r===void 0&&(r=P),this.container.getProvider(e).clearInstance(r)},t.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(r){A.debug("Component "+e.name+" failed to register with FirebaseApp "+this.name,r)}},t.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},t.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw R.create("app-deleted",{appName:this.name_})},t}();L.prototype.name&&L.prototype.options||L.prototype.delete||console.log("dc");var Fe="8.3.3";/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2019 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function De(t){var e={},r=new Map,n={__esModule:!0,initializeApp:f,app:i,registerVersion:y,setLogLevel:me,onLog:m,apps:null,SDK_VERSION:Fe,INTERNAL:{registerComponent:d,removeApp:o,components:r,useAsService:c}};n.default=n,Object.defineProperty(n,"apps",{get:p});function o(s){delete e[s]}function i(s){if(s=s||P,!k(e,s))throw R.create("no-app",{appName:s});return e[s]}i.App=t;function f(s,a){if(a===void 0&&(a={}),typeof a!="object"||a===null){var g=a;a={name:g}}var v=a;v.name===void 0&&(v.name=P);var l=v.name;if(typeof l!="string"||!l)throw R.create("bad-app-name",{appName:String(l)});if(k(e,l))throw R.create("duplicate-app",{appName:l});var w=new t(s,v,n);return e[l]=w,w}function p(){return Object.keys(e).map(function(s){return e[s]})}function d(s){var a=s.name;if(r.has(a))return A.debug("There were multiple attempts to register component "+a+"."),s.type==="PUBLIC"?n[a]:null;if(r.set(a,s),s.type==="PUBLIC"){var g=function(b){if(b===void 0&&(b=i()),typeof b[a]!="function")throw R.create("invalid-app-argument",{appName:a});return b[a]()};s.serviceProps!==void 0&&C(g,s.serviceProps),n[a]=g,t.prototype[a]=function(){for(var b=[],I=0;I<arguments.length;I++)b[I]=arguments[I];var G=this._getService.bind(this,a);return G.apply(this,s.multipleInstances?b:[])}}for(var v=0,l=Object.keys(e);v<l.length;v++){var w=l[v];e[w]._addComponent(s)}return s.type==="PUBLIC"?n[a]:null}function y(s,a,g){var v,l=(v=Pe[s])!==null&&v!==void 0?v:s;g&&(l+="-"+g);var w=l.match(/\s|\//),b=a.match(/\s|\//);if(w||b){var I=['Unable to register library "'+l+'" with version "'+a+'":'];w&&I.push('library name "'+l+'" contains illegal characters (whitespace or "/")'),w&&b&&I.push("and"),b&&I.push('version name "'+a+'" contains illegal characters (whitespace or "/")'),A.warn(I.join(" "));return}d(new j(l+"-version",function(){return{library:l,version:a}},"VERSION"))}function m(s,a){if(s!==null&&typeof s!="function")throw R.create("invalid-log-argument");ge(s,a)}function c(s,a){if(a==="serverAuth")return null;var g=a;return g}return n}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2019 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function W(){var t=De(L);t.INTERNAL=z(z({},t.INTERNAL),{createFirebaseNamespace:W,extendNamespace:e,createSubscribe:oe,ErrorFactory:T,deepExtend:C});function e(r){C(t,r)}return t}var M=W();/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2019 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/var ze=function(){function t(e){this.container=e}return t.prototype.getPlatformInfoString=function(){var e=this.container.getProviders();return e.map(function(r){if(Te(r)){var n=r.getImmediate();return n.library+"/"+n.version}else return null}).filter(function(r){return r}).join(" ")},t}();function Te(t){var e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2019 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/function je(t,e){t.INTERNAL.registerComponent(new j("platform-logger",function(r){return new ze(r)},"PRIVATE")),t.registerVersion(V,be,e),t.registerVersion("fire-js","")}/**
|
|
||||||
* @license
|
|
||||||
* Copyright 2017 Google LLC
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/if(ee()&&self.firebase!==void 0){A.warn(`
|
|
||||||
Warning: Firebase is already defined in the global scope. Please make sure
|
|
||||||
Firebase library is only loaded once.
|
|
||||||
`);var B=self.firebase.SDK_VERSION;B&&B.indexOf("LITE")>=0&&A.warn(`
|
|
||||||
Warning: You are trying to load Firebase while using Firebase Performance standalone script.
|
|
||||||
You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.
|
|
||||||
`)}var He=M.initializeApp;M.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Q()&&A.warn(`
|
|
||||||
Warning: This is a browser-targeted Firebase bundle but it appears it is being
|
|
||||||
run in a Node environment. If running in a Node environment, make sure you
|
|
||||||
are using the bundle specified by the "main" field in package.json.
|
|
||||||
|
|
||||||
If you are using Webpack, you can specify "main" as the first item in
|
|
||||||
"resolve.mainFields":
|
|
||||||
https://webpack.js.org/configuration/resolve/#resolvemainfields
|
|
||||||
|
|
||||||
If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main"
|
|
||||||
as the first item in "mainFields", e.g. ['main', 'module'].
|
|
||||||
https://github.com/rollup/@rollup/plugin-node-resolve
|
|
||||||
`),He.apply(void 0,t)};var Me=M;je(Me);export{j as C,re as F,u as L,Be as a,Ue as b,Ve as c,We as d,ke as e,Me as f,F as g,Ge as h,$e as i,ve as j};
|
|
||||||
//# sourceMappingURL=index.esm-J35DBGFx.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.esm-J35DBGFx.js","sources":["../../../node_modules/@firebase/util/dist/index.esm.js","../../../node_modules/@firebase/component/dist/index.esm.js","../../../node_modules/@firebase/logger/dist/index.esm.js","../../../node_modules/@firebase/app/dist/index.esm.js"],"sourcesContent":["import { __extends } from 'tslib';\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * @fileoverview Firebase constants. Some of these (@defines) can be overridden at compile-time.\r\n */\r\nvar CONSTANTS = {\r\n /**\r\n * @define {boolean} Whether this is the client Node.js SDK.\r\n */\r\n NODE_CLIENT: false,\r\n /**\r\n * @define {boolean} Whether this is the Admin Node.js SDK.\r\n */\r\n NODE_ADMIN: false,\r\n /**\r\n * Firebase SDK Version\r\n */\r\n SDK_VERSION: '${JSCORE_VERSION}'\r\n};\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\n/**\r\n * Throws an error if the provided assertion is falsy\r\n */\r\nvar assert = function (assertion, message) {\r\n if (!assertion) {\r\n throw assertionError(message);\r\n }\r\n};\r\n/**\r\n * Returns an Error object suitable for throwing.\r\n */\r\nvar assertionError = function (message) {\r\n return new Error('Firebase Database (' +\r\n CONSTANTS.SDK_VERSION +\r\n ') INTERNAL ASSERT FAILED: ' +\r\n message);\r\n};\n\n/**\r\n * @license\r\n * Copyright 2017 Google LLC\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * you may not use this file except in compliance with the License.\r\n * You may obtain a copy of the License at\r\n *\r\n * http://www.apache.org/licenses/LICENSE-2.0\r\n *\r\n * Unless required by applicable law or agreed to in writing, software\r\n * distributed under the License is distributed on an \"AS IS\" BASIS,\r\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n * See the License for the specific language governing permissions and\r\n * limitations under the License.\r\n */\r\nvar stringToByteArray = function (str) {\r\n // TODO(user): Use native implementations if/when available\r\n var out = [];\r\n var p = 0;\r\n for (var i = 0; i < str.length; i++) {\r\n var c = str.charCodeAt(i);\r\n if (c < 128) {\r\n out[p++] = c;\r\n }\r\n else if (c < 2048) {\r\n out[p++] = (c >> 6) | 192;\r\n out[p++] = (c & 63) | 128;\r\n }\r\n else if ((c & 0xfc00) === 0xd800 &&\r\n i + 1 < str.length &&\r\n (str.charCodeAt(i + 1) & 0xfc00) === 0xdc00) {\r\n // Surrogate Pair\r\n c = 0x10000 + ((c & 0x03ff) << 10) + (str.charCodeAt(++i) & 0x03ff);\r\n out[p++] = (c >> 18) | 240;\r\n out[p++] = ((c >> 12) & 63) | 128;\r\n out[p++] = ((c >> 6) & 63) | 128;\r\n out[p++] = (c & 63) | 128;\r\n }\r\n else {\r\n out[p++] = (c >> 12) | 224;\r\n out[p++] = ((c >> 6) & 63) | 128;\r\n out[p++] = (c & 63) | 128;\r\n }\r\n }\r\n return out;\r\n};\r\n/**\r\n * Turns an array of numbers into the string given by the concatenation of the\r\n * characters to which the numbers correspond.\r\n * @param bytes Array of numbers representing characters.\r\n * @return Stringification of the array.\r\n */\r\nvar byteArrayToString = function (bytes) {\r\n // TODO(user): Use native implementations if/when available\r\n var out = [];\r\n var pos = 0, c = 0;\r\n while (pos < bytes.length) {\r\n var c1 = bytes[pos++];\r\n if (c1 < 128) {\r\n out[c++] = String.fromCharCode(c1);\r\n }\r\n else if (c1 > 191 && c1 < 224) {\r\n var c2 = bytes[pos++];\r\n Line truncated
|
|
||||||
File diff suppressed because it is too large.
Load diff
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"index.esm-h2kZ9fZN.js","sources":["../../../node_modules/@firebase/webchannel-wrapper/dist/index.esm.js","../../../node_modules/@firebase/firestore/dist/esm5/prebuilt-4888bff0-430c65bc.js","../../../node_modules/@firebase/firestore/dist/esm5/index.js"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nfunction __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\n\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nvar h, goog = goog || {}, k = commonjsGlobal || self;\r\nfunction aa() { }\r\nfunction ba(a) { var b = typeof a; b = \"object\" != b ? b : a ? Array.isArray(a) ? \"array\" : b : \"null\"; return \"array\" == b || \"object\" == b && \"number\" == typeof a.length; }\r\nfunction n(a) { var b = typeof a; return \"object\" == b && null != a || \"function\" == b; }\r\nfunction ca(a) { return Object.prototype.hasOwnProperty.call(a, da) && a[da] || (a[da] = ++ea); }\r\nvar da = \"closure_uid_\" + (1E9 * Math.random() >>> 0), ea = 0;\r\nfunction fa(a, b, c) { return a.call.apply(a.bind, arguments); }\r\nfunction ha(a, b, c) { if (!a)\r\n throw Error(); if (2 < arguments.length) {\r\n var d = Array.prototype.slice.call(arguments, 2);\r\n return function () { var e = Array.prototype.slice.call(arguments); Array.prototype.unshift.apply(e, d); return a.apply(b, e); };\r\n} return function () { return a.apply(b, arguments); }; }\r\nfunction p(a, b, c) { Function.prototype.bind && -1 != Function.prototype.bind.toString().indexOf(\"native code\") ? p = fa : p = ha; return p.apply(null, arguments); }\r\nfunction ja(a, b) { var c = Array.prototype.slice.call(arguments, 1); return function () { var d = c.slice(); d.push.apply(d, arguments); return a.apply(this, d); }; }\r\nfunction q() { return Date.now(); }\r\nfunction r(a, b) { function c() { } c.prototype = b.prototype; a.X = b.prototype; a.prototype = new c; a.prototype.constructor = a; a.Kb = function (d, e, f) { for (var g = Array(arguments.length - 2), m = 2; m < arguments.length; m++)\r\n g[m - 2] = arguments[m]; return b.prototype[e].apply(d, g); }; }\r\nfunction t() { this.j = this.j; this.i = this.i; }\r\nvar ka = 0;\r\nt.prototype.j = !1;\r\nt.prototype.ja = function () { if (!this.j && (this.j = !0, this.G(), 0 != ka)) {\r\n var a = ca(this);\r\n} };\r\nt.prototype.G = function () { if (this.i)\r\n for (; this.i.length;)\r\n this.i.shift()(); };\r\nvar ma = Array.prototype.indexOf ? function (a, b) { return Array.prototype.indexOf.call(a, b, void 0); } : function (a, b) { if (\"string\" === typeof a)\r\n return \"string\" !== typeof b || 1 != b.length ? -1 : a.indexOf(b, 0); for (var c = 0; c < a.length; c++)\r\n if (c in a && a[c] === b)\r\n return c; return -1; }, na = Array.prototype.forEach ? function (a, b, c) { Array.prototype.forEach.call(a, b, c); } : function (a, b, c) { for (var d = a.length, e = \"string\" === typeof a ? a.split(\"\") : a, f = 0; f < d; f++)\r\n f in e && b.call(c, e[f], f, a); };\r\nfunction oa(a) { a: {\r\n var b = pa;\r\n for (var c = a.length, Line truncated
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
import{z as C,l as E,c as D,h as O}from"./index-jpNTxDe4.js";import"./index-2K3MavtT.js";var P=function(){var h=function(c,t,e,n){for(e=e||{},n=c.length;n--;e[c[n]]=t);return e},f=[6,9,10],x={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,s,r,i,k){switch(i.length-1,r){case 1:return s;case 4:break;case 6:s.setInfo(!0);break}},table:[{3:1,4:[1,2]},{1:[3]},h(f,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},h(f,[2,3]),h(f,[2,4]),h(f,[2,5]),h(f,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(e.recoverable)this.trace(t);else{var n=new Error(t);throw n.hash=e,n}},parse:function(t){var e=this,n=[0],s=[],r=[null],i=[],k=this.table,L="",b=0,T=0,z=2,R=1,M=i.slice.call(arguments,1),o=Object.create(this.lexer),p={yy:{}};for(var w in this.yy)Object.prototype.hasOwnProperty.call(this.yy,w)&&(p.yy[w]=this.yy[w]);o.setInput(t,p.yy),p.yy.lexer=o,p.yy.parser=this,typeof o.yylloc>"u"&&(o.yylloc={});var I=o.yylloc;i.push(I);var Y=o.options&&o.options.ranges;typeof p.yy.parseError=="function"?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function U(){var u;return u=s.pop()||o.lex()||R,typeof u!="number"&&(u instanceof Array&&(s=u,u=s.pop()),u=e.symbols_[u]||u),u}for(var l,g,a,A,d={},v,y,j,S;;){if(g=n[n.length-1],this.defaultActions[g]?a=this.defaultActions[g]:((l===null||typeof l>"u")&&(l=U()),a=k[g]&&k[g][l]),typeof a>"u"||!a.length||!a[0]){var $="";S=[];for(v in k[g])this.terminals_[v]&&v>z&&S.push("'"+this.terminals_[v]+"'");o.showPosition?$="Parse error on line "+(b+1)+`:
|
|
||||||
`+o.showPosition()+`
|
|
||||||
Expecting `+S.join(", ")+", got '"+(this.terminals_[l]||l)+"'":$="Parse error on line "+(b+1)+": Unexpected "+(l==R?"end of input":"'"+(this.terminals_[l]||l)+"'"),this.parseError($,{text:o.match,token:this.terminals_[l]||l,line:o.yylineno,loc:I,expected:S})}if(a[0]instanceof Array&&a.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+l);switch(a[0]){case 1:n.push(l),r.push(o.yytext),i.push(o.yylloc),n.push(a[1]),l=null,T=o.yyleng,L=o.yytext,b=o.yylineno,I=o.yylloc;break;case 2:if(y=this.productions_[a[1]][1],d.$=r[r.length-y],d._$={first_line:i[i.length-(y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(y||1)].first_column,last_column:i[i.length-1].last_column},Y&&(d._$.range=[i[i.length-(y||1)].range[0],i[i.length-1].range[1]]),A=this.performAction.apply(d,[L,T,b,p.yy,a[1],r,i].concat(M)),typeof A<"u")return A;y&&(n=n.slice(0,-1*y*2),r=r.slice(0,-1*y),i=i.slice(0,-1*y)),n.push(this.productions_[a[1]][0]),r.push(d.$),i.push(d._$),j=k[n[n.length-2]][n[n.length-1]],n.push(j);break;case 3:return!0}}return!0}},m=function(){var c={EOF:1,parseError:function(e,n){if(this.yy.parser)this.yy.parser.parseError(e,n);else throw new Error(e)},setInput:function(t,e){return this.yy=e||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},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var e=t.match(/(?:\r\n?|\n).*/g);return e?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===s.length?this.yylloc.first_column:0)+s[s.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
|
|
||||||
`+e+"^"},test_match:function(t,e){var n,s,r;if(this.options.backtrack_lexer&&(r={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(r.yylloc.range=this.yylloc.range.slice(0))),s=t[0].match(/(?:\r\n?|\n).*/g),s&&(this.yylineno+=s.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:s?s[s.length-1].length-s[s.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var i in r)this[i]=r[i];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,e,n,s;this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),i=0;i<r.length;i++)if(n=this._input.match(this.rules[r[i]]),n&&(!e||n[0].length>e[0].length)){if(e=n,s=i,this.options.backtrack_lexer){if(t=this.test_match(n,r[i]),t!==!1)return t;if(this._backtrack){e=!1;continue}else return!1}else if(!this.options.flex)break}return e?(t=this.test_match(e,r[s]),t!==!1?t:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
||||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,n,s,r){switch(s){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};return c}();x.lexer=m;function _(){this.yy={}}return _.prototype=x,x.Parser=_,new _}();P.parser=P;const V=P;var F="",N=!1;const X=h=>{E.debug("Setting message to: "+h),F=h},q=()=>F,B=h=>{N=h},G=()=>N,H={setMessage:X,getMessage:q,setInfo:B,getInfo:G,clear:C},J=()=>"",K=J,Q=(h,f,x)=>{try{E.debug(`Rendering info diagram
|
|
||||||
`+h);const m=D().securityLevel;let _;m==="sandbox"&&(_=O("#i"+f));const t=(m==="sandbox"?O(_.nodes()[0].contentDocument.body):O("body")).select("#"+f);t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+x),t.attr("height",100),t.attr("width",400)}catch(m){E.error("Error while rendering info diagram"),E.error(m.message)}},W={draw:Q},et={parser:V,db:H,renderer:W,styles:K};export{et as diagram};
|
|
||||||
//# sourceMappingURL=infoDiagram-264bed3e-S8LyFZ95.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"infoDiagram-264bed3e-S8LyFZ95.js","sources":["../../../node_modules/mermaid/dist/infoDiagram-264bed3e.js"],"sourcesContent":["import { v as clear, l as log, c as getConfig } from \"./mermaid-b0ad2de1.js\";\nimport { select } from \"d3\";\nimport \"ts-dedent\";\nimport \"dayjs\";\nimport \"@braintree/sanitize-url\";\nimport \"dompurify\";\nimport \"khroma\";\nimport \"lodash-es/memoize.js\";\nimport \"stylis\";\nimport \"lodash-es/isEmpty.js\";\nvar parser = function() {\n var o = function(k, v, o2, l) {\n for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)\n ;\n return o2;\n }, $V0 = [6, 9, 10];\n var parser2 = {\n trace: function trace() {\n },\n yy: {},\n symbols_: { \"error\": 2, \"start\": 3, \"info\": 4, \"document\": 5, \"EOF\": 6, \"line\": 7, \"statement\": 8, \"NL\": 9, \"showInfo\": 10, \"$accept\": 0, \"$end\": 1 },\n terminals_: { 2: \"error\", 4: \"info\", 6: \"EOF\", 9: \"NL\", 10: \"showInfo\" },\n productions_: [0, [3, 3], [5, 0], [5, 2], [7, 1], [7, 1], [8, 1]],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {\n $$.length - 1;\n switch (yystate) {\n case 1:\n return yy;\n case 4:\n break;\n case 6:\n yy.setInfo(true);\n break;\n }\n },\n table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, o($V0, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: 6, 9: [1, 7], 10: [1, 8] }, { 1: [2, 1] }, o($V0, [2, 3]), o($V0, [2, 4]), o($V0, [2, 5]), o($V0, [2, 6])],\n defaultActions: { 4: [2, 1] },\n parseError: function parseError(str, hash) {\n if (hash.recoverable) {\n this.trace(str);\n } else {\n var error = new Error(str);\n error.hash = hash;\n throw error;\n }\n },\n parse: function parse(input) {\n var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = \"\", yylineno = 0, yyleng = 0, TERROR = 2, EOF = 1;\n var args = lstack.slice.call(arguments, 1);\n var lexer2 = Object.create(this.lexer);\n var sharedState = { yy: {} };\n for (var k in this.yy) {\n if (Object.prototype.hasOwnProperty.call(this.yy, k)) {\n sharedState.yy[k] = this.yy[k];\n }\n }\n lexer2.setInput(input, sharedState.yy);\n sharedState.yy.lexer = lexer2;\n sharedState.yy.parser = this;\n if (typeof lexer2.yylloc == \"undefined\") {\n lexer2.yylloc = {};\n }\n var yyloc = lexer2.yylloc;\n lstack.push(yyloc);\n var ranges = lexer2.options && lexer2.options.ranges;\n if (typeof sharedState.yy.parseError === \"function\") {\n this.parseError = sharedState.yy.parseError;\n } else {\n this.parseError = Object.getPrototypeOf(this).parseError;\n }\n function lex() {\n var token;\n token = tstack.pop() || lexer2.lex() || EOF;\n if (typeof token !== \"number\") {\n if (token instanceof Array) {\n tstack = token;\n token = tstack.pop();\n }\n token = self.symbols_[token] || token;\n }\n return token;\n }\n var symbol, state, action, r, yyval = {}, p, len, newState, expected;\n while (true) {\n state = stack[stack.length - 1];\n if (this.defaultActions[state]) {\n action = this.defaultActions[state];\n } else {\n if (symbol === null || typeof symbol == \"undefined\") {\n symbol = lex();\n }\n action = table[state] && table[state][symbol];\n }\n if (typeof action === \"undefined\" || !action.length || !action[0]) {\n var errStr = \"\";\n expected = [];\n for (p in table[state]) {\n if (this.terminals_[p] && p > TERROR) {\n expected.push(\"'\" + this.terminals_[p] + \"'\");\n }\n }\n if (lexer2.showPosition) {\n errStr = \"Parse error on line \" + (yylineno + 1) + \":\\n\" + lexer2.showPosition() + \"\\nExpecting \" + expected.join(\", \") + \", got '\" + (this.terminals_[symbol] || symbol) + \"'\";\n } else {\n errStr = \"Parse error on line \" + (yylineno + 1) + \": Unexpected \" + (symbol == EOF ? \"end of input\" : \"'\" + (this.terminals_[symbol] || symbol) + \"'\");\n }\n this.parseError(errStr, {\n text: lexer2.match,\n token: this.terminals_[symbol] || symbol,\n line: lexer2.yylineno,\n loc: yyloc,\n expected\n });\n }\n if (action[0] instanceof Array && action.length > 1) {\n throw new Error(\"Parse Error: multiple actions possible at state: \" + state + \", token: \" + symbol);\n }\n switch (action[0]) {\n case 1:\n stack.push(symbol);\n vstack.push(lexer2.yytext);\n lstack.push(lexer2.yylloc);\n staLine truncated
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
function t(e,a){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(a).domain(e);break}return this}export{t as i};
|
|
||||||
//# sourceMappingURL=init-Hi12RPRh.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"init-Hi12RPRh.js","sources":["../../../node_modules/d3-scale/src/init.js"],"sourcesContent":["export function initRange(domain, range) {\n switch (arguments.length) {\n case 0: break;\n case 1: this.range(domain); break;\n default: this.range(range).domain(domain); break;\n }\n return this;\n}\n\nexport function initInterpolator(domain, interpolator) {\n switch (arguments.length) {\n case 0: break;\n case 1: {\n if (typeof domain === \"function\") this.interpolator(domain);\n else this.range(domain);\n break;\n }\n default: {\n this.domain(domain);\n if (typeof interpolator === \"function\") this.interpolator(interpolator);\n else this.range(interpolator);\n break;\n }\n }\n return this;\n}\n"],"names":["initRange","domain","range"],"mappings":"AAAO,SAASA,EAAUC,EAAQC,EAAO,CACvC,OAAQ,UAAU,OAAM,CACtB,IAAK,GAAG,MACR,IAAK,GAAG,KAAK,MAAMD,CAAM,EAAG,MAC5B,QAAS,KAAK,MAAMC,CAAK,EAAE,OAAOD,CAAM,EAAG,KAC5C,CACD,OAAO,IACT","x_google_ignoreList":[0]}
|
|
||||||
@@ -1,141 +0,0 @@
|
|||||||
import{c as V,v as gt,x as mt,s as xt,g as _t,b as kt,a as vt,m as bt,z as wt,h as H,i as Tt}from"./index-jpNTxDe4.js";import{d as $t,f as St,a as Mt,g as ot}from"./svgDrawCommon-f26cad39-uSOEV6F1.js";import{a as it}from"./arc-uMvMTTPz.js";import"./index-2K3MavtT.js";import"./path-aUcfwwLI.js";var Z=function(){var t=function(_,r,a,h){for(a=a||{},h=_.length;h--;a[_[h]]=r);return a},e=[1,2],s=[1,5],n=[6,9,11,17,18,20,22,23,24,26],i=[1,15],l=[1,16],c=[1,17],y=[1,18],u=[1,19],x=[1,20],g=[1,24],f=[4,6,9,11,17,18,20,22,23,24,26],d={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",17:"title",18:"acc_title",19:"acc_title_value",20:"acc_descr",21:"acc_descr_value",22:"acc_descr_multiline_value",23:"section",24:"taskName",25:"taskData",26:"open_directive",27:"type_directive",28:"arg_directive",29:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(r,a,h,p,m,o,R){var k=o.length-1;switch(m){case 1:return o[k-1];case 3:this.$=[];break;case 4:o[k-1].push(o[k]),this.$=o[k-1];break;case 5:case 6:this.$=o[k];break;case 7:case 8:this.$=[];break;case 11:p.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 12:this.$=o[k].trim(),p.setAccTitle(this.$);break;case 13:case 14:this.$=o[k].trim(),p.setAccDescription(this.$);break;case 15:p.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 16:p.addTask(o[k-1],o[k]),this.$="task";break;case 18:p.parseDirective("%%{","open_directive");break;case 19:p.parseDirective(o[k],"type_directive");break;case 20:o[k]=o[k].trim().replace(/'/g,'"'),p.parseDirective(o[k],"arg_directive");break;case 21:p.parseDirective("}%%","close_directive","journey");break}},table:[{3:1,4:e,7:3,12:4,26:s},{1:[3]},t(n,[2,3],{5:6}),{3:7,4:e,7:3,12:4,26:s},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:l,20:c,22:y,23:u,24:x,26:s},{1:[2,2]},{14:22,15:[1,23],29:g},t([15,29],[2,19]),t(n,[2,8],{1:[2,1]}),t(n,[2,4]),{7:21,10:25,12:4,17:i,18:l,20:c,22:y,23:u,24:x,26:s},t(n,[2,6]),t(n,[2,7]),t(n,[2,11]),{19:[1,26]},{21:[1,27]},t(n,[2,14]),t(n,[2,15]),{25:[1,28]},t(n,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},t(n,[2,5]),t(n,[2,12]),t(n,[2,13]),t(n,[2,16]),t(f,[2,9]),{14:32,29:g},{29:[2,20]},{11:[1,33]},t(f,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(r,a){if(a.recoverable)this.trace(r);else{var h=new Error(r);throw h.hash=a,h}},parse:function(r){var a=this,h=[0],p=[],m=[null],o=[],R=this.table,k="",j=0,Q=0,yt=2,tt=1,dt=o.slice.call(arguments,1),b=Object.create(this.lexer),I={yy:{}};for(var D in this.yy)Object.prototype.hasOwnProperty.call(this.yy,D)&&(I.yy[D]=this.yy[D]);b.setInput(r,I.yy),I.yy.lexer=b,I.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var W=b.yylloc;o.push(W);var pt=b.options&&b.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ft(){var E;return E=p.pop()||b.lex()||tt,typeof E!="number"&&(E instanceof Array&&(p=E,E=p.pop()),E=a.symbols_[E]||E),E}for(var w,A,$,X,F={},Y,M,et,q;;){if(A=h[h.length-1],this.defaultActions[A]?$=this.defaultActions[A]:((w===null||typeof w>"u")&&(w=ft()),$=R[A]&&R[A][w]),typeof $>"u"||!$.length||!$[0]){var G="";q=[];for(Y in R[A])this.terminals_[Y]&&Y>yt&&q.push("'"+this.terminals_[Y]+"'");b.showPosition?G="Parse error on line "+(j+1)+`:
|
|
||||||
`+b.showPosition()+`
|
|
||||||
Expecting `+q.join(", ")+", got '"+(this.terminals_[w]||w)+"'":G="Parse error on line "+(j+1)+": Unexpected "+(w==tt?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(G,{text:b.match,token:this.terminals_[w]||w,line:b.yylineno,loc:W,expected:q})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+w);switch($[0]){case 1:h.push(w),m.push(b.yytext),o.push(b.yylloc),h.push($[1]),w=null,Q=b.yyleng,k=b.yytext,j=b.yylineno,W=b.yylloc;break;case 2:if(M=this.productions_[$[1]][1],F.$=m[m.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},pt&&(F._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),X=this.performAction.apply(F,[k,Q,j,I.yy,$[1],m,o].concat(dt)),typeof X<"u")return X;M&&(h=h.slice(0,-1*M*2),m=m.slice(0,-1*M),o=o.slice(0,-1*M)),h.push(this.productions_[$[1]][0]),m.push(F.$),o.push(F._$),et=R[h[h.length-2]][h[h.length-1]],h.push(et);break;case 3:return!0}}return!0}},T=function(){var _={EOF:1,parseError:function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},setInput: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},input: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},unput: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 p=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 m=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===p.length?this.yylloc.first_column:0)+p[p.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject: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},less:function(r){this.unput(this.match.slice(r))},pastInput:function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},upcomingInput: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,"")},showPosition:function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
||||||
`+a+"^"},test_match:function(r,a){var h,p,m;if(this.options.backtrack_lexer&&(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(m.yylloc.range=this.yylloc.range.slice(0))),p=r[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],h=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),h)return h;if(this._backtrack){for(var o in m)this[o]=m[o];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,a,h,p;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),o=0;o<m.length;o++)if(h=this._input.match(this.rules[m[o]]),h&&(!a||h[0].length>a[0].length)){if(a=h,p=o,this.options.backtrack_lexer){if(r=this.test_match(h,m[o]),r!==!1)return r;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(r=this.test_match(a,m[p]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
||||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(a,h,p,m){switch(p){case 0:return this.begin("open_directive"),26;case 1:return this.begin("type_directive"),27;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:break;case 6:break;case 7:return 11;case 8:break;case 9:break;case 10:return 4;case 11:return 17;case 12:return this.begin("acc_title"),18;case 13:return this.popState(),"acc_title_value";case 14:return this.begin("acc_descr"),20;case 15:return this.popState(),"acc_descr_value";case 16:this.begin("acc_descr_multiline");break;case 17:this.popState();break;case 18:return"acc_descr_multiline_value";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};return _}();d.lexer=T;function v(){this.yy={}}return v.prototype=d,d.Parser=v,new v}();Z.parser=Z;const Et=Z;let L="";const J=[],N=[],B=[],Pt=function(t,e,s){bt.parseDirective(this,t,e,s)},It=function(){J.length=0,N.length=0,L="",B.length=0,wt()},At=function(t){L=t,J.push(t)},Ct=function(){return J},Vt=function(){let t=st();const e=100;let s=0;for(;!t&&s<e;)t=st(),s++;return N.push(...B),N},Ft=function(){const t=[];return N.forEach(s=>{s.people&&t.push(...s.people)}),[...new Set(t)].sort()},Lt=function(t,e){const s=e.substr(1).split(":");let n=0,i=[];s.length===1?(n=Number(s[0]),i=[]):(n=Number(s[0]),i=s[1].split(","));const l=i.map(y=>y.trim()),c={section:L,type:L,people:l,task:t,score:n};B.push(c)},Rt=function(t){const e={section:L,type:L,description:t,task:t,classes:[]};N.push(e)},st=function(){const t=function(s){return B[s].processed};let e=!0;for(const[s,n]of B.entries())t(s),e=e&&n.processed;return e},Nt=function(){return Ft()},rt={parseDirective:Pt,getConfig:()=>V().journey,clear:It,setDiagramTitle:gt,getDiagramTitle:mt,setAccTitle:xt,getAccTitle:_t,setAccDescription:kt,getAccDescription:vt,addSection:At,getSections:Ct,getTasks:Vt,addTask:Lt,addTaskOrg:Rt,getActors:Nt},Bt=t=>`.label {
|
|
||||||
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
||||||
font-family: var(--mermaid-font-family);
|
|
||||||
color: ${t.textColor};
|
|
||||||
}
|
|
||||||
.mouth {
|
|
||||||
stroke: #666;
|
|
||||||
}
|
|
||||||
|
|
||||||
line {
|
|
||||||
stroke: ${t.textColor}
|
|
||||||
}
|
|
||||||
|
|
||||||
.legend {
|
|
||||||
fill: ${t.textColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.label text {
|
|
||||||
fill: #333;
|
|
||||||
}
|
|
||||||
.label {
|
|
||||||
color: ${t.textColor}
|
|
||||||
}
|
|
||||||
|
|
||||||
.face {
|
|
||||||
${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};
|
|
||||||
stroke: #999;
|
|
||||||
}
|
|
||||||
|
|
||||||
.node rect,
|
|
||||||
.node circle,
|
|
||||||
.node ellipse,
|
|
||||||
.node polygon,
|
|
||||||
.node path {
|
|
||||||
fill: ${t.mainBkg};
|
|
||||||
stroke: ${t.nodeBorder};
|
|
||||||
stroke-width: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.node .label {
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.node.clickable {
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.arrowheadPath {
|
|
||||||
fill: ${t.arrowheadColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
.edgePath .path {
|
|
||||||
stroke: ${t.lineColor};
|
|
||||||
stroke-width: 1.5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.flowchart-link {
|
|
||||||
stroke: ${t.lineColor};
|
|
||||||
fill: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.edgeLabel {
|
|
||||||
background-color: ${t.edgeLabelBackground};
|
|
||||||
rect {
|
|
||||||
opacity: 0.5;
|
|
||||||
}
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.cluster rect {
|
|
||||||
}
|
|
||||||
|
|
||||||
.cluster text {
|
|
||||||
fill: ${t.titleColor};
|
|
||||||
}
|
|
||||||
|
|
||||||
div.mermaidTooltip {
|
|
||||||
position: absolute;
|
|
||||||
text-align: center;
|
|
||||||
max-width: 200px;
|
|
||||||
padding: 2px;
|
|
||||||
font-family: 'trebuchet ms', verdana, arial, sans-serif;
|
|
||||||
font-family: var(--mermaid-font-family);
|
|
||||||
font-size: 12px;
|
|
||||||
background: ${t.tertiaryColor};
|
|
||||||
border: 1px solid ${t.border2};
|
|
||||||
border-radius: 2px;
|
|
||||||
pointer-events: none;
|
|
||||||
z-index: 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
.task-type-0, .section-type-0 {
|
|
||||||
${t.fillType0?`fill: ${t.fillType0}`:""};
|
|
||||||
}
|
|
||||||
.task-type-1, .section-type-1 {
|
|
||||||
${t.fillType0?`fill: ${t.fillType1}`:""};
|
|
||||||
}
|
|
||||||
.task-type-2, .section-type-2 {
|
|
||||||
${t.fillType0?`fill: ${t.fillType2}`:""};
|
|
||||||
}
|
|
||||||
.task-type-3, .section-type-3 {
|
|
||||||
${t.fillType0?`fill: ${t.fillType3}`:""};
|
|
||||||
}
|
|
||||||
.task-type-4, .section-type-4 {
|
|
||||||
${t.fillType0?`fill: ${t.fillType4}`:""};
|
|
||||||
}
|
|
||||||
.task-type-5, .section-type-5 {
|
|
||||||
${t.fillType0?`fill: ${t.fillType5}`:""};
|
|
||||||
}
|
|
||||||
.task-type-6, .section-type-6 {
|
|
||||||
${t.fillType0?`fill: ${t.fillType6}`:""};
|
|
||||||
}
|
|
||||||
.task-type-7, .section-type-7 {
|
|
||||||
${t.fillType0?`fill: ${t.fillType7}`:""};
|
|
||||||
}
|
|
||||||
|
|
||||||
.actor-0 {
|
|
||||||
${t.actor0?`fill: ${t.actor0}`:""};
|
|
||||||
}
|
|
||||||
.actor-1 {
|
|
||||||
${t.actor1?`fill: ${t.actor1}`:""};
|
|
||||||
}
|
|
||||||
.actor-2 {
|
|
||||||
${t.actor2?`fill: ${t.actor2}`:""};
|
|
||||||
}
|
|
||||||
.actor-3 {
|
|
||||||
${t.actor3?`fill: ${t.actor3}`:""};
|
|
||||||
}
|
|
||||||
.actor-4 {
|
|
||||||
${t.actor4?`fill: ${t.actor4}`:""};
|
|
||||||
}
|
|
||||||
.actor-5 {
|
|
||||||
${t.actor5?`fill: ${t.actor5}`:""};
|
|
||||||
}
|
|
||||||
`,zt=Bt,K=function(t,e){return $t(t,e)},jt=function(t,e){const n=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),i=t.append("g");i.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),i.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function l(u){const x=it().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}function c(u){const x=it().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);u.append("path").attr("class","mouth").attr("d",x).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}function y(u){u.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return e.score>3?l(i):e.score<3?c(i):y(i),n},lt=function(t,e){const s=t.append("circle");return s.attr("cx",e.cx),s.attr("cy",e.cy),s.attr("class","actor-"+e.pos),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("r",e.r),s.class!==void 0&&s.attr("class",s.class),e.title!==void 0&&s.append("title").text(e.title),s},ht=function(t,e){return St(t,e)},Yt=function(t,e){function s(i,l,c,y,u){return i+","+l+" "+(i+c)+","+l+" "+(i+c)+","+(l+y-u)+" "+(i+c-u*1.2)+","+(l+y)+" "+i+","+(l+y)}const n=t.append("polygon");n.attr("points",s(e.x,e.y,50,20,7)),n.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,ht(t,e)},qt=function(t,e,s){const n=t.append("g"),i=ot();i.x=e.x,i.y=e.y,i.fill=e.fill,i.width=s.width*e.taskCount+s.diagramMarginX*(e.taskCount-1),i.height=s.height,i.class="journey-section section-type-"+e.num,i.rx=3,i.ry=3,K(n,i),ut(s)(e.text,n,i.x,i.y,i.width,i.height,{class:"journey-section section-type-"+e.num},s,e.colour)};let nt=-1;const Ot=function(t,e,s){const n=e.x+s.width/2,i=t.append("g");nt++;const l=300+5*30;i.append("line").attr("id","task"+nt).attr("x1",n).attr("y1",e.y).attr("x2",n).attr("y2",l).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),jt(i,{cx:n,cy:300+(5-e.score)*30,score:e.score});const c=ot();c.x=e.x,c.y=e.y,c.fill=e.fill,c.width=s.width,c.height=s.height,c.class="task task-type-"+e.num,c.rx=3,c.ry=3,K(i,c);let y=e.x+14;e.people.forEach(u=>{const x=e.actors[u].color,g={cx:y,cy:e.y,r:7,fill:x,stroke:"#000",title:u,pos:e.actors[u].position};lt(i,g),y+=10}),ut(s)(e.task,i,c.x,c.y,c.width,c.height,{class:"task"},s,e.colour)},Dt=function(t,e){Mt(t,e)},ut=function(){function t(i,l,c,y,u,x,g,f){const d=l.append("text").attr("x",c+u/2).attr("y",y+x/2+5).style("font-color",f).style("text-anchor","middle").text(i);n(d,g)}function e(i,l,c,y,u,x,g,f,d){const{taskFontSize:T,taskFontFamily:v}=f,_=i.split(/<br\s*\/?>/gi);for(let r=0;r<_.length;r++){const a=r*T-T*(_.length-1)/2,h=l.append("text").attr("x",c+u/2).attr("y",y).attr("fill",d).style("text-anchor","middle").style("font-size",T).style("font-family",v);h.append("tspan").attr("x",c+u/2).attr("dy",a).text(_[r]),h.attr("y",y+x/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),n(h,g)}}function s(i,l,c,y,u,x,g,f){const d=l.append("switch"),v=d.append("foreignObject").attr("x",c).attr("y",y).attr("width",u).attr("height",x).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");v.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(i),e(i,d,c,y,u,x,g,f),n(v,g)}function n(i,l){for(const c in l)c in l&&i.attr(c,l[c])}return function(i){return i.textPlacement==="fo"?s:i.textPlacement==="old"?t:e}}(),Wt=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},z={drawRect:K,drawCircle:lt,drawSection:qt,drawText:ht,drawLabel:Yt,drawTask:Ot,drawBackgroundRect:Dt,initGraphics:Wt},Xt=function(t){Object.keys(t).forEach(function(s){O[s]=t[s]})},P={};function Gt(t){const e=V().journey;let s=60;Object.keys(P).forEach(n=>{const i=P[n].color,l={cx:20,cy:s,r:7,fill:i,stroke:"#000",pos:P[n].position};z.drawCircle(t,l);const c={x:40,y:s+7,fill:"#666",text:n,textMargin:e.boxTextMargin|5};z.drawText(t,c),s+=20})}const O=V().journey,C=O.leftMargin,Ht=function(t,e,s,n){const i=V().journey;n.db.clear(),n.parser.parse(t+`
|
|
||||||
`);const l=V().securityLevel;let c;l==="sandbox"&&(c=H("#i"+e));const y=l==="sandbox"?H(c.nodes()[0].contentDocument.body):H("body");S.init();const u=y.select("#"+e);z.initGraphics(u);const x=n.db.getTasks(),g=n.db.getDiagramTitle(),f=n.db.getActors();for(const a in P)delete P[a];let d=0;f.forEach(a=>{P[a]={color:i.actorColours[d%i.actorColours.length],position:d},d++}),Gt(u),S.insert(0,0,C,Object.keys(P).length*50),Ut(u,x,0);const T=S.getBounds();g&&u.append("text").text(g).attr("x",C).attr("font-size","4ex").attr("font-weight","bold").attr("y",25);const v=T.stopy-T.starty+2*i.diagramMarginY,_=C+T.stopx+2*i.diagramMarginX;Tt(u,v,_,i.useMaxWidth),u.append("line").attr("x1",C).attr("y1",i.height*4).attr("x2",_-C-4).attr("y2",i.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const r=g?70:0;u.attr("viewBox",`${T.startx} -25 ${_} ${v+r}`),u.attr("preserveAspectRatio","xMinYMin meet"),u.attr("height",v+r+25)},S={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,e,s,n){t[e]===void 0?t[e]=s:t[e]=n(s,t[e])},updateBounds:function(t,e,s,n){const i=V().journey,l=this;let c=0;function y(u){return function(g){c++;const f=l.sequenceItems.length-c+1;l.updateVal(g,"starty",e-f*i.boxMargin,Math.min),l.updateVal(g,"stopy",n+f*i.boxMargin,Math.max),l.updateVal(S.data,"startx",t-f*i.boxMargin,Math.min),l.updateVal(S.data,"stopx",s+f*i.boxMargin,Math.max),u!=="activation"&&(l.updateVal(g,"startx",t-f*i.boxMargin,Math.min),l.updateVal(g,"stopx",s+f*i.boxMargin,Math.max),l.updateVal(S.data,"starty",e-f*i.boxMargin,Math.min),l.updateVal(S.data,"stopy",n+f*i.boxMargin,Math.max))}}this.sequenceItems.forEach(y())},insert:function(t,e,s,n){const i=Math.min(t,s),l=Math.max(t,s),c=Math.min(e,n),y=Math.max(e,n);this.updateVal(S.data,"startx",i,Math.min),this.updateVal(S.data,"starty",c,Math.min),this.updateVal(S.data,"stopx",l,Math.max),this.updateVal(S.data,"stopy",y,Math.max),this.updateBounds(i,c,l,y)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}},U=O.sectionFills,at=O.sectionColours,Ut=function(t,e,s){const n=V().journey;let i="";const l=n.height*2+n.diagramMarginY,c=s+l;let y=0,u="#CCC",x="black",g=0;for(const[f,d]of e.entries()){if(i!==d.section){u=U[y%U.length],g=y%U.length,x=at[y%at.length];let v=0;const _=d.section;for(let a=f;a<e.length&&e[a].section==_;a++)v=v+1;const r={x:f*n.taskMargin+f*n.width+C,y:50,text:d.section,fill:u,num:g,colour:x,taskCount:v};z.drawSection(t,r,n),i=d.section,y++}const T=d.people.reduce((v,_)=>(P[_]&&(v[_]=P[_]),v),{});d.x=f*n.taskMargin+f*n.width+C,d.y=c,d.width=n.diagramMarginX,d.height=n.diagramMarginY,d.colour=x,d.fill=u,d.num=g,d.actors=T,z.drawTask(t,d,n),S.insert(d.x,d.y,d.x+d.width+n.taskMargin,300+5*30)}},ct={setConf:Xt,draw:Ht},ee={parser:Et,db:rt,renderer:ct,styles:zt,init:t=>{ct.setConf(t.journey),rt.clear()}};export{ee as diagram};
|
|
||||||
//# sourceMappingURL=journeyDiagram-31be0096-pp8z6RK0.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"journeyDiagram-31be0096-pp8z6RK0.js","sources":["../../../node_modules/mermaid/dist/journeyDiagram-31be0096.js"],"sourcesContent":["import { c as getConfig, r as setDiagramTitle, t as getDiagramTitle, s as setAccTitle, g as getAccTitle, b as setAccDescription, a as getAccDescription, m as mermaidAPI, v as clear$1, i as configureSvgSize } from \"./mermaid-b0ad2de1.js\";\nimport { arc, select } from \"d3\";\nimport { d as drawRect$1, f as drawText$1, a as drawBackgroundRect$1, g as getNoteRect } from \"./svgDrawCommon-f26cad39.js\";\nimport \"ts-dedent\";\nimport \"dayjs\";\nimport \"@braintree/sanitize-url\";\nimport \"dompurify\";\nimport \"khroma\";\nimport \"lodash-es/memoize.js\";\nimport \"stylis\";\nimport \"lodash-es/isEmpty.js\";\nvar parser = function() {\n var o = function(k, v, o2, l) {\n for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)\n ;\n return o2;\n }, $V0 = [1, 2], $V1 = [1, 5], $V2 = [6, 9, 11, 17, 18, 20, 22, 23, 24, 26], $V3 = [1, 15], $V4 = [1, 16], $V5 = [1, 17], $V6 = [1, 18], $V7 = [1, 19], $V8 = [1, 20], $V9 = [1, 24], $Va = [4, 6, 9, 11, 17, 18, 20, 22, 23, 24, 26];\n var parser2 = {\n trace: function trace() {\n },\n yy: {},\n symbols_: { \"error\": 2, \"start\": 3, \"journey\": 4, \"document\": 5, \"EOF\": 6, \"directive\": 7, \"line\": 8, \"SPACE\": 9, \"statement\": 10, \"NEWLINE\": 11, \"openDirective\": 12, \"typeDirective\": 13, \"closeDirective\": 14, \":\": 15, \"argDirective\": 16, \"title\": 17, \"acc_title\": 18, \"acc_title_value\": 19, \"acc_descr\": 20, \"acc_descr_value\": 21, \"acc_descr_multiline_value\": 22, \"section\": 23, \"taskName\": 24, \"taskData\": 25, \"open_directive\": 26, \"type_directive\": 27, \"arg_directive\": 28, \"close_directive\": 29, \"$accept\": 0, \"$end\": 1 },\n terminals_: { 2: \"error\", 4: \"journey\", 6: \"EOF\", 9: \"SPACE\", 11: \"NEWLINE\", 15: \":\", 17: \"title\", 18: \"acc_title\", 19: \"acc_title_value\", 20: \"acc_descr\", 21: \"acc_descr_value\", 22: \"acc_descr_multiline_value\", 23: \"section\", 24: \"taskName\", 25: \"taskData\", 26: \"open_directive\", 27: \"type_directive\", 28: \"arg_directive\", 29: \"close_directive\" },\n productions_: [0, [3, 3], [3, 2], [5, 0], [5, 2], [8, 2], [8, 1], [8, 1], [8, 1], [7, 4], [7, 6], [10, 1], [10, 2], [10, 2], [10, 1], [10, 1], [10, 2], [10, 1], [12, 1], [13, 1], [16, 1], [14, 1]],\n performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) {\n var $0 = $$.length - 1;\n switch (yystate) {\n case 1:\n return $$[$0 - 1];\n case 3:\n this.$ = [];\n break;\n case 4:\n $$[$0 - 1].push($$[$0]);\n this.$ = $$[$0 - 1];\n break;\n case 5:\n case 6:\n this.$ = $$[$0];\n break;\n case 7:\n case 8:\n this.$ = [];\n break;\n case 11:\n yy.setDiagramTitle($$[$0].substr(6));\n this.$ = $$[$0].substr(6);\n break;\n case 12:\n this.$ = $$[$0].trim();\n yy.setAccTitle(this.$);\n break;\n case 13:\n case 14:\n this.$ = $$[$0].trim();\n yy.setAccDescription(this.$);\n break;\n case 15:\n yy.addSection($$[$0].substr(8));\n this.$ = $$[$0].substr(8);\n break;\n case 16:\n yy.addTask($$[$0 - 1], $$[$0]);\n this.$ = \"task\";\n break;\n case 18:\n yy.parseDirective(\"%%{\", \"open_directive\");\n break;\n case 19:\n yy.parseDirective($$[$0], \"type_directive\");\n break;\n case 20:\n $$[$0] = $$[$0].trim().replace(/'/g, '\"');\n yy.parseDirective($$[$0], \"arg_directive\");\n break;\n case 21:\n yy.parseDirective(\"}%%\", \"close_directive\", \"journey\");\n break;\n }\n },\n table: [{ 3: 1, 4: $V0, 7: 3, 12: 4, 26: $V1 }, { 1: [3] }, o($V2, [2, 3], { 5: 6 }), { 3: 7, 4: $V0, 7: 3, 12: 4, 26: $V1 }, { 13: 8, 27: [1, 9] }, { 27: [2, 18] }, { 6: [1, 10], 7: 21, 8: 11, 9: [1, 12], 10: 13, 11: [1, 14], 12: 4, 17: $V3, 18: $V4, 20: $V5, 22: $V6, 23: $V7, 24: $V8, 26: $V1 }, { 1: [2, 2] }, { 14: 22, 15: [1, 23], 29: $V9 }, o([15, 29], [2, 19]), o($V2, [2, 8], { 1: [2, 1] }), o($V2, [2, 4]), { 7: 21, 10: 25, 12: 4, 17: $V3, 18: $V4, 20: $V5, 22: $V6, 23: $V7, 24: $V8, 26: $V1 }, o($V2, [2, 6]), o($V2, [2, 7]), o($V2, [2, 11]), { 19: [1, 26] }, { 21: [1, 27] }, o($V2, [2, 14]), o($V2, [2, 15]), { 25: [1, 28] }, o($V2, [2, 17]), { 11: [1, 29] }, { 16: 30, 28: [1, 31] }, { 11: [2, 21] }, o($V2, [2, 5]), o($V2, [2, 12]), o($V2, [2, 13]), o($V2, [2, 16]), o($Va, [2, 9]), { 14: 32, 29: $V9 }, { 29: [2, 20] }, { 11: [1, 33] }, o($Va, [2, 10])],\n defaultActions: { 5: [2, 18], 7: [2, 2], 24: [2, 21], 31: [2, 20] },\n parseError: function parseError(str, hash) {\n if (hash.recoverable) {\n Line truncated
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
import{A as M,B as He,S as C,C as _,D as L,E as Fr,F as nn,G as D,H as X,I as Z,J as Un,K as Dr,L as ke,M as Gr,N as Br,O as Yn,P as Ur,Q as qe,R as Hn,T as V,U as cn,V as kn,W as Yr,X as Mn,Y as Ln,Z as se}from"./index-jpNTxDe4.js";var Hr="[object Symbol]";function R(n){return typeof n=="symbol"||M(n)&&He(n)==Hr}function H(n,e){for(var r=-1,t=n==null?0:n.length,i=Array(t);++r<t;)i[r]=e(n[r],r,n);return i}var kr=1/0,fe=C?C.prototype:void 0,de=fe?fe.toString:void 0;function Ke(n){if(typeof n=="string")return n;if(_(n))return H(n,Ke)+"";if(R(n))return de?de.call(n):"";var e=n+"";return e=="0"&&1/n==-kr?"-0":e}var qr=/\s/;function Kr(n){for(var e=n.length;e--&&qr.test(n.charAt(e)););return e}var Wr=/^\s+/;function Xr(n){return n&&n.slice(0,Kr(n)+1).replace(Wr,"")}var ce=NaN,Zr=/^[-+]0x[0-9a-f]+$/i,Vr=/^0b[01]+$/i,Jr=/^0o[0-7]+$/i,zr=parseInt;function Qr(n){if(typeof n=="number")return n;if(R(n))return ce;if(L(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=L(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=Xr(n);var r=Vr.test(n);return r||Jr.test(n)?zr(n.slice(2),r?2:8):Zr.test(n)?ce:+n}var le=1/0,jr=17976931348623157e292;function fn(n){if(!n)return n===0?n:0;if(n=Qr(n),n===le||n===-le){var e=n<0?-1:1;return e*jr}return n===n?n:0}function nt(n){var e=fn(n),r=e%1;return e===e?r?e-r:e:0}function G(n){return n}var he=Object.create,et=function(){function n(){}return function(e){if(!L(e))return{};if(he)return he(e);n.prototype=e;var r=new n;return n.prototype=void 0,r}}();const rt=et;function tt(n,e,r){switch(r.length){case 0:return n.call(e);case 1:return n.call(e,r[0]);case 2:return n.call(e,r[0],r[1]);case 3:return n.call(e,r[0],r[1],r[2])}return n.apply(e,r)}function it(){}function We(n,e){var r=-1,t=n.length;for(e||(e=Array(t));++r<t;)e[r]=n[r];return e}var at=800,ot=16,ut=Date.now;function st(n){var e=0,r=0;return function(){var t=ut(),i=ot-(t-r);if(r=t,i>0){if(++e>=at)return arguments[0]}else e=0;return n.apply(void 0,arguments)}}function Y(n){return function(){return n}}var ft=function(){try{var n=Fr(Object,"defineProperty");return n({},"",{}),n}catch{}}();const ln=ft;var dt=ln?function(n,e){return ln(n,"toString",{configurable:!0,enumerable:!1,value:Y(e),writable:!0})}:G;const ct=dt;var lt=st(ct);const Xe=lt;function Ze(n,e){for(var r=-1,t=n==null?0:n.length;++r<t&&e(n[r],r,n)!==!1;);return n}function Ve(n,e,r,t){for(var i=n.length,a=r+(t?1:-1);t?a--:++a<i;)if(e(n[a],a,n))return a;return-1}function ht(n){return n!==n}function vt(n,e,r){for(var t=r-1,i=n.length;++t<i;)if(n[t]===e)return t;return-1}function gt(n,e,r){return e===e?vt(n,e,r):Ve(n,ht,r)}function pt(n,e){var r=n==null?0:n.length;return!!r&>(n,e,0)>-1}var bt=9007199254740991,wt=/^(?:0|[1-9]\d*)$/;function pn(n,e){var r=typeof n;return e=e??bt,!!e&&(r=="number"||r!="symbol"&&wt.test(n))&&n>-1&&n%1==0&&n<e}function bn(n,e,r){e=="__proto__"&&ln?ln(n,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[e]=r}var mt=Object.prototype,_t=mt.hasOwnProperty;function wn(n,e,r){var t=n[e];(!(_t.call(n,e)&&nn(t,r))||r===void 0&&!(e in n))&&bn(n,e,r)}function en(n,e,r,t){var i=!r;r||(r={});for(var a=-1,o=e.length;++a<o;){var u=e[a],s=t?t(r[u],n[u],u,r,n):void 0;s===void 0&&(s=n[u]),i?bn(r,u,s):wn(r,u,s)}return r}var ve=Math.max;function Je(n,e,r){return e=ve(e===void 0?n.length-1:e,0),function(){for(var t=arguments,i=-1,a=ve(t.length-e,0),o=Array(a);++i<a;)o[i]=t[e+i];i=-1;for(var u=Array(e+1);++i<e;)u[i]=t[i];return u[e]=r(o),tt(n,this,u)}}function mn(n,e){return Xe(Je(n,e,G),n+"")}function J(n,e,r){if(!L(r))return!1;var t=typeof e;return(t=="number"?D(r)&&pn(e,r.length):t=="string"&&e in r)?nn(r[e],n):!1}function Et(n){return mn(function(e,r){var t=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=n.length>3&&typeof a=="function"?(i--,a):void 0,o&&J(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++t<i;){var u=r[t];u&&n(e,u,t,a)}return e})}function yt(n,e){for(var r=-1,t=Array(n);++r<n;)t[r]=e(r);return t}var xt=Object.prototype,Tt=xt.hasOwnProperty;function ze(n,e){var r=_(n),t=!r&&X(n),i=!r&&!t&&Z(n),a=!r&&!t&&!i&&Un(n),o=r||t||i||a,u=o?yt(n.length,String):[],s=u.length;for(var f in n)(e||Tt.call(n,f))&&!(o&&(f=="length"||i&&(f=="offset"||f=="parent")||a&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||pn(f,s)))&&u.push(f);return u}function T(n){return D(n)?ze(n):Dr(n)}function Ot(n){var e=[];if(n!=null)for(var r in Object(n))e.push(r);return e}var Lt=Object.prototype,At=Lt.hasOwnProperty;function Pt(n){if(!L(n))return Ot(n);var e=ke(n),r=[];for(var t in n)t=="constructor"&&(e||!At.call(n,t))||r.push(t);return r}function B(n){return D(n)?ze(n,!0):Pt(n)}var Nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ct=/^\w*$/;function qn(n,e){if(_(n))return!1;var r=typeof n;return r=="number"||r=="symbol"||r=="boolean"||n==null||R(n)?!0:Ct.test(n)||!Nt.test(n)||e!=null&&n in Object(e)}var $t=500;function It(n){var e=Gr(n,function(t){return r.size===$t&&r.clear(),t}),r=e.cache;return e}var St=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!Line truncated
|
|
||||||
//# sourceMappingURL=layout-ewywu0M6.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"layout-ewywu0M6.js","sources":["../../../node_modules/lodash-es/isSymbol.js","../../../node_modules/lodash-es/_arrayMap.js","../../../node_modules/lodash-es/_baseToString.js","../../../node_modules/lodash-es/_trimmedEndIndex.js","../../../node_modules/lodash-es/_baseTrim.js","../../../node_modules/lodash-es/toNumber.js","../../../node_modules/lodash-es/toFinite.js","../../../node_modules/lodash-es/toInteger.js","../../../node_modules/lodash-es/identity.js","../../../node_modules/lodash-es/_baseCreate.js","../../../node_modules/lodash-es/_apply.js","../../../node_modules/lodash-es/noop.js","../../../node_modules/lodash-es/_copyArray.js","../../../node_modules/lodash-es/_shortOut.js","../../../node_modules/lodash-es/constant.js","../../../node_modules/lodash-es/_defineProperty.js","../../../node_modules/lodash-es/_baseSetToString.js","../../../node_modules/lodash-es/_setToString.js","../../../node_modules/lodash-es/_arrayEach.js","../../../node_modules/lodash-es/_baseFindIndex.js","../../../node_modules/lodash-es/_baseIsNaN.js","../../../node_modules/lodash-es/_strictIndexOf.js","../../../node_modules/lodash-es/_baseIndexOf.js","../../../node_modules/lodash-es/_arrayIncludes.js","../../../node_modules/lodash-es/_isIndex.js","../../../node_modules/lodash-es/_baseAssignValue.js","../../../node_modules/lodash-es/_assignValue.js","../../../node_modules/lodash-es/_copyObject.js","../../../node_modules/lodash-es/_overRest.js","../../../node_modules/lodash-es/_baseRest.js","../../../node_modules/lodash-es/_isIterateeCall.js","../../../node_modules/lodash-es/_createAssigner.js","../../../node_modules/lodash-es/_baseTimes.js","../../../node_modules/lodash-es/_arrayLikeKeys.js","../../../node_modules/lodash-es/keys.js","../../../node_modules/lodash-es/_nativeKeysIn.js","../../../node_modules/lodash-es/_baseKeysIn.js","../../../node_modules/lodash-es/keysIn.js","../../../node_modules/lodash-es/_isKey.js","../../../node_modules/lodash-es/_memoizeCapped.js","../../../node_modules/lodash-es/_stringToPath.js","../../../node_modules/lodash-es/toString.js","../../../node_modules/lodash-es/_castPath.js","../../../node_modules/lodash-es/_toKey.js","../../../node_modules/lodash-es/_baseGet.js","../../../node_modules/lodash-es/get.js","../../../node_modules/lodash-es/_arrayPush.js","../../../node_modules/lodash-es/_isFlattenable.js","../../../node_modules/lodash-es/_baseFlatten.js","../../../node_modules/lodash-es/flatten.js","../../../node_modules/lodash-es/_flatRest.js","../../../node_modules/lodash-es/_getPrototype.js","../../../node_modules/lodash-es/isPlainObject.js","../../../node_modules/lodash-es/_arrayReduce.js","../../../node_modules/lodash-es/_stackClear.js","../../../node_modules/lodash-es/_stackDelete.js","../../../node_modules/lodash-es/_stackGet.js","../../../node_modules/lodash-es/_stackHas.js","../../../node_modules/lodash-es/_stackSet.js","../../../node_modules/lodash-es/_Stack.js","../../../node_modules/lodash-es/_baseAssign.js","../../../node_modules/lodash-es/_baseAssignIn.js","../../../node_modules/lodash-es/_cloneBuffer.js","../../../node_modules/lodash-es/_arrayFilter.js","../../../node_modules/lodash-es/stubArray.js","../../../node_modules/lodash-es/_getSymbols.js","../../../node_modules/lodash-es/_copySymbols.js","../../../node_modules/lodash-es/_getSymbolsIn.js","../../../node_modules/lodash-es/_copySymbolsIn.js","../../../node_modules/lodash-es/_baseGetAllKeys.js","../../../node_modules/lodash-es/_getAllKeys.js","../../../node_modules/lodash-es/_getAllKeysIn.js","../../../node_modules/lodash-es/_initCloneArray.js","../../../node_modules/lodash-es/_Uint8Array.js","../../../node_modules/lodash-es/_cloneArrayBuffer.js","../../../node_modules/lodash-es/_cloneDataView.js","../../../node_modules/lodash-es/_cloneRegExp.js","../../../node_modules/lodash-es/_cloneSymbol.js","../../../node_modules/lodash-es/_cloneTypedArray.js","../../../node_modules/lodash-es/_initCloneByTag.js","../../../node_modules/lodash-es/_initCloneObject.js","../../../node_modules/lodash-es/_baseIsMap.js","../../../node_modules/lodash-es/isMap.js","../../../node_modules/lodash-es/_baseIsSet.js","../../../node_modules/lodash-es/isSet.js","../../../node_modules/lodash-es/_baseClone.js","../../../node_modules/lodash-es/cloneDeep.js","../../../node_modules/lodash-es/_setCacheAdd.js","../../../node_modules/lodash-es/_setCacheHas.js","../../../node_modules/lodash-es/_SetCache.js","../../../node_modules/lodash-es/_arraySome.js","../../../node_modules/lodash-es/_cacheHas.js","../../../node_modules/lodash-es/_equalArrays.js","../../../node_modules/lodash-es/_mapToArray.js","../../../node_modules/lodash-es/_setToArray.js","../../../node_modules/lodash-es/_equalByTag.js","../../../node_modules/lodash-es/_equalObjects.js","../../../node_modules/lodash-es/_baseIsEqualDeep.js","../../../node_modules/lodash-es/_baseIsEqual.js","../../../node_modules/lodash-es/_baseIsMatch.js","../../../node_modules/lodash-es/_isStrictComparable.jsLine truncated
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
import{a as h}from"./array-Nw74a44z.js";import{w as d,c as o}from"./path-aUcfwwLI.js";import{o as v}from"./index-jpNTxDe4.js";function w(t){return t[0]}function b(t){return t[1]}function P(t,u){var s=o(!0),i=null,l=v,r=null,m=d(e);t=typeof t=="function"?t:t===void 0?w:o(t),u=typeof u=="function"?u:u===void 0?b:o(u);function e(n){var f,g=(n=h(n)).length,p,c=!1,a;for(i==null&&(r=l(a=m())),f=0;f<=g;++f)!(f<g&&s(p=n[f],f,n))===c&&((c=!c)?r.lineStart():r.lineEnd()),c&&r.point(+t(p,f,n),+u(p,f,n));if(a)return r=null,a+""||null}return e.x=function(n){return arguments.length?(t=typeof n=="function"?n:o(+n),e):t},e.y=function(n){return arguments.length?(u=typeof n=="function"?n:o(+n),e):u},e.defined=function(n){return arguments.length?(s=typeof n=="function"?n:o(!!n),e):s},e.curve=function(n){return arguments.length?(l=n,i!=null&&(r=l(i)),e):l},e.context=function(n){return arguments.length?(n==null?i=r=null:r=l(i=n),e):i},e}export{P as l};
|
|
||||||
//# sourceMappingURL=line-reZX-DPl.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"line-reZX-DPl.js","sources":["../../../node_modules/d3-shape/src/point.js","../../../node_modules/d3-shape/src/line.js"],"sourcesContent":["export function x(p) {\n return p[0];\n}\n\nexport function y(p) {\n return p[1];\n}\n","import array from \"./array.js\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport {withPath} from \"./path.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function(x, y) {\n var defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null,\n path = withPath(line);\n\n x = typeof x === \"function\" ? x : (x === undefined) ? pointX : constant(x);\n y = typeof y === \"function\" ? y : (y === undefined) ? pointY : constant(y);\n\n function line(data) {\n var i,\n n = (data = array(data)).length,\n d,\n defined0 = false,\n buffer;\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) output.lineStart();\n else output.lineEnd();\n }\n if (defined0) output.point(+x(d, i, data), +y(d, i, data));\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n line.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), line) : x;\n };\n\n line.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), line) : y;\n };\n\n line.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), line) : defined;\n };\n\n line.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;\n };\n\n line.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;\n };\n\n return line;\n}\n"],"names":["x","p","y","line","defined","constant","context","curve","curveLinear","output","path","withPath","pointX","pointY","data","i","n","array","d","defined0","buffer","_"],"mappings":"8HAAO,SAASA,EAAEC,EAAG,CACnB,OAAOA,EAAE,CAAC,CACZ,CAEO,SAASC,EAAED,EAAG,CACnB,OAAOA,EAAE,CAAC,CACZ,CCAe,SAAAE,EAASH,EAAGE,EAAG,CAC5B,IAAIE,EAAUC,EAAS,EAAI,EACvBC,EAAU,KACVC,EAAQC,EACRC,EAAS,KACTC,EAAOC,EAASR,CAAI,EAExBH,EAAI,OAAOA,GAAM,WAAaA,EAAKA,IAAM,OAAaY,EAASP,EAASL,CAAC,EACzEE,EAAI,OAAOA,GAAM,WAAaA,EAAKA,IAAM,OAAaW,EAASR,EAASH,CAAC,EAEzE,SAASC,EAAKW,EAAM,CAClB,IAAIC,EACAC,GAAKF,EAAOG,EAAMH,CAAI,GAAG,OACzBI,EACAC,EAAW,GACXC,EAIJ,IAFId,GAAW,OAAMG,EAASF,EAAMa,EAASV,EAAI,CAAE,GAE9CK,EAAI,EAAGA,GAAKC,EAAG,EAAED,EAChB,EAAEA,EAAIC,GAAKZ,EAAQc,EAAIJ,EAAKC,CAAC,EAAGA,EAAGD,CAAI,KAAOK,KAC5CA,EAAW,CAACA,GAAUV,EAAO,UAAS,EACrCA,EAAO,QAAO,GAEjBU,GAAUV,EAAO,MAAM,CAACT,EAAEkB,EAAGH,EAAGD,CAAI,EAAG,CAACZ,EAAEgB,EAAGH,EAAGD,CAAI,CAAC,EAG3D,GAAIM,EAAQ,OAAOX,EAAS,KAAMW,EAAS,IAAM,IAClD,CAED,OAAAjB,EAAK,EAAI,SAASkB,EAAG,CACnB,OAAO,UAAU,QAAUrB,EAAI,OAAOqB,GAAM,WAAaA,EAAIhB,EAAS,CAACgB,CAAC,EAAGlB,GAAQH,CACvF,EAEEG,EAAK,EAAI,SAASkB,EAAG,CACnB,OAAO,UAAU,QAAUnB,EAAI,OAAOmB,GAAM,WAAaA,EAAIhB,EAAS,CAACgB,CAAC,EAAGlB,GAAQD,CACvF,EAEEC,EAAK,QAAU,SAASkB,EAAG,CACzB,OAAO,UAAU,QAAUjB,EAAU,OAAOiB,GAAM,WAAaA,EAAIhB,EAAS,CAAC,CAACgB,CAAC,EAAGlB,GAAQC,CAC9F,EAEED,EAAK,MAAQ,SAASkB,EAAG,CACvB,OAAO,UAAU,QAAUd,EAAQc,EAAGf,GAAW,OAASG,EAASF,EAAMD,CAAO,GAAIH,GAAQI,CAChG,EAEEJ,EAAK,QAAU,SAASkB,EAAG,CACzB,OAAO,UAAU,QAAUA,GAAK,KAAOf,EAAUG,EAAS,KAAOA,EAASF,EAAMD,EAAUe,CAAC,EAAGlB,GAAQG,CAC1G,EAESH,CACT","x_google_ignoreList":[0,1]}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
import{ak as un,al as I,am as U,an as Y,ao as fn}from"./index-jpNTxDe4.js";import{i as cn}from"./init-Hi12RPRh.js";function F(n,t){return n==null||t==null?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function hn(n,t){return n==null||t==null?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function _(n){let t,e,r;n.length!==2?(t=F,e=(u,c)=>F(n(u),c),r=(u,c)=>n(u)-c):(t=n===F||n===hn?n:mn,e=n,r=n);function i(u,c,o=0,s=u.length){if(o<s){if(t(c,c)!==0)return s;do{const h=o+s>>>1;e(u[h],c)<0?o=h+1:s=h}while(o<s)}return o}function f(u,c,o=0,s=u.length){if(o<s){if(t(c,c)!==0)return s;do{const h=o+s>>>1;e(u[h],c)<=0?o=h+1:s=h}while(o<s)}return o}function a(u,c,o=0,s=u.length){const h=i(u,c,o,s-1);return h>o&&r(u[h-1],c)>-r(u[h],c)?h-1:h}return{left:i,center:a,right:f}}function mn(){return 0}function ln(n){return n===null?NaN:+n}const sn=_(F),dn=sn.right;_(ln).center;const gn=dn,yn=Math.sqrt(50),Mn=Math.sqrt(10),pn=Math.sqrt(2);function R(n,t,e){const r=(t-n)/Math.max(0,e),i=Math.floor(Math.log10(r)),f=r/Math.pow(10,i),a=f>=yn?10:f>=Mn?5:f>=pn?2:1;let u,c,o;return i<0?(o=Math.pow(10,-i)/a,u=Math.round(n*o),c=Math.round(t*o),u/o<n&&++u,c/o>t&&--c,o=-o):(o=Math.pow(10,i)*a,u=Math.round(n/o),c=Math.round(t/o),u*o<n&&++u,c*o>t&&--c),c<u&&.5<=e&&e<2?R(n,t,e*2):[u,c,o]}function wn(n,t,e){if(t=+t,n=+n,e=+e,!(e>0))return[];if(n===t)return[n];const r=t<n,[i,f,a]=r?R(t,n,e):R(n,t,e);if(!(f>=i))return[];const u=f-i+1,c=new Array(u);if(r)if(a<0)for(let o=0;o<u;++o)c[o]=(f-o)/-a;else for(let o=0;o<u;++o)c[o]=(f-o)*a;else if(a<0)for(let o=0;o<u;++o)c[o]=(i+o)/-a;else for(let o=0;o<u;++o)c[o]=(i+o)*a;return c}function L(n,t,e){return t=+t,n=+n,e=+e,R(n,t,e)[2]}function Nn(n,t,e){t=+t,n=+n,e=+e;const r=t<n,i=r?L(t,n,e):L(n,t,e);return(r?-1:1)*(i<0?1/-i:i)}function kn(n,t){t||(t=[]);var e=n?Math.min(t.length,n.length):0,r=t.slice(),i;return function(f){for(i=0;i<e;++i)r[i]=n[i]*(1-f)+t[i]*f;return r}}function xn(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function An(n,t){var e=t?t.length:0,r=n?Math.min(e,n.length):0,i=new Array(r),f=new Array(e),a;for(a=0;a<r;++a)i[a]=C(n[a],t[a]);for(;a<e;++a)f[a]=t[a];return function(u){for(a=0;a<r;++a)f[a]=i[a](u);return f}}function vn(n,t){var e=new Date;return n=+n,t=+t,function(r){return e.setTime(n*(1-r)+t*r),e}}function Sn(n,t){var e={},r={},i;(n===null||typeof n!="object")&&(n={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in n?e[i]=C(n[i],t[i]):r[i]=t[i];return function(f){for(i in e)r[i]=e[i](f);return r}}function C(n,t){var e=typeof t,r;return t==null||e==="boolean"?un(t):(e==="number"?I:e==="string"?(r=U(t))?(t=r,Y):fn:t instanceof U?Y:t instanceof Date?vn:xn(t)?kn:Array.isArray(t)?An:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Sn:I)(n,t)}function bn(n,t){return n=+n,t=+t,function(e){return Math.round(n*(1-e)+t*e)}}function jn(n){return Math.abs(n=Math.round(n))>=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function E(n,t){if((e=(n=t?n.toExponential(t-1):n.toExponential()).indexOf("e"))<0)return null;var e,r=n.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+n.slice(e+1)]}function v(n){return n=E(Math.abs(n)),n?n[1]:NaN}function Pn(n,t){return function(e,r){for(var i=e.length,f=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),f.push(e.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return f.reverse().join(t)}}function zn(n){return function(t){return t.replace(/[0-9]/g,function(e){return n[+e]})}}var $n=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function D(n){if(!(t=$n.exec(n)))throw new Error("invalid format: "+n);var t;return new B({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}D.prototype=B.prototype;function B(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}B.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Fn(n){n:for(var t=n.length,e=1,r=-1,i;e<t;++e)switch(n[e]){case".":r=i=e;break;case"0":r===0&&(r=e),i=e;break;default:if(!+n[e])break n;r>0&&(r=0);break}return r>0?n.slice(0,r)+n.slice(i+1):n}var nn;function Rn(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1],f=i-(nn=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return f===a?r:f>a?r+new Array(f-a+1).join("0"):f>0?r.slice(0,f)+"."+r.slice(f):"0."+new Array(1-f).join("0")+E(n,Math.max(0,t+f-1))[0]}function Z(n,t){var e=E(n,t);if(!e)return n+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+Line truncated
|
|
||||||
//# sourceMappingURL=linear-WA_JRKe7.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"linear-WA_JRKe7.js","sources":["../../../node_modules/d3-array/src/ascending.js","../../../node_modules/d3-array/src/descending.js","../../../node_modules/d3-array/src/bisector.js","../../../node_modules/d3-array/src/number.js","../../../node_modules/d3-array/src/bisect.js","../../../node_modules/d3-array/src/ticks.js","../../../node_modules/d3-interpolate/src/numberArray.js","../../../node_modules/d3-interpolate/src/array.js","../../../node_modules/d3-interpolate/src/date.js","../../../node_modules/d3-interpolate/src/object.js","../../../node_modules/d3-interpolate/src/value.js","../../../node_modules/d3-interpolate/src/round.js","../../../node_modules/d3-format/src/formatDecimal.js","../../../node_modules/d3-format/src/exponent.js","../../../node_modules/d3-format/src/formatGroup.js","../../../node_modules/d3-format/src/formatNumerals.js","../../../node_modules/d3-format/src/formatSpecifier.js","../../../node_modules/d3-format/src/formatTrim.js","../../../node_modules/d3-format/src/formatPrefixAuto.js","../../../node_modules/d3-format/src/formatRounded.js","../../../node_modules/d3-format/src/formatTypes.js","../../../node_modules/d3-format/src/identity.js","../../../node_modules/d3-format/src/locale.js","../../../node_modules/d3-format/src/defaultLocale.js","../../../node_modules/d3-format/src/precisionFixed.js","../../../node_modules/d3-format/src/precisionPrefix.js","../../../node_modules/d3-format/src/precisionRound.js","../../../node_modules/d3-scale/src/constant.js","../../../node_modules/d3-scale/src/number.js","../../../node_modules/d3-scale/src/continuous.js","../../../node_modules/d3-scale/src/tickFormat.js","../../../node_modules/d3-scale/src/linear.js"],"sourcesContent":["export default function ascending(a, b) {\n return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;\n}\n","export default function descending(a, b) {\n return a == null || b == null ? NaN\n : b < a ? -1\n : b > a ? 1\n : b >= a ? 0\n : NaN;\n}\n","import ascending from \"./ascending.js\";\nimport descending from \"./descending.js\";\n\nexport default function bisector(f) {\n let compare1, compare2, delta;\n\n // If an accessor is specified, promote it to a comparator. In this case we\n // can test whether the search value is (self-) comparable. We can’t do this\n // for a comparator (except for specific, known comparators) because we can’t\n // tell if the comparator is symmetric, and an asymmetric comparator can’t be\n // used to test whether a single value is comparable.\n if (f.length !== 2) {\n compare1 = ascending;\n compare2 = (d, x) => ascending(f(d), x);\n delta = (d, x) => f(d) - x;\n } else {\n compare1 = f === ascending || f === descending ? f : zero;\n compare2 = f;\n delta = f;\n }\n\n function left(a, x, lo = 0, hi = a.length) {\n if (lo < hi) {\n if (compare1(x, x) !== 0) return hi;\n do {\n const mid = (lo + hi) >>> 1;\n if (compare2(a[mid], x) < 0) lo = mid + 1;\n else hi = mid;\n } while (lo < hi);\n }\n return lo;\n }\n\n function right(a, x, lo = 0, hi = a.length) {\n if (lo < hi) {\n if (compare1(x, x) !== 0) return hi;\n do {\n const mid = (lo + hi) >>> 1;\n if (compare2(a[mid], x) <= 0) lo = mid + 1;\n else hi = mid;\n } while (lo < hi);\n }\n return lo;\n }\n\n function center(a, x, lo = 0, hi = a.length) {\n const i = left(a, x, lo, hi - 1);\n return i > lo && delta(a[i - 1], x) > -delta(a[i], x) ? i - 1 : i;\n }\n\n return {left, center, right};\n}\n\nfunction zero() {\n return 0;\n}\n","export default function number(x) {\n return x === null ? NaN : +x;\n}\n\nexport function* numbers(values, valueof) {\n if (valueof === undefined) {\n for (let value of values) {\n if (value != null && (value = +value) >= value) {\n yield value;\n }\n }\n } else {\n let index = -1;\n for (let value of values) {\n if ((value = valueof(value, ++index, values)) != null && (value = +value) >= value) {\n yield value;\n }\n }\n }\n}\n","import ascending from \"./ascending.js\";\nimport bisector from \"./bisector.js\";\nimport number from \"./number.js\";\n\nconst ascendingBisect = bisector(ascending);\nexport const bisectRight = ascendingBisect.right;\nexport const bisectLeft = ascendingBisect.left;\nexport const bisectCenter = bisector(number).center;\nexport default bisectRight;\n","const e10 = Math.sqrt(50),\n e5 = Math.sqrt(10),\n e2 = Math.sqrt(2);\n\nfunction tickSpec(start, stop, count) {\n const step = (stop - start) / Math.max(0, count),\n power = Math.floor(Math.log10(step)),\n error = step / Math.pow(10, power),\n factor = error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1;\n let i1, i2, inc;\n if (power < 0) {\n inc = Math.pow(10, -power) / factor;\n i1 = Math.round(start * inc);\n i2 = Math.round(stop * inc);\n if (i1 / iLine truncated
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
const e={paste:"لصق",pasteAsPlaintext:"اللصق كنص عادي",pasteCharts:"لصق الرسوم البيانية",selectAll:"تحديد الكل",multiSelect:"إضافة عنصر للتحديد",moveCanvas:"نقل لوح الرسم",cut:"قص",copy:"نسخ",copyAsPng:"نسخ إلى الحافظة بصيغة PNG",copyAsSvg:"نسخ إلى الحافظة بصيغة SVG",copyText:"نسخ إلى الحافظة كنص",copySource:"",convertToCode:"",bringForward:"جلب للأمام",sendToBack:"أرسل للخلف",bringToFront:"أحضر للأمام",sendBackward:"أرسل للخلف",delete:"حذف",copyStyles:"نسخ الأنماط",pasteStyles:"لصق الأنماط",stroke:"الخط",background:"الخلفية",fill:"التعبئة",strokeWidth:"سُمك الخط",strokeStyle:"نمط الخط",strokeStyle_solid:"متصل",strokeStyle_dashed:"متقطع",strokeStyle_dotted:"منقط",sloppiness:"الإمالة",opacity:"الشفافية",textAlign:"محاذاة النص",edges:"الحواف",sharp:"حادة",round:"دائرية",arrowheads:"رؤوس الأسهم",arrowhead_none:"لا شيء",arrowhead_arrow:"سهم",arrowhead_bar:"شريط",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"مثلث",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"حجم الخط",fontFamily:"نوع الخط",addWatermark:'إضافة "مصنوعة بواسطة Excalidraw"',handDrawn:"رسم باليد",normal:"عادي",code:"رمز",small:"صغير",medium:"متوسط",large:"كبير",veryLarge:"كبير جدا",solid:"كامل",hachure:"خطوط",zigzag:"متعرج",crossHatch:"خطوط متقطعة",thin:"نحيف",bold:"داكن",left:"الـيسار",center:"وسط",right:"يمين",extraBold:"عريض",architect:"معماري",artist:"رسام",cartoonist:"كرتوني",fileTitle:"إسم الملف",colorPicker:"منتقي اللون",canvasColors:"تستخدم على القماش",canvasBackground:"خلفية اللوحة",drawingCanvas:"لوحة الرسم",layers:"الطبقات",actions:"الإجراءات",language:"اللغة",liveCollaboration:"التعاون المباشر...",duplicateSelection:"تكرار",untitled:"غير معنون",name:"الاسم",yourName:"اسمك",madeWithExcalidraw:"مصنوعة بواسطة Excalidraw",group:"تحديد مجموعة",ungroup:"إلغاء تحديد مجموعة",collaborators:"المتعاونون",showGrid:"إظهار الشبكة",addToLibrary:"أضف إلى المكتبة",removeFromLibrary:"حذف من المكتبة",libraryLoadingMessage:"جارٍ تحميل المكتبة…",libraries:"تصفح المكتبات",loadingScene:"جاري تحميل المشهد…",align:"محاذاة",alignTop:"محاذاة إلى اﻷعلى",alignBottom:"محاذاة إلى اﻷسفل",alignLeft:"محاذاة إلى اليسار",alignRight:"محاذاة إلى اليمين",centerVertically:"توسيط عمودي",centerHorizontally:"توسيط أفقي",distributeHorizontally:"التوزيع الأفقي",distributeVertically:"التوزيع عمودياً",flipHorizontal:"قلب عامودي",flipVertical:"قلب أفقي",viewMode:"نمط العرض",share:"مشاركة",showStroke:"إظهار منتقي لون الخط",showBackground:"إظهار منتقي لون الخلفية",toggleTheme:"غير النمط",personalLib:"المكتبة الشخصية",excalidrawLib:"مكتبتنا",decreaseFontSize:"تصغير حجم الخط",increaseFontSize:"تكبير حجم الخط",unbindText:"فك ربط النص",bindText:"ربط النص بالحاوية",createContainerFromText:"نص مغلف في حاوية",link:{edit:"تعديل الرابط",editEmbed:"تحرير الرابط وإدراجه",create:"إنشاء رابط",createEmbed:"إنشاء رابط و إدراجه",label:"رابط",labelEmbed:"رابط و إدراج",empty:"لم يتم تعيين رابط"},lineEditor:{edit:"تحرير السطر",exit:"الخروج من المُحرر"},elementLock:{lock:"قفل",unlock:"فتح",lockAll:"قفل الكل",unlockAll:"فتح الكل"},statusPublished:"نُشر",sidebarLock:"إبقاء الشريط الجانبي مفتوح",selectAllElementsInFrame:"تحديد جميع العناصر في الإطار",removeAllElementsFromFrame:"إزالة جميع العناصر من الإطار",eyeDropper:"اختيار اللون من القماش",textToDiagram:"",prompt:""},o={noItems:"لا توجد عناصر أضيفت بعد...",hint_emptyLibrary:"حدد عنصر على القماش لإضافته هنا، أو تثبيت مكتبة من المستودع العام أدناه.",hint_emptyPrivateLibrary:"حدد عنصر على القماش لإضافته هنا."},t={clearReset:"إعادة تعيين اللوحة",exportJSON:"صدر الملف",exportImage:"تصدير الصورة...",export:"حفظ إلى...",copyToClipboard:"نسخ إلى الحافظة",save:"احفظ للملف الحالي",saveAs:"حLine truncated
|
|
||||||
|
|
||||||
(إذا كنت ترغب في الاحتفاظ برسمك المخزن داخليا، ببساطة أغلق علامة تبويب المتصفح بدلاً من ذلك.)`,errorAddingToLibrary:"تعذر إضافة العنصر للمكتبة",errorRemovingFromLibrary:"تعذر إزالة العنصر من المكتبة",confirmAddLibrary:"هذا سيضيف {{numShapes}} شكل إلى مكتبتك. هل أنت متأكد؟",imageDoesNotContainScene:"يبدو أن هذه الصورة لا تحتوي على أي بيانات مشهد. هل قمت بتمكين تضمين المشهد أثناء التصدير؟",cannotRestoreFromImage:"تعذر استعادة المشهد من ملف الصورة",invalidSceneUrl:"تعذر استيراد المشهد من عنوان URL المتوفر. إما أنها مشوهة، أو لا تحتوي على بيانات Excalidraw JSON صالحة.",resetLibrary:"هذا سوف يمسح مكتبتك. هل أنت متأكد؟",removeItemsFromsLibrary:"حذف {{count}} عنصر (عناصر) من المكتبة؟",invalidEncryptionKey:"مفتاح التشفير يجب أن يكون من 22 حرفاً. التعاون المباشر معطل.",collabOfflineWarning:`لا يوجد اتصال بالانترنت.
|
|
||||||
لن يتم حفظ التغييرات التي قمت بها!`},a={unsupportedFileType:"نوع الملف غير مدعوم.",imageInsertError:"تعذر إدراج الصورة. حاول مرة أخرى لاحقاً...",fileTooBig:"الملف كبير جداً. الحد الأقصى المسموح به للحجم هو {{maxSize}}.",svgImageInsertError:"تعذر إدراج صورة SVG. يبدو أن ترميز SVG غير صحيح.",failedToFetchImage:"",invalidSVGString:"SVG غير صالح.",cannotResolveCollabServer:"تعذر الاتصال بخادم التعاون. الرجاء إعادة تحميل الصفحة والمحاولة مرة أخرى.",importLibraryError:"تعذر تحميل المكتبة",collabSaveFailed:"تعذر الحفظ في قاعدة البيانات. إذا استمرت المشاكل، يفضل أن تحفظ ملفك محليا كي لا تفقد عملك.",collabSaveFailed_sizeExceeded:"تعذر الحفظ في قاعدة البيانات، يبدو أن القماش كبير للغاية، يفضّل حفظ الملف محليا كي لا تفقد عملك.",imageToolNotSupported:"",brave_measure_text_error:{line1:"يبدو أنك تستخدم متصفح Brave مع إعداد <bold>حظر صارم لتتبع البصمة</bold>.",line2:"قد يؤدي هذا إلى كسر <bold>عناصر النص</bold> في الرسومات الخاصة بك.",line3:"من المستحسن إلغاء تفعيل هذا الإعداد. يمكنك اتباع <link>هذه الخطوات</link> لفعل ذلك.",line4:"إذا لم يصلح تعطيل هذا الإعداد طريقة عرض النصوص، الرجاء كتابة <issueLink>بلاغ</issueLink> على حسابنا في GitHub، أو راسلنا على <discordLink>Discord</discordLink>"},libraryElementTypeError:{embeddable:"لا يمكن إضافة العناصر القابلة للتضمين في المكتبة.",iframe:"",image:"سوف يتم دعم إضافة صور إلى المكتبة قريباً!"},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},i={selection:"تحديد",image:"إدراج صورة",rectangle:"مستطيل",diamond:"مضلع",ellipse:"دائرة",arrow:"سهم",line:"خط",freedraw:"رسم",text:"نص",library:"مكتبة",lock:"الحفاظ على أداة التحديد نشطة بعد الرسم",penMode:"وضع القلم - امنع اللمس",link:"إضافة/تحديث الرابط للشكل المحدد",eraser:"ممحاة",frame:"أداة الإطار",magicframe:"",embeddable:"تضمين ويب",laser:"مؤشر ليزر",hand:"يد (أداة الإزاحة)",extraTools:"المزيد من أﻷدوات",mermaidToExcalidraw:"",magicSettings:""},l={canvasActions:"إجراءات اللوحة",selectedShapeActions:"إجراءات الشكل المحدد",shapes:"الأشكال"},n={canvasPanning:"لتحريك القماش، اضغط على عجلة الفأرة أو مفتاح المسافة أثناء السحب، أو استخدم أداة اليد",linearElement:"انقر لبدء نقاط متعددة، اسحب لخط واحد",freeDraw:"انقر واسحب، افرج عند الانتهاء",text:"نصيحة: يمكنك أيضًا إضافة نص بالنقر المزدوج في أي مكان بأداة الاختيار",embeddable:"اضغط مع السحب لإنشاء موقع ويب مضمّن",text_selected:"انقر نقراً مزدوجاً أو اضغط ادخال لتعديل النص",text_editing:"اضغط على Esc أو (Ctrl أو Cmd) + Enter لإنهاء التعديل",linearElementMulti:"انقر فوق النقطة الأخيرة أو اضغط على Esc أو Enter للإنهاء",lockAngle:"يمكنك تقييد الزاوية بالضغط على SHIFT",resize:`يمكنك تقييد النسب بالضغط على SHIFT أثناء تغيير الحجم،
|
|
||||||
اضغط على ALT لتغيير الحجم من المركز`,resizeImage:`يمكنك تغيير الحجم بحرية بالضغط بأستمرار على SHIFT،
|
|
||||||
اضغط بأستمرار على ALT أيضا لتغيير الحجم من المركز`,rotate:"يمكنك تقييد الزوايا من خلال الضغط على SHIFT أثناء الدوران",lineEditor_info:"اضغط على مفتاح (Ctrl أو Cmd) و انقر بشكل مزدوج، أو اضغط على مفتاحي (Ctrl أو Cmd) و (Enter) لتعديل النقاط",lineEditor_pointSelected:"اضغط على حذف لإزالة النقطة (النِّقَاط)، Ctrl/Cmd+D للتكرار، أو اسحب للانتقال",lineEditor_nothingSelected:`اختر نقطة لتعديلها (اضغط على SHIFT لتحديد عدة نِقَاط),
|
|
||||||
أو اضغط على ALT و انقر بالفأرة لإضافة نِقَاط جديدة`,placeImage:"انقر لوضع الصورة، أو انقر واسحب لتعيين حجمها يدوياً",publishLibrary:"نشر مكتبتك",bindTextToElement:"اضغط على إدخال لإضافة نص",deepBoxSelect:"اضغط على Ctrl\\Cmd للاختيار العميق، ولمنع السحب",eraserRevert:"اضغط على Alt لاستعادة العناصر المعلَّمة للحذف",firefox_clipboard_write:'يمكن على الأرجح تمكين هذه الميزة عن طريق تعيين علم "dom.events.asyncClipboard.clipboardItem" إلى "true". لتغيير أعلام المتصفح في Firefox، قم بزيارة صفحة "about:config".',disableSnapping:"اضغط على Ctrl أو Cmd لتعطيل الالتقاط"},s={cannotShowPreview:"تعذر عرض المعاينة",canvasTooBig:"قد تكون اللوحة كبيرة جداً.",canvasTooBigTip:"نصيحة: حاول تحريك العناصر البعيدة بشكل أقرب قليلاً."},d={headingMain:"حدث خطأ. حاول <button>تحديث الصفحة</button>.",clearCanvasMessage:"إذا لم تعمل إعادة التحميل، حاول مرة أخرى ",clearCanvasCaveat:" هذا سيؤدي إلى فقدان العمل ",trackedToSentry:"تم تتبع الخطأ في المعرف {{eventId}} على نظامنا.",openIssueMessage:"حرصنا على عدم إضافة معلومات المشهد في بلاغ الخطأ. في حال كون مشهدك لا يحمل أي معلومات خاصة نرجو المتابعة على <button>نظام تتبع الأخطاء</button>. نرجو إضافة المعلومات أدناه بنسخها ولصقها في محتوى البلاغ على GitHub.",sceneContent:"محتوى المشهد:"},c={desc_intro:"يمكنك دعوة الآخرين لمشاركتك نفس الجلسة التي تعمل عليها.",desc_privacy:"لا تقلق، الجلسة تستخدم التشفير من النهاية إلى النهاية، لذلك فإن أي شيء ترسمه سيبقى خاصاً. لن يتمكن حتى الخادوم الخاص بنا من رؤية ما توصلت إليه.",button_startSession:"بدء الجلسة",button_stopSession:"إيقاف الجلسة",desc_inProgressIntro:"تجري الآن المشاركة الحية.",desc_shareLink:"شارك هذا الرابط مع أي شخص تريده أن يشاركك الجلسة:",desc_exitSession:"إيقاف الجلسة سيؤدي إلى قطع الاتصال الخاص بك من الغرفة، ولكن ستتمكن من مواصلة العمل مع المشهد، محليا. لاحظ أن هذا لن يؤثر على الأشخاص الآخرين، و سيظلون قادرين على التعاون في إصدارهم.",shareTitle:"الانضمام إلى جلسة تعاون حية على Excalidraw"},m={title:"خطأ"},b={disk_title:"حفظ الملف للجهاز",disk_details:"تصدير بيانات المشهد إلى ملف يمكنك الاستيراد منه لاحقاً.",disk_button:"إحفظ لملف",link_title:"رابط قابل للمشاركة",link_details:"صدر الملف للمشاهدة فقط.",link_button:"التصدير كرابط",excalidrawplus_description:"حفظ المشهد إلى مساحة العمل +Excalidraw الخاصة بك.",excalidrawplus_button:"تصدير",excalidrawplus_exportError:"تعذر التصدير إلى +Excalidraw في الوقت الحالي..."},p={blog:"اقرأ مدونتنا",click:"انقر",deepSelect:"تحديد عميق",deepBoxSelect:"تحديد عميق داخل المربع، ومنع السحب",curvedArrow:"سهم مائل",curvedLine:"خط مائل",documentation:"دليل الاستخدام",doubleClick:"انقر مرتين",drag:"اسحب",editor:"المحرر",editLineArrowPoints:"تحرير سطر/نقاط سهم",editText:"تعديل النص / إضافة تسمية",github:"عثرت على مشكلة؟ إرسال",howto:"اتبع التعليمات",or:"أو",preventBinding:"منع ارتبط السهم",tools:"الأدوات",shortcuts:"اختصارات لوحة المفاتيح",textFinish:"إنهاء التعديل (محرر النص)",textNewLine:"أضف سطر جديد (محرر نص)",title:"المساعدة",view:"عرض",zoomToFit:"تكبير للملائمة",zoomToSelection:"تكبير للعنصر المحدد",toggleElementLock:"إغلاق/فتح المحدد",movePageUpDown:"نقل الصفحة أعلى/أسفل",movePageLeftRight:"نقل الصفحة يسار/يمين"},g={title:"مسح اللوحة"},u={title:"نشر المكتبة",itemName:"إسم العنصر",authorName:"إسم المؤلف",githubUsername:"اسم المستخدم في جيت هب",twitterUsername:"اسم المستخدم في تويتر",libraryName:"اسم المكتبة",libraryDesc:"وصف المكتبة",website:"الموقع",placeholder:{authorName:"اسمك أو
Line truncated
|
|
||||||
سيزيد حجم الملف المصدر.`},title:{exportToPng:"تصدير بصيغة PNG",exportToSvg:"تصدير بصيغة SVG",copyPngToClipboard:"نسخ الـ PNG إلى الحافظة"},button:{exportToPng:"PNG",exportToSvg:"SVG",copyPngToClipboard:"نسخ إلى الحافظة"}},v={tooltip:"رسوماتك مشفرة من النهاية إلى النهاية حتى أن خوادم Excalidraw لن تراها أبدا.",link:"مشاركة المدونة في التشفير من النهاية إلى النهاية في Excalidraw"},x={angle:"الزاوية",element:"عنصر",elements:"العناصر",height:"الارتفاع",scene:"المشهد",selected:"المحدد",storage:"التخزين",title:"إحصائيات للمهووسين",total:"المجموع",version:"الإصدار",versionCopy:"انقر للنسخ",versionNotAvailable:"الإصدار غير متوفر",width:"العرض"},w={addedToLibrary:"تمت الاضافة الى المكتبة!",copyStyles:"نسخت الانماط.",copyToClipboard:"نسخ إلى الحافظة.",copyToClipboardAsPng:`تم نسخ {{exportSelection}} إلى الحافظة بصيغة PNG
|
|
||||||
({{exportColorScheme}})`,fileSaved:"تم حفظ الملف.",fileSavedToFilename:"حفظ باسم {filename}",canvas:"لوحة الرسم",selection:"العنصر المحدد",pasteAsSingleElement:`استخدم {{shortcut}} للصق كعنصر واحد،
|
|
||||||
أو لصق في محرر نص موجود`,unableToEmbed:"تضمين هذا الرابط غير مسموح حاليًا. افتح بلاغاً على GitHub لطلب عنوان Url القائمة البيضاء",unrecognizedLinkFormat:"الرابط الذي ضمنته لا يتطابق مع التنسيق المتوقع. الرجاء محاولة لصق النص 'المضمن' المُزوَد من موقع المصدر"},k={transparent:"شفاف",black:"أسود",white:"أبيض",red:"أحمر",pink:"وردي",grape:"عنبي",violet:"بنفسجي",gray:"رمادي",blue:"أزرق",cyan:"سماوي",teal:"أزرق مخضر",green:"أخضر",yellow:"أصفر",orange:"برتقالي",bronze:"برونزي"},T={app:{center_heading:"جميع بياناتك محفوظة محليا في المتصفح الخاص بك.",center_heading_plus:"هل تريد الذهاب إلى Excalidraw+ بدلاً من ذلك؟",menuHint:"التصدير والتفضيلات واللغات ..."},defaults:{menuHint:"التصدير والتفضيلات وغيرها...",center_heading:"الرسم البياني التصويري. بشكل مبسط.",toolbarHint:"اختر أداة و ابدأ الرسم!",helpHint:"الاختصارات و المساعدة"}},E={mostUsedCustomColors:"الألوان المخصصة الأكثر استخداما",colors:"الألوان",shades:"الدرجات",hexCode:"رمز Hex",noShades:"لا تتوفر درجات لهذا اللون"},C={action:{exportToImage:{title:"تصدير كصورة",button:"تصدير كصورة",description:"تصدير بيانات المشهد إلى ملف يمكنك الاستيراد منه لاحقاً."},saveToDisk:{title:"حفظ الملف للجهاز",button:"حفظ الملف للجهاز",description:"تصدير بيانات المشهد إلى ملف يمكنك الاستيراد منه لاحقاً."},excalidrawPlus:{title:"Excalidraw+",button:"تصدير إلى Excalidraw+",description:"حفظ المشهد إلى مساحة العمل +Excalidraw الخاصة بك."}},modal:{loadFromFile:{title:"تحميل من ملف",button:"تحميل من ملف",description:"سيتم التحميل من الملف <bold>استبدال المحتوى الموجود</bold>.<br></br>يمكنك النسخ الاحتياطي لرسمك أولاً باستخدام أحد الخيارات أدناه."},shareableLink:{title:"تحميل من رابط",button:"استبدال محتواي",description:"سيتسبب تحميل رسمة خارجية <bold>باستبدال محتواك الموجود حالياً</bold>.<br></br>بإمكانك إجراء النسخ الاحتياطي لرسمتك الحالية باستخدام أحد الخيارات أدناه."}}},_={title:"",button:"",description:"",syntax:"",preview:""},L={labels:e,library:o,buttons:t,alerts:r,errors:a,toolBar:i,headings:l,hints:n,canvasError:s,errorSplash:d,roomDialog:c,errorDialog:m,exportDialog:b,helpDialog:p,clearCanvasDialog:g,publishDialog:u,publishSuccessDialog:h,confirmDialog:S,imageExportDialog:y,encrypted:v,stats:x,toast:w,colors:k,welcomeScreen:T,colorPicker:E,overwriteConfirm:C,mermaid:_};export{r as alerts,t as buttons,s as canvasError,g as clearCanvasDialog,E as colorPicker,k as colors,S as confirmDialog,L as default,v as encrypted,m as errorDialog,d as errorSplash,a as errors,b as exportDialog,l as headings,p as helpDialog,n as hints,y as imageExportDialog,e as labels,o as library,_ as mermaid,C as overwriteConfirm,u as publishDialog,h as publishSuccessDialog,c as roomDialog,x as stats,w as toast,i as toolBar,T as welcomeScreen};
|
|
||||||
//# sourceMappingURL=ar-SA.json-SV43LhYq.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"ar-SA.json-SV43LhYq.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
const e={paste:"Yapışdır",pasteAsPlaintext:"Düz mətn kimi yapışdırın",pasteCharts:"Diaqramları yapışdırın",selectAll:"Hamısını seç",multiSelect:"Seçimə element əlavə edin",moveCanvas:"Kanvası köçürün",cut:"Kəs",copy:"Kopyala",copyAsPng:"PNG olaraq panoya kopyala",copyAsSvg:"SVG olaraq panoya kopyala",copyText:"Mətn olaraq panoya kopyala",copySource:"",convertToCode:"",bringForward:"Önə daşı",sendToBack:"Geriyə göndərin",bringToFront:"Önə gətirin",sendBackward:"Geriyə göndərin",delete:"Sil",copyStyles:"Stilləri kopyalayın",pasteStyles:"Stilləri yapışdırın",stroke:"Strok rəngi",background:"Arxa fon",fill:"Doldur",strokeWidth:"Strok eni",strokeStyle:"Strok stili",strokeStyle_solid:"Solid",strokeStyle_dashed:"Kəsik",strokeStyle_dotted:"Nöqtəli",sloppiness:"Səliqəsizlik",opacity:"Şəffaflıq",textAlign:"Mətni uyğunlaşdır",edges:"Kənarlar",sharp:"Kəskin",round:"Dəyirmi",arrowheads:"Ox ucları",arrowhead_none:"Heç biri",arrowhead_arrow:"Ox",arrowhead_bar:"Çubuq",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Üçbucaq",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Şrift ölçüsü",fontFamily:"Şrift qrupu",addWatermark:'"Made with Excalidraw" əlavə et',handDrawn:"Əllə çəkilmiş",normal:"Normal",code:"Kod",small:"Kiçik",medium:"Orta",large:"Böyük",veryLarge:"Çox böyük",solid:"Solid",hachure:"Ştrix",zigzag:"Ziqzaq",crossHatch:"Çarpaz dəlik",thin:"İncə",bold:"Qalın",left:"Sol",center:"Mərkəz",right:"Sağ",extraBold:"Ekstra qalın",architect:"Memar",artist:"Rəssam",cartoonist:"Karikaturaçı",fileTitle:"Fayl adı",colorPicker:"Rəng seçən",canvasColors:"Kanvas üzərində istifadə olunur",canvasBackground:"Kanvas arxa fonu",drawingCanvas:"Kanvas çəkmək",layers:"Qatlar",actions:"Hərəkətlər",language:"Dil",liveCollaboration:"Canlı əməkdaşlıq...",duplicateSelection:"Dublikat",untitled:"Başlıqsız",name:"Ad",yourName:"Adınız",madeWithExcalidraw:"Excalidraw ilə hazırlanmışdır",group:"Qrup şəklində seçim",ungroup:"Qrupsuz seçim",collaborators:"",showGrid:"",addToLibrary:"",removeFromLibrary:"",libraryLoadingMessage:"",libraries:"",loadingScene:"",align:"",alignTop:"",alignBottom:"",alignLeft:"",alignRight:"",centerVertically:"",centerHorizontally:"",distributeHorizontally:"",distributeVertically:"",flipHorizontal:"",flipVertical:"",viewMode:"",share:"",showStroke:"",showBackground:"",toggleTheme:"",personalLib:"",excalidrawLib:"",decreaseFontSize:"",increaseFontSize:"",unbindText:"",bindText:"",createContainerFromText:"",link:{edit:"",editEmbed:"",create:"",createEmbed:"",label:"",labelEmbed:"",empty:""},lineEditor:{edit:"",exit:""},elementLock:{lock:"",unlock:"",lockAll:"",unlockAll:""},statusPublished:"",sidebarLock:"",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"",textToDiagram:"",prompt:""},a={noItems:"",hint_emptyLibrary:"",hint_emptyPrivateLibrary:""},o={clearReset:"",exportJSON:"",exportImage:"",export:"",copyToClipboard:"",save:"",saveAs:"",load:"",getShareableLink:"",close:"",selectLanguage:"",scrollBackToContent:"",zoomIn:"",zoomOut:"",resetZoom:"",menu:"",done:"",edit:"",undo:"",redo:"",resetLibrary:"",createNewRoom:"",fullScreen:"",darkMode:"",lightMode:"",zenMode:"",objectsSnapMode:"",exitZenMode:"",cancel:"",clear:"",remove:"",embed:"",publishLibrary:"",submit:"",confirm:"",embeddableInteractionButton:""},r={clearReset:"",couldNotCreateShareableLink:"",couldNotCreateShareableLinkTooBig:"",couldNotLoadInvalidFile:"",importBackendFailed:"",cannotExportEmptyCanvas:"",couldNotCopyToClipboard:"",decryptFailed:"",uploadedSecurly:"",loadSceneOverridePrompt:"",collabStopOverridePrompt:"",errorAddingToLibrary:"",errorRemovingFromLibrary:"",confirmAddLibrary:"",imageDoesNotContainScene:"",cannotRestoreFromImage:"",invalidSceneUrl:"",resetLibrary:"",removeItemsFromsLibrary:"",invalidEncryptionKey:"",collabOfflineWarning:""},t={unsupportedFileType:"",imageInsertError:"",fileTooBig:"",svgImageInsertError:"",failedToFetchImage:"",invalidSVGString:"",cannotResolveCollabServer:"",importLibraryError:"",collabSaveFailed:"",collabSaveFailed_sizeExceeded:"",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},i={selection:"",image:"",rectangle:"",diamond:"",ellipse:"",arrow:"",line:"",freedraw:"",text:"",library:"",lock:"",penMode:"",link:"",eraser:"",frame:"",magicframe:"",embeddable:"",laser:"",hand:"",extraTools:"",mermaidToExcalidraw:"",magicSettings:""},l={canvasActions:"",selectedShapeActions:"",shapes:""},n={canvasPanning:"",linearElement:"",freeDraw:"",text:"",embeddable:"",text_selected:"",text_editing:"",linearElementMulti:"",lockAngle:"",resize:"",resizeImage:"",rotate:"",lineEditor_info:"",lineEditor_pointSelected:"",lineEditor_nothingSelLine truncated
|
|
||||||
//# sourceMappingURL=az-AZ.json-oLcB2OJI.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"az-AZ.json-oLcB2OJI.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
const e={paste:"Постави",pasteAsPlaintext:"Постави като обикновен текст",pasteCharts:"Постави графики",selectAll:"Маркирай всичко",multiSelect:"Добави елемент към селекция",moveCanvas:"Премести платно",cut:"Изрежи",copy:"Копирай",copyAsPng:"Копиране в клипборда",copyAsSvg:"Копирано в клипборда като SVG",copyText:"",copySource:"",convertToCode:"",bringForward:"Преместване напред",sendToBack:"Изнасяне назад",bringToFront:"Изнасяне отпред",sendBackward:"Изпрати отзад",delete:"Изтрий",copyStyles:"Копирайте стилове",pasteStyles:"Постави стилове",stroke:"Щрих",background:"Фон",fill:"Наситеност",strokeWidth:"Ширина на щриха",strokeStyle:"Стил на линия",strokeStyle_solid:"Плътен",strokeStyle_dashed:"Пунктир",strokeStyle_dotted:"Пунктирано",sloppiness:"Небрежност",opacity:"Прозрачност",textAlign:"Подравняване на текста",edges:"Крайща",sharp:"Остър",round:"Закръглено",arrowheads:"Стрелки",arrowhead_none:"Без",arrowhead_arrow:"Стрелка",arrowhead_bar:"Връх на стрелката",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Триъгълник",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Размер на шрифта",fontFamily:"Семейство шрифтове",addWatermark:'Добави "Направено с Excalidraw"',handDrawn:"Нарисувано на ръка",normal:"Нормален",code:"Код",small:"Малък",medium:"Среден",large:"Голям",veryLarge:"Много голям",solid:"Солиден",hachure:"Хералдика",zigzag:"Зигзаг",crossHatch:"Двойно-пресечено",thin:"Тънък",bold:"Ясно очертан",left:"Ляво",center:"Център",right:"Дясно",extraBold:"Много ясно очертан",architect:"Архитект",artist:"Художник",cartoonist:"Карикатурист",fileTitle:"Име на файл",colorPicker:"Избор на цвят",canvasColors:"Използван на платно",canvasBackground:"Фон на платно",drawingCanvas:"Платно за рисуване",layers:"Слоеве",actions:"Действия",language:"Език",liveCollaboration:"",duplicateSelection:"Дублирай",untitled:"Неозаглавено",name:"Име",yourName:"Вашето име",madeWithExcalidraw:"Направено с Excalidraw",group:"Групирай селекцията",ungroup:"Спри групирането на селекцията",collaborators:"Сътрудници",showGrid:"Показване на мрежа",addToLibrary:"Добавяне към библиотеката",removeFromLibrary:"Премахване от библиотеката",libraryLoadingMessage:"Зареждане на библиотеката…",libraries:"Разглеждане на библиотеките",loadingScene:"Зареждане на сцена…",align:"Подравняване",alignTop:"Подравняване отгоре",alignBottom:"Подравняване отдолу",alignLeft:"Подравняване отляво",alignRight:"Подравняване отдясно",centerVertically:"Центрирай вертикално",centerHorizontally:"Центрирай хоризонтално",distributeHorizontally:"Разпредели хоризонтално",distributeVertically:"Разпредели вертикално",flipHorizontal:"Хоризонтално обръщане",flipVertical:"Вертикално обръщане",viewMode:"Изглед",share:"Сподели",showStroke:"",showBackground:"",toggleTheme:"Включи тема",personalLib:"Лична Библиотека",excalidrawLib:"Excalidraw Библиотека",decreaseFontSize:"Намали размера на шрифта",increaseFontSize:"Увеличи размера на шрифта",unbindText:"",bindText:"",createContainerFromText:"",link:{edit:"Редактирай линк",editEmbed:"",create:"",createEmbed:"",label:"Линк",labelEmbed:"",empty:""},lineEditor:{edit:"",exit:""},elementLock:{lock:"Заключи",unlock:"Отключи",lockAll:"Заключи всички",unlockAll:"Отключи всички"},statusPublished:"Публикувани",sidebarLock:"",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"Избери цвят от платното",textToDiagram:"",prompt:""},o={noItems:"Няма добавени неща все още...",hint_emptyLibrary:"",hint_emptyPrivateLibrary:""},t={clearReset:"Нулиране на платно",exportJSON:"",exportImage:"",export:"Запази на...",copyToClipboard:"КопиранLine truncated
|
|
||||||
|
|
||||||
(Ако искате да продължите с локалната рисунка, просто затворете таба на браузъра.)`,errorAddingToLibrary:"Не можем да заредим от библиотеката",errorRemovingFromLibrary:"Не можем да премахнем елемент от библиотеката",confirmAddLibrary:"Ще се добавят {{numShapes}} фигура(и) във вашата библиотека. Сигурни ли сте?",imageDoesNotContainScene:"",cannotRestoreFromImage:"Не може да бъде възстановена сцена от този файл",invalidSceneUrl:"",resetLibrary:"",removeItemsFromsLibrary:"Изтрий {{count}} елемент(а) от библиотеката?",invalidEncryptionKey:"",collabOfflineWarning:""},a={unsupportedFileType:"Този файлов формат не се поддържа.",imageInsertError:"",fileTooBig:"Файлът е твърде голям. Максималния допустим размер е {{maxSize}}.",svgImageInsertError:"",failedToFetchImage:"",invalidSVGString:"Невалиден SVG.",cannotResolveCollabServer:"",importLibraryError:"Не можем да заредим библиотеката",collabSaveFailed:"",collabSaveFailed_sizeExceeded:"",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"Силно препоръчваме да изключите тази настройка. Можете да следвате <link>тези стъпки</link> за това как да го направите.",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},i={selection:"Селекция",image:"Вмъкване на изображение",rectangle:"Правоъгълник",diamond:"Диамант",ellipse:"Елипс",arrow:"Стрелка",line:"Линия",freedraw:"Рисуване",text:"Текст",library:"Библиотека",lock:"Поддържайте избрания инструмент активен след рисуване",penMode:"",link:"",eraser:"Гума",frame:"",magicframe:"",embeddable:"",laser:"",hand:"",extraTools:"Още инструменти",mermaidToExcalidraw:"",magicSettings:""},n={canvasActions:"Действия по платното",selectedShapeActions:"Избрани действия",shapes:"Фигури"},l={canvasPanning:"",linearElement:"Кликнете, за да стартирате няколко точки, плъзнете за една линия",freeDraw:"Натиснете и влачете, пуснете като сте готови",text:"Подсказка: Можете също да добавите текст като натиснете някъде два път с инструмента за селекция",embeddable:"",text_selected:"",text_editing:"",linearElementMulti:"Кликнете върху последната точка или натиснете Escape или Enter, за да завършите",lockAngle:"Можете да ограничите ъгъла, като задържите SHIFT",resize:`Може да ограничите при преоразмеряване като задържите SHIFT,
|
|
||||||
задръжте ALT за преоразмерите през центъра`,resizeImage:"",rotate:"Можете да ограничите ъглите, като държите SHIFT, докато се въртите",lineEditor_info:"",lineEditor_pointSelected:"Натиснете Delete за да изтриете точка(и), CtrlOrCmd+D за дуплициране, или извлачете за да преместите",lineEditor_nothingSelected:"",placeImage:"",publishLibrary:"",bindTextToElement:"Натиснете Enter, за да добавите",deepBoxSelect:"",eraserRevert:"",firefox_clipboard_write:"",disableSnapping:""},s={cannotShowPreview:"Невъзможност за показване на preview",canvasTooBig:"Платното е твърде голямо.",canvasTooBigTip:"Подсказка: пробвайте да приближите далечните елементи по-близко."},c={headingMain:"Среща грешка. Опитайте <button>презареждане на страницата.</button>",clearCanvasMessage:"Ако презареждането не работи, опитайте <button>изчистване на платното.</button>",clearCanvasCaveat:" Това ще доведе до загуба на работа ",trackedToSentry:"Грешката с идентификатор {{eventId}} беше проследен в нашата система.",openIssueMessage:"Бяхме много предпазливи да не включите информацията за вашата сцена при грешката. Ако сцената ви не е частна, моля, помислете за последващи действия на нашата <button>тракер за грешки.</button> Моля, включете информация по-долу, като я копирате и добавите в GitHub.",sceneContent:"Съдържание на сцената:"},d={desc_intro:"Можете да поканите хора на текущата си сцена да си сътрудничат с вас.",desc_privacy:"Не се притеснявайте, сесията използва криптиране от край до край, така че каквото нарисувате ще остане частно. Дори нашият сървър няма да може да види какво предлагате.",button_startSession:"Стартирайте сесията",button_stopSession:"Стоп на сесията",desc_inProgressIntro:"Сесията за сътрудничество на живо е в ход.",desc_shareLink:"Споделете тази връзка с всеки, с когото искате да си сътрудничите:",desc_exitSession:"Спирането на сесията ще ви изключи от стаята, но ще можете да продължите да работите със сцената, локално. Имайте предвид, че това няма да засегне други хора и те все още ще могат да си сътрудничат с тяхната версия.",shareTitle:""},m={title:"Грешка"},p={disk_title:"",disk_details:"",disk_button:"",link_title:"",link_details:"",link_button:"",excalidrawplus_description:"",excalidrawplus_button:"Експорт",excalidrawplus_exportError:""},b={blog:"Прочетете нашия блог",click:"клик",deepSelect:"",deepBoxSelect:"",curvedArrow:"Извита стрелка",curvedLine:"Извита линия",documentation:"Документация",doubleClick:"двойно-щракване",drag:"плъзнете",editor:"Редактор",editLineArrowPoints:"",editText:"",github:"Намерихте проблем? Изпратете",howto:"Следвайте нашите ръководства",or:"или",preventBinding:"Спри прилепяне на стрелките",tools:"Инструменти",shortcuts:"Клавиши за бърз достъп",textFinish:"Завърши редактиране (текстов редактор)",textNewLine:"Добави нова линия (текстов редактор)",title:"Помощ",view:"Преглед",zoomToFit:"Приближи докато се виждат всички елементи",zoomToSelection:"Приближи селекцията",toggleElementLock:"Заключи/Отключи селекция",movePageUpDown:"Премести страница нагоре/надолу",movePageLeftRight:"Премести страница наляво/надясно"},g={title:"Изчисти платното"},u={title:"Публикувай библиотека",itemName:"Име",authorName:"Авторско име",githubUsername:"GitHub потребителско име",twitterUsername:"Twitter потребителско име",libraryName:"Име на библиотеката",libraryDesc:"Описание н
Line truncated
|
|
||||||
({{exportColorScheme}})`,fileSaved:"Файлът е запазен.",fileSavedToFilename:"Запазен към {filename}",canvas:"платно",selection:"селекция",pasteAsSingleElement:"",unableToEmbed:"",unrecognizedLinkFormat:""},k={transparent:"Прозрачен",black:"Черен",white:"Бял",red:"Червен",pink:"Розов",grape:"Грозде",violet:"Виолетово",gray:"Сив",blue:"Син",cyan:"Синьозелено",teal:"Тъмно синьо-зелено",green:"Зелено",yellow:"Жълто",orange:"Оранжево",bronze:"Бронзово"},T={app:{center_heading:"Всичките Ви данни са запазени локално в браузъра Ви.",center_heading_plus:"",menuHint:"Експорт, предпочитания, езици, ..."},defaults:{menuHint:"Експорт, предпочитания, и още...",center_heading:"Диаграми. Направени. Просто.",toolbarHint:"Изберете инструмент & Започнете да рисувате!",helpHint:"Преки пътища & помощ"}},_={mostUsedCustomColors:"Най-често използвани цветове",colors:"Цветове",shades:"Нюанси",hexCode:"Шестнадесетичен код",noShades:""},E={action:{exportToImage:{title:"Изнеси като изображение",button:"Изнеси като изображение",description:""},saveToDisk:{title:"Запази към диск",button:"Запази към диск",description:""},excalidrawPlus:{title:"Excalidraw+",button:"Експортирай към Excalidraw+",description:"Запази сцената към Excalidraw+ работното място."}},modal:{loadFromFile:{title:"Зареди от файл",button:"Зареди от файл",description:""},shareableLink:{title:"Зареди от линк",button:"Замени моето съдържание",description:""}}},L={title:"",button:"",description:"",syntax:"",preview:""},C={labels:e,library:o,buttons:t,alerts:r,errors:a,toolBar:i,headings:n,hints:l,canvasError:s,errorSplash:c,roomDialog:d,errorDialog:m,exportDialog:p,helpDialog:b,clearCanvasDialog:g,publishDialog:u,publishSuccessDialog:h,confirmDialog:y,imageExportDialog:S,encrypted:v,stats:w,toast:x,colors:k,welcomeScreen:T,colorPicker:_,overwriteConfirm:E,mermaid:L};export{r as alerts,t as buttons,s as canvasError,g as clearCanvasDialog,_ as colorPicker,k as colors,y as confirmDialog,C as default,v as encrypted,m as errorDialog,c as errorSplash,a as errors,p as exportDialog,n as headings,b as helpDialog,l as hints,S as imageExportDialog,e as labels,o as library,L as mermaid,E as overwriteConfirm,u as publishDialog,h as publishSuccessDialog,d as roomDialog,w as stats,x as toast,i as toolBar,T as welcomeScreen};
|
|
||||||
//# sourceMappingURL=bg-BG.json-pnAjs09s.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"bg-BG.json-pnAjs09s.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
const e={paste:"পেস্ট করুন",pasteAsPlaintext:"প্লেইনটেক্সট হিসাবে পেস্ট করুন",pasteCharts:"চার্ট পেস্ট করুন",selectAll:"সবটা সিলেক্ট করুন",multiSelect:"একাধিক সিলেক্ট করুন",moveCanvas:"ক্যানভাস সরান",cut:"কাট করুন",copy:"কপি করুন",copyAsPng:"পীএনজী ছবির মতন কপি করুন",copyAsSvg:"এসভীজী ছবির মতন কপি করুন",copyText:"লিখিত তথ্যের মতন কপি করুন",copySource:"",convertToCode:"",bringForward:"অধিকতর সামনে আনুন",sendToBack:"অধিকতর পিছনে নিয়ে যান",bringToFront:"সবার সামনে আনুন",sendBackward:"সবার পিছনে নিয়ে যান",delete:"মুছা",copyStyles:"ডিজাইন কপি করুন",pasteStyles:"ডিজাইন পেস্ট করুন",stroke:"রেখাংশ",background:"পটভূমি",fill:"রং",strokeWidth:"রেখাংশের বেধ",strokeStyle:"রেখাংশের ডিজাইন",strokeStyle_solid:"পুরু",strokeStyle_dashed:"পাতলা",strokeStyle_dotted:"বিন্দুবিন্দু",sloppiness:"ভ্রান্তি",opacity:"দৃশ্যমানতা",textAlign:"লেখ অনুভূমি",edges:"কোণ",sharp:"তীক্ষ্ণ",round:"গোল",arrowheads:"তীরের শীর্ষভাগ",arrowhead_none:"কিছু না",arrowhead_arrow:"তীর",arrowhead_bar:"রেখাংশ",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"ত্রিভূজ",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"লেখনীর মাত্রা",fontFamily:"লেখনীর হরফ",addWatermark:"এক্সক্যালিড্র দ্বারা প্রস্তুত",handDrawn:"হাতে আঁকা",normal:"স্বাভাবিক",code:"কোড",small:"ছোট",medium:"মাঝারি",large:"বড়",veryLarge:"অনেক বড়",solid:"দৃঢ়",hachure:"ভ্রুলেখা",zigzag:"আঁকাবাঁকা",crossHatch:"ক্রস হ্যাচ",thin:"পাতলা",bold:"পুরু",left:"বাম",center:"কেন্দ্র",right:"ডান",extraBold:"অতি পুরু",architect:"স্থপতি",artist:"শিল্পী",cartoonist:"চিত্রকার",fileTitle:"ফাইলের নাম",colorPicker:"রং পছন্দ করুন",canvasColors:"ক্যানভাসের রং",canvasBackground:"ক্যানভাসের পটভূমি",drawingCanvas:"ব্যবহৃত ক্যানভাস",layers:"মাত্রা",actions:"ক্রিয়া",language:"ভাষা",liveCollaboration:"সরাসরি পারস্পরিক সহযোগিতা...",duplicateSelection:"সদৃশ সিলেক্ট",untitled:"অনামী",name:"নাম",yourName:"আপনার নাম",madeWithExcalidraw:"এক্সক্যালিড্র দ্বারা তৈরি",group:"দল গঠন করুন",ungroup:"দল বিভেদ করুন",collaborators:"সহযোগী",showGrid:"গ্রিড দেখান",addToLibrary:"সংগ্রহে যোগ করুন",removeFromLibrary:"সংগ্রহ থেকে বের করুন",libraryLoadingMessage:"সংগ্রহ তৈরি হচ্ছে",libraries:"সংগ্রহ দেখুন",loadingScene:"দৃশ্য তৈরি হচ্ছে",align:"পংক্তিবিন্যাস",alignTop:"উপর পংক্তি",alignBottom:"নিম্ন পংক্তি",alignLeft:"বাম পংক্তি",alignRight:"ডান পংক্তি",centerVertically:"উলম্ব কেন্দ্রিত",centerHorizontally:"অনুভূমিক কেন্দ্রিত",distributeHorizontally:"অনুভূমিকভাবে বিতরণ করুন",distributeVertically:"উল্লম্বভাবে বিতরণ করুন",flipHorizontal:"অনুভূমিক আবর্তন",flipVertical:"উলম্ব আবর্তন",viewMode:"দৃশ্য",share:"ভাগ করুন",showStroke:"",showBackground:"",toggleTheme:"",personalLib:"",excalidrawLib:"",decreaseFontSize:"লেখনীর মাত্রা কমান",increaseFontSize:"লেখনীর মাত্রা বাড়ান",unbindText:"",bindText:"",createContainerFromText:"",link:{edit:"লিঙ্ক সংশোধন",editEmbed:"",create:"লিঙ্ক তৈরী",createEmbed:"",label:"লিঙ্ক নামকরণ",labelEmbed:"",empty:""},linLine truncated
|
|
||||||
|
|
||||||
(যদি আপনি আপনার স্থানীয় অঙ্কন রাখতে চান, তাহলে শুধু ব্রাউজার ট্যাবটি বন্ধ করুন।)`,errorAddingToLibrary:"বস্তুটি সংগ্রহে যোগ করা যায়নি",errorRemovingFromLibrary:"বস্তুটি সংগ্রহ থেকে বিয়োগ করা যায়নি",confirmAddLibrary:"এটি আপনার সংগ্রহে {{numShapes}} আকার(গুলি) যোগ করবে। আপনি কি নিশ্চিত?",imageDoesNotContainScene:"এই ছবিতে কোনো দৃশ্যের তথ্য আছে বলে মনে হয় না৷ আপনি কি নিবদ্ধ করার সময় দৃশ্য এমবেডিং করতে সক্ষম?",cannotRestoreFromImage:"এই ফাইল থেকে দৃশ্য পুনরুদ্ধার করা যায়নি",invalidSceneUrl:"সরবরাহ করা লিঙ্ক থেকে দৃশ্য লোড করা যায়নি৷ এটি হয় বিকৃত, অথবা বৈধ এক্সক্যালিড্র জেসন তথ্য নেই৷",resetLibrary:"এটি আপনার সংগ্রহ পরিষ্কার করবে। আপনি কি নিশ্চিত?",removeItemsFromsLibrary:"সংগ্রহ থেকে {{count}} বস্তু বিয়োগ করা হবে। আপনি কি নিশ্চিত?",invalidEncryptionKey:"অবৈধ এনক্রীপশন কী।",collabOfflineWarning:""},a={unsupportedFileType:"অসমর্থিত ফাইল।",imageInsertError:"ছবি সন্নিবেশ করা যায়নি। পরে আবার চেষ্টা করুন...",fileTooBig:"ফাইলটি খুব বড়। সর্বাধিক অনুমোদিত আকার হল {{maxSize}}৷",svgImageInsertError:"এসভীজী ছবি সন্নিবেশ করা যায়নি। এসভীজী মার্কআপটি অবৈধ মনে হচ্ছে৷",failedToFetchImage:"",invalidSVGString:"এসভীজী মার্কআপটি অবৈধ মনে হচ্ছে৷",cannotResolveCollabServer:"কোল্যাব সার্ভারের সাথে সংযোগ করা যায়নি। পৃষ্ঠাটি পুনরায় লোড করে আবার চেষ্টা করুন।",importLibraryError:"সংগ্রহ লোড করা যায়নি",collabSaveFailed:"",collabSaveFailed_sizeExceeded:"",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},i={selection:"বাছাই",image:"চিত্র সন্নিবেশ",rectangle:"আয়তক্ষেত্র",diamond:"রুহিতন",ellipse:"উপবৃত্ত",arrow:"তীর",line:"রেখা",freedraw:"কলম",text:"লেখা",library:"সংগ্রহ",lock:"আঁকার পরে নির্বাচিত টুল সক্রিয় রাখুন",penMode:"",link:"একটি নির্বাচিত আকৃতির জন্য লিঙ্ক যোগ বা আপডেট করুন",eraser:"ঝাড়ন",frame:"",magicframe:"",embeddable:"",laser:"",hand:"",extraTools:"",mermaidToExcalidraw:"",magicSettings:""},n={canvasActions:"ক্যানভাস কার্যকলাপ",selectedShapeActions:"বাছাই করা আকার(গুলি)র কার্যকলাপ",shapes:"আকার(গুলি)"},l={canvasPanning:"",linearElement:"একাধিক বিন্দু শুরু করতে ক্লিক করুন, একক লাইনের জন্য টেনে আনুন",freeDraw:"ক্লিক করুন এবং টেনে আনুন, আপনার কাজ শেষ হলে ছেড়ে দিন",text:"বিশেষ্য: আপনি নির্বাচন টুলের সাথে যে কোনো জায়গায় ডাবল-ক্লিক করে পাঠ্য যোগ করতে পারেন",embeddable:"",text_selected:"লেখা সম্পাদনা করতে ডাবল-ক্লিক করুন বা এন্টার টিপুন",text_editing:"লেখা সম্পাদনা শেষ করতে এসকেপ বা কন্ট্রোল/কম্যান্ড যোগে এন্টার টিপুন",linearElementMulti:"শেষ বিন্দুতে ক্লিক করুন অথবা শেষ করতে এসক
Line truncated
|
|
||||||
কেন্দ্র থেকে আকার পরিবর্তন করতে অল্ট ধরে রাখুন`,resizeImage:"আপনি শিফ্ট ধরে রেখে অবাধে আকার পরিবর্তন করতে পারেন, কেন্দ্র থেকে আকার পরিবর্তন করতে অল্ট ধরুন",rotate:"আপনি ঘোরানোর সময় শিফ্ট ধরে রেখে কোণগুলিকে সীমাবদ্ধ করতে পারেন",lineEditor_info:"",lineEditor_pointSelected:"বিন্দু(গুলি) মুছতে ডিলিট টিপুন, কন্ট্রোল/কম্যান্ড যোগে ডি টিপুন নকল করতে অথবা সরানোর জন্য টানুন",lineEditor_nothingSelected:`সম্পাদনা করার জন্য একটি বিন্দু নির্বাচন করুন (একাধিক নির্বাচন করতে শিফ্ট ধরে রাখুন),
|
|
||||||
অথবা অল্ট ধরে রাখুন এবং নতুন বিন্দু যোগ করতে ক্লিক করুন`,placeImage:"ছবিটি স্থাপন করতে ক্লিক করুন, অথবা নিজে আকার সেট করতে ক্লিক করুন এবং টেনে আনুন",publishLibrary:"আপনার নিজস্ব সংগ্রহ প্রকাশ করুন",bindTextToElement:"লেখা যোগ করতে এন্টার টিপুন",deepBoxSelect:"",eraserRevert:"মুছে ফেলার জন্য চিহ্নিত উপাদানগুলিকে ফিরিয়ে আনতে অল্ট ধরে রাখুন",firefox_clipboard_write:"",disableSnapping:""},s={cannotShowPreview:"প্রিভিউ দেখাতে অপারগ",canvasTooBig:"ক্যানভাস অনেক বড়।",canvasTooBigTip:"বিশেষ্য: দূরতম উপাদানগুলোকে একটু কাছাকাছি নিয়ে যাওয়ার চেষ্টা করুন।"},c={headingMain:"একটি ত্রুটির সম্মুখীন হয়েছে৷ চেষ্টা করুন <button>পৃষ্ঠাটি পুনরায় লোড করার।</button>",clearCanvasMessage:"যদি পুনরায় লোড করা কাজ না করে, চেষ্টা করুন <button>ক্যানভাস পরিষ্কার করার।</button>",clearCanvasCaveat:" এর ফলে কাজের ক্ষতি হবে ",trackedToSentry:"ত্রুটি {{eventId}} আমাদের সিস্টেমে ট্র্যাক করা হয়েছিল।",openIssueMessage:"আমরা ত্রুটিতে আপনার দৃশ্যের তথ্য অন্তর্ভুক্ত না করার জন্য খুব সতর্ক ছিলাম। আপনার দৃশ্য ব্যক্তিগত না হলে, আমাদের অনুসরণ করার কথা বিবেচনা করুন <button>ত্রুটি ইতিবৃত্ত।</button> অনুগ্রহ করে GitHub ইস্যুতে অনুলিপি এবং পেস্ট করে নীচের তথ্য অন্তর্ভুক্ত করুন।",sceneContent:"দৃশ্য বিষয়বস্তু:"},d={desc_intro:"আপনি আপনার সাথে সহযোগিতা করার জন্য আপনার বর্তমান দৃশ্যে লোকেদের আমন্ত্রণ জানাতে পারেন৷",desc_privacy:"চিন্তা করবেন না, সেশনটি এন্ড-টু-এন্ড এনক্রিপশন ব্যবহার করে, তাই আপনি যা আঁকবেন তা গোপন থাকবে। এমনকি আমাদের সার্ভার আপনি যা নিয়ে এসেছেন তা দেখতে সক্ষম হবে না।",button_startSession:"সেশন শুরু করুন",button_stopSession:"সেশন বন্ধ করুন",desc_inProgressIntro:"লাইভ-সহযোগীতার সেশন এখন চলছে।",desc_shareLink:"আপনি যার সাথে সহযোগিতা করতে চান তাদের সাথে এই লিঙ্কটি ভাগ করুন: ",desc_exitSession:"অধিবেশন বন্ধ করা আপনাকে রুম থেকে সংযোগ বিচ্ছিন্ন করবে, কিন্তু আপনি স্থানীয়ভাবে দৃশ্যের সাথে কাজ চালিয়ে যেতে সক্ষম হবেন। মনে রাখবেন যে এটি অন্য লোকেদের প্রভাবিত করবে না এবং তারা এখনও তাদের সংস্করণে সহযোগিতা করতে সক্ষম হবে।",shareTitle:"এক্সক্যালিড্র লাইভ সহযোগিতা সেশনে যোগ দিন"},m={title:"ত্রুটি"},p={disk_title:"",disk_details:"",disk_button:"",link_title:"",link_details:"",link_button:"",excalidrawplus_description:"",excalidrawplus_button:"নিবদ্ধ",excalidrawplus_exportError:""},b={blog:"",click:"ক্লিক",deepSelect:"",deepBoxSelect:"",curvedArrow:"",curvedLine:"",documentation:"",doubleClick:"",drag:"",editor:"",editLineArrowPoints:"",editText:"",github:"",howto:"",or:"অথবা",preventBinding:"",tools:"",shortcuts:"",textFinish:"",textNewLine:"",title:"",view:"",zoomToFit:"",zoomToSelection:"",toggleElementLock:"",movePageUpDown:"",movePageLeft
Line truncated
|
|
||||||
//# sourceMappingURL=bn-BD.json-xZvqmnH0.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"bn-BD.json-xZvqmnH0.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
const e={paste:"Enganxa",pasteAsPlaintext:"Enganxar com a text pla",pasteCharts:"Enganxa els diagrames",selectAll:"Selecciona-ho tot",multiSelect:"Afegeix un element a la selecció",moveCanvas:"Mou el llenç",cut:"Retalla",copy:"Copia",copyAsPng:"Copia al porta-retalls com a PNG",copyAsSvg:"Copia al porta-retalls com a SVG",copyText:"Copia al porta-retalls com a text",copySource:"Copia l'origen al porta-retalls",convertToCode:"",bringForward:"Porta endavant",sendToBack:"Envia enrere",bringToFront:"Porta al davant",sendBackward:"Envia al fons",delete:"Elimina",copyStyles:"Copia els estils",pasteStyles:"Enganxa els estils",stroke:"Color del traç",background:"Color del fons",fill:"Estil del fons",strokeWidth:"Amplada del traç",strokeStyle:"Estil del traç",strokeStyle_solid:"Sòlid",strokeStyle_dashed:"Guions",strokeStyle_dotted:"Punts",sloppiness:"Estil del traç",opacity:"Opacitat",textAlign:"Alineació del text",edges:"Vores",sharp:"Agut",round:"Arrodonit",arrowheads:"Puntes de fletxa",arrowhead_none:"Cap",arrowhead_arrow:"Fletxa",arrowhead_bar:"Barra",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Triangle",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Mida de lletra",fontFamily:"Tipus de lletra",addWatermark:"Afegeix-hi «Fet amb Excalidraw»",handDrawn:"Dibuixat a mà",normal:"Normal",code:"Codi",small:"Petit",medium:"Mitjà",large:"Gran",veryLarge:"Molt gran",solid:"Sòlid",hachure:"Ratlletes",zigzag:"",crossHatch:"Ratlletes creuades",thin:"Fi",bold:"Negreta",left:"Esquerra",center:"Centre",right:"Dreta",extraBold:"Extra negreta",architect:"Arquitecte",artist:"Artista",cartoonist:"Dibuixant",fileTitle:"Nom del fitxer",colorPicker:"Selector de colors",canvasColors:"Usat al llenç",canvasBackground:"Fons del llenç",drawingCanvas:"Llenç de dibuix",layers:"Capes",actions:"Accions",language:"Llengua",liveCollaboration:"Col·laboració en directe...",duplicateSelection:"Duplica",untitled:"Sense títol",name:"Nom",yourName:"El vostre nom",madeWithExcalidraw:"Fet amb Excalidraw",group:"Agrupa la selecció",ungroup:"Desagrupa la selecció",collaborators:"Col·laboradors",showGrid:"Mostra la graella",addToLibrary:"Afegir a la biblioteca",removeFromLibrary:"Eliminar de la biblioteca",libraryLoadingMessage:"S'està carregant la biblioteca…",libraries:"Explora les biblioteques",loadingScene:"S'està carregant l'escena…",align:"Alinea",alignTop:"Alinea a la part superior",alignBottom:"Alinea a la part inferior",alignLeft:"Alinea a l’esquerra",alignRight:"Alinea a la dreta",centerVertically:"Centra verticalment",centerHorizontally:"Centra horitzontalment",distributeHorizontally:"Distribueix horitzontalment",distributeVertically:"Distribueix verticalment",flipHorizontal:"Capgira horitzontalment",flipVertical:"Capgira verticalment",viewMode:"Mode de visualització",share:"Comparteix",showStroke:"Mostra el selector de color del traç",showBackground:"Mostra el selector de color de fons",toggleTheme:"Activa o desactiva el tema",personalLib:"Biblioteca personal",excalidrawLib:"Biblioteca d'Excalidraw",decreaseFontSize:"Redueix la mida de la lletra",increaseFontSize:"Augmenta la mida de la lletra",unbindText:"Desvincular el text",bindText:"Ajusta el text al contenidor",createContainerFromText:"",link:{edit:"Edita l'enllaç",editEmbed:"Edita l'enllaç i incrusta-ho",create:"Crea un enllaç",createEmbed:"",label:"Enllaç",labelEmbed:"",empty:"No s'ha definit cap enllaç"},lineEditor:{edit:"Editar línia",exit:"Sortir de l'editor de línia"},elementLock:{lock:"Bloca",unlock:"Desbloca",lockAll:"Bloca-ho tot",unlockAll:"Desbloca-ho tot"},statusPublished:"Publicat",sidebarLock:"Manté la barra lateral oberta",selectAllElementsInFrame:"Selecciona tots els elements del marc",removeAllElementsFromFrame:"Eliminat tots els elements del marc",eyeDropper:"",textToDiagram:"",prompt:""},a={noItems:"Encara no s'hi han afegit elements...",hint_emptyLibrary:"Trieu un element o un llenç per a afegir-lo aquí, o instal·leu una biblioteca del repositori públic, més avall.",hint_emptyPrivateLibrary:"Trieu un element o un llenç per a afegir-lo aquí."},r={clearReset:"Neteja el llenç",exportJSON:"Exporta a un fitxer",exportImage:"Exporta la imatge...",export:"Guardar a...",copyToClipboard:"Copia al porta-retalls",save:"Desa al fitxer actual",saveAs:"Anomena i desa",load:"Obrir",getShareableLink:"Obté l'enllaç per a compartir",close:"Tanca",selectLanguage:"Trieu la llengua",scrollBackToContent:"Torna al contingut",zoomIn:"Apropa't",zoomOut:"Allunya't",resetZoom:"Restableix el zoom",menu:"Menú",done:"Fet",edit:"Edita",undo:"Desfés",redo:"Refés",resetLibrary:"Restableix la biblioteca",createNewRoom:"Crea una sala nova",fullScreen:"Pantalla completa",darkMode:"Mode fosc",lightMode:"Mode clar",zenMode:"Mode zen",objectsSnapMode:"",exitZenMode:"Surt de mode zen",cancel:"Cancel·la",clear:"Neteja",remove:"Suprimeix",embed:"",publishLibrary:"Publica",submit:"Envia",confLine truncated
|
|
||||||
|
|
||||||
(Si voleu conservar el dibuix local, tanqueu la pentanya del navegador en comptes d'aturar la sessió).`,errorAddingToLibrary:"No s'ha pogut afegir l'element a la biblioteca",errorRemovingFromLibrary:"No s'ha pogut eliminar l'element de la biblioteca",confirmAddLibrary:"Això afegirà {{numShapes}} forma(es) a la vostra biblioteca. Estàs segur?",imageDoesNotContainScene:"Aquesta imatge no sembla contenir cap dada d'escena. Heu activat l'incrustació de l'escena durant l'exportació?",cannotRestoreFromImage:"L’escena no s’ha pogut restaurar des d’aquest fitxer d’imatge",invalidSceneUrl:"No s'ha pogut importar l'escena des de l'adreça URL proporcionada. Està malformada o no conté dades Excalidraw JSON vàlides.",resetLibrary:"Això buidarà la biblioteca. N'esteu segur?",removeItemsFromsLibrary:"Suprimir {{count}} element(s) de la biblioteca?",invalidEncryptionKey:"La clau d'encriptació ha de tenir 22 caràcters. La col·laboració en directe està desactivada.",collabOfflineWarning:`Sense connexió a internet disponible.
|
|
||||||
Els vostres canvis no seran guardats!`},l={unsupportedFileType:"Tipus de fitxer no suportat.",imageInsertError:"No s'ha pogut insertar la imatge, torneu-ho a provar més tard...",fileTooBig:"El fitxer és massa gros. La mida màxima permesa és {{maxSize}}.",svgImageInsertError:"No ha estat possible inserir la imatge SVG. Les marques SVG semblen invàlides.",failedToFetchImage:"",invalidSVGString:"SVG no vàlid.",cannotResolveCollabServer:"No ha estat possible connectar amb el servidor collab. Si us plau recarregueu la pàgina i torneu a provar.",importLibraryError:"No s'ha pogut carregar la biblioteca",collabSaveFailed:"No s'ha pogut desar a la base de dades de fons. Si els problemes persisteixen, hauríeu de desar el fitxer localment per assegurar-vos que no perdeu el vostre treball.",collabSaveFailed_sizeExceeded:"No s'ha pogut desar a la base de dades de fons, sembla que el llenç és massa gran. Hauríeu de desar el fitxer localment per assegurar-vos que no perdeu el vostre treball.",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"No s'ha pogut enganxar.",copyToSystemClipboardFailed:""},i={selection:"Selecció",image:"Insereix imatge",rectangle:"Rectangle",diamond:"Rombe",ellipse:"El·lipse",arrow:"Fletxa",line:"Línia",freedraw:"Dibuix",text:"Text",library:"Biblioteca",lock:"Mantenir activa l'eina seleccionada desprès de dibuixar",penMode:"Mode de llapis - evita tocar",link:"Afegeix / actualitza l'enllaç per a la forma seleccionada",eraser:"Esborrador",frame:"",magicframe:"",embeddable:"",laser:"",hand:"Mà (eina de desplaçament)",extraTools:"",mermaidToExcalidraw:"De Mermaid a Excalidraw",magicSettings:"Preferències d'IA"},o={canvasActions:"Accions del llenç",selectedShapeActions:"Accions per a les formes seleccionades",shapes:"Formes"},n={canvasPanning:"Per moure el llenç, manteniu premuda la roda del ratolí o la barra espaiadora mentre arrossegueu o utilitzeu l'eina manual",linearElement:"Feu clic per a dibuixar múltiples punts; arrossegueu per a una sola línia",freeDraw:"Feu clic i arrossegueu, deixeu anar per a finalitzar",text:"Consell: també podeu afegir text fent doble clic en qualsevol lloc amb l'eina de selecció",embeddable:"",text_selected:"Feu doble clic o premeu Retorn per a editar el text",text_editing:"Premeu Escapada o Ctrl+Retorn (o Ordre+Retorn) per a finalitzar l'edició",linearElementMulti:"Feu clic a l'ultim punt, o pitgeu Esc o Retorn per a finalitzar",lockAngle:"Per restringir els angles, mantenir premut el majúscul (SHIFT)",resize:"Per restringir les proporcions mentres es canvia la mida, mantenir premut el majúscul (SHIFT); per canviar la mida des del centre, mantenir premut ALT",resizeImage:`Podeu redimensionar lliurement prement MAJÚSCULA;
|
|
||||||
per a redimensionar des del centre, premeu ALT`,rotate:"Per restringir els angles mentre gira, mantenir premut el majúscul (SHIFT)",lineEditor_info:"Mantingueu premut Ctrl o Cmd i feu doble clic o premeu Ctrl o Cmd + Retorn per editar els punts",lineEditor_pointSelected:"Premeu Suprimir per a eliminar el(s) punt(s), CtrlOrCmd+D per a duplicar-lo, o arrossegueu-lo per a moure'l",lineEditor_nothingSelected:`Seleccioneu un punt per a editar-lo (premeu SHIFT si voleu
|
|
||||||
selecció múltiple), o manteniu Alt i feu clic per a afegir més punts`,placeImage:"Feu clic per a col·locar la imatge o clic i arrossegar per a establir-ne la mida manualment",publishLibrary:"Publiqueu la vostra pròpia llibreria",bindTextToElement:"Premeu enter per a afegir-hi text",deepBoxSelect:"Manteniu CtrlOrCmd per a selecció profunda, i per a evitar l'arrossegament",eraserRevert:"Mantingueu premuda Alt per a revertir els elements seleccionats per a esborrar",firefox_clipboard_write:'És probable que aquesta funció es pugui activar posant la marca "dom.events.asyncClipboard.clipboardItem" a "true". Per canviar les marques del navegador al Firefox, visiteu la pàgina "about:config".',disableSnapping:""},s={cannotShowPreview:"No es pot mostrar la previsualització",canvasTooBig:"Pot ser que el llenç sigui massa gran.",canvasTooBigTip:"Consell: proveu d’acostar una mica els elements més allunyats."},c={headingMain:"S'ha produït un error. Proveu <button>recarregar la pàgina.</button>",clearCanvasMessage:"Si la recàrrega no funciona, proveu <button>esborrar el llenç.</button>",clearCanvasCaveat:" Això resultarà en la pèrdua de feina ",trackedToSentry:"L'error amb l'identificador {{eventId}} s'ha rastrejat en el nostre sistema.",openIssueMessage:"Anàvem amb molta cura de no incloure la informació de la vostra escena en l'error. Si l'escena no és privada, podeu fer-ne el seguiment al nostre <button>rastrejador d'errors.</button> Incloeu la informació a continuació copiant i enganxant a GitHub Issues.",sceneContent:"Contingut de l'escena:"},d={desc_intro:"Podeu convidar persones a la vostra escena actual a col·laborar amb vós.",desc_privacy:"No us preocupeu, la sessió utilitza el xifratge de punta a punta, de manera que qualsevol cosa que dibuixeu romandrà privada. Ni tan sols el nostre servidor podrà veure què feu.",button_startSession:"Inicia la sessió",button_stopSession:"Atura la sessió",desc_inProgressIntro:"La sessió de col·laboració en directe està en marxa.",desc_shareLink:"Comparteix aquest enllaç amb qualsevol persona amb qui vulgueu col·laborar:",desc_exitSession:"Si atureu la sessió, us desconectareu de la sala, però podreu continuar treballant amb el dibuix localment. Tingues en compte que això no afectarà a altres persones, i encara podran col·laborar en la seva versió.",shareTitle:"Uniu-vos a una sessió de col·laboració en directe a Excalidraw"},u={title:"Error"},p={disk_title:"Desa al disc",disk_details:"Exporta les dades de l'escena a un fitxer que després podreu importar.",disk_button:"Desa en un fitxer",link_title:"Enllaç per a compartir",link_details:"Exporta com a un enllaç de només lectura.",link_button:"Exporta a un enllaç",excalidrawplus_description:"Desa l'escena en el vostre espai de treball Excalidraw+.",excalidrawplus_button:"Exporta",excalidrawplus_exportError:"No és possible exportar a Excalidraw+ ara mateix..."},m={blog:"Llegiu el nostre blog",click:"clic",deepSelect:"Selecció profunda",deepBoxSelect:"Seleccioneu profundament dins del quadre i eviteu arrossegar",curvedArrow:"Fletxa corba",curvedLine:"Línia corba",documentation:"Documentació",doubleClick:"doble clic",drag:"arrossega",editor:"Editor",editLineArrowPoints:"",editText:"",github:"Hi heu trobat un problema? Informeu-ne",howto:"Seguiu les nostres guies",or:"o",preventBinding:"Prevenir vinculació de la fletxa",tools:"Eines",shortcuts:"Dreceres de teclat",textFinish:"Finalitza l'edició (editor de text)",textNewLine:"Afegeix una línia nova (editor de text)",title:"Ajuda",view:"Visualització",zoomToFit:"Zoom per veure tots els elements",zoomToSelection:"Zoom per veure la selecció",toggleElementLock:"Blocar/desblocar la selecció",movePageUpDown:"Mou la pàgina cap amunt/a baix",movePageLeftRight:"Mou la pàgina cap a l'esquerra/dreta"},b={title:"Neteja el llenç"},g={title:"Publica la biblioteca",itemName:"Nom de l'element",authorName:"Nom de l'autor/a",githubUsername:"Nom d'usuari de GitHub",twitterUsername:"Nom d'usuari de Twitter",libraryName:"Nom de la biblioteca",libraryDesc:"Descripció de la biblioteca",website:"Lloc web",placeholder:{authorName:"Nom o usuari",libraryName:"Nom de la vostra biblioteca",libraryDesc:"Descripció de la biblioteca per a ajudar a la gent a entendre'n el funcionament",githubHandle:"Identificador de GitHub (opcional), per tal que pugueu editar la biblioteca una vegada enviada per a ser revisada",twitterHandle:"Usuari de twitter (opcional), per tal que puguem donar-vos crèdit quan fem la promoció a Twitter",website:"Enllaç al vostre lloc web personal o a qualsevol altre (opcional)"},errors:{required:"Requerit",website:"Introduïu una URL vàlida"},noteDescription:"Envieu la vostra biblioteca perquè sigui inclosa al <link>repositori públic</link>per tal que altres persones puguin fer-ne ús en els seus dibuixos.",noteGuidelines:"La biblioteca ha de ser aprovada manualment. Si us plau, llegiu les <link>directrius</link> abans d'env
Line truncated
|
|
||||||
({{exportColorScheme}})`,fileSaved:"S'ha desat el fitxer.",fileSavedToFilename:"S'ha desat a {filename}",canvas:"el llenç",selection:"la selecció",pasteAsSingleElement:`Fer servir {{shortcut}} per enganxar com un sol element,
|
|
||||||
o enganxeu-lo en un editor de text existent`,unableToEmbed:"",unrecognizedLinkFormat:""},y={transparent:"Transparent",black:"",white:"",red:"",pink:"",grape:"",violet:"",gray:"",blue:"",cyan:"",teal:"",green:"Verd",yellow:"Groc",orange:"Taronja",bronze:"Bronze"},C={app:{center_heading:"Totes les vostres dades es guarden localment al vostre navegador.",center_heading_plus:"Vols anar a Excalidraw+ en comptes?",menuHint:"Exportar, preferències, llenguatges..."},defaults:{menuHint:"Exportar, preferències i més...",center_heading:"Diagrames. Fer. Simple.",toolbarHint:"Selecciona una eina i comença a dibuixar!",helpHint:"Dreceres i ajuda"}},w={mostUsedCustomColors:"",colors:"",shades:"",hexCode:"",noShades:""},T={action:{exportToImage:{title:"Exporta com a imatge",button:"Exporta com a imatge",description:""},saveToDisk:{title:"Desa al disc",button:"Desa al disc",description:""},excalidrawPlus:{title:"",button:"",description:""}},modal:{loadFromFile:{title:"Carrega des d'un fitxer",button:"Carrega des d'un fitxer",description:""},shareableLink:{title:"Carrega des d'un enllaç",button:"",description:""}}},A={title:"De Mermaid a Excalidraw",button:"Insereix",description:"",syntax:"Sintaxi de Mermaid",preview:"Previsualització"},N={labels:e,library:a,buttons:r,alerts:t,errors:l,toolBar:i,headings:o,hints:n,canvasError:s,errorSplash:c,roomDialog:d,errorDialog:u,exportDialog:p,helpDialog:m,clearCanvasDialog:b,publishDialog:g,publishSuccessDialog:v,confirmDialog:x,imageExportDialog:h,encrypted:S,stats:f,toast:E,colors:y,welcomeScreen:C,colorPicker:w,overwriteConfirm:T,mermaid:A};export{t as alerts,r as buttons,s as canvasError,b as clearCanvasDialog,w as colorPicker,y as colors,x as confirmDialog,N as default,S as encrypted,u as errorDialog,c as errorSplash,l as errors,p as exportDialog,o as headings,m as helpDialog,n as hints,h as imageExportDialog,e as labels,a as library,A as mermaid,T as overwriteConfirm,g as publishDialog,v as publishSuccessDialog,d as roomDialog,f as stats,E as toast,i as toolBar,C as welcomeScreen};
|
|
||||||
//# sourceMappingURL=ca-ES.json-YA_IC9xZ.js.map
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{"version":3,"file":"ca-ES.json-YA_IC9xZ.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
const e={paste:"Vložit",pasteAsPlaintext:"Vložit jako prostý text",pasteCharts:"Vložit grafy",selectAll:"Vybrat vše",multiSelect:"Přidat prvek do výběru",moveCanvas:"Posunout plátno",cut:"Vyjmout",copy:"Kopírovat",copyAsPng:"Zkopírovat do schránky jako PNG",copyAsSvg:"Zkopírovat do schránky jako SVG",copyText:"Zkopírovat do schránky jako text",copySource:"",convertToCode:"",bringForward:"Přenést blíž",sendToBack:"Přenést do pozadí",bringToFront:"Přenést do popředí",sendBackward:"Přenést dál",delete:"Smazat",copyStyles:"Kopírovat styly",pasteStyles:"Vložit styly",stroke:"Obrys",background:"Pozadí",fill:"Výplň",strokeWidth:"Tloušťka tahu",strokeStyle:"Styl tahu",strokeStyle_solid:"Plný",strokeStyle_dashed:"Čárkovaný",strokeStyle_dotted:"Tečkovaný",sloppiness:"Stylizace",opacity:"Průhlednost",textAlign:"Zarovnání textu",edges:"Hrany",sharp:"Ostré",round:"Zaoblené",arrowheads:"Styl šipky",arrowhead_none:"Žádný",arrowhead_arrow:"Šipka",arrowhead_bar:"Kóta",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"Trojúhelník",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"Velikost písma",fontFamily:"Písmo",addWatermark:'Přidat "Vyrobeno s Excalidraw"',handDrawn:"Od ruky",normal:"Normální",code:"Kód",small:"Malé",medium:"Střední",large:"Velké",veryLarge:"Velmi velké",solid:"Plný",hachure:"Hachure",zigzag:"Klikatě",crossHatch:"Křížový šrafování",thin:"Tenký",bold:"Tlustý",left:"Vlevo",center:"Na střed",right:"Vpravo",extraBold:"Extra tlustý",architect:"Architekt",artist:"Umělec",cartoonist:"Kartoonista",fileTitle:"Název souboru",colorPicker:"Výběr barvy",canvasColors:"Použito na plátně",canvasBackground:"Pozadí plátna",drawingCanvas:"Kreslicí plátno",layers:"Vrstvy",actions:"Akce",language:"Jazyk",liveCollaboration:"Živá spolupráce...",duplicateSelection:"Duplikovat",untitled:"Bez názvu",name:"Název",yourName:"Vaše jméno",madeWithExcalidraw:"Vytvořeno v Excalidraw",group:"Sloučit výběr do skupiny",ungroup:"Zrušit sloučení skupiny",collaborators:"Spolupracovníci",showGrid:"Zobrazit mřížku",addToLibrary:"Přidat do knihovny",removeFromLibrary:"Odebrat z knihovny",libraryLoadingMessage:"Načítání knihovny…",libraries:"Procházet knihovny",loadingScene:"Načítání scény…",align:"Zarovnání",alignTop:"Zarovnat nahoru",alignBottom:"Zarovnat dolů",alignLeft:"Zarovnat vlevo",alignRight:"Zarovnejte vpravo",centerVertically:"Vycentrovat svisle",centerHorizontally:"Vycentrovat vodorovně",distributeHorizontally:"Rozložit horizontálně",distributeVertically:"Rozložit svisle",flipHorizontal:"Převrátit vodorovně",flipVertical:"Převrátit svisle",viewMode:"Náhled",share:"Sdílet",showStroke:"Zobrazit výběr barvy",showBackground:"Zobrazit výběr barev pozadí",toggleTheme:"Přepnout tmavý řežim",personalLib:"Osobní knihovna",excalidrawLib:"Exkalidraw knihovna",decreaseFontSize:"Zmenšit písmo",increaseFontSize:"Zvětšit písmo",unbindText:"Zrušit vazbu textu",bindText:"Vázat text s kontejnerem",createContainerFromText:"Zabalit text do kontejneru",link:{edit:"Upravit odkaz",editEmbed:"",create:"Vytvořit odkaz",createEmbed:"",label:"Odkaz",labelEmbed:"",empty:""},lineEditor:{edit:"Upravit čáru",exit:"Ukončit editor řádků"},elementLock:{lock:"Uzamknout",unlock:"Odemknout",lockAll:"Uzamknout vše",unlockAll:"Odemknout vše"},statusPublished:"Zveřejněno",sidebarLock:"Ponechat postranní panel otevřený",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"Vyberte barvu z plátna",textToDiagram:"",prompt:""},o={noItems:"Dosud neexistují žádné položky...",hint_emptyLibrary:"Vyberte položku na plátně a přidejte ji sem nebo nainstalujte knihovnu z veřejného úložiště níže.",hint_emptyPrivateLibrary:"Vyberte položku na plátně a přidejte ji sem."},t={clearReset:"Resetovat plátno",exportJSON:"Exportovat do souboru",exportImage:"Exportovat obrázek...",export:"Uložit jako...",copyToClipboard:"Kopírovat do schránky",save:"Uložit do aktuálního souboru",saveAs:"Uložit jako",load:"Otevřít",getShareableLink:"Získat odkaz pro sdílení",close:"Zavřít",selectLanguage:"Zvolit jazyk",scrollBackToContent:"Přejít zpět na obsah",zoomIn:"Přiblížit",zoomOut:"Oddálit",resetZoom:"Resetovat přiblížení",menu:"Menu",done:"Hotovo",edit:"Upravit",undo:"Zpět",redo:"Znovu",resetLibrary:"Obnovit knihovnu",createNewRoom:"Vytvořit novou místnost",fullScreen:"Celá obrazovka",darkMode:"Tmavý režim",lightMode:"Světlý režim",zenMode:"Zen mód",objectsSnapMode:"",exitZenMode:"Opustit zen mód",cancel:"Zrušit",clear:"Vyčistit",remove:"Odstranit",embed:"",publishLibrary:"Zveřejnit",submit:"Odeslat",confirm:"Potvrdit",embeddableInteractionButton:""},n={clearReset:"Toto vymaže celé plátno. Jste si jisti?",couldNotCreateShareableLink:"Nepodařilo se vytvořit sdílitelný odkaz.",couldNotCreateShareableLine truncated
|
|
||||||
|
|
||||||
(Pokud chcete zachovat místní kresbu, jednoduše zavřete kartu prohlížeče)`,errorAddingToLibrary:"Položku nelze přidat do knihovny",errorRemovingFromLibrary:"Položku nelze odstranit z knihovny",confirmAddLibrary:"Tímto přidáte {{numShapes}} tvarů do tvé knihovny. Jste si jisti?",imageDoesNotContainScene:"Zdá se, že tento obrázek neobsahuje žádná data o scéně. Zapnuli jste při exportu vkládání scény?",cannotRestoreFromImage:"Scénu nelze obnovit z tohoto souboru obrázku",invalidSceneUrl:"Nelze importovat scénu z zadané URL. Je buď poškozená, nebo neobsahuje platná JSON data Excalidraw.",resetLibrary:"Tímto vymažete vaši knihovnu. Jste si jisti?",removeItemsFromsLibrary:"Smazat {{count}} položek z knihovny?",invalidEncryptionKey:"Šifrovací klíč musí mít 22 znaků. Live spolupráce je zakázána.",collabOfflineWarning:`Není k dispozici žádné internetové připojení.
|
|
||||||
Vaše změny nebudou uloženy!`},a={unsupportedFileType:"Nepodporovaný typ souboru.",imageInsertError:"Nelze vložit obrázek. Zkuste to později...",fileTooBig:"Soubor je příliš velký. Maximální povolená velikost je {{maxSize}}.",svgImageInsertError:"Nelze vložit SVG obrázek. Značení SVG je neplatné.",failedToFetchImage:"",invalidSVGString:"Neplatný SVG.",cannotResolveCollabServer:"Nelze se připojit ke sdílenému serveru. Prosím obnovte stránku a zkuste to znovu.",importLibraryError:"Nelze načíst knihovnu",collabSaveFailed:"Nelze uložit do databáze na serveru. Pokud problémy přetrvávají, měli byste uložit soubor lokálně, abyste se ujistili, že neztratíte svou práci.",collabSaveFailed_sizeExceeded:"Nelze uložit do databáze na serveru, plátno se zdá být příliš velké. Měli byste uložit soubor lokálně, abyste se ujistili, že neztratíte svou práci.",imageToolNotSupported:"",brave_measure_text_error:{line1:"Vypadá to, že používáte Brave prohlížeč s povoleným nastavením <bold>Aggressively Block Fingerprinting</bold>.",line2:"To by mohlo vést k narušení <bold>Textových elementů</bold> ve vašich výkresech.",line3:"Důrazně doporučujeme zakázat toto nastavení. Můžete sledovat <link>tyto kroky</link> jak to udělat.",line4:"Pokud vypnutí tohoto nastavení neopravuje zobrazení textových prvků, prosím, otevřete <issueLink>problém</issueLink> na našem GitHubu, nebo nám napište na <discordLink>Discord</discordLink>"},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},r={selection:"Výběr",image:"Vložit obrázek",rectangle:"Obdélník",diamond:"Diamant",ellipse:"Elipsa",arrow:"Šipka",line:"Čára",freedraw:"Kreslení",text:"Text",library:"Knihovna",lock:"Po kreslení ponechat vybraný nástroj aktivní",penMode:"Režim Pera - zabránit dotyku",link:"Přidat/aktualizovat odkaz pro vybraný tvar",eraser:"Guma",frame:"",magicframe:"",embeddable:"",laser:"",hand:"Ruka (nástroj pro posouvání)",extraTools:"",mermaidToExcalidraw:"",magicSettings:""},i={canvasActions:"Akce plátna",selectedShapeActions:"Akce vybraného tvaru",shapes:"Tvary"},l={canvasPanning:"Chcete-li přesunout plátno, podržte kolečko nebo mezerník při tažení nebo použijte nástroj Ruka",linearElement:"Kliknutím pro více bodů, táhnutím pro jednu čáru",freeDraw:"Klikněte a táhněte, pro ukončení pusťte",text:"Tip: Text můžete také přidat dvojitým kliknutím kdekoli pomocí nástroje pro výběr",embeddable:"",text_selected:"Dvojklikem nebo stisknutím klávesy ENTER upravíte text",text_editing:"Stiskněte Escape nebo Ctrl/Cmd+ENTER pro dokončení úprav",linearElementMulti:"Klikněte na poslední bod nebo stiskněte Escape anebo Enter pro dokončení",lockAngle:"Úhel můžete omezit podržením SHIFT",resize:`Můžete omezit proporce podržením SHIFT při změně velikosti,
|
|
||||||
podržte ALT pro změnu velikosti od středu`,resizeImage:`Můžete volně změnit velikost podržením SHIFT,
|
|
||||||
podržením klávesy ALT změníte velikosti od středu`,rotate:"Úhly můžete omezit podržením SHIFT při otáčení",lineEditor_info:"Podržte Ctrl/Cmd a dvakrát klikněte nebo stiskněte Ctrl/Cmd + Enter pro úpravu bodů",lineEditor_pointSelected:`Stisknutím tlačítka Delete odstraňte bod(y),
|
|
||||||
Ctrl/Cmd+D pro duplicitu nebo táhnutím pro přesun`,lineEditor_nothingSelected:`Vyberte bod, který chcete upravit (podržením klávesy SHIFT vyberete více položek),
|
|
||||||
nebo podržením klávesy Alt a kliknutím přidáte nové body`,placeImage:"Kliknutím umístěte obrázek, nebo klepnutím a přetažením ručně nastavíte jeho velikost",publishLibrary:"Publikovat vlastní knihovnu",bindTextToElement:"Stiskněte Enter pro přidání textu",deepBoxSelect:"Podržte Ctrl/Cmd pro hluboký výběr a pro zabránění táhnutí",eraserRevert:"Podržením klávesy Alt vrátíte prvky označené pro smazání",firefox_clipboard_write:'Tato funkce může být povolena nastavením vlajky "dom.events.asyncClipboard.clipboardItem" na "true". Chcete-li změnit vlajky prohlížeče ve Firefoxu, navštivte stránku "about:config".',disableSnapping:""},s={cannotShowPreview:"Náhled nelze zobrazit",canvasTooBig:"Plátno je možná příliš velké.",canvasTooBigTip:"Tip: zkus posunout nejvzdálenější prvky trochu blíže k sobě."},d={headingMain:"Chyba. Zkuste <button>znovu načíst stránku</button>.",clearCanvasMessage:"Pokud opětovné načtení nefunguje, zkuste <button>vymazat plátno</button>.",clearCanvasCaveat:" To povede ke ztrátě dat ",trackedToSentry:"Chyba identifikátoru {{eventId}} byl zaznamenán v našem systému.",openIssueMessage:"Byli jsme velmi opatrní, abychom neuváděli informace o Vaší scéně. Pokud vaše scéna není soukromá, zvažte prosím sledování na našem <button>bug trackeru</button>. Uveďte prosím níže uvedené informace kopírováním a vložením do problému na GitHubu.",sceneContent:"Obsah scény:"},v={desc_intro:"Můžete pozvat lidi na vaši aktuální scénu ke spolupráci s vámi.",desc_privacy:"Nebojte se, relace používá end-to-end šifrování, takže cokoliv nakreslíte zůstane soukromé. Ani náš server nebude schopen vidět, s čím budete pracovat.",button_startSession:"Zahájit relaci",button_stopSession:"Ukončit relaci",desc_inProgressIntro:"Živá spolupráce právě probíhá.",desc_shareLink:"Sdílejte tento odkaz s každým, s kým chcete spolupracovat:",desc_exitSession:"Zastavením relace se odpojíte od místnosti, ale budete moci pokračovat v práci s touto scénou lokálně. Všimněte si, že to nebude mít vliv na ostatní lidi a budou stále moci spolupracovat na jejich verzi.",shareTitle:"Připojte se k aktivní spolupráci na Excalidraw"},p={title:"Chyba"},u={disk_title:"Uložit na disk",disk_details:"Exportovat data scény do souboru, ze kterého můžete importovat později.",disk_button:"Uložit do souboru",link_title:"Odkaz pro sdílení",link_details:"Exportovat jako odkaz pouze pro čtení.",link_button:"Exportovat do odkazu",excalidrawplus_description:"Uložit scénu do vašeho pracovního prostoru Excalidraw+.",excalidrawplus_button:"Exportovat",excalidrawplus_exportError:"Export do Excalidraw+ se v tuto chvíli nezdařil..."},k={blog:"Přečtěte si náš blog",click:"kliknutí",deepSelect:"Hluboký výběr",deepBoxSelect:"Hluboký výběr uvnitř boxu a zabránění táhnnutí",curvedArrow:"Zakřivená šipka",curvedLine:"Zakřivená čára",documentation:"Dokumentace",doubleClick:"dvojklik",drag:"tažení",editor:"Editor",editLineArrowPoints:"Upravit body linií/šipek",editText:"Upravit text / přidat popis",github:"Našel jsi problém? Nahlaš ho",howto:"Sledujte naše návody",or:"nebo",preventBinding:"Zabránit vázání šipky",tools:"Nástroje",shortcuts:"Klávesové zkratky",textFinish:"Dokončit úpravy (textový editor)",textNewLine:"Přidat nový řádek (textový editor)",title:"Nápověda",view:"Zobrazení",zoomToFit:"Přiblížit na zobrazení všech prvků",zoomToSelection:"Přiblížit na výběr",toggleElementLock:"Zamknout/odemknout výběr",movePageUpDown:"Posunout stránku nahoru/dolů",movePageLeftRight:"Přesunout stránku doleva/doprava"},c={title:"Vymazat plátno"},b={title:"Publikovat knihovnu",itemName:"Název položky",authorName:"Jméno autora",githubUsername:"GitHub uživatelské jméno",twitterUsername:"Twitter uživatelské jméno",libraryName:"Název knihovny",libraryDesc:"Popis knihovny",website:"Webová stránka",placeholder:{authorName:"Jméno nebo uživatelské jméno",libraryName:"Název vaší knihovny",libraryDesc:"Popis Vaší knihovny, který pomůže lidem pochopit její využití",githubHandle:"Github uživatelské jméno (nepovinné), abyste mohli upravovat knihovnu poté co je odeslána ke kontrole",twitterHandle:"Twitter uživatelské jméno (nepovinné), abychom věděli koho označit při propagaci na Twitteru",website:"Odkaz na Vaši osobní webovou stránku nebo jinam (nepovinné)"},errors:{required:"Povinné",website:"Zadejte platnou URL adresu"},noteDescription:"Odešlete svou knihovnu, pro zařazení do <link>veřejného úložiště knihoven</link>, odkud ji budou moci při kreslení využít i ostatní uživatelé.",noteGuidelines:"Knihovna musí být nejdříve ručně schválena. Přečtěte si prosím <link>pokyny</link>",noteLicense:"Odesláním souhlasíte s tím, že knihovna bude zveřejněna pod <link>MIT licencí</link>, stru
Line truncated
|
|
||||||
Zvýší se velikost exportovaného souboru.`},title:{exportToPng:"Exportovat do PNG",exportToSvg:"Exportovat do SVG",copyPngToClipboard:"Kopírovat PNG do schránky"},button:{exportToPng:"PNG",exportToSvg:"SVG",copyPngToClipboard:"Kopírovat do schránky"}},z={tooltip:"Vaše kresby jsou end-to-end šifrované, takže servery Excalidraw je nikdy neuvidí.",link:"Blog příspěvek na end-to-end šifrování v Excalidraw"},g={angle:"Úhel",element:"Prvek",elements:"Prvky",height:"Výška",scene:"Scéna",selected:"Vybráno",storage:"Úložiště",title:"Statistika pro nerdy",total:"Celkem",version:"Verze",versionCopy:"Kliknutím zkopírujete",versionNotAvailable:"Verze není k dispozici",width:"Šířka"},j={addedToLibrary:"Přidáno do knihovny",copyStyles:"Styly byly zkopírovány.",copyToClipboard:"Zkopírováno do schránky.",copyToClipboardAsPng:`{{exportSelection}} zkopírován do schránky jako PNG
|
|
||||||
({{exportColorScheme}})`,fileSaved:"Soubor byl uložen.",fileSavedToFilename:"Uloženo do {filename}",canvas:"plátno",selection:"výběr",pasteAsSingleElement:`Pomocí {{shortcut}} vložte jako jeden prvek,
|
|
||||||
nebo vložte do existujícího textového editoru`,unableToEmbed:"",unrecognizedLinkFormat:""},x={transparent:"Průhledná",black:"Černá",white:"Bílá",red:"Červená",pink:"Růžová",grape:"Vínová",violet:"Fialová",gray:"Šedá",blue:"Modrá",cyan:"Azurová",teal:"Modrozelená",green:"Zelená",yellow:"Žlutá",orange:"Oranžová",bronze:"Bronzová"},S={app:{center_heading:"Všechna vaše data jsou uložena lokálně ve vašem prohlížeči.",center_heading_plus:"Chcete místo toho přejít na Excalidraw+?",menuHint:"Export, nastavení, jazyky, ..."},defaults:{menuHint:"Export, nastavení a další...",center_heading:"Diagramy. Vytvořeny. Jednoduše.",toolbarHint:"Vyberte nástroj a začněte kreslit!",helpHint:"Zkratky a pomoc"}},P={mostUsedCustomColors:"Nejpoužívanější vlastní barvy",colors:"Barvy",shades:"Stíny",hexCode:"Hex kód",noShades:"Pro tuto barvu nejsou k dispozici žádné odstíny"},T={action:{exportToImage:{title:"",button:"",description:""},saveToDisk:{title:"",button:"",description:""},excalidrawPlus:{title:"",button:"",description:""}},modal:{loadFromFile:{title:"",button:"",description:""},shareableLink:{title:"",button:"",description:""}}},w={title:"",button:"",description:"",syntax:"",preview:""},E={labels:e,library:o,buttons:t,alerts:n,errors:a,toolBar:r,headings:i,hints:l,canvasError:s,errorSplash:d,roomDialog:v,errorDialog:p,exportDialog:u,helpDialog:k,clearCanvasDialog:c,publishDialog:b,publishSuccessDialog:m,confirmDialog:y,imageExportDialog:h,encrypted:z,stats:g,toast:j,colors:x,welcomeScreen:S,colorPicker:P,overwriteConfirm:T,mermaid:w};export{n as alerts,t as buttons,s as canvasError,c as clearCanvasDialog,P as colorPicker,x as colors,y as confirmDialog,E as default,z as encrypted,p as errorDialog,d as errorSplash,a as errors,u as exportDialog,i as headings,k as helpDialog,l as hints,h as imageExportDialog,e as labels,o as library,w as mermaid,T as overwriteConfirm,b as publishDialog,m as publishSuccessDialog,v as roomDialog,g as stats,j as toast,r as toolBar,S as welcomeScreen};
|
|
||||||
//# sourceMappingURL=cs-CZ.json-xA16rUn9.js.map
|
|
||||||
Loaded 100 of 261 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user