agentic-mermaid 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/agent-core.d.ts +2 -2
  3. package/dist/agent-core.js +2 -2
  4. package/dist/agent.d.ts +2 -2
  5. package/dist/agent.js +4 -4
  6. package/dist/agentic-mermaid-mcp.js +5 -5
  7. package/dist/am.js +6 -6
  8. package/dist/browser-lazy/chunks/{architecture-3CGEU363.js → architecture-WMSX5L4P.js} +1 -1
  9. package/dist/browser-lazy/chunks/{chunk-RVO6J7S3.js → chunk-32FWKUUV.js} +1 -1
  10. package/dist/browser-lazy/chunks/{chunk-KTTWXSIX.js → chunk-ANTNEVJC.js} +1 -1
  11. package/dist/browser-lazy/chunks/{chunk-DPSSG7LR.js → chunk-AOCFMYYH.js} +1 -1
  12. package/dist/browser-lazy/chunks/{chunk-2U4EUPSI.js → chunk-CCTZFX43.js} +1 -1
  13. package/dist/browser-lazy/chunks/{chunk-PXRUFH7U.js → chunk-EBPTM2RP.js} +1 -1
  14. package/dist/browser-lazy/chunks/{chunk-FXBBGAMJ.js → chunk-EX6TP7QM.js} +1 -1
  15. package/dist/browser-lazy/chunks/{chunk-MMWVZP6M.js → chunk-QMZ4Y6I7.js} +1 -1
  16. package/dist/browser-lazy/chunks/{chunk-4IUBLBJJ.js → chunk-QYJMRNS3.js} +1 -1
  17. package/dist/browser-lazy/chunks/{chunk-6UT2VTFI.js → chunk-RLS545DI.js} +1 -1
  18. package/dist/browser-lazy/chunks/{chunk-VDTSULBU.js → chunk-TBZAU7KC.js} +1 -1
  19. package/dist/browser-lazy/chunks/{chunk-JX5ZZY3T.js → chunk-TDGTBGV3.js} +1 -1
  20. package/dist/browser-lazy/chunks/{chunk-HZ4ADQMK.js → chunk-TEH2PRKN.js} +1 -1
  21. package/dist/browser-lazy/chunks/{chunk-CTVVJPMX.js → chunk-W6Q4PHPC.js} +1 -1
  22. package/dist/browser-lazy/chunks/{chunk-4U2TVB2S.js → chunk-WN7SFUCZ.js} +1 -1
  23. package/dist/browser-lazy/chunks/{chunk-7D24ZLOV.js → chunk-ZZECLXC3.js} +1 -1
  24. package/dist/browser-lazy/chunks/{class-B3AVLSIF.js → class-7JRALQIM.js} +1 -1
  25. package/dist/browser-lazy/chunks/{er-AF4BKKKC.js → er-UDCGHKBX.js} +1 -1
  26. package/dist/browser-lazy/chunks/{flowchart-BE6BQZLZ.js → flowchart-5FP7RRIK.js} +1 -1
  27. package/dist/browser-lazy/chunks/{gantt-U4BMMSEL.js → gantt-NTOIC5CW.js} +1 -1
  28. package/dist/browser-lazy/chunks/{gitgraph-UPSWNFRP.js → gitgraph-JYAPXUIJ.js} +1 -1
  29. package/dist/browser-lazy/chunks/{journey-PDZ7FDJR.js → journey-646EFIB6.js} +1 -1
  30. package/dist/browser-lazy/chunks/{mindmap-BFEUURLS.js → mindmap-2SBTQHQO.js} +1 -1
  31. package/dist/browser-lazy/chunks/{pie-ZFYW5JZO.js → pie-7FDXZ24K.js} +1 -1
  32. package/dist/browser-lazy/chunks/{quadrant-XJVEYYXK.js → quadrant-72UT4XAW.js} +1 -1
  33. package/dist/browser-lazy/chunks/{radar-OVXFNRNC.js → radar-SU7BO56J.js} +1 -1
  34. package/dist/browser-lazy/chunks/{render-core-R4ZGGEFS.js → render-core-Q2JWXDDL.js} +2 -2
  35. package/dist/browser-lazy/chunks/{sequence-AWY6JCSB.js → sequence-5O5ET264.js} +1 -1
  36. package/dist/browser-lazy/chunks/{state-TCE4DXKR.js → state-IWPLFQ6R.js} +1 -1
  37. package/dist/browser-lazy/chunks/{timeline-W4ZVT3FF.js → timeline-WJWYHH5Y.js} +1 -1
  38. package/dist/browser-lazy/chunks/{xychart-K3QQACKS.js → xychart-HHQVQA5O.js} +1 -1
  39. package/dist/browser-lazy/index.js +1 -1
  40. package/dist/browser.global.js +2 -2
  41. package/dist/{chunk-XVY324NY.js → chunk-3D4EHVQ4.js} +5 -3
  42. package/dist/{chunk-BSVM3VMO.js → chunk-GX7UT56Q.js} +2 -2
  43. package/dist/{chunk-JJ7JRYZV.js → chunk-IVN6KP3W.js} +2 -2
  44. package/dist/{chunk-FGO3J7RA.js → chunk-NE6JBHSE.js} +680 -42
  45. package/dist/{chunk-KQMJ37OY.js → chunk-R5U67OIW.js} +4 -4
  46. package/dist/{chunk-MBIR6S3B.js → chunk-YWKCUBQN.js} +2 -2
  47. package/dist/{index-Do8z5rPq.d.ts → index-BFg_LoZS.d.ts} +1 -1
  48. package/dist/index.d.ts +1 -1
  49. package/dist/index.js +1 -1
  50. package/dist/mcp-cli-XGZP6CMW.js +17 -0
  51. package/docs/mcp-http-transport.md +2 -0
  52. package/package.json +5 -4
  53. package/server.json +2 -2
  54. package/dist/mcp-cli-7FLGTEG3.js +0 -17
@@ -21,7 +21,7 @@
21
21
  `),l.length!=2)throw Q(new Vt("Exactly two numbers are expected, "+l.length+" were found."));try{this.a=hx(gx(l[0])),this.b=hx(gx(l[1]))}catch(h){throw h=ki(h),fe(h,133)?(o=h,Q(new Vt(uyt+o))):Q(h)}},g.Ib=function(){return"("+this.a+","+this.b+")"},g.a=0,g.b=0;var to=I(ED,"KVector",8);T(79,66,{3:1,4:1,22:1,32:1,56:1,18:1,66:1,16:1,79:1,419:1},yl,$_,nQe),g.Nc=function(){return Urn(this)},g.ag=function(t){var n,o,a,l,h,b;a=xx(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | |
22
22
  `),Bl(this);try{for(o=0,h=0,l=0,b=0;o<a.length;)a[o]!=null&&gx(a[o]).length>0&&(h%2==0?l=hx(a[o]):b=hx(a[o]),h>0&&h%2!=0&&ir(this,new We(l,b)),++h),++o}catch(w){throw w=ki(w),fe(w,133)?(n=w,Q(new Vt("The given string does not match the expected format for vectors."+n))):Q(w)}},g.Ib=function(){var t,n,o;for(t=new Zl("("),n=Bn(this,0);n.b!=n.d.c;)o=d(_n(n),8),rr(t,o.a+","+o.b),n.b!=n.d.c&&(t.a+="; ");return(t.a+=")",t).a};var _Ie=I(ED,"KVectorChain",79);T(259,23,{3:1,34:1,23:1,259:1},F$);var Lie,Hz,Uz,C5,M5,Jz,jIe=En(cc,"Alignment",259,Rn,Ven,hVt),_It;T(984,1,Bd,bze),g.tf=function(t){Xmt(t)};var BIe,Die,jIt,GIe,zIe,BIt,WIe,GIt,zIt,HIe,UIe,WIt,krr=I(cc,"BoxLayouterOptions",984);T(985,1,{},_je),g.uf=function(){var t;return t=new Gje,t},g.vf=function(t){};var Srr=I(cc,"BoxLayouterOptions/BoxFactory",985);T(300,23,{3:1,34:1,23:1,300:1},_$);var J3,Fie,q3,V3,Y3,_ie,jie=En(cc,"ContentAlignment",300,Rn,qen,gVt),HIt;T(696,1,Bd,zue),g.tf=function(t){pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,A0t),""),"Layout Algorithm"),"Select a specific layout algorithm."),(ub(),eE)),ot),At((Gf(),_t))))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,v0t),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),eh),kxn),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,OAe),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),JIe),Qr),jIe),At(pi)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,zM),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,t2e),""),"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."),eh),_Ie),At(xf)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,w7),""),"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."),VIe),ZS),jie),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,$D),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Ut(),!1)),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,XZ),""),"Direction"),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),YIe),Qr),Q3),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,ID),""),"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."),QIe),Qr),Qie),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,Zve),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,y7),""),"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`."),e$e),Qr),W$e),_r(_t,re(ne(Zf,1),Fe,161,0,[pi]))))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,T0),""),"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."),d$e),eh),Jke),_r(_t,re(ne(Zf,1),Fe,161,0,[pi]))))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,WM),""),"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),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,A7),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,HM),""),"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 functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,e7),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),p$e),Qr),J$e),At(pi)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,x7),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),eh),to),_r(pi,re(ne(Zf,1),Fe,161,0,[gp,sm]))))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,yD),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Lo),Fi),_r(pi,re(ne(Zf,1),Fe,161,0,[xf]))))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,ZB),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),Lo),Fi),At(_t)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,SP),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,UAe),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),r$e),eh),_Ie),At(xf)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,YAe),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),_i),ci),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,XAe),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),_i),ci),At(pi)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,k0t),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),eh),Ixn),_r(_t,re(ne(Zf,1),Fe,161,0,[sm]))))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,S0t),""),"Softwrapping Fuzziness"),"Determines the amount of fuzziness to be used when performing softwrapping on labels. The value expresses the percent of overhang that is permitted for each line. If the next line would take up less space than this threshold, it is appended to the current line instead of being placed in a new line."),0),bo),Ci),At(sm)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,ZZ),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),i$e),eh),Uke),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,PAe),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),_i),ci),_r(pi,re(ne(Zf,1),Fe,161,0,[xf,gp,sm]))))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,E0t),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),bo),Ci),At(pi)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,C0t),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,M0t),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,xD),""),p0t),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),_i),ci),At(_t)))),ri(t,xD,I0,null),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,T0t),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,I0t),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Ge(100)),Lo),Fi),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,$0t),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,R0t),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Ge(4e3)),Lo),Fi),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,P0t),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Ge(400)),Lo),Fi),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,N0t),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,O0t),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,L0t),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,D0t),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,e2e),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),qIe),Qr),oRe),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,F0t),"json"),"Shape Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for nodes, ports, and labels of nodes and ports."),n$e),Qr),Y$e),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,_0t),"json"),"Edge Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels."),t$e),Qr),$$e),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,xAe),Yf),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,AAe),Yf),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,vAe),Yf),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,kAe),Yf),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,aZ),Yf),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,YZ),Yf),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,SAe),Yf),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,MAe),Yf),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,EAe),Yf),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,CAe),Yf),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,M0),Yf),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,TAe),Yf),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),bo),Ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,IAe),Yf),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),bo),Ci),_r(_t,re(ne(Zf,1),Fe,161,0,[pi]))))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,$Ae),Yf),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),eh),B$t),_r(pi,re(ne(Zf,1),Fe,161,0,[xf,gp,sm]))))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,QAe),Yf),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),C$e),eh),Uke),At(_t)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,QZ),z0t),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),Lo),Fi),_r(_t,re(ne(Zf,1),Fe,161,0,[pi]))))),ri(t,QZ,KZ,n$t),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,KZ),z0t),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),f$e),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,FAe),W0t),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),s$e),eh),Jke),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,JM),W0t),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),a$e),ZS),ss),_r(pi,re(ne(Zf,1),Fe,161,0,[sm]))))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,BAe),I7),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),g$e),Qr),nN),At(pi)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,GAe),I7),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),Qr),nN),At(pi)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,zAe),I7),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),Qr),nN),At(pi)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,WAe),I7),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),Qr),nN),At(pi)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,HAe),I7),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),Qr),nN),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,Wv),Cee),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),c$e),ZS),oN),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,TS),Cee),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),u$e),ZS),X$e),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,IS),Cee),"Node Size Minimum"),"The minimal size to which a node can be reduced."),l$e),eh),to),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,UM),Cee),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),_i),ci),At(_t)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,qAe),VZ),"Edge Label Placement"),"Gives a hint on where to put edge labels."),XIe),Qr),R$e),At(sm)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,wD),VZ),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),_i),ci),At(sm)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,j0t),"font"),"Font Name"),"Font name used for a label."),eE),ot),At(sm)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,B0t),"font"),"Font Size"),"Font size used for a label."),Lo),Fi),At(sm)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,KAe),Mee),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),eh),to),At(gp)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,VAe),Mee),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),Lo),Fi),At(gp)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,NAe),Mee),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),w$e),Qr),qo),At(gp)))),pt(t,new ct(gt(ht(mt(lt(ft(ut(dt(new at,RAe),Mee),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),bo),Ci),At(gp)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,qM),i2e),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),b$e),ZS),eW),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,_Ae),i2e),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),_i),ci),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,jAe),i2e),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),_i),ci),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,See),nT),"Number of size categories"),"Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator."),Ge(3)),Lo),Fi),At(_t)))),ri(t,See,Eee,g$t),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,n2e),nT),"Weight of a node containing children for determining the graph size"),"When determining the graph size for the size categorisation, this value determines how many times a node containing children is weighted more than a simple node. For example setting this value to four would result in a graph containing a simple node and a hierarchical node to be counted as having a size of five."),Ge(4)),Lo),Fi),At(_t)))),ri(t,n2e,See,null),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,AD),nT),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),bo),Ci),At(_t)))),ri(t,AD,I0,d$t),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,Eee),nT),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),eh),Sxn),At(pi)))),ri(t,Eee,I0,f$t),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,vD),nT),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),bo),Ci),_r(_t,re(ne(Zf,1),Fe,161,0,[pi]))))),ri(t,vD,I0,null),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,kD),nT),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),bo),Ci),_r(_t,re(ne(Zf,1),Fe,161,0,[pi]))))),ri(t,kD,I0,null),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,I0),nT),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),Qr),Q$e),At(pi)))),ri(t,I0,UM,null),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,r2e),nT),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),bo),Ci),At(_t)))),ri(t,r2e,I0,u$t),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,LAe),H0t),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),_i),ci),At(pi)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,DAe),H0t),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),_i),ci),At(xf)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,JAe),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),bo),Ci),At(xf)))),pt(t,new ct(gt(ht(mt(kt(lt(ft(ut(dt(new at,G0t),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),ZIe),Qr),F$e),At(xf)))),T$(t,new Jk(v$(lC(cC(new hk,Xt),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),T$(t,new Jk(v$(lC(cC(new hk,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),T$(t,new Jk(v$(lC(cC(new hk,wc),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),T$(t,new Jk(v$(lC(cC(new hk,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),T$(t,new Jk(v$(lC(cC(new hk,dve),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),T$(t,new Jk(v$(lC(cC(new hk,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),T$(t,new Jk(v$(lC(cC(new hk,Lu),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),Omt((new yze,t)),Xmt((new bze,t)),omt((new wze,t))};var tE,UIt,JIe,BT,JIt,qIt,qIe,Zx,eA,VIt,T5,VIe,I5,sy,YIe,qz,Bie,XIe,KIe,QIe,YIt,ZIe,XIt,A2,e$e,KIt,$5,Gie,X3,zie,QIt,t$e,ZIt,n$e,v2,r$e,am,i$e,o$e,s$e,k2,a$e,ay,c$e,tA,S2,l$e,$b,u$e,Vz,K3,th,d$e,e$t,f$e,t$t,n$t,h$e,g$e,Wie,Hie,Uie,Jie,m$e,Ml,GT,p$e,qie,Vie,nA,b$e,y$e,E2,w$e,nE,R5,Yie,rA,r$t,Xie,i$t,o$t,s$t,a$t,x$e,A$e,rE,v$e,Yz,k$e,S$e,Af,c$t,E$e,C$e,M$e,zT,iA,WT,iE,l$t,u$t,Xz,d$t,Kz,f$t,h$t,g$t,m$t,Err=I(cc,"CoreOptions",696);T(87,23,{3:1,34:1,23:1,87:1},f4);var nh,Cs,Ps,rh,Bu,Q3=En(cc,"Direction",87,Rn,ren,mVt),p$t;T(280,23,{3:1,34:1,23:1,280:1},l8);var Qz,P5,T$e,I$e,$$e=En(cc,"EdgeCoords",280,Rn,MZt,pVt),b$t;T(281,23,{3:1,34:1,23:1,281:1},Cq);var HT,oA,UT,R$e=En(cc,"EdgeLabelPlacement",281,Rn,MQt,bVt),y$t;T(225,23,{3:1,34:1,23:1,225:1},u8);var JT,N5,oE,Kie,Qie=En(cc,"EdgeRouting",225,Rn,TZt,yVt),w$t;T(328,23,{3:1,34:1,23:1,328:1},j$);var P$e,N$e,O$e,L$e,Zie,D$e,F$e=En(cc,"EdgeType",328,Rn,Jen,wVt),x$t;T(982,1,Bd,yze),g.tf=function(t){Omt(t)};var _$e,j$e,B$e,G$e,A$t,z$e,Z3,Crr=I(cc,"FixedLayouterOptions",982);T(983,1,{},jje),g.uf=function(){var t;return t=new Vje,t},g.vf=function(t){};var Mrr=I(cc,"FixedLayouterOptions/FixedFactory",983);T(348,23,{3:1,34:1,23:1,348:1},Mq);var mp,Zz,eN,W$e=En(cc,"HierarchyHandling",348,Rn,IQt,xVt),v$t,Sxn=ni(cc,"ITopdownSizeApproximator");T(293,23,{3:1,34:1,23:1,293:1},d8);var mg,Rb,O5,L5,k$t=En(cc,"LabelSide",293,Rn,IZt,AVt),S$t;T(96,23,{3:1,34:1,23:1,96:1},iv);var cm,Jd,fd,qd,gu,Vd,hd,pg,Yd,ss=En(cc,"NodeLabelPlacement",96,Rn,Ktn,vVt),E$t;T(260,23,{3:1,34:1,23:1,260:1},h4);var H$e,tN,Pb,U$e,D5,nN=En(cc,"PortAlignment",260,Rn,yen,kVt),C$t;T(103,23,{3:1,34:1,23:1,103:1},B$);var cy,Oa,bg,qT,ih,Nb,J$e=En(cc,"PortConstraints",103,Rn,Yen,SVt),M$t;T(282,23,{3:1,34:1,23:1,282:1},G$);var rN,iN,lm,F5,Ob,sE,eW=En(cc,"PortLabelPlacement",282,Rn,Xen,EVt),T$t;T(64,23,{3:1,34:1,23:1,64:1},g4);var un,rn,Gu,zu,Fc,vc,oh,Xd,ul,el,Va,dl,_c,jc,Kd,mu,pu,gd,kn,Ys,on,qo=En(cc,"PortSide",64,Rn,ien,MVt),I$t;T(986,1,Bd,wze),g.tf=function(t){omt(t)};var $$t,R$t,q$e,P$t,N$t,Trr=I(cc,"RandomLayouterOptions",986);T(987,1,{},Bje),g.uf=function(){var t;return t=new Qje,t},g.vf=function(t){};var Irr=I(cc,"RandomLayouterOptions/RandomFactory",987);T(301,23,{3:1,34:1,23:1,301:1},Tq);var _5,eoe,V$e,Y$e=En(cc,"ShapeCoords",301,Rn,CQt,CVt),O$t;T(381,23,{3:1,34:1,23:1,381:1},f8);var sA,j5,B5,ly,oN=En(cc,"SizeConstraint",381,Rn,$Zt,TVt),L$t;T(267,23,{3:1,34:1,23:1,267:1},ov);var G5,tW,VT,toe,z5,sN,nW,rW,iW,X$e=En(cc,"SizeOptions",267,Rn,inn,IVt),D$t;T(283,23,{3:1,34:1,23:1,283:1},Iq);var aA,K$e,oW,Q$e=En(cc,"TopdownNodeTypes",283,Rn,TQt,$Vt),F$t;T(290,23,R7);var Z$e,noe,eRe,tRe,W5=En(cc,"TopdownSizeApproximator",290,Rn,RZt,RVt);T(978,290,R7,GZe),g.Sg=function(t){return _ut(t)};var $rr=En(cc,"TopdownSizeApproximator/1",978,W5,null,null);T(979,290,R7,Met),g.Sg=function(t){var n,o,a,l,h,b,w,A,k,C,$,O,D,G,U,te,se,le,pe,Re,Ie,tt,wt,xt,Bt;for(n=d(Pe(t,(Gn(),rA)),144),tt=(jp(),D=new p$,D),UL(tt,t),wt=new Cn,h=new fn((!t.a&&(t.a=new Le(Dn,t,10,11)),t.a));h.e!=h.i.gc();)a=d(bn(h),19),le=(O=new p$,O),EB(le,tt),UL(le,a),Bt=_ut(a),Jy(le,m.Math.max(a.g,Bt.a),m.Math.max(a.f,Bt.b)),Nc(wt.f,a,le);for(l=new fn((!t.a&&(t.a=new Le(Dn,t,10,11)),t.a));l.e!=l.i.gc();)for(a=d(bn(l),19),C=new fn((!a.e&&(a.e=new Rt(zr,a,7,4)),a.e));C.e!=C.i.gc();)k=d(bn(C),74),Re=d(Gs(xs(wt.f,a)),19),Ie=d(Qt(wt,ue((!k.c&&(k.c=new Rt(Mn,k,5,8)),k.c),0)),19),pe=($=new oJ,$),jn((!pe.b&&(pe.b=new Rt(Mn,pe,4,7)),pe.b),Re),jn((!pe.c&&(pe.c=new Rt(Mn,pe,5,8)),pe.c),Ie),SB(pe,Zr(Re)),UL(pe,k);U=d(j4(n.f),207);try{U.kf(tt,new iJ),mme(n.f,U)}catch(Ft){throw Ft=ki(Ft),fe(Ft,102)?(G=Ft,Q(G)):Q(Ft)}return Cu(tt,eA)||Cu(tt,Zx)||bQ(tt),A=he(be(Pe(tt,eA))),w=he(be(Pe(tt,Zx))),b=A/w,o=he(be(Pe(tt,iA)))*m.Math.sqrt((!tt.a&&(tt.a=new Le(Dn,tt,10,11)),tt.a).i),xt=d(Pe(tt,th),100),se=xt.b+xt.c+1,te=xt.d+xt.a+1,new We(m.Math.max(se,o),m.Math.max(te,o/b))};var Rrr=En(cc,"TopdownSizeApproximator/2",979,W5,null,null);T(980,290,R7,ent),g.Sg=function(t){var n,o,a,l,h,b;return o=he(be(Pe(t,(Gn(),iA)))),n=o/he(be(Pe(t,zT))),a=hbn(t),h=d(Pe(t,th),100),l=he(be(et(Af))),Zr(t)&&(l=he(be(Pe(Zr(t),Af)))),b=Ng(new We(o,n),a),Mr(b,new We(-(h.b+h.c)-l,-(h.d+h.a)-l))};var Prr=En(cc,"TopdownSizeApproximator/3",980,W5,null,null);T(981,290,R7,Tet),g.Sg=function(t){var n,o,a,l,h,b,w,A,k,C;for(b=new fn((!t.a&&(t.a=new Le(Dn,t,10,11)),t.a));b.e!=b.i.gc();)h=d(bn(b),19),Pe(h,(Gn(),Kz))!=null&&(!h.a&&(h.a=new Le(Dn,h,10,11)),!!h.a)&&(!h.a&&(h.a=new Le(Dn,h,10,11)),h.a).i>0?(o=d(Pe(h,Kz),525),C=o.Sg(h),k=d(Pe(h,th),100),Jy(h,m.Math.max(h.g,C.a+k.b+k.c),m.Math.max(h.f,C.b+k.d+k.a))):(!h.a&&(h.a=new Le(Dn,h,10,11)),h.a).i!=0&&Jy(h,he(be(Pe(h,iA))),he(be(Pe(h,iA)))/he(be(Pe(h,zT))));n=d(Pe(t,(Gn(),rA)),144),A=d(j4(n.f),207);try{A.kf(t,new iJ),mme(n.f,A)}catch($){throw $=ki($),fe($,102)?(w=$,Q(w)):Q($)}return or(t,tE,rT),Vrt(t),bQ(t),l=he(be(Pe(t,eA))),a=he(be(Pe(t,Zx))),new We(l,a)};var Nrr=En(cc,"TopdownSizeApproximator/4",981,W5,null,null),_$t;T(346,1,{861:1},wk),g.Tg=function(t,n){return Qdt(this,t,n)},g.Ug=function(){Cft(this)},g.Vg=function(){return this.q},g.Wg=function(){return this.f?w9(this.f):null},g.Xg=function(){return w9(this.a)},g.Yg=function(){return this.p},g.Zg=function(){return!1},g.$g=function(){return this.n},g._g=function(){return this.p!=null&&!this.b},g.ah=function(t){var n;this.n&&(n=t,Ve(this.f,n))},g.bh=function(t,n){var o,a;this.n&&t&&qQt(this,(o=new Jet,a=XK(o,t),t0n(o),a),(Cj(),ioe))},g.dh=function(t){var n;return this.b?null:(n=Ltn(this,this.g),ir(this.a,n),n.i=this,this.d=t,n)},g.eh=function(t){t>0&&!this.b&&dbe(this,t)},g.b=!1,g.c=0,g.d=-1,g.e=null,g.f=null,g.g=-1,g.j=!1,g.k=!1,g.n=!1,g.o=0,g.q=0,g.r=0;var Orr=I(ga,"BasicProgressMonitor",346);T(713,207,G1,Gje),g.kf=function(t,n){gpt(t,n)};var Lrr=I(ga,"BoxLayoutProvider",713);T(974,1,tr,SUe),g.Le=function(t,n){return Qhn(this,d(t,19),d(n,19))},g.Fb=function(t){return this===t},g.Me=function(){return new Kn(this)},g.a=!1;var Drr=I(ga,"BoxLayoutProvider/1",974);T(168,1,{168:1},rj,rQe),g.Ib=function(){return this.c?iwe(this.c):Hf(this.b)};var Frr=I(ga,"BoxLayoutProvider/Group",168);T(327,23,{3:1,34:1,23:1,327:1},h8);var nRe,rRe,iRe,roe,oRe=En(ga,"BoxLayoutProvider/PackingMode",327,Rn,PZt,PVt),j$t;T(975,1,tr,zje),g.Le=function(t,n){return QXt(d(t,168),d(n,168))},g.Fb=function(t){return this===t},g.Me=function(){return new Kn(this)};var _rr=I(ga,"BoxLayoutProvider/lambda$0$Type",975);T(976,1,tr,Wje),g.Le=function(t,n){return GXt(d(t,168),d(n,168))},g.Fb=function(t){return this===t},g.Me=function(){return new Kn(this)};var jrr=I(ga,"BoxLayoutProvider/lambda$1$Type",976);T(977,1,tr,Hje),g.Le=function(t,n){return zXt(d(t,168),d(n,168))},g.Fb=function(t){return this===t},g.Me=function(){return new Kn(this)};var Brr=I(ga,"BoxLayoutProvider/lambda$2$Type",977);T(1350,1,{837:1},Uje),g.Lg=function(t,n){return F_(),!fe(n,176)||cVe((rS(),d(t,176)),n)};var Grr=I(ga,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1350);T(1351,1,mn,EUe),g.Ad=function(t){Jrn(this.a,d(t,149))};var zrr=I(ga,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1351);T(1352,1,mn,Jje),g.Ad=function(t){d(t,105),F_()};var Wrr=I(ga,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1352);T(1356,1,mn,CUe),g.Ad=function(t){ynn(this.a,d(t,105))};var Hrr=I(ga,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1356);T(1354,1,Xn,VYe),g.Mb=function(t){return $rn(this.a,this.b,d(t,149))};var Urr=I(ga,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1354);T(1353,1,Xn,YYe),g.Mb=function(t){return TUt(this.a,this.b,d(t,837))};var Jrr=I(ga,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1353);T(1355,1,mn,XYe),g.Ad=function(t){LYt(this.a,this.b,d(t,149))};var qrr=I(ga,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1355);T(939,1,{},qje),g.Kb=function(t){return YXe(t)},g.Fb=function(t){return this===t};var Vrr=I(ga,"ElkUtil/lambda$0$Type",939);T(940,1,mn,KYe),g.Ad=function(t){Zdn(this.a,this.b,d(t,74))},g.a=0,g.b=0;var Yrr=I(ga,"ElkUtil/lambda$1$Type",940);T(941,1,mn,QYe),g.Ad=function(t){Rzt(this.a,this.b,d(t,171))},g.a=0,g.b=0;var Xrr=I(ga,"ElkUtil/lambda$2$Type",941);T(942,1,mn,ZYe),g.Ad=function(t){SHt(this.a,this.b,d(t,158))},g.a=0,g.b=0;var Krr=I(ga,"ElkUtil/lambda$3$Type",942);T(943,1,mn,MUe),g.Ad=function(t){rYt(this.a,d(t,373))};var Qrr=I(ga,"ElkUtil/lambda$4$Type",943);T(332,1,{34:1,332:1},f$),g.Dd=function(t){return XHt(this,d(t,245))},g.Fb=function(t){var n;return fe(t,332)?(n=d(t,332),this.a==n.a):!1},g.Hb=function(){return $o(this.a)},g.Ib=function(){return this.a+" (exclusive)"},g.a=0;var Zrr=I(ga,"ExclusiveBounds/ExclusiveLowerBound",332);T(1100,207,G1,Vje),g.kf=function(t,n){var o,a,l,h,b,w,A,k,C,$,O,D,G,U,te,se,le,pe,Re,Ie,tt,wt,xt;for(n.Tg("Fixed Layout",1),h=d(Pe(t,(Gn(),KIe)),225),$=0,O=0,le=new fn((!t.a&&(t.a=new Le(Dn,t,10,11)),t.a));le.e!=le.i.gc();){for(te=d(bn(le),19),xt=d(Pe(te,(Mj(),Z3)),8),xt&&(vu(te,xt.a,xt.b),d(Pe(te,j$e),185).Gc((Ul(),sA))&&(D=d(Pe(te,G$e),8),D.a>0&&D.b>0&&k0(te,D.a,D.b,!0,!0))),$=m.Math.max($,te.i+te.g),O=m.Math.max(O,te.j+te.f),k=new fn((!te.n&&(te.n=new Le(Xs,te,1,7)),te.n));k.e!=k.i.gc();)w=d(bn(k),158),xt=d(Pe(w,Z3),8),xt&&vu(w,xt.a,xt.b),$=m.Math.max($,te.i+w.i+w.g),O=m.Math.max(O,te.j+w.j+w.f);for(Ie=new fn((!te.c&&(te.c=new Le(Tl,te,9,9)),te.c));Ie.e!=Ie.i.gc();)for(Re=d(bn(Ie),127),xt=d(Pe(Re,Z3),8),xt&&vu(Re,xt.a,xt.b),tt=te.i+Re.i,wt=te.j+Re.j,$=m.Math.max($,tt+Re.g),O=m.Math.max(O,wt+Re.f),A=new fn((!Re.n&&(Re.n=new Le(Xs,Re,1,7)),Re.n));A.e!=A.i.gc();)w=d(bn(A),158),xt=d(Pe(w,Z3),8),xt&&vu(w,xt.a,xt.b),$=m.Math.max($,tt+w.i+w.g),O=m.Math.max(O,wt+w.j+w.f);for(l=new Yt(tn(Yg(te).a.Jc(),new j));xn(l);)o=d(dn(l),74),C=$bt(o),$=m.Math.max($,C.a),O=m.Math.max(O,C.b);for(a=new Yt(tn(AB(te).a.Jc(),new j));xn(a);)o=d(dn(a),74),Zr(kK(o))!=t&&(C=$bt(o),$=m.Math.max($,C.a),O=m.Math.max(O,C.b))}if(h==(qg(),JT))for(se=new fn((!t.a&&(t.a=new Le(Dn,t,10,11)),t.a));se.e!=se.i.gc();)for(te=d(bn(se),19),a=new Yt(tn(Yg(te).a.Jc(),new j));xn(a);)o=d(dn(a),74),b=Qpn(o),b.b==0?or(o,v2,null):or(o,v2,b);it(rt(Pe(t,(Mj(),B$e))))||(pe=d(Pe(t,A$t),100),U=$+pe.b+pe.c,G=O+pe.d+pe.a,k0(t,U,G,!0,!0)),n.Ug()};var eir=I(ga,"FixedLayoutProvider",1100);T(380,151,{3:1,419:1,380:1,105:1,151:1},rJ,tst),g.ag=function(t){var n,o,a,l,h,b,w,A,k;if(t)try{for(A=xx(t,";,;"),h=A,b=0,w=h.length;b<w;++b){if(l=h[b],o=xx(l,"\\:"),a=Fwe(SR(),o[0]),!a)throw Q(new Vt("Invalid option id: "+o[0]));if(k=Lwe(a,o[1]),k==null)throw Q(new Vt("Invalid option value: "+o[1]));k==null?(!this.q&&(this.q=new Cn),Xk(this.q,a)):(!this.q&&(this.q=new Cn),cr(this.q,a,k))}}catch(C){throw C=ki(C),fe(C,102)?(n=C,Q(new Wct(n))):Q(C)}},g.Ib=function(){var t;return t=Jn(il(nc((this.q?this.q:(Pt(),Pt(),dg)).vc().Mc(),new Yje),utn(new xZe,new Lr,new Ue,new Wt,re(ne(Dc,1),Fe,132,0,[])))),t};var B$t=I(ga,"IndividualSpacings",380);T(973,1,{},Yje),g.Kb=function(t){return KXt(d(t,45))};var tir=I(ga,"IndividualSpacings/lambda$0$Type",973);T(715,1,{},ret),g.c=0;var nir=I(ga,"InstancePool",715);T(1833,1,{},Xje);var rir=I(ga,"LoggedGraph",1833);T(412,23,{3:1,34:1,23:1,412:1},g8);var sRe,ioe,aRe,cRe,G$t=En(ga,"LoggedGraph/Type",412,Rn,NZt,NVt),z$t;T(621,1,{861:1},iJ),g.Tg=function(t,n){return!1},g.Ug=function(){},g.Vg=function(){return 0},g.Wg=function(){return null},g.Xg=function(){return null},g.Yg=function(){return null},g.Zg=function(){return!1},g.$g=function(){return!1},g._g=function(){return!1},g.ah=function(t){},g.bh=function(t,n){},g.dh=function(t){return this},g.eh=function(t){};var iir=I(ga,"NullElkProgressMonitor",621);T(49,1,{22:1,49:1},Kje,Uo),g.Ic=function(t){Mo(this,t)},g.Fb=function(t){var n,o,a;return fe(t,49)?(o=d(t,49),n=this.a==null?o.a==null:Er(this.a,o.a),a=this.b==null?o.b==null:Er(this.b,o.b),n&&a):!1},g.Hb=function(){var t,n,o,a,l,h;return o=this.a==null?0:Wr(this.a),t=o&Li,n=o&-65536,h=this.b==null?0:Wr(this.b),a=h&Li,l=h&-65536,t^l>>16&Li|n^a<<16},g.Jc=function(){return new TUe(this)},g.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+Ds(this.b)+")":this.b==null?"pair("+Ds(this.a)+",null)":"pair("+Ds(this.a)+","+Ds(this.b)+")"};var oir=I(ga,"Pair",49);T(988,1,co,TUe),g.Nb=function(t){ko(this,t)},g.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},g.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw Q(new js)},g.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),Q(new Hc)},g.b=!1,g.c=!1;var sir=I(ga,"Pair/1",988);T(1089,207,G1,Qje),g.kf=function(t,n){var o,a,l,h,b;if(n.Tg("Random Layout",1),(!t.a&&(t.a=new Le(Dn,t,10,11)),t.a).i==0){n.Ug();return}h=d(Pe(t,($1e(),P$t)),15),h&&h.a!=0?l=new F9(h.a):l=new $X,o=JO(be(Pe(t,$$t))),b=JO(be(Pe(t,N$t))),a=d(Pe(t,R$t),100),v0n(t,l,o,b,a),n.Ug()};var air=I(ga,"RandomLayoutProvider",1089);T(243,1,{243:1},cV),g.Fb=function(t){return Ca(this.a,d(t,243).a)&&Ca(this.b,d(t,243).b)&&Ca(this.c,d(t,243).c)},g.Hb=function(){return Tj(re(ne(Wi,1),zt,1,5,[this.a,this.b,this.c]))},g.Ib=function(){return"("+this.a+ac+this.b+ac+this.c+")"};var cir=I(ga,"Triple",243),W$t;T(554,1,{}),g.Jf=function(){return new We(this.f.i,this.f.j)},g.mf=function(t){return Ktt(t,(Gn(),Ml))?Pe(this.f,H$t):Pe(this.f,t)},g.Kf=function(){return new We(this.f.g,this.f.f)},g.Lf=function(){return this.g},g.nf=function(t){return Cu(this.f,t)},g.Mf=function(t){Ga(this.f,t.a),Yc(this.f,t.b)},g.Nf=function(t){E1(this.f,t.a),S1(this.f,t.b)},g.Of=function(t){this.g=t},g.g=0;var H$t,lir=I(OP,"ElkGraphAdapters/AbstractElkGraphElementAdapter",554);T(556,1,{845:1},p_),g.Pf=function(){var t,n;if(!this.b)for(this.b=I9(jV(this.a).i),n=new fn(jV(this.a));n.e!=n.i.gc();)t=d(bn(n),158),Ve(this.b,new LJ(t));return this.b},g.b=null;var uir=I(OP,"ElkGraphAdapters/ElkEdgeAdapter",556);T(250,554,{},Om),g.Qf=function(){return idt(this)},g.a=null;var dir=I(OP,"ElkGraphAdapters/ElkGraphAdapter",250);T(637,554,{190:1},LJ);var fir=I(OP,"ElkGraphAdapters/ElkLabelAdapter",637);T(555,554,{692:1},$8),g.Pf=function(){return xan(this)},g.Tf=function(){var t;return t=d(Pe(this.f,(Gn(),am)),125),!t&&(t=new m$),t},g.Vf=function(){return Aan(this)},g.Xf=function(t){var n;n=new sV(t),or(this.f,(Gn(),am),n)},g.Yf=function(t){or(this.f,(Gn(),th),new gge(t))},g.Rf=function(){return this.d},g.Sf=function(){var t,n;if(!this.a)for(this.a=new qe,n=new Yt(tn(AB(d(this.f,19)).a.Jc(),new j));xn(n);)t=d(dn(n),74),Ve(this.a,new p_(t));return this.a},g.Uf=function(){var t,n;if(!this.c)for(this.c=new qe,n=new Yt(tn(Yg(d(this.f,19)).a.Jc(),new j));xn(n);)t=d(dn(n),74),Ve(this.c,new p_(t));return this.c},g.Wf=function(){return b9(d(this.f,19)).i!=0||it(rt(d(this.f,19).mf((Gn(),$5))))},g.Zf=function(){mtn(this,(Bp(),W$t))},g.a=null,g.b=null,g.c=null,g.d=null,g.e=null;var hir=I(OP,"ElkGraphAdapters/ElkNodeAdapter",555);T(1261,554,{844:1},IUe),g.Pf=function(){return Tan(this)},g.Sf=function(){var t,n;if(!this.a)for(this.a=Vh(d(this.f,127).gh().i),n=new fn(d(this.f,127).gh());n.e!=n.i.gc();)t=d(bn(n),74),Ve(this.a,new p_(t));return this.a},g.Uf=function(){var t,n;if(!this.c)for(this.c=Vh(d(this.f,127).hh().i),n=new fn(d(this.f,127).hh());n.e!=n.i.gc();)t=d(bn(n),74),Ve(this.c,new p_(t));return this.c},g.$f=function(){return d(d(this.f,127).mf((Gn(),E2)),64)},g._f=function(){var t,n,o,a,l,h,b,w;for(a=Lf(d(this.f,127)),o=new fn(d(this.f,127).hh());o.e!=o.i.gc();)for(t=d(bn(o),74),w=new fn((!t.c&&(t.c=new Rt(Mn,t,5,8)),t.c));w.e!=w.i.gc();){if(b=d(bn(w),83),tx(gs(b),a))return!0;if(gs(b)==a&&it(rt(Pe(t,(Gn(),Gie)))))return!0}for(n=new fn(d(this.f,127).gh());n.e!=n.i.gc();)for(t=d(bn(n),74),h=new fn((!t.b&&(t.b=new Rt(Mn,t,4,7)),t.b));h.e!=h.i.gc();)if(l=d(bn(h),83),tx(gs(l),a))return!0;return!1},g.a=null,g.b=null,g.c=null;var gir=I(OP,"ElkGraphAdapters/ElkPortAdapter",1261);T(1262,1,tr,Zje),g.Le=function(t,n){return Hmn(d(t,127),d(n,127))},g.Fb=function(t){return this===t},g.Me=function(){return new Kn(this)};var mir=I(OP,"ElkGraphAdapters/PortComparator",1262),Lb=ni(Du,"EObject"),YT=ni(qv,q0t),bu=ni(qv,V0t),H5=ni(qv,Y0t),U5=ni(qv,"ElkShape"),Mn=ni(qv,X0t),zr=ni(qv,s2e),Vr=ni(qv,K0t),J5=ni(Du,Q0t),aN=ni(Du,"EFactory"),U$t,ooe=ni(Du,Z0t),vf=ni(Du,"EPackage"),no,J$t,q$t,lRe,sW,V$t,uRe,dRe,fRe,yg,Y$t,X$t,Xs=ni(qv,a2e),Dn=ni(qv,c2e),Tl=ni(qv,l2e);T(94,1,ewt),g.qh=function(){return this.rh(),null},g.rh=function(){return null},g.sh=function(){return this.rh(),!1},g.th=function(){return!1},g.uh=function(t){kr(this,t)};var pir=I(PS,"BasicNotifierImpl",94);T(101,94,iwt),g.Vh=function(){return Ll(this)},g.vh=function(t,n){return t},g.wh=function(){throw Q(new Hn)},g.xh=function(t){var n;return n=Ko(d(jt(this.Ah(),this.Ch()),20)),this.Mh().Qh(this,n.n,n.f,t)},g.yh=function(t,n){throw Q(new Hn)},g.zh=function(t,n,o){return lu(this,t,n,o)},g.Ah=function(){var t;return this.wh()&&(t=this.wh().Lk(),t)?t:this.fi()},g.Bh=function(){return LK(this)},g.Ch=function(){throw Q(new Hn)},g.Dh=function(){var t,n;return n=this.Xh().Mk(),!n&&this.wh().Rk(n=($$(),t=$me(vh(this.Ah())),t==null?hoe:new x4(this,t))),n},g.Eh=function(t,n){return t},g.Fh=function(t){var n;return n=t.nk(),n?t.Jj():ei(this.Ah(),t)},g.Gh=function(){var t;return t=this.wh(),t?t.Ok():null},g.Hh=function(){return this.wh()?this.wh().Lk():null},g.Ih=function(t,n,o){return Xj(this,t,n,o)},g.Jh=function(t){return jC(this,t)},g.Kh=function(t,n){return wY(this,t,n)},g.Lh=function(){var t;return t=this.wh(),!!t&&t.Pk()},g.Mh=function(){throw Q(new Hn)},g.Nh=function(){return Uj(this)},g.Oh=function(t,n,o,a){return lS(this,t,n,a)},g.Ph=function(t,n,o){var a;return a=d(jt(this.Ah(),n),69),a.uk().xk(this,this.ei(),n-this.gi(),t,o)},g.Qh=function(t,n,o,a){return v9(this,t,n,a)},g.Rh=function(t,n,o){var a;return a=d(jt(this.Ah(),n),69),a.uk().yk(this,this.ei(),n-this.gi(),t,o)},g.Sh=function(){return!!this.wh()&&!!this.wh().Nk()},g.Th=function(t){return UX(this,t)},g.Uh=function(t){return hnt(this,t)},g.Wh=function(t){return fbt(this,t)},g.Xh=function(){throw Q(new Hn)},g.Yh=function(){return this.wh()?this.wh().Nk():null},g.Zh=function(){return Uj(this)},g.$h=function(t,n){$K(this,t,n)},g._h=function(t){this.Xh().Qk(t)},g.ai=function(t){this.Xh().Tk(t)},g.bi=function(t){this.Xh().Sk(t)},g.ci=function(t,n){var o,a,l,h;return h=this.Gh(),h&&t&&(n=Go(h.Cl(),this,n),h.Gl(this)),a=this.Mh(),a&&((qK(this,this.Mh(),this.Ch()).Bb&Jo)!=0?(l=a.Nh(),l&&(t?!h&&l.Gl(this):l.Fl(this))):(n=(o=this.Ch(),o>=0?this.xh(n):this.Mh().Qh(this,-1-o,null,n)),n=this.zh(null,-1,n))),this.ai(t),n},g.di=function(t){var n,o,a,l,h,b,w,A;if(o=this.Ah(),h=ei(o,t),n=this.gi(),h>=n)return d(t,69).uk().Bk(this,this.ei(),h-n);if(h<=-1)if(b=_v((Kc(),So),o,t),b){if(Xo(),d(b,69).vk()||(b=qk(vs(So,b))),l=(a=this.Fh(b),d(a>=0?this.Ih(a,!0,!0):x0(this,b,!0),164)),A=b.Gk(),A>1||A==-1)return d(d(l,222).Ql(t,!1),78)}else throw Q(new Vt(bb+t.ve()+Tee));else if(t.Hk())return a=this.Fh(t),d(a>=0?this.Ih(a,!1,!0):x0(this,t,!1),78);return w=new AXe(this,t),w},g.ei=function(){return _pe(this)},g.fi=function(){return(Jp(),Kt).S},g.gi=function(){return vn(this.fi())},g.hi=function(t){MK(this,t)},g.Ib=function(){return Fd(this)};var bir=I(en,"BasicEObjectImpl",101),K$t;T(118,101,{110:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1}),g.ii=function(t){var n;return n=Fpe(this),n[t]},g.ji=function(t,n){var o;o=Fpe(this),yi(o,t,n)},g.ki=function(t){var n;n=Fpe(this),yi(n,t,null)},g.qh=function(){return d(nn(this,4),131)},g.rh=function(){throw Q(new Hn)},g.sh=function(){return(this.Db&4)!=0},g.wh=function(){throw Q(new Hn)},g.li=function(t){sS(this,2,t)},g.yh=function(t,n){this.Db=n<<16|this.Db&255,this.li(t)},g.Ah=function(){return Ic(this)},g.Ch=function(){return this.Db>>16},g.Dh=function(){var t,n;return $$(),n=$me(vh((t=d(nn(this,16),29),t||this.fi()))),n==null?hoe:new x4(this,n)},g.th=function(){return(this.Db&1)==0},g.Gh=function(){return d(nn(this,128),2013)},g.Hh=function(){return d(nn(this,16),29)},g.Lh=function(){return(this.Db&32)!=0},g.Mh=function(){return d(nn(this,2),52)},g.Sh=function(){return(this.Db&64)!=0},g.Xh=function(){throw Q(new Hn)},g.Yh=function(){return d(nn(this,64),291)},g._h=function(t){sS(this,16,t)},g.ai=function(t){sS(this,128,t)},g.bi=function(t){sS(this,64,t)},g.ei=function(){return bc(this)},g.Db=0;var yir=I(en,"MinimalEObjectImpl",118);T(119,118,{110:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),g.li=function(t){this.Cb=t},g.Mh=function(){return this.Cb};var wir=I(en,"MinimalEObjectImpl/Container",119);T(2062,119,{110:1,344:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),g.Ih=function(t,n,o){return Z1e(this,t,n,o)},g.Rh=function(t,n,o){return zye(this,t,n,o)},g.Th=function(t){return Hme(this,t)},g.$h=function(t,n){_be(this,t,n)},g.fi=function(){return wa(),X$t},g.hi=function(t){Mbe(this,t)},g.lf=function(){return Sut(this)},g.fh=function(){return!this.o&&(this.o=new Vc((wa(),yg),pp,this,0)),this.o},g.mf=function(t){return Pe(this,t)},g.nf=function(t){return Cu(this,t)},g.of=function(t,n){return or(this,t,n)};var xir=I(H1,"EMapPropertyHolderImpl",2062);T(566,119,{110:1,373:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},s_),g.Ih=function(t,n,o){switch(t){case 0:return this.a;case 1:return this.b}return Xj(this,t,n,o)},g.Th=function(t){switch(t){case 0:return this.a!=0;case 1:return this.b!=0}return UX(this,t)},g.$h=function(t,n){switch(t){case 0:oj(this,he(be(n)));return;case 1:ij(this,he(be(n)));return}$K(this,t,n)},g.fi=function(){return wa(),J$t},g.hi=function(t){switch(t){case 0:oj(this,0);return;case 1:ij(this,0);return}MK(this,t)},g.Ib=function(){var t;return(this.Db&64)!=0?Fd(this):(t=new Zu(Fd(this)),t.a+=" (x: ",ev(t,this.a),t.a+=", y: ",ev(t,this.b),t.a+=")",t.a)},g.a=0,g.b=0;var Air=I(H1,"ElkBendPointImpl",566);T(734,2062,{110:1,344:1,176:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),g.Ih=function(t,n,o){return i1e(this,t,n,o)},g.Ph=function(t,n,o){return wK(this,t,n,o)},g.Rh=function(t,n,o){return nX(this,t,n,o)},g.Th=function(t){return xbe(this,t)},g.$h=function(t,n){yye(this,t,n)},g.fi=function(){return wa(),V$t},g.hi=function(t){e1e(this,t)},g.ih=function(){return this.k},g.jh=function(){return jV(this)},g.Ib=function(){return IX(this)},g.k=null;var vir=I(H1,"ElkGraphElementImpl",734);T(735,734,{110:1,344:1,176:1,278:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),g.Ih=function(t,n,o){return p1e(this,t,n,o)},g.Th=function(t){return C1e(this,t)},g.$h=function(t,n){wye(this,t,n)},g.fi=function(){return wa(),Y$t},g.hi=function(t){M1e(this,t)},g.kh=function(){return this.f},g.lh=function(){return this.g},g.mh=function(){return this.i},g.nh=function(){return this.j},g.oh=function(t,n){Jy(this,t,n)},g.ph=function(t,n){vu(this,t,n)},g.Ib=function(){return EK(this)},g.f=0,g.g=0,g.i=0,g.j=0;var kir=I(H1,"ElkShapeImpl",735);T(736,735,{110:1,344:1,83:1,176:1,278:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),g.Ih=function(t,n,o){return q1e(this,t,n,o)},g.Ph=function(t,n,o){return fye(this,t,n,o)},g.Rh=function(t,n,o){return hye(this,t,n,o)},g.Th=function(t){return Pbe(this,t)},g.$h=function(t,n){C0e(this,t,n)},g.fi=function(){return wa(),q$t},g.hi=function(t){z1e(this,t)},g.gh=function(){return!this.d&&(this.d=new Rt(zr,this,8,5)),this.d},g.hh=function(){return!this.e&&(this.e=new Rt(zr,this,7,4)),this.e};var Sir=I(H1,"ElkConnectableShapeImpl",736);T(273,734,{110:1,344:1,74:1,176:1,273:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},oJ),g.xh=function(t){return cye(this,t)},g.Ih=function(t,n,o){switch(t){case 3:return Vw(this);case 4:return!this.b&&(this.b=new Rt(Mn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Rt(Mn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new Le(Vr,this,6,6)),this.a;case 7:return Ut(),!this.b&&(this.b=new Rt(Mn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Rt(Mn,this,5,8)),this.c.i<=1));case 8:return Ut(),!!tP(this);case 9:return Ut(),!!w0(this);case 10:return Ut(),!this.b&&(this.b=new Rt(Mn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Rt(Mn,this,5,8)),this.c.i!=0)}return i1e(this,t,n,o)},g.Ph=function(t,n,o){var a;switch(n){case 3:return this.Cb&&(o=(a=this.Db>>16,a>=0?cye(this,o):this.Cb.Qh(this,-1-a,null,o))),Whe(this,d(t,19),o);case 4:return!this.b&&(this.b=new Rt(Mn,this,4,7)),sc(this.b,t,o);case 5:return!this.c&&(this.c=new Rt(Mn,this,5,8)),sc(this.c,t,o);case 6:return!this.a&&(this.a=new Le(Vr,this,6,6)),sc(this.a,t,o)}return wK(this,t,n,o)},g.Rh=function(t,n,o){switch(n){case 3:return Whe(this,null,o);case 4:return!this.b&&(this.b=new Rt(Mn,this,4,7)),Go(this.b,t,o);case 5:return!this.c&&(this.c=new Rt(Mn,this,5,8)),Go(this.c,t,o);case 6:return!this.a&&(this.a=new Le(Vr,this,6,6)),Go(this.a,t,o)}return nX(this,t,n,o)},g.Th=function(t){switch(t){case 3:return!!Vw(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Rt(Mn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Rt(Mn,this,5,8)),this.c.i<=1));case 8:return tP(this);case 9:return w0(this);case 10:return!this.b&&(this.b=new Rt(Mn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Rt(Mn,this,5,8)),this.c.i!=0)}return xbe(this,t)},g.$h=function(t,n){switch(t){case 3:SB(this,d(n,19));return;case 4:!this.b&&(this.b=new Rt(Mn,this,4,7)),Ln(this.b),!this.b&&(this.b=new Rt(Mn,this,4,7)),gi(this.b,d(n,18));return;case 5:!this.c&&(this.c=new Rt(Mn,this,5,8)),Ln(this.c),!this.c&&(this.c=new Rt(Mn,this,5,8)),gi(this.c,d(n,18));return;case 6:!this.a&&(this.a=new Le(Vr,this,6,6)),Ln(this.a),!this.a&&(this.a=new Le(Vr,this,6,6)),gi(this.a,d(n,18));return}yye(this,t,n)},g.fi=function(){return wa(),lRe},g.hi=function(t){switch(t){case 3:SB(this,null);return;case 4:!this.b&&(this.b=new Rt(Mn,this,4,7)),Ln(this.b);return;case 5:!this.c&&(this.c=new Rt(Mn,this,5,8)),Ln(this.c);return;case 6:!this.a&&(this.a=new Le(Vr,this,6,6)),Ln(this.a);return}e1e(this,t)},g.Ib=function(){return Rpt(this)};var Eir=I(H1,"ElkEdgeImpl",273);T(446,2062,{110:1,344:1,171:1,446:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},o_),g.xh=function(t){return iye(this,t)},g.Ih=function(t,n,o){switch(t){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new Ni(bu,this,5)),this.a;case 6:return lnt(this);case 7:return n?XX(this):this.i;case 8:return n?YX(this):this.f;case 9:return!this.g&&(this.g=new Rt(Vr,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Rt(Vr,this,10,9)),this.e;case 11:return this.d}return Z1e(this,t,n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 6:return this.Cb&&(o=(l=this.Db>>16,l>=0?iye(this,o):this.Cb.Qh(this,-1-l,null,o))),Hhe(this,d(t,74),o);case 9:return!this.g&&(this.g=new Rt(Vr,this,9,10)),sc(this.g,t,o);case 10:return!this.e&&(this.e=new Rt(Vr,this,10,9)),sc(this.e,t,o)}return h=d(jt((a=d(nn(this,16),29),a||(wa(),sW)),n),69),h.uk().xk(this,bc(this),n-vn((wa(),sW)),t,o)},g.Rh=function(t,n,o){switch(n){case 5:return!this.a&&(this.a=new Ni(bu,this,5)),Go(this.a,t,o);case 6:return Hhe(this,null,o);case 9:return!this.g&&(this.g=new Rt(Vr,this,9,10)),Go(this.g,t,o);case 10:return!this.e&&(this.e=new Rt(Vr,this,10,9)),Go(this.e,t,o)}return zye(this,t,n,o)},g.Th=function(t){switch(t){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!lnt(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return Hme(this,t)},g.$h=function(t,n){switch(t){case 1:l0(this,he(be(n)));return;case 2:u0(this,he(be(n)));return;case 3:a0(this,he(be(n)));return;case 4:c0(this,he(be(n)));return;case 5:!this.a&&(this.a=new Ni(bu,this,5)),Ln(this.a),!this.a&&(this.a=new Ni(bu,this,5)),gi(this.a,d(n,18));return;case 6:Cgt(this,d(n,74));return;case 7:fj(this,d(n,83));return;case 8:dj(this,d(n,83));return;case 9:!this.g&&(this.g=new Rt(Vr,this,9,10)),Ln(this.g),!this.g&&(this.g=new Rt(Vr,this,9,10)),gi(this.g,d(n,18));return;case 10:!this.e&&(this.e=new Rt(Vr,this,10,9)),Ln(this.e),!this.e&&(this.e=new Rt(Vr,this,10,9)),gi(this.e,d(n,18));return;case 11:lbe(this,Jn(n));return}_be(this,t,n)},g.fi=function(){return wa(),sW},g.hi=function(t){switch(t){case 1:l0(this,0);return;case 2:u0(this,0);return;case 3:a0(this,0);return;case 4:c0(this,0);return;case 5:!this.a&&(this.a=new Ni(bu,this,5)),Ln(this.a);return;case 6:Cgt(this,null);return;case 7:fj(this,null);return;case 8:dj(this,null);return;case 9:!this.g&&(this.g=new Rt(Vr,this,9,10)),Ln(this.g);return;case 10:!this.e&&(this.e=new Rt(Vr,this,10,9)),Ln(this.e);return;case 11:lbe(this,null);return}Mbe(this,t)},g.Ib=function(){return Fht(this)},g.b=0,g.c=0,g.d=null,g.j=0,g.k=0;var Cir=I(H1,"ElkEdgeSectionImpl",446);T(162,119,{110:1,95:1,94:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1}),g.Ih=function(t,n,o){var a;return t==0?(!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab):Mu(this,t-vn(this.fi()),jt((a=d(nn(this,16),29),a||this.fi()),t),n,o)},g.Ph=function(t,n,o){var a,l;return n==0?(!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o)):(l=d(jt((a=d(nn(this,16),29),a||this.fi()),n),69),l.uk().xk(this,bc(this),n-vn(this.fi()),t,o))},g.Rh=function(t,n,o){var a,l;return n==0?(!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o)):(l=d(jt((a=d(nn(this,16),29),a||this.fi()),n),69),l.uk().yk(this,bc(this),n-vn(this.fi()),t,o))},g.Th=function(t){var n;return t==0?!!this.Ab&&this.Ab.i!=0:Eu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.Wh=function(t){return Hwe(this,t)},g.$h=function(t,n){var o;if(t===0){!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return}Nu(this,t-vn(this.fi()),jt((o=d(nn(this,16),29),o||this.fi()),t),n)},g.ai=function(t){sS(this,128,t)},g.fi=function(){return Nt(),pRt},g.hi=function(t){var n;if(t===0){!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return}Pu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.mi=function(){this.Bb|=1},g.ni=function(t){return cP(this,t)},g.Bb=0;var Mir=I(en,"EModelElementImpl",162);T(717,162,{110:1,95:1,94:1,472:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1},Wue),g.oi=function(t,n){return obt(this,t,n)},g.pi=function(t){var n,o,a,l,h;if(this.a!=iu(t)||(t.Bb&256)!=0)throw Q(new Vt($ee+t.zb+L0));for(a=Rs(t);Ma(a.a).i!=0;){if(o=d(eD(a,0,(n=d(ue(Ma(a.a),0),88),h=n.c,fe(h,89)?d(h,29):(Nt(),yd))),29),y0(o))return l=iu(o).ti().pi(o),d(l,52)._h(t),l;a=Rs(o)}return(t.D!=null?t.D:t.B)=="java.util.Map$Entry"?new BZe(t):new $ge(t)},g.qi=function(t,n){return S0(this,t,n)},g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.a}return Mu(this,t-vn((Nt(),jb)),jt((a=d(nn(this,16),29),a||jb),t),n,o)},g.Ph=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 1:return this.a&&(o=d(this.a,52).Qh(this,4,vf,o)),Kbe(this,d(t,244),o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),jb)),n),69),l.uk().xk(this,bc(this),n-vn((Nt(),jb)),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 1:return Kbe(this,null,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),jb)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),jb)),t,o)},g.Th=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return Eu(this,t-vn((Nt(),jb)),jt((n=d(nn(this,16),29),n||jb),t))},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:dft(this,d(n,244));return}Nu(this,t-vn((Nt(),jb)),jt((o=d(nn(this,16),29),o||jb),t),n)},g.fi=function(){return Nt(),jb},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:dft(this,null);return}Pu(this,t-vn((Nt(),jb)),jt((n=d(nn(this,16),29),n||jb),t))};var cN,hRe,Q$t,Tir=I(en,"EFactoryImpl",717);T(1029,717,{110:1,2092:1,95:1,94:1,472:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1},tBe),g.oi=function(t,n){switch(t.fk()){case 12:return d(n,149).Og();case 13:return Ds(n);default:throw Q(new Vt(iT+t.ve()+L0))}},g.pi=function(t){var n,o,a,l,h,b,w,A;switch(t.G==-1&&(t.G=(n=iu(t),n?ep(n.si(),t):-1)),t.G){case 4:return h=new _ue,h;case 6:return b=new p$,b;case 7:return w=new Lde,w;case 8:return a=new oJ,a;case 9:return o=new s_,o;case 10:return l=new o_,l;case 11:return A=new nBe,A;default:throw Q(new Vt($ee+t.zb+L0))}},g.qi=function(t,n){switch(t.fk()){case 13:case 12:return null;default:throw Q(new Vt(iT+t.ve()+L0))}};var Iir=I(H1,"ElkGraphFactoryImpl",1029);T(444,162,{110:1,95:1,94:1,159:1,199:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1}),g.Dh=function(){var t,n;return n=(t=d(nn(this,16),29),$me(vh(t||this.fi()))),n==null?($$(),$$(),hoe):new oQe(this,n)},g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.ve()}return Mu(this,t-vn(this.fi()),jt((a=d(nn(this,16),29),a||this.fi()),t),n,o)},g.Th=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return Eu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:this.ri(Jn(n));return}Nu(this,t-vn(this.fi()),jt((o=d(nn(this,16),29),o||this.fi()),t),n)},g.fi=function(){return Nt(),bRt},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:this.ri(null);return}Pu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.ve=function(){return this.zb},g.ri=function(t){oc(this,t)},g.Ib=function(){return LR(this)},g.zb=null;var $ir=I(en,"ENamedElementImpl",444);T(187,444,{110:1,95:1,94:1,159:1,199:1,57:1,244:1,115:1,52:1,101:1,162:1,187:1,118:1,119:1,687:1},Gtt),g.xh=function(t){return xdt(this,t)},g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Hw(this,kf,this)),this.rb;case 6:return!this.vb&&(this.vb=new Lk(vf,this,6,7)),this.vb;case 7:return n?this.Db>>16==7?d(this.Cb,244):null:ynt(this)}return Mu(this,t-vn((Nt(),xp)),jt((a=d(nn(this,16),29),a||xp),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 4:return this.sb&&(o=d(this.sb,52).Qh(this,1,aN,o)),t1e(this,d(t,472),o);case 5:return!this.rb&&(this.rb=new Hw(this,kf,this)),sc(this.rb,t,o);case 6:return!this.vb&&(this.vb=new Lk(vf,this,6,7)),sc(this.vb,t,o);case 7:return this.Cb&&(o=(l=this.Db>>16,l>=0?xdt(this,o):this.Cb.Qh(this,-1-l,null,o))),lu(this,t,7,o)}return h=d(jt((a=d(nn(this,16),29),a||(Nt(),xp)),n),69),h.uk().xk(this,bc(this),n-vn((Nt(),xp)),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 4:return t1e(this,null,o);case 5:return!this.rb&&(this.rb=new Hw(this,kf,this)),Go(this.rb,t,o);case 6:return!this.vb&&(this.vb=new Lk(vf,this,6,7)),Go(this.vb,t,o);case 7:return lu(this,null,7,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),xp)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),xp)),t,o)},g.Th=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!ynt(this)}return Eu(this,t-vn((Nt(),xp)),jt((n=d(nn(this,16),29),n||xp),t))},g.Wh=function(t){var n;return n=cgn(this,t),n||Hwe(this,t)},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:oc(this,Jn(n));return;case 2:bj(this,Jn(n));return;case 3:pj(this,Jn(n));return;case 4:SK(this,d(n,472));return;case 5:!this.rb&&(this.rb=new Hw(this,kf,this)),Ln(this.rb),!this.rb&&(this.rb=new Hw(this,kf,this)),gi(this.rb,d(n,18));return;case 6:!this.vb&&(this.vb=new Lk(vf,this,6,7)),Ln(this.vb),!this.vb&&(this.vb=new Lk(vf,this,6,7)),gi(this.vb,d(n,18));return}Nu(this,t-vn((Nt(),xp)),jt((o=d(nn(this,16),29),o||xp),t),n)},g.bi=function(t){var n,o;if(t&&this.rb)for(o=new fn(this.rb);o.e!=o.i.gc();)n=bn(o),fe(n,361)&&(d(n,361).w=null);sS(this,64,t)},g.fi=function(){return Nt(),xp},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:oc(this,null);return;case 2:bj(this,null);return;case 3:pj(this,null);return;case 4:SK(this,null);return;case 5:!this.rb&&(this.rb=new Hw(this,kf,this)),Ln(this.rb);return;case 6:!this.vb&&(this.vb=new Lk(vf,this,6,7)),Ln(this.vb);return}Pu(this,t-vn((Nt(),xp)),jt((n=d(nn(this,16),29),n||xp),t))},g.mi=function(){lK(this)},g.si=function(){return!this.rb&&(this.rb=new Hw(this,kf,this)),this.rb},g.ti=function(){return this.sb},g.ui=function(){return this.ub},g.vi=function(){return this.xb},g.wi=function(){return this.yb},g.xi=function(t){this.ub=t},g.Ib=function(){var t;return(this.Db&64)!=0?LR(this):(t=new Zu(LR(this)),t.a+=" (nsURI: ",ds(t,this.yb),t.a+=", nsPrefix: ",ds(t,this.xb),t.a+=")",t.a)},g.xb=null,g.yb=null;var Z$t,Rir=I(en,"EPackageImpl",187);T(563,187,{110:1,2094:1,563:1,95:1,94:1,159:1,199:1,57:1,244:1,115:1,52:1,101:1,162:1,187:1,118:1,119:1,687:1},Uht),g.q=!1,g.r=!1;var eRt=!1,Pir=I(H1,"ElkGraphPackageImpl",563);T(363,735,{110:1,344:1,176:1,158:1,278:1,363:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},_ue),g.xh=function(t){return oye(this,t)},g.Ih=function(t,n,o){switch(t){case 7:return Lme(this);case 8:return this.a}return p1e(this,t,n,o)},g.Ph=function(t,n,o){var a;return n===7?(this.Cb&&(o=(a=this.Db>>16,a>=0?oye(this,o):this.Cb.Qh(this,-1-a,null,o))),Hge(this,d(t,176),o)):wK(this,t,n,o)},g.Rh=function(t,n,o){return n==7?Hge(this,null,o):nX(this,t,n,o)},g.Th=function(t){switch(t){case 7:return!!Lme(this);case 8:return!Mt("",this.a)}return C1e(this,t)},g.$h=function(t,n){switch(t){case 7:z0e(this,d(n,176));return;case 8:sbe(this,Jn(n));return}wye(this,t,n)},g.fi=function(){return wa(),uRe},g.hi=function(t){switch(t){case 7:z0e(this,null);return;case 8:sbe(this,"");return}M1e(this,t)},g.Ib=function(){return Rft(this)},g.a="";var Nir=I(H1,"ElkLabelImpl",363);T(209,736,{110:1,344:1,83:1,176:1,19:1,278:1,209:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},p$),g.xh=function(t){return lye(this,t)},g.Ih=function(t,n,o){switch(t){case 9:return!this.c&&(this.c=new Le(Tl,this,9,9)),this.c;case 10:return!this.a&&(this.a=new Le(Dn,this,10,11)),this.a;case 11:return Zr(this);case 12:return!this.b&&(this.b=new Le(zr,this,12,3)),this.b;case 13:return Ut(),!this.a&&(this.a=new Le(Dn,this,10,11)),this.a.i>0}return q1e(this,t,n,o)},g.Ph=function(t,n,o){var a;switch(n){case 9:return!this.c&&(this.c=new Le(Tl,this,9,9)),sc(this.c,t,o);case 10:return!this.a&&(this.a=new Le(Dn,this,10,11)),sc(this.a,t,o);case 11:return this.Cb&&(o=(a=this.Db>>16,a>=0?lye(this,o):this.Cb.Qh(this,-1-a,null,o))),tge(this,d(t,19),o);case 12:return!this.b&&(this.b=new Le(zr,this,12,3)),sc(this.b,t,o)}return fye(this,t,n,o)},g.Rh=function(t,n,o){switch(n){case 9:return!this.c&&(this.c=new Le(Tl,this,9,9)),Go(this.c,t,o);case 10:return!this.a&&(this.a=new Le(Dn,this,10,11)),Go(this.a,t,o);case 11:return tge(this,null,o);case 12:return!this.b&&(this.b=new Le(zr,this,12,3)),Go(this.b,t,o)}return hye(this,t,n,o)},g.Th=function(t){switch(t){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!Zr(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new Le(Dn,this,10,11)),this.a.i>0}return Pbe(this,t)},g.$h=function(t,n){switch(t){case 9:!this.c&&(this.c=new Le(Tl,this,9,9)),Ln(this.c),!this.c&&(this.c=new Le(Tl,this,9,9)),gi(this.c,d(n,18));return;case 10:!this.a&&(this.a=new Le(Dn,this,10,11)),Ln(this.a),!this.a&&(this.a=new Le(Dn,this,10,11)),gi(this.a,d(n,18));return;case 11:EB(this,d(n,19));return;case 12:!this.b&&(this.b=new Le(zr,this,12,3)),Ln(this.b),!this.b&&(this.b=new Le(zr,this,12,3)),gi(this.b,d(n,18));return}C0e(this,t,n)},g.fi=function(){return wa(),dRe},g.hi=function(t){switch(t){case 9:!this.c&&(this.c=new Le(Tl,this,9,9)),Ln(this.c);return;case 10:!this.a&&(this.a=new Le(Dn,this,10,11)),Ln(this.a);return;case 11:EB(this,null);return;case 12:!this.b&&(this.b=new Le(zr,this,12,3)),Ln(this.b);return}z1e(this,t)},g.Ib=function(){return iwe(this)};var Oir=I(H1,"ElkNodeImpl",209);T(196,736,{110:1,344:1,83:1,176:1,127:1,278:1,196:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},Lde),g.xh=function(t){return sye(this,t)},g.Ih=function(t,n,o){return t==9?Lf(this):q1e(this,t,n,o)},g.Ph=function(t,n,o){var a;return n===9?(this.Cb&&(o=(a=this.Db>>16,a>=0?sye(this,o):this.Cb.Qh(this,-1-a,null,o))),Uhe(this,d(t,19),o)):fye(this,t,n,o)},g.Rh=function(t,n,o){return n==9?Uhe(this,null,o):hye(this,t,n,o)},g.Th=function(t){return t==9?!!Lf(this):Pbe(this,t)},g.$h=function(t,n){if(t===9){F0e(this,d(n,19));return}C0e(this,t,n)},g.fi=function(){return wa(),fRe},g.hi=function(t){if(t===9){F0e(this,null);return}z1e(this,t)},g.Ib=function(){return Emt(this)};var Lir=I(H1,"ElkPortImpl",196),tRt=ni(zo,"BasicEMap/Entry");T(1103,119,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1,118:1,119:1},nBe),g.Fb=function(t){return this===t},g.jd=function(){return this.b},g.Hb=function(){return Vy(this)},g.Ai=function(t){nbe(this,d(t,149))},g.Ih=function(t,n,o){switch(t){case 0:return this.b;case 1:return this.c}return Xj(this,t,n,o)},g.Th=function(t){switch(t){case 0:return!!this.b;case 1:return this.c!=null}return UX(this,t)},g.$h=function(t,n){switch(t){case 0:nbe(this,d(n,149));return;case 1:rbe(this,n);return}$K(this,t,n)},g.fi=function(){return wa(),yg},g.hi=function(t){switch(t){case 0:nbe(this,null);return;case 1:rbe(this,null);return}MK(this,t)},g.yi=function(){var t;return this.a==-1&&(t=this.b,this.a=t?Wr(t):0),this.a},g.kd=function(){return this.c},g.zi=function(t){this.a=t},g.ld=function(t){var n;return n=this.c,rbe(this,t),n},g.Ib=function(){var t;return(this.Db&64)!=0?Fd(this):(t=new Fp,rr(rr(rr(t,this.b?this.b.Og():Oc),lZ),X$(this.c)),t.a)},g.a=-1,g.c=null;var pp=I(H1,"ElkPropertyToValueMapEntryImpl",1103);T(989,1,{},rBe);var Dir=I(xo,"JsonAdapter",989);T(218,63,Qg,dh);var Fir=I(xo,"JsonImportException",218);T(859,1,{},Bht);var _ir=I(xo,"JsonImporter",859);T(893,1,{},sXe),g.Bi=function(t){$dt(this.a,this.b,d(t,142))};var jir=I(xo,"JsonImporter/lambda$0$Type",893);T(894,1,{},aXe),g.Bi=function(t){bht(this.a,this.b,d(t,142))};var Bir=I(xo,"JsonImporter/lambda$1$Type",894);T(902,1,{},$Ue),g.Bi=function(t){btt(this.a,d(t,150))};var Gir=I(xo,"JsonImporter/lambda$10$Type",902);T(904,1,{},cXe),g.Bi=function(t){rht(this.a,this.b,d(t,142))};var zir=I(xo,"JsonImporter/lambda$11$Type",904);T(905,1,{},lXe),g.Bi=function(t){iht(this.a,this.b,d(t,142))};var Wir=I(xo,"JsonImporter/lambda$12$Type",905);T(911,1,{},Mtt),g.Bi=function(t){Mft(this.a,this.b,this.c,this.d,d(t,142))};var Hir=I(xo,"JsonImporter/lambda$13$Type",911);T(910,1,{},Ttt),g.Bi=function(t){qmt(this.a,this.b,this.c,this.d,d(t,150))};var Uir=I(xo,"JsonImporter/lambda$14$Type",910);T(906,1,{},uXe),g.Bi=function(t){FQe(this.a,this.b,Jn(t))};var Jir=I(xo,"JsonImporter/lambda$15$Type",906);T(907,1,{},dXe),g.Bi=function(t){_Qe(this.a,this.b,Jn(t))};var qir=I(xo,"JsonImporter/lambda$16$Type",907);T(908,1,{},pXe),g.Bi=function(t){ddt(this.b,this.a,d(t,142))};var Vir=I(xo,"JsonImporter/lambda$17$Type",908);T(909,1,{},bXe),g.Bi=function(t){fdt(this.b,this.a,d(t,142))};var Yir=I(xo,"JsonImporter/lambda$18$Type",909);T(914,1,{},RUe),g.Bi=function(t){bft(this.a,d(t,150))};var Xir=I(xo,"JsonImporter/lambda$19$Type",914);T(895,1,{},PUe),g.Bi=function(t){kdt(this.a,d(t,142))};var Kir=I(xo,"JsonImporter/lambda$2$Type",895);T(912,1,{},NUe),g.Bi=function(t){l0(this.a,he(be(t)))};var Qir=I(xo,"JsonImporter/lambda$20$Type",912);T(913,1,{},OUe),g.Bi=function(t){u0(this.a,he(be(t)))};var Zir=I(xo,"JsonImporter/lambda$21$Type",913);T(917,1,{},LUe),g.Bi=function(t){pft(this.a,d(t,150))};var eor=I(xo,"JsonImporter/lambda$22$Type",917);T(915,1,{},DUe),g.Bi=function(t){a0(this.a,he(be(t)))};var tor=I(xo,"JsonImporter/lambda$23$Type",915);T(916,1,{},FUe),g.Bi=function(t){c0(this.a,he(be(t)))};var nor=I(xo,"JsonImporter/lambda$24$Type",916);T(919,1,{},_Ue),g.Bi=function(t){Gdt(this.a,d(t,142))};var ror=I(xo,"JsonImporter/lambda$25$Type",919);T(918,1,{},jUe),g.Bi=function(t){ytt(this.a,d(t,150))};var ior=I(xo,"JsonImporter/lambda$26$Type",918);T(920,1,mn,yXe),g.Ad=function(t){Qen(this.b,this.a,Jn(t))};var oor=I(xo,"JsonImporter/lambda$27$Type",920);T(921,1,mn,wXe),g.Ad=function(t){Zen(this.b,this.a,Jn(t))};var sor=I(xo,"JsonImporter/lambda$28$Type",921);T(922,1,{},fXe),g.Bi=function(t){Zht(this.a,this.b,d(t,142))};var aor=I(xo,"JsonImporter/lambda$29$Type",922);T(898,1,{},BUe),g.Bi=function(t){Nlt(this.a,d(t,150))};var cor=I(xo,"JsonImporter/lambda$3$Type",898);T(923,1,{},hXe),g.Bi=function(t){vgt(this.a,this.b,d(t,142))};var lor=I(xo,"JsonImporter/lambda$30$Type",923);T(924,1,{},GUe),g.Bi=function(t){nst(this.a,be(t))};var uor=I(xo,"JsonImporter/lambda$31$Type",924);T(925,1,{},zUe),g.Bi=function(t){rst(this.a,be(t))};var dor=I(xo,"JsonImporter/lambda$32$Type",925);T(926,1,{},WUe),g.Bi=function(t){ist(this.a,be(t))};var hor=I(xo,"JsonImporter/lambda$33$Type",926);T(927,1,{},HUe),g.Bi=function(t){ost(this.a,be(t))};var gor=I(xo,"JsonImporter/lambda$34$Type",927);T(928,1,{},UUe),g.Bi=function(t){tun(this.a,d(t,57))};var mor=I(xo,"JsonImporter/lambda$35$Type",928);T(929,1,{},JUe),g.Bi=function(t){nun(this.a,d(t,57))};var por=I(xo,"JsonImporter/lambda$36$Type",929);T(933,1,{},Ctt);var bor=I(xo,"JsonImporter/lambda$37$Type",933);T(930,1,mn,lZe),g.Ad=function(t){$nn(this.a,this.c,this.b,d(t,373))};var yor=I(xo,"JsonImporter/lambda$38$Type",930);T(931,1,mn,gXe),g.Ad=function(t){YWt(this.a,this.b,d(t,171))};var wor=I(xo,"JsonImporter/lambda$39$Type",931);T(896,1,{},qUe),g.Bi=function(t){l0(this.a,he(be(t)))};var xor=I(xo,"JsonImporter/lambda$4$Type",896);T(932,1,mn,mXe),g.Ad=function(t){XWt(this.a,this.b,d(t,171))};var Aor=I(xo,"JsonImporter/lambda$40$Type",932);T(934,1,mn,uZe),g.Ad=function(t){Rnn(this.a,this.b,this.c,d(t,8))};var vor=I(xo,"JsonImporter/lambda$41$Type",934);T(897,1,{},VUe),g.Bi=function(t){u0(this.a,he(be(t)))};var kor=I(xo,"JsonImporter/lambda$5$Type",897);T(901,1,{},YUe),g.Bi=function(t){Olt(this.a,d(t,150))};var Sor=I(xo,"JsonImporter/lambda$6$Type",901);T(899,1,{},XUe),g.Bi=function(t){a0(this.a,he(be(t)))};var Eor=I(xo,"JsonImporter/lambda$7$Type",899);T(900,1,{},KUe),g.Bi=function(t){c0(this.a,he(be(t)))};var Cor=I(xo,"JsonImporter/lambda$8$Type",900);T(903,1,{},QUe),g.Bi=function(t){zdt(this.a,d(t,142))};var Mor=I(xo,"JsonImporter/lambda$9$Type",903);T(953,1,mn,ZUe),g.Ad=function(t){Wk(this.a,new Jw(Jn(t)))};var Tor=I(xo,"JsonMetaDataConverter/lambda$0$Type",953);T(954,1,mn,eJe),g.Ad=function(t){XYt(this.a,d(t,235))};var Ior=I(xo,"JsonMetaDataConverter/lambda$1$Type",954);T(955,1,mn,tJe),g.Ad=function(t){YKt(this.a,d(t,144))};var $or=I(xo,"JsonMetaDataConverter/lambda$2$Type",955);T(956,1,mn,nJe),g.Ad=function(t){KYt(this.a,d(t,161))};var Ror=I(xo,"JsonMetaDataConverter/lambda$3$Type",956);T(235,23,{3:1,34:1,23:1,235:1},Tk);var aW,cW,soe,q5,lW,V5,aoe,coe,Y5=En(pD,"GraphFeature",235,Rn,Rtn,OVt),nRt;T(11,1,{34:1,149:1},dr,qr,vt,Ki),g.Dd=function(t){return KHt(this,d(t,149))},g.Fb=function(t){return Ktt(this,t)},g.Rg=function(){return et(this)},g.Og=function(){return this.b},g.Hb=function(){return Ym(this.b)},g.Ib=function(){return this.b};var Por=I(pD,"Property",11);T(664,1,tr,xJ),g.Le=function(t,n){return Win(this,d(t,105),d(n,105))},g.Fb=function(t){return this===t},g.Me=function(){return new Kn(this)};var Nor=I(pD,"PropertyHolderComparator",664);T(705,1,co,xde),g.Nb=function(t){ko(this,t)},g.Pb=function(){return rtn(this)},g.Qb=function(){Vqe()},g.Ob=function(){return!!this.a};var Oor=I(O7,"ElkGraphUtil/AncestorIterator",705),gRe=ni(zo,"EList");T(71,56,{22:1,32:1,56:1,18:1,16:1,71:1,61:1}),g._c=function(t,n){_R(this,t,n)},g.Ec=function(t){return jn(this,t)},g.ad=function(t,n){return Ibe(this,t,n)},g.Fc=function(t){return gi(this,t)},g.Gi=function(){return new Nk(this)},g.Hi=function(){return new w4(this)},g.Ii=function(t){return lL(this,t)},g.Ji=function(){return!0},g.Ki=function(t,n){},g.Li=function(){},g.Mi=function(t,n){SY(this,t,n)},g.Ni=function(t,n,o){},g.Oi=function(t,n){},g.Pi=function(t,n,o){},g.Fb=function(t){return cmt(this,t)},g.Hb=function(){return Sbe(this)},g.Qi=function(){return!1},g.Jc=function(){return new fn(this)},g.cd=function(){return new Ok(this)},g.dd=function(t){var n;if(n=this.gc(),t<0||t>n)throw Q(new Bw(t,n));return new $V(this,t)},g.Si=function(t,n){this.Ri(t,this.bd(n))},g.Kc=function(t){return Q9(this,t)},g.Ui=function(t,n){return n},g.fd=function(t,n){return Iv(this,t,n)},g.Ib=function(){return A1e(this)},g.Wi=function(){return!0},g.Xi=function(t,n){return eM(this,n)};var Lor=I(zo,"AbstractEList",71);T(67,71,$h,a_,s0,bbe),g.Ci=function(t,n){return xK(this,t,n)},g.Di=function(t){return Jut(this,t)},g.Ei=function(t,n){vL(this,t,n)},g.Fi=function(t){J4(this,t)},g.Yi=function(t){return Npe(this,t)},g.$b=function(){xR(this)},g.Gc=function(t){return pM(this,t)},g.Xb=function(t){return ue(this,t)},g.Zi=function(t){var n,o,a;++this.j,o=this.g==null?0:this.g.length,t>o&&(a=this.g,n=o+(o/2|0)+4,n<t&&(n=t),this.g=this.$i(n),a!=null&&$a(a,0,this.g,0,this.i))},g.bd=function(t){return mdt(this,t)},g.dc=function(){return this.i==0},g.Ri=function(t,n){return NK(this,t,n)},g.$i=function(t){return Te(Wi,zt,1,t,5,1)},g.Ti=function(t){return this.g[t]},g.ed=function(t){return uS(this,t)},g.Vi=function(t,n){return OY(this,t,n)},g.gc=function(){return this.i},g.Nc=function(){return Zme(this)},g.Oc=function(t){return I1e(this,t)},g.i=0;var mRe=I(zo,"BasicEList",67),pRe=ni(zo,"TreeIterator");T(704,67,Gee),g.Nb=function(t){ko(this,t)},g.Ob=function(){return this.g==null&&!this.c?Ome(this):this.g==null||this.i!=0&&d(this.g[this.i-1],51).Ob()},g.Pb=function(){return xB(this)},g.Qb=function(){if(!this.e)throw Q(new ws("There is no valid object to remove."));this.e.Qb()},g.c=!1;var Dor=I(zo,"AbstractTreeIterator",704);T(611,704,Gee,Oq),g._i=function(t){var n;return n=d(t,57).Dh().Jc(),fe(n,289)&&d(n,289).ul(new iBe),n};var For=I(O7,"ElkGraphUtil/PropertiesSkippingTreeIterator",611);T(957,1,{},iBe);var _or=I(O7,"ElkGraphUtil/PropertiesSkippingTreeIterator/1",957),X5,loe,K5=I(O7,"ElkReflect",null);T(891,1,Ix,oBe),g.Qg=function(t){return C9(),FQt(d(t,185))};var jor=I(O7,"ElkReflect/lambda$0$Type",891),Db,Bor=ni(zo,"ResourceLocator");T(1056,1,{});var Gor=I(zo,"DelegatingResourceLocator",1056);T(1057,1056,{});var zor=I("org.eclipse.emf.common","EMFPlugin",1057),uoe=ni(zwt,"Adapter"),Exn=ni(zwt,"Notification");T(1155,1,S2e),g.aj=function(){return this.d},g.bj=function(t){},g.cj=function(t){this.d=t},g.dj=function(t){this.d==t&&(this.d=null)},g.d=null;var Wor=I(PS,"AdapterImpl",1155);T(2072,71,Wwt),g.Ci=function(t,n){return S1e(this,t,n)},g.Di=function(t){var n,o,a;if(++this.j,t.dc())return!1;for(n=this.Cj(),a=t.Jc();a.Ob();)o=a.Pb(),this.pj(this.Xi(n,o)),++n;return!0},g.Ei=function(t,n){wQe(this,t,n)},g.Fi=function(t){Qet(this,t)},g.nj=function(){return this.qj()},g.$b=function(){k4(this,this.Cj(),this.Dj())},g.Gc=function(t){return this.sj(t)},g.Hc=function(t){return this.tj(t)},g.oj=function(t,n){this.zj().Sm()},g.pj=function(t){this.zj().Sm()},g.qj=function(){return this.zj()},g.rj=function(){this.zj().Sm()},g.sj=function(t){return this.zj().Sm()},g.tj=function(t){return this.zj().Sm()},g.uj=function(t){return this.zj().Sm()},g.vj=function(t){return this.zj().Sm()},g.wj=function(){return this.zj().Sm()},g.xj=function(t){return this.zj().Sm()},g.yj=function(){return this.zj().Sm()},g.Aj=function(t){return this.zj().Sm()},g.Bj=function(t,n){return this.zj().Sm()},g.Cj=function(){return this.zj().Sm()},g.Dj=function(){return this.zj().Sm()},g.Ej=function(t){return this.zj().Sm()},g.Fj=function(){return this.zj().Sm()},g.Fb=function(t){return this.uj(t)},g.Xb=function(t){return this.Ui(t,this.vj(t))},g.Hb=function(){return this.wj()},g.bd=function(t){return this.xj(t)},g.dc=function(){return this.yj()},g.Ri=function(t,n){return jye(this,t,n)},g.Ti=function(t){return this.vj(t)},g.ed=function(t){return q8(this,t)},g.Kc=function(t){var n;return n=this.bd(t),n>=0?(this.ed(n),!0):!1},g.Vi=function(t,n){return this.Bj(t,this.Xi(t,n))},g.gc=function(){return this.Cj()},g.Nc=function(){return this.Dj()},g.Oc=function(t){return this.Ej(t)},g.Ib=function(){return this.Fj()};var Hor=I(zo,"DelegatingEList",2072);T(2073,2072,Wwt),g.Ci=function(t,n){return ywe(this,t,n)},g.Di=function(t){return this.Ci(this.Cj(),t)},g.Ei=function(t,n){Jht(this,t,n)},g.Fi=function(t){Lht(this,t)},g.Ji=function(){return!this.Kj()},g.$b=function(){gP(this)},g.Gj=function(t,n,o,a,l){return new Ytt(this,t,n,o,a,l)},g.Hj=function(t){kr(this.hj(),t)},g.Ij=function(){return null},g.Jj=function(){return-1},g.hj=function(){return null},g.Kj=function(){return!1},g.Lj=function(t,n){return n},g.Mj=function(t,n){return n},g.Nj=function(){return!1},g.Oj=function(){return!this.yj()},g.Ri=function(t,n){var o,a;return this.Nj()?(a=this.Oj(),o=jye(this,t,n),this.Hj(this.Gj(7,Ge(n),o,t,a)),o):jye(this,t,n)},g.ed=function(t){var n,o,a,l;return this.Nj()?(o=null,a=this.Oj(),n=this.Gj(4,l=q8(this,t),null,t,a),this.Kj()&&l?(o=this.Mj(l,o),o?(o.lj(n),o.mj()):this.Hj(n)):o?(o.lj(n),o.mj()):this.Hj(n),l):(l=q8(this,t),this.Kj()&&l&&(o=this.Mj(l,null),o&&o.mj()),l)},g.Vi=function(t,n){return opt(this,t,n)};var Uor=I(PS,"DelegatingNotifyingListImpl",2073);T(152,1,OD),g.lj=function(t){return Sye(this,t)},g.mj=function(){IY(this)},g.ej=function(){return this.d},g.Ij=function(){return null},g.Pj=function(){return null},g.fj=function(t){return-1},g.gj=function(){return Wgt(this)},g.hj=function(){return null},g.ij=function(){return q0e(this)},g.jj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},g.Qj=function(){return!1},g.kj=function(t){var n,o,a,l,h,b,w,A,k,C,$;switch(this.d){case 1:case 2:switch(l=t.ej(),l){case 1:case 2:if(h=t.hj(),Ee(h)===Ee(this.hj())&&this.fj(null)==t.fj(null))return this.g=t.gj(),t.ej()==1&&(this.d=1),!0}case 4:{switch(l=t.ej(),l){case 4:{if(h=t.hj(),Ee(h)===Ee(this.hj())&&this.fj(null)==t.fj(null))return k=Dwe(this),A=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,b=t.jj(),this.d=6,$=new s0(2),A<=b?(jn($,this.n),jn($,t.ij()),this.g=re(ne(qn,1),ur,30,15,[this.o=A,b+1])):(jn($,t.ij()),jn($,this.n),this.g=re(ne(qn,1),ur,30,15,[this.o=b,A])),this.n=$,k||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(l=t.ej(),l){case 4:{if(h=t.hj(),Ee(h)===Ee(this.hj())&&this.fj(null)==t.fj(null)){for(k=Dwe(this),b=t.jj(),C=d(this.g,54),a=Te(qn,ur,30,C.length+1,15,1),n=0;n<C.length&&(w=C[n],w<=b);)a[n++]=w,++b;for(o=d(this.n,16),o._c(n,t.ij()),a[n]=b;++n<a.length;)a[n]=C[n-1];return this.g=a,k||(this.o=-2-a[0]),!0}break}}break}}return!1},g.Ib=function(){var t,n,o,a;switch(a=new Zu(c1(this.Pm)+"@"+(n=Wr(this)>>>0,n.toString(16))),a.a+=" (eventType: ",this.d){case 1:{a.a+="SET";break}case 2:{a.a+="UNSET";break}case 3:{a.a+="ADD";break}case 5:{a.a+="ADD_MANY";break}case 4:{a.a+="REMOVE";break}case 6:{a.a+="REMOVE_MANY";break}case 7:{a.a+="MOVE";break}case 8:{a.a+="REMOVING_ADAPTER";break}case 9:{a.a+="RESOLVE";break}default:{HJ(a,this.d);break}}if(Pmt(this)&&(a.a+=", touch: true"),a.a+=", position: ",HJ(a,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),a.a+=", notifier: ",H$(a,this.hj()),a.a+=", feature: ",H$(a,this.Ij()),a.a+=", oldValue: ",H$(a,q0e(this)),a.a+=", newValue: ",this.d==6&&fe(this.g,54)){for(o=d(this.g,54),a.a+="[",t=0;t<o.length;)a.a+=o[t],++t<o.length&&(a.a+=ac);a.a+="]"}else H$(a,Wgt(this));return a.a+=", isTouch: ",Fm(a,Pmt(this)),a.a+=", wasSet: ",Fm(a,Dwe(this)),a.a+=")",a.a},g.d=0,g.e=0,g.f=0,g.j=0,g.k=0,g.o=0,g.p=0;var Jor=I(PS,"NotificationImpl",152);T(1169,152,OD,Ytt),g.Ij=function(){return this.a.Ij()},g.fj=function(t){return this.a.Jj()},g.hj=function(){return this.a.hj()};var qor=I(PS,"DelegatingNotifyingListImpl/1",1169);T(255,67,$h,sBe,_p),g.Ec=function(t){return jlt(this,d(t,374))},g.lj=function(t){return jlt(this,t)},g.mj=function(){var t,n,o;for(t=0;t<this.i;++t)n=d(this.g[t],374),o=n.hj(),o!=null&&n.ej()!=-1&&d(o,95).uh(n)},g.$i=function(t){return Te(Exn,zt,374,t,0,1)};var Vor=I(PS,"NotificationChainImpl",255);T(1502,94,ewt),g.rh=function(){return this.e},g.th=function(){return(this.f&1)!=0},g.f=1;var Yor=I(PS,"NotifierImpl",1502);T(2070,67,$h),g.Ci=function(t,n){return QK(this,t,n)},g.Di=function(t){return this.Ci(this.i,t)},g.Ei=function(t,n){b0e(this,t,n)},g.Fi=function(t){OK(this,t)},g.Ji=function(){return!this.Kj()},g.$b=function(){Ln(this)},g.Gj=function(t,n,o,a,l){return new Xtt(this,t,n,o,a,l)},g.Hj=function(t){kr(this.hj(),t)},g.Ij=function(){return null},g.Jj=function(){return-1},g.hj=function(){return null},g.Kj=function(){return!1},g.Rj=function(){return!1},g.Lj=function(t,n){return n},g.Mj=function(t,n){return n},g.Nj=function(){return!1},g.Oj=function(){return this.i!=0},g.Ri=function(t,n){return jR(this,t,n)},g.ed=function(t){return yx(this,t)},g.Vi=function(t,n){return kpt(this,t,n)},g.Sj=function(t,n){return n},g.Tj=function(t,n){return n},g.Uj=function(t,n,o){return o};var Xor=I(PS,"NotifyingListImpl",2070);T(1168,152,OD,Xtt),g.Ij=function(){return this.a.Ij()},g.fj=function(t){return this.a.Jj()},g.hj=function(){return this.a.hj()};var Kor=I(PS,"NotifyingListImpl/1",1168);T(958,67,$h,AQe),g.Gc=function(t){return this.i>10?((!this.b||this.c.j!=this.a)&&(this.b=new Gw(this),this.a=this.j),Qu(this.b,t)):pM(this,t)},g.Wi=function(){return!0},g.a=0;var Qor=I(zo,"AbstractEList/1",958);T(306,99,VB,Bw);var Zor=I(zo,"AbstractEList/BasicIndexOutOfBoundsException",306);T(39,1,co,fn),g.Nb=function(t){ko(this,t)},g.Vj=function(){if(this.i.j!=this.f)throw Q(new Au)},g.Wj=function(){return bn(this)},g.Ob=function(){return this.e!=this.i.gc()},g.Pb=function(){return this.Wj()},g.Qb=function(){YR(this)},g.e=0,g.f=0,g.g=-1;var esr=I(zo,"AbstractEList/EIterator",39);T(288,39,og,Ok,$V),g.Qb=function(){YR(this)},g.Rb=function(t){Ylt(this,t)},g.Xj=function(){var t;try{return t=this.d.Xb(--this.e),this.Vj(),this.g=this.e,t}catch(n){throw n=ki(n),fe(n,99)?(this.Vj(),Q(new js)):Q(n)}},g.Yj=function(t){qut(this,t)},g.Sb=function(){return this.e!=0},g.Tb=function(){return this.e},g.Ub=function(){return this.Xj()},g.Vb=function(){return this.e-1},g.Wb=function(t){this.Yj(t)};var tsr=I(zo,"AbstractEList/EListIterator",288);T(356,39,co,Nk),g.Wj=function(){return JX(this)},g.Qb=function(){throw Q(new Hn)};var nsr=I(zo,"AbstractEList/NonResolvingEIterator",356);T(393,288,og,w4,cge),g.Rb=function(t){throw Q(new Hn)},g.Wj=function(){var t;try{return t=this.c.Ti(this.e),this.Vj(),this.g=this.e++,t}catch(n){throw n=ki(n),fe(n,99)?(this.Vj(),Q(new js)):Q(n)}},g.Xj=function(){var t;try{return t=this.c.Ti(--this.e),this.Vj(),this.g=this.e,t}catch(n){throw n=ki(n),fe(n,99)?(this.Vj(),Q(new js)):Q(n)}},g.Qb=function(){throw Q(new Hn)},g.Wb=function(t){throw Q(new Hn)};var rsr=I(zo,"AbstractEList/NonResolvingEListIterator",393);T(2059,71,Hwt),g.Ci=function(t,n){var o,a,l,h,b,w,A,k,C,$,O;if(l=n.gc(),l!=0){for(k=d(nn(this.a,4),131),C=k==null?0:k.length,O=C+l,a=mX(this,O),$=C-t,$>0&&$a(k,t,a,t+l,$),A=n.Jc(),b=0;b<l;++b)w=A.Pb(),o=t+b,_q(a,o,eM(this,w));for(hM(this,a),h=0;h<l;++h)w=a[t],this.Ki(t,w),++t;return!0}else return++this.j,!1},g.Di=function(t){var n,o,a,l,h,b,w,A,k;if(a=t.gc(),a!=0){for(A=(o=d(nn(this.a,4),131),o==null?0:o.length),k=A+a,n=mX(this,k),w=t.Jc(),h=A;h<k;++h)b=w.Pb(),_q(n,h,eM(this,b));for(hM(this,n),l=A;l<k;++l)b=n[l],this.Ki(l,b);return!0}else return++this.j,!1},g.Ei=function(t,n){var o,a,l,h;a=d(nn(this.a,4),131),l=a==null?0:a.length,o=mX(this,l+1),h=eM(this,n),t!=l&&$a(a,t,o,t+1,l-t),yi(o,t,h),hM(this,o),this.Ki(t,n)},g.Fi=function(t){var n,o,a;a=(o=d(nn(this.a,4),131),o==null?0:o.length),n=mX(this,a+1),_q(n,a,eM(this,t)),hM(this,n),this.Ki(a,t)},g.Gi=function(){return new Cit(this)},g.Hi=function(){return new Ret(this)},g.Ii=function(t){var n,o;if(o=(n=d(nn(this.a,4),131),n==null?0:n.length),t<0||t>o)throw Q(new Bw(t,o));return new att(this,t)},g.$b=function(){var t,n;++this.j,t=d(nn(this.a,4),131),n=t==null?0:t.length,hM(this,null),SY(this,n,t)},g.Gc=function(t){var n,o,a,l,h;if(n=d(nn(this.a,4),131),n!=null){if(t!=null){for(a=n,l=0,h=a.length;l<h;++l)if(o=a[l],Er(t,o))return!0}else for(a=n,l=0,h=a.length;l<h;++l)if(o=a[l],Ee(o)===Ee(t))return!0}return!1},g.Xb=function(t){var n,o;if(n=d(nn(this.a,4),131),o=n==null?0:n.length,t>=o)throw Q(new Bw(t,o));return n[t]},g.bd=function(t){var n,o,a;if(n=d(nn(this.a,4),131),n!=null){if(t!=null){for(o=0,a=n.length;o<a;++o)if(Er(t,n[o]))return o}else for(o=0,a=n.length;o<a;++o)if(Ee(n[o])===Ee(t))return o}return-1},g.dc=function(){return d(nn(this.a,4),131)==null},g.Jc=function(){return new Eit(this)},g.cd=function(){return new $et(this)},g.dd=function(t){var n,o;if(o=(n=d(nn(this.a,4),131),n==null?0:n.length),t<0||t>o)throw Q(new Bw(t,o));return new stt(this,t)},g.Ri=function(t,n){var o,a,l;if(o=nut(this),l=o==null?0:o.length,t>=l)throw Q(new ec(jee+t+U1+l));if(n>=l)throw Q(new ec(Bee+n+U1+l));return a=o[n],t!=n&&(t<n?$a(o,t,o,t+1,n-t):$a(o,n+1,o,n,t-n),yi(o,t,a),hM(this,o)),a},g.Ti=function(t){return d(nn(this.a,4),131)[t]},g.ed=function(t){return ofn(this,t)},g.Vi=function(t,n){var o,a;return o=nut(this),a=o[t],_q(o,t,eM(this,n)),hM(this,o),a},g.gc=function(){var t;return t=d(nn(this.a,4),131),t==null?0:t.length},g.Nc=function(){var t,n,o;return t=d(nn(this.a,4),131),o=t==null?0:t.length,n=Te(uoe,Uee,420,o,0,1),o>0&&$a(t,0,n,0,o),n},g.Oc=function(t){var n,o,a;return n=d(nn(this.a,4),131),a=n==null?0:n.length,a>0&&(t.length<a&&(o=cL(zl(t).c,a),t=o),$a(n,0,t,0,a)),t.length>a&&yi(t,a,null),t};var rRt,isr=I(zo,"ArrayDelegatingEList",2059);T(1043,39,co,Eit),g.Vj=function(){if(this.b.j!=this.f||Ee(d(nn(this.b.a,4),131))!==Ee(this.a))throw Q(new Au)},g.Qb=function(){YR(this),this.a=d(nn(this.b.a,4),131)};var osr=I(zo,"ArrayDelegatingEList/EIterator",1043);T(719,288,og,$et,stt),g.Vj=function(){if(this.b.j!=this.f||Ee(d(nn(this.b.a,4),131))!==Ee(this.a))throw Q(new Au)},g.Yj=function(t){qut(this,t),this.a=d(nn(this.b.a,4),131)},g.Qb=function(){YR(this),this.a=d(nn(this.b.a,4),131)};var ssr=I(zo,"ArrayDelegatingEList/EListIterator",719);T(1044,356,co,Cit),g.Vj=function(){if(this.b.j!=this.f||Ee(d(nn(this.b.a,4),131))!==Ee(this.a))throw Q(new Au)};var asr=I(zo,"ArrayDelegatingEList/NonResolvingEIterator",1044);T(720,393,og,Ret,att),g.Vj=function(){if(this.b.j!=this.f||Ee(d(nn(this.b.a,4),131))!==Ee(this.a))throw Q(new Au)};var csr=I(zo,"ArrayDelegatingEList/NonResolvingEListIterator",720);T(612,306,VB,Rq);var lsr=I(zo,"BasicEList/BasicIndexOutOfBoundsException",612);T(706,67,$h,Yfe),g._c=function(t,n){throw Q(new Hn)},g.Ec=function(t){throw Q(new Hn)},g.ad=function(t,n){throw Q(new Hn)},g.Fc=function(t){throw Q(new Hn)},g.$b=function(){throw Q(new Hn)},g.Zi=function(t){throw Q(new Hn)},g.Jc=function(){return this.Gi()},g.cd=function(){return this.Hi()},g.dd=function(t){return this.Ii(t)},g.Ri=function(t,n){throw Q(new Hn)},g.Si=function(t,n){throw Q(new Hn)},g.ed=function(t){throw Q(new Hn)},g.Kc=function(t){throw Q(new Hn)},g.fd=function(t,n){throw Q(new Hn)};var usr=I(zo,"BasicEList/UnmodifiableEList",706);T(718,1,{3:1,22:1,18:1,16:1,61:1,593:1}),g._c=function(t,n){jHt(this,t,d(n,45))},g.Ec=function(t){return FUt(this,d(t,45))},g.Ic=function(t){Mo(this,t)},g.Xb=function(t){return d(ue(this.c,t),138)},g.Ri=function(t,n){return d(this.c.Ri(t,n),45)},g.Si=function(t,n){BHt(this,t,d(n,45))},g.ed=function(t){return d(this.c.ed(t),45)},g.fd=function(t,n){return QYt(this,t,d(n,45))},g.gd=function(t){C1(this,t)},g.Lc=function(){return new $t(this,16)},g.Mc=function(){return new It(null,new $t(this,16))},g.ad=function(t,n){return this.c.ad(t,n)},g.Fc=function(t){return this.c.Fc(t)},g.$b=function(){this.c.$b()},g.Gc=function(t){return this.c.Gc(t)},g.Hc=function(t){return bL(this.c,t)},g.Zj=function(){var t,n,o;if(this.d==null){for(this.d=Te(mRe,E2e,67,2*this.f+1,0,1),o=this.e,this.f=0,n=this.c.Jc();n.e!=n.i.gc();)t=d(n.Wj(),138),Zj(this,t);this.e=o}},g.Fb=function(t){return KQe(this,t)},g.Hb=function(){return Sbe(this.c)},g.bd=function(t){return this.c.bd(t)},g.$j=function(){this.c=new rJe(this)},g.dc=function(){return this.f==0},g.Jc=function(){return this.c.Jc()},g.cd=function(){return this.c.cd()},g.dd=function(t){return this.c.dd(t)},g._j=function(){return Y4(this)},g.ak=function(t,n,o){return new dZe(t,n,o)},g.bk=function(){return new cBe},g.Kc=function(t){return Zst(this,t)},g.gc=function(){return this.f},g.hd=function(t,n){return new ph(this.c,t,n)},g.Nc=function(){return this.c.Nc()},g.Oc=function(t){return this.c.Oc(t)},g.Ib=function(){return A1e(this.c)},g.e=0,g.f=0;var dsr=I(zo,"BasicEMap",718);T(1038,67,$h,rJe),g.Ki=function(t,n){vzt(this,d(n,138))},g.Ni=function(t,n,o){var a;++(a=this,d(n,138),a).a.e},g.Oi=function(t,n){kzt(this,d(n,138))},g.Pi=function(t,n,o){yUt(this,d(n,138),d(o,138))},g.Mi=function(t,n){Jat(this.a)};var fsr=I(zo,"BasicEMap/1",1038);T(1039,67,$h,cBe),g.$i=function(t){return Te(Cxn,Uwt,618,t,0,1)};var hsr=I(zo,"BasicEMap/2",1039);T(1040,Jf,Qc,iJe),g.$b=function(){this.a.c.$b()},g.Gc=function(t){return OX(this.a,t)},g.Jc=function(){return this.a.f==0?(AC(),Q5.a):new zqe(this.a)},g.Kc=function(t){var n;return n=this.a.f,Wj(this.a,t),this.a.f!=n},g.gc=function(){return this.a.f};var gsr=I(zo,"BasicEMap/3",1040);T(1041,32,vx,oJe),g.$b=function(){this.a.c.$b()},g.Gc=function(t){return lmt(this.a,t)},g.Jc=function(){return this.a.f==0?(AC(),Q5.a):new Wqe(this.a)},g.gc=function(){return this.a.f};var msr=I(zo,"BasicEMap/4",1041);T(1042,Jf,Qc,sJe),g.$b=function(){this.a.c.$b()},g.Gc=function(t){var n,o,a,l,h,b,w,A,k;if(this.a.f>0&&fe(t,45)&&(this.a.Zj(),A=d(t,45),w=A.jd(),l=w==null?0:Wr(w),h=Jhe(this.a,l),n=this.a.d[h],n)){for(o=d(n.g,375),k=n.i,b=0;b<k;++b)if(a=o[b],a.yi()==l&&a.Fb(A))return!0}return!1},g.Jc=function(){return this.a.f==0?(AC(),Q5.a):new JV(this.a)},g.Kc=function(t){return Kht(this,t)},g.gc=function(){return this.a.f};var psr=I(zo,"BasicEMap/5",1042);T(619,1,co,JV),g.Nb=function(t){ko(this,t)},g.Ob=function(){return this.b!=-1},g.Pb=function(){var t;if(this.f.e!=this.c)throw Q(new Au);if(this.b==-1)throw Q(new js);return this.d=this.a,this.e=this.b,Tdt(this),t=d(this.f.d[this.d].g[this.e],138),this.ck(t)},g.Qb=function(){if(this.f.e!=this.c)throw Q(new Au);if(this.e==-1)throw Q(new Hc);this.f.c.Kc(ue(this.f.d[this.d],this.e)),this.c=this.f.e,this.e=-1,this.a==this.d&&this.b!=-1&&--this.b},g.ck=function(t){return t},g.a=0,g.b=-1,g.c=0,g.d=0,g.e=0;var bsr=I(zo,"BasicEMap/BasicEMapIterator",619);T(1036,619,co,zqe),g.ck=function(t){return t.jd()};var ysr=I(zo,"BasicEMap/BasicEMapKeyIterator",1036);T(1037,619,co,Wqe),g.ck=function(t){return t.kd()};var wsr=I(zo,"BasicEMap/BasicEMapValueIterator",1037);T(1035,1,E0,aJe),g.wc=function(t){dL(this,t)},g.$b=function(){this.a.c.$b()},g._b=function(t){return MXe(this,t)},g.uc=function(t){return lmt(this.a,t)},g.vc=function(){return Den(this.a)},g.Fb=function(t){return KQe(this.a,t)},g.xc=function(t){return ff(this.a,t)},g.Hb=function(){return Sbe(this.a.c)},g.dc=function(){return this.a.f==0},g.ec=function(){return Oen(this.a)},g.yc=function(t,n){return LL(this.a,t,n)},g.Ac=function(t){return Wj(this.a,t)},g.gc=function(){return this.a.f},g.Ib=function(){return A1e(this.a.c)},g.Bc=function(){return Len(this.a)};var xsr=I(zo,"BasicEMap/DelegatingMap",1035);T(618,1,{45:1,138:1,618:1},dZe),g.Fb=function(t){var n;return fe(t,45)?(n=d(t,45),(this.b!=null?Er(this.b,n.jd()):Ee(this.b)===Ee(n.jd()))&&(this.c!=null?Er(this.c,n.kd()):Ee(this.c)===Ee(n.kd()))):!1},g.yi=function(){return this.a},g.jd=function(){return this.b},g.kd=function(){return this.c},g.Hb=function(){return this.a^(this.c==null?0:Wr(this.c))},g.zi=function(t){this.a=t},g.Ai=function(t){throw Q(new s1)},g.ld=function(t){var n;return n=this.c,this.c=t,n},g.Ib=function(){return this.b+"->"+this.c},g.a=0;var Cxn=I(zo,"BasicEMap/EntryImpl",618);T(538,1,{},c_);var Asr=I(zo,"BasicEMap/View",538),Q5;T(776,1,{}),g.Fb=function(t){return M0e((Pt(),Oo),t)},g.Hb=function(){return Dbe((Pt(),Oo))},g.Ib=function(){return Hf((Pt(),Oo))};var vsr=I(zo,"ECollections/BasicEmptyUnmodifiableEList",776);T(1314,1,og,aBe),g.Nb=function(t){ko(this,t)},g.Rb=function(t){throw Q(new Hn)},g.Ob=function(){return!1},g.Sb=function(){return!1},g.Pb=function(){throw Q(new js)},g.Tb=function(){return 0},g.Ub=function(){throw Q(new js)},g.Vb=function(){return-1},g.Qb=function(){throw Q(new Hn)},g.Wb=function(t){throw Q(new Hn)};var ksr=I(zo,"ECollections/BasicEmptyUnmodifiableEList/1",1314);T(1312,776,{22:1,18:1,16:1,61:1},YJe),g._c=function(t,n){dVe()},g.Ec=function(t){return fVe()},g.ad=function(t,n){return hVe()},g.Fc=function(t){return gVe()},g.$b=function(){mVe()},g.Gc=function(t){return!1},g.Hc=function(t){return!1},g.Ic=function(t){Mo(this,t)},g.Xb=function(t){return Zfe((Pt(),t)),null},g.bd=function(t){return-1},g.dc=function(){return!0},g.Jc=function(){return this.a},g.cd=function(){return this.a},g.dd=function(t){return this.a},g.Ri=function(t,n){return pVe()},g.Si=function(t,n){bVe()},g.ed=function(t){return yVe()},g.Kc=function(t){return wVe()},g.fd=function(t,n){return xVe()},g.gc=function(){return 0},g.gd=function(t){C1(this,t)},g.Lc=function(){return new $t(this,16)},g.Mc=function(){return new It(null,new $t(this,16))},g.hd=function(t,n){return Pt(),new ph(Oo,t,n)},g.Nc=function(){return qge((Pt(),Oo))},g.Oc=function(t){return Pt(),UR(Oo,t)};var Ssr=I(zo,"ECollections/EmptyUnmodifiableEList",1312);T(1313,776,{22:1,18:1,16:1,61:1,593:1},XJe),g._c=function(t,n){dVe()},g.Ec=function(t){return fVe()},g.ad=function(t,n){return hVe()},g.Fc=function(t){return gVe()},g.$b=function(){mVe()},g.Gc=function(t){return!1},g.Hc=function(t){return!1},g.Ic=function(t){Mo(this,t)},g.Xb=function(t){return Zfe((Pt(),t)),null},g.bd=function(t){return-1},g.dc=function(){return!0},g.Jc=function(){return this.a},g.cd=function(){return this.a},g.dd=function(t){return this.a},g.Ri=function(t,n){return pVe()},g.Si=function(t,n){bVe()},g.ed=function(t){return yVe()},g.Kc=function(t){return wVe()},g.fd=function(t,n){return xVe()},g.gc=function(){return 0},g.gd=function(t){C1(this,t)},g.Lc=function(){return new $t(this,16)},g.Mc=function(){return new It(null,new $t(this,16))},g.hd=function(t,n){return Pt(),new ph(Oo,t,n)},g.Nc=function(){return qge((Pt(),Oo))},g.Oc=function(t){return Pt(),UR(Oo,t)},g._j=function(){return Pt(),Pt(),dg};var Esr=I(zo,"ECollections/EmptyUnmodifiableEMap",1313),bRe=ni(zo,"Enumerator"),uW;T(291,1,{291:1},zK),g.Fb=function(t){var n;return this===t?!0:fe(t,291)?(n=d(t,291),this.f==n.f&&xYt(this.i,n.i)&&bV(this.a,(this.f&256)!=0?(n.f&256)!=0?n.a:null:(n.f&256)!=0?null:n.a)&&bV(this.d,n.d)&&bV(this.g,n.g)&&bV(this.e,n.e)&&Isn(this,n)):!1},g.Hb=function(){return this.f},g.Ib=function(){return Hmt(this)},g.f=0;var iRt=0,oRt=0,sRt=0,aRt=0,yRe=0,wRe=0,xRe=0,ARe=0,vRe=0,cRt,lN=0,uN=0,lRt=0,uRt=0,dW,kRe,Csr=I(zo,"URI",291);T(1102,44,Gv,KJe),g.yc=function(t,n){return d(As(this,Jn(t),d(n,291)),291)};var Msr=I(zo,"URI/URICache",1102);T(495,67,$h,lBe,Q8),g.Qi=function(){return!0};var Tsr=I(zo,"UniqueEList",495);T(585,63,Qg,Y9);var Isr=I(zo,"WrappedException",585),ar=ni(Du,Vwt),cA=ni(Du,Ywt),Bc=ni(Du,Xwt),lA=ni(Du,Kwt),kf=ni(Du,Qwt),md=ni(Du,"EClass"),doe=ni(Du,"EDataType"),dRt;T(1210,44,Gv,QJe),g.xc=function(t){return io(t)?ja(this,t):Gs(xs(this.f,t))};var $sr=I(Du,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1210),fW=ni(Du,"EEnum"),um=ni(Du,Zwt),as=ni(Du,ext),pd=ni(Du,txt),bd,Q0=ni(Du,nxt),uA=ni(Du,rxt);T(1034,1,{},uBe),g.Ib=function(){return"NIL"};var Rsr=I(Du,"EStructuralFeature/Internal/DynamicValueHolder/1",1034),fRt;T(1033,44,Gv,ZJe),g.xc=function(t){return io(t)?ja(this,t):Gs(xs(this.f,t))};var Psr=I(Du,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1033),kc=ni(Du,ixt),aE=ni(Du,"EValidator/PatternMatcher"),SRe,ERe,Kt,bp,dA,Fb,hRt,gRt,mRt,_b,yp,jb,Z0,sh,pRt,bRt,yd,wp,yRt,xp,fA,C2,Vo,wRt,xRt,ew,hW=ni(Kr,"FeatureMap/Entry");T(537,1,{76:1},m8),g.Jk=function(){return this.a},g.kd=function(){return this.b};var Nsr=I(en,"BasicEObjectImpl/1",537);T(1032,1,Jee,AXe),g.Dk=function(t){return wY(this.a,this.b,t)},g.Oj=function(){return hnt(this.a,this.b)},g.Wb=function(t){Nme(this.a,this.b,t)},g.Ek=function(){gXt(this.a,this.b)};var Osr=I(en,"BasicEObjectImpl/4",1032);T(2060,1,{115:1}),g.Kk=function(t){this.e=t==0?ARt:Te(Wi,zt,1,t,5,1)},g.ii=function(t){return this.e[t]},g.ji=function(t,n){this.e[t]=n},g.ki=function(t){this.e[t]=null},g.Lk=function(){return this.c},g.Mk=function(){throw Q(new Hn)},g.Nk=function(){throw Q(new Hn)},g.Ok=function(){return this.d},g.Pk=function(){return this.e!=null},g.Qk=function(t){this.c=t},g.Rk=function(t){throw Q(new Hn)},g.Sk=function(t){throw Q(new Hn)},g.Tk=function(t){this.d=t};var ARt,Lsr=I(en,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2060);T(195,2060,{115:1},of),g.Mk=function(){return this.a},g.Nk=function(){return this.b},g.Rk=function(t){this.a=t},g.Sk=function(t){this.b=t};var Dsr=I(en,"BasicEObjectImpl/EPropertiesHolderImpl",195);T(505,101,iwt,l_),g.rh=function(){return this.f},g.wh=function(){return this.k},g.yh=function(t,n){this.g=t,this.i=n},g.Ah=function(){return(this.j&2)==0?this.fi():this.Xh().Lk()},g.Ch=function(){return this.i},g.th=function(){return(this.j&1)!=0},g.Mh=function(){return this.g},g.Sh=function(){return(this.j&4)!=0},g.Xh=function(){return!this.k&&(this.k=new of),this.k},g._h=function(t){this.Xh().Qk(t),t?this.j|=2:this.j&=-3},g.bi=function(t){this.Xh().Sk(t),t?this.j|=4:this.j&=-5},g.fi=function(){return(Jp(),Kt).S},g.i=0,g.j=1;var Fsr=I(en,"EObjectImpl",505);T(792,505,{110:1,95:1,94:1,57:1,115:1,52:1,101:1},$ge),g.ii=function(t){return this.e[t]},g.ji=function(t,n){this.e[t]=n},g.ki=function(t){this.e[t]=null},g.Ah=function(){return this.d},g.Fh=function(t){return ei(this.d,t)},g.Hh=function(){return this.d},g.Lh=function(){return this.e!=null},g.Xh=function(){return!this.k&&(this.k=new dBe),this.k},g._h=function(t){this.d=t},g.ei=function(){var t;return this.e==null&&(t=vn(this.d),this.e=t==0?vRt:Te(Wi,zt,1,t,5,1)),this},g.gi=function(){return 0};var vRt,_sr=I(en,"DynamicEObjectImpl",792);T(1500,792,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1},BZe),g.Fb=function(t){return this===t},g.Hb=function(){return Vy(this)},g._h=function(t){this.d=t,this.b=qL(t,"key"),this.c=qL(t,FP)},g.yi=function(){var t;return this.a==-1&&(t=NY(this,this.b),this.a=t==null?0:Wr(t)),this.a},g.jd=function(){return NY(this,this.b)},g.kd=function(){return NY(this,this.c)},g.zi=function(t){this.a=t},g.Ai=function(t){Nme(this,this.b,t)},g.ld=function(t){var n;return n=NY(this,this.c),Nme(this,this.c,t),n},g.a=0;var jsr=I(en,"DynamicEObjectImpl/BasicEMapEntry",1500);T(1501,1,{115:1},dBe),g.Kk=function(t){throw Q(new Hn)},g.ii=function(t){throw Q(new Hn)},g.ji=function(t,n){throw Q(new Hn)},g.ki=function(t){throw Q(new Hn)},g.Lk=function(){throw Q(new Hn)},g.Mk=function(){return this.a},g.Nk=function(){return this.b},g.Ok=function(){return this.c},g.Pk=function(){throw Q(new Hn)},g.Qk=function(t){throw Q(new Hn)},g.Rk=function(t){this.a=t},g.Sk=function(t){this.b=t},g.Tk=function(t){this.c=t};var Bsr=I(en,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1501);T(508,162,{110:1,95:1,94:1,594:1,159:1,57:1,115:1,52:1,101:1,508:1,162:1,118:1,119:1},jue),g.xh=function(t){return aye(this,t)},g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.d;case 2:return o?(!this.b&&(this.b=new Fl((Nt(),Vo),la,this)),this.b):(!this.b&&(this.b=new Fl((Nt(),Vo),la,this)),Y4(this.b));case 3:return wnt(this);case 4:return!this.a&&(this.a=new Ni(Lb,this,4)),this.a;case 5:return!this.c&&(this.c=new hv(Lb,this,5)),this.c}return Mu(this,t-vn((Nt(),bp)),jt((a=d(nn(this,16),29),a||bp),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 3:return this.Cb&&(o=(l=this.Db>>16,l>=0?aye(this,o):this.Cb.Qh(this,-1-l,null,o))),Uge(this,d(t,159),o)}return h=d(jt((a=d(nn(this,16),29),a||(Nt(),bp)),n),69),h.uk().xk(this,bc(this),n-vn((Nt(),bp)),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 2:return!this.b&&(this.b=new Fl((Nt(),Vo),la,this)),L8(this.b,t,o);case 3:return Uge(this,null,o);case 4:return!this.a&&(this.a=new Ni(Lb,this,4)),Go(this.a,t,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),bp)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),bp)),t,o)},g.Th=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!wnt(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return Eu(this,t-vn((Nt(),bp)),jt((n=d(nn(this,16),29),n||bp),t))},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:iYt(this,Jn(n));return;case 2:!this.b&&(this.b=new Fl((Nt(),Vo),la,this)),wj(this.b,n);return;case 3:Rgt(this,d(n,159));return;case 4:!this.a&&(this.a=new Ni(Lb,this,4)),Ln(this.a),!this.a&&(this.a=new Ni(Lb,this,4)),gi(this.a,d(n,18));return;case 5:!this.c&&(this.c=new hv(Lb,this,5)),Ln(this.c),!this.c&&(this.c=new hv(Lb,this,5)),gi(this.c,d(n,18));return}Nu(this,t-vn((Nt(),bp)),jt((o=d(nn(this,16),29),o||bp),t),n)},g.fi=function(){return Nt(),bp},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:obe(this,null);return;case 2:!this.b&&(this.b=new Fl((Nt(),Vo),la,this)),this.b.c.$b();return;case 3:Rgt(this,null);return;case 4:!this.a&&(this.a=new Ni(Lb,this,4)),Ln(this.a);return;case 5:!this.c&&(this.c=new hv(Lb,this,5)),Ln(this.c);return}Pu(this,t-vn((Nt(),bp)),jt((n=d(nn(this,16),29),n||bp),t))},g.Ib=function(){return plt(this)},g.d=null;var Gsr=I(en,"EAnnotationImpl",508);T(145,718,C2e,Vc),g.Ei=function(t,n){kHt(this,t,d(n,45))},g.Uk=function(t,n){return EJt(this,d(t,45),n)},g.Yi=function(t){return d(d(this.c,72).Yi(t),138)},g.Gi=function(){return d(this.c,72).Gi()},g.Hi=function(){return d(this.c,72).Hi()},g.Ii=function(t){return d(this.c,72).Ii(t)},g.Vk=function(t,n){return L8(this,t,n)},g.Dk=function(t){return d(this.c,78).Dk(t)},g.$j=function(){},g.Oj=function(){return d(this.c,78).Oj()},g.ak=function(t,n,o){var a;return a=d(iu(this.b).ti().pi(this.b),138),a.zi(t),a.Ai(n),a.ld(o),a},g.bk=function(){return new vde(this)},g.Wb=function(t){wj(this,t)},g.Ek=function(){d(this.c,78).Ek()};var zsr=I(Kr,"EcoreEMap",145);T(170,145,C2e,Fl),g.Zj=function(){var t,n,o,a,l,h;if(this.d==null){for(h=Te(mRe,E2e,67,2*this.f+1,0,1),o=this.c.Jc();o.e!=o.i.gc();)n=d(o.Wj(),138),a=n.yi(),l=(a&pr)%h.length,t=h[l],!t&&(t=h[l]=new vde(this)),t.Ec(n);this.d=h}};var Wsr=I(en,"EAnnotationImpl/1",170);T(294,444,{110:1,95:1,94:1,159:1,199:1,57:1,115:1,473:1,52:1,101:1,162:1,294:1,118:1,119:1}),g.Ih=function(t,n,o){var a,l;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Ut(),(this.Bb&256)!=0;case 3:return Ut(),(this.Bb&512)!=0;case 4:return Ge(this.s);case 5:return Ge(this.t);case 6:return Ut(),!!this.Hk();case 7:return Ut(),l=this.s,l>=1;case 8:return n?od(this):this.r;case 9:return this.q}return Mu(this,t-vn(this.fi()),jt((a=d(nn(this,16),29),a||this.fi()),t),n,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 9:return NV(this,o)}return l=d(jt((a=d(nn(this,16),29),a||this.fi()),n),69),l.uk().yk(this,bc(this),n-vn(this.fi()),t,o)},g.Th=function(t){var n,o;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&Qy(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Qy(this.q).i==0)}return Eu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.$h=function(t,n){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:this.ri(Jn(n));return;case 2:Qm(this,it(rt(n)));return;case 3:Zm(this,it(rt(n)));return;case 4:Vm(this,d(n,15).a);return;case 5:this.Xk(d(n,15).a);return;case 8:P1(this,d(n,146));return;case 9:a=Wf(this,d(n,88),null),a&&a.mj();return}Nu(this,t-vn(this.fi()),jt((o=d(nn(this,16),29),o||this.fi()),t),n)},g.fi=function(){return Nt(),xRt},g.hi=function(t){var n,o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:this.ri(null);return;case 2:Qm(this,!0);return;case 3:Zm(this,!0);return;case 4:Vm(this,0);return;case 5:this.Xk(1);return;case 8:P1(this,null);return;case 9:o=Wf(this,null,null),o&&o.mj();return}Pu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.mi=function(){od(this),this.Bb|=1},g.Fk=function(){return od(this)},g.Gk=function(){return this.t},g.Hk=function(){var t;return t=this.t,t>1||t==-1},g.Qi=function(){return(this.Bb&512)!=0},g.Wk=function(t,n){return n1e(this,t,n)},g.Xk=function(t){nx(this,t)},g.Ib=function(){return y0e(this)},g.s=0,g.t=1;var Hsr=I(en,"ETypedElementImpl",294);T(454,294,{110:1,95:1,94:1,159:1,199:1,57:1,182:1,69:1,115:1,473:1,52:1,101:1,162:1,454:1,294:1,118:1,119:1,689:1}),g.xh=function(t){return cdt(this,t)},g.Ih=function(t,n,o){var a,l;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Ut(),(this.Bb&256)!=0;case 3:return Ut(),(this.Bb&512)!=0;case 4:return Ge(this.s);case 5:return Ge(this.t);case 6:return Ut(),!!this.Hk();case 7:return Ut(),l=this.s,l>=1;case 8:return n?od(this):this.r;case 9:return this.q;case 10:return Ut(),(this.Bb&sd)!=0;case 11:return Ut(),(this.Bb&Kg)!=0;case 12:return Ut(),(this.Bb&Sx)!=0;case 13:return this.j;case 14:return AM(this);case 15:return Ut(),(this.Bb&Zc)!=0;case 16:return Ut(),(this.Bb&kh)!=0;case 17:return Yw(this)}return Mu(this,t-vn(this.fi()),jt((a=d(nn(this,16),29),a||this.fi()),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 17:return this.Cb&&(o=(l=this.Db>>16,l>=0?cdt(this,o):this.Cb.Qh(this,-1-l,null,o))),lu(this,t,17,o)}return h=d(jt((a=d(nn(this,16),29),a||this.fi()),n),69),h.uk().xk(this,bc(this),n-vn(this.fi()),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 9:return NV(this,o);case 17:return lu(this,null,17,o)}return l=d(jt((a=d(nn(this,16),29),a||this.fi()),n),69),l.uk().yk(this,bc(this),n-vn(this.fi()),t,o)},g.Th=function(t){var n,o;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&Qy(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Qy(this.q).i==0);case 10:return(this.Bb&sd)==0;case 11:return(this.Bb&Kg)!=0;case 12:return(this.Bb&Sx)!=0;case 13:return this.j!=null;case 14:return AM(this)!=null;case 15:return(this.Bb&Zc)!=0;case 16:return(this.Bb&kh)!=0;case 17:return!!Yw(this)}return Eu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.$h=function(t,n){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:oY(this,Jn(n));return;case 2:Qm(this,it(rt(n)));return;case 3:Zm(this,it(rt(n)));return;case 4:Vm(this,d(n,15).a);return;case 5:this.Xk(d(n,15).a);return;case 8:P1(this,d(n,146));return;case 9:a=Wf(this,d(n,88),null),a&&a.mj();return;case 10:oM(this,it(rt(n)));return;case 11:cM(this,it(rt(n)));return;case 12:sM(this,it(rt(n)));return;case 13:Kfe(this,Jn(n));return;case 15:aM(this,it(rt(n)));return;case 16:lM(this,it(rt(n)));return}Nu(this,t-vn(this.fi()),jt((o=d(nn(this,16),29),o||this.fi()),t),n)},g.fi=function(){return Nt(),wRt},g.hi=function(t){var n,o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:fe(this.Cb,89)&&mx(xl(d(this.Cb,89)),4),oc(this,null);return;case 2:Qm(this,!0);return;case 3:Zm(this,!0);return;case 4:Vm(this,0);return;case 5:this.Xk(1);return;case 8:P1(this,null);return;case 9:o=Wf(this,null,null),o&&o.mj();return;case 10:oM(this,!0);return;case 11:cM(this,!1);return;case 12:sM(this,!1);return;case 13:this.i=null,hj(this,null);return;case 15:aM(this,!1);return;case 16:lM(this,!1);return}Pu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.mi=function(){NC(vs((Kc(),So),this)),od(this),this.Bb|=1},g.nk=function(){return this.f},g.gk=function(){return AM(this)},g.ok=function(){return Yw(this)},g.sk=function(){return null},g.Yk=function(){return this.k},g.Jj=function(){return this.n},g.tk=function(){return aB(this)},g.uk=function(){var t,n,o,a,l,h,b,w,A;return this.p||(o=Yw(this),(o.i==null&&vh(o),o.i).length,a=this.sk(),a&&vn(Yw(a)),l=od(this),b=l.ik(),t=b?(b.i&1)!=0?b==Gc?ci:b==qn?Fi:b==gA?fT:b==lo?Ci:b==nw?F0:b==$2?_0:b==tl?NS:VP:b:null,n=AM(this),w=l.gk(),Qin(this),(this.Bb&kh)!=0&&((h=gye((Kc(),So),o))&&h!=this||(h=qk(vs(So,this))))?this.p=new kXe(this,h):this.Hk()?this.$k()?a?(this.Bb&Zc)!=0?t?this._k()?this.p=new b1(47,t,this,a):this.p=new b1(5,t,this,a):this._k()?this.p=new k1(46,this,a):this.p=new k1(4,this,a):t?this._k()?this.p=new b1(49,t,this,a):this.p=new b1(7,t,this,a):this._k()?this.p=new k1(48,this,a):this.p=new k1(6,this,a):(this.Bb&Zc)!=0?t?t==V1?this.p=new zm(50,tRt,this):this._k()?this.p=new zm(43,t,this):this.p=new zm(1,t,this):this._k()?this.p=new Hm(42,this):this.p=new Hm(0,this):t?t==V1?this.p=new zm(41,tRt,this):this._k()?this.p=new zm(45,t,this):this.p=new zm(3,t,this):this._k()?this.p=new Hm(44,this):this.p=new Hm(2,this):fe(l,160)?t==hW?this.p=new Hm(40,this):(this.Bb&512)!=0?(this.Bb&Zc)!=0?t?this.p=new zm(9,t,this):this.p=new Hm(8,this):t?this.p=new zm(11,t,this):this.p=new Hm(10,this):(this.Bb&Zc)!=0?t?this.p=new zm(13,t,this):this.p=new Hm(12,this):t?this.p=new zm(15,t,this):this.p=new Hm(14,this):a?(A=a.t,A>1||A==-1?this._k()?(this.Bb&Zc)!=0?t?this.p=new b1(25,t,this,a):this.p=new k1(24,this,a):t?this.p=new b1(27,t,this,a):this.p=new k1(26,this,a):(this.Bb&Zc)!=0?t?this.p=new b1(29,t,this,a):this.p=new k1(28,this,a):t?this.p=new b1(31,t,this,a):this.p=new k1(30,this,a):this._k()?(this.Bb&Zc)!=0?t?this.p=new b1(33,t,this,a):this.p=new k1(32,this,a):t?this.p=new b1(35,t,this,a):this.p=new k1(34,this,a):(this.Bb&Zc)!=0?t?this.p=new b1(37,t,this,a):this.p=new k1(36,this,a):t?this.p=new b1(39,t,this,a):this.p=new k1(38,this,a)):this._k()?(this.Bb&Zc)!=0?t?this.p=new zm(17,t,this):this.p=new Hm(16,this):t?this.p=new zm(19,t,this):this.p=new Hm(18,this):(this.Bb&Zc)!=0?t?this.p=new zm(21,t,this):this.p=new Hm(20,this):t?this.p=new zm(23,t,this):this.p=new Hm(22,this):this.Zk()?this._k()?this.p=new gZe(d(l,29),this,a):this.p=new Pme(d(l,29),this,a):fe(l,160)?t==hW?this.p=new Hm(40,this):(this.Bb&Zc)!=0?t?this.p=new fet(n,w,this,(DX(),b==qn?PRe:b==Gc?MRe:b==nw?NRe:b==gA?RRe:b==lo?$Re:b==$2?ORe:b==tl?TRe:b==Wu?IRe:goe)):this.p=new $tt(d(l,160),n,w,this):t?this.p=new det(n,w,this,(DX(),b==qn?PRe:b==Gc?MRe:b==nw?NRe:b==gA?RRe:b==lo?$Re:b==$2?ORe:b==tl?TRe:b==Wu?IRe:goe)):this.p=new Itt(d(l,160),n,w,this):this.$k()?a?(this.Bb&Zc)!=0?this._k()?this.p=new pZe(d(l,29),this,a):this.p=new xge(d(l,29),this,a):this._k()?this.p=new mZe(d(l,29),this,a):this.p=new lV(d(l,29),this,a):(this.Bb&Zc)!=0?this._k()?this.p=new lQe(d(l,29),this):this.p=new Lhe(d(l,29),this):this._k()?this.p=new cQe(d(l,29),this):this.p=new Vq(d(l,29),this):this._k()?a?(this.Bb&Zc)!=0?this.p=new bZe(d(l,29),this,a):this.p=new yge(d(l,29),this,a):(this.Bb&Zc)!=0?this.p=new dQe(d(l,29),this):this.p=new Dhe(d(l,29),this):a?(this.Bb&Zc)!=0?this.p=new yZe(d(l,29),this,a):this.p=new wge(d(l,29),this,a):(this.Bb&Zc)!=0?this.p=new uQe(d(l,29),this):this.p=new Z8(d(l,29),this)),this.p},g.pk=function(){return(this.Bb&sd)!=0},g.Zk=function(){return!1},g.$k=function(){return!1},g.qk=function(){return(this.Bb&kh)!=0},g.vk=function(){return LY(this)},g._k=function(){return!1},g.rk=function(){return(this.Bb&Zc)!=0},g.al=function(t){this.k=t},g.ri=function(t){oY(this,t)},g.Ib=function(){return RB(this)},g.e=!1,g.n=0;var Usr=I(en,"EStructuralFeatureImpl",454);T(336,454,{110:1,95:1,94:1,38:1,159:1,199:1,57:1,182:1,69:1,115:1,473:1,52:1,101:1,336:1,162:1,454:1,294:1,118:1,119:1,689:1},MJ),g.Ih=function(t,n,o){var a,l;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Ut(),(this.Bb&256)!=0;case 3:return Ut(),(this.Bb&512)!=0;case 4:return Ge(this.s);case 5:return Ge(this.t);case 6:return Ut(),!!f0e(this);case 7:return Ut(),l=this.s,l>=1;case 8:return n?od(this):this.r;case 9:return this.q;case 10:return Ut(),(this.Bb&sd)!=0;case 11:return Ut(),(this.Bb&Kg)!=0;case 12:return Ut(),(this.Bb&Sx)!=0;case 13:return this.j;case 14:return AM(this);case 15:return Ut(),(this.Bb&Zc)!=0;case 16:return Ut(),(this.Bb&kh)!=0;case 17:return Yw(this);case 18:return Ut(),(this.Bb&ma)!=0;case 19:return n?rX(this):_it(this)}return Mu(this,t-vn((Nt(),dA)),jt((a=d(nn(this,16),29),a||dA),t),n,o)},g.Th=function(t){var n,o;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return f0e(this);case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&Qy(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Qy(this.q).i==0);case 10:return(this.Bb&sd)==0;case 11:return(this.Bb&Kg)!=0;case 12:return(this.Bb&Sx)!=0;case 13:return this.j!=null;case 14:return AM(this)!=null;case 15:return(this.Bb&Zc)!=0;case 16:return(this.Bb&kh)!=0;case 17:return!!Yw(this);case 18:return(this.Bb&ma)!=0;case 19:return!!_it(this)}return Eu(this,t-vn((Nt(),dA)),jt((n=d(nn(this,16),29),n||dA),t))},g.$h=function(t,n){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:oY(this,Jn(n));return;case 2:Qm(this,it(rt(n)));return;case 3:Zm(this,it(rt(n)));return;case 4:Vm(this,d(n,15).a);return;case 5:Hqe(this,d(n,15).a);return;case 8:P1(this,d(n,146));return;case 9:a=Wf(this,d(n,88),null),a&&a.mj();return;case 10:oM(this,it(rt(n)));return;case 11:cM(this,it(rt(n)));return;case 12:sM(this,it(rt(n)));return;case 13:Kfe(this,Jn(n));return;case 15:aM(this,it(rt(n)));return;case 16:lM(this,it(rt(n)));return;case 18:MX(this,it(rt(n)));return}Nu(this,t-vn((Nt(),dA)),jt((o=d(nn(this,16),29),o||dA),t),n)},g.fi=function(){return Nt(),dA},g.hi=function(t){var n,o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:fe(this.Cb,89)&&mx(xl(d(this.Cb,89)),4),oc(this,null);return;case 2:Qm(this,!0);return;case 3:Zm(this,!0);return;case 4:Vm(this,0);return;case 5:this.b=0,nx(this,1);return;case 8:P1(this,null);return;case 9:o=Wf(this,null,null),o&&o.mj();return;case 10:oM(this,!0);return;case 11:cM(this,!1);return;case 12:sM(this,!1);return;case 13:this.i=null,hj(this,null);return;case 15:aM(this,!1);return;case 16:lM(this,!1);return;case 18:MX(this,!1);return}Pu(this,t-vn((Nt(),dA)),jt((n=d(nn(this,16),29),n||dA),t))},g.mi=function(){rX(this),NC(vs((Kc(),So),this)),od(this),this.Bb|=1},g.Hk=function(){return f0e(this)},g.Wk=function(t,n){return this.b=0,this.a=null,n1e(this,t,n)},g.Xk=function(t){Hqe(this,t)},g.Ib=function(){var t;return(this.Db&64)!=0?RB(this):(t=new Zu(RB(this)),t.a+=" (iD: ",Fm(t,(this.Bb&ma)!=0),t.a+=")",t.a)},g.b=0;var Jsr=I(en,"EAttributeImpl",336);T(361,444,{110:1,95:1,94:1,146:1,159:1,199:1,57:1,115:1,52:1,101:1,361:1,162:1,118:1,119:1,688:1}),g.bl=function(t){return t.Ah()==this},g.xh=function(t){return cK(this,t)},g.yh=function(t,n){this.w=null,this.Db=n<<16|this.Db&255,this.Cb=t},g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return y0(this);case 4:return this.gk();case 5:return this.F;case 6:return n?iu(this):DC(this);case 7:return!this.A&&(this.A=new Uc(kc,this,7)),this.A}return Mu(this,t-vn(this.fi()),jt((a=d(nn(this,16),29),a||this.fi()),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 6:return this.Cb&&(o=(l=this.Db>>16,l>=0?cK(this,o):this.Cb.Qh(this,-1-l,null,o))),lu(this,t,6,o)}return h=d(jt((a=d(nn(this,16),29),a||this.fi()),n),69),h.uk().xk(this,bc(this),n-vn(this.fi()),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 6:return lu(this,null,6,o);case 7:return!this.A&&(this.A=new Uc(kc,this,7)),Go(this.A,t,o)}return l=d(jt((a=d(nn(this,16),29),a||this.fi()),n),69),l.uk().yk(this,bc(this),n-vn(this.fi()),t,o)},g.Th=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!y0(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!DC(this);case 7:return!!this.A&&this.A.i!=0}return Eu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:M9(this,Jn(n));return;case 2:Lq(this,Jn(n));return;case 5:IM(this,Jn(n));return;case 7:!this.A&&(this.A=new Uc(kc,this,7)),Ln(this.A),!this.A&&(this.A=new Uc(kc,this,7)),gi(this.A,d(n,18));return}Nu(this,t-vn(this.fi()),jt((o=d(nn(this,16),29),o||this.fi()),t),n)},g.fi=function(){return Nt(),hRt},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:fe(this.Cb,187)&&(d(this.Cb,187).tb=null),oc(this,null);return;case 2:tM(this,null),HC(this,this.D);return;case 5:IM(this,null);return;case 7:!this.A&&(this.A=new Uc(kc,this,7)),Ln(this.A);return}Pu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.fk=function(){var t;return this.G==-1&&(this.G=(t=iu(this),t?ep(t.si(),this):-1)),this.G},g.gk=function(){return null},g.hk=function(){return iu(this)},g.cl=function(){return this.v},g.ik=function(){return y0(this)},g.jk=function(){return this.D!=null?this.D:this.B},g.kk=function(){return this.F},g.dk=function(t){return KK(this,t)},g.dl=function(t){this.v=t},g.el=function(t){Sat(this,t)},g.fl=function(t){this.C=t},g.ri=function(t){M9(this,t)},g.Ib=function(){return jj(this)},g.C=null,g.D=null,g.G=-1;var qsr=I(en,"EClassifierImpl",361);T(89,361,{110:1,95:1,94:1,29:1,146:1,159:1,199:1,57:1,115:1,52:1,101:1,89:1,361:1,162:1,474:1,118:1,119:1,688:1},Hue),g.bl=function(t){return uJt(this,t.Ah())},g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return y0(this);case 4:return null;case 5:return this.F;case 6:return n?iu(this):DC(this);case 7:return!this.A&&(this.A=new Uc(kc,this,7)),this.A;case 8:return Ut(),(this.Bb&256)!=0;case 9:return Ut(),(this.Bb&512)!=0;case 10:return Rs(this);case 11:return!this.q&&(this.q=new Le(pd,this,11,10)),this.q;case 12:return Fv(this);case 13:return dP(this);case 14:return dP(this),this.r;case 15:return Fv(this),this.k;case 16:return t0e(this);case 17:return tQ(this);case 18:return vh(this);case 19:return kB(this);case 20:return Fv(this),this.o;case 21:return!this.s&&(this.s=new Le(Bc,this,21,17)),this.s;case 22:return Ma(this);case 23:return GK(this)}return Mu(this,t-vn((Nt(),Fb)),jt((a=d(nn(this,16),29),a||Fb),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 6:return this.Cb&&(o=(l=this.Db>>16,l>=0?cK(this,o):this.Cb.Qh(this,-1-l,null,o))),lu(this,t,6,o);case 11:return!this.q&&(this.q=new Le(pd,this,11,10)),sc(this.q,t,o);case 21:return!this.s&&(this.s=new Le(Bc,this,21,17)),sc(this.s,t,o)}return h=d(jt((a=d(nn(this,16),29),a||(Nt(),Fb)),n),69),h.uk().xk(this,bc(this),n-vn((Nt(),Fb)),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 6:return lu(this,null,6,o);case 7:return!this.A&&(this.A=new Uc(kc,this,7)),Go(this.A,t,o);case 11:return!this.q&&(this.q=new Le(pd,this,11,10)),Go(this.q,t,o);case 21:return!this.s&&(this.s=new Le(Bc,this,21,17)),Go(this.s,t,o);case 22:return Go(Ma(this),t,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),Fb)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),Fb)),t,o)},g.Th=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!y0(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!DC(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&Ma(this.u.a).i!=0&&!(this.n&&KX(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return Fv(this).i!=0;case 13:return dP(this).i!=0;case 14:return dP(this),this.r.i!=0;case 15:return Fv(this),this.k.i!=0;case 16:return t0e(this).i!=0;case 17:return tQ(this).i!=0;case 18:return vh(this).i!=0;case 19:return kB(this).i!=0;case 20:return Fv(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&KX(this.n);case 23:return GK(this).i!=0}return Eu(this,t-vn((Nt(),Fb)),jt((n=d(nn(this,16),29),n||Fb),t))},g.Wh=function(t){var n;return n=this.i==null||this.q&&this.q.i!=0?null:qL(this,t),n||Hwe(this,t)},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:M9(this,Jn(n));return;case 2:Lq(this,Jn(n));return;case 5:IM(this,Jn(n));return;case 7:!this.A&&(this.A=new Uc(kc,this,7)),Ln(this.A),!this.A&&(this.A=new Uc(kc,this,7)),gi(this.A,d(n,18));return;case 8:o1e(this,it(rt(n)));return;case 9:s1e(this,it(rt(n)));return;case 10:gP(Rs(this)),gi(Rs(this),d(n,18));return;case 11:!this.q&&(this.q=new Le(pd,this,11,10)),Ln(this.q),!this.q&&(this.q=new Le(pd,this,11,10)),gi(this.q,d(n,18));return;case 21:!this.s&&(this.s=new Le(Bc,this,21,17)),Ln(this.s),!this.s&&(this.s=new Le(Bc,this,21,17)),gi(this.s,d(n,18));return;case 22:Ln(Ma(this)),gi(Ma(this),d(n,18));return}Nu(this,t-vn((Nt(),Fb)),jt((o=d(nn(this,16),29),o||Fb),t),n)},g.fi=function(){return Nt(),Fb},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:fe(this.Cb,187)&&(d(this.Cb,187).tb=null),oc(this,null);return;case 2:tM(this,null),HC(this,this.D);return;case 5:IM(this,null);return;case 7:!this.A&&(this.A=new Uc(kc,this,7)),Ln(this.A);return;case 8:o1e(this,!1);return;case 9:s1e(this,!1);return;case 10:this.u&&gP(this.u);return;case 11:!this.q&&(this.q=new Le(pd,this,11,10)),Ln(this.q);return;case 21:!this.s&&(this.s=new Le(Bc,this,21,17)),Ln(this.s);return;case 22:this.n&&Ln(this.n);return}Pu(this,t-vn((Nt(),Fb)),jt((n=d(nn(this,16),29),n||Fb),t))},g.mi=function(){var t,n;if(Fv(this),dP(this),t0e(this),tQ(this),vh(this),kB(this),GK(this),xR(BVt(xl(this))),this.s)for(t=0,n=this.s.i;t<n;++t)A4(ue(this.s,t));if(this.q)for(t=0,n=this.q.i;t<n;++t)A4(ue(this.q,t));Km((Kc(),So),this).ve(),this.Bb|=1},g.Ib=function(){return Aye(this)},g.k=null,g.r=null;var dN,kRt,foe,Vsr=I(en,"EClassImpl",89);T(2071,2070,axt),g.Ci=function(t,n){return QK(this,t,n)},g.Di=function(t){return QK(this,this.i,t)},g.Ei=function(t,n){b0e(this,t,n)},g.Fi=function(t){OK(this,t)},g.Uk=function(t,n){return sc(this,t,n)},g.Yi=function(t){return Npe(this,t)},g.Vk=function(t,n){return Go(this,t,n)},g.Vi=function(t,n){return kpt(this,t,n)},g.Gi=function(){return new Nk(this)},g.Hi=function(){return new w4(this)},g.Ii=function(t){return lL(this,t)};var Ysr=I(Kr,"NotifyingInternalEListImpl",2071);T(630,2071,Fs),g.Gc=function(t){return Hpt(this,t)},g.Gj=function(t,n,o,a,l){return gR(this,t,n,o,a,l)},g.Hj=function(t){oC(this,t)},g.Dk=function(t){return this},g.Jk=function(){return jt(this.e.Ah(),this.Jj())},g.Ij=function(){return this.Jk()},g.Jj=function(){return ei(this.e.Ah(),this.Jk())},g.gl=function(){return d(this.Jk().Fk(),29).ik()},g.hl=function(){return Ko(d(this.Jk(),20)).n},g.hj=function(){return this.e},g.il=function(){return!0},g.jl=function(){return!1},g.kl=function(){return!1},g.ll=function(){return!1},g.bd=function(t){return ep(this,t)},g.Lj=function(t,n){var o;return o=d(t,52),this.kl()?this.il()?o.Oh(this.e,this.hl(),this.gl(),n):o.Oh(this.e,ei(o.Ah(),Ko(d(this.Jk(),20))),null,n):o.Oh(this.e,-1-this.Jj(),null,n)},g.Mj=function(t,n){var o;return o=d(t,52),this.kl()?this.il()?o.Qh(this.e,this.hl(),this.gl(),n):o.Qh(this.e,ei(o.Ah(),Ko(d(this.Jk(),20))),null,n):o.Qh(this.e,-1-this.Jj(),null,n)},g.$k=function(){return!1},g.ml=function(){return!0},g.dk=function(t){return Brt(this.d,t)},g.Nj=function(){return Ll(this.e)},g.Oj=function(){return this.i!=0},g.$i=function(t){return cL(this.d,t)},g.Ui=function(t,n){return this.ml()&&this.ll()?bS(this,t,d(n,57)):n},g.nl=function(t){return t.Sh()?ib(this.e,d(t,52)):t},g.Wb=function(t){gKe(this,t)},g.Nc=function(){return Aot(this)},g.Oc=function(t){var n;if(this.ll())for(n=this.i-1;n>=0;--n)ue(this,n);return I1e(this,t)},g.Ek=function(){Ln(this)},g.Xi=function(t,n){return Qst(this,t,n)};var Xsr=I(Kr,"EcoreEList",630);T(494,630,Fs,P4),g.Ji=function(){return!1},g.Jj=function(){return this.c},g.Kj=function(){return!1},g.ml=function(){return!0},g.Qi=function(){return!0},g.Ui=function(t,n){return n},g.Wi=function(){return!1},g.c=0;var Ksr=I(Kr,"EObjectEList",494);T(82,494,Fs,Ni),g.Kj=function(){return!0},g.kl=function(){return!1},g.$k=function(){return!0};var Qsr=I(Kr,"EObjectContainmentEList",82);T(547,82,Fs,C8),g.Li=function(){this.b=!0},g.Oj=function(){return this.b},g.Ek=function(){var t;Ln(this),Ll(this.e)?(t=this.b,this.b=!1,kr(this.e,new Rd(this.e,2,this.c,t,!1))):this.b=!1},g.b=!1;var Zsr=I(Kr,"EObjectContainmentEList/Unsettable",547);T(1142,547,Fs,cet),g.Ri=function(t,n){var o,a;return o=d(jR(this,t,n),88),Ll(this.e)&&oC(this,new X4(this.a,7,(Nt(),gRt),Ge(n),(a=o.c,fe(a,89)?d(a,29):yd),t)),o},g.Sj=function(t,n){return Pon(this,d(t,88),n)},g.Tj=function(t,n){return Ron(this,d(t,88),n)},g.Uj=function(t,n,o){return Lcn(this,d(t,88),d(n,88),o)},g.Gj=function(t,n,o,a,l){switch(t){case 3:return gR(this,t,n,o,a,this.i>1);case 5:return gR(this,t,n,o,a,this.i-d(o,16).gc()>0);default:return new Gg(this.e,t,this.c,n,o,a,!0)}},g.Rj=function(){return!0},g.Oj=function(){return KX(this)},g.Ek=function(){Ln(this)};var ear=I(en,"EClassImpl/1",1142);T(1156,1155,S2e),g.bj=function(t){var n,o,a,l,h,b,w;if(o=t.ej(),o!=8){if(a=hsn(t),a==0)switch(o){case 1:case 9:{w=t.ij(),w!=null&&(n=xl(d(w,474)),!n.c&&(n.c=new ZE),Q9(n.c,t.hj())),b=t.gj(),b!=null&&(l=d(b,474),(l.Bb&1)==0&&(n=xl(l),!n.c&&(n.c=new ZE),jn(n.c,d(t.hj(),29))));break}case 3:{b=t.gj(),b!=null&&(l=d(b,474),(l.Bb&1)==0&&(n=xl(l),!n.c&&(n.c=new ZE),jn(n.c,d(t.hj(),29))));break}case 5:{if(b=t.gj(),b!=null)for(h=d(b,18).Jc();h.Ob();)l=d(h.Pb(),474),(l.Bb&1)==0&&(n=xl(l),!n.c&&(n.c=new ZE),jn(n.c,d(t.hj(),29)));break}case 4:{w=t.ij(),w!=null&&(l=d(w,474),(l.Bb&1)==0&&(n=xl(l),!n.c&&(n.c=new ZE),Q9(n.c,t.hj())));break}case 6:{if(w=t.ij(),w!=null)for(h=d(w,18).Jc();h.Ob();)l=d(h.Pb(),474),(l.Bb&1)==0&&(n=xl(l),!n.c&&(n.c=new ZE),Q9(n.c,t.hj()));break}}this.ol(a)}},g.ol=function(t){bmt(this,t)},g.b=63;var tar=I(en,"ESuperAdapter",1156);T(1157,1156,S2e,cJe),g.ol=function(t){mx(this,t)};var nar=I(en,"EClassImpl/10",1157);T(1146,706,Fs),g.Ci=function(t,n){return xK(this,t,n)},g.Di=function(t){return Jut(this,t)},g.Ei=function(t,n){vL(this,t,n)},g.Fi=function(t){J4(this,t)},g.Yi=function(t){return Npe(this,t)},g.Vi=function(t,n){return OY(this,t,n)},g.Uk=function(t,n){throw Q(new Hn)},g.Gi=function(){return new Nk(this)},g.Hi=function(){return new w4(this)},g.Ii=function(t){return lL(this,t)},g.Vk=function(t,n){throw Q(new Hn)},g.Dk=function(t){return this},g.Oj=function(){return this.i!=0},g.Wb=function(t){throw Q(new Hn)},g.Ek=function(){throw Q(new Hn)};var rar=I(Kr,"EcoreEList/UnmodifiableEList",1146);T(334,1146,Fs,av),g.Wi=function(){return!1};var iar=I(Kr,"EcoreEList/UnmodifiableEList/FastCompare",334);T(1149,334,Fs,bct),g.bd=function(t){var n,o,a;if(fe(t,182)&&(n=d(t,182),o=n.Jj(),o!=-1)){for(a=this.i;o<a;++o)if(Ee(this.g[o])===Ee(t))return o}return-1};var oar=I(en,"EClassImpl/1EAllStructuralFeaturesList",1149);T(1143,495,$h,fBe),g.$i=function(t){return Te(as,cxt,88,t,0,1)},g.Wi=function(){return!1};var sar=I(en,"EClassImpl/1EGenericSuperTypeEList",1143);T(631,495,$h,sJ),g.$i=function(t){return Te(Bc,Yv,182,t,0,1)},g.Wi=function(){return!1};var aar=I(en,"EClassImpl/1EStructuralFeatureUniqueEList",631);T(750,495,$h,Bue),g.$i=function(t){return Te(uA,Yv,20,t,0,1)},g.Wi=function(){return!1};var car=I(en,"EClassImpl/1ReferenceList",750);T(1144,495,$h,lJe),g.Ki=function(t,n){CYt(this,d(n,38))},g.$i=function(t){return Te(lA,Yv,38,t,0,1)},g.Wi=function(){return!1};var lar=I(en,"EClassImpl/2",1144);T(1145,495,$h,hBe),g.$i=function(t){return Te(lA,Yv,38,t,0,1)},g.Wi=function(){return!1};var uar=I(en,"EClassImpl/3",1145);T(1147,334,Fs,SZe),g.Ec=function(t){return ZZt(this,d(t,38))},g.Fi=function(t){CWt(this,d(t,38))};var dar=I(en,"EClassImpl/4",1147);T(1148,334,Fs,EZe),g.Ec=function(t){return een(this,d(t,20))},g.Fi=function(t){MWt(this,d(t,20))};var far=I(en,"EClassImpl/5",1148);T(1150,495,$h,gBe),g.$i=function(t){return Te(pd,M2e,62,t,0,1)},g.Wi=function(){return!1};var har=I(en,"EClassImpl/6",1150);T(1151,495,$h,mBe),g.$i=function(t){return Te(uA,Yv,20,t,0,1)},g.Wi=function(){return!1};var gar=I(en,"EClassImpl/7",1151);T(2074,2073,{3:1,4:1,22:1,32:1,56:1,18:1,16:1,71:1,61:1,72:1}),g.Ci=function(t,n){return ywe(this,t,n)},g.Di=function(t){return ywe(this,this.Cj(),t)},g.Ei=function(t,n){Jht(this,t,n)},g.Fi=function(t){Lht(this,t)},g.Uk=function(t,n){return oan(this,t,n)},g.Vk=function(t,n){return Osn(this,t,n)},g.Vi=function(t,n){return opt(this,t,n)},g.Yi=function(t){return this.vj(t)},g.Gi=function(){return new Nk(this)},g.nj=function(){return this.qj()},g.Hi=function(){return new w4(this)},g.Ii=function(t){return lL(this,t)};var mar=I(Kr,"DelegatingNotifyingInternalEListImpl",2074);T(751,2074,T2e),g.Ji=function(){var t;return t=jt(Ic(this.b),this.Jj()).Fk(),fe(t,160)&&!fe(t,462)&&(t.ik().i&1)==0},g.Gc=function(t){var n,o,a,l,h,b,w,A;if(this.ml()){if(A=this.Cj(),A>4)if(this.dk(t)){if(this.$k()){if(a=d(t,52),o=a.Bh(),w=o==this.b&&(this.kl()?a.vh(a.Ch(),d(jt(Ic(this.b),this.Jj()).Fk(),29).ik())==Ko(d(jt(Ic(this.b),this.Jj()),20)).n:-1-a.Ch()==this.Jj()),this.ll()&&!w&&!o&&a.Gh()){for(l=0;l<A;++l)if(n=EV(this,this.vj(l)),Ee(n)===Ee(t))return!0}return w}else if(this.kl()&&!this.jl()){if(h=d(t,57).Jh(Ko(d(jt(Ic(this.b),this.Jj()),20))),Ee(h)===Ee(this.b))return!0;if(h==null||!d(h,57).Sh())return!1}}else return!1;if(b=this.sj(t),this.ll()&&!b){for(l=0;l<A;++l)if(a=EV(this,this.vj(l)),Ee(a)===Ee(t))return!0}return b}else return this.sj(t)},g.Gj=function(t,n,o,a,l){return new Gg(this.b,t,this.Jj(),n,o,a,l)},g.Hj=function(t){kr(this.b,t)},g.Dk=function(t){return this},g.Ij=function(){return jt(Ic(this.b),this.Jj())},g.Jj=function(){return ei(Ic(this.b),jt(Ic(this.b),this.Jj()))},g.hj=function(){return this.b},g.il=function(){return!!jt(Ic(this.b),this.Jj()).Fk().ik()},g.Kj=function(){var t,n;return n=jt(Ic(this.b),this.Jj()),fe(n,104)?(t=d(n,20),(t.Bb&ma)!=0||!!Ko(d(n,20))):!1},g.jl=function(){var t,n,o,a;return n=jt(Ic(this.b),this.Jj()),fe(n,104)?(t=d(n,20),o=Ko(t),!!o&&(a=o.t,a>1||a==-1)):!1},g.kl=function(){var t,n,o;return n=jt(Ic(this.b),this.Jj()),fe(n,104)?(t=d(n,20),o=Ko(t),!!o):!1},g.ll=function(){var t,n;return n=jt(Ic(this.b),this.Jj()),fe(n,104)?(t=d(n,20),(t.Bb&Jo)!=0):!1},g.bd=function(t){var n,o,a,l;if(a=this.xj(t),a>=0)return a;if(this.ml()){for(o=0,l=this.Cj();o<l;++o)if(n=EV(this,this.vj(o)),Ee(n)===Ee(t))return o}return-1},g.Lj=function(t,n){var o;return o=d(t,52),this.kl()?this.il()?o.Oh(this.b,Ko(d(jt(Ic(this.b),this.Jj()),20)).n,d(jt(Ic(this.b),this.Jj()).Fk(),29).ik(),n):o.Oh(this.b,ei(o.Ah(),Ko(d(jt(Ic(this.b),this.Jj()),20))),null,n):o.Oh(this.b,-1-this.Jj(),null,n)},g.Mj=function(t,n){var o;return o=d(t,52),this.kl()?this.il()?o.Qh(this.b,Ko(d(jt(Ic(this.b),this.Jj()),20)).n,d(jt(Ic(this.b),this.Jj()).Fk(),29).ik(),n):o.Qh(this.b,ei(o.Ah(),Ko(d(jt(Ic(this.b),this.Jj()),20))),null,n):o.Qh(this.b,-1-this.Jj(),null,n)},g.$k=function(){var t,n;return n=jt(Ic(this.b),this.Jj()),fe(n,104)?(t=d(n,20),(t.Bb&ma)!=0):!1},g.ml=function(){return fe(jt(Ic(this.b),this.Jj()).Fk(),89)},g.dk=function(t){return jt(Ic(this.b),this.Jj()).Fk().dk(t)},g.Nj=function(){return Ll(this.b)},g.Oj=function(){return!this.yj()},g.Qi=function(){return jt(Ic(this.b),this.Jj()).Qi()},g.Ui=function(t,n){return eD(this,t,n)},g.Wb=function(t){gP(this),gi(this,d(t,16))},g.Nc=function(){var t;if(this.ll())for(t=this.Cj()-1;t>=0;--t)eD(this,t,this.vj(t));return this.Dj()},g.Oc=function(t){var n;if(this.ll())for(n=this.Cj()-1;n>=0;--n)eD(this,n,this.vj(n));return this.Ej(t)},g.Ek=function(){gP(this)},g.Xi=function(t,n){return xot(this,t,n)};var par=I(Kr,"DelegatingEcoreEList",751);T(1152,751,T2e,vQe),g.oj=function(t,n){NUt(this,t,d(n,29))},g.pj=function(t){EHt(this,d(t,29))},g.vj=function(t){var n,o;return n=d(ue(Ma(this.a),t),88),o=n.c,fe(o,89)?d(o,29):(Nt(),yd)},g.Aj=function(t){var n,o;return n=d(yx(Ma(this.a),t),88),o=n.c,fe(o,89)?d(o,29):(Nt(),yd)},g.Bj=function(t,n){return san(this,t,d(n,29))},g.Ji=function(){return!1},g.Gj=function(t,n,o,a,l){return null},g.qj=function(){return new uJe(this)},g.rj=function(){Ln(Ma(this.a))},g.sj=function(t){return blt(this,t)},g.tj=function(t){var n,o;for(o=t.Jc();o.Ob();)if(n=o.Pb(),!blt(this,n))return!1;return!0},g.uj=function(t){var n,o,a;if(fe(t,16)&&(a=d(t,16),a.gc()==Ma(this.a).i)){for(n=a.Jc(),o=new fn(this);n.Ob();)if(Ee(n.Pb())!==Ee(bn(o)))return!1;return!0}return!1},g.wj=function(){var t,n,o,a,l;for(o=1,n=new fn(Ma(this.a));n.e!=n.i.gc();)t=d(bn(n),88),a=(l=t.c,fe(l,89)?d(l,29):(Nt(),yd)),o=31*o+(a?Vy(a):0);return o},g.xj=function(t){var n,o,a,l;for(a=0,o=new fn(Ma(this.a));o.e!=o.i.gc();){if(n=d(bn(o),88),Ee(t)===Ee((l=n.c,fe(l,89)?d(l,29):(Nt(),yd))))return a;++a}return-1},g.yj=function(){return Ma(this.a).i==0},g.zj=function(){return null},g.Cj=function(){return Ma(this.a).i},g.Dj=function(){var t,n,o,a,l,h;for(h=Ma(this.a).i,l=Te(Wi,zt,1,h,5,1),o=0,n=new fn(Ma(this.a));n.e!=n.i.gc();)t=d(bn(n),88),l[o++]=(a=t.c,fe(a,89)?d(a,29):(Nt(),yd));return l},g.Ej=function(t){var n,o,a,l,h,b,w;for(w=Ma(this.a).i,t.length<w&&(l=cL(zl(t).c,w),t=l),t.length>w&&yi(t,w,null),a=0,o=new fn(Ma(this.a));o.e!=o.i.gc();)n=d(bn(o),88),h=(b=n.c,fe(b,89)?d(b,29):(Nt(),yd)),yi(t,a++,h);return t},g.Fj=function(){var t,n,o,a,l;for(l=new Dm,l.a+="[",t=Ma(this.a),n=0,a=Ma(this.a).i;n<a;)ds(l,X$((o=d(ue(t,n),88).c,fe(o,89)?d(o,29):(Nt(),yd)))),++n<a&&(l.a+=ac);return l.a+="]",l.a},g.Hj=function(t){},g.Jj=function(){return 10},g.il=function(){return!0},g.Kj=function(){return!1},g.jl=function(){return!1},g.kl=function(){return!1},g.ll=function(){return!0},g.$k=function(){return!1},g.ml=function(){return!0},g.dk=function(t){return fe(t,89)},g.Oj=function(){return JQt(this.a)},g.Qi=function(){return!0},g.Wi=function(){return!0};var bar=I(en,"EClassImpl/8",1152);T(1153,2041,LM,uJe),g.dd=function(t){return lL(this.a,t)},g.gc=function(){return Ma(this.a.a).i};var yar=I(en,"EClassImpl/8/1",1153);T(1154,495,$h,pBe),g.$i=function(t){return Te(kf,zt,146,t,0,1)},g.Wi=function(){return!1};var war=I(en,"EClassImpl/9",1154);T(1141,47,axe,eqe);var xar=I(en,"EClassImpl/MyHashSet",1141);T(570,361,{110:1,95:1,94:1,146:1,160:1,839:1,159:1,199:1,57:1,115:1,52:1,101:1,361:1,162:1,118:1,119:1,688:1},x_),g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return y0(this);case 4:return this.gk();case 5:return this.F;case 6:return n?iu(this):DC(this);case 7:return!this.A&&(this.A=new Uc(kc,this,7)),this.A;case 8:return Ut(),(this.Bb&256)!=0}return Mu(this,t-vn(this.fi()),jt((a=d(nn(this,16),29),a||this.fi()),t),n,o)},g.Th=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!y0(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!DC(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0}return Eu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:M9(this,Jn(n));return;case 2:Lq(this,Jn(n));return;case 5:IM(this,Jn(n));return;case 7:!this.A&&(this.A=new Uc(kc,this,7)),Ln(this.A),!this.A&&(this.A=new Uc(kc,this,7)),gi(this.A,d(n,18));return;case 8:Pj(this,it(rt(n)));return}Nu(this,t-vn(this.fi()),jt((o=d(nn(this,16),29),o||this.fi()),t),n)},g.fi=function(){return Nt(),mRt},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:fe(this.Cb,187)&&(d(this.Cb,187).tb=null),oc(this,null);return;case 2:tM(this,null),HC(this,this.D);return;case 5:IM(this,null);return;case 7:!this.A&&(this.A=new Uc(kc,this,7)),Ln(this.A);return;case 8:Pj(this,!0);return}Pu(this,t-vn(this.fi()),jt((n=d(nn(this,16),29),n||this.fi()),t))},g.mi=function(){Km((Kc(),So),this).ve(),this.Bb|=1},g.mk=function(){var t,n,o;if(!this.c&&(t=sgt(iu(this)),!t.dc()))for(o=t.Jc();o.Ob();)n=Jn(o.Pb()),cP(this,n)&&jin(this);return this.b},g.gk=function(){var t;if(!this.e){t=null;try{t=y0(this)}catch(n){if(n=ki(n),!fe(n,102))throw Q(n)}this.d=null,t&&(t.i&1)!=0&&(t==Gc?this.d=(Ut(),wb):t==qn?this.d=Ge(0):t==gA?this.d=new zO(0):t==lo?this.d=0:t==nw?this.d=ux(0):t==$2?this.d=iM(0):t==tl?this.d=rL(0):this.d=hL(0)),this.e=!0}return this.d},g.lk=function(){return(this.Bb&256)!=0},g.pl=function(t){t&&(this.D="org.eclipse.emf.common.util.AbstractEnumerator")},g.el=function(t){Sat(this,t),this.pl(t)},g.fl=function(t){this.C=t,this.e=!1},g.Ib=function(){var t;return(this.Db&64)!=0?jj(this):(t=new Zu(jj(this)),t.a+=" (serializable: ",Fm(t,(this.Bb&256)!=0),t.a+=")",t.a)},g.c=!1,g.d=null,g.e=!1;var Aar=I(en,"EDataTypeImpl",570);T(462,570,{110:1,95:1,94:1,146:1,160:1,839:1,682:1,159:1,199:1,57:1,115:1,52:1,101:1,361:1,462:1,162:1,118:1,119:1,688:1},tqe),g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return y0(this);case 4:return Jbe(this);case 5:return this.F;case 6:return n?iu(this):DC(this);case 7:return!this.A&&(this.A=new Uc(kc,this,7)),this.A;case 8:return Ut(),(this.Bb&256)!=0;case 9:return!this.a&&(this.a=new Le(um,this,9,5)),this.a}return Mu(this,t-vn((Nt(),_b)),jt((a=d(nn(this,16),29),a||_b),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 6:return this.Cb&&(o=(l=this.Db>>16,l>=0?cK(this,o):this.Cb.Qh(this,-1-l,null,o))),lu(this,t,6,o);case 9:return!this.a&&(this.a=new Le(um,this,9,5)),sc(this.a,t,o)}return h=d(jt((a=d(nn(this,16),29),a||(Nt(),_b)),n),69),h.uk().xk(this,bc(this),n-vn((Nt(),_b)),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 6:return lu(this,null,6,o);case 7:return!this.A&&(this.A=new Uc(kc,this,7)),Go(this.A,t,o);case 9:return!this.a&&(this.a=new Le(um,this,9,5)),Go(this.a,t,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),_b)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),_b)),t,o)},g.Th=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!y0(this);case 4:return!!Jbe(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!DC(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return Eu(this,t-vn((Nt(),_b)),jt((n=d(nn(this,16),29),n||_b),t))},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:M9(this,Jn(n));return;case 2:Lq(this,Jn(n));return;case 5:IM(this,Jn(n));return;case 7:!this.A&&(this.A=new Uc(kc,this,7)),Ln(this.A),!this.A&&(this.A=new Uc(kc,this,7)),gi(this.A,d(n,18));return;case 8:Pj(this,it(rt(n)));return;case 9:!this.a&&(this.a=new Le(um,this,9,5)),Ln(this.a),!this.a&&(this.a=new Le(um,this,9,5)),gi(this.a,d(n,18));return}Nu(this,t-vn((Nt(),_b)),jt((o=d(nn(this,16),29),o||_b),t),n)},g.fi=function(){return Nt(),_b},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:fe(this.Cb,187)&&(d(this.Cb,187).tb=null),oc(this,null);return;case 2:tM(this,null),HC(this,this.D);return;case 5:IM(this,null);return;case 7:!this.A&&(this.A=new Uc(kc,this,7)),Ln(this.A);return;case 8:Pj(this,!0);return;case 9:!this.a&&(this.a=new Le(um,this,9,5)),Ln(this.a);return}Pu(this,t-vn((Nt(),_b)),jt((n=d(nn(this,16),29),n||_b),t))},g.mi=function(){var t,n;if(this.a)for(t=0,n=this.a.i;t<n;++t)A4(ue(this.a,t));Km((Kc(),So),this).ve(),this.Bb|=1},g.gk=function(){return Jbe(this)},g.dk=function(t){return t!=null},g.pl=function(t){};var kar=I(en,"EEnumImpl",462);T(575,444,{110:1,95:1,94:1,2018:1,691:1,159:1,199:1,57:1,115:1,52:1,101:1,575:1,162:1,118:1,119:1},yJe),g.ve=function(){return this.zb},g.xh=function(t){return wdt(this,t)},g.Ih=function(t,n,o){var a,l;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Ge(this.d);case 3:return this.b?this.b:this.a;case 4:return l=this.c,l??this.zb;case 5:return this.Db>>16==5?d(this.Cb,682):null}return Mu(this,t-vn((Nt(),yp)),jt((a=d(nn(this,16),29),a||yp),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 5:return this.Cb&&(o=(l=this.Db>>16,l>=0?wdt(this,o):this.Cb.Qh(this,-1-l,null,o))),lu(this,t,5,o)}return h=d(jt((a=d(nn(this,16),29),a||(Nt(),yp)),n),69),h.uk().xk(this,bc(this),n-vn((Nt(),yp)),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 5:return lu(this,null,5,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),yp)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),yp)),t,o)},g.Th=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&d(this.Cb,682))}return Eu(this,t-vn((Nt(),yp)),jt((n=d(nn(this,16),29),n||yp),t))},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:oc(this,Jn(n));return;case 2:GY(this,d(n,15).a);return;case 3:Cht(this,d(n,2018));return;case 4:WY(this,Jn(n));return}Nu(this,t-vn((Nt(),yp)),jt((o=d(nn(this,16),29),o||yp),t),n)},g.fi=function(){return Nt(),yp},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:oc(this,null);return;case 2:GY(this,0);return;case 3:Cht(this,null);return;case 4:WY(this,null);return}Pu(this,t-vn((Nt(),yp)),jt((n=d(nn(this,16),29),n||yp),t))},g.Ib=function(){var t;return t=this.c,t??this.zb},g.b=null,g.c=null,g.d=0;var Sar=I(en,"EEnumLiteralImpl",575),Mxn=ni(en,"EFactoryImpl/InternalEDateTimeFormat");T(488,1,{2093:1},WO);var Ear=I(en,"EFactoryImpl/1ClientInternalEDateTimeFormat",488);T(251,119,{110:1,95:1,94:1,88:1,57:1,115:1,52:1,101:1,251:1,118:1,119:1},Fy),g.zh=function(t,n,o){var a;return o=lu(this,t,n,o),this.e&&fe(t,182)&&(a=vB(this,this.e),a!=this.c&&(o=$M(this,a,o))),o},g.Ih=function(t,n,o){var a;switch(t){case 0:return this.f;case 1:return!this.d&&(this.d=new Ni(as,this,1)),this.d;case 2:return n?NB(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return n?eK(this):this.a}return Mu(this,t-vn((Nt(),Z0)),jt((a=d(nn(this,16),29),a||Z0),t),n,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return ilt(this,null,o);case 1:return!this.d&&(this.d=new Ni(as,this,1)),Go(this.d,t,o);case 3:return rlt(this,null,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),Z0)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),Z0)),t,o)},g.Th=function(t){var n;switch(t){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return Eu(this,t-vn((Nt(),Z0)),jt((n=d(nn(this,16),29),n||Z0),t))},g.$h=function(t,n){var o;switch(t){case 0:_dt(this,d(n,88));return;case 1:!this.d&&(this.d=new Ni(as,this,1)),Ln(this.d),!this.d&&(this.d=new Ni(as,this,1)),gi(this.d,d(n,18));return;case 3:vye(this,d(n,88));return;case 4:Gye(this,d(n,842));return;case 5:WC(this,d(n,146));return}Nu(this,t-vn((Nt(),Z0)),jt((o=d(nn(this,16),29),o||Z0),t),n)},g.fi=function(){return Nt(),Z0},g.hi=function(t){var n;switch(t){case 0:_dt(this,null);return;case 1:!this.d&&(this.d=new Ni(as,this,1)),Ln(this.d);return;case 3:vye(this,null);return;case 4:Gye(this,null);return;case 5:WC(this,null);return}Pu(this,t-vn((Nt(),Z0)),jt((n=d(nn(this,16),29),n||Z0),t))},g.Ib=function(){var t;return t=new Zl(Fd(this)),t.a+=" (expression: ",sQ(this,t),t.a+=")",t.a};var CRe,Car=I(en,"EGenericTypeImpl",251);T(2046,2041,j7),g.Ei=function(t,n){xQe(this,t,n)},g.Uk=function(t,n){return xQe(this,this.gc(),t),n},g.Yi=function(t){return Ta(this.nj(),t)},g.Gi=function(){return this.Hi()},g.nj=function(){return new mJe(this)},g.Hi=function(){return this.Ii(0)},g.Ii=function(t){return this.nj().dd(t)},g.Vk=function(t,n){return cx(this,t,!0),n},g.Ri=function(t,n){var o,a;return a=dK(this,n),o=this.dd(t),o.Rb(a),a},g.Si=function(t,n){var o;cx(this,n,!0),o=this.dd(t),o.Rb(n)};var Mar=I(Kr,"AbstractSequentialInternalEList",2046);T(485,2046,j7,x4),g.Yi=function(t){return Ta(this.nj(),t)},g.Gi=function(){return this.b==null?(Bm(),Bm(),Z5):this.ql()},g.nj=function(){return new BXe(this.a,this.b)},g.Hi=function(){return this.b==null?(Bm(),Bm(),Z5):this.ql()},g.Ii=function(t){var n,o;if(this.b==null){if(t<0||t>1)throw Q(new ec(_P+t+", size=0"));return Bm(),Bm(),Z5}for(o=this.ql(),n=0;n<t;++n)Aj(o);return o},g.dc=function(){var t,n,o,a,l,h;if(this.b!=null){for(o=0;o<this.b.length;++o)if(t=this.b[o],!this.tl()||this.a.Uh(t)){if(h=this.a.Kh(t,!1),Xo(),d(t,69).vk()){for(n=d(h,164),a=0,l=n.gc();a<l;++a)if(Yet(n.Rl(a))&&n.Sl(a)!=null)return!1}else if(t.Hk()){if(!d(h,18).dc())return!1}else if(h!=null)return!1}}return!0},g.Jc=function(){return cbe(this)},g.dd=function(t){var n,o;if(this.b==null){if(t!=0)throw Q(new ec(_P+t+", size=0"));return Bm(),Bm(),Z5}for(o=this.sl()?this.rl():this.ql(),n=0;n<t;++n)Aj(o);return o},g.Ri=function(t,n){throw Q(new Hn)},g.Si=function(t,n){throw Q(new Hn)},g.ql=function(){return new R8(this.a,this.b)},g.rl=function(){return new Ohe(this.a,this.b)},g.sl=function(){return!0},g.gc=function(){var t,n,o,a,l,h,b;if(l=0,this.b!=null){for(o=0;o<this.b.length;++o)if(t=this.b[o],!this.tl()||this.a.Uh(t))if(b=this.a.Kh(t,!1),Xo(),d(t,69).vk())for(n=d(b,164),a=0,h=n.gc();a<h;++a)Yet(n.Rl(a))&&n.Sl(a)!=null&&++l;else t.Hk()?l+=d(b,18).gc():b!=null&&++l}return l},g.tl=function(){return!0};var hoe,Tar=I(Kr,"EContentsEList",485);T(1158,485,j7,oQe),g.ql=function(){return new sQe(this.a,this.b)},g.rl=function(){return new aQe(this.a,this.b)},g.tl=function(){return!1};var Iar=I(en,"ENamedElementImpl/1",1158);T(289,1,B7,R8),g.Nb=function(t){ko(this,t)},g.Rb=function(t){throw Q(new Hn)},g.ul=function(t){if(this.g!=0||this.e)throw Q(new ws("Iterator already in use or already filtered"));this.e=t},g.Ob=function(){var t,n,o,a,l,h;switch(this.g){case 3:case 2:return!0;case 1:return!1;case-3:this.p?this.p.Pb():++this.n;default:if(!this.k||(this.p?!_ft(this,this.p):!Tht(this))){for(;this.d<this.c.length;)if(n=this.c[this.d++],(!this.e||n.nk()!=YT||n.Jj()!=0)&&(!this.tl()||this.b.Uh(n))){if(h=this.b.Kh(n,this.sl()),this.f=(Xo(),d(n,69).vk()),this.f||n.Hk()){if(this.sl()?(a=d(h,16),this.k=a):(a=d(h,72),this.k=this.j=a),fe(this.k,59)?(this.p=null,this.o=this.k.gc(),this.n=0):this.p=this.j?this.j.Hi():this.k.cd(),this.p?_ft(this,this.p):Tht(this))return l=this.p?this.p.Pb():this.j?this.j.Yi(this.n++):this.k.Xb(this.n++),this.f?(t=d(l,76),t.Jk(),o=t.kd(),this.i=o):(o=l,this.i=o),this.g=3,!0}else if(h!=null)return this.k=null,this.p=null,o=h,this.i=o,this.g=2,!0}return this.k=null,this.p=null,this.f=!1,this.g=1,!1}else return l=this.p?this.p.Pb():this.j?this.j.Yi(this.n++):this.k.Xb(this.n++),this.f?(t=d(l,76),t.Jk(),o=t.kd(),this.i=o):(o=l,this.i=o),this.g=3,!0}},g.Sb=function(){var t,n,o,a,l,h;switch(this.g){case-3:case-2:return!0;case-1:return!1;case 3:this.p?this.p.Ub():--this.n;default:if(!this.k||(this.p?!jft(this,this.p):!Yft(this))){for(;this.d>0;)if(n=this.c[--this.d],(!this.e||n.nk()!=YT||n.Jj()!=0)&&(!this.tl()||this.b.Uh(n))){if(h=this.b.Kh(n,this.sl()),this.f=(Xo(),d(n,69).vk()),this.f||n.Hk()){if(this.sl()?(a=d(h,16),this.k=a):(a=d(h,72),this.k=this.j=a),fe(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ii(this.k.gc()):this.k.dd(this.k.gc()),this.p?jft(this,this.p):Yft(this))return l=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(t=d(l,76),t.Jk(),o=t.kd(),this.i=o):(o=l,this.i=o),this.g=-3,!0}else if(h!=null)return this.k=null,this.p=null,o=h,this.i=o,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return l=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(t=d(l,76),t.Jk(),o=t.kd(),this.i=o):(o=l,this.i=o),this.g=-3,!0}},g.Pb=function(){return Aj(this)},g.Tb=function(){return this.a},g.Ub=function(){var t;if(this.g<-1||this.Sb())return--this.a,this.g=0,t=this.i,this.Sb(),t;throw Q(new js)},g.Vb=function(){return this.a-1},g.Qb=function(){throw Q(new Hn)},g.sl=function(){return!1},g.Wb=function(t){throw Q(new Hn)},g.tl=function(){return!0},g.a=0,g.d=0,g.f=!1,g.g=0,g.n=0,g.o=0;var Z5,$ar=I(Kr,"EContentsEList/FeatureIteratorImpl",289);T(707,289,B7,Ohe),g.sl=function(){return!0};var Rar=I(Kr,"EContentsEList/ResolvingFeatureIteratorImpl",707);T(1159,707,B7,aQe),g.tl=function(){return!1};var Par=I(en,"ENamedElementImpl/1/1",1159);T(1160,289,B7,sQe),g.tl=function(){return!1};var Nar=I(en,"ENamedElementImpl/1/2",1160);T(40,152,OD,Zw,hY,Qi,MY,Gg,Rd,Upe,Ynt,Jpe,Xnt,upe,Knt,Ype,Qnt,dpe,Znt,qpe,ert,oR,X4,qV,Vpe,trt,fpe,nrt),g.Ij=function(){return Mpe(this)},g.Pj=function(){var t;return t=Mpe(this),t?t.gk():null},g.fj=function(t){return this.b==-1&&this.a&&(this.b=this.c.Eh(this.a.Jj(),this.a.nk())),this.c.vh(this.b,t)},g.hj=function(){return this.c},g.Qj=function(){var t;return t=Mpe(this),t?t.rk():!1},g.b=-1;var Oar=I(en,"ENotificationImpl",40);T(408,294,{110:1,95:1,94:1,159:1,199:1,57:1,62:1,115:1,473:1,52:1,101:1,162:1,408:1,294:1,118:1,119:1},TJ),g.xh=function(t){return Adt(this,t)},g.Ih=function(t,n,o){var a,l,h;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Ut(),(this.Bb&256)!=0;case 3:return Ut(),(this.Bb&512)!=0;case 4:return Ge(this.s);case 5:return Ge(this.t);case 6:return Ut(),h=this.t,h>1||h==-1;case 7:return Ut(),l=this.s,l>=1;case 8:return n?od(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?d(this.Cb,29):null;case 11:return!this.d&&(this.d=new Uc(kc,this,11)),this.d;case 12:return!this.c&&(this.c=new Le(Q0,this,12,10)),this.c;case 13:return!this.a&&(this.a=new S4(this,this)),this.a;case 14:return vl(this)}return Mu(this,t-vn((Nt(),wp)),jt((a=d(nn(this,16),29),a||wp),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 10:return this.Cb&&(o=(l=this.Db>>16,l>=0?Adt(this,o):this.Cb.Qh(this,-1-l,null,o))),lu(this,t,10,o);case 12:return!this.c&&(this.c=new Le(Q0,this,12,10)),sc(this.c,t,o)}return h=d(jt((a=d(nn(this,16),29),a||(Nt(),wp)),n),69),h.uk().xk(this,bc(this),n-vn((Nt(),wp)),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 9:return NV(this,o);case 10:return lu(this,null,10,o);case 11:return!this.d&&(this.d=new Uc(kc,this,11)),Go(this.d,t,o);case 12:return!this.c&&(this.c=new Le(Q0,this,12,10)),Go(this.c,t,o);case 14:return Go(vl(this),t,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),wp)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),wp)),t,o)},g.Th=function(t){var n,o,a;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return a=this.t,a>1||a==-1;case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&Qy(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Qy(this.q).i==0);case 10:return!!(this.Db>>16==10&&d(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&vl(this.a.a).i!=0&&!(this.b&&QX(this.b));case 14:return!!this.b&&QX(this.b)}return Eu(this,t-vn((Nt(),wp)),jt((n=d(nn(this,16),29),n||wp),t))},g.$h=function(t,n){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:oc(this,Jn(n));return;case 2:Qm(this,it(rt(n)));return;case 3:Zm(this,it(rt(n)));return;case 4:Vm(this,d(n,15).a);return;case 5:nx(this,d(n,15).a);return;case 8:P1(this,d(n,146));return;case 9:a=Wf(this,d(n,88),null),a&&a.mj();return;case 11:!this.d&&(this.d=new Uc(kc,this,11)),Ln(this.d),!this.d&&(this.d=new Uc(kc,this,11)),gi(this.d,d(n,18));return;case 12:!this.c&&(this.c=new Le(Q0,this,12,10)),Ln(this.c),!this.c&&(this.c=new Le(Q0,this,12,10)),gi(this.c,d(n,18));return;case 13:!this.a&&(this.a=new S4(this,this)),gP(this.a),!this.a&&(this.a=new S4(this,this)),gi(this.a,d(n,18));return;case 14:Ln(vl(this)),gi(vl(this),d(n,18));return}Nu(this,t-vn((Nt(),wp)),jt((o=d(nn(this,16),29),o||wp),t),n)},g.fi=function(){return Nt(),wp},g.hi=function(t){var n,o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:oc(this,null);return;case 2:Qm(this,!0);return;case 3:Zm(this,!0);return;case 4:Vm(this,0);return;case 5:nx(this,1);return;case 8:P1(this,null);return;case 9:o=Wf(this,null,null),o&&o.mj();return;case 11:!this.d&&(this.d=new Uc(kc,this,11)),Ln(this.d);return;case 12:!this.c&&(this.c=new Le(Q0,this,12,10)),Ln(this.c);return;case 13:this.a&&gP(this.a);return;case 14:this.b&&Ln(this.b);return}Pu(this,t-vn((Nt(),wp)),jt((n=d(nn(this,16),29),n||wp),t))},g.mi=function(){var t,n;if(this.c)for(t=0,n=this.c.i;t<n;++t)A4(ue(this.c,t));od(this),this.Bb|=1};var Lar=I(en,"EOperationImpl",408);T(503,751,T2e,S4),g.oj=function(t,n){_Ut(this,t,d(n,146))},g.pj=function(t){CHt(this,d(t,146))},g.vj=function(t){var n,o;return n=d(ue(vl(this.a),t),88),o=n.c,o||(Nt(),sh)},g.Aj=function(t){var n,o;return n=d(yx(vl(this.a),t),88),o=n.c,o||(Nt(),sh)},g.Bj=function(t,n){return tsn(this,t,d(n,146))},g.Ji=function(){return!1},g.Gj=function(t,n,o,a,l){return null},g.qj=function(){return new dJe(this)},g.rj=function(){Ln(vl(this.a))},g.sj=function(t){return xlt(this,t)},g.tj=function(t){var n,o;for(o=t.Jc();o.Ob();)if(n=o.Pb(),!xlt(this,n))return!1;return!0},g.uj=function(t){var n,o,a;if(fe(t,16)&&(a=d(t,16),a.gc()==vl(this.a).i)){for(n=a.Jc(),o=new fn(this);n.Ob();)if(Ee(n.Pb())!==Ee(bn(o)))return!1;return!0}return!1},g.wj=function(){var t,n,o,a,l;for(o=1,n=new fn(vl(this.a));n.e!=n.i.gc();)t=d(bn(n),88),a=(l=t.c,l||(Nt(),sh)),o=31*o+(a?Wr(a):0);return o},g.xj=function(t){var n,o,a,l;for(a=0,o=new fn(vl(this.a));o.e!=o.i.gc();){if(n=d(bn(o),88),Ee(t)===Ee((l=n.c,l||(Nt(),sh))))return a;++a}return-1},g.yj=function(){return vl(this.a).i==0},g.zj=function(){return null},g.Cj=function(){return vl(this.a).i},g.Dj=function(){var t,n,o,a,l,h;for(h=vl(this.a).i,l=Te(Wi,zt,1,h,5,1),o=0,n=new fn(vl(this.a));n.e!=n.i.gc();)t=d(bn(n),88),l[o++]=(a=t.c,a||(Nt(),sh));return l},g.Ej=function(t){var n,o,a,l,h,b,w;for(w=vl(this.a).i,t.length<w&&(l=cL(zl(t).c,w),t=l),t.length>w&&yi(t,w,null),a=0,o=new fn(vl(this.a));o.e!=o.i.gc();)n=d(bn(o),88),h=(b=n.c,b||(Nt(),sh)),yi(t,a++,h);return t},g.Fj=function(){var t,n,o,a,l;for(l=new Dm,l.a+="[",t=vl(this.a),n=0,a=vl(this.a).i;n<a;)ds(l,X$((o=d(ue(t,n),88).c,o||(Nt(),sh)))),++n<a&&(l.a+=ac);return l.a+="]",l.a},g.Hj=function(t){},g.Jj=function(){return 13},g.il=function(){return!0},g.Kj=function(){return!1},g.jl=function(){return!1},g.kl=function(){return!1},g.ll=function(){return!0},g.$k=function(){return!1},g.ml=function(){return!0},g.dk=function(t){return fe(t,146)},g.Oj=function(){return XQt(this.a)},g.Qi=function(){return!0},g.Wi=function(){return!0};var Dar=I(en,"EOperationImpl/1",503);T(1342,2041,LM,dJe),g.dd=function(t){return lL(this.a,t)},g.gc=function(){return vl(this.a.a).i};var Far=I(en,"EOperationImpl/1/1",1342);T(1343,547,Fs,uet),g.Ri=function(t,n){var o,a;return o=d(jR(this,t,n),88),Ll(this.e)&&oC(this,new X4(this.a,7,(Nt(),yRt),Ge(n),(a=o.c,a||sh),t)),o},g.Sj=function(t,n){return Ain(this,d(t,88),n)},g.Tj=function(t,n){return vin(this,d(t,88),n)},g.Uj=function(t,n,o){return gsn(this,d(t,88),d(n,88),o)},g.Gj=function(t,n,o,a,l){switch(t){case 3:return gR(this,t,n,o,a,this.i>1);case 5:return gR(this,t,n,o,a,this.i-d(o,16).gc()>0);default:return new Gg(this.e,t,this.c,n,o,a,!0)}},g.Rj=function(){return!0},g.Oj=function(){return QX(this)},g.Ek=function(){Ln(this)};var _ar=I(en,"EOperationImpl/2",1343);T(496,1,{2016:1,496:1},vXe);var jar=I(en,"EPackageImpl/1",496);T(14,82,Fs,Le),g.gl=function(){return this.d},g.hl=function(){return this.b},g.kl=function(){return!0},g.b=0;var Bar=I(Kr,"EObjectContainmentWithInverseEList",14);T(362,14,Fs,Lk),g.ll=function(){return!0},g.Ui=function(t,n){return bS(this,t,d(n,57))};var Gar=I(Kr,"EObjectContainmentWithInverseEList/Resolving",362);T(313,362,Fs,Hw),g.Li=function(){this.a.tb=null};var zar=I(en,"EPackageImpl/2",313);T(1255,1,{},bBe);var War=I(en,"EPackageImpl/3",1255);T(728,44,Gv,Dde),g._b=function(t){return io(t)?YV(this,t):!!xs(this.f,t)};var Har=I(en,"EPackageRegistryImpl",728);T(507,294,{110:1,95:1,94:1,159:1,199:1,57:1,2095:1,115:1,473:1,52:1,101:1,162:1,507:1,294:1,118:1,119:1},IJ),g.xh=function(t){return vdt(this,t)},g.Ih=function(t,n,o){var a,l,h;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Ut(),(this.Bb&256)!=0;case 3:return Ut(),(this.Bb&512)!=0;case 4:return Ge(this.s);case 5:return Ge(this.t);case 6:return Ut(),h=this.t,h>1||h==-1;case 7:return Ut(),l=this.s,l>=1;case 8:return n?od(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?d(this.Cb,62):null}return Mu(this,t-vn((Nt(),fA)),jt((a=d(nn(this,16),29),a||fA),t),n,o)},g.Ph=function(t,n,o){var a,l,h;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),sc(this.Ab,t,o);case 10:return this.Cb&&(o=(l=this.Db>>16,l>=0?vdt(this,o):this.Cb.Qh(this,-1-l,null,o))),lu(this,t,10,o)}return h=d(jt((a=d(nn(this,16),29),a||(Nt(),fA)),n),69),h.uk().xk(this,bc(this),n-vn((Nt(),fA)),t,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 9:return NV(this,o);case 10:return lu(this,null,10,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),fA)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),fA)),t,o)},g.Th=function(t){var n,o,a;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return a=this.t,a>1||a==-1;case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&Qy(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Qy(this.q).i==0);case 10:return!!(this.Db>>16==10&&d(this.Cb,62))}return Eu(this,t-vn((Nt(),fA)),jt((n=d(nn(this,16),29),n||fA),t))},g.fi=function(){return Nt(),fA};var Uar=I(en,"EParameterImpl",507);T(104,454,{110:1,95:1,94:1,159:1,199:1,57:1,20:1,182:1,69:1,115:1,473:1,52:1,101:1,162:1,104:1,454:1,294:1,118:1,119:1,689:1},jhe),g.Ih=function(t,n,o){var a,l,h,b;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Ut(),(this.Bb&256)!=0;case 3:return Ut(),(this.Bb&512)!=0;case 4:return Ge(this.s);case 5:return Ge(this.t);case 6:return Ut(),b=this.t,b>1||b==-1;case 7:return Ut(),l=this.s,l>=1;case 8:return n?od(this):this.r;case 9:return this.q;case 10:return Ut(),(this.Bb&sd)!=0;case 11:return Ut(),(this.Bb&Kg)!=0;case 12:return Ut(),(this.Bb&Sx)!=0;case 13:return this.j;case 14:return AM(this);case 15:return Ut(),(this.Bb&Zc)!=0;case 16:return Ut(),(this.Bb&kh)!=0;case 17:return Yw(this);case 18:return Ut(),(this.Bb&ma)!=0;case 19:return Ut(),h=Ko(this),!!(h&&(h.Bb&ma)!=0);case 20:return Ut(),(this.Bb&Jo)!=0;case 21:return n?Ko(this):this.b;case 22:return n?Obe(this):kit(this);case 23:return!this.a&&(this.a=new hv(lA,this,23)),this.a}return Mu(this,t-vn((Nt(),C2)),jt((a=d(nn(this,16),29),a||C2),t),n,o)},g.Th=function(t){var n,o,a,l;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return l=this.t,l>1||l==-1;case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&Qy(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&Qy(this.q).i==0);case 10:return(this.Bb&sd)==0;case 11:return(this.Bb&Kg)!=0;case 12:return(this.Bb&Sx)!=0;case 13:return this.j!=null;case 14:return AM(this)!=null;case 15:return(this.Bb&Zc)!=0;case 16:return(this.Bb&kh)!=0;case 17:return!!Yw(this);case 18:return(this.Bb&ma)!=0;case 19:return a=Ko(this),!!a&&(a.Bb&ma)!=0;case 20:return(this.Bb&Jo)==0;case 21:return!!this.b;case 22:return!!kit(this);case 23:return!!this.a&&this.a.i!=0}return Eu(this,t-vn((Nt(),C2)),jt((n=d(nn(this,16),29),n||C2),t))},g.$h=function(t,n){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:oY(this,Jn(n));return;case 2:Qm(this,it(rt(n)));return;case 3:Zm(this,it(rt(n)));return;case 4:Vm(this,d(n,15).a);return;case 5:nx(this,d(n,15).a);return;case 8:P1(this,d(n,146));return;case 9:a=Wf(this,d(n,88),null),a&&a.mj();return;case 10:oM(this,it(rt(n)));return;case 11:cM(this,it(rt(n)));return;case 12:sM(this,it(rt(n)));return;case 13:Kfe(this,Jn(n));return;case 15:aM(this,it(rt(n)));return;case 16:lM(this,it(rt(n)));return;case 18:VKt(this,it(rt(n)));return;case 20:f1e(this,it(rt(n)));return;case 21:ube(this,d(n,20));return;case 23:!this.a&&(this.a=new hv(lA,this,23)),Ln(this.a),!this.a&&(this.a=new hv(lA,this,23)),gi(this.a,d(n,18));return}Nu(this,t-vn((Nt(),C2)),jt((o=d(nn(this,16),29),o||C2),t),n)},g.fi=function(){return Nt(),C2},g.hi=function(t){var n,o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:fe(this.Cb,89)&&mx(xl(d(this.Cb,89)),4),oc(this,null);return;case 2:Qm(this,!0);return;case 3:Zm(this,!0);return;case 4:Vm(this,0);return;case 5:nx(this,1);return;case 8:P1(this,null);return;case 9:o=Wf(this,null,null),o&&o.mj();return;case 10:oM(this,!0);return;case 11:cM(this,!1);return;case 12:sM(this,!1);return;case 13:this.i=null,hj(this,null);return;case 15:aM(this,!1);return;case 16:lM(this,!1);return;case 18:h1e(this,!1),fe(this.Cb,89)&&mx(xl(d(this.Cb,89)),2);return;case 20:f1e(this,!0);return;case 21:ube(this,null);return;case 23:!this.a&&(this.a=new hv(lA,this,23)),Ln(this.a);return}Pu(this,t-vn((Nt(),C2)),jt((n=d(nn(this,16),29),n||C2),t))},g.mi=function(){Obe(this),NC(vs((Kc(),So),this)),od(this),this.Bb|=1},g.sk=function(){return Ko(this)},g.Zk=function(){var t;return t=Ko(this),!!t&&(t.Bb&ma)!=0},g.$k=function(){return(this.Bb&ma)!=0},g._k=function(){return(this.Bb&Jo)!=0},g.Wk=function(t,n){return this.c=null,n1e(this,t,n)},g.Ib=function(){var t;return(this.Db&64)!=0?RB(this):(t=new Zu(RB(this)),t.a+=" (containment: ",Fm(t,(this.Bb&ma)!=0),t.a+=", resolveProxies: ",Fm(t,(this.Bb&Jo)!=0),t.a+=")",t.a)};var Jar=I(en,"EReferenceImpl",104);T(553,119,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1,553:1,118:1,119:1},yBe),g.Fb=function(t){return this===t},g.jd=function(){return this.b},g.kd=function(){return this.c},g.Hb=function(){return Vy(this)},g.Ai=function(t){oYt(this,Jn(t))},g.ld=function(t){return VVt(this,Jn(t))},g.Ih=function(t,n,o){var a;switch(t){case 0:return this.b;case 1:return this.c}return Mu(this,t-vn((Nt(),Vo)),jt((a=d(nn(this,16),29),a||Vo),t),n,o)},g.Th=function(t){var n;switch(t){case 0:return this.b!=null;case 1:return this.c!=null}return Eu(this,t-vn((Nt(),Vo)),jt((n=d(nn(this,16),29),n||Vo),t))},g.$h=function(t,n){var o;switch(t){case 0:sYt(this,Jn(n));return;case 1:ibe(this,Jn(n));return}Nu(this,t-vn((Nt(),Vo)),jt((o=d(nn(this,16),29),o||Vo),t),n)},g.fi=function(){return Nt(),Vo},g.hi=function(t){var n;switch(t){case 0:abe(this,null);return;case 1:ibe(this,null);return}Pu(this,t-vn((Nt(),Vo)),jt((n=d(nn(this,16),29),n||Vo),t))},g.yi=function(){var t;return this.a==-1&&(t=this.b,this.a=t==null?0:Ym(t)),this.a},g.zi=function(t){this.a=t},g.Ib=function(){var t;return(this.Db&64)!=0?Fd(this):(t=new Zu(Fd(this)),t.a+=" (key: ",ds(t,this.b),t.a+=", value: ",ds(t,this.c),t.a+=")",t.a)},g.a=-1,g.b=null,g.c=null;var la=I(en,"EStringToStringMapEntryImpl",553),SRt=ni(Kr,"FeatureMap/Entry/Internal");T(569,1,G7),g.vl=function(t){return this.wl(d(t,52))},g.wl=function(t){return this.vl(t)},g.Fb=function(t){var n,o;return this===t?!0:fe(t,76)?(n=d(t,76),n.Jk()==this.c?(o=this.kd(),o==null?n.kd()==null:Er(o,n.kd())):!1):!1},g.Jk=function(){return this.c},g.Hb=function(){var t;return t=this.kd(),Wr(this.c)^(t==null?0:Wr(t))},g.Ib=function(){var t,n;return t=this.c,n=iu(t.ok()).vi(),t.ve(),(n!=null&&n.length!=0?n+":"+t.ve():t.ve())+"="+this.kd()};var qar=I(en,"EStructuralFeatureImpl/BasicFeatureMapEntry",569);T(784,569,G7,Qhe),g.wl=function(t){return new Qhe(this.c,t)},g.kd=function(){return this.a},g.xl=function(t,n,o){return jnn(this,t,this.a,n,o)},g.yl=function(t,n,o){return Bnn(this,t,this.a,n,o)};var Var=I(en,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",784);T(1316,1,{},kXe),g.wk=function(t,n,o,a,l){var h;return h=d(jC(t,this.b),222),h.Wl(this.a).Dk(a)},g.xk=function(t,n,o,a,l){var h;return h=d(jC(t,this.b),222),h.Nl(this.a,a,l)},g.yk=function(t,n,o,a,l){var h;return h=d(jC(t,this.b),222),h.Ol(this.a,a,l)},g.zk=function(t,n,o){var a;return a=d(jC(t,this.b),222),a.Wl(this.a).Oj()},g.Ak=function(t,n,o,a){var l;l=d(jC(t,this.b),222),l.Wl(this.a).Wb(a)},g.Bk=function(t,n,o){return d(jC(t,this.b),222).Wl(this.a)},g.Ck=function(t,n,o){var a;a=d(jC(t,this.b),222),a.Wl(this.a).Ek()};var Yar=I(en,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1316);T(90,1,{},zm,b1,Hm,k1),g.wk=function(t,n,o,a,l){var h;if(h=n.ii(o),h==null&&n.ji(o,h=WB(this,t)),!l)switch(this.e){case 50:case 41:return d(h,593)._j();case 40:return d(h,222).Tl()}return h},g.xk=function(t,n,o,a,l){var h,b;return b=n.ii(o),b==null&&n.ji(o,b=WB(this,t)),h=d(b,72).Uk(a,l),h},g.yk=function(t,n,o,a,l){var h;return h=n.ii(o),h!=null&&(l=d(h,72).Vk(a,l)),l},g.zk=function(t,n,o){var a;return a=n.ii(o),a!=null&&d(a,78).Oj()},g.Ak=function(t,n,o,a){var l;l=d(n.ii(o),78),!l&&n.ji(o,l=WB(this,t)),l.Wb(a)},g.Bk=function(t,n,o){var a,l;return l=n.ii(o),l==null&&n.ji(o,l=WB(this,t)),fe(l,78)?d(l,78):(a=d(n.ii(o),16),new hJe(a))},g.Ck=function(t,n,o){var a;a=d(n.ii(o),78),!a&&n.ji(o,a=WB(this,t)),a.Ek()},g.b=0,g.e=0;var Xar=I(en,"EStructuralFeatureImpl/InternalSettingDelegateMany",90);T(502,1,{}),g.xk=function(t,n,o,a,l){throw Q(new Hn)},g.yk=function(t,n,o,a,l){throw Q(new Hn)},g.Bk=function(t,n,o){return new Ett(this,t,n,o)};var wg,Kar=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingle",502);T(1333,1,Jee,Ett),g.Dk=function(t){return this.a.wk(this.c,this.d,this.b,t,!0)},g.Oj=function(){return this.a.zk(this.c,this.d,this.b)},g.Wb=function(t){this.a.Ak(this.c,this.d,this.b,t)},g.Ek=function(){this.a.Ck(this.c,this.d,this.b)},g.b=0;var Qar=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1333);T(777,502,{},Pme),g.wk=function(t,n,o,a,l){return qK(t,t.Mh(),t.Ch())==this.b?this._k()&&a?LK(t):t.Mh():null},g.xk=function(t,n,o,a,l){var h,b;return t.Mh()&&(l=(h=t.Ch(),h>=0?t.xh(l):t.Mh().Qh(t,-1-h,null,l))),b=ei(t.Ah(),this.e),t.zh(a,b,l)},g.yk=function(t,n,o,a,l){var h;return h=ei(t.Ah(),this.e),t.zh(null,h,l)},g.zk=function(t,n,o){var a;return a=ei(t.Ah(),this.e),!!t.Mh()&&t.Ch()==a},g.Ak=function(t,n,o,a){var l,h,b,w,A;if(a!=null&&!KK(this.a,a))throw Q(new sC(z7+(fe(a,57)?Aye(d(a,57).Ah()):Gpe(zl(a)))+W7+this.a+"'"));if(l=t.Mh(),b=ei(t.Ah(),this.e),Ee(a)!==Ee(l)||t.Ch()!=b&&a!=null){if(gM(t,d(a,57)))throw Q(new Vt(DP+t.Ib()));A=null,l&&(A=(h=t.Ch(),h>=0?t.xh(A):t.Mh().Qh(t,-1-h,null,A))),w=d(a,52),w&&(A=w.Oh(t,ei(w.Ah(),this.b),null,A)),A=t.zh(w,b,A),A&&A.mj()}else t.sh()&&t.th()&&kr(t,new Qi(t,1,b,a,a))},g.Ck=function(t,n,o){var a,l,h,b;a=t.Mh(),a?(b=(l=t.Ch(),l>=0?t.xh(null):t.Mh().Qh(t,-1-l,null,null)),h=ei(t.Ah(),this.e),b=t.zh(null,h,b),b&&b.mj()):t.sh()&&t.th()&&kr(t,new oR(t,1,this.e,null,null))},g._k=function(){return!1};var Zar=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",777);T(1317,777,{},gZe),g._k=function(){return!0};var ecr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1317);T(567,502,{}),g.wk=function(t,n,o,a,l){var h;return h=n.ii(o),h==null?this.b:Ee(h)===Ee(wg)?null:h},g.zk=function(t,n,o){var a;return a=n.ii(o),a!=null&&(Ee(a)===Ee(wg)||!Er(a,this.b))},g.Ak=function(t,n,o,a){var l,h;t.sh()&&t.th()?(l=(h=n.ii(o),h==null?this.b:Ee(h)===Ee(wg)?null:h),a==null?this.c!=null?(n.ji(o,null),a=this.b):this.b!=null?n.ji(o,wg):n.ji(o,null):(this.zl(a),n.ji(o,a)),kr(t,this.d.Al(t,1,this.e,l,a))):a==null?this.c!=null?n.ji(o,null):this.b!=null?n.ji(o,wg):n.ji(o,null):(this.zl(a),n.ji(o,a))},g.Ck=function(t,n,o){var a,l;t.sh()&&t.th()?(a=(l=n.ii(o),l==null?this.b:Ee(l)===Ee(wg)?null:l),n.ki(o),kr(t,this.d.Al(t,1,this.e,a,this.b))):n.ki(o)},g.zl=function(t){throw Q(new kJe)};var tcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",567);T(Xv,1,{},wBe),g.Al=function(t,n,o,a,l){return new oR(t,n,o,a,l)},g.Bl=function(t,n,o,a,l,h){return new qV(t,n,o,a,l,h)};var MRe,TRe,IRe,$Re,RRe,PRe,NRe,goe,ORe,ncr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",Xv);T(1334,Xv,{},xBe),g.Al=function(t,n,o,a,l){return new fpe(t,n,o,it(rt(a)),it(rt(l)))},g.Bl=function(t,n,o,a,l,h){return new nrt(t,n,o,it(rt(a)),it(rt(l)),h)};var rcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1334);T(1335,Xv,{},ABe),g.Al=function(t,n,o,a,l){return new Upe(t,n,o,d(a,224).a,d(l,224).a)},g.Bl=function(t,n,o,a,l,h){return new Ynt(t,n,o,d(a,224).a,d(l,224).a,h)};var icr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1335);T(1336,Xv,{},vBe),g.Al=function(t,n,o,a,l){return new Jpe(t,n,o,d(a,183).a,d(l,183).a)},g.Bl=function(t,n,o,a,l,h){return new Xnt(t,n,o,d(a,183).a,d(l,183).a,h)};var ocr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1336);T(1337,Xv,{},kBe),g.Al=function(t,n,o,a,l){return new upe(t,n,o,he(be(a)),he(be(l)))},g.Bl=function(t,n,o,a,l,h){return new Knt(t,n,o,he(be(a)),he(be(l)),h)};var scr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1337);T(1338,Xv,{},SBe),g.Al=function(t,n,o,a,l){return new Ype(t,n,o,d(a,165).a,d(l,165).a)},g.Bl=function(t,n,o,a,l,h){return new Qnt(t,n,o,d(a,165).a,d(l,165).a,h)};var acr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1338);T(1339,Xv,{},EBe),g.Al=function(t,n,o,a,l){return new dpe(t,n,o,d(a,15).a,d(l,15).a)},g.Bl=function(t,n,o,a,l,h){return new Znt(t,n,o,d(a,15).a,d(l,15).a,h)};var ccr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1339);T(1340,Xv,{},CBe),g.Al=function(t,n,o,a,l){return new qpe(t,n,o,d(a,192).a,d(l,192).a)},g.Bl=function(t,n,o,a,l,h){return new ert(t,n,o,d(a,192).a,d(l,192).a,h)};var lcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1340);T(1341,Xv,{},MBe),g.Al=function(t,n,o,a,l){return new Vpe(t,n,o,d(a,193).a,d(l,193).a)},g.Bl=function(t,n,o,a,l,h){return new trt(t,n,o,d(a,193).a,d(l,193).a,h)};var ucr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1341);T(1319,567,{},Itt),g.zl=function(t){if(!this.a.dk(t))throw Q(new sC(z7+zl(t)+W7+this.a+"'"))};var dcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1319);T(1320,567,{},det),g.zl=function(t){};var fcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1320);T(778,567,{}),g.zk=function(t,n,o){var a;return a=n.ii(o),a!=null},g.Ak=function(t,n,o,a){var l,h;t.sh()&&t.th()?(l=!0,h=n.ii(o),h==null?(l=!1,h=this.b):Ee(h)===Ee(wg)&&(h=null),a==null?this.c!=null?(n.ji(o,null),a=this.b):n.ji(o,wg):(this.zl(a),n.ji(o,a)),kr(t,this.d.Bl(t,1,this.e,h,a,!l))):a==null?this.c!=null?n.ji(o,null):n.ji(o,wg):(this.zl(a),n.ji(o,a))},g.Ck=function(t,n,o){var a,l;t.sh()&&t.th()?(a=!0,l=n.ii(o),l==null?(a=!1,l=this.b):Ee(l)===Ee(wg)&&(l=null),n.ki(o),kr(t,this.d.Bl(t,2,this.e,l,this.b,a))):n.ki(o)};var hcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",778);T(1321,778,{},$tt),g.zl=function(t){if(!this.a.dk(t))throw Q(new sC(z7+zl(t)+W7+this.a+"'"))};var gcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1321);T(1322,778,{},fet),g.zl=function(t){};var mcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1322);T(407,502,{},Z8),g.wk=function(t,n,o,a,l){var h,b,w,A,k;if(k=n.ii(o),this.rk()&&Ee(k)===Ee(wg))return null;if(this._k()&&a&&k!=null){if(w=d(k,52),w.Sh()&&(A=ib(t,w),w!=A)){if(!KK(this.a,A))throw Q(new sC(z7+zl(A)+W7+this.a+"'"));n.ji(o,k=A),this.$k()&&(h=d(A,52),b=w.Qh(t,this.b?ei(w.Ah(),this.b):-1-ei(t.Ah(),this.e),null,null),!h.Mh()&&(b=h.Oh(t,this.b?ei(h.Ah(),this.b):-1-ei(t.Ah(),this.e),null,b)),b&&b.mj()),t.sh()&&t.th()&&kr(t,new oR(t,9,this.e,w,A))}return k}else return k},g.xk=function(t,n,o,a,l){var h,b;return b=n.ii(o),Ee(b)===Ee(wg)&&(b=null),n.ji(o,a),this.Kj()?Ee(b)!==Ee(a)&&b!=null&&(h=d(b,52),l=h.Qh(t,ei(h.Ah(),this.b),null,l)):this.$k()&&b!=null&&(l=d(b,52).Qh(t,-1-ei(t.Ah(),this.e),null,l)),t.sh()&&t.th()&&(!l&&(l=new _p(4)),l.lj(new oR(t,1,this.e,b,a))),l},g.yk=function(t,n,o,a,l){var h;return h=n.ii(o),Ee(h)===Ee(wg)&&(h=null),n.ki(o),t.sh()&&t.th()&&(!l&&(l=new _p(4)),this.rk()?l.lj(new oR(t,2,this.e,h,null)):l.lj(new oR(t,1,this.e,h,null))),l},g.zk=function(t,n,o){var a;return a=n.ii(o),a!=null},g.Ak=function(t,n,o,a){var l,h,b,w,A;if(a!=null&&!KK(this.a,a))throw Q(new sC(z7+(fe(a,57)?Aye(d(a,57).Ah()):Gpe(zl(a)))+W7+this.a+"'"));A=n.ii(o),w=A!=null,this.rk()&&Ee(A)===Ee(wg)&&(A=null),b=null,this.Kj()?Ee(A)!==Ee(a)&&(A!=null&&(l=d(A,52),b=l.Qh(t,ei(l.Ah(),this.b),null,b)),a!=null&&(l=d(a,52),b=l.Oh(t,ei(l.Ah(),this.b),null,b))):this.$k()&&Ee(A)!==Ee(a)&&(A!=null&&(b=d(A,52).Qh(t,-1-ei(t.Ah(),this.e),null,b)),a!=null&&(b=d(a,52).Oh(t,-1-ei(t.Ah(),this.e),null,b))),a==null&&this.rk()?n.ji(o,wg):n.ji(o,a),t.sh()&&t.th()?(h=new qV(t,1,this.e,A,a,this.rk()&&!w),b?(b.lj(h),b.mj()):kr(t,h)):b&&b.mj()},g.Ck=function(t,n,o){var a,l,h,b,w;w=n.ii(o),b=w!=null,this.rk()&&Ee(w)===Ee(wg)&&(w=null),h=null,w!=null&&(this.Kj()?(a=d(w,52),h=a.Qh(t,ei(a.Ah(),this.b),null,h)):this.$k()&&(h=d(w,52).Qh(t,-1-ei(t.Ah(),this.e),null,h))),n.ki(o),t.sh()&&t.th()?(l=new qV(t,this.rk()?2:1,this.e,w,null,b),h?(h.lj(l),h.mj()):kr(t,l)):h&&h.mj()},g.Kj=function(){return!1},g.$k=function(){return!1},g._k=function(){return!1},g.rk=function(){return!1};var pcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",407);T(568,407,{},Vq),g.$k=function(){return!0};var bcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",568);T(1325,568,{},cQe),g._k=function(){return!0};var ycr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1325);T(780,568,{},Lhe),g.rk=function(){return!0};var wcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",780);T(1327,780,{},lQe),g._k=function(){return!0};var xcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1327);T(645,568,{},lV),g.Kj=function(){return!0};var Acr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",645);T(1326,645,{},mZe),g._k=function(){return!0};var vcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1326);T(781,645,{},xge),g.rk=function(){return!0};var kcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",781);T(1328,781,{},pZe),g._k=function(){return!0};var Scr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1328);T(646,407,{},Dhe),g._k=function(){return!0};var Ecr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",646);T(1329,646,{},dQe),g.rk=function(){return!0};var Ccr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1329);T(782,646,{},yge),g.Kj=function(){return!0};var Mcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",782);T(1330,782,{},bZe),g.rk=function(){return!0};var Tcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1330);T(1323,407,{},uQe),g.rk=function(){return!0};var Icr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1323);T(779,407,{},wge),g.Kj=function(){return!0};var $cr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",779);T(1324,779,{},yZe),g.rk=function(){return!0};var Rcr=I(en,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1324);T(783,569,G7,dme),g.wl=function(t){return new dme(this.a,this.c,t)},g.kd=function(){return this.b},g.xl=function(t,n,o){return Fen(this,t,this.b,o)},g.yl=function(t,n,o){return _en(this,t,this.b,o)};var Pcr=I(en,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",783);T(1331,1,Jee,hJe),g.Dk=function(t){return this.a},g.Oj=function(){return fe(this.a,98)?d(this.a,98).Oj():!this.a.dc()},g.Wb=function(t){this.a.$b(),this.a.Fc(d(t,16))},g.Ek=function(){fe(this.a,98)?d(this.a,98).Ek():this.a.$b()};var Ncr=I(en,"EStructuralFeatureImpl/SettingMany",1331);T(1332,569,G7,Yrt),g.vl=function(t){return new Zq((Nr(),gN),this.b.oi(this.a,t))},g.kd=function(){return null},g.xl=function(t,n,o){return o},g.yl=function(t,n,o){return o};var Ocr=I(en,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1332);T(647,569,G7,Zq),g.vl=function(t){return new Zq(this.c,t)},g.kd=function(){return this.a},g.xl=function(t,n,o){return o},g.yl=function(t,n,o){return o};var Lcr=I(en,"EStructuralFeatureImpl/SimpleFeatureMapEntry",647);T(399,495,$h,ZE),g.$i=function(t){return Te(md,zt,29,t,0,1)},g.Wi=function(){return!1};var Dcr=I(en,"ESuperAdapter/1",399);T(449,444,{110:1,95:1,94:1,159:1,199:1,57:1,115:1,842:1,52:1,101:1,162:1,449:1,118:1,119:1},aJ),g.Ih=function(t,n,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new tR(this,as,this)),this.a}return Mu(this,t-vn((Nt(),ew)),jt((a=d(nn(this,16),29),a||ew),t),n,o)},g.Rh=function(t,n,o){var a,l;switch(n){case 0:return!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Go(this.Ab,t,o);case 2:return!this.a&&(this.a=new tR(this,as,this)),Go(this.a,t,o)}return l=d(jt((a=d(nn(this,16),29),a||(Nt(),ew)),n),69),l.uk().yk(this,bc(this),n-vn((Nt(),ew)),t,o)},g.Th=function(t){var n;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return Eu(this,t-vn((Nt(),ew)),jt((n=d(nn(this,16),29),n||ew),t))},g.$h=function(t,n){var o;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab),!this.Ab&&(this.Ab=new Le(ar,this,0,3)),gi(this.Ab,d(n,18));return;case 1:oc(this,Jn(n));return;case 2:!this.a&&(this.a=new tR(this,as,this)),Ln(this.a),!this.a&&(this.a=new tR(this,as,this)),gi(this.a,d(n,18));return}Nu(this,t-vn((Nt(),ew)),jt((o=d(nn(this,16),29),o||ew),t),n)},g.fi=function(){return Nt(),ew},g.hi=function(t){var n;switch(t){case 0:!this.Ab&&(this.Ab=new Le(ar,this,0,3)),Ln(this.Ab);return;case 1:oc(this,null);return;case 2:!this.a&&(this.a=new tR(this,as,this)),Ln(this.a);return}Pu(this,t-vn((Nt(),ew)),jt((n=d(nn(this,16),29),n||ew),t))};var Fcr=I(en,"ETypeParameterImpl",449);T(450,82,Fs,tR),g.Lj=function(t,n){return Pln(this,d(t,88),n)},g.Mj=function(t,n){return Nln(this,d(t,88),n)};var _cr=I(en,"ETypeParameterImpl/1",450);T(644,44,Gv,$J),g.ec=function(){return new y_(this)};var jcr=I(en,"ETypeParameterImpl/2",644);T(564,Jf,Qc,y_),g.Ec=function(t){return UQe(this,d(t,88))},g.Fc=function(t){var n,o,a;for(a=!1,o=t.Jc();o.Ob();)n=d(o.Pb(),88),cr(this.a,n,"")==null&&(a=!0);return a},g.$b=function(){ya(this.a)},g.Gc=function(t){return _a(this.a,t)},g.Jc=function(){var t;return t=new ix(new Cw(this.a).a),new w_(t)},g.Kc=function(t){return Fit(this,t)},g.gc=function(){return S$(this.a)};var Bcr=I(en,"ETypeParameterImpl/2/1",564);T(565,1,co,w_),g.Nb=function(t){ko(this,t)},g.Pb=function(){return d(kv(this.a).jd(),88)},g.Ob=function(){return this.a.b},g.Qb=function(){Yot(this.a)};var Gcr=I(en,"ETypeParameterImpl/2/1/1",565);T(1293,44,Gv,nqe),g._b=function(t){return io(t)?YV(this,t):!!xs(this.f,t)},g.xc=function(t){var n,o;return n=io(t)?ja(this,t):Gs(xs(this.f,t)),fe(n,843)?(o=d(n,843),n=o.Ik(),cr(this,d(t,244),n),n):n??(t==null?(YJ(),CRt):null)};var zcr=I(en,"EValidatorRegistryImpl",1293);T(1315,717,{110:1,95:1,94:1,472:1,159:1,57:1,115:1,2019:1,52:1,101:1,162:1,118:1,119:1},TBe),g.oi=function(t,n){switch(t.fk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return n==null?null:Ds(n);case 25:return qtn(n);case 27:return ctn(n);case 28:return ltn(n);case 29:return n==null?null:hKe(cN[0],d(n,208));case 41:return n==null?"":c1(d(n,299));case 42:return Ds(n);case 50:return Jn(n);default:throw Q(new Vt(iT+t.ve()+L0))}},g.pi=function(t){var n,o,a,l,h,b,w,A,k,C,$,O,D,G,U,te;switch(t.G==-1&&(t.G=(O=iu(t),O?ep(O.si(),t):-1)),t.G){case 0:return o=new MJ,o;case 1:return n=new jue,n;case 2:return a=new Hue,a;case 4:return l=new x_,l;case 5:return h=new tqe,h;case 6:return b=new yJe,b;case 7:return w=new Wue,w;case 10:return k=new l_,k;case 11:return C=new TJ,C;case 12:return $=new Gtt,$;case 13:return D=new IJ,D;case 14:return G=new jhe,G;case 17:return U=new yBe,U;case 18:return A=new Fy,A;case 19:return te=new aJ,te;default:throw Q(new Vt($ee+t.zb+L0))}},g.qi=function(t,n){switch(t.fk()){case 20:return n==null?null:new ife(n);case 21:return n==null?null:new Hp(n);case 23:case 22:return n==null?null:Jon(n);case 26:case 24:return n==null?null:rL(cu(n,-128,127)<<24>>24);case 25:return Vfn(n);case 27:return $an(n);case 28:return Ran(n);case 29:return Qln(n);case 32:case 31:return n==null?null:hx(n);case 38:case 37:return n==null?null:new Mde(n);case 40:case 39:return n==null?null:Ge(cu(n,po,pr));case 41:return null;case 42:return n==null,null;case 44:case 43:return n==null?null:ux(zB(n));case 49:case 48:return n==null?null:iM(cu(n,H7,32767)<<16>>16);case 50:return n;default:throw Q(new Vt(iT+t.ve()+L0))}};var Wcr=I(en,"EcoreFactoryImpl",1315);T(552,187,{110:1,95:1,94:1,159:1,199:1,57:1,244:1,115:1,2017:1,52:1,101:1,162:1,187:1,552:1,118:1,119:1,687:1},ctt),g.gb=!1,g.hb=!1;var LRe,ERt=!1,Hcr=I(en,"EcorePackageImpl",552);T(1211,1,{843:1},IBe),g.Ik=function(){return GKe(),MRt};var Ucr=I(en,"EcorePackageImpl/1",1211);T(1220,1,hr,$Be),g.dk=function(t){return fe(t,159)},g.ek=function(t){return Te(J5,zt,159,t,0,1)};var Jcr=I(en,"EcorePackageImpl/10",1220);T(1221,1,hr,RBe),g.dk=function(t){return fe(t,199)},g.ek=function(t){return Te(ooe,zt,199,t,0,1)};var qcr=I(en,"EcorePackageImpl/11",1221);T(1222,1,hr,PBe),g.dk=function(t){return fe(t,57)},g.ek=function(t){return Te(Lb,zt,57,t,0,1)};var Vcr=I(en,"EcorePackageImpl/12",1222);T(1223,1,hr,NBe),g.dk=function(t){return fe(t,408)},g.ek=function(t){return Te(pd,M2e,62,t,0,1)};var Ycr=I(en,"EcorePackageImpl/13",1223);T(1224,1,hr,OBe),g.dk=function(t){return fe(t,244)},g.ek=function(t){return Te(vf,zt,244,t,0,1)};var Xcr=I(en,"EcorePackageImpl/14",1224);T(1225,1,hr,LBe),g.dk=function(t){return fe(t,507)},g.ek=function(t){return Te(Q0,zt,2095,t,0,1)};var Kcr=I(en,"EcorePackageImpl/15",1225);T(1226,1,hr,DBe),g.dk=function(t){return fe(t,104)},g.ek=function(t){return Te(uA,Yv,20,t,0,1)};var Qcr=I(en,"EcorePackageImpl/16",1226);T(1227,1,hr,FBe),g.dk=function(t){return fe(t,182)},g.ek=function(t){return Te(Bc,Yv,182,t,0,1)};var Zcr=I(en,"EcorePackageImpl/17",1227);T(1228,1,hr,_Be),g.dk=function(t){return fe(t,473)},g.ek=function(t){return Te(cA,zt,473,t,0,1)};var elr=I(en,"EcorePackageImpl/18",1228);T(1229,1,hr,jBe),g.dk=function(t){return fe(t,553)},g.ek=function(t){return Te(la,Uwt,553,t,0,1)};var tlr=I(en,"EcorePackageImpl/19",1229);T(1212,1,hr,BBe),g.dk=function(t){return fe(t,336)},g.ek=function(t){return Te(lA,Yv,38,t,0,1)};var nlr=I(en,"EcorePackageImpl/2",1212);T(1230,1,hr,GBe),g.dk=function(t){return fe(t,251)},g.ek=function(t){return Te(as,cxt,88,t,0,1)};var rlr=I(en,"EcorePackageImpl/20",1230);T(1231,1,hr,zBe),g.dk=function(t){return fe(t,449)},g.ek=function(t){return Te(kc,zt,842,t,0,1)};var ilr=I(en,"EcorePackageImpl/21",1231);T(1232,1,hr,WBe),g.dk=function(t){return Nw(t)},g.ek=function(t){return Te(ci,He,476,t,8,1)};var olr=I(en,"EcorePackageImpl/22",1232);T(1233,1,hr,HBe),g.dk=function(t){return fe(t,198)},g.ek=function(t){return Te(tl,He,198,t,0,2)};var slr=I(en,"EcorePackageImpl/23",1233);T(1234,1,hr,UBe),g.dk=function(t){return fe(t,224)},g.ek=function(t){return Te(NS,He,224,t,0,1)};var alr=I(en,"EcorePackageImpl/24",1234);T(1235,1,hr,JBe),g.dk=function(t){return fe(t,183)},g.ek=function(t){return Te(VP,He,183,t,0,1)};var clr=I(en,"EcorePackageImpl/25",1235);T(1236,1,hr,qBe),g.dk=function(t){return fe(t,208)},g.ek=function(t){return Te(eG,He,208,t,0,1)};var llr=I(en,"EcorePackageImpl/26",1236);T(1237,1,hr,VBe),g.dk=function(t){return!1},g.ek=function(t){return Te(ZRe,zt,2191,t,0,1)};var ulr=I(en,"EcorePackageImpl/27",1237);T(1238,1,hr,YBe),g.dk=function(t){return Ow(t)},g.ek=function(t){return Te(Ci,He,347,t,7,1)};var dlr=I(en,"EcorePackageImpl/28",1238);T(1239,1,hr,XBe),g.dk=function(t){return fe(t,61)},g.ek=function(t){return Te(gRe,Ex,61,t,0,1)};var flr=I(en,"EcorePackageImpl/29",1239);T(1213,1,hr,KBe),g.dk=function(t){return fe(t,508)},g.ek=function(t){return Te(ar,{3:1,4:1,5:1,2012:1},594,t,0,1)};var hlr=I(en,"EcorePackageImpl/3",1213);T(1240,1,hr,QBe),g.dk=function(t){return fe(t,575)},g.ek=function(t){return Te(bRe,zt,2018,t,0,1)};var glr=I(en,"EcorePackageImpl/30",1240);T(1241,1,hr,ZBe),g.dk=function(t){return fe(t,164)},g.ek=function(t){return Te(BRe,Ex,164,t,0,1)};var mlr=I(en,"EcorePackageImpl/31",1241);T(1242,1,hr,e7e),g.dk=function(t){return fe(t,76)},g.ek=function(t){return Te(hW,bxt,76,t,0,1)};var plr=I(en,"EcorePackageImpl/32",1242);T(1243,1,hr,t7e),g.dk=function(t){return fe(t,165)},g.ek=function(t){return Te(fT,He,165,t,0,1)};var blr=I(en,"EcorePackageImpl/33",1243);T(1244,1,hr,n7e),g.dk=function(t){return fe(t,15)},g.ek=function(t){return Te(Fi,He,15,t,0,1)};var ylr=I(en,"EcorePackageImpl/34",1244);T(1245,1,hr,r7e),g.dk=function(t){return fe(t,299)},g.ek=function(t){return Te(B2e,zt,299,t,0,1)};var wlr=I(en,"EcorePackageImpl/35",1245);T(1246,1,hr,i7e),g.dk=function(t){return fe(t,192)},g.ek=function(t){return Te(F0,He,192,t,0,1)};var xlr=I(en,"EcorePackageImpl/36",1246);T(1247,1,hr,o7e),g.dk=function(t){return fe(t,93)},g.ek=function(t){return Te(G2e,zt,93,t,0,1)};var Alr=I(en,"EcorePackageImpl/37",1247);T(1248,1,hr,s7e),g.dk=function(t){return fe(t,595)},g.ek=function(t){return Te(DRe,zt,595,t,0,1)};var vlr=I(en,"EcorePackageImpl/38",1248);T(1249,1,hr,a7e),g.dk=function(t){return!1},g.ek=function(t){return Te(ePe,zt,2192,t,0,1)};var klr=I(en,"EcorePackageImpl/39",1249);T(1214,1,hr,c7e),g.dk=function(t){return fe(t,89)},g.ek=function(t){return Te(md,zt,29,t,0,1)};var Slr=I(en,"EcorePackageImpl/4",1214);T(1250,1,hr,l7e),g.dk=function(t){return fe(t,193)},g.ek=function(t){return Te(_0,He,193,t,0,1)};var Elr=I(en,"EcorePackageImpl/40",1250);T(1251,1,hr,u7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Clr=I(en,"EcorePackageImpl/41",1251);T(1252,1,hr,d7e),g.dk=function(t){return fe(t,592)},g.ek=function(t){return Te(pRe,zt,592,t,0,1)};var Mlr=I(en,"EcorePackageImpl/42",1252);T(1253,1,hr,f7e),g.dk=function(t){return!1},g.ek=function(t){return Te(tPe,He,2193,t,0,1)};var Tlr=I(en,"EcorePackageImpl/43",1253);T(1254,1,hr,h7e),g.dk=function(t){return fe(t,45)},g.ek=function(t){return Te(V1,UB,45,t,0,1)};var Ilr=I(en,"EcorePackageImpl/44",1254);T(1215,1,hr,g7e),g.dk=function(t){return fe(t,146)},g.ek=function(t){return Te(kf,zt,146,t,0,1)};var $lr=I(en,"EcorePackageImpl/5",1215);T(1216,1,hr,m7e),g.dk=function(t){return fe(t,160)},g.ek=function(t){return Te(doe,zt,160,t,0,1)};var Rlr=I(en,"EcorePackageImpl/6",1216);T(1217,1,hr,p7e),g.dk=function(t){return fe(t,462)},g.ek=function(t){return Te(fW,zt,682,t,0,1)};var Plr=I(en,"EcorePackageImpl/7",1217);T(1218,1,hr,b7e),g.dk=function(t){return fe(t,575)},g.ek=function(t){return Te(um,zt,691,t,0,1)};var Nlr=I(en,"EcorePackageImpl/8",1218);T(1219,1,hr,y7e),g.dk=function(t){return fe(t,472)},g.ek=function(t){return Te(aN,zt,472,t,0,1)};var Olr=I(en,"EcorePackageImpl/9",1219);T(1030,2059,Hwt,Cqe),g.Ki=function(t,n){Ein(this,d(n,420))},g.Oi=function(t,n){qft(this,t,d(n,420))};var Llr=I(en,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1030);T(1031,152,OD,Ket),g.hj=function(){return this.a.a};var Dlr=I(en,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1031);T(1058,1057,{},iKe);var Flr=I("org.eclipse.emf.ecore.plugin","EcorePlugin",1058),DRe=ni(yxt,"Resource");T(793,1502,wxt),g.Fl=function(t){},g.Gl=function(t){},g.Cl=function(){return!this.a&&(this.a=new AJ(this)),this.a},g.Dl=function(t){var n,o,a,l,h;if(a=t.length,a>0)if(sn(0,t.length),t.charCodeAt(0)==47){for(h=new rc(4),l=1,n=1;n<a;++n)sn(n,t.length),t.charCodeAt(n)==47&&(Ve(h,l==n?"":(wo(l,n,t.length),t.substr(l,n-l))),l=n+1);return Ve(h,(sn(l,t.length+1),t.substr(l))),Scn(this,h)}else sn(a-1,t.length),t.charCodeAt(a-1)==63&&(o=age(t,Pc(63),a-2),o>0&&(t=(wo(0,o,t.length),t.substr(0,o))));return jdn(this,t)},g.El=function(){return this.c},g.Ib=function(){var t;return c1(this.Pm)+"@"+(t=Wr(this)>>>0,t.toString(16))+" uri='"+this.d+"'"},g.b=!1;var _lr=I(qee,"ResourceImpl",793);T(1503,793,wxt,gJe);var jlr=I(qee,"BinaryResourceImpl",1503);T(1171,704,Gee),g._i=function(t){return fe(t,57)?aKt(this,d(t,57)):fe(t,595)?new fn(d(t,595).Cl()):Ee(t)===Ee(this.f)?d(t,18).Jc():(AC(),Q5.a)},g.Ob=function(){return m0e(this)},g.a=!1;var Blr=I(Kr,"EcoreUtil/ContentTreeIterator",1171);T(1504,1171,Gee,Cet),g._i=function(t){return Ee(t)===Ee(this.f)?d(t,16).Jc():new Prt(d(t,57))};var Glr=I(qee,"ResourceImpl/5",1504);T(654,2071,axt,AJ),g.Gc=function(t){return this.i<=4?pM(this,t):fe(t,52)&&d(t,52).Gh()==this.a},g.Ki=function(t,n){t==this.i-1&&(this.a.b||(this.a.b=!0))},g.Mi=function(t,n){t==0?this.a.b||(this.a.b=!0):SY(this,t,n)},g.Oi=function(t,n){},g.Pi=function(t,n,o){},g.Jj=function(){return 2},g.hj=function(){return this.a},g.Kj=function(){return!0},g.Lj=function(t,n){var o;return o=d(t,52),n=o.ci(this.a,n),n},g.Mj=function(t,n){var o;return o=d(t,52),o.ci(null,n)},g.Nj=function(){return!1},g.Qi=function(){return!0},g.$i=function(t){return Te(Lb,zt,57,t,0,1)},g.Wi=function(){return!1};var zlr=I(qee,"ResourceImpl/ContentsEList",654);T(962,2041,LM,mJe),g.dd=function(t){return this.a.Ii(t)},g.gc=function(){return this.a.gc()};var Wlr=I(Kr,"AbstractSequentialInternalEList/1",962),FRe,_Re,So,jRe;T(632,1,{},NZe);var gW,mW,Hlr=I(Kr,"BasicExtendedMetaData",632);T(1162,1,{},SXe),g.Hl=function(){return null},g.Il=function(){return this.a==-2&&UGt(this,Uln(this.d,this.b)),this.a},g.Jl=function(){return null},g.Kl=function(){return Pt(),Pt(),Oo},g.ve=function(){return this.c==cT&&JGt(this,dut(this.d,this.b)),this.c},g.Ll=function(){return 0},g.a=-2,g.c=cT;var Ulr=I(Kr,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1162);T(1163,1,{},irt),g.Hl=function(){return this.a==(_C(),gW)&&YGt(this,Nmn(this.f,this.b)),this.a},g.Il=function(){return 0},g.Jl=function(){return this.c==(_C(),gW)&&qGt(this,Omn(this.f,this.b)),this.c},g.Kl=function(){return!this.d&&KGt(this,bbn(this.f,this.b)),this.d},g.ve=function(){return this.e==cT&&ZGt(this,dut(this.f,this.b)),this.e},g.Ll=function(){return this.g==-2&&tzt(this,dln(this.f,this.b)),this.g},g.e=cT,g.g=-2;var Jlr=I(Kr,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1163);T(1161,1,{},CXe),g.b=!1,g.c=!1;var qlr=I(Kr,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1161);T(1164,1,{},ort),g.c=-2,g.e=cT,g.f=cT;var Vlr=I(Kr,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1164);T(588,630,Fs,z8),g.Jj=function(){return this.c},g.ml=function(){return!1},g.Ui=function(t,n){return n},g.c=0;var Ylr=I(Kr,"EDataTypeEList",588),BRe=ni(Kr,"FeatureMap");T(77,588,{3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,78:1,164:1,222:1,2015:1,72:1,98:1},mi),g._c=function(t,n){egn(this,t,d(n,76))},g.Ec=function(t){return bhn(this,d(t,76))},g.Fi=function(t){lXt(this,d(t,76))},g.Lj=function(t,n){return CJt(this,d(t,76),n)},g.Mj=function(t,n){return lge(this,d(t,76),n)},g.Ri=function(t,n){return Spn(this,t,n)},g.Ui=function(t,n){return gyn(this,t,d(n,76))},g.fd=function(t,n){return jgn(this,t,d(n,76))},g.Sj=function(t,n){return MJt(this,d(t,76),n)},g.Tj=function(t,n){return QQe(this,d(t,76),n)},g.Uj=function(t,n,o){return tln(this,d(t,76),d(n,76),o)},g.Xi=function(t,n){return bK(this,t,d(n,76))},g.Ml=function(t,n){return lwe(this,t,n)},g.ad=function(t,n){var o,a,l,h,b,w,A,k,C;for(k=new s0(n.gc()),l=n.Jc();l.Ob();)if(a=d(l.Pb(),76),h=a.Jk(),Xg(this.e,h))(!h.Qi()||!P9(this,h,a.kd())&&!pM(k,a))&&jn(k,a);else{for(C=yc(this.e.Ah(),h),o=d(this.g,123),b=!0,w=0;w<this.i;++w)if(A=o[w],C.$l(A.Jk())){d(Iv(this,w,a),76),b=!1;break}b&&jn(k,a)}return Ibe(this,t,k)},g.Fc=function(t){var n,o,a,l,h,b,w,A,k;for(A=new s0(t.gc()),a=t.Jc();a.Ob();)if(o=d(a.Pb(),76),l=o.Jk(),Xg(this.e,l))(!l.Qi()||!P9(this,l,o.kd())&&!pM(A,o))&&jn(A,o);else{for(k=yc(this.e.Ah(),l),n=d(this.g,123),h=!0,b=0;b<this.i;++b)if(w=n[b],k.$l(w.Jk())){d(Iv(this,b,o),76),h=!1;break}h&&jn(A,o)}return gi(this,A)},g.Di=function(t){return this.j=-1,QK(this,this.i,t)},g.Nl=function(t,n,o){return twe(this,t,n,o)},g.Vk=function(t,n){return XL(this,t,n)},g.Ol=function(t,n,o){return $we(this,t,n,o)},g.Pl=function(){return this},g.Ql=function(t,n){return ZL(this,t,n)},g.Rl=function(t){return d(ue(this,t),76).Jk()},g.Sl=function(t){return d(ue(this,t),76).kd()},g.Tl=function(){return this.b},g.Kj=function(){return!0},g.Rj=function(){return!0},g.Ul=function(t){return!ML(this,t)},g.$i=function(t){return Te(SRt,bxt,345,t,0,1)},g.nl=function(t){return Yq(this,t)},g.Wb=function(t){L4(this,t)},g.Vl=function(t,n){_B(this,t,n)},g.Wl=function(t){return fat(this,t)},g.Xl=function(t){Xut(this,t)};var Xlr=I(Kr,"BasicFeatureMap",77);T(1939,1,og),g.Nb=function(t){ko(this,t)},g.Rb=function(t){if(this.g==-1)throw Q(new Hc);i9(this);try{Hgt(this.e,this.b,this.a,t),this.d=this.e.j,Kj(this)}catch(n){throw n=ki(n),fe(n,99)?Q(new Au):Q(n)}},g.Ob=function(){return gX(this)},g.Sb=function(){return Hct(this)},g.Pb=function(){return Kj(this)},g.Tb=function(){return this.a},g.Ub=function(){var t;if(Hct(this))return i9(this),this.g=--this.a,this.sl()&&(t=eP(this.e,this.b,this.c,this.a,this.j),this.j=t),this.i=0,this.j;throw Q(new js)},g.Vb=function(){return this.a-1},g.Qb=function(){if(this.g==-1)throw Q(new Hc);i9(this);try{Pft(this.e,this.b,this.g),this.d=this.e.j,this.g<this.a&&(--this.a,--this.c),--this.g}catch(t){throw t=ki(t),fe(t,99)?Q(new Au):Q(t)}},g.sl=function(){return!1},g.Wb=function(t){if(this.g==-1)throw Q(new Hc);i9(this);try{ypt(this.e,this.b,this.g,t),this.d=this.e.j}catch(n){throw n=ki(n),fe(n,99)?Q(new Au):Q(n)}},g.a=0,g.c=0,g.d=0,g.f=!1,g.g=0,g.i=0;var Klr=I(Kr,"FeatureMapUtil/BasicFeatureEIterator",1939);T(417,1939,og,YC),g.Yl=function(){var t,n,o;for(o=this.e.i,t=d(this.e.g,123);this.c<o;){if(n=t[this.c],this.k.$l(n.Jk()))return this.j=this.f?n:n.kd(),this.i=2,!0;++this.c}return this.i=1,this.g=-1,!1},g.Zl=function(){var t,n;for(t=d(this.e.g,123);--this.c>=0;)if(n=t[this.c],this.k.$l(n.Jk()))return this.j=this.f?n:n.kd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1};var Qlr=I(Kr,"BasicFeatureMap/FeatureEIterator",417);T(673,417,og,Pq),g.sl=function(){return!0};var Zlr=I(Kr,"BasicFeatureMap/ResolvingFeatureEIterator",673);T(960,485,j7,bKe),g.nj=function(){return this};var eur=I(Kr,"EContentsEList/1",960);T(961,485,j7,BXe),g.sl=function(){return!1};var tur=I(Kr,"EContentsEList/2",961);T(959,289,B7,yKe),g.ul=function(t){},g.Ob=function(){return!1},g.Sb=function(){return!1};var nur=I(Kr,"EContentsEList/FeatureIteratorImpl/1",959);T(832,588,Fs,phe),g.Li=function(){this.a=!0},g.Oj=function(){return this.a},g.Ek=function(){var t;Ln(this),Ll(this.e)?(t=this.a,this.a=!1,kr(this.e,new Rd(this.e,2,this.c,t,!1))):this.a=!1},g.a=!1;var rur=I(Kr,"EDataTypeEList/Unsettable",832);T(1937,588,Fs,CKe),g.Qi=function(){return!0};var iur=I(Kr,"EDataTypeUniqueEList",1937);T(1938,832,Fs,SKe),g.Qi=function(){return!0};var our=I(Kr,"EDataTypeUniqueEList/Unsettable",1938);T(147,82,Fs,Uc),g.ll=function(){return!0},g.Ui=function(t,n){return bS(this,t,d(n,57))};var sur=I(Kr,"EObjectContainmentEList/Resolving",147);T(1165,547,Fs,kKe),g.ll=function(){return!0},g.Ui=function(t,n){return bS(this,t,d(n,57))};var aur=I(Kr,"EObjectContainmentEList/Unsettable/Resolving",1165);T(760,14,Fs,nge),g.Li=function(){this.a=!0},g.Oj=function(){return this.a},g.Ek=function(){var t;Ln(this),Ll(this.e)?(t=this.a,this.a=!1,kr(this.e,new Rd(this.e,2,this.c,t,!1))):this.a=!1},g.a=!1;var cur=I(Kr,"EObjectContainmentWithInverseEList/Unsettable",760);T(1199,760,Fs,jQe),g.ll=function(){return!0},g.Ui=function(t,n){return bS(this,t,d(n,57))};var lur=I(Kr,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1199);T(752,494,Fs,mhe),g.Li=function(){this.a=!0},g.Oj=function(){return this.a},g.Ek=function(){var t;Ln(this),Ll(this.e)?(t=this.a,this.a=!1,kr(this.e,new Rd(this.e,2,this.c,t,!1))):this.a=!1},g.a=!1;var uur=I(Kr,"EObjectEList/Unsettable",752);T(340,494,Fs,hv),g.ll=function(){return!0},g.Ui=function(t,n){return bS(this,t,d(n,57))};var dur=I(Kr,"EObjectResolvingEList",340);T(1842,752,Fs,EKe),g.ll=function(){return!0},g.Ui=function(t,n){return bS(this,t,d(n,57))};var fur=I(Kr,"EObjectResolvingEList/Unsettable",1842);T(1505,1,{},w7e);var CRt,hur=I(Kr,"EObjectValidator",1505);T(551,494,Fs,a9),g.gl=function(){return this.d},g.hl=function(){return this.b},g.Kj=function(){return!0},g.kl=function(){return!0},g.b=0;var gur=I(Kr,"EObjectWithInverseEList",551);T(1202,551,Fs,BQe),g.jl=function(){return!0};var mur=I(Kr,"EObjectWithInverseEList/ManyInverse",1202);T(633,551,Fs,eV),g.Li=function(){this.a=!0},g.Oj=function(){return this.a},g.Ek=function(){var t;Ln(this),Ll(this.e)?(t=this.a,this.a=!1,kr(this.e,new Rd(this.e,2,this.c,t,!1))):this.a=!1},g.a=!1;var pur=I(Kr,"EObjectWithInverseEList/Unsettable",633);T(1201,633,Fs,GQe),g.jl=function(){return!0};var bur=I(Kr,"EObjectWithInverseEList/Unsettable/ManyInverse",1201);T(761,551,Fs,rge),g.ll=function(){return!0},g.Ui=function(t,n){return bS(this,t,d(n,57))};var yur=I(Kr,"EObjectWithInverseResolvingEList",761);T(31,761,Fs,Rt),g.jl=function(){return!0};var wur=I(Kr,"EObjectWithInverseResolvingEList/ManyInverse",31);T(762,633,Fs,ige),g.ll=function(){return!0},g.Ui=function(t,n){return bS(this,t,d(n,57))};var xur=I(Kr,"EObjectWithInverseResolvingEList/Unsettable",762);T(1200,762,Fs,zQe),g.jl=function(){return!0};var Aur=I(Kr,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1200);T(1166,630,Fs),g.Ji=function(){return(this.b&1792)==0},g.Li=function(){this.b|=1},g.il=function(){return(this.b&4)!=0},g.Kj=function(){return(this.b&40)!=0},g.jl=function(){return(this.b&16)!=0},g.kl=function(){return(this.b&8)!=0},g.ll=function(){return(this.b&Kg)!=0},g.$k=function(){return(this.b&32)!=0},g.ml=function(){return(this.b&sd)!=0},g.dk=function(t){return this.d?Brt(this.d,t):this.Jk().Fk().dk(t)},g.Oj=function(){return(this.b&2)!=0?(this.b&1)!=0:this.i!=0},g.Qi=function(){return(this.b&128)!=0},g.Ek=function(){var t;Ln(this),(this.b&2)!=0&&(Ll(this.e)?(t=(this.b&1)!=0,this.b&=-2,oC(this,new Rd(this.e,2,ei(this.e.Ah(),this.Jk()),t,!1))):this.b&=-2)},g.Wi=function(){return(this.b&1536)==0},g.b=0;var vur=I(Kr,"EcoreEList/Generic",1166);T(1167,1166,Fs,Btt),g.Jk=function(){return this.a};var kur=I(Kr,"EcoreEList/Dynamic",1167);T(759,67,$h,vde),g.$i=function(t){return cL(this.a.a,t)};var Sur=I(Kr,"EcoreEMap/1",759);T(758,82,Fs,Qge),g.Ki=function(t,n){Zj(this.b,d(n,138))},g.Mi=function(t,n){Jat(this.b)},g.Ni=function(t,n,o){var a;++(a=this.b,d(n,138),a).e},g.Oi=function(t,n){EX(this.b,d(n,138))},g.Pi=function(t,n,o){EX(this.b,d(o,138)),Ee(o)===Ee(n)&&d(o,138).zi(PHt(d(n,138).jd())),Zj(this.b,d(n,138))};var Eur=I(Kr,"EcoreEMap/DelegateEObjectContainmentEList",758);T(1197,145,C2e,nat);var Cur=I(Kr,"EcoreEMap/Unsettable",1197);T(1198,758,Fs,WQe),g.Li=function(){this.a=!0},g.Oj=function(){return this.a},g.Ek=function(){var t;Ln(this),Ll(this.e)?(t=this.a,this.a=!1,kr(this.e,new Rd(this.e,2,this.c,t,!1))):this.a=!1},g.a=!1;var Mur=I(Kr,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1198);T(1170,226,Gv,Jet),g.a=!1,g.b=!1;var Tur=I(Kr,"EcoreUtil/Copier",1170);T(754,1,co,Prt),g.Nb=function(t){ko(this,t)},g.Ob=function(){return Ult(this)},g.Pb=function(){var t;return Ult(this),t=this.b,this.b=null,t},g.Qb=function(){this.a.Qb()};var Iur=I(Kr,"EcoreUtil/ProperContentIterator",754);T(1506,1505,{},xze);var MRt,$ur=I(Kr,"EcoreValidator",1506),TRt,Rur=ni(Kr,"FeatureMapUtil/Validator");T(1270,1,{2020:1},x7e),g.$l=function(t){return!0};var Pur=I(Kr,"FeatureMapUtil/1",1270);T(767,1,{2020:1},zwe),g.$l=function(t){var n;return this.c==t?!0:(n=rt(Qt(this.a,t)),n==null?jmn(this,t)?(Tit(this.a,t,(Ut(),dT)),!0):(Tit(this.a,t,(Ut(),wb)),!1):n==(Ut(),dT))},g.e=!1;var moe,Nur=I(Kr,"FeatureMapUtil/BasicValidator",767);T(768,44,Gv,fhe);var Our=I(Kr,"FeatureMapUtil/BasicValidator/Cache",768);T(499,56,{22:1,32:1,56:1,18:1,16:1,61:1,78:1,72:1,98:1},m4),g._c=function(t,n){Hgt(this.c,this.b,t,n)},g.Ec=function(t){return lwe(this.c,this.b,t)},g.ad=function(t,n){return s1n(this.c,this.b,t,n)},g.Fc=function(t){return V$(this,t)},g.Ei=function(t,n){Ntn(this.c,this.b,t,n)},g.Uk=function(t,n){return twe(this.c,this.b,t,n)},g.Yi=function(t){return FB(this.c,this.b,t,!1)},g.Gi=function(){return eKe(this.c,this.b)},g.Hi=function(){return mHt(this.c,this.b)},g.Ii=function(t){return jen(this.c,this.b,t)},g.Vk=function(t,n){return EQe(this,t,n)},g.$b=function(){bk(this)},g.Gc=function(t){return P9(this.c,this.b,t)},g.Hc=function(t){return Fnn(this.c,this.b,t)},g.Xb=function(t){return FB(this.c,this.b,t,!0)},g.Dk=function(t){return this},g.bd=function(t){return YZt(this.c,this.b,t)},g.dc=function(){return p8(this)},g.Oj=function(){return!ML(this.c,this.b)},g.Jc=function(){return wtn(this.c,this.b)},g.cd=function(){return xtn(this.c,this.b)},g.dd=function(t){return Gin(this.c,this.b,t)},g.Ri=function(t,n){return cpt(this.c,this.b,t,n)},g.Si=function(t,n){Gen(this.c,this.b,t,n)},g.ed=function(t){return Pft(this.c,this.b,t)},g.Kc=function(t){return lpn(this.c,this.b,t)},g.fd=function(t,n){return ypt(this.c,this.b,t,n)},g.Wb=function(t){yB(this.c,this.b),V$(this,d(t,16))},g.gc=function(){return zin(this.c,this.b)},g.Nc=function(){return VQt(this.c,this.b)},g.Oc=function(t){return XZt(this.c,this.b,t)},g.Ib=function(){var t,n;for(n=new Dm,n.a+="[",t=eKe(this.c,this.b);gX(t);)ds(n,X$(Kj(t))),gX(t)&&(n.a+=ac);return n.a+="]",n.a},g.Ek=function(){yB(this.c,this.b)};var Lur=I(Kr,"FeatureMapUtil/FeatureEList",499);T(641,40,OD,gY),g.fj=function(t){return FR(this,t)},g.kj=function(t){var n,o,a,l,h,b,w;switch(this.d){case 1:case 2:{if(h=t.hj(),Ee(h)===Ee(this.c)&&FR(this,null)==t.fj(null))return this.g=t.gj(),t.ej()==1&&(this.d=1),!0;break}case 3:{switch(l=t.ej(),l){case 3:{if(h=t.hj(),Ee(h)===Ee(this.c)&&FR(this,null)==t.fj(null))return this.d=5,n=new s0(2),jn(n,this.g),jn(n,t.gj()),this.g=n,!0;break}}break}case 5:{switch(l=t.ej(),l){case 3:{if(h=t.hj(),Ee(h)===Ee(this.c)&&FR(this,null)==t.fj(null))return o=d(this.g,18),o.Ec(t.gj()),!0;break}}break}case 4:{switch(l=t.ej(),l){case 3:{if(h=t.hj(),Ee(h)===Ee(this.c)&&FR(this,null)==t.fj(null))return this.d=1,this.g=t.gj(),!0;break}case 4:{if(h=t.hj(),Ee(h)===Ee(this.c)&&FR(this,null)==t.fj(null))return this.d=6,w=new s0(2),jn(w,this.n),jn(w,t.ij()),this.n=w,b=re(ne(qn,1),ur,30,15,[this.o,t.jj()]),this.g=b,!0;break}}break}case 6:{switch(l=t.ej(),l){case 4:{if(h=t.hj(),Ee(h)===Ee(this.c)&&FR(this,null)==t.fj(null))return o=d(this.n,18),o.Ec(t.ij()),b=d(this.g,54),a=Te(qn,ur,30,b.length+1,15,1),$a(b,0,a,0,b.length),a[b.length]=t.jj(),this.g=a,!0;break}}break}}return!1};var Dur=I(Kr,"FeatureMapUtil/FeatureENotificationImpl",641);T(560,499,{22:1,32:1,56:1,18:1,16:1,61:1,78:1,164:1,222:1,2015:1,72:1,98:1},J8),g.Ml=function(t,n){return lwe(this.c,t,n)},g.Nl=function(t,n,o){return twe(this.c,t,n,o)},g.Ol=function(t,n,o){return $we(this.c,t,n,o)},g.Pl=function(){return this},g.Ql=function(t,n){return ZL(this.c,t,n)},g.Rl=function(t){return d(FB(this.c,this.b,t,!1),76).Jk()},g.Sl=function(t){return d(FB(this.c,this.b,t,!1),76).kd()},g.Tl=function(){return this.a},g.Ul=function(t){return!ML(this.c,t)},g.Vl=function(t,n){_B(this.c,t,n)},g.Wl=function(t){return fat(this.c,t)},g.Xl=function(t){Xut(this.c,t)};var Fur=I(Kr,"FeatureMapUtil/FeatureFeatureMap",560);T(1269,1,Jee,EXe),g.Dk=function(t){return FB(this.b,this.a,-1,t)},g.Oj=function(){return!ML(this.b,this.a)},g.Wb=function(t){_B(this.b,this.a,t)},g.Ek=function(){yB(this.b,this.a)};var _ur=I(Kr,"FeatureMapUtil/FeatureValue",1269),cE,poe,boe,lE,IRt,eF=ni(V7,"AnyType");T(677,63,Qg,FJ);var jur=I(V7,"InvalidDatatypeValueException",677),pW=ni(V7,Axt),tF=ni(V7,vxt),GRe=ni(V7,kxt),$Rt,pa,zRe,uy,RRt,PRt,NRt,ORt,LRt,DRt,FRt,_Rt,jRt,BRt,GRt,M2,zRt,T2,fN,WRt,tw,nF,rF,HRt,hN,gN;T(836,505,{110:1,95:1,94:1,57:1,52:1,101:1,849:1},Fde),g.Ih=function(t,n,o){switch(t){case 0:return o?(!this.c&&(this.c=new mi(this,0)),this.c):(!this.c&&(this.c=new mi(this,0)),this.c.b);case 1:return o?(!this.c&&(this.c=new mi(this,0)),d(Ba(this.c,(Nr(),uy)),164)):(!this.c&&(this.c=new mi(this,0)),d(d(Ba(this.c,(Nr(),uy)),164),222)).Tl();case 2:return o?(!this.b&&(this.b=new mi(this,2)),this.b):(!this.b&&(this.b=new mi(this,2)),this.b.b)}return Mu(this,t-vn(this.fi()),jt((this.j&2)==0?this.fi():(!this.k&&(this.k=new of),this.k).Lk(),t),n,o)},g.Rh=function(t,n,o){var a;switch(n){case 0:return!this.c&&(this.c=new mi(this,0)),XL(this.c,t,o);case 1:return(!this.c&&(this.c=new mi(this,0)),d(d(Ba(this.c,(Nr(),uy)),164),72)).Vk(t,o);case 2:return!this.b&&(this.b=new mi(this,2)),XL(this.b,t,o)}return a=d(jt((this.j&2)==0?this.fi():(!this.k&&(this.k=new of),this.k).Lk(),n),69),a.uk().yk(this,_pe(this),n-vn(this.fi()),t,o)},g.Th=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new mi(this,0)),d(Ba(this.c,(Nr(),uy)),164)).dc();case 2:return!!this.b&&this.b.i!=0}return Eu(this,t-vn(this.fi()),jt((this.j&2)==0?this.fi():(!this.k&&(this.k=new of),this.k).Lk(),t))},g.$h=function(t,n){switch(t){case 0:!this.c&&(this.c=new mi(this,0)),L4(this.c,n);return;case 1:(!this.c&&(this.c=new mi(this,0)),d(d(Ba(this.c,(Nr(),uy)),164),222)).Wb(n);return;case 2:!this.b&&(this.b=new mi(this,2)),L4(this.b,n);return}Nu(this,t-vn(this.fi()),jt((this.j&2)==0?this.fi():(!this.k&&(this.k=new of),this.k).Lk(),t),n)},g.fi=function(){return Nr(),zRe},g.hi=function(t){switch(t){case 0:!this.c&&(this.c=new mi(this,0)),Ln(this.c);return;case 1:(!this.c&&(this.c=new mi(this,0)),d(Ba(this.c,(Nr(),uy)),164)).$b();return;case 2:!this.b&&(this.b=new mi(this,2)),Ln(this.b);return}Pu(this,t-vn(this.fi()),jt((this.j&2)==0?this.fi():(!this.k&&(this.k=new of),this.k).Lk(),t))},g.Ib=function(){var t;return(this.j&4)!=0?Fd(this):(t=new Zu(Fd(this)),t.a+=" (mixed: ",H$(t,this.c),t.a+=", anyAttribute: ",H$(t,this.b),t.a+=")",t.a)};var Bur=I(Di,"AnyTypeImpl",836);T(678,505,{110:1,95:1,94:1,57:1,52:1,101:1,2098:1,678:1},P7e),g.Ih=function(t,n,o){switch(t){case 0:return this.a;case 1:return this.b}return Mu(this,t-vn((Nr(),M2)),jt((this.j&2)==0?M2:(!this.k&&(this.k=new of),this.k).Lk(),t),n,o)},g.Th=function(t){switch(t){case 0:return this.a!=null;case 1:return this.b!=null}return Eu(this,t-vn((Nr(),M2)),jt((this.j&2)==0?M2:(!this.k&&(this.k=new of),this.k).Lk(),t))},g.$h=function(t,n){switch(t){case 0:izt(this,Jn(n));return;case 1:szt(this,Jn(n));return}Nu(this,t-vn((Nr(),M2)),jt((this.j&2)==0?M2:(!this.k&&(this.k=new of),this.k).Lk(),t),n)},g.fi=function(){return Nr(),M2},g.hi=function(t){switch(t){case 0:this.a=null;return;case 1:this.b=null;return}Pu(this,t-vn((Nr(),M2)),jt((this.j&2)==0?M2:(!this.k&&(this.k=new of),this.k).Lk(),t))},g.Ib=function(){var t;return(this.j&4)!=0?Fd(this):(t=new Zu(Fd(this)),t.a+=" (data: ",ds(t,this.a),t.a+=", target: ",ds(t,this.b),t.a+=")",t.a)},g.a=null,g.b=null;var Gur=I(Di,"ProcessingInstructionImpl",678);T(679,836,{110:1,95:1,94:1,57:1,52:1,101:1,849:1,2099:1,679:1},rqe),g.Ih=function(t,n,o){switch(t){case 0:return o?(!this.c&&(this.c=new mi(this,0)),this.c):(!this.c&&(this.c=new mi(this,0)),this.c.b);case 1:return o?(!this.c&&(this.c=new mi(this,0)),d(Ba(this.c,(Nr(),uy)),164)):(!this.c&&(this.c=new mi(this,0)),d(d(Ba(this.c,(Nr(),uy)),164),222)).Tl();case 2:return o?(!this.b&&(this.b=new mi(this,2)),this.b):(!this.b&&(this.b=new mi(this,2)),this.b.b);case 3:return!this.c&&(this.c=new mi(this,0)),Jn(ZL(this.c,(Nr(),fN),!0));case 4:return sge(this.a,(!this.c&&(this.c=new mi(this,0)),Jn(ZL(this.c,(Nr(),fN),!0))));case 5:return this.a}return Mu(this,t-vn((Nr(),T2)),jt((this.j&2)==0?T2:(!this.k&&(this.k=new of),this.k).Lk(),t),n,o)},g.Th=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new mi(this,0)),d(Ba(this.c,(Nr(),uy)),164)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new mi(this,0)),Jn(ZL(this.c,(Nr(),fN),!0))!=null;case 4:return sge(this.a,(!this.c&&(this.c=new mi(this,0)),Jn(ZL(this.c,(Nr(),fN),!0))))!=null;case 5:return!!this.a}return Eu(this,t-vn((Nr(),T2)),jt((this.j&2)==0?T2:(!this.k&&(this.k=new of),this.k).Lk(),t))},g.$h=function(t,n){switch(t){case 0:!this.c&&(this.c=new mi(this,0)),L4(this.c,n);return;case 1:(!this.c&&(this.c=new mi(this,0)),d(d(Ba(this.c,(Nr(),uy)),164),222)).Wb(n);return;case 2:!this.b&&(this.b=new mi(this,2)),L4(this.b,n);return;case 3:Jme(this,Jn(n));return;case 4:Jme(this,oge(this.a,n));return;case 5:ozt(this,d(n,160));return}Nu(this,t-vn((Nr(),T2)),jt((this.j&2)==0?T2:(!this.k&&(this.k=new of),this.k).Lk(),t),n)},g.fi=function(){return Nr(),T2},g.hi=function(t){switch(t){case 0:!this.c&&(this.c=new mi(this,0)),Ln(this.c);return;case 1:(!this.c&&(this.c=new mi(this,0)),d(Ba(this.c,(Nr(),uy)),164)).$b();return;case 2:!this.b&&(this.b=new mi(this,2)),Ln(this.b);return;case 3:!this.c&&(this.c=new mi(this,0)),_B(this.c,(Nr(),fN),null);return;case 4:Jme(this,oge(this.a,null));return;case 5:this.a=null;return}Pu(this,t-vn((Nr(),T2)),jt((this.j&2)==0?T2:(!this.k&&(this.k=new of),this.k).Lk(),t))};var zur=I(Di,"SimpleAnyTypeImpl",679);T(680,505,{110:1,95:1,94:1,57:1,52:1,101:1,2100:1,680:1},iqe),g.Ih=function(t,n,o){switch(t){case 0:return o?(!this.a&&(this.a=new mi(this,0)),this.a):(!this.a&&(this.a=new mi(this,0)),this.a.b);case 1:return o?(!this.b&&(this.b=new Vc((Nt(),Vo),la,this,1)),this.b):(!this.b&&(this.b=new Vc((Nt(),Vo),la,this,1)),Y4(this.b));case 2:return o?(!this.c&&(this.c=new Vc((Nt(),Vo),la,this,2)),this.c):(!this.c&&(this.c=new Vc((Nt(),Vo),la,this,2)),Y4(this.c));case 3:return!this.a&&(this.a=new mi(this,0)),Ba(this.a,(Nr(),nF));case 4:return!this.a&&(this.a=new mi(this,0)),Ba(this.a,(Nr(),rF));case 5:return!this.a&&(this.a=new mi(this,0)),Ba(this.a,(Nr(),hN));case 6:return!this.a&&(this.a=new mi(this,0)),Ba(this.a,(Nr(),gN))}return Mu(this,t-vn((Nr(),tw)),jt((this.j&2)==0?tw:(!this.k&&(this.k=new of),this.k).Lk(),t),n,o)},g.Rh=function(t,n,o){var a;switch(n){case 0:return!this.a&&(this.a=new mi(this,0)),XL(this.a,t,o);case 1:return!this.b&&(this.b=new Vc((Nt(),Vo),la,this,1)),L8(this.b,t,o);case 2:return!this.c&&(this.c=new Vc((Nt(),Vo),la,this,2)),L8(this.c,t,o);case 5:return!this.a&&(this.a=new mi(this,0)),EQe(Ba(this.a,(Nr(),hN)),t,o)}return a=d(jt((this.j&2)==0?(Nr(),tw):(!this.k&&(this.k=new of),this.k).Lk(),n),69),a.uk().yk(this,_pe(this),n-vn((Nr(),tw)),t,o)},g.Th=function(t){switch(t){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new mi(this,0)),!p8(Ba(this.a,(Nr(),nF)));case 4:return!this.a&&(this.a=new mi(this,0)),!p8(Ba(this.a,(Nr(),rF)));case 5:return!this.a&&(this.a=new mi(this,0)),!p8(Ba(this.a,(Nr(),hN)));case 6:return!this.a&&(this.a=new mi(this,0)),!p8(Ba(this.a,(Nr(),gN)))}return Eu(this,t-vn((Nr(),tw)),jt((this.j&2)==0?tw:(!this.k&&(this.k=new of),this.k).Lk(),t))},g.$h=function(t,n){switch(t){case 0:!this.a&&(this.a=new mi(this,0)),L4(this.a,n);return;case 1:!this.b&&(this.b=new Vc((Nt(),Vo),la,this,1)),wj(this.b,n);return;case 2:!this.c&&(this.c=new Vc((Nt(),Vo),la,this,2)),wj(this.c,n);return;case 3:!this.a&&(this.a=new mi(this,0)),bk(Ba(this.a,(Nr(),nF))),!this.a&&(this.a=new mi(this,0)),V$(Ba(this.a,nF),d(n,18));return;case 4:!this.a&&(this.a=new mi(this,0)),bk(Ba(this.a,(Nr(),rF))),!this.a&&(this.a=new mi(this,0)),V$(Ba(this.a,rF),d(n,18));return;case 5:!this.a&&(this.a=new mi(this,0)),bk(Ba(this.a,(Nr(),hN))),!this.a&&(this.a=new mi(this,0)),V$(Ba(this.a,hN),d(n,18));return;case 6:!this.a&&(this.a=new mi(this,0)),bk(Ba(this.a,(Nr(),gN))),!this.a&&(this.a=new mi(this,0)),V$(Ba(this.a,gN),d(n,18));return}Nu(this,t-vn((Nr(),tw)),jt((this.j&2)==0?tw:(!this.k&&(this.k=new of),this.k).Lk(),t),n)},g.fi=function(){return Nr(),tw},g.hi=function(t){switch(t){case 0:!this.a&&(this.a=new mi(this,0)),Ln(this.a);return;case 1:!this.b&&(this.b=new Vc((Nt(),Vo),la,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new Vc((Nt(),Vo),la,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new mi(this,0)),bk(Ba(this.a,(Nr(),nF)));return;case 4:!this.a&&(this.a=new mi(this,0)),bk(Ba(this.a,(Nr(),rF)));return;case 5:!this.a&&(this.a=new mi(this,0)),bk(Ba(this.a,(Nr(),hN)));return;case 6:!this.a&&(this.a=new mi(this,0)),bk(Ba(this.a,(Nr(),gN)));return}Pu(this,t-vn((Nr(),tw)),jt((this.j&2)==0?tw:(!this.k&&(this.k=new of),this.k).Lk(),t))},g.Ib=function(){var t;return(this.j&4)!=0?Fd(this):(t=new Zu(Fd(this)),t.a+=" (mixed: ",H$(t,this.a),t.a+=")",t.a)};var Wur=I(Di,"XMLTypeDocumentRootImpl",680);T(2007,717,{110:1,95:1,94:1,472:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1,2101:1},A7e),g.oi=function(t,n){switch(t.fk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return n==null?null:Ds(n);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Jn(n);case 6:return WUt(d(n,198));case 12:case 47:case 49:case 11:return obt(this,t,n);case 13:return n==null?null:f1n(d(n,249));case 15:case 14:return n==null?null:eXt(he(be(n)));case 17:return jdt((Nr(),n));case 18:return jdt(n);case 21:case 20:return n==null?null:tXt(d(n,165).a);case 27:return HUt(d(n,198));case 30:return Kut((Nr(),d(n,16)));case 31:return Kut(d(n,16));case 40:return zUt((Nr(),n));case 42:return Bdt((Nr(),n));case 43:return Bdt(n);case 59:case 48:return GUt((Nr(),n));default:throw Q(new Vt(iT+t.ve()+L0))}},g.pi=function(t){var n,o,a,l,h;switch(t.G==-1&&(t.G=(o=iu(t),o?ep(o.si(),t):-1)),t.G){case 0:return n=new Fde,n;case 1:return a=new P7e,a;case 2:return l=new rqe,l;case 3:return h=new iqe,h;default:throw Q(new Vt($ee+t.zb+L0))}},g.qi=function(t,n){var o,a,l,h,b,w,A,k,C,$,O,D,G,U,te,se;switch(t.fk()){case 5:case 52:case 4:return n;case 6:return Asn(n);case 8:case 7:return n==null?null:aln(n);case 9:return n==null?null:rL(cu((a=Ha(n,!0),a.length>0&&(sn(0,a.length),a.charCodeAt(0)==43)?(sn(1,a.length+1),a.substr(1)):a),-128,127)<<24>>24);case 10:return n==null?null:rL(cu((l=Ha(n,!0),l.length>0&&(sn(0,l.length),l.charCodeAt(0)==43)?(sn(1,l.length+1),l.substr(1)):l),-128,127)<<24>>24);case 11:return Jn(S0(this,(Nr(),NRt),n));case 12:return Jn(S0(this,(Nr(),ORt),n));case 13:return n==null?null:new ife(Ha(n,!0));case 15:case 14:return xhn(n);case 16:return Jn(S0(this,(Nr(),LRt),n));case 17:return Zlt((Nr(),n));case 18:return Zlt(n);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Ha(n,!0);case 21:case 20:return $hn(n);case 22:return Jn(S0(this,(Nr(),DRt),n));case 23:return Jn(S0(this,(Nr(),FRt),n));case 24:return Jn(S0(this,(Nr(),_Rt),n));case 25:return Jn(S0(this,(Nr(),jRt),n));case 26:return Jn(S0(this,(Nr(),BRt),n));case 27:return dsn(n);case 30:return eut((Nr(),n));case 31:return eut(n);case 32:return n==null?null:Ge(cu((C=Ha(n,!0),C.length>0&&(sn(0,C.length),C.charCodeAt(0)==43)?(sn(1,C.length+1),C.substr(1)):C),po,pr));case 33:return n==null?null:new Hp(($=Ha(n,!0),$.length>0&&(sn(0,$.length),$.charCodeAt(0)==43)?(sn(1,$.length+1),$.substr(1)):$));case 34:return n==null?null:Ge(cu((O=Ha(n,!0),O.length>0&&(sn(0,O.length),O.charCodeAt(0)==43)?(sn(1,O.length+1),O.substr(1)):O),po,pr));case 36:return n==null?null:ux(zB((D=Ha(n,!0),D.length>0&&(sn(0,D.length),D.charCodeAt(0)==43)?(sn(1,D.length+1),D.substr(1)):D)));case 37:return n==null?null:ux(zB((G=Ha(n,!0),G.length>0&&(sn(0,G.length),G.charCodeAt(0)==43)?(sn(1,G.length+1),G.substr(1)):G)));case 40:return can((Nr(),n));case 42:return tut((Nr(),n));case 43:return tut(n);case 44:return n==null?null:new Hp((U=Ha(n,!0),U.length>0&&(sn(0,U.length),U.charCodeAt(0)==43)?(sn(1,U.length+1),U.substr(1)):U));case 45:return n==null?null:new Hp((te=Ha(n,!0),te.length>0&&(sn(0,te.length),te.charCodeAt(0)==43)?(sn(1,te.length+1),te.substr(1)):te));case 46:return Ha(n,!1);case 47:return Jn(S0(this,(Nr(),GRt),n));case 59:case 48:return aan((Nr(),n));case 49:return Jn(S0(this,(Nr(),zRt),n));case 50:return n==null?null:iM(cu((se=Ha(n,!0),se.length>0&&(sn(0,se.length),se.charCodeAt(0)==43)?(sn(1,se.length+1),se.substr(1)):se),H7,32767)<<16>>16);case 51:return n==null?null:iM(cu((h=Ha(n,!0),h.length>0&&(sn(0,h.length),h.charCodeAt(0)==43)?(sn(1,h.length+1),h.substr(1)):h),H7,32767)<<16>>16);case 53:return Jn(S0(this,(Nr(),WRt),n));case 55:return n==null?null:iM(cu((b=Ha(n,!0),b.length>0&&(sn(0,b.length),b.charCodeAt(0)==43)?(sn(1,b.length+1),b.substr(1)):b),H7,32767)<<16>>16);case 56:return n==null?null:iM(cu((w=Ha(n,!0),w.length>0&&(sn(0,w.length),w.charCodeAt(0)==43)?(sn(1,w.length+1),w.substr(1)):w),H7,32767)<<16>>16);case 57:return n==null?null:ux(zB((A=Ha(n,!0),A.length>0&&(sn(0,A.length),A.charCodeAt(0)==43)?(sn(1,A.length+1),A.substr(1)):A)));case 58:return n==null?null:ux(zB((k=Ha(n,!0),k.length>0&&(sn(0,k.length),k.charCodeAt(0)==43)?(sn(1,k.length+1),k.substr(1)):k)));case 60:return n==null?null:Ge(cu((o=Ha(n,!0),o.length>0&&(sn(0,o.length),o.charCodeAt(0)==43)?(sn(1,o.length+1),o.substr(1)):o),po,pr));case 61:return n==null?null:Ge(cu(Ha(n,!0),po,pr));default:throw Q(new Vt(iT+t.ve()+L0))}};var URt,WRe,JRt,HRe,Hur=I(Di,"XMLTypeFactoryImpl",2007);T(589,187,{110:1,95:1,94:1,159:1,199:1,57:1,244:1,115:1,52:1,101:1,162:1,187:1,118:1,119:1,687:1,2023:1,589:1},htt),g.N=!1,g.O=!1;var qRt=!1,Uur=I(Di,"XMLTypePackageImpl",589);T(1940,1,{843:1},v7e),g.Ik=function(){return xwe(),nPt};var Jur=I(Di,"XMLTypePackageImpl/1",1940);T(1949,1,hr,k7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var qur=I(Di,"XMLTypePackageImpl/10",1949);T(1950,1,hr,S7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Vur=I(Di,"XMLTypePackageImpl/11",1950);T(1951,1,hr,E7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Yur=I(Di,"XMLTypePackageImpl/12",1951);T(1952,1,hr,C7e),g.dk=function(t){return Ow(t)},g.ek=function(t){return Te(Ci,He,347,t,7,1)};var Xur=I(Di,"XMLTypePackageImpl/13",1952);T(1953,1,hr,M7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Kur=I(Di,"XMLTypePackageImpl/14",1953);T(1954,1,hr,T7e),g.dk=function(t){return fe(t,16)},g.ek=function(t){return Te(fu,Ex,16,t,0,1)};var Qur=I(Di,"XMLTypePackageImpl/15",1954);T(1955,1,hr,I7e),g.dk=function(t){return fe(t,16)},g.ek=function(t){return Te(fu,Ex,16,t,0,1)};var Zur=I(Di,"XMLTypePackageImpl/16",1955);T(1956,1,hr,$7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var edr=I(Di,"XMLTypePackageImpl/17",1956);T(1957,1,hr,R7e),g.dk=function(t){return fe(t,165)},g.ek=function(t){return Te(fT,He,165,t,0,1)};var tdr=I(Di,"XMLTypePackageImpl/18",1957);T(1958,1,hr,N7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var ndr=I(Di,"XMLTypePackageImpl/19",1958);T(1941,1,hr,O7e),g.dk=function(t){return fe(t,849)},g.ek=function(t){return Te(eF,zt,849,t,0,1)};var rdr=I(Di,"XMLTypePackageImpl/2",1941);T(1959,1,hr,L7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var idr=I(Di,"XMLTypePackageImpl/20",1959);T(1960,1,hr,D7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var odr=I(Di,"XMLTypePackageImpl/21",1960);T(1961,1,hr,F7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var sdr=I(Di,"XMLTypePackageImpl/22",1961);T(1962,1,hr,_7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var adr=I(Di,"XMLTypePackageImpl/23",1962);T(1963,1,hr,j7e),g.dk=function(t){return fe(t,198)},g.ek=function(t){return Te(tl,He,198,t,0,2)};var cdr=I(Di,"XMLTypePackageImpl/24",1963);T(1964,1,hr,B7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var ldr=I(Di,"XMLTypePackageImpl/25",1964);T(1965,1,hr,G7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var udr=I(Di,"XMLTypePackageImpl/26",1965);T(1966,1,hr,z7e),g.dk=function(t){return fe(t,16)},g.ek=function(t){return Te(fu,Ex,16,t,0,1)};var ddr=I(Di,"XMLTypePackageImpl/27",1966);T(1967,1,hr,W7e),g.dk=function(t){return fe(t,16)},g.ek=function(t){return Te(fu,Ex,16,t,0,1)};var fdr=I(Di,"XMLTypePackageImpl/28",1967);T(1968,1,hr,H7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var hdr=I(Di,"XMLTypePackageImpl/29",1968);T(1942,1,hr,U7e),g.dk=function(t){return fe(t,678)},g.ek=function(t){return Te(pW,zt,2098,t,0,1)};var gdr=I(Di,"XMLTypePackageImpl/3",1942);T(1969,1,hr,J7e),g.dk=function(t){return fe(t,15)},g.ek=function(t){return Te(Fi,He,15,t,0,1)};var mdr=I(Di,"XMLTypePackageImpl/30",1969);T(1970,1,hr,q7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var pdr=I(Di,"XMLTypePackageImpl/31",1970);T(1971,1,hr,V7e),g.dk=function(t){return fe(t,192)},g.ek=function(t){return Te(F0,He,192,t,0,1)};var bdr=I(Di,"XMLTypePackageImpl/32",1971);T(1972,1,hr,Y7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var ydr=I(Di,"XMLTypePackageImpl/33",1972);T(1973,1,hr,X7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var wdr=I(Di,"XMLTypePackageImpl/34",1973);T(1974,1,hr,K7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var xdr=I(Di,"XMLTypePackageImpl/35",1974);T(1975,1,hr,Q7e),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Adr=I(Di,"XMLTypePackageImpl/36",1975);T(1976,1,hr,Z7e),g.dk=function(t){return fe(t,16)},g.ek=function(t){return Te(fu,Ex,16,t,0,1)};var vdr=I(Di,"XMLTypePackageImpl/37",1976);T(1977,1,hr,eGe),g.dk=function(t){return fe(t,16)},g.ek=function(t){return Te(fu,Ex,16,t,0,1)};var kdr=I(Di,"XMLTypePackageImpl/38",1977);T(1978,1,hr,tGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Sdr=I(Di,"XMLTypePackageImpl/39",1978);T(1943,1,hr,nGe),g.dk=function(t){return fe(t,679)},g.ek=function(t){return Te(tF,zt,2099,t,0,1)};var Edr=I(Di,"XMLTypePackageImpl/4",1943);T(1979,1,hr,rGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Cdr=I(Di,"XMLTypePackageImpl/40",1979);T(1980,1,hr,iGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Mdr=I(Di,"XMLTypePackageImpl/41",1980);T(1981,1,hr,oGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Tdr=I(Di,"XMLTypePackageImpl/42",1981);T(1982,1,hr,sGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Idr=I(Di,"XMLTypePackageImpl/43",1982);T(1983,1,hr,aGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var $dr=I(Di,"XMLTypePackageImpl/44",1983);T(1984,1,hr,cGe),g.dk=function(t){return fe(t,193)},g.ek=function(t){return Te(_0,He,193,t,0,1)};var Rdr=I(Di,"XMLTypePackageImpl/45",1984);T(1985,1,hr,lGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Pdr=I(Di,"XMLTypePackageImpl/46",1985);T(1986,1,hr,uGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Ndr=I(Di,"XMLTypePackageImpl/47",1986);T(1987,1,hr,dGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Odr=I(Di,"XMLTypePackageImpl/48",1987);T(1988,1,hr,fGe),g.dk=function(t){return fe(t,193)},g.ek=function(t){return Te(_0,He,193,t,0,1)};var Ldr=I(Di,"XMLTypePackageImpl/49",1988);T(1944,1,hr,hGe),g.dk=function(t){return fe(t,680)},g.ek=function(t){return Te(GRe,zt,2100,t,0,1)};var Ddr=I(Di,"XMLTypePackageImpl/5",1944);T(1989,1,hr,gGe),g.dk=function(t){return fe(t,192)},g.ek=function(t){return Te(F0,He,192,t,0,1)};var Fdr=I(Di,"XMLTypePackageImpl/50",1989);T(1990,1,hr,mGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var _dr=I(Di,"XMLTypePackageImpl/51",1990);T(1991,1,hr,pGe),g.dk=function(t){return fe(t,15)},g.ek=function(t){return Te(Fi,He,15,t,0,1)};var jdr=I(Di,"XMLTypePackageImpl/52",1991);T(1945,1,hr,bGe),g.dk=function(t){return io(t)},g.ek=function(t){return Te(ot,He,2,t,6,1)};var Bdr=I(Di,"XMLTypePackageImpl/6",1945);T(1946,1,hr,yGe),g.dk=function(t){return fe(t,198)},g.ek=function(t){return Te(tl,He,198,t,0,2)};var Gdr=I(Di,"XMLTypePackageImpl/7",1946);T(1947,1,hr,wGe),g.dk=function(t){return Nw(t)},g.ek=function(t){return Te(ci,He,476,t,8,1)};var zdr=I(Di,"XMLTypePackageImpl/8",1947);T(1948,1,hr,xGe),g.dk=function(t){return fe(t,224)},g.ek=function(t){return Te(NS,He,224,t,0,1)};var Wdr=I(Di,"XMLTypePackageImpl/9",1948),ah,Ap,mN,bW,ie;T(53,63,Qg,Yn);var Hdr=I(cp,"RegEx/ParseException",53);T(828,1,{},Gue),g._l=function(t){return t<this.j&&Co(this.i,t)==63},g.am=function(){var t,n,o,a,l;if(this.c!=10)throw Q(new Yn(Qn((Un(),D7))));switch(t=this.a,t){case 101:t=27;break;case 102:t=12;break;case 110:t=10;break;case 114:t=13;break;case 116:t=9;break;case 120:if(xr(this),this.c!=0)throw Q(new Yn(Qn((Un(),ap))));if(this.a==123){l=0,o=0;do{if(xr(this),this.c!=0)throw Q(new Yn(Qn((Un(),ap))));if((l=O1(this.a))<0)break;if(o>o*16)throw Q(new Yn(Qn((Un(),Owt))));o=o*16+l}while(!0);if(this.a!=125)throw Q(new Yn(Qn((Un(),Lwt))));if(o>lT)throw Q(new Yn(Qn((Un(),Dwt))));t=o}else{if(l=0,this.c!=0||(l=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(o=l,xr(this),this.c!=0||(l=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));o=o*16+l,t=o}break;case 117:if(a=0,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=a,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=n*16+a,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=n*16+a,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));n=n*16+a,t=n;break;case 118:if(xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=a,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=n*16+a,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=n*16+a,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=n*16+a,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=n*16+a,xr(this),this.c!=0||(a=O1(this.a))<0)throw Q(new Yn(Qn((Un(),ap))));if(n=n*16+a,n>lT)throw Q(new Yn(Qn((Un(),"parser.descappe.4"))));t=n;break;case 65:case 90:case 122:throw Q(new Yn(Qn((Un(),Fwt))))}return t},g.bm=function(t){var n,o;switch(t){case 100:o=(this.e&32)==32?fb("Nd",!0):(vr(),yW);break;case 68:o=(this.e&32)==32?fb("Nd",!1):(vr(),XRe);break;case 119:o=(this.e&32)==32?fb("IsWord",!0):(vr(),QT);break;case 87:o=(this.e&32)==32?fb("IsWord",!1):(vr(),QRe);break;case 115:o=(this.e&32)==32?fb("IsSpace",!0):(vr(),uE);break;case 83:o=(this.e&32)==32?fb("IsSpace",!1):(vr(),KRe);break;default:throw Q(new Bs((n=t,Fxt+n.toString(16))))}return o},g.cm=function(t){var n,o,a,l,h,b,w,A,k,C,$,O;for(this.b=1,xr(this),n=null,this.c==0&&this.a==94?(xr(this),t?C=(vr(),vr(),++fi,new ru(5)):(n=(vr(),vr(),++fi,new ru(4)),Wa(n,0,lT),C=(++fi,new ru(4)))):C=(vr(),vr(),++fi,new ru(4)),l=!0;(O=this.c)!=1&&!(O==0&&this.a==93&&!l);){if(l=!1,o=this.a,a=!1,O==10)switch(o){case 100:case 68:case 119:case 87:case 115:case 83:Ax(C,this.bm(o)),a=!0;break;case 105:case 73:case 99:case 67:o=this.sm(C,o),o<0&&(a=!0);break;case 112:case 80:if($=h0e(this,o),!$)throw Q(new Yn(Qn((Un(),Wee))));Ax(C,$),a=!0;break;default:o=this.am()}else if(O==20){if(b=wC(this.i,58,this.d),b<0)throw Q(new Yn(Qn((Un(),x2e))));if(w=!0,Co(this.i,this.d)==94&&(++this.d,w=!1),h=td(this.i,this.d,b),A=yot(h,w,(this.e&512)==512),!A)throw Q(new Yn(Qn((Un(),Iwt))));if(Ax(C,A),a=!0,b+1>=this.j||Co(this.i,b+1)!=93)throw Q(new Yn(Qn((Un(),x2e))));this.d=b+2}if(xr(this),!a)if(this.c!=0||this.a!=45)Wa(C,o,o);else{if(xr(this),(O=this.c)==1)throw Q(new Yn(Qn((Un(),F7))));O==0&&this.a==93?(Wa(C,o,o),Wa(C,45,45)):(k=this.a,O==10&&(k=this.am()),xr(this),Wa(C,o,k))}(this.e&sd)==sd&&this.c==0&&this.a==44&&xr(this)}if(this.c==1)throw Q(new Yn(Qn((Un(),F7))));return n&&(pP(n,C),C=n),Ov(C),hP(C),this.b=0,xr(this),C},g.dm=function(){var t,n,o,a;for(o=this.cm(!1);(a=this.c)!=7;)if(t=this.a,a==0&&(t==45||t==38)||a==4){if(xr(this),this.c!=9)throw Q(new Yn(Qn((Un(),Rwt))));if(n=this.cm(!1),a==4)Ax(o,n);else if(t==45)pP(o,n);else if(t==38)tbt(o,n);else throw Q(new Bs("ASSERT"))}else throw Q(new Yn(Qn((Un(),Pwt))));return xr(this),o},g.em=function(){var t,n;return t=this.a-48,n=(vr(),vr(),++fi,new QV(12,null,t)),!this.g&&(this.g=new v_),A_(this.g,new kde(t)),xr(this),n},g.fm=function(){return xr(this),vr(),XRt},g.gm=function(){return xr(this),vr(),YRt},g.hm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.im=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.jm=function(){return xr(this),Drn()},g.km=function(){return xr(this),vr(),QRt},g.lm=function(){return xr(this),vr(),ePt},g.mm=function(){var t;if(this.d>=this.j||((t=Co(this.i,this.d++))&65504)!=64)throw Q(new Yn(Qn((Un(),Cwt))));return xr(this),vr(),vr(),++fi,new Xh(0,t-64)},g.nm=function(){return xr(this),fbn()},g.om=function(){return xr(this),vr(),tPt},g.pm=function(){var t;return t=(vr(),vr(),++fi,new Xh(0,105)),xr(this),t},g.qm=function(){return xr(this),vr(),ZRt},g.rm=function(){return xr(this),vr(),KRt},g.sm=function(t,n){return this.am()},g.tm=function(){return xr(this),vr(),VRe},g.um=function(){var t,n,o,a,l;if(this.d+1>=this.j)throw Q(new Yn(Qn((Un(),kwt))));if(a=-1,n=null,t=Co(this.i,this.d),49<=t&&t<=57){if(a=t-48,!this.g&&(this.g=new v_),A_(this.g,new kde(a)),++this.d,Co(this.i,this.d)!=41)throw Q(new Yn(Qn((Un(),J1))));++this.d}else switch(t==63&&--this.d,xr(this),n=Jwe(this),n.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw Q(new Yn(Qn((Un(),J1))));break;default:throw Q(new Yn(Qn((Un(),Swt))))}if(xr(this),l=p0(this),o=null,l.e==2){if(l.Nm()!=2)throw Q(new Yn(Qn((Un(),Ewt))));o=l.Jm(1),l=l.Jm(0)}if(this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),vr(),vr(),++fi,new hst(a,n,l,o)},g.vm=function(){return xr(this),vr(),YRe},g.wm=function(){var t;if(xr(this),t=c9(24,p0(this)),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),t},g.xm=function(){var t;if(xr(this),t=c9(20,p0(this)),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),t},g.ym=function(){var t;if(xr(this),t=c9(22,p0(this)),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),t},g.zm=function(){var t,n,o,a,l;for(t=0,o=0,n=-1;this.d<this.j&&(n=Co(this.i,this.d),l=w0e(n),l!=0);)t|=l,++this.d;if(this.d>=this.j)throw Q(new Yn(Qn((Un(),y2e))));if(n==45){for(++this.d;this.d<this.j&&(n=Co(this.i,this.d),l=w0e(n),l!=0);)o|=l,++this.d;if(this.d>=this.j)throw Q(new Yn(Qn((Un(),y2e))))}if(n==58){if(++this.d,xr(this),a=Bet(p0(this),t,o),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));xr(this)}else if(n==41)++this.d,xr(this),a=Bet(p0(this),t,o);else throw Q(new Yn(Qn((Un(),vwt))));return a},g.Am=function(){var t;if(xr(this),t=c9(21,p0(this)),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),t},g.Bm=function(){var t;if(xr(this),t=c9(23,p0(this)),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),t},g.Cm=function(){var t,n;if(xr(this),t=this.f++,n=CV(p0(this),t),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),n},g.Dm=function(){var t;if(xr(this),t=CV(p0(this),0),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),t},g.Em=function(t){return xr(this),this.c==5?(xr(this),e9(t,(vr(),vr(),++fi,new Qw(9,t)))):e9(t,(vr(),vr(),++fi,new Qw(3,t)))},g.Fm=function(t){var n;return xr(this),n=(vr(),vr(),++fi,new q$(2)),this.c==5?(xr(this),F1(n,bN),F1(n,t)):(F1(n,t),F1(n,bN)),n},g.Gm=function(t){return xr(this),this.c==5?(xr(this),vr(),vr(),++fi,new Qw(9,t)):(vr(),vr(),++fi,new Qw(3,t))},g.a=0,g.b=0,g.c=0,g.d=0,g.e=0,g.f=1,g.g=null,g.j=0;var Udr=I(cp,"RegEx/RegexParser",828);T(1927,828,{},oqe),g._l=function(t){return!1},g.am=function(){return K0e(this)},g.bm=function(t){return CM(t)},g.cm=function(t){return Ybt(this)},g.dm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.em=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.fm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.gm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.hm=function(){return xr(this),CM(67)},g.im=function(){return xr(this),CM(73)},g.jm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.km=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.lm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.mm=function(){return xr(this),CM(99)},g.nm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.om=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.pm=function(){return xr(this),CM(105)},g.qm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.rm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.sm=function(t,n){return Ax(t,CM(n)),-1},g.tm=function(){return xr(this),vr(),vr(),++fi,new Xh(0,94)},g.um=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.vm=function(){return xr(this),vr(),vr(),++fi,new Xh(0,36)},g.wm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.xm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.ym=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.zm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.Am=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.Bm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.Cm=function(){var t;if(xr(this),t=CV(p0(this),0),this.c!=7)throw Q(new Yn(Qn((Un(),J1))));return xr(this),t},g.Dm=function(){throw Q(new Yn(Qn((Un(),Fu))))},g.Em=function(t){return xr(this),e9(t,(vr(),vr(),++fi,new Qw(3,t)))},g.Fm=function(t){var n;return xr(this),n=(vr(),vr(),++fi,new q$(2)),F1(n,t),F1(n,bN),n},g.Gm=function(t){return xr(this),vr(),vr(),++fi,new Qw(3,t)};var I2=null,XT=null,Jdr=I(cp,"RegEx/ParserForXMLSchema",1927);T(122,1,uT,Dy),g.Hm=function(t){throw Q(new Bs("Not supported."))},g.Im=function(){return-1},g.Jm=function(t){return null},g.Km=function(){return null},g.Lm=function(t){},g.Mm=function(t){},g.Nm=function(){return 0},g.Ib=function(){return this.Om(0)},g.Om=function(t){return this.e==11?".":""},g.e=0;var URe,KT,pN,VRt,JRe,hA=null,yW,yoe=null,qRe,bN,woe=null,VRe,YRe,XRe,KRe,QRe,YRt,uE,XRt,KRt,QRt,ZRt,QT,ePt,tPt,fi=0,Txn=I(cp,"RegEx/Token",122);T(140,122,{3:1,140:1,122:1},ru),g.Om=function(t){var n,o,a;if(this.e==4)if(this==qRe)o=".";else if(this==yW)o="\\d";else if(this==QT)o="\\w";else if(this==uE)o="\\s";else{for(a=new Dm,a.a+="[",n=0;n<this.b.length;n+=2)(t&sd)!=0&&n>0&&(a.a+=","),this.b[n]===this.b[n+1]?ds(a,QL(this.b[n])):(ds(a,QL(this.b[n])),a.a+="-",ds(a,QL(this.b[n+1])));a.a+="]",o=a.a}else if(this==XRe)o="\\D";else if(this==QRe)o="\\W";else if(this==KRe)o="\\S";else{for(a=new Dm,a.a+="[^",n=0;n<this.b.length;n+=2)(t&sd)!=0&&n>0&&(a.a+=","),this.b[n]===this.b[n+1]?ds(a,QL(this.b[n])):(ds(a,QL(this.b[n])),a.a+="-",ds(a,QL(this.b[n+1])));a.a+="]",o=a.a}return o},g.a=!1,g.c=!1;var qdr=I(cp,"RegEx/RangeToken",140);T(587,1,{587:1},kde),g.a=0;var Vdr=I(cp,"RegEx/RegexParser/ReferencePosition",587);T(586,1,{3:1,586:1},AVe),g.Fb=function(t){var n;return t==null||!fe(t,586)?!1:(n=d(t,586),Mt(this.b,n.b)&&this.a==n.a)},g.Hb=function(){return Ym(this.b+"/"+H0e(this.a))},g.Ib=function(){return this.c.Om(this.a)},g.a=0;var Ydr=I(cp,"RegEx/RegularExpression",586);T(230,122,uT,Xh),g.Im=function(){return this.a},g.Om=function(t){var n,o,a;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:a="\\"+Qq(this.a&Li);break;case 12:a="\\f";break;case 10:a="\\n";break;case 13:a="\\r";break;case 9:a="\\t";break;case 27:a="\\e";break;default:this.a>=Jo?(o=(n=this.a>>>0,"0"+n.toString(16)),a="\\v"+td(o,o.length-6,o.length)):a=""+Qq(this.a&Li)}break;case 8:this==VRe||this==YRe?a=""+Qq(this.a&Li):a="\\"+Qq(this.a&Li);break;default:a=null}return a},g.a=0;var Xdr=I(cp,"RegEx/Token/CharToken",230);T(323,122,uT,Qw),g.Jm=function(t){return this.a},g.Lm=function(t){this.b=t},g.Mm=function(t){this.c=t},g.Nm=function(){return 1},g.Om=function(t){var n;if(this.e==3)if(this.c<0&&this.b<0)n=this.a.Om(t)+"*";else if(this.c==this.b)n=this.a.Om(t)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)n=this.a.Om(t)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)n=this.a.Om(t)+"{"+this.c+",}";else throw Q(new Bs("Token#toString(): CLOSURE "+this.c+ac+this.b));else if(this.c<0&&this.b<0)n=this.a.Om(t)+"*?";else if(this.c==this.b)n=this.a.Om(t)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)n=this.a.Om(t)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)n=this.a.Om(t)+"{"+this.c+",}?";else throw Q(new Bs("Token#toString(): NONGREEDYCLOSURE "+this.c+ac+this.b));return n},g.b=0,g.c=0;var Kdr=I(cp,"RegEx/Token/ClosureToken",323);T(829,122,uT,rme),g.Jm=function(t){return t==0?this.a:this.b},g.Nm=function(){return 2},g.Om=function(t){var n;return this.b.e==3&&this.b.Jm(0)==this.a?n=this.a.Om(t)+"+":this.b.e==9&&this.b.Jm(0)==this.a?n=this.a.Om(t)+"+?":n=this.a.Om(t)+(""+this.b.Om(t)),n};var Qdr=I(cp,"RegEx/Token/ConcatToken",829);T(1925,122,uT,hst),g.Jm=function(t){if(t==0)return this.d;if(t==1)return this.b;throw Q(new Bs("Internal Error: "+t))},g.Nm=function(){return this.b?2:1},g.Om=function(t){var n;return this.c>0?n="(?("+this.c+")":this.a.e==8?n="(?("+this.a+")":n="(?"+this.a,this.b?n+=this.d+"|"+this.b+")":n+=this.d+")",n},g.c=0;var Zdr=I(cp,"RegEx/Token/ConditionToken",1925);T(1926,122,uT,Bnt),g.Jm=function(t){return this.b},g.Nm=function(){return 1},g.Om=function(t){return"(?"+(this.a==0?"":H0e(this.a))+(this.c==0?"":H0e(this.c))+":"+this.b.Om(t)+")"},g.a=0,g.c=0;var efr=I(cp,"RegEx/Token/ModifierToken",1926);T(830,122,uT,fme),g.Jm=function(t){return this.a},g.Nm=function(){return 1},g.Om=function(t){var n;switch(n=null,this.e){case 6:this.b==0?n="(?:"+this.a.Om(t)+")":n="("+this.a.Om(t)+")";break;case 20:n="(?="+this.a.Om(t)+")";break;case 21:n="(?!"+this.a.Om(t)+")";break;case 22:n="(?<="+this.a.Om(t)+")";break;case 23:n="(?<!"+this.a.Om(t)+")";break;case 24:n="(?>"+this.a.Om(t)+")"}return n},g.b=0;var tfr=I(cp,"RegEx/Token/ParenToken",830);T(521,122,{3:1,122:1,521:1},QV),g.Km=function(){return this.b},g.Om=function(t){return this.e==12?"\\"+this.a:ihn(this.b)},g.a=0;var nfr=I(cp,"RegEx/Token/StringToken",521);T(469,122,uT,q$),g.Hm=function(t){F1(this,t)},g.Jm=function(t){return d(Zy(this.a,t),122)},g.Nm=function(){return this.a?this.a.a.c.length:0},g.Om=function(t){var n,o,a,l,h;if(this.e==1){if(this.a.a.c.length==2)n=d(Zy(this.a,0),122),o=d(Zy(this.a,1),122),o.e==3&&o.Jm(0)==n?l=n.Om(t)+"+":o.e==9&&o.Jm(0)==n?l=n.Om(t)+"+?":l=n.Om(t)+(""+o.Om(t));else{for(h=new Dm,a=0;a<this.a.a.c.length;a++)ds(h,d(Zy(this.a,a),122).Om(t));l=h.a}return l}if(this.a.a.c.length==2&&d(Zy(this.a,1),122).e==7)l=d(Zy(this.a,0),122).Om(t)+"?";else if(this.a.a.c.length==2&&d(Zy(this.a,0),122).e==7)l=d(Zy(this.a,1),122).Om(t)+"??";else{for(h=new Dm,ds(h,d(Zy(this.a,0),122).Om(t)),a=1;a<this.a.a.c.length;a++)h.a+="|",ds(h,d(Zy(this.a,a),122).Om(t));l=h.a}return l};var rfr=I(cp,"RegEx/Token/UnionToken",469);T(518,1,{596:1},YO),g.Ib=function(){return this.a.b};var ifr=I(Gxt,"XMLTypeUtil/PatternMatcherImpl",518);T(1690,1505,{},AGe);var nPt,ofr=I(Gxt,"XMLTypeValidator",1690);T(272,1,sg,g1),g.Ic=function(t){Mo(this,t)},g.Jc=function(){return(this.b-this.a)*this.c<0?Bb:new Up(this)},g.a=0,g.b=0,g.c=0;var Bb,sfr=I(j2e,"ExclusiveRange",272);T(1065,1,og,vGe),g.Rb=function(t){d(t,15),THt()},g.Nb=function(t){ko(this,t)},g.Pb=function(){return yWt()},g.Ub=function(){return wWt()},g.Wb=function(t){d(t,15),$Ht()},g.Ob=function(){return!1},g.Sb=function(){return!1},g.Tb=function(){return-1},g.Vb=function(){return-1},g.Qb=function(){throw Q(new Lm(Hxt))};var afr=I(j2e,"ExclusiveRange/1",1065);T(261,1,og,Up),g.Rb=function(t){d(t,15),IHt()},g.Nb=function(t){ko(this,t)},g.Pb=function(){return oin(this)},g.Ub=function(){return itn(this)},g.Wb=function(t){d(t,15),RHt()},g.Ob=function(){return this.c.c<0?this.a>=this.c.b:this.a<=this.c.b},g.Sb=function(){return this.b>0},g.Tb=function(){return this.b},g.Vb=function(){return this.b-1},g.Qb=function(){throw Q(new Lm(Hxt))},g.a=0,g.b=0;var cfr=I(j2e,"ExclusiveRange/RangeIterator",261),Wu=$C(_7,"C"),qn=$C(zP,"I"),Gc=$C(xS,"Z"),nw=$C(WP,"J"),tl=$C(jP,"B"),lo=$C(BP,"D"),gA=$C(GP,"F"),$2=$C(HP,"S"),Ixn=ni("org.eclipse.elk.core.labels","ILabelManager"),ZRe=ni(zo,"DiagnosticChain"),ePe=ni(yxt,"ResourceSet"),tPe=I(zo,"InvocationTargetException",null),rPt=(T_(),wen),iPt=iPt=Jcn;onn(wzt),bnn("permProps",[[["locale","default"],[Uxt,"gecko1_8"]],[["locale","default"],[Uxt,"safari"]]]),iPt(null,"elk",null)}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(c,u,f){"use strict";function p(z){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},p(z)}function m(z,W){for(var Z=0;Z<W.length;Z++){var V=W[Z];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(z,x(V.key),V)}}function y(z,W,Z){return W&&m(z.prototype,W),Z&&m(z,Z),Object.defineProperty(z,"prototype",{writable:!1}),z}function x(z){var W=v(z,"string");return p(W)=="symbol"?W:W+""}function v(z,W){if(p(z)!="object"||!z)return z;var Z=z[Symbol.toPrimitive];if(Z!==void 0){var V=Z.call(z,W||"default");if(p(V)!="object")return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return(W==="string"?String:Number)(z)}function S(z,W){if(!(z instanceof W))throw new TypeError("Cannot call a class as a function")}function E(z,W,Z){return W=N(W),M(z,P()?Reflect.construct(W,Z||[],N(z).constructor):W.apply(z,Z))}function M(z,W){if(W&&(p(W)=="object"||typeof W=="function"))return W;if(W!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R(z)}function R(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}function P(){try{var z=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P=function(){return!!z})()}function N(z){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(W){return W.__proto__||Object.getPrototypeOf(W)},N(z)}function F(z,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(W&&W.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),Object.defineProperty(z,"prototype",{writable:!1}),W&&L(z,W)}function L(z,W){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(Z,V){return Z.__proto__=V,Z},L(z,W)}var _=c("./elk-api.js").default,j=(function(z){function W(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};S(this,W);var V=Object.assign({},Z),H=!1;try{c.resolve("web-worker"),H=!0}catch{}if(Z.workerUrl)if(H){var q=c("web-worker");V.workerFactory=function(oe){return new q(oe)}}else console.warn(`Web worker requested but 'web-worker' package not installed.
23
23
  Consider installing the package or pass your own 'workerFactory' to ELK's constructor.
24
- ... Falling back to non-web worker version.`);if(!V.workerFactory){var X=c("./elk-worker.min.js"),ee=X.Worker;V.workerFactory=function(oe){return new ee(oe)}}return E(this,W,[V])}return F(W,z),y(W)})(_);Object.defineProperty(u.exports,"__esModule",{value:!0}),u.exports=j,j.default=j},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(c,u,f){"use strict";var p=typeof Worker<"u"?Worker:void 0;u.exports=p},{}]},{},[3])(3)})});var YFn={};rPe(YFn,{ARCHITECTURE_ICON_LIMITS:()=>mF,AsciiWidthError:()=>FU,BACKEND_CONFORMANCE_CHECK_IDS:()=>gFt,BACKEND_CONFORMANCE_FIXTURE_ID:()=>Tce,BACKEND_CONFORMANCE_VERSION:()=>dOe,BINDABLE_ROLE_STYLE_PROPERTIES:()=>oF,BINDABLE_SCENE_ROLES:()=>pE,BRAND_CONSTRAINT_DESCRIPTORS:()=>TN,BRAND_CONSTRAINT_KINDS:()=>nI,BROWSER_CANVAS_RUNTIME:()=>kue,BUILTIN_SCENE_ROLE_TRAITS:()=>eI,CAPABILITY_NEGOTIATION_VERSION:()=>oPe,CORE_CAPABILITY_OFFERS:()=>aPe,CORE_SCENE_FEATURES:()=>Toe,CORE_SCENE_OPERATIONS:()=>Moe,CORE_SCENE_PRIMITIVES:()=>bE,DEFAULTS:()=>RE,DefaultBackend:()=>jh,ESSENTIAL_SCENE_PRIMITIVE_CAPABILITIES:()=>sF,ESSENTIAL_SCENE_PRIMITIVE_OPERATIONS:()=>APt,EXACT_ROLE_STYLE_CONTRACT:()=>mE,EXACT_STYLE_SCENE_ROLES:()=>CN,EXTERNAL_SCENE_API_VERSION:()=>KLe,ExtensionCollisionError:()=>kN,GitGraphDuplicateCommitError:()=>kH,GitGraphParseError:()=>$l,HOSTED_FONT_RESOURCES:()=>Z6,KNOWN_EXTENSION_CONTRACT_VERSIONS:()=>cPe,MAX_HOSTED_PNG_BYTES:()=>nGt,MAX_HOSTED_PNG_PIXELS:()=>bue,MAX_PNG_FONT_DIRECTORIES:()=>VU,MAX_PNG_FONT_DIRECTORY_LENGTH:()=>YU,MAX_PNG_PIXELS:()=>e_,MAX_PNG_RASTER_DIMENSION:()=>l$,MermaidFamilyDetectionError:()=>DN,MindmapDuplicateIdError:()=>vH,MindmapParseError:()=>wm,NATIVE_PNG_HOST_ONLY_OPTION_FIELDS:()=>oGt,NATIVE_PNG_OUTPUT_POLICY_FIELDS:()=>KU,OUTPUT_COLOR_PROFILE:()=>JU,OUTPUT_SECURITY_POLICY_VERSION:()=>pce,PNG_DEFAULT_FONT_FAMILY:()=>oDe,PNG_DEFAULT_SCALE:()=>QE,PNG_FONT_SOURCES:()=>mGt,PNG_NAPI_RUNTIME:()=>uDe,PNG_OUTPUT_OPTION_FIELDS:()=>t_,PNG_OUTPUT_OPTION_FIELD_DESCRIPTORS:()=>DO,PNG_OUTPUT_POLICY_VERSION:()=>YI,PNG_WASM_RUNTIME:()=>pGt,PORTABLE_PNG_OUTPUT_OPTION_FIELDS:()=>XU,PRIMITIVE_REALIZATIONS:()=>vW,ParsedDiagramFamilyMismatchError:()=>OU,RENDER_CONTRACT_VERSION:()=>J6,RENDER_OUTPUTS:()=>vN,RENDER_OUTPUT_DESCRIPTORS:()=>dLe,RESOURCE_MANIFEST:()=>eDe,RESOURCE_MANIFEST_VERSION:()=>LO,ROLE_STYLE_PROPERTY_DESCRIPTORS:()=>gE,RenderCapabilityError:()=>qE,SCENE_CONTRACT_VERSION:()=>xW,SCENE_ROLE_DESCRIPTORS:()=>tI,SCENE_VALIDATION_LIMITS:()=>Cc,SCENE_VALIDATION_VERSION:()=>cFt,SEMANTIC_BINDING_CHANNELS:()=>v6,SHARED_RENDER_OPTION_FIELDS:()=>lk,STYLE_COLOR_TOKEN_DESCRIPTORS:()=>A6,STYLE_SPEC_FIELD_DESCRIPTORS:()=>fO,STYLE_SPEC_FORMAT_VERSION:()=>LI,SceneValidationError:()=>cO,TERMINAL_BOUNDED_PADDING_X:()=>ELe,TERMINAL_DEFAULT_BOX_BORDER_PADDING:()=>MLe,TERMINAL_DEFAULT_PADDING_X:()=>SLe,TERMINAL_DEFAULT_PADDING_Y:()=>CLe,TERMINAL_OUTPUT_POLICY_VERSION:()=>WE,TERMINAL_STYLE_VERSION:()=>vLe,TEXT_MEASUREMENT_CONTRACT:()=>kPe,TerminalOutputPolicyError:()=>Dp,applyOutputSecurityPolicy:()=>RI,applyPngColorProfile:()=>pue,architectureIconManifest:()=>G3t,architectureToMermaidGraph:()=>lle,assertHostedPngRasterBudget:()=>aGt,assertPngRasterBudget:()=>Aue,assertRenderableMarker:()=>iO,assertValidSceneDoc:()=>PI,buildExternalScene:()=>G7t,canonicalExtensionId:()=>SN,classifyMermaidFamilyFromFirstLine:()=>$se,connectorHitDistance:()=>yce,createExtensionIdentity:()=>gm,createMermaidBrowserPNGRenderer:()=>AGt,createMermaidRenderer:()=>qFn,essentialScenePrimitiveOperation:()=>vPt,evaluateExtensionCompatibility:()=>lPe,fromShikiTheme:()=>PDt,getBackend:()=>kFt,getStyle:()=>e6t,hitTestConnector:()=>ky,hitTestSceneConnectors:()=>X5t,hostedFontResource:()=>q7t,inferBackend:()=>DE,inlineResolvedColors:()=>Kae,inspectPngColorProfile:()=>mue,inspectPngDimensions:()=>gue,knownBackendDescriptors:()=>yOe,knownStyleDescriptors:()=>ROe,knownStyles:()=>$Oe,measureText:()=>Boe,measureTextWidth:()=>Qo,negotiateCapabilities:()=>sPe,negotiateRenderCapabilities:()=>uPt,normalizePortablePngBackground:()=>cDe,omitPngOutputOptions:()=>hGt,parseArchitectureDiagram:()=>D6,parseExtensionId:()=>my,parseGitGraph:()=>AI,parseMindmap:()=>ME,parseRegisteredMermaid:()=>nLe,parseSemVer:()=>ZT,pngNapiRuntimeProvenance:()=>bGt,pngOutputOptionsJsonSchema:()=>sGt,pngRasterDimensions:()=>aDe,prepareSvgForPngRasterization:()=>xue,projectNativePngOutputPolicyInput:()=>fGt,projectPortablePngOutputOptions:()=>dGt,registerBackend:()=>AFt,registerExtension:()=>EN,registerStyle:()=>QFt,renderContractDigest:()=>UA,renderMermaidASCII:()=>JBt,renderMermaidASCIIWithReceipt:()=>TLe,renderMermaidPNGInBrowserWithReceipt:()=>kGt,renderMermaidSVG:()=>SGt,renderMermaidSVGAsync:()=>VFn,renderMermaidSVGWithReceipt:()=>EGt,resolveArchitectureIcon:()=>_2,resolveColors:()=>CI,resolveDiagramColors:()=>Qae,resolvePngOutputPolicy:()=>lDe,resolvePortablePngOutputPolicy:()=>vue,resolveSceneRoleTraits:()=>fPe,resolveStyleReference:()=>tU,resolveStyleStack:()=>Lce,resolveTerminalOutputPolicy:()=>qle,runBackendConformance:()=>XH,sceneRoleTraits:()=>ow,semVerSatisfies:()=>AW,serializeGitGraph:()=>_ae,serializeMarkerResource:()=>oO,serializeMarkerResources:()=>vm,serializeMindmap:()=>JF,sharedRenderOptionsJsonSchema:()=>hLe,snapshotResourceManifest:()=>ZLe,styleInputJsonSchema:()=>lBt,styleSpecJsonSchema:()=>ZH,svgIntrinsicDimensions:()=>sDe,terminalConnectorCapabilityClaims:()=>$oe,validatePrimitiveCapabilities:()=>aF,validateResourceManifest:()=>J7t,validateSceneDoc:()=>uOe,validateSerializableRenderOptions:()=>Ble,validateStyleSpec:()=>k6,verifyNoExternalRefs:()=>p6,verifyResourceBytes:()=>U7t,verifySvgDocumentEnvelope:()=>UH});var xW=2,aPt="2.0.0";var cPt=Object.freeze(["importance","value","category","status","progress","route","emphasis"]);var vN=Object.freeze(["svg","png","ascii","unicode","html","layout"]);var oPe=1,_xn=/^[a-z][a-z0-9.-]*:[a-z0-9][a-z0-9._/-]*$/,jxn=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/,Bxn=new Set(["required","preferred","optional"]);function koe(r){return _xn.test(r)}function ZT(r){if(typeof r!="string")return;let i=r.match(jxn);if(!i)return;let s=i[4];if(!s?.split(".").some(c=>/^\d+$/.test(c)&&c.length>1&&c.startsWith("0")))return{major:i[1],minor:i[2],patch:i[3],...s?{prerelease:s}:{}}}function iPe(r,i){return r.length!==i.length?r.length<i.length?-1:1:r===i?0:r<i?-1:1}function Gxn(r,i){return iPe(r.major,i.major)||iPe(r.minor,i.minor)||iPe(r.patch,i.patch)}function Soe(r){if(typeof r!="string")return!1;let i=r.trim();if(i==="*"||/^(0|[1-9]\d*)\.(?:x|\*)$/i.test(i))return!0;let s=i.match(/^(\^|~|>=)?(.+)$/),c=ZT(s?.[2]??"");return!s||!c?!1:!c.prerelease||s[1]===void 0}function AW(r,i){let s=ZT(r);if(!s||!Soe(i))return!1;let c=i.trim();if(c==="*")return s.prerelease===void 0;let u=c.match(/^(0|[1-9]\d*)\.(?:x|\*)$/i);if(u)return s.prerelease===void 0&&s.major===u[1];let f=c.match(/^(\^|~|>=)?(.+)$/),p=ZT(f?.[2]??"");if(!f||!p)return!1;let m=Gxn(s,p);if(s.prerelease||p.prerelease)return f[1]===void 0&&m===0&&s.prerelease===p.prerelease;switch(f[1]){case">=":return m>=0;case"~":return m>=0&&s.major===p.major&&s.minor===p.minor;case"^":return m<0?!1:p.major!=="0"?s.major===p.major:p.minor!=="0"?s.major==="0"&&s.minor===p.minor:s.major==="0"&&s.minor==="0"&&s.patch===p.patch;default:return m===0}}function sPe(r,i){if(!Array.isArray(r))throw new TypeError("Capability offers must be an array");if(!Array.isArray(i))throw new TypeError("Capability requirements must be an array");let s=new Map;for(let[p,m]of r.entries()){if(!m||typeof m!="object"||Array.isArray(m))throw new TypeError(`Capability offer at index ${p} must be an object`);if(typeof m.id!="string")throw new Error(`Invalid capability id "${String(m.id)}"`);if(!koe(m.id))throw new Error(`Invalid capability id "${m.id}"`);if(typeof m.version!="string")throw new Error(`Capability "${m.id}" has invalid semantic version "${String(m.version)}"`);if(!ZT(m.version))throw new Error(`Capability "${m.id}" has invalid semantic version "${m.version}"`);if(s.has(m.id))throw new Error(`Duplicate capability offer "${m.id}"`);s.set(m.id,m.version)}let c=new Set,u=i.map((p,m)=>{if(!p||typeof p!="object"||Array.isArray(p))throw new TypeError(`Capability requirement at index ${m} must be an object`);if(typeof p.id!="string")throw new Error(`Invalid capability id "${String(p.id)}"`);if(!koe(p.id))throw new Error(`Invalid capability id "${p.id}"`);if(!Bxn.has(p.level))throw new Error(`Capability "${p.id}" has invalid requirement level "${String(p.level)}"`);if(!Soe(p.range))throw new Error(`Capability "${p.id}" has invalid semantic-version range "${String(p.range)}"`);if(c.has(p.id))throw new Error(`Duplicate capability requirement "${p.id}"`);c.add(p.id);let y=s.get(p.id),x=y===void 0?"unsupported":AW(y,p.range)?"selected":"incompatible";return Object.freeze({id:p.id,range:p.range,level:p.level,status:x,...y!==void 0?{version:y}:{}})}),f=u.every(p=>p.level!=="required"||p.status==="selected");return Object.freeze({version:oPe,accepted:f,resolutions:Object.freeze(u)})}var aPe=Object.freeze([{id:"core:render-request",version:"1.0.0"},{id:"core:family-descriptor",version:"1.0.0"}].map(r=>Object.freeze(r)));function lPt(r,i,s,c){let u={id:`output:${r}`,version:"1.0.0"},f=vN.includes(r);return sPe([...aPe,...i,...!f||!c?[]:[u]],[{id:"core:render-request",range:"^1.0.0",level:"required"},...s,{id:`output:${r}`,range:"^1.0.0",level:"required"}])}function uPt(r,i){return lPt(r,i?[i]:[],i?[{id:i.id,range:i.version,level:"required"}]:[],!0)}function dPt(r,i){return lPt(r,i.offers,i.requirements,i.outputAvailable)}var fPt="0.3.1";function hPt(r,i){if(r===void 0||i===void 0||r.id!==i.id||r.kind!==i.kind||r.version!==i.version)return!1;let s=new Set([...Object.keys(r.compatibility),...Object.keys(i.compatibility)]);for(let c of s)if(r.compatibility[c]!==i.compatibility[c])return!1;return r.provenance.owner===i.provenance.owner&&r.provenance.source===i.provenance.source&&r.provenance.reference===i.provenance.reference}var cPe=Object.freeze({core:fPt,scene:aPt});function iF(r,i){if(!r.compatibility[i])throw new Error(`Extension "${r.id}" must declare an explicit compatible "${i}" range`)}function lPe(r){let i=[];for(let[s,c]of Object.entries(r.compatibility)){if(c===void 0)continue;let u=cPe[s];if(!Soe(c)){i.push(Object.freeze({contract:s,range:c,status:"invalid",diagnostic:`Compatibility requirement "${s}" has invalid semantic-version range "${c}".`}));continue}if(u!==void 0){let f=AW(u,c);i.push(Object.freeze({contract:s,range:c,status:f?"compatible":"incompatible",version:u,...f?{}:{diagnostic:`Compatibility requirement "${s}" range "${c}" does not include host version ${u}.`}}));continue}if(!koe(s)){i.push(Object.freeze({contract:s,range:c,status:"invalid",diagnostic:`Unknown compatibility requirement "${s}" must use a namespace.`}));continue}i.push(Object.freeze({contract:s,range:c,status:"deferred"}))}return Object.freeze({accepted:i.every(s=>s.status==="compatible"||s.status==="deferred"),resolutions:Object.freeze(i)})}var gPt=/^[a-z][a-z0-9-]*$/,mPt=/^[a-z0-9][a-z0-9._/-]*$/,pPt=new WeakSet,Eoe=new WeakMap;function zxn(r,i){let s=Eoe.get(r);if(s)throw s.reentrantAttempted=!0,new Error(`Extension registry mutation is forbidden while ${s.operation} is in progress`);let c={operation:i,reentrantAttempted:!1};return Eoe.set(r,c),c}function Wxn(r){if(r.reentrantAttempted)throw new Error(`Extension registry mutation is forbidden after a reentrant attempt during ${r.operation}`)}function Hxn(r,i){Eoe.get(r)===i&&Eoe.delete(r)}function SN(r,i){if(!gPt.test(r))throw new Error(`Invalid extension kind "${r}"`);if(!mPt.test(i))throw new Error(`Invalid ${r} extension local id "${i}"`);return`${r}:${i}`}function my(r){let i=r.indexOf(":");if(i<=0||i===r.length-1||r.indexOf(":",i+1)!==-1)return;let s=r.slice(0,i),c=r.slice(i+1);if(!(!gPt.test(s)||!mPt.test(c)))return{kind:s,localId:c}}function gm(r){let i=r.id,s=r.kind,c=r.version,u=r.compatibility,f=r.provenance,p=Object.freeze({...u??{}}),m=Object.freeze({...f}),y=my(i);if(!y||y.kind!==s)throw new Error(`Extension id "${i}" must use the "${s}:" namespace`);if(!ZT(c))throw new Error(`Extension "${i}" requires a semantic version (received "${c}")`);if(m.owner.trim().length===0)throw new Error(`Extension "${i}" requires a provenance owner`);if(m.source.trim().length===0)throw new Error(`Extension "${i}" requires a provenance source`);let x=Object.freeze({id:i,kind:s,version:c,compatibility:p,provenance:m}),v=lPe(x);if(!v.accepted)throw new Error(`Extension "${i}" has incompatible requirements: ${v.resolutions.filter(S=>S.status==="incompatible"||S.status==="invalid").map(S=>S.diagnostic).join("; ")}`);return pPt.add(x),x}var kN=class extends Error{constructor(s,c){super(`Cannot register ${s.kind} "${s.id}" for owner "${s.provenance.owner}": already registered by "${c.provenance.owner}" at version ${c.version}`);this.incoming=s;this.existing=c;this.name="ExtensionCollisionError"}incoming;existing;code="EXTENSION_ID_COLLISION"};function EN(r,i){let s=zxn(r,"extension registration");try{let c=Object.freeze({identity:i.identity,value:i.value});if(!pPt.has(c.identity))throw new TypeError("Extension registration identity must be created by createExtensionIdentity()");let u=c.identity.id,f=r.get(u);if(f)throw new kN(c.identity,f.identity);Wxn(s),r.set(u,c)}finally{Hxn(r,s)}}var gE=Object.freeze({fontFamily:{kind:"font",description:"Safe font family/stack for roles whose descriptor exposes family-specific typography."},fontSize:{kind:"number",minimum:1,maximum:256,expected:"between 1 and 256",description:"Font size in SVG user units."},fontWeight:{kind:"number",minimum:1,maximum:1e3,expected:"between 1 and 1000",description:"CSS numeric font weight."},letterSpacing:{kind:"number",minimum:-2,maximum:4,expected:"between -2 and 4",description:"Letter spacing in SVG user units."},textTransform:{kind:"enum",values:["uppercase","lowercase","capitalize"],description:"Text transformation."},textColor:{kind:"color",description:"Text paint."},paddingX:{kind:"number",minimum:0,maximum:256,expected:"between 0 and 256",description:"Horizontal role padding."},paddingY:{kind:"number",minimum:0,maximum:256,expected:"between 0 and 256",description:"Vertical role padding."},cornerRadius:{kind:"number",minimum:0,maximum:256,expected:"between 0 and 256",description:"Applicable corner radius."},lineWidth:{kind:"number",exclusiveMinimum:0,maximum:20,expected:"greater than 0 and at most 20",description:"Border or connector width."},bendRadius:{kind:"number",minimum:0,maximum:256,expected:"between 0 and 256",description:"Applicable connector bend radius."},fillColor:{kind:"color",description:"Surface fill paint."},borderColor:{kind:"color",description:"Border paint."},strokeColor:{kind:"color",description:"Connector stroke paint."},headerFillColor:{kind:"color",description:"Group header surface paint."},cue:{kind:"enum",values:["none","outline","double-line","pattern"],description:"Non-color semantic cue on roles whose family renderer exposes a cue projection."}}),uPe=Object.freeze(["fontSize","fontWeight","letterSpacing","textTransform","textColor","paddingX","paddingY","cornerRadius","lineWidth","fillColor","borderColor"]),bPt=Object.freeze(["fontSize","fontWeight","letterSpacing","textTransform","textColor","lineWidth","bendRadius","strokeColor"]),Uxn=Object.freeze([...uPe,"fontFamily","headerFillColor"]),Jxn=Object.freeze(["fontSize","fontWeight","letterSpacing","textTransform","textColor"]),qxn=Object.freeze(["fontFamily","fontSize","fontWeight","letterSpacing","textTransform","textColor","fillColor","borderColor","strokeColor","lineWidth","cue"]),Vxn=Object.freeze(["fillColor","borderColor","strokeColor","lineWidth","cue"]),Yxn=Object.freeze(["fillColor","borderColor","strokeColor","lineWidth","textColor"]),dPe=Object.freeze(["fillColor","borderColor","strokeColor","lineWidth"]),Xxn=Object.freeze(["borderColor","strokeColor","lineWidth"]),yPt=Object.freeze([...dPe,"cue"]);function Gb(r,i){return Object.freeze({properties:r,...i?{bindingFamilies:Object.freeze([...i])}:{}})}var mE=Object.freeze({node:Gb(uPe),edge:Gb(bPt),group:Gb(Uxn),"group-header":Gb(qxn,["journey"]),label:Gb(Jxn),actor:Gb(uPe,["sequence"]),relationship:Gb(bPt,["er"]),"pie-slice":Gb(Vxn,["pie","radar"]),legend:Gb(Yxn,["radar"]),bar:Gb(dPe,["xychart"]),series:Gb(Xxn,["xychart"]),point:Gb(dPe,["radar"]),task:Gb(yPt,["gantt"]),milestone:Gb(yPt,["gantt"])}),CN=Object.freeze(Object.keys(mE)),pE=Object.freeze(CN.filter(r=>"bindingFamilies"in mE[r])),oF=Object.freeze([...new Set(pE.flatMap(r=>mE[r].properties))]);var iw=["shape","connector","text","group","document"],MN=["shape"],Coe=["connector"],wPt=["text"],Kxn=["shape","text"],P2=["shape","group"],Qxn=["shape","text","group"],Zxn=["connector","group"],eAn=["document"],xPt=["text","group"];var tAn=["shape","text","document"],nAn=["document"];function cs(r,i,s,c={}){let u=mE[r];return Object.freeze({applicableKinds:i,styleFallback:s,styleConsumption:u?"exact":"fallback-only",styleExtras:Object.freeze([]),...u?{styleProperties:u.properties}:{},styleBindingFamilies:Object.freeze([...u?.bindingFamilies??[]]),domIdentity:!1,relation:!1,sketch:"none",textHalo:!1,...c})}var eI=Object.freeze({node:cs("node",P2,"node",{domIdentity:!0,sketch:"shape"}),edge:cs("edge",Coe,"edge",{domIdentity:!0,relation:!0,sketch:"connector"}),"edge-label":cs("edge-label",xPt,"label"),group:cs("group",P2,"group",{domIdentity:!0,sketch:"shape"}),"group-header":cs("group-header",iw,"group",{sketch:"shape",textHalo:!0}),label:cs("label",wPt,"label",{textHalo:!0}),actor:cs("actor",P2,"node",{domIdentity:!0,sketch:"shape"}),lifeline:cs("lifeline",Coe,"edge",{sketch:"connector"}),activation:cs("activation",MN,"node",{domIdentity:!0,sketch:"shape"}),message:cs("message",Zxn,"edge",{domIdentity:!0,relation:!0,sketch:"connector"}),block:cs("block",iw,"group",{domIdentity:!0,sketch:"shape"}),note:cs("note",P2,"group",{domIdentity:!0,sketch:"shape"}),"class-box":cs("class-box",P2,"node",{domIdentity:!0,sketch:"shape"}),member:cs("member",wPt,"label",{domIdentity:!0,textHalo:!0}),entity:cs("entity",P2,"node",{domIdentity:!0,sketch:"shape"}),attribute:cs("attribute",xPt,"label",{domIdentity:!0,textHalo:!0}),relationship:cs("relationship",Coe,"edge",{domIdentity:!0,relation:!0,sketch:"connector"}),cardinality:cs("cardinality",Kxn,"label",{domIdentity:!0,textHalo:!0}),"pie-slice":cs("pie-slice",MN,"node",{domIdentity:!0,sketch:"shape"}),legend:cs("legend",Qxn,"group",{textHalo:!0}),bar:cs("bar",MN,"node",{domIdentity:!0,sketch:"shape"}),series:cs("series",Coe,"edge",{domIdentity:!0,sketch:"connector"}),point:cs("point",MN,"node",{domIdentity:!0}),axis:cs("axis",iw,"label",{textHalo:!0}),grid:cs("grid",iw,"edge"),plate:cs("plate",MN,"node",{domIdentity:!0,sketch:"shape"}),section:cs("section",iw,"group",{domIdentity:!0,sketch:"shape",textHalo:!0}),task:cs("task",iw,"node",{domIdentity:!0,sketch:"shape"}),milestone:cs("milestone",MN,"node",{domIdentity:!0,sketch:"shape"}),"marker-line":cs("marker-line",iw,"edge"),rail:cs("rail",iw,"edge",{sketch:"connector"}),period:cs("period",P2,"group",{domIdentity:!0,sketch:"shape"}),event:cs("event",P2,"group",{domIdentity:!0,sketch:"shape"}),score:cs("score",iw,"node"),"actor-pill":cs("actor-pill",MN,"node",{sketch:"shape"}),service:cs("service",P2,"node",{domIdentity:!0,sketch:"shape"}),junction:cs("junction",P2,"node",{domIdentity:!0}),icon:cs("icon",tAn,"node"),title:cs("title",iw,"label",{domIdentity:!0}),defs:cs("defs",eAn,"label"),prelude:cs("prelude",nAn,"label"),chrome:cs("chrome",iw,"label")}),rAn=Object.freeze({applicableKinds:iw,styleFallback:"label",styleConsumption:"fallback-only",styleExtras:Object.freeze([]),styleBindingFamilies:Object.freeze([]),domIdentity:!0,relation:!1,sketch:"none",textHalo:!1}),tI=Object.freeze(Object.entries(eI).map(([r,i])=>Object.freeze({identity:gm({id:`role:${r}`,kind:"role",version:"1.0.0",compatibility:{core:"^0.3.0",scene:"^2.0.0"},provenance:{owner:"agentic-mermaid",source:"built-in",reference:"src/scene/roles.ts"}}),role:r,traits:i,style:(()=>{let s=i.styleFallback;return Object.freeze({fallbackRole:s,applicableProperties:i.styleProperties??Object.freeze([])})})()})));function fPe(r){let i=eI[r];return i?{traits:i,source:"builtin"}:{traits:rAn,source:"namespaced-safe"}}function ow(r){return fPe(r).traits}var bE=["document","text","shape","container","connector","marker","data-mark"],APt=Object.freeze(bE.map(r=>Object.freeze({primitive:r,operation:r==="document"?"serialize":"render"})));function vPt(r){return r==="document"?"serialize":"render"}var Moe=["measure","layout","bounds","hit-test","render","accessibility","terminal-project","serialize"],Toe=["geometry","paint","stroke","transform","identity","relation","labels","markers","resources","interaction","topology","subpaths","closedness","bend-radius","endpoints","direction","hit-geometry","stroke-opacity","stroke-cap","stroke-join","stroke-miter","dash-array","dash-offset","dash-restart","path-length","paint-order","non-scaling-stroke","marker-orientation","marker-overflow"],sF=Object.freeze([{primitive:"document",feature:"identity",operation:"serialize"},{primitive:"document",feature:"resources",operation:"serialize"},{primitive:"document",feature:"interaction",operation:"accessibility"},{primitive:"text",feature:"geometry",operation:"render"},{primitive:"text",feature:"paint",operation:"render"},{primitive:"text",feature:"labels",operation:"accessibility"},{primitive:"text",feature:"identity",operation:"serialize"},{primitive:"shape",feature:"geometry",operation:"render"},{primitive:"shape",feature:"paint",operation:"render"},{primitive:"shape",feature:"identity",operation:"serialize"},{primitive:"container",feature:"geometry",operation:"render"},{primitive:"container",feature:"paint",operation:"render"},{primitive:"container",feature:"identity",operation:"serialize"},{primitive:"connector",feature:"geometry",operation:"render"},{primitive:"connector",feature:"stroke",operation:"render"},{primitive:"connector",feature:"transform",operation:"render"},{primitive:"connector",feature:"topology",operation:"render"},{primitive:"connector",feature:"subpaths",operation:"render"},{primitive:"connector",feature:"closedness",operation:"render"},{primitive:"connector",feature:"bend-radius",operation:"render"},{primitive:"connector",feature:"stroke-opacity",operation:"render"},{primitive:"connector",feature:"stroke-cap",operation:"render"},{primitive:"connector",feature:"stroke-join",operation:"render"},{primitive:"connector",feature:"stroke-miter",operation:"render"},{primitive:"connector",feature:"dash-array",operation:"render"},{primitive:"connector",feature:"dash-offset",operation:"render"},{primitive:"connector",feature:"dash-restart",operation:"render"},{primitive:"connector",feature:"path-length",operation:"render"},{primitive:"connector",feature:"paint-order",operation:"render"},{primitive:"connector",feature:"non-scaling-stroke",operation:"render"},{primitive:"connector",feature:"marker-orientation",operation:"render"},{primitive:"connector",feature:"marker-overflow",operation:"render"},{primitive:"connector",feature:"endpoints",operation:"serialize"},{primitive:"connector",feature:"direction",operation:"serialize"},{primitive:"connector",feature:"labels",operation:"render"},{primitive:"connector",feature:"labels",operation:"accessibility"},{primitive:"connector",feature:"markers",operation:"render"},{primitive:"connector",feature:"relation",operation:"accessibility"},{primitive:"connector",feature:"interaction",operation:"hit-test"},{primitive:"connector",feature:"hit-geometry",operation:"hit-test"},{primitive:"connector",feature:"identity",operation:"serialize"},{primitive:"marker",feature:"geometry",operation:"render"},{primitive:"marker",feature:"paint",operation:"render"},{primitive:"marker",feature:"identity",operation:"serialize"},{primitive:"data-mark",feature:"geometry",operation:"render"},{primitive:"data-mark",feature:"paint",operation:"render"},{primitive:"data-mark",feature:"identity",operation:"serialize"}]),vW=["native","emulated","projected","lossy","unsupported"];function kPt(r){switch(r.kind){case"text":return["text"];case"shape":return r.channels?.value===void 0?["shape"]:["shape","data-mark"];case"group":return["container"];case"connector":return["connector"];case"document":return r.markerResources?.length?["document","marker"]:["document"]}}function Ioe(r,i,s="rough"){let c=i==="crisp"?"native":"emulated",u=i==="crisp"?"native":"projected",f="src/__tests__/backend-capability-conformance.test.ts",p=v=>i==="crisp"?{realization:"native"}:v==="geometry"||v==="topology"?{realization:"lossy",diagnostic:"The exact authored path remains as an invisible semantic carrier, but arbitrary curves are flattened to typed routed contours for the visible sketch."}:v==="closedness"?{realization:"lossy",diagnostic:"Sketch shafts are rebuilt from routed geometry and do not preserve explicit closed-subpath semantics."}:v==="bend-radius"?{realization:"lossy",diagnostic:"The authored rounded carrier remains exact, but the visible sketch follows its routed polyline and cannot preserve the continuous bend radius."}:v==="dash-restart"?{realization:"lossy",diagnostic:"A rough stroke may contain multiple generated stroke subpaths, so SVG dash restart boundaries can differ."}:v==="path-length"?{realization:"lossy",diagnostic:"One pathLength value spans generated stroke subpaths, so a sketch cannot retain one authored path calibration exactly."}:s==="hybrid"&&(v==="stroke-cap"||v==="stroke-join"||v==="stroke-miter"||v==="non-scaling-stroke")?{realization:"lossy",diagnostic:`Freehand ribbon geometry cannot preserve authored ${v} semantics; dashed Hybrid connectors fall back to the faithful rough projection.`}:v==="marker-orientation"||v==="marker-overflow"?{realization:"projected",diagnostic:"Marker geometry, orientation, and overflow remain in the typed marker projection instead of being sketched."}:{realization:"emulated"},m=["transform","topology","subpaths","closedness","bend-radius","stroke-opacity","stroke-cap","stroke-join","stroke-miter","dash-array","dash-offset","dash-restart","path-length","paint-order","non-scaling-stroke","marker-orientation","marker-overflow"],y=[{target:r,primitive:"document",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"document",feature:"resources",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"document",feature:"interaction",operation:"accessibility",realization:"native",evidence:f},{target:r,primitive:"text",feature:"geometry",operation:"render",realization:"native",evidence:f},{target:r,primitive:"text",feature:"paint",operation:"render",realization:"native",evidence:f},{target:r,primitive:"text",feature:"labels",operation:"accessibility",realization:"native",evidence:f},{target:r,primitive:"text",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"shape",feature:"geometry",operation:"render",realization:c,evidence:f},{target:r,primitive:"shape",feature:"paint",operation:"render",realization:c,evidence:f},{target:r,primitive:"shape",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"container",feature:"geometry",operation:"render",realization:"native",evidence:f},{target:r,primitive:"container",feature:"paint",operation:"render",realization:"native",evidence:f},{target:r,primitive:"container",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"geometry",operation:"render",...p("geometry"),evidence:f},{target:r,primitive:"connector",feature:"stroke",operation:"render",realization:c,evidence:f},...m.map(v=>({target:r,primitive:"connector",feature:v,operation:"render",...p(v),evidence:f})),{target:r,primitive:"connector",feature:"relation",operation:"accessibility",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"endpoints",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"direction",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"labels",operation:"render",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"labels",operation:"accessibility",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"markers",operation:"render",realization:u,evidence:f},{target:r,primitive:"connector",feature:"interaction",operation:"hit-test",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"hit-geometry",operation:"hit-test",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"marker",feature:"geometry",operation:"render",realization:u,evidence:f},{target:r,primitive:"marker",feature:"paint",operation:"render",realization:u,evidence:f},{target:r,primitive:"marker",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"data-mark",feature:"geometry",operation:"render",realization:c,evidence:f},{target:r,primitive:"data-mark",feature:"paint",operation:"render",realization:c,evidence:f},{target:r,primitive:"data-mark",feature:"identity",operation:"serialize",realization:"native",evidence:f}],x=aF(y);if(!x.valid)throw new Error(`Invalid graphical backend capability contract: ${x.diagnostics.join("; ")}`);return Object.freeze(y.map(v=>Object.freeze({...v})))}function $oe(r="terminal:projection"){let i="src/__tests__/terminal-projection-security.test.ts",s=new Set(["geometry","paint","stroke","transform","bend-radius","stroke-opacity","stroke-cap","stroke-join","stroke-miter","dash-array","dash-offset","dash-restart","path-length","paint-order","non-scaling-stroke","marker-orientation","marker-overflow"]),u=["identity","relation","endpoints","direction","labels","markers","geometry","topology","subpaths","closedness","bend-radius","interaction","hit-geometry","stroke","transform","stroke-opacity","stroke-cap","stroke-join","stroke-miter","dash-array","dash-offset","dash-restart","path-length","paint-order","non-scaling-stroke","marker-orientation","marker-overflow"].map(p=>({target:r,primitive:"connector",feature:p,operation:"terminal-project",realization:s.has(p)?"lossy":"projected",evidence:i,...s.has(p)?{diagnostic:`Terminal cells cannot render continuous connector ${p}; the exact typed value remains in terminal projection evidence.`}:{}})),f=aF(u);if(!f.valid)throw new Error(`Invalid terminal connector capability contract: ${f.diagnostics.join("; ")}`);return Object.freeze(u.map(p=>Object.freeze({...p})))}function hPe(r){return[r.target,r.primitive,r.feature,r.operation].join("\0")}function aF(r){let i=[],s=new Set;for(let c=0;c<r.length;c++){let u=r[c],f=hPe(u);s.has(f)&&i.push(`claim[${c}]: duplicate target/primitive/feature/operation`),s.add(f),u.target.trim()===""&&i.push(`claim[${c}]: target must not be empty`),u.primitive.trim()===""&&i.push(`claim[${c}]: primitive must not be empty`),u.feature.trim()===""&&i.push(`claim[${c}]: feature must not be empty`),u.operation.trim()===""&&i.push(`claim[${c}]: operation must not be empty`),vW.includes(u.realization)||i.push(`claim[${c}]: invalid realization ${String(u.realization)}`),(u.realization==="lossy"||u.realization==="unsupported")&&!u.diagnostic?.trim()&&i.push(`claim[${c}]: ${u.realization} realization requires a diagnostic`)}return{valid:i.length===0,diagnostics:i}}function Roe(r){let i=[],s=r.split(/\r?\n/),c=0;for(let u of s){c++;let f=u.trim();if(!f||f.startsWith("%%"))continue;for(let m of f.matchAll(/"([^"\\]*(?:\\.[^"\\]*)*)"|'([^'\\]*(?:\\.[^'\\]*)*)'/g)){let y=m[1]??m[2]??"";y&&i.push({text:y,target:`line${c}`})}for(let m of f.matchAll(/[\[\(\{]+([^\[\]\(\)\{\}]+?)[\]\)\}]+/g)){let y=(m[1]??"").trim();y&&!y.match(/^[A-Za-z_][\w-]*$/)&&i.push({text:y,target:`line${c}`})}let p=f.indexOf(":");if(p>=0&&p<f.length-1){let m=f.slice(p+1).trim();m&&!m.match(/^[\d.]+$/)&&m.length>=2&&i.push({text:m,target:`line${c}`})}}return i}var TN=Object.freeze({contrast:Object.freeze({properties:Object.freeze({role:Object.freeze({kind:"role"}),minimum:Object.freeze({kind:"number",minimum:1,maximum:21})}),recovery:"Choose an authored text/surface pair that meets the requested ratio, or remove the rule; the renderer will not repaint it."}),"accent-area":Object.freeze({properties:Object.freeze({maxFraction:Object.freeze({kind:"number",minimum:0,maximum:1,required:!0})}),recovery:"Reduce authored accent-filled area or raise the declared maximum; the renderer will not rewrite fills."}),"mono-role":Object.freeze({properties:Object.freeze({role:Object.freeze({kind:"role",required:!0})}),recovery:"Use measurable monochrome paint for the named role or remove the rule; the renderer will not rewrite paint."})}),nI=Object.freeze(Object.keys(TN));function Poe(r){return TN[r].properties}function SPt(r){return Object.freeze(["kind","action",...Object.keys(TN[r].properties)])}function EPt(r){let i=Poe(r);return Object.freeze(["kind","action",...Object.entries(i).filter(([,s])=>s.required===!0).map(([s])=>s)])}var yE=Object.freeze({warn:Object.freeze({code:"BRAND_CONSTRAINT_WARNING",severity:"warning",tier:"lint"}),error:Object.freeze({code:"BRAND_CONSTRAINT_ERROR",severity:"error",tier:"lint"})});function gn(r){return{ok:!0,value:r}}function Ae(r){return{ok:!1,error:r}}function kW(r){if(!Number.isFinite(r))throw new RangeError(`expected a finite number, got ${String(r)}`);return r}var Ifr={EMPTY_DIAGRAM:"error",UNRESOLVABLE_SCHEDULE:"error",RENDER_FAILED:"error",[yE.error.code]:yE.error.severity,EDGE_MISANCHORED:"error",OFF_CANVAS:"error",GROUP_BREACH:"error",UNKNOWN_SHAPE:"warning",LABEL_OVERFLOW:"warning",NODE_OVERLAP:"warning",ROUTE_SELF_CROSS:"warning",ROUTE_HITCH:"warning",ROUTE_UNEXPLAINED_BEND:"warning",ROUTE_LABEL_ON_SHARED_TRUNK:"warning",ROUTE_SELF_LOOP_OCCUPANCY:"warning",ROUTE_CONTAINER_MISANCHOR:"warning",ROUTE_SHAPE_MISANCHOR:"warning",ROUTE_STALE_AFTER_NODE_MOVE:"warning",DUPLICATE_EDGE:"warning",UNREACHABLE_NODE:"warning",DECISION_BRANCH_UNLABELED:"warning",COMMENT_DROPPED:"warning",UNSUPPORTED_SYNTAX:"warning",CONTENT_DROPPED_ON_ROUNDTRIP:"warning",INEFFECTIVE_CONFIG:"warning",LOW_CONTRAST:"warning",[yE.warn.code]:yE.warn.severity},$fr={EMPTY_DIAGRAM:"structural",UNRESOLVABLE_SCHEDULE:"structural",RENDER_FAILED:"structural",[yE.error.code]:yE.error.tier,EDGE_MISANCHORED:"structural",OFF_CANVAS:"structural",GROUP_BREACH:"structural",UNKNOWN_SHAPE:"structural",LABEL_OVERFLOW:"structural",NODE_OVERLAP:"geometric",ROUTE_SELF_CROSS:"geometric",ROUTE_HITCH:"geometric",ROUTE_UNEXPLAINED_BEND:"geometric",ROUTE_LABEL_ON_SHARED_TRUNK:"geometric",ROUTE_SELF_LOOP_OCCUPANCY:"geometric",ROUTE_CONTAINER_MISANCHOR:"geometric",ROUTE_SHAPE_MISANCHOR:"geometric",ROUTE_STALE_AFTER_NODE_MOVE:"geometric",DUPLICATE_EDGE:"lint",UNREACHABLE_NODE:"lint",DECISION_BRANCH_UNLABELED:"lint",COMMENT_DROPPED:"lint",UNSUPPORTED_SYNTAX:"lint",CONTENT_DROPPED_ON_ROUNDTRIP:"lint",INEFFECTIVE_CONFIG:"lint",LOW_CONTRAST:"lint",[yE.warn.code]:yE.warn.tier},Noe=40;var iAn={flowchart:["add_node","remove_node","rename_node","set_label","add_edge","remove_edge","set_shape","set_direction","add_subgraph","remove_subgraph","move_node","define_class","set_node_class","set_node_style"],state:["add_state","remove_state","rename_state","set_state_label","add_transition","remove_transition","set_transition_label","make_composite","set_direction","move_state","dissolve_composite","add_note","remove_note","set_note_text","define_class","set_state_class","set_state_style","set_transition_style"],sequence:["add_participant","remove_participant","add_message","remove_message","set_message_text","move_message","set_participant_label","add_fragment","remove_fragment","set_fragment_label","add_fragment_branch","set_fragment_branch_label","add_fragment_message","remove_fragment_message","set_fragment_message_text"],timeline:["set_title","add_section","remove_section","set_section_label","add_period","remove_period","set_period_label","add_event","remove_event","set_event_text","move_period","move_event","move_section","set_accessibility_title","set_accessibility_description"],class:["set_title","add_class","remove_class","rename_class","set_class_generic","add_member","remove_member","add_relation","remove_relation","add_note","remove_note","set_class_namespace","define_class","set_css_class","set_class_style"],er:["add_entity","remove_entity","rename_entity","set_entity_label","add_attribute","remove_attribute","add_relation","remove_relation","set_direction","define_class","set_entity_class","set_entity_style"],journey:["set_title","add_section","remove_section","set_section_label","add_task","remove_task","set_task_text","set_task_score","set_task_actors","rename_actor","move_task","move_section","set_accessibility_title","set_accessibility_description"],architecture:["set_title","set_accessibility_title","set_accessibility_description","add_service","remove_service","rename_service","set_service_label","set_service_icon","move_service","add_junction","remove_junction","rename_junction","move_junction","add_group","set_group_label","remove_group","add_edge","update_edge","remove_edge"],xychart:["set_title","set_x_axis","set_y_axis","add_series","remove_series","set_series_values","set_series_name","reorder_series","set_orientation","set_data_point"],pie:["set_title","set_show_data","add_slice","remove_slice","rename_slice","set_slice_value","reorder_slice"],quadrant:["set_title","set_axis_labels","set_quadrant_label","add_point","remove_point","move_point","rename_point"],gantt:["set_title","add_section","rename_section","remove_section","add_task","remove_task","rename_task","set_task_status","set_task_dates","set_task_flags","set_task_id","move_task","move_section"],mindmap:["add_node","remove_node","rename_node","set_label","move_node","set_shape","set_icon","set_node_class","set_accessibility_title","set_accessibility_description"],gitgraph:["append_commit","create_branch","checkout_branch","merge_branch","cherry_pick","set_commit_message","set_commit_type","set_commit_tags","rename_branch","set_accessibility_title","set_accessibility_description"],radar:["set_title","add_axis","remove_axis","rename_axis","set_axis_label","reorder_axis","add_curve","remove_curve","set_curve_values","set_curve_value","set_curve_label","rename_curve","reorder_curve","set_config"]};function CPt(r){let i=iAn[r];return i?i.join(", "):"(none \u2014 this family has no structured ops)"}function Sc(r,i){if(Array.isArray(i))return`Expected a single ${r} op, got an array of ${i.length}. Ops apply one at a time: call mutate() once per op, or pass the whole list to a batch entrypoint \u2014 applyOps({ source, family, ops }) to edit source, or buildMermaid(kind, ops) to author \u2014 valid ${r} ops: ${CPt(r)}`;let s=i?.kind,c=typeof s=="string"?`"${s}"`:JSON.stringify(i);return`Unknown ${r} op ${c} \u2014 valid ops: ${CPt(r)}`}var gPe,oAn=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),mPe=(gPe=String.fromCodePoint)!==null&&gPe!==void 0?gPe:(r=>{let i="";return r>65535&&(r-=65536,i+=String.fromCharCode(r>>>10&1023|55296),r=56320|r&1023),i+=String.fromCharCode(r),i});function pPe(r){var i;return r>=55296&&r<=57343||r>1114111?65533:(i=oAn.get(r))!==null&&i!==void 0?i:r}function bPe(r){let i=typeof atob=="function"?atob(r):typeof Buffer.from=="function"?Buffer.from(r,"base64").toString("binary"):new Buffer(r,"base64").toString("binary"),s=i.length&-2,c=new Uint16Array(s/2);for(let u=0,f=0;u<s;u+=2){let p=i.charCodeAt(u),m=i.charCodeAt(u+1);c[f++]=p|m<<8}return c}var yPe=bPe("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg");var mm;(function(r){r[r.VALUE_LENGTH=49152]="VALUE_LENGTH",r[r.FLAG13=8192]="FLAG13",r[r.BRANCH_LENGTH=8064]="BRANCH_LENGTH",r[r.JUMP_TABLE=127]="JUMP_TABLE"})(mm||(mm={}));var Uu;(function(r){r[r.NUM=35]="NUM",r[r.SEMI=59]="SEMI",r[r.EQUALS=61]="EQUALS",r[r.ZERO=48]="ZERO",r[r.NINE=57]="NINE",r[r.LOWER_A=97]="LOWER_A",r[r.LOWER_F=102]="LOWER_F",r[r.LOWER_X=120]="LOWER_X",r[r.LOWER_Z=122]="LOWER_Z",r[r.UPPER_A=65]="UPPER_A",r[r.UPPER_F=70]="UPPER_F",r[r.UPPER_Z=90]="UPPER_Z"})(Uu||(Uu={}));var MPt=32;function wPe(r){return r>=Uu.ZERO&&r<=Uu.NINE}function aAn(r){return r>=Uu.UPPER_A&&r<=Uu.UPPER_F||r>=Uu.LOWER_A&&r<=Uu.LOWER_F}function cAn(r){return r>=Uu.UPPER_A&&r<=Uu.UPPER_Z||r>=Uu.LOWER_A&&r<=Uu.LOWER_Z||wPe(r)}function lAn(r){return r===Uu.EQUALS||cAn(r)}var Dh;(function(r){r[r.EntityStart=0]="EntityStart",r[r.NumericStart=1]="NumericStart",r[r.NumericDecimal=2]="NumericDecimal",r[r.NumericHex=3]="NumericHex",r[r.NamedEntity=4]="NamedEntity"})(Dh||(Dh={}));var N2;(function(r){r[r.Legacy=0]="Legacy",r[r.Strict=1]="Strict",r[r.Attribute=2]="Attribute"})(N2||(N2={}));var Ooe=class{constructor(i,s,c){this.decodeTree=i,this.emitCodePoint=s,this.errors=c,this.state=Dh.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=N2.Strict,this.runConsumed=0}startEntity(i){this.decodeMode=i,this.state=Dh.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(i,s){switch(this.state){case Dh.EntityStart:return i.charCodeAt(s)===Uu.NUM?(this.state=Dh.NumericStart,this.consumed+=1,this.stateNumericStart(i,s+1)):(this.state=Dh.NamedEntity,this.stateNamedEntity(i,s));case Dh.NumericStart:return this.stateNumericStart(i,s);case Dh.NumericDecimal:return this.stateNumericDecimal(i,s);case Dh.NumericHex:return this.stateNumericHex(i,s);case Dh.NamedEntity:return this.stateNamedEntity(i,s)}}stateNumericStart(i,s){return s>=i.length?-1:(i.charCodeAt(s)|MPt)===Uu.LOWER_X?(this.state=Dh.NumericHex,this.consumed+=1,this.stateNumericHex(i,s+1)):(this.state=Dh.NumericDecimal,this.stateNumericDecimal(i,s))}stateNumericHex(i,s){for(;s<i.length;){let c=i.charCodeAt(s);if(wPe(c)||aAn(c)){let u=c<=Uu.NINE?c-Uu.ZERO:(c|MPt)-Uu.LOWER_A+10;this.result=this.result*16+u,this.consumed++,s++}else return this.emitNumericEntity(c,3)}return-1}stateNumericDecimal(i,s){for(;s<i.length;){let c=i.charCodeAt(s);if(wPe(c))this.result=this.result*10+(c-Uu.ZERO),this.consumed++,s++;else return this.emitNumericEntity(c,2)}return-1}emitNumericEntity(i,s){var c;if(this.consumed<=s)return(c=this.errors)===null||c===void 0||c.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(i===Uu.SEMI)this.consumed+=1;else if(this.decodeMode===N2.Strict)return 0;return this.emitCodePoint(pPe(this.result),this.consumed),this.errors&&(i!==Uu.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(i,s){let{decodeTree:c}=this,u=c[this.treeIndex],f=(u&mm.VALUE_LENGTH)>>14;for(;s<i.length;){if(f===0&&(u&mm.FLAG13)!==0){let m=(u&mm.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let y=u&mm.JUMP_TABLE;if(i.charCodeAt(s)!==y)return this.result===0?0:this.emitNotTerminatedNamedEntity();s++,this.excess++,this.runConsumed++}for(;this.runConsumed<m;){if(s>=i.length)return-1;let y=this.runConsumed-1,x=c[this.treeIndex+1+(y>>1)],v=y%2===0?x&255:x>>8&255;if(i.charCodeAt(s)!==v)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();s++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(m>>1),u=c[this.treeIndex],f=(u&mm.VALUE_LENGTH)>>14}if(s>=i.length)break;let p=i.charCodeAt(s);if(p===Uu.SEMI&&f!==0&&(u&mm.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,f,this.consumed+this.excess);if(this.treeIndex=dAn(c,u,this.treeIndex+Math.max(1,f),p),this.treeIndex<0)return this.result===0||this.decodeMode===N2.Attribute&&(f===0||lAn(p))?0:this.emitNotTerminatedNamedEntity();if(u=c[this.treeIndex],f=(u&mm.VALUE_LENGTH)>>14,f!==0){if(p===Uu.SEMI)return this.emitNamedEntityData(this.treeIndex,f,this.consumed+this.excess);this.decodeMode!==N2.Strict&&(u&mm.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}s++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var i;let{result:s,decodeTree:c}=this,u=(c[s]&mm.VALUE_LENGTH)>>14;return this.emitNamedEntityData(s,u,this.consumed),(i=this.errors)===null||i===void 0||i.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(i,s,c){let{decodeTree:u}=this;return this.emitCodePoint(s===1?u[i]&~(mm.VALUE_LENGTH|mm.FLAG13):u[i+1],c),s===3&&this.emitCodePoint(u[i+2],c),c}end(){var i;switch(this.state){case Dh.NamedEntity:return this.result!==0&&(this.decodeMode!==N2.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Dh.NumericDecimal:return this.emitNumericEntity(0,2);case Dh.NumericHex:return this.emitNumericEntity(0,3);case Dh.NumericStart:return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Dh.EntityStart:return 0}}};function uAn(r){let i="",s=new Ooe(r,c=>i+=mPe(c));return function(u,f){let p=0,m=0;for(;(m=u.indexOf("&",m))>=0;){i+=u.slice(p,m),s.startEntity(f);let x=s.write(u,m+1);if(x<0){p=m+s.end();break}p=m+x,m=x===0?p+1:p}let y=i+u.slice(p);return i="",y}}function dAn(r,i,s,c){let u=(i&mm.BRANCH_LENGTH)>>7,f=i&mm.JUMP_TABLE;if(u===0)return f!==0&&c===f?s:-1;if(f){let x=c-f;return x<0||x>=u?-1:r[s+x]-1}let p=u+1>>1,m=0,y=u-1;for(;m<=y;){let x=m+y>>>1,v=x>>1,E=r[s+v]>>(x&1)*8&255;if(E<c)m=x+1;else if(E>c)y=x-1;else return r[s+p+x]}return-1}var fAn=uAn(yPe);function py(r){return fAn(r,N2.Strict)}var hAn=String.prototype.codePointAt==null?(r,i)=>(r.charCodeAt(i)&64512)===55296?(r.charCodeAt(i)-55296)*1024+r.charCodeAt(i+1)-56320+65536:r.charCodeAt(i):(r,i)=>r.codePointAt(i);var TPt;(function(r){r[r.XML=0]="XML",r[r.HTML=1]="HTML"})(TPt||(TPt={}));var IPt;(function(r){r[r.UTF8=0]="UTF8",r[r.ASCII=1]="ASCII",r[r.Extensive=2]="Extensive",r[r.Attribute=3]="Attribute",r[r.Text=4]="Text"})(IPt||(IPt={}));var wAn=[[11904,12031],[12032,12255],[12288,12351],[12352,12447],[12448,12543],[12544,12591],[12688,12799],[12800,13311],[13312,19903],[19968,40959],[63744,64255],[131072,196607]],xAn=[[4352,4447],[12592,12687],[44032,55215]],AAn=[[9001,9002],[65040,65049],[65072,65135],[65280,65376],[65504,65510]],vAn=[[127744,129791]],RPt=[127995,127999],kAn=[[768,879],[6832,6911],[7616,7679],[8400,8447],[65056,65071]],SAn=new Set([8203,8204,8205,65279]),Loe=65038,Doe=65039,PPt=8205;function SW(r,i){for(let[s,c]of i)if(r>=s&&r<=c)return!0;return!1}function Foe(r){return SW(r,wAn)||SW(r,xAn)||SW(r,AAn)||SW(r,vAn)}function _oe(r){return SW(r,kAn)||SAn.has(r)}function NPt(r){return r>=RPt[0]&&r<=RPt[1]}var OPt=/<(\/)?(?:(b|strong)|(i|em)|(u)|(s|del))\s*>/gi,rI=/<\/?(?:b|strong|i|em|u|s|del)\s*>/i;function IN(r){let i=[],s=!1,c=!1,u=!1,f=!1,p=0;OPt.lastIndex=0;let m;for(;(m=OPt.exec(r))!==null;){m.index>p&&i.push({text:r.slice(p,m.index),bold:s,italic:c,underline:u,strikethrough:f}),p=m.index+m[0].length;let y=!!m[1];m[2]?s=!y:m[3]?c=!y:m[4]?u=!y:m[5]&&(f=!y)}return p<r.length&&i.push({text:r.slice(p),bold:s,italic:c,underline:u,strikethrough:f}),i}function vPe(r){return r.split(`
24
+ ... Falling back to non-web worker version.`);if(!V.workerFactory){var X=c("./elk-worker.min.js"),ee=X.Worker;V.workerFactory=function(oe){return new ee(oe)}}return E(this,W,[V])}return F(W,z),y(W)})(_);Object.defineProperty(u.exports,"__esModule",{value:!0}),u.exports=j,j.default=j},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(c,u,f){"use strict";var p=typeof Worker<"u"?Worker:void 0;u.exports=p},{}]},{},[3])(3)})});var YFn={};rPe(YFn,{ARCHITECTURE_ICON_LIMITS:()=>mF,AsciiWidthError:()=>FU,BACKEND_CONFORMANCE_CHECK_IDS:()=>gFt,BACKEND_CONFORMANCE_FIXTURE_ID:()=>Tce,BACKEND_CONFORMANCE_VERSION:()=>dOe,BINDABLE_ROLE_STYLE_PROPERTIES:()=>oF,BINDABLE_SCENE_ROLES:()=>pE,BRAND_CONSTRAINT_DESCRIPTORS:()=>TN,BRAND_CONSTRAINT_KINDS:()=>nI,BROWSER_CANVAS_RUNTIME:()=>kue,BUILTIN_SCENE_ROLE_TRAITS:()=>eI,CAPABILITY_NEGOTIATION_VERSION:()=>oPe,CORE_CAPABILITY_OFFERS:()=>aPe,CORE_SCENE_FEATURES:()=>Toe,CORE_SCENE_OPERATIONS:()=>Moe,CORE_SCENE_PRIMITIVES:()=>bE,DEFAULTS:()=>RE,DefaultBackend:()=>jh,ESSENTIAL_SCENE_PRIMITIVE_CAPABILITIES:()=>sF,ESSENTIAL_SCENE_PRIMITIVE_OPERATIONS:()=>APt,EXACT_ROLE_STYLE_CONTRACT:()=>mE,EXACT_STYLE_SCENE_ROLES:()=>CN,EXTERNAL_SCENE_API_VERSION:()=>KLe,ExtensionCollisionError:()=>kN,GitGraphDuplicateCommitError:()=>kH,GitGraphParseError:()=>$l,HOSTED_FONT_RESOURCES:()=>Z6,KNOWN_EXTENSION_CONTRACT_VERSIONS:()=>cPe,MAX_HOSTED_PNG_BYTES:()=>nGt,MAX_HOSTED_PNG_PIXELS:()=>bue,MAX_PNG_FONT_DIRECTORIES:()=>VU,MAX_PNG_FONT_DIRECTORY_LENGTH:()=>YU,MAX_PNG_PIXELS:()=>e_,MAX_PNG_RASTER_DIMENSION:()=>l$,MermaidFamilyDetectionError:()=>DN,MindmapDuplicateIdError:()=>vH,MindmapParseError:()=>wm,NATIVE_PNG_HOST_ONLY_OPTION_FIELDS:()=>oGt,NATIVE_PNG_OUTPUT_POLICY_FIELDS:()=>KU,OUTPUT_COLOR_PROFILE:()=>JU,OUTPUT_SECURITY_POLICY_VERSION:()=>pce,PNG_DEFAULT_FONT_FAMILY:()=>oDe,PNG_DEFAULT_SCALE:()=>QE,PNG_FONT_SOURCES:()=>mGt,PNG_NAPI_RUNTIME:()=>uDe,PNG_OUTPUT_OPTION_FIELDS:()=>t_,PNG_OUTPUT_OPTION_FIELD_DESCRIPTORS:()=>DO,PNG_OUTPUT_POLICY_VERSION:()=>YI,PNG_WASM_RUNTIME:()=>pGt,PORTABLE_PNG_OUTPUT_OPTION_FIELDS:()=>XU,PRIMITIVE_REALIZATIONS:()=>vW,ParsedDiagramFamilyMismatchError:()=>OU,RENDER_CONTRACT_VERSION:()=>J6,RENDER_OUTPUTS:()=>vN,RENDER_OUTPUT_DESCRIPTORS:()=>dLe,RESOURCE_MANIFEST:()=>eDe,RESOURCE_MANIFEST_VERSION:()=>LO,ROLE_STYLE_PROPERTY_DESCRIPTORS:()=>gE,RenderCapabilityError:()=>qE,SCENE_CONTRACT_VERSION:()=>xW,SCENE_ROLE_DESCRIPTORS:()=>tI,SCENE_VALIDATION_LIMITS:()=>Cc,SCENE_VALIDATION_VERSION:()=>cFt,SEMANTIC_BINDING_CHANNELS:()=>v6,SHARED_RENDER_OPTION_FIELDS:()=>lk,STYLE_COLOR_TOKEN_DESCRIPTORS:()=>A6,STYLE_SPEC_FIELD_DESCRIPTORS:()=>fO,STYLE_SPEC_FORMAT_VERSION:()=>LI,SceneValidationError:()=>cO,TERMINAL_BOUNDED_PADDING_X:()=>ELe,TERMINAL_DEFAULT_BOX_BORDER_PADDING:()=>MLe,TERMINAL_DEFAULT_PADDING_X:()=>SLe,TERMINAL_DEFAULT_PADDING_Y:()=>CLe,TERMINAL_OUTPUT_POLICY_VERSION:()=>WE,TERMINAL_STYLE_VERSION:()=>vLe,TEXT_MEASUREMENT_CONTRACT:()=>kPe,TerminalOutputPolicyError:()=>Dp,applyOutputSecurityPolicy:()=>RI,applyPngColorProfile:()=>pue,architectureIconManifest:()=>G3t,architectureToMermaidGraph:()=>lle,assertHostedPngRasterBudget:()=>aGt,assertPngRasterBudget:()=>Aue,assertRenderableMarker:()=>iO,assertValidSceneDoc:()=>PI,buildExternalScene:()=>G7t,canonicalExtensionId:()=>SN,classifyMermaidFamilyFromFirstLine:()=>$se,connectorHitDistance:()=>yce,createExtensionIdentity:()=>gm,createMermaidBrowserPNGRenderer:()=>AGt,createMermaidRenderer:()=>qFn,essentialScenePrimitiveOperation:()=>vPt,evaluateExtensionCompatibility:()=>lPe,fromShikiTheme:()=>PDt,getBackend:()=>kFt,getStyle:()=>e6t,hitTestConnector:()=>ky,hitTestSceneConnectors:()=>X5t,hostedFontResource:()=>q7t,inferBackend:()=>DE,inlineResolvedColors:()=>Kae,inspectPngColorProfile:()=>mue,inspectPngDimensions:()=>gue,knownBackendDescriptors:()=>yOe,knownStyleDescriptors:()=>ROe,knownStyles:()=>$Oe,measureText:()=>Boe,measureTextWidth:()=>Qo,negotiateCapabilities:()=>sPe,negotiateRenderCapabilities:()=>uPt,normalizePortablePngBackground:()=>cDe,omitPngOutputOptions:()=>hGt,parseArchitectureDiagram:()=>D6,parseExtensionId:()=>my,parseGitGraph:()=>AI,parseMindmap:()=>ME,parseRegisteredMermaid:()=>nLe,parseSemVer:()=>ZT,pngNapiRuntimeProvenance:()=>bGt,pngOutputOptionsJsonSchema:()=>sGt,pngRasterDimensions:()=>aDe,prepareSvgForPngRasterization:()=>xue,projectNativePngOutputPolicyInput:()=>fGt,projectPortablePngOutputOptions:()=>dGt,registerBackend:()=>AFt,registerExtension:()=>EN,registerStyle:()=>QFt,renderContractDigest:()=>UA,renderMermaidASCII:()=>JBt,renderMermaidASCIIWithReceipt:()=>TLe,renderMermaidPNGInBrowserWithReceipt:()=>kGt,renderMermaidSVG:()=>SGt,renderMermaidSVGAsync:()=>VFn,renderMermaidSVGWithReceipt:()=>EGt,resolveArchitectureIcon:()=>_2,resolveColors:()=>CI,resolveDiagramColors:()=>Qae,resolvePngOutputPolicy:()=>lDe,resolvePortablePngOutputPolicy:()=>vue,resolveSceneRoleTraits:()=>fPe,resolveStyleReference:()=>tU,resolveStyleStack:()=>Lce,resolveTerminalOutputPolicy:()=>qle,runBackendConformance:()=>XH,sceneRoleTraits:()=>ow,semVerSatisfies:()=>AW,serializeGitGraph:()=>_ae,serializeMarkerResource:()=>oO,serializeMarkerResources:()=>vm,serializeMindmap:()=>JF,sharedRenderOptionsJsonSchema:()=>hLe,snapshotResourceManifest:()=>ZLe,styleInputJsonSchema:()=>lBt,styleSpecJsonSchema:()=>ZH,svgIntrinsicDimensions:()=>sDe,terminalConnectorCapabilityClaims:()=>$oe,validatePrimitiveCapabilities:()=>aF,validateResourceManifest:()=>J7t,validateSceneDoc:()=>uOe,validateSerializableRenderOptions:()=>Ble,validateStyleSpec:()=>k6,verifyNoExternalRefs:()=>p6,verifyResourceBytes:()=>U7t,verifySvgDocumentEnvelope:()=>UH});var xW=2,aPt="2.0.0";var cPt=Object.freeze(["importance","value","category","status","progress","route","emphasis"]);var vN=Object.freeze(["svg","png","ascii","unicode","html","layout"]);var oPe=1,_xn=/^[a-z][a-z0-9.-]*:[a-z0-9][a-z0-9._/-]*$/,jxn=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/,Bxn=new Set(["required","preferred","optional"]);function koe(r){return _xn.test(r)}function ZT(r){if(typeof r!="string")return;let i=r.match(jxn);if(!i)return;let s=i[4];if(!s?.split(".").some(c=>/^\d+$/.test(c)&&c.length>1&&c.startsWith("0")))return{major:i[1],minor:i[2],patch:i[3],...s?{prerelease:s}:{}}}function iPe(r,i){return r.length!==i.length?r.length<i.length?-1:1:r===i?0:r<i?-1:1}function Gxn(r,i){return iPe(r.major,i.major)||iPe(r.minor,i.minor)||iPe(r.patch,i.patch)}function Soe(r){if(typeof r!="string")return!1;let i=r.trim();if(i==="*"||/^(0|[1-9]\d*)\.(?:x|\*)$/i.test(i))return!0;let s=i.match(/^(\^|~|>=)?(.+)$/),c=ZT(s?.[2]??"");return!s||!c?!1:!c.prerelease||s[1]===void 0}function AW(r,i){let s=ZT(r);if(!s||!Soe(i))return!1;let c=i.trim();if(c==="*")return s.prerelease===void 0;let u=c.match(/^(0|[1-9]\d*)\.(?:x|\*)$/i);if(u)return s.prerelease===void 0&&s.major===u[1];let f=c.match(/^(\^|~|>=)?(.+)$/),p=ZT(f?.[2]??"");if(!f||!p)return!1;let m=Gxn(s,p);if(s.prerelease||p.prerelease)return f[1]===void 0&&m===0&&s.prerelease===p.prerelease;switch(f[1]){case">=":return m>=0;case"~":return m>=0&&s.major===p.major&&s.minor===p.minor;case"^":return m<0?!1:p.major!=="0"?s.major===p.major:p.minor!=="0"?s.major==="0"&&s.minor===p.minor:s.major==="0"&&s.minor==="0"&&s.patch===p.patch;default:return m===0}}function sPe(r,i){if(!Array.isArray(r))throw new TypeError("Capability offers must be an array");if(!Array.isArray(i))throw new TypeError("Capability requirements must be an array");let s=new Map;for(let[p,m]of r.entries()){if(!m||typeof m!="object"||Array.isArray(m))throw new TypeError(`Capability offer at index ${p} must be an object`);if(typeof m.id!="string")throw new Error(`Invalid capability id "${String(m.id)}"`);if(!koe(m.id))throw new Error(`Invalid capability id "${m.id}"`);if(typeof m.version!="string")throw new Error(`Capability "${m.id}" has invalid semantic version "${String(m.version)}"`);if(!ZT(m.version))throw new Error(`Capability "${m.id}" has invalid semantic version "${m.version}"`);if(s.has(m.id))throw new Error(`Duplicate capability offer "${m.id}"`);s.set(m.id,m.version)}let c=new Set,u=i.map((p,m)=>{if(!p||typeof p!="object"||Array.isArray(p))throw new TypeError(`Capability requirement at index ${m} must be an object`);if(typeof p.id!="string")throw new Error(`Invalid capability id "${String(p.id)}"`);if(!koe(p.id))throw new Error(`Invalid capability id "${p.id}"`);if(!Bxn.has(p.level))throw new Error(`Capability "${p.id}" has invalid requirement level "${String(p.level)}"`);if(!Soe(p.range))throw new Error(`Capability "${p.id}" has invalid semantic-version range "${String(p.range)}"`);if(c.has(p.id))throw new Error(`Duplicate capability requirement "${p.id}"`);c.add(p.id);let y=s.get(p.id),x=y===void 0?"unsupported":AW(y,p.range)?"selected":"incompatible";return Object.freeze({id:p.id,range:p.range,level:p.level,status:x,...y!==void 0?{version:y}:{}})}),f=u.every(p=>p.level!=="required"||p.status==="selected");return Object.freeze({version:oPe,accepted:f,resolutions:Object.freeze(u)})}var aPe=Object.freeze([{id:"core:render-request",version:"1.0.0"},{id:"core:family-descriptor",version:"1.0.0"}].map(r=>Object.freeze(r)));function lPt(r,i,s,c){let u={id:`output:${r}`,version:"1.0.0"},f=vN.includes(r);return sPe([...aPe,...i,...!f||!c?[]:[u]],[{id:"core:render-request",range:"^1.0.0",level:"required"},...s,{id:`output:${r}`,range:"^1.0.0",level:"required"}])}function uPt(r,i){return lPt(r,i?[i]:[],i?[{id:i.id,range:i.version,level:"required"}]:[],!0)}function dPt(r,i){return lPt(r,i.offers,i.requirements,i.outputAvailable)}var fPt="0.3.2";function hPt(r,i){if(r===void 0||i===void 0||r.id!==i.id||r.kind!==i.kind||r.version!==i.version)return!1;let s=new Set([...Object.keys(r.compatibility),...Object.keys(i.compatibility)]);for(let c of s)if(r.compatibility[c]!==i.compatibility[c])return!1;return r.provenance.owner===i.provenance.owner&&r.provenance.source===i.provenance.source&&r.provenance.reference===i.provenance.reference}var cPe=Object.freeze({core:fPt,scene:aPt});function iF(r,i){if(!r.compatibility[i])throw new Error(`Extension "${r.id}" must declare an explicit compatible "${i}" range`)}function lPe(r){let i=[];for(let[s,c]of Object.entries(r.compatibility)){if(c===void 0)continue;let u=cPe[s];if(!Soe(c)){i.push(Object.freeze({contract:s,range:c,status:"invalid",diagnostic:`Compatibility requirement "${s}" has invalid semantic-version range "${c}".`}));continue}if(u!==void 0){let f=AW(u,c);i.push(Object.freeze({contract:s,range:c,status:f?"compatible":"incompatible",version:u,...f?{}:{diagnostic:`Compatibility requirement "${s}" range "${c}" does not include host version ${u}.`}}));continue}if(!koe(s)){i.push(Object.freeze({contract:s,range:c,status:"invalid",diagnostic:`Unknown compatibility requirement "${s}" must use a namespace.`}));continue}i.push(Object.freeze({contract:s,range:c,status:"deferred"}))}return Object.freeze({accepted:i.every(s=>s.status==="compatible"||s.status==="deferred"),resolutions:Object.freeze(i)})}var gPt=/^[a-z][a-z0-9-]*$/,mPt=/^[a-z0-9][a-z0-9._/-]*$/,pPt=new WeakSet,Eoe=new WeakMap;function zxn(r,i){let s=Eoe.get(r);if(s)throw s.reentrantAttempted=!0,new Error(`Extension registry mutation is forbidden while ${s.operation} is in progress`);let c={operation:i,reentrantAttempted:!1};return Eoe.set(r,c),c}function Wxn(r){if(r.reentrantAttempted)throw new Error(`Extension registry mutation is forbidden after a reentrant attempt during ${r.operation}`)}function Hxn(r,i){Eoe.get(r)===i&&Eoe.delete(r)}function SN(r,i){if(!gPt.test(r))throw new Error(`Invalid extension kind "${r}"`);if(!mPt.test(i))throw new Error(`Invalid ${r} extension local id "${i}"`);return`${r}:${i}`}function my(r){let i=r.indexOf(":");if(i<=0||i===r.length-1||r.indexOf(":",i+1)!==-1)return;let s=r.slice(0,i),c=r.slice(i+1);if(!(!gPt.test(s)||!mPt.test(c)))return{kind:s,localId:c}}function gm(r){let i=r.id,s=r.kind,c=r.version,u=r.compatibility,f=r.provenance,p=Object.freeze({...u??{}}),m=Object.freeze({...f}),y=my(i);if(!y||y.kind!==s)throw new Error(`Extension id "${i}" must use the "${s}:" namespace`);if(!ZT(c))throw new Error(`Extension "${i}" requires a semantic version (received "${c}")`);if(m.owner.trim().length===0)throw new Error(`Extension "${i}" requires a provenance owner`);if(m.source.trim().length===0)throw new Error(`Extension "${i}" requires a provenance source`);let x=Object.freeze({id:i,kind:s,version:c,compatibility:p,provenance:m}),v=lPe(x);if(!v.accepted)throw new Error(`Extension "${i}" has incompatible requirements: ${v.resolutions.filter(S=>S.status==="incompatible"||S.status==="invalid").map(S=>S.diagnostic).join("; ")}`);return pPt.add(x),x}var kN=class extends Error{constructor(s,c){super(`Cannot register ${s.kind} "${s.id}" for owner "${s.provenance.owner}": already registered by "${c.provenance.owner}" at version ${c.version}`);this.incoming=s;this.existing=c;this.name="ExtensionCollisionError"}incoming;existing;code="EXTENSION_ID_COLLISION"};function EN(r,i){let s=zxn(r,"extension registration");try{let c=Object.freeze({identity:i.identity,value:i.value});if(!pPt.has(c.identity))throw new TypeError("Extension registration identity must be created by createExtensionIdentity()");let u=c.identity.id,f=r.get(u);if(f)throw new kN(c.identity,f.identity);Wxn(s),r.set(u,c)}finally{Hxn(r,s)}}var gE=Object.freeze({fontFamily:{kind:"font",description:"Safe font family/stack for roles whose descriptor exposes family-specific typography."},fontSize:{kind:"number",minimum:1,maximum:256,expected:"between 1 and 256",description:"Font size in SVG user units."},fontWeight:{kind:"number",minimum:1,maximum:1e3,expected:"between 1 and 1000",description:"CSS numeric font weight."},letterSpacing:{kind:"number",minimum:-2,maximum:4,expected:"between -2 and 4",description:"Letter spacing in SVG user units."},textTransform:{kind:"enum",values:["uppercase","lowercase","capitalize"],description:"Text transformation."},textColor:{kind:"color",description:"Text paint."},paddingX:{kind:"number",minimum:0,maximum:256,expected:"between 0 and 256",description:"Horizontal role padding."},paddingY:{kind:"number",minimum:0,maximum:256,expected:"between 0 and 256",description:"Vertical role padding."},cornerRadius:{kind:"number",minimum:0,maximum:256,expected:"between 0 and 256",description:"Applicable corner radius."},lineWidth:{kind:"number",exclusiveMinimum:0,maximum:20,expected:"greater than 0 and at most 20",description:"Border or connector width."},bendRadius:{kind:"number",minimum:0,maximum:256,expected:"between 0 and 256",description:"Applicable connector bend radius."},fillColor:{kind:"color",description:"Surface fill paint."},borderColor:{kind:"color",description:"Border paint."},strokeColor:{kind:"color",description:"Connector stroke paint."},headerFillColor:{kind:"color",description:"Group header surface paint."},cue:{kind:"enum",values:["none","outline","double-line","pattern"],description:"Non-color semantic cue on roles whose family renderer exposes a cue projection."}}),uPe=Object.freeze(["fontSize","fontWeight","letterSpacing","textTransform","textColor","paddingX","paddingY","cornerRadius","lineWidth","fillColor","borderColor"]),bPt=Object.freeze(["fontSize","fontWeight","letterSpacing","textTransform","textColor","lineWidth","bendRadius","strokeColor"]),Uxn=Object.freeze([...uPe,"fontFamily","headerFillColor"]),Jxn=Object.freeze(["fontSize","fontWeight","letterSpacing","textTransform","textColor"]),qxn=Object.freeze(["fontFamily","fontSize","fontWeight","letterSpacing","textTransform","textColor","fillColor","borderColor","strokeColor","lineWidth","cue"]),Vxn=Object.freeze(["fillColor","borderColor","strokeColor","lineWidth","cue"]),Yxn=Object.freeze(["fillColor","borderColor","strokeColor","lineWidth","textColor"]),dPe=Object.freeze(["fillColor","borderColor","strokeColor","lineWidth"]),Xxn=Object.freeze(["borderColor","strokeColor","lineWidth"]),yPt=Object.freeze([...dPe,"cue"]);function Gb(r,i){return Object.freeze({properties:r,...i?{bindingFamilies:Object.freeze([...i])}:{}})}var mE=Object.freeze({node:Gb(uPe),edge:Gb(bPt),group:Gb(Uxn),"group-header":Gb(qxn,["journey"]),label:Gb(Jxn),actor:Gb(uPe,["sequence"]),relationship:Gb(bPt,["er"]),"pie-slice":Gb(Vxn,["pie","radar"]),legend:Gb(Yxn,["radar"]),bar:Gb(dPe,["xychart"]),series:Gb(Xxn,["xychart"]),point:Gb(dPe,["radar"]),task:Gb(yPt,["gantt"]),milestone:Gb(yPt,["gantt"])}),CN=Object.freeze(Object.keys(mE)),pE=Object.freeze(CN.filter(r=>"bindingFamilies"in mE[r])),oF=Object.freeze([...new Set(pE.flatMap(r=>mE[r].properties))]);var iw=["shape","connector","text","group","document"],MN=["shape"],Coe=["connector"],wPt=["text"],Kxn=["shape","text"],P2=["shape","group"],Qxn=["shape","text","group"],Zxn=["connector","group"],eAn=["document"],xPt=["text","group"];var tAn=["shape","text","document"],nAn=["document"];function cs(r,i,s,c={}){let u=mE[r];return Object.freeze({applicableKinds:i,styleFallback:s,styleConsumption:u?"exact":"fallback-only",styleExtras:Object.freeze([]),...u?{styleProperties:u.properties}:{},styleBindingFamilies:Object.freeze([...u?.bindingFamilies??[]]),domIdentity:!1,relation:!1,sketch:"none",textHalo:!1,...c})}var eI=Object.freeze({node:cs("node",P2,"node",{domIdentity:!0,sketch:"shape"}),edge:cs("edge",Coe,"edge",{domIdentity:!0,relation:!0,sketch:"connector"}),"edge-label":cs("edge-label",xPt,"label"),group:cs("group",P2,"group",{domIdentity:!0,sketch:"shape"}),"group-header":cs("group-header",iw,"group",{sketch:"shape",textHalo:!0}),label:cs("label",wPt,"label",{textHalo:!0}),actor:cs("actor",P2,"node",{domIdentity:!0,sketch:"shape"}),lifeline:cs("lifeline",Coe,"edge",{sketch:"connector"}),activation:cs("activation",MN,"node",{domIdentity:!0,sketch:"shape"}),message:cs("message",Zxn,"edge",{domIdentity:!0,relation:!0,sketch:"connector"}),block:cs("block",iw,"group",{domIdentity:!0,sketch:"shape"}),note:cs("note",P2,"group",{domIdentity:!0,sketch:"shape"}),"class-box":cs("class-box",P2,"node",{domIdentity:!0,sketch:"shape"}),member:cs("member",wPt,"label",{domIdentity:!0,textHalo:!0}),entity:cs("entity",P2,"node",{domIdentity:!0,sketch:"shape"}),attribute:cs("attribute",xPt,"label",{domIdentity:!0,textHalo:!0}),relationship:cs("relationship",Coe,"edge",{domIdentity:!0,relation:!0,sketch:"connector"}),cardinality:cs("cardinality",Kxn,"label",{domIdentity:!0,textHalo:!0}),"pie-slice":cs("pie-slice",MN,"node",{domIdentity:!0,sketch:"shape"}),legend:cs("legend",Qxn,"group",{textHalo:!0}),bar:cs("bar",MN,"node",{domIdentity:!0,sketch:"shape"}),series:cs("series",Coe,"edge",{domIdentity:!0,sketch:"connector"}),point:cs("point",MN,"node",{domIdentity:!0}),axis:cs("axis",iw,"label",{textHalo:!0}),grid:cs("grid",iw,"edge"),plate:cs("plate",MN,"node",{domIdentity:!0,sketch:"shape"}),section:cs("section",iw,"group",{domIdentity:!0,sketch:"shape",textHalo:!0}),task:cs("task",iw,"node",{domIdentity:!0,sketch:"shape"}),milestone:cs("milestone",MN,"node",{domIdentity:!0,sketch:"shape"}),"marker-line":cs("marker-line",iw,"edge"),rail:cs("rail",iw,"edge",{sketch:"connector"}),period:cs("period",P2,"group",{domIdentity:!0,sketch:"shape"}),event:cs("event",P2,"group",{domIdentity:!0,sketch:"shape"}),score:cs("score",iw,"node"),"actor-pill":cs("actor-pill",MN,"node",{sketch:"shape"}),service:cs("service",P2,"node",{domIdentity:!0,sketch:"shape"}),junction:cs("junction",P2,"node",{domIdentity:!0}),icon:cs("icon",tAn,"node"),title:cs("title",iw,"label",{domIdentity:!0}),defs:cs("defs",eAn,"label"),prelude:cs("prelude",nAn,"label"),chrome:cs("chrome",iw,"label")}),rAn=Object.freeze({applicableKinds:iw,styleFallback:"label",styleConsumption:"fallback-only",styleExtras:Object.freeze([]),styleBindingFamilies:Object.freeze([]),domIdentity:!0,relation:!1,sketch:"none",textHalo:!1}),tI=Object.freeze(Object.entries(eI).map(([r,i])=>Object.freeze({identity:gm({id:`role:${r}`,kind:"role",version:"1.0.0",compatibility:{core:"^0.3.0",scene:"^2.0.0"},provenance:{owner:"agentic-mermaid",source:"built-in",reference:"src/scene/roles.ts"}}),role:r,traits:i,style:(()=>{let s=i.styleFallback;return Object.freeze({fallbackRole:s,applicableProperties:i.styleProperties??Object.freeze([])})})()})));function fPe(r){let i=eI[r];return i?{traits:i,source:"builtin"}:{traits:rAn,source:"namespaced-safe"}}function ow(r){return fPe(r).traits}var bE=["document","text","shape","container","connector","marker","data-mark"],APt=Object.freeze(bE.map(r=>Object.freeze({primitive:r,operation:r==="document"?"serialize":"render"})));function vPt(r){return r==="document"?"serialize":"render"}var Moe=["measure","layout","bounds","hit-test","render","accessibility","terminal-project","serialize"],Toe=["geometry","paint","stroke","transform","identity","relation","labels","markers","resources","interaction","topology","subpaths","closedness","bend-radius","endpoints","direction","hit-geometry","stroke-opacity","stroke-cap","stroke-join","stroke-miter","dash-array","dash-offset","dash-restart","path-length","paint-order","non-scaling-stroke","marker-orientation","marker-overflow"],sF=Object.freeze([{primitive:"document",feature:"identity",operation:"serialize"},{primitive:"document",feature:"resources",operation:"serialize"},{primitive:"document",feature:"interaction",operation:"accessibility"},{primitive:"text",feature:"geometry",operation:"render"},{primitive:"text",feature:"paint",operation:"render"},{primitive:"text",feature:"labels",operation:"accessibility"},{primitive:"text",feature:"identity",operation:"serialize"},{primitive:"shape",feature:"geometry",operation:"render"},{primitive:"shape",feature:"paint",operation:"render"},{primitive:"shape",feature:"identity",operation:"serialize"},{primitive:"container",feature:"geometry",operation:"render"},{primitive:"container",feature:"paint",operation:"render"},{primitive:"container",feature:"identity",operation:"serialize"},{primitive:"connector",feature:"geometry",operation:"render"},{primitive:"connector",feature:"stroke",operation:"render"},{primitive:"connector",feature:"transform",operation:"render"},{primitive:"connector",feature:"topology",operation:"render"},{primitive:"connector",feature:"subpaths",operation:"render"},{primitive:"connector",feature:"closedness",operation:"render"},{primitive:"connector",feature:"bend-radius",operation:"render"},{primitive:"connector",feature:"stroke-opacity",operation:"render"},{primitive:"connector",feature:"stroke-cap",operation:"render"},{primitive:"connector",feature:"stroke-join",operation:"render"},{primitive:"connector",feature:"stroke-miter",operation:"render"},{primitive:"connector",feature:"dash-array",operation:"render"},{primitive:"connector",feature:"dash-offset",operation:"render"},{primitive:"connector",feature:"dash-restart",operation:"render"},{primitive:"connector",feature:"path-length",operation:"render"},{primitive:"connector",feature:"paint-order",operation:"render"},{primitive:"connector",feature:"non-scaling-stroke",operation:"render"},{primitive:"connector",feature:"marker-orientation",operation:"render"},{primitive:"connector",feature:"marker-overflow",operation:"render"},{primitive:"connector",feature:"endpoints",operation:"serialize"},{primitive:"connector",feature:"direction",operation:"serialize"},{primitive:"connector",feature:"labels",operation:"render"},{primitive:"connector",feature:"labels",operation:"accessibility"},{primitive:"connector",feature:"markers",operation:"render"},{primitive:"connector",feature:"relation",operation:"accessibility"},{primitive:"connector",feature:"interaction",operation:"hit-test"},{primitive:"connector",feature:"hit-geometry",operation:"hit-test"},{primitive:"connector",feature:"identity",operation:"serialize"},{primitive:"marker",feature:"geometry",operation:"render"},{primitive:"marker",feature:"paint",operation:"render"},{primitive:"marker",feature:"identity",operation:"serialize"},{primitive:"data-mark",feature:"geometry",operation:"render"},{primitive:"data-mark",feature:"paint",operation:"render"},{primitive:"data-mark",feature:"identity",operation:"serialize"}]),vW=["native","emulated","projected","lossy","unsupported"];function kPt(r){switch(r.kind){case"text":return["text"];case"shape":return r.channels?.value===void 0?["shape"]:["shape","data-mark"];case"group":return["container"];case"connector":return["connector"];case"document":return r.markerResources?.length?["document","marker"]:["document"]}}function Ioe(r,i,s="rough"){let c=i==="crisp"?"native":"emulated",u=i==="crisp"?"native":"projected",f="src/__tests__/backend-capability-conformance.test.ts",p=v=>i==="crisp"?{realization:"native"}:v==="geometry"||v==="topology"?{realization:"lossy",diagnostic:"The exact authored path remains as an invisible semantic carrier, but arbitrary curves are flattened to typed routed contours for the visible sketch."}:v==="closedness"?{realization:"lossy",diagnostic:"Sketch shafts are rebuilt from routed geometry and do not preserve explicit closed-subpath semantics."}:v==="bend-radius"?{realization:"lossy",diagnostic:"The authored rounded carrier remains exact, but the visible sketch follows its routed polyline and cannot preserve the continuous bend radius."}:v==="dash-restart"?{realization:"lossy",diagnostic:"A rough stroke may contain multiple generated stroke subpaths, so SVG dash restart boundaries can differ."}:v==="path-length"?{realization:"lossy",diagnostic:"One pathLength value spans generated stroke subpaths, so a sketch cannot retain one authored path calibration exactly."}:s==="hybrid"&&(v==="stroke-cap"||v==="stroke-join"||v==="stroke-miter"||v==="non-scaling-stroke")?{realization:"lossy",diagnostic:`Freehand ribbon geometry cannot preserve authored ${v} semantics; dashed Hybrid connectors fall back to the faithful rough projection.`}:v==="marker-orientation"||v==="marker-overflow"?{realization:"projected",diagnostic:"Marker geometry, orientation, and overflow remain in the typed marker projection instead of being sketched."}:{realization:"emulated"},m=["transform","topology","subpaths","closedness","bend-radius","stroke-opacity","stroke-cap","stroke-join","stroke-miter","dash-array","dash-offset","dash-restart","path-length","paint-order","non-scaling-stroke","marker-orientation","marker-overflow"],y=[{target:r,primitive:"document",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"document",feature:"resources",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"document",feature:"interaction",operation:"accessibility",realization:"native",evidence:f},{target:r,primitive:"text",feature:"geometry",operation:"render",realization:"native",evidence:f},{target:r,primitive:"text",feature:"paint",operation:"render",realization:"native",evidence:f},{target:r,primitive:"text",feature:"labels",operation:"accessibility",realization:"native",evidence:f},{target:r,primitive:"text",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"shape",feature:"geometry",operation:"render",realization:c,evidence:f},{target:r,primitive:"shape",feature:"paint",operation:"render",realization:c,evidence:f},{target:r,primitive:"shape",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"container",feature:"geometry",operation:"render",realization:"native",evidence:f},{target:r,primitive:"container",feature:"paint",operation:"render",realization:"native",evidence:f},{target:r,primitive:"container",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"geometry",operation:"render",...p("geometry"),evidence:f},{target:r,primitive:"connector",feature:"stroke",operation:"render",realization:c,evidence:f},...m.map(v=>({target:r,primitive:"connector",feature:v,operation:"render",...p(v),evidence:f})),{target:r,primitive:"connector",feature:"relation",operation:"accessibility",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"endpoints",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"direction",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"labels",operation:"render",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"labels",operation:"accessibility",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"markers",operation:"render",realization:u,evidence:f},{target:r,primitive:"connector",feature:"interaction",operation:"hit-test",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"hit-geometry",operation:"hit-test",realization:"native",evidence:f},{target:r,primitive:"connector",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"marker",feature:"geometry",operation:"render",realization:u,evidence:f},{target:r,primitive:"marker",feature:"paint",operation:"render",realization:u,evidence:f},{target:r,primitive:"marker",feature:"identity",operation:"serialize",realization:"native",evidence:f},{target:r,primitive:"data-mark",feature:"geometry",operation:"render",realization:c,evidence:f},{target:r,primitive:"data-mark",feature:"paint",operation:"render",realization:c,evidence:f},{target:r,primitive:"data-mark",feature:"identity",operation:"serialize",realization:"native",evidence:f}],x=aF(y);if(!x.valid)throw new Error(`Invalid graphical backend capability contract: ${x.diagnostics.join("; ")}`);return Object.freeze(y.map(v=>Object.freeze({...v})))}function $oe(r="terminal:projection"){let i="src/__tests__/terminal-projection-security.test.ts",s=new Set(["geometry","paint","stroke","transform","bend-radius","stroke-opacity","stroke-cap","stroke-join","stroke-miter","dash-array","dash-offset","dash-restart","path-length","paint-order","non-scaling-stroke","marker-orientation","marker-overflow"]),u=["identity","relation","endpoints","direction","labels","markers","geometry","topology","subpaths","closedness","bend-radius","interaction","hit-geometry","stroke","transform","stroke-opacity","stroke-cap","stroke-join","stroke-miter","dash-array","dash-offset","dash-restart","path-length","paint-order","non-scaling-stroke","marker-orientation","marker-overflow"].map(p=>({target:r,primitive:"connector",feature:p,operation:"terminal-project",realization:s.has(p)?"lossy":"projected",evidence:i,...s.has(p)?{diagnostic:`Terminal cells cannot render continuous connector ${p}; the exact typed value remains in terminal projection evidence.`}:{}})),f=aF(u);if(!f.valid)throw new Error(`Invalid terminal connector capability contract: ${f.diagnostics.join("; ")}`);return Object.freeze(u.map(p=>Object.freeze({...p})))}function hPe(r){return[r.target,r.primitive,r.feature,r.operation].join("\0")}function aF(r){let i=[],s=new Set;for(let c=0;c<r.length;c++){let u=r[c],f=hPe(u);s.has(f)&&i.push(`claim[${c}]: duplicate target/primitive/feature/operation`),s.add(f),u.target.trim()===""&&i.push(`claim[${c}]: target must not be empty`),u.primitive.trim()===""&&i.push(`claim[${c}]: primitive must not be empty`),u.feature.trim()===""&&i.push(`claim[${c}]: feature must not be empty`),u.operation.trim()===""&&i.push(`claim[${c}]: operation must not be empty`),vW.includes(u.realization)||i.push(`claim[${c}]: invalid realization ${String(u.realization)}`),(u.realization==="lossy"||u.realization==="unsupported")&&!u.diagnostic?.trim()&&i.push(`claim[${c}]: ${u.realization} realization requires a diagnostic`)}return{valid:i.length===0,diagnostics:i}}function Roe(r){let i=[],s=r.split(/\r?\n/),c=0;for(let u of s){c++;let f=u.trim();if(!f||f.startsWith("%%"))continue;for(let m of f.matchAll(/"([^"\\]*(?:\\.[^"\\]*)*)"|'([^'\\]*(?:\\.[^'\\]*)*)'/g)){let y=m[1]??m[2]??"";y&&i.push({text:y,target:`line${c}`})}for(let m of f.matchAll(/[\[\(\{]+([^\[\]\(\)\{\}]+?)[\]\)\}]+/g)){let y=(m[1]??"").trim();y&&!y.match(/^[A-Za-z_][\w-]*$/)&&i.push({text:y,target:`line${c}`})}let p=f.indexOf(":");if(p>=0&&p<f.length-1){let m=f.slice(p+1).trim();m&&!m.match(/^[\d.]+$/)&&m.length>=2&&i.push({text:m,target:`line${c}`})}}return i}var TN=Object.freeze({contrast:Object.freeze({properties:Object.freeze({role:Object.freeze({kind:"role"}),minimum:Object.freeze({kind:"number",minimum:1,maximum:21})}),recovery:"Choose an authored text/surface pair that meets the requested ratio, or remove the rule; the renderer will not repaint it."}),"accent-area":Object.freeze({properties:Object.freeze({maxFraction:Object.freeze({kind:"number",minimum:0,maximum:1,required:!0})}),recovery:"Reduce authored accent-filled area or raise the declared maximum; the renderer will not rewrite fills."}),"mono-role":Object.freeze({properties:Object.freeze({role:Object.freeze({kind:"role",required:!0})}),recovery:"Use measurable monochrome paint for the named role or remove the rule; the renderer will not rewrite paint."})}),nI=Object.freeze(Object.keys(TN));function Poe(r){return TN[r].properties}function SPt(r){return Object.freeze(["kind","action",...Object.keys(TN[r].properties)])}function EPt(r){let i=Poe(r);return Object.freeze(["kind","action",...Object.entries(i).filter(([,s])=>s.required===!0).map(([s])=>s)])}var yE=Object.freeze({warn:Object.freeze({code:"BRAND_CONSTRAINT_WARNING",severity:"warning",tier:"lint"}),error:Object.freeze({code:"BRAND_CONSTRAINT_ERROR",severity:"error",tier:"lint"})});function gn(r){return{ok:!0,value:r}}function Ae(r){return{ok:!1,error:r}}function kW(r){if(!Number.isFinite(r))throw new RangeError(`expected a finite number, got ${String(r)}`);return r}var Ifr={EMPTY_DIAGRAM:"error",UNRESOLVABLE_SCHEDULE:"error",RENDER_FAILED:"error",[yE.error.code]:yE.error.severity,EDGE_MISANCHORED:"error",OFF_CANVAS:"error",GROUP_BREACH:"error",UNKNOWN_SHAPE:"warning",LABEL_OVERFLOW:"warning",NODE_OVERLAP:"warning",ROUTE_SELF_CROSS:"warning",ROUTE_HITCH:"warning",ROUTE_UNEXPLAINED_BEND:"warning",ROUTE_LABEL_ON_SHARED_TRUNK:"warning",ROUTE_SELF_LOOP_OCCUPANCY:"warning",ROUTE_CONTAINER_MISANCHOR:"warning",ROUTE_SHAPE_MISANCHOR:"warning",ROUTE_STALE_AFTER_NODE_MOVE:"warning",DUPLICATE_EDGE:"warning",UNREACHABLE_NODE:"warning",DECISION_BRANCH_UNLABELED:"warning",COMMENT_DROPPED:"warning",UNSUPPORTED_SYNTAX:"warning",CONTENT_DROPPED_ON_ROUNDTRIP:"warning",INEFFECTIVE_CONFIG:"warning",LOW_CONTRAST:"warning",[yE.warn.code]:yE.warn.severity},$fr={EMPTY_DIAGRAM:"structural",UNRESOLVABLE_SCHEDULE:"structural",RENDER_FAILED:"structural",[yE.error.code]:yE.error.tier,EDGE_MISANCHORED:"structural",OFF_CANVAS:"structural",GROUP_BREACH:"structural",UNKNOWN_SHAPE:"structural",LABEL_OVERFLOW:"structural",NODE_OVERLAP:"geometric",ROUTE_SELF_CROSS:"geometric",ROUTE_HITCH:"geometric",ROUTE_UNEXPLAINED_BEND:"geometric",ROUTE_LABEL_ON_SHARED_TRUNK:"geometric",ROUTE_SELF_LOOP_OCCUPANCY:"geometric",ROUTE_CONTAINER_MISANCHOR:"geometric",ROUTE_SHAPE_MISANCHOR:"geometric",ROUTE_STALE_AFTER_NODE_MOVE:"geometric",DUPLICATE_EDGE:"lint",UNREACHABLE_NODE:"lint",DECISION_BRANCH_UNLABELED:"lint",COMMENT_DROPPED:"lint",UNSUPPORTED_SYNTAX:"lint",CONTENT_DROPPED_ON_ROUNDTRIP:"lint",INEFFECTIVE_CONFIG:"lint",LOW_CONTRAST:"lint",[yE.warn.code]:yE.warn.tier},Noe=40;var iAn={flowchart:["add_node","remove_node","rename_node","set_label","add_edge","remove_edge","set_shape","set_direction","add_subgraph","remove_subgraph","move_node","define_class","set_node_class","set_node_style"],state:["add_state","remove_state","rename_state","set_state_label","add_transition","remove_transition","set_transition_label","make_composite","set_direction","move_state","dissolve_composite","add_note","remove_note","set_note_text","define_class","set_state_class","set_state_style","set_transition_style"],sequence:["add_participant","remove_participant","add_message","remove_message","set_message_text","move_message","set_participant_label","add_fragment","remove_fragment","set_fragment_label","add_fragment_branch","set_fragment_branch_label","add_fragment_message","remove_fragment_message","set_fragment_message_text"],timeline:["set_title","add_section","remove_section","set_section_label","add_period","remove_period","set_period_label","add_event","remove_event","set_event_text","move_period","move_event","move_section","set_accessibility_title","set_accessibility_description"],class:["set_title","add_class","remove_class","rename_class","set_class_generic","add_member","remove_member","add_relation","remove_relation","add_note","remove_note","set_class_namespace","define_class","set_css_class","set_class_style"],er:["add_entity","remove_entity","rename_entity","set_entity_label","add_attribute","remove_attribute","add_relation","remove_relation","set_direction","define_class","set_entity_class","set_entity_style"],journey:["set_title","add_section","remove_section","set_section_label","add_task","remove_task","set_task_text","set_task_score","set_task_actors","rename_actor","move_task","move_section","set_accessibility_title","set_accessibility_description"],architecture:["set_title","set_accessibility_title","set_accessibility_description","add_service","remove_service","rename_service","set_service_label","set_service_icon","move_service","add_junction","remove_junction","rename_junction","move_junction","add_group","set_group_label","remove_group","add_edge","update_edge","remove_edge"],xychart:["set_title","set_x_axis","set_y_axis","add_series","remove_series","set_series_values","set_series_name","reorder_series","set_orientation","set_data_point"],pie:["set_title","set_show_data","add_slice","remove_slice","rename_slice","set_slice_value","reorder_slice"],quadrant:["set_title","set_axis_labels","set_quadrant_label","add_point","remove_point","move_point","rename_point"],gantt:["set_title","add_section","rename_section","remove_section","add_task","remove_task","rename_task","set_task_status","set_task_dates","set_task_flags","set_task_id","move_task","move_section"],mindmap:["add_node","remove_node","rename_node","set_label","move_node","set_shape","set_icon","set_node_class","set_accessibility_title","set_accessibility_description"],gitgraph:["append_commit","create_branch","checkout_branch","merge_branch","cherry_pick","set_commit_message","set_commit_type","set_commit_tags","rename_branch","set_accessibility_title","set_accessibility_description"],radar:["set_title","add_axis","remove_axis","rename_axis","set_axis_label","reorder_axis","add_curve","remove_curve","set_curve_values","set_curve_value","set_curve_label","rename_curve","reorder_curve","set_config"]};function CPt(r){let i=iAn[r];return i?i.join(", "):"(none \u2014 this family has no structured ops)"}function Sc(r,i){if(Array.isArray(i))return`Expected a single ${r} op, got an array of ${i.length}. Ops apply one at a time: call mutate() once per op, or pass the whole list to a batch entrypoint \u2014 applyOps({ source, family, ops }) to edit source, or buildMermaid(kind, ops) to author \u2014 valid ${r} ops: ${CPt(r)}`;let s=i?.kind,c=typeof s=="string"?`"${s}"`:JSON.stringify(i);return`Unknown ${r} op ${c} \u2014 valid ops: ${CPt(r)}`}var gPe,oAn=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),mPe=(gPe=String.fromCodePoint)!==null&&gPe!==void 0?gPe:(r=>{let i="";return r>65535&&(r-=65536,i+=String.fromCharCode(r>>>10&1023|55296),r=56320|r&1023),i+=String.fromCharCode(r),i});function pPe(r){var i;return r>=55296&&r<=57343||r>1114111?65533:(i=oAn.get(r))!==null&&i!==void 0?i:r}function bPe(r){let i=typeof atob=="function"?atob(r):typeof Buffer.from=="function"?Buffer.from(r,"base64").toString("binary"):new Buffer(r,"base64").toString("binary"),s=i.length&-2,c=new Uint16Array(s/2);for(let u=0,f=0;u<s;u+=2){let p=i.charCodeAt(u),m=i.charCodeAt(u+1);c[f++]=p|m<<8}return c}var yPe=bPe("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg");var mm;(function(r){r[r.VALUE_LENGTH=49152]="VALUE_LENGTH",r[r.FLAG13=8192]="FLAG13",r[r.BRANCH_LENGTH=8064]="BRANCH_LENGTH",r[r.JUMP_TABLE=127]="JUMP_TABLE"})(mm||(mm={}));var Uu;(function(r){r[r.NUM=35]="NUM",r[r.SEMI=59]="SEMI",r[r.EQUALS=61]="EQUALS",r[r.ZERO=48]="ZERO",r[r.NINE=57]="NINE",r[r.LOWER_A=97]="LOWER_A",r[r.LOWER_F=102]="LOWER_F",r[r.LOWER_X=120]="LOWER_X",r[r.LOWER_Z=122]="LOWER_Z",r[r.UPPER_A=65]="UPPER_A",r[r.UPPER_F=70]="UPPER_F",r[r.UPPER_Z=90]="UPPER_Z"})(Uu||(Uu={}));var MPt=32;function wPe(r){return r>=Uu.ZERO&&r<=Uu.NINE}function aAn(r){return r>=Uu.UPPER_A&&r<=Uu.UPPER_F||r>=Uu.LOWER_A&&r<=Uu.LOWER_F}function cAn(r){return r>=Uu.UPPER_A&&r<=Uu.UPPER_Z||r>=Uu.LOWER_A&&r<=Uu.LOWER_Z||wPe(r)}function lAn(r){return r===Uu.EQUALS||cAn(r)}var Dh;(function(r){r[r.EntityStart=0]="EntityStart",r[r.NumericStart=1]="NumericStart",r[r.NumericDecimal=2]="NumericDecimal",r[r.NumericHex=3]="NumericHex",r[r.NamedEntity=4]="NamedEntity"})(Dh||(Dh={}));var N2;(function(r){r[r.Legacy=0]="Legacy",r[r.Strict=1]="Strict",r[r.Attribute=2]="Attribute"})(N2||(N2={}));var Ooe=class{constructor(i,s,c){this.decodeTree=i,this.emitCodePoint=s,this.errors=c,this.state=Dh.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=N2.Strict,this.runConsumed=0}startEntity(i){this.decodeMode=i,this.state=Dh.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(i,s){switch(this.state){case Dh.EntityStart:return i.charCodeAt(s)===Uu.NUM?(this.state=Dh.NumericStart,this.consumed+=1,this.stateNumericStart(i,s+1)):(this.state=Dh.NamedEntity,this.stateNamedEntity(i,s));case Dh.NumericStart:return this.stateNumericStart(i,s);case Dh.NumericDecimal:return this.stateNumericDecimal(i,s);case Dh.NumericHex:return this.stateNumericHex(i,s);case Dh.NamedEntity:return this.stateNamedEntity(i,s)}}stateNumericStart(i,s){return s>=i.length?-1:(i.charCodeAt(s)|MPt)===Uu.LOWER_X?(this.state=Dh.NumericHex,this.consumed+=1,this.stateNumericHex(i,s+1)):(this.state=Dh.NumericDecimal,this.stateNumericDecimal(i,s))}stateNumericHex(i,s){for(;s<i.length;){let c=i.charCodeAt(s);if(wPe(c)||aAn(c)){let u=c<=Uu.NINE?c-Uu.ZERO:(c|MPt)-Uu.LOWER_A+10;this.result=this.result*16+u,this.consumed++,s++}else return this.emitNumericEntity(c,3)}return-1}stateNumericDecimal(i,s){for(;s<i.length;){let c=i.charCodeAt(s);if(wPe(c))this.result=this.result*10+(c-Uu.ZERO),this.consumed++,s++;else return this.emitNumericEntity(c,2)}return-1}emitNumericEntity(i,s){var c;if(this.consumed<=s)return(c=this.errors)===null||c===void 0||c.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(i===Uu.SEMI)this.consumed+=1;else if(this.decodeMode===N2.Strict)return 0;return this.emitCodePoint(pPe(this.result),this.consumed),this.errors&&(i!==Uu.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(i,s){let{decodeTree:c}=this,u=c[this.treeIndex],f=(u&mm.VALUE_LENGTH)>>14;for(;s<i.length;){if(f===0&&(u&mm.FLAG13)!==0){let m=(u&mm.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let y=u&mm.JUMP_TABLE;if(i.charCodeAt(s)!==y)return this.result===0?0:this.emitNotTerminatedNamedEntity();s++,this.excess++,this.runConsumed++}for(;this.runConsumed<m;){if(s>=i.length)return-1;let y=this.runConsumed-1,x=c[this.treeIndex+1+(y>>1)],v=y%2===0?x&255:x>>8&255;if(i.charCodeAt(s)!==v)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();s++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(m>>1),u=c[this.treeIndex],f=(u&mm.VALUE_LENGTH)>>14}if(s>=i.length)break;let p=i.charCodeAt(s);if(p===Uu.SEMI&&f!==0&&(u&mm.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,f,this.consumed+this.excess);if(this.treeIndex=dAn(c,u,this.treeIndex+Math.max(1,f),p),this.treeIndex<0)return this.result===0||this.decodeMode===N2.Attribute&&(f===0||lAn(p))?0:this.emitNotTerminatedNamedEntity();if(u=c[this.treeIndex],f=(u&mm.VALUE_LENGTH)>>14,f!==0){if(p===Uu.SEMI)return this.emitNamedEntityData(this.treeIndex,f,this.consumed+this.excess);this.decodeMode!==N2.Strict&&(u&mm.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}s++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var i;let{result:s,decodeTree:c}=this,u=(c[s]&mm.VALUE_LENGTH)>>14;return this.emitNamedEntityData(s,u,this.consumed),(i=this.errors)===null||i===void 0||i.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(i,s,c){let{decodeTree:u}=this;return this.emitCodePoint(s===1?u[i]&~(mm.VALUE_LENGTH|mm.FLAG13):u[i+1],c),s===3&&this.emitCodePoint(u[i+2],c),c}end(){var i;switch(this.state){case Dh.NamedEntity:return this.result!==0&&(this.decodeMode!==N2.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Dh.NumericDecimal:return this.emitNumericEntity(0,2);case Dh.NumericHex:return this.emitNumericEntity(0,3);case Dh.NumericStart:return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Dh.EntityStart:return 0}}};function uAn(r){let i="",s=new Ooe(r,c=>i+=mPe(c));return function(u,f){let p=0,m=0;for(;(m=u.indexOf("&",m))>=0;){i+=u.slice(p,m),s.startEntity(f);let x=s.write(u,m+1);if(x<0){p=m+s.end();break}p=m+x,m=x===0?p+1:p}let y=i+u.slice(p);return i="",y}}function dAn(r,i,s,c){let u=(i&mm.BRANCH_LENGTH)>>7,f=i&mm.JUMP_TABLE;if(u===0)return f!==0&&c===f?s:-1;if(f){let x=c-f;return x<0||x>=u?-1:r[s+x]-1}let p=u+1>>1,m=0,y=u-1;for(;m<=y;){let x=m+y>>>1,v=x>>1,E=r[s+v]>>(x&1)*8&255;if(E<c)m=x+1;else if(E>c)y=x-1;else return r[s+p+x]}return-1}var fAn=uAn(yPe);function py(r){return fAn(r,N2.Strict)}var hAn=String.prototype.codePointAt==null?(r,i)=>(r.charCodeAt(i)&64512)===55296?(r.charCodeAt(i)-55296)*1024+r.charCodeAt(i+1)-56320+65536:r.charCodeAt(i):(r,i)=>r.codePointAt(i);var TPt;(function(r){r[r.XML=0]="XML",r[r.HTML=1]="HTML"})(TPt||(TPt={}));var IPt;(function(r){r[r.UTF8=0]="UTF8",r[r.ASCII=1]="ASCII",r[r.Extensive=2]="Extensive",r[r.Attribute=3]="Attribute",r[r.Text=4]="Text"})(IPt||(IPt={}));var wAn=[[11904,12031],[12032,12255],[12288,12351],[12352,12447],[12448,12543],[12544,12591],[12688,12799],[12800,13311],[13312,19903],[19968,40959],[63744,64255],[131072,196607]],xAn=[[4352,4447],[12592,12687],[44032,55215]],AAn=[[9001,9002],[65040,65049],[65072,65135],[65280,65376],[65504,65510]],vAn=[[127744,129791]],RPt=[127995,127999],kAn=[[768,879],[6832,6911],[7616,7679],[8400,8447],[65056,65071]],SAn=new Set([8203,8204,8205,65279]),Loe=65038,Doe=65039,PPt=8205;function SW(r,i){for(let[s,c]of i)if(r>=s&&r<=c)return!0;return!1}function Foe(r){return SW(r,wAn)||SW(r,xAn)||SW(r,AAn)||SW(r,vAn)}function _oe(r){return SW(r,kAn)||SAn.has(r)}function NPt(r){return r>=RPt[0]&&r<=RPt[1]}var OPt=/<(\/)?(?:(b|strong)|(i|em)|(u)|(s|del))\s*>/gi,rI=/<\/?(?:b|strong|i|em|u|s|del)\s*>/i;function IN(r){let i=[],s=!1,c=!1,u=!1,f=!1,p=0;OPt.lastIndex=0;let m;for(;(m=OPt.exec(r))!==null;){m.index>p&&i.push({text:r.slice(p,m.index),bold:s,italic:c,underline:u,strikethrough:f}),p=m.index+m[0].length;let y=!!m[1];m[2]?s=!y:m[3]?c=!y:m[4]?u=!y:m[5]&&(f=!y)}return p<r.length&&i.push({text:r.slice(p),bold:s,italic:c,underline:u,strikethrough:f}),i}function vPe(r){return r.split(`
25
25
  `).map(i=>IN(i).map(s=>s.text).join("")).join(`
26
26
  `)}function joe(r){let i=r.text;return r.strikethrough&&(i=`<s>${i}</s>`),r.underline&&(i=`<u>${i}</u>`),r.italic&&(i=`<i>${i}</i>`),r.bold&&(i=`<b>${i}</b>`),i}var EAn=new Intl.Segmenter(void 0,{granularity:"grapheme"});function Vl(r){return Array.from(EAn.segment(r),i=>i.segment)}var CAn=new Set(["i","l","t","f","j","I","1","!","|",".",",",":",";","'"]),MAn=new Set(["W","M","w","m","@","%"]),LPt=new Set(["W","M"]),TAn=new Set(["(",")","[","]","{","}","/","\\","-",'"',"`"]);function DPt(r){return _oe(r)||r===Loe||r===Doe}function FPt(r){return Foe(r)}var IAn=/\p{Emoji_Presentation}|\p{Extended_Pictographic}/u;function _Pt(r){return IAn.test(r)}function $An(r){let i=r.codePointAt(0);return i===void 0||DPt(i)?0:FPt(i)||_Pt(r)?2:r===" "?.3:LPt.has(r)?1.5:MAn.has(r)?1.2:CAn.has(r)?.4:TAn.has(r)?.5:r==="r"?.8:i>=65&&i<=90?1.2:(i>=48&&i<=57,1)}var kPe={version:3,unit:"px",fontCalibration:"Inter-compatible proportional estimate",monospaceCalibration:"0.6em-per-cell",wideCodepoints:"src/shared/unicode-ranges.ts",emojiDetection:"Emoji_Presentation-or-Extended_Pictographic",ambiguousWidth:"single-cell",paintedAdvanceProjection:"svg-textLength-spacingAndGlyphs",naturalAdvanceExemptions:"none"};function RAn(r){return r>=600?.6:r>=500?.57:.54}function Boe(r){let i=RAn(r.fontWeight),s=0,c=0;for(let f of r.text)s+=$An(f),c++;let u=r.fontSize*.15;return{contract:kPe,width:s*r.fontSize*i+u,charWidthUnits:s,codePointCount:c,fontSize:r.fontSize,fontWeight:r.fontWeight,baseRatio:i,minPadding:u}}function Qo(r,i,s){return Boe({text:r,fontSize:i,fontWeight:s}).width}function jPt(r,i,s){let c=Boe({text:r,fontSize:i,fontWeight:s}),u=0;for(let f of r)LPt.has(f)&&(u+=1.85-1.5);return c.width+u*i*c.baseRatio}function Goe(r,i,s=0){let c=Vl(r),u=0;for(let p of c){let m=0;for(let y of p){let x=y.codePointAt(0);x===void 0||DPt(x)||(m=Math.max(m,FPt(x)||_Pt(y)?2:1))}u+=m}let f=Math.max(0,c.length-1)*s;return Math.max(0,u*i*.6+f)}function zb(r,i,s,c=0){let u=rI.test(r)?IN(r):[{text:r,bold:!1}],f=u.map(y=>y.text).join(""),p=Math.max(0,Vl(f).length-1)*c,m=u.reduce((y,x)=>y+Qo(x.text,i,x.bold?Math.max(700,s):s),0);return Math.max(0,m+p)}var SPe=1.3;function Bi(r,i,s,c=0){let u=r.split(`
27
27
  `),f=i*SPe,p=0;for(let m of u){let y=zb(m,i,s,c);y>p&&(p=y)}return{width:p,height:u.length*f,lines:u,lineHeight:f}}function Sr(r){return(r.startsWith('"')&&r.endsWith('"')?r.slice(1,-1):r).replace(/<br\s*\/?>/gi,`
@@ -541,7 +541,7 @@ ${mH.stringify(f).trimEnd()}
541
541
  `)?r.source:r.source+`
542
542
  `;if(r.kind==="preserved")return r.source;let u=Ole(i),f=r.kind!=="extension"||hPt(c,u?.identity);if(u?.serialize&&f){let p=u.serialize(r);return eNt(p,s.accessibility)}if(r.kind==="extension")return r.source.endsWith(`
543
543
  `)?r.source:r.source+`
544
- `;throw new Error(`No serializer registered for diagram kind "${i}"`)}var MLn=new Set(["state","sequence","quadrant","xychart","pie","gantt","mindmap","gitgraph","radar"]);function Wjt(r){let i=r.body.kind==="extension"||MLn.has(r.kind);return r.body.kind!=="opaque"&&i?PU(r):r.canonicalSource}function ck(r){if(typeof r=="string")return{source:r};if(r.body.kind==="preserved")throw new DN(KNt(r.body));return{source:Wjt(r),expectedFamilyId:r.kind}}var YI=3,WE=1;function CO(r,i){if(!r||typeof r!="object"||Array.isArray(r))return;let s=r[i];return s&&typeof s=="object"&&!Array.isArray(s)?s:void 0}function TLn(r,i,s){if(!s)return[];let c=i&&typeof i=="object"&&!Array.isArray(i)?i:void 0,u=CO(i,s.section);if(!u)return c&&s.section in c?[{code:"INEFFECTIVE_CONFIG",field:s.section,message:`${r} config section "${s.section}" must be an object; the invalid value has no effect.`}]:[];let f=new Set(s.keys);return Object.keys(u).filter(p=>!f.has(p)).sort().map(p=>({code:"INEFFECTIVE_CONFIG",field:`${s.section}.${p}`,message:`${r} config field "${p}" is unknown and has no effect; check the spelling or remove it.`}))}var Rm=(r,i)=>({expected:r,valid:i}),$m=Rm("a finite positive number",r=>typeof r=="number"&&Number.isFinite(r)&&r>0),vw=Rm("a finite non-negative number",r=>typeof r=="number"&&Number.isFinite(r)&&r>=0),ILn=Rm("a finite number",r=>typeof r=="number"&&Number.isFinite(r)),$f=Rm("a boolean",r=>typeof r=="boolean"),rLe=Rm("a non-empty string",r=>typeof r=="string"&&r.trim().length>0),iLe=Rm("a non-empty array of strings",r=>Array.isArray(r)&&r.length>0&&r.every(i=>typeof i=="string")),Hjt=(...r)=>Rm(`one of: ${r.join(", ")}`,i=>typeof i=="string"&&r.includes(i)),Ujt=(...r)=>Rm(`one of: ${r.join(", ")} (case-insensitive)`,i=>typeof i=="string"&&r.some(s=>s.toLowerCase()===i.toLowerCase())),W6=(r,i,s=!0)=>Rm(`a finite number ${s?"from":"greater than"} ${r} through ${i}`,c=>typeof c=="number"&&Number.isFinite(c)&&(s?c>=r:c>r)&&c<=i),HE=r=>Rm(`a finite positive number no greater than ${r}`,i=>typeof i=="number"&&Number.isFinite(i)&&i>0&&i<=r),Lle=r=>Rm(`a finite non-negative number no greater than ${r}`,i=>typeof i=="number"&&Number.isFinite(i)&&i>=0&&i<=r),$Ln=Rm("a finite positive number or non-empty CSS size string",r=>typeof r=="number"&&Number.isFinite(r)&&r>0||typeof r=="string"&&r.trim().length>0),NU=(r,i=!1)=>Rm(`a numeric value${i?` greater than ${r}`:` of at least ${r}`}`,s=>{let c=typeof s=="number"?s:typeof s=="string"&&/^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:px)?$/i.test(s.trim())?Number.parseFloat(s):Number.NaN;return Number.isFinite(c)&&(i?c>r:c>=r)}),RLn={flowchart:{nodeSpacing:$m,rankSpacing:$m,wrappingWidth:$m},sequence:Object.fromEntries([...["actorMargin","width","height","diagramMarginX","diagramMarginY","messageMargin","noteMargin","activationWidth"].map(r=>[r,vw]),["showSequenceNumbers",$f]]),timeline:{disableMulticolor:$f,sectionFills:iLe,sectionColours:iLe},journey:Object.fromEntries([...["diagramMarginX","diagramMarginY","leftMargin","maxLabelWidth","width","height","taskMargin"].map(r=>[r,$m]),...["taskFontSize","titleFontSize"].map(r=>[r,$Ln]),...["taskFontFamily","titleColor","titleFontFamily"].map(r=>[r,rLe]),...["actorColours","sectionFills","sectionColours"].map(r=>[r,iLe]),["useMaxWidth",$f]]),radar:{width:HE(Kl.dimension),height:HE(Kl.dimension),marginTop:Lle(Kl.margin),marginRight:Lle(Kl.margin),marginBottom:Lle(Kl.margin),marginLeft:Lle(Kl.margin),axisScaleFactor:HE(Kl.factor),axisLabelFactor:W6(Kl.axisLabelFactorMin,Kl.factor),curveTension:W6(0,1),useMaxWidth:$f,tickLabels:$f},class:{nodeSpacing:vw,rankSpacing:vw,hierarchicalNamespaces:$f},er:{layoutDirection:Ujt("TB","TD","BT","LR","RL"),nodeSpacing:vw,rankSpacing:vw},architecture:{padding:NU(0),iconSize:NU(0,!0),fontSize:NU(0,!0),nodeSeparation:NU(0),idealEdgeLengthMultiplier:NU(0,!0)},xychart:{width:$m,height:$m,useMaxWidth:$f,useWidth:$m,titleFontSize:$m,titlePadding:vw,chartOrientation:Hjt("vertical","horizontal"),plotReservedSpacePercent:W6(0,100,!1),showDataLabel:$f,showTitle:$f,showLegend:$f,legendFontSize:$m,legendPadding:vw,xAxis:Rm("an axis-config object",r=>!!r&&typeof r=="object"&&!Array.isArray(r)),yAxis:Rm("an axis-config object",r=>!!r&&typeof r=="object"&&!Array.isArray(r))},pie:{textPosition:W6(0,1),donutHole:W6(0,.9),legendPosition:Hjt("top","bottom","left","right","center")},quadrant:Object.fromEntries([...["chartWidth","chartHeight","titleFontSize","quadrantLabelFontSize","xAxisLabelFontSize","yAxisLabelFontSize","pointLabelFontSize","pointRadius"].map(r=>[r,$m]),...["titlePadding","quadrantPadding","xAxisLabelPadding","yAxisLabelPadding","pointTextPadding","quadrantInternalBorderStrokeWidth","quadrantExternalBorderStrokeWidth"].map(r=>[r,vw]),["useMaxWidth",$f]]),gantt:{displayMode:Ujt("compact"),barHeight:$m,topAxis:$f,axisFormat:rLe,tickInterval:Rm('a positive Mermaid interval such as "1day" or "2week"',r=>typeof r=="string"&&/^[1-9]\d*(?:millisecond|second|minute|hour|day|week|month)$/i.test(r.trim()))},mindmap:{padding:vw,maxNodeWidth:$m},gitgraph:{showBranches:$f,showCommitLabel:$f,parallelCommits:$f,rotateCommitLabel:$f,mainBranchName:rLe,mainBranchOrder:ILn}},PLn={showLabel:$f,labelFontSize:$m,labelPadding:vw,showTitle:$f,titleFontSize:$m,titlePadding:vw,showTick:$f,tickLength:vw,tickWidth:$m,showAxisLine:$f,axisLineWidth:$m};function NLn(r){let i=CO(r,"themeVariables");if(!i||!("radar"in i))return[];let s=CO(i,"radar");if(!s)return[{code:"INEFFECTIVE_CONFIG",field:"themeVariables.radar",message:"themeVariables.radar must be an object; the invalid value has no effect."}];let c=new Set(V_t),u=[],f=new Set(["axisStrokeWidth","curveStrokeWidth","graticuleStrokeWidth"]),p=new Set(["axisLabelFontSize","legendFontSize"]),m=new Set(["curveOpacity","graticuleOpacity"]),y=new Set(["axisColor","graticuleColor"]);for(let x of Object.keys(s).sort(dc)){let v=s[x],S;c.has(x)?f.has(x)&&!HE(Kl.lineWidth).valid(v)?S=HE(Kl.lineWidth).expected:p.has(x)&&!HE(Kl.fontSize).valid(v)?S=HE(Kl.fontSize).expected:x==="legendBoxSize"&&!HE(Kl.legendBoxSize).valid(v)?S=HE(Kl.legendBoxSize).expected:m.has(x)&&!W6(0,1).valid(v)?S="a finite number from 0 through 1":y.has(x)&&!Ks(v)&&(S="a safe CSS color without url(), variables, or context-breaking characters"):S="a documented radar theme field",S&&u.push({code:"INEFFECTIVE_CONFIG",field:`themeVariables.radar.${x}`,message:`themeVariables.radar.${x} must be ${S}; the invalid value has no effect.`})}return u}function OLn(r,i,s){if(r==="state")return[];if(!s)return[];let c=CO(i,s.section),u=r==="radar"?NLn(i):[],f=(p,m)=>{u.push({code:"INEFFECTIVE_CONFIG",field:p,message:`${p} must be ${m}; the invalid value has no effect.`})};if(r==="mindmap"){let p=i&&typeof i=="object"&&!Array.isArray(i)?i:void 0;p&&"layout"in p&&!["tidy-tree","cose-bilkent","radial"].includes(String(p.layout))&&f("layout",'"cose-bilkent", "radial", or "tidy-tree" for mindmap diagrams')}if(!c)return u;for(let[p,m]of Object.entries(RLn[r]??{}))p in c&&!m.valid(c[p])&&f(`${s.section}.${p}`,m.expected);if(r==="xychart")for(let p of["xAxis","yAxis"]){let m=c[p];if(!m||typeof m!="object"||Array.isArray(m))continue;let y=m;for(let x of Object.keys(y).sort()){let v=PLn[x];v?v.valid(y[x])||f(`xyChart.${p}.${x}`,v.expected):f(`xyChart.${p}.${x}`,"a documented axis-config field")}}return u}function LLn(r,i,s){if(!s)return[];let c=CO(i,s.section);if(!c)return[];let u=new Set(s.noopKeys??[]);return Object.keys(c).filter(f=>u.has(f)).sort().map(f=>({code:"INEFFECTIVE_CONFIG",field:`${s.section}.${f}`,message:`${r} config field "${f}" is accepted for Mermaid compatibility but has no effect on this renderer.`}))}function Jjt(r){let i=new Set;return r.sort((s,c)=>dc(s.field,c.field)||dc(s.message,c.message)).filter(s=>{let c=`${s.code}\0${s.field}\0${s.message}`;return i.has(c)?!1:(i.add(c),!0)})}function DLn(r,i,s){if(!s)return[];let c=i.flatMap(u=>{let f=TLn(r,u,s),p=CO(u,s.section);return r==="state"?p?$5t([p],!0):f:[...f,...OLn(r,u,s),...LLn(r,u,s)]});return Jjt(c)}function qjt(r,i,s){let c=s??HNt(r)?.config;if(!c)return[];if(r.includes(":")){let u=i&&typeof i=="object"&&!Array.isArray(i)?i:void 0,f=CO(i,c.section);if(!f)return u&&c.section in u?[{code:"INEFFECTIVE_CONFIG",field:c.section,message:`${r} config section "${c.section}" must be an object; the invalid value has no effect.`}]:[];let p=new Set(c.keys),m=new Set(c.noopKeys??[]);return Jjt(Object.keys(f).flatMap(y=>p.has(y)?m.has(y)?[{code:"INEFFECTIVE_CONFIG",field:`${c.section}.${y}`,message:`${r} config field "${y}" is accepted for compatibility but has no effect on this renderer.`}]:[]:[{code:"INEFFECTIVE_CONFIG",field:`${c.section}.${y}`,message:`${r} config field "${y}" is unknown and has no effect; check the spelling or remove it.`}]))}return DLn(r,[i],c)}var J6=2,H6=`render-contract@${J6}`,FLn={svg:{availability:"public",security:"enforced",color:"srgb",terminal:"not-applicable",transports:{library:{availability:"direct",entrypoint:"renderMermaidSVG",evidence:["src/index.ts"]},cli:{availability:"direct",entrypoint:"am render",selector:"--format svg",evidence:["src/cli/index.ts"],format:"svg",order:0,help:"SVG markup",default:!0},codeMode:{availability:"direct",entrypoint:"mermaid.renderMermaidSVGWithReceipt",evidence:["src/mcp/facade.ts","src/mcp/sdk-decl.ts"],method:"renderMermaidSVGWithReceipt",optionsType:"SvgRenderOptions",returnType:"RenderedSvg"},localMcp:{availability:"indirect",entrypoint:"execute",selector:"mermaid.renderMermaidSVGWithReceipt",evidence:["src/mcp/server.ts","src/mcp/facade.ts"]},hostedMcp:{availability:"direct",entrypoint:"render_svg",evidence:["src/mcp/hosted-server.ts"]},editor:{availability:"direct",entrypoint:"diagram preview / Save SVG",selector:"renderMermaidSVGWithReceipt",evidence:["editor/js/rendering.js","editor/js/export.js"]},website:{availability:"direct",entrypoint:"website build-time renderMermaidSVG",selector:"embedded examples and diagram assets",evidence:["website/build.ts"]}},evidence:["output-security@2",H6]},png:{availability:"public",security:"enforced",color:"srgb",terminal:"not-applicable",transports:{library:{availability:"direct",entrypoint:"renderMermaidPNG / createMermaidBrowserPNGRenderer",selector:"native Node/Bun or injected browser rasterizer",evidence:["src/agent/png.ts","src/browser-png.ts","src/index.ts"]},cli:{availability:"direct",entrypoint:"am render",selector:"--format png",evidence:["src/cli/index.ts"],format:"png",order:3,help:"PNG bytes; requires --output <file.png>; no watch/multi-input"},codeMode:{availability:"unavailable",entrypoint:"none",reason:"PNG rasterization is a host tool, not a sandbox SDK method",evidence:["src/mcp/sdk-decl.ts","src/mcp/facade.ts"]},localMcp:{availability:"direct",entrypoint:"render_png",evidence:["src/mcp/server.ts"]},hostedMcp:{availability:"direct",entrypoint:"render_png",evidence:["src/mcp/hosted-server.ts"]},editor:{availability:"direct",entrypoint:"Save PNG / Copy PNG",selector:"renderMermaidPNGInBrowserWithReceipt",evidence:["editor/js/export.js","src/browser-png.ts"]},website:{availability:"unavailable",entrypoint:"none",reason:"The site build copies curated PNG assets but exposes no PNG render adapter",evidence:["website/build.ts"]}},evidence:["output-security@2","output-color-profile@1",`png-output-policy@${3}`,H6]},ascii:{availability:"public",security:"enforced",color:"terminal-projected",terminal:"projected",transports:{library:{availability:"direct",entrypoint:"renderMermaidASCII",selector:"useAscii: true",evidence:["src/ascii/index.ts"]},cli:{availability:"direct",entrypoint:"am render",selector:"--format ascii",evidence:["src/cli/index.ts"],format:"ascii",order:1,help:"7-bit ASCII art"},codeMode:{availability:"direct",entrypoint:"mermaid.renderMermaidASCIIWithReceipt",selector:"useAscii: true",evidence:["src/mcp/facade.ts","src/mcp/sdk-decl.ts"],method:"renderMermaidASCIIWithReceipt",optionsType:"AsciiRenderOptions",returnType:"RenderedAscii"},localMcp:{availability:"indirect",entrypoint:"execute",selector:"mermaid.renderMermaidASCIIWithReceipt({ useAscii: true })",evidence:["src/mcp/server.ts","src/mcp/facade.ts"]},hostedMcp:{availability:"direct",entrypoint:"render_ascii",selector:"useAscii: true",evidence:["src/mcp/hosted-server.ts"]},editor:{availability:"direct",entrypoint:"ASCII canvas tab",selector:"renderMermaidASCII({ useAscii: true })",evidence:["editor/js/rendering.js","editor/html/right-panel.html"]},website:{availability:"unavailable",entrypoint:"none",reason:"The site build emits one Unicode diagram asset but no 7-bit ASCII output",evidence:["website/build.ts"]}},evidence:["terminal-style@1",`terminal-output-policy@${1}`,"terminal-control-sanitization",H6]},unicode:{availability:"public",security:"enforced",color:"terminal-projected",terminal:"projected",transports:{library:{availability:"direct",entrypoint:"renderMermaidASCII",selector:"useAscii: false (default)",evidence:["src/ascii/index.ts"]},cli:{availability:"direct",entrypoint:"am render",selector:"--format unicode",evidence:["src/cli/index.ts"],format:"unicode",order:2,help:"Unicode box-drawing text"},codeMode:{availability:"direct",entrypoint:"mermaid.renderMermaidASCIIWithReceipt",selector:"useAscii: false (default)",evidence:["src/mcp/facade.ts","src/mcp/sdk-decl.ts"],method:"renderMermaidASCIIWithReceipt",optionsType:"AsciiRenderOptions",returnType:"RenderedAscii"},localMcp:{availability:"indirect",entrypoint:"execute",selector:"mermaid.renderMermaidASCIIWithReceipt({ useAscii: false })",evidence:["src/mcp/server.ts","src/mcp/facade.ts"]},hostedMcp:{availability:"direct",entrypoint:"render_ascii",selector:"useAscii: false (default)",evidence:["src/mcp/hosted-server.ts"]},editor:{availability:"direct",entrypoint:"Unicode canvas tab",selector:"renderMermaidASCII({ useAscii: false })",evidence:["editor/js/rendering.js","editor/html/right-panel.html"]},website:{availability:"direct",entrypoint:"website build-time renderMermaidASCII",selector:"diagrams/workflow.txt; useAscii: false",evidence:["website/build.ts"]}},evidence:["terminal-style@1",`terminal-output-policy@${1}`,"terminal-control-sanitization",H6]},html:{availability:"public",security:"enforced",color:"terminal-projected",terminal:"projected",transports:{library:{availability:"projected",entrypoint:"renderMermaidASCII",selector:"colorMode: 'html'",evidence:["src/ascii/index.ts"]},cli:{availability:"unavailable",entrypoint:"none",reason:"HTML text is not a standalone CLI format",evidence:["src/cli/index.ts"]},codeMode:{availability:"projected",entrypoint:"mermaid.renderMermaidASCIIWithReceipt",selector:"colorMode: 'html' (terminal projection; not a standalone CLI format)",evidence:["src/mcp/facade.ts","src/mcp/sdk-decl.ts"],method:"renderMermaidASCIIWithReceipt",optionsType:"AsciiRenderOptions",returnType:"RenderedAscii"},localMcp:{availability:"indirect",entrypoint:"execute",selector:"mermaid.renderMermaidASCIIWithReceipt({ colorMode: 'html' })",evidence:["src/mcp/server.ts","src/mcp/facade.ts"]},hostedMcp:{availability:"indirect",entrypoint:"execute",selector:"mermaid.renderMermaidASCIIWithReceipt({ colorMode: 'html' })",evidence:["src/mcp/hosted-server.ts","src/mcp/facade.ts"]},editor:{availability:"unavailable",entrypoint:"none",reason:"The editor exposes diagram, Unicode and ASCII canvas tabs only",evidence:["editor/js/buttons.js","editor/html/right-panel.html"]},website:{availability:"unavailable",entrypoint:"none",reason:"The site does not emit terminal-HTML diagram artifacts",evidence:["website/build.ts"]}},evidence:["terminal-style@1",`terminal-output-policy@${1}`,"terminal-control-sanitization","html-text-escaping",H6]},layout:{availability:"public",security:"not-applicable",color:"not-applicable",terminal:"not-applicable",transports:{library:{availability:"direct",entrypoint:"layoutMermaid",evidence:["src/agent/core.ts"]},cli:{availability:"direct",entrypoint:"am render",selector:"--format layout",evidence:["src/cli/index.ts"],format:"layout",order:4,help:"Layout JSON (nodes, edges, groups, bounds)"},codeMode:{availability:"direct",entrypoint:"mermaid.layoutMermaidWithReceipt",evidence:["src/mcp/facade.ts","src/mcp/sdk-decl.ts"],method:"layoutMermaidWithReceipt",optionsType:"LayoutRenderOptions",returnType:"RenderedLayoutArtifact"},localMcp:{availability:"indirect",entrypoint:"execute",selector:"mermaid.layoutMermaidWithReceipt",evidence:["src/mcp/server.ts","src/mcp/facade.ts"]},hostedMcp:{availability:"indirect",entrypoint:"execute",selector:"mermaid.layoutMermaidWithReceipt",evidence:["src/mcp/hosted-server.ts","src/mcp/facade.ts"]},editor:{availability:"indirect",entrypoint:"verification panel",selector:"verifyMermaid(source).layout (consumed, not exported)",evidence:["editor/js/rendering.js"]},website:{availability:"unavailable",entrypoint:"none",reason:"Website verification consumes layout internally but publishes no layout artifact",evidence:["website/build.ts"]}},evidence:["positioned-artifact@1",H6]}};function MO(r){return Object.freeze({...r,evidence:Object.freeze([...r.evidence])})}var gNr=Object.freeze(["library","cli","codeMode","localMcp","hostedMcp","editor","website"]),dLe=Object.freeze(vN.map(r=>{let i=FLn[r];return Object.freeze({id:r,...i,transports:Object.freeze({library:MO(i.transports.library),cli:MO(i.transports.cli),codeMode:MO(i.transports.codeMode),localMcp:MO(i.transports.localMcp),hostedMcp:MO(i.transports.hostedMcp),editor:MO(i.transports.editor),website:MO(i.transports.website)}),evidence:Object.freeze([...i.evidence])})})),tBt=Object.freeze(dLe.filter(r=>r.transports.cli.availability==="direct").sort((r,i)=>r.transports.cli.order-i.transports.cli.order)),mNr=Object.freeze(tBt.map(r=>r.transports.cli.format)),nBt=tBt.filter(r=>r.transports.cli.default);if(nBt.length!==1)throw new Error("Render output contract must declare exactly one default CLI format");var pNr=nBt[0].transports.cli.format;var fLe=["onConfigDiagnostic"],_le=(r,i)=>({type:"string",description:r,...i===void 0?{}:{default:i}}),$O=(r,i,s={})=>({type:"number",description:r,...i===void 0?{}:{default:i},...s}),Pm=(r,i)=>$O(r,i,{minimum:0}),JE=(r,i)=>$O(r,i,{exclusiveMinimum:0}),oLe=r=>$O(r,void 0,{minimum:1,maximum:1e3}),UE=(r,i)=>({type:"boolean",description:r,...i===void 0?{}:{default:i}}),Nm=(r,i)=>({..._le(r,i),"x-agentic-mermaid-runtime-validator":"safeCssPaint"}),rBt=(r,i)=>({..._le(r,i),"x-agentic-mermaid-runtime-validator":"safeCssFontFamily"}),U6=(r,i,s=[])=>({type:"object",description:i,additionalProperties:!1,properties:r,...s.length===0?{}:{required:s}}),sLe={type:"string",enum:["uppercase","lowercase","capitalize"]},_Ln={groupHeaderHeight:JE("Architecture group-header height."),groupFontSize:JE("Architecture group-label font size."),groupFontWeight:oLe("Architecture group-label font weight."),groupLetterSpacing:$O("Architecture group-label letter spacing."),groupFont:rBt("Architecture group-label font family."),groupTextTransform:{...sLe,description:"Architecture group-label text transform."},groupPaddingX:Pm("Horizontal padding inside architecture groups."),groupPaddingY:Pm("Vertical padding inside architecture groups."),groupLabelPaddingX:Pm("Horizontal padding around architecture group labels."),groupCornerRadius:Pm("Architecture group corner radius."),groupLineWidth:Pm("Architecture group border width."),groupText:Nm("Architecture group-label color."),serviceFontSize:JE("Architecture service-label font size."),serviceFontWeight:oLe("Architecture service-label font weight."),serviceLetterSpacing:$O("Architecture service-label letter spacing."),serviceTextTransform:{...sLe,description:"Architecture service-label text transform."},servicePaddingX:Pm("Horizontal padding inside architecture services."),servicePaddingY:Pm("Vertical padding inside architecture services."),serviceCornerRadius:Pm("Architecture service corner radius."),serviceLineWidth:Pm("Architecture service border width."),serviceText:Nm("Architecture service-label color."),edgeFontSize:JE("Architecture connector-label font size."),edgeFontWeight:oLe("Architecture connector-label font weight."),edgeLetterSpacing:$O("Architecture connector-label letter spacing."),edgeTextTransform:{...sLe,description:"Architecture connector-label text transform."},edgeLineWidth:Pm("Architecture connector width."),edgeBendRadius:Pm("Architecture connector bend radius."),edgeStroke:Nm("Architecture connector color."),edgeText:Nm("Architecture connector-label color."),iconSize:JE("Architecture group icon size."),serviceIconSize:JE("Architecture service icon size."),junctionOuterRadius:JE("Architecture junction outer radius."),junctionInnerRadius:Pm("Architecture junction inner radius."),groupSurface:Nm("Architecture group surface color."),groupHeaderSurface:Nm("Architecture group-header surface color."),groupBorder:Nm("Architecture group border color."),serviceSurface:Nm("Architecture service surface color."),serviceBorder:Nm("Architecture service border color.")},jLn={...U6(_Ln,"Sparse architecture visual overrides merged over resolved defaults."),"x-agentic-mermaid-runtime-validator":"architectureVisual"},BLn=(()=>{let r=ZH(),i=r.$defs,s=m=>{if(Array.isArray(m))return m.map(s);if(m===null||typeof m!="object")return m;let y=m,x=y.$ref;if(typeof x=="string"&&x.startsWith("#/$defs/")){let v=i?.[x.slice(8)];if(!v)throw new Error(`StyleSpec schema has unresolved local reference ${x}`);return s(v)}return Object.fromEntries(Object.entries(y).filter(([v])=>v!=="$defs").map(([v,S])=>[v,s(S)]))},{$schema:c,$id:u,title:f,...p}=r;return s(p)})(),Vjt={anyOf:[{type:"string",description:"Registered Style or Palette name."},BLn],"x-agentic-mermaid-validation-expectation":"a registered Style name or StyleSpec"},iBt={anyOf:[Vjt,{type:"array",items:Vjt,description:"Style stack merged from left to right."}],description:"A registered name, inline StyleSpec, or left-to-right stack of either.","x-agentic-mermaid-runtime-validator":"styleInput"},aLe={anyOf:[{type:"null"},{type:"string"},{type:"number"},{type:"boolean"},{type:"array",items:{$ref:"#/$defs/jsonValue"}},{type:"object",additionalProperties:{$ref:"#/$defs/jsonValue"}}],description:"A finite, acyclic JSON value without prototype keys.","x-agentic-mermaid-validation-expectation":"a finite, acyclic JSON value without prototype keys"};function oBt(r){if(typeof r!="object"||r===null||Object.isFrozen(r))return r;for(let i of Object.values(r))oBt(i);return Object.freeze(r)}var Yjt=["flowchart","state","class","er","architecture"],GLn=["flowchart","state","sequence","timeline","class","er","journey","xychart","pie","quadrant","gantt","mindmap","gitgraph"],RO=oBt({bg:{typeScript:"string",description:"Background color or CSS variable.",defaultLabel:"`#FFFFFF`",validationExpectation:"be a safe non-fetching CSS paint",schema:Nm("Background color or CSS variable.","#FFFFFF"),terminal:"consumed"},fg:{typeScript:"string",description:"Primary foreground and text color.",defaultLabel:"`#27272A`",validationExpectation:"be a safe non-fetching CSS paint",schema:Nm("Primary foreground and text color.","#27272A"),terminal:"consumed"},line:{typeScript:"string",description:"Connector and secondary-line color.",defaultLabel:"derived",validationExpectation:"be a safe non-fetching CSS paint",schema:Nm("Connector and secondary-line color."),terminal:"consumed"},accent:{typeScript:"string",description:"Arrowhead, highlight, and data accent color.",defaultLabel:"derived",validationExpectation:"be a safe non-fetching CSS paint",schema:Nm("Arrowhead, highlight, and data accent color."),terminal:"consumed"},muted:{typeScript:"string",description:"Secondary text and label color.",defaultLabel:"derived",validationExpectation:"be a safe non-fetching CSS paint",schema:Nm("Secondary text and label color."),terminal:"projected",terminalNote:"terminal themes have no dedicated muted-text role"},surface:{typeScript:"string",description:"Node and group surface color.",defaultLabel:"derived",validationExpectation:"be a safe non-fetching CSS paint",schema:Nm("Node and group surface color."),terminal:"projected",terminalNote:"terminal cells do not paint graphical surfaces"},border:{typeScript:"string",description:"Node and group border color.",defaultLabel:"derived",validationExpectation:"be a safe non-fetching CSS paint",schema:Nm("Node and group border color."),terminal:"consumed"},font:{typeScript:"string",description:"CSS font family or stack.",defaultLabel:"`Inter`",validationExpectation:"be a safe non-fetching CSS font family or stack",schema:rBt("CSS font family or stack.","Inter"),terminal:"projected",terminalNote:"the host terminal owns the font face"},style:{typeScript:"StyleInput | StyleInput[]",description:"Registered Style/Palette name, inline StyleSpec, or left-to-right stack.",defaultLabel:"`crisp`",validationExpectation:"be a registered Style name or StyleSpec, or an array of them",schema:iBt,terminal:"consumed"},padding:{typeScript:"number",description:"Canvas padding in SVG user units.",defaultLabel:"`40`",validationExpectation:"be a non-negative finite number",schema:Pm("Canvas padding in SVG user units.",40),terminal:"not-applicable",terminalNote:"terminal output uses paddingX, paddingY, and boxBorderPadding",applicableBuiltinFamilies:["flowchart","state","architecture"]},nodeSpacing:{typeScript:"number",description:"Horizontal spacing between sibling nodes.",defaultLabel:"`24`",validationExpectation:"be a non-negative finite number",schema:Pm("Horizontal spacing between sibling nodes.",24),terminal:"not-applicable",terminalNote:"terminal layout has a cell-grid spacing contract",applicableBuiltinFamilies:Yjt},layerSpacing:{typeScript:"number",description:"Vertical spacing between graph layers.",defaultLabel:"`40`",validationExpectation:"be a non-negative finite number",schema:Pm("Vertical spacing between graph layers.",40),terminal:"not-applicable",terminalNote:"terminal layout has a cell-grid spacing contract",applicableBuiltinFamilies:Yjt},wrappingWidth:{typeScript:"number",description:"Flowchart measured-label wrapping budget in pixels.",defaultLabel:"unset",validationExpectation:"be a positive finite number",schema:JE("Flowchart measured-label wrapping budget in pixels."),terminal:"not-applicable",terminalNote:"terminal output uses maxWidth or targetWidth",applicableBuiltinFamilies:["flowchart"]},componentSpacing:{typeScript:"number",description:"Spacing between disconnected graph components for compatible extension families; no built-in family currently consumes it.",defaultLabel:"extension-defined",validationExpectation:"be a non-negative finite number",schema:Pm("Spacing between disconnected graph components for compatible extension families; no built-in family currently consumes it."),terminal:"not-applicable",terminalNote:"terminal layout has a cell-grid spacing contract",applicableBuiltinFamilies:[]},transparent:{typeScript:"boolean",description:"Omit the painted SVG canvas background.",defaultLabel:"`false`",validationExpectation:"be a boolean",schema:UE("Omit the painted SVG canvas background.",!1),terminal:"projected",terminalNote:"terminal output has no painted canvas background"},interactive:{typeScript:"boolean",description:"Enable hover tooltips for supported chart data points.",defaultLabel:"`false`",validationExpectation:"be a boolean",schema:UE("Enable hover tooltips for supported chart data points.",!1),terminal:"projected",terminalNote:"terminal output is a static semantic projection",applicableBuiltinFamilies:["xychart","pie","quadrant"]},shadow:{typeScript:"boolean",description:"Paint explicit drop shadows on node shapes.",defaultLabel:"`false`",validationExpectation:"be a boolean",schema:UE("Paint explicit drop shadows on node shapes.",!1),terminal:"projected",terminalNote:"elevation projects to borders and labels",applicableBuiltinFamilies:GLn},class:{typeScript:"{ hierarchicalNamespaces?: boolean }",description:"Class-diagram rendering controls.",defaultLabel:"`hierarchicalNamespaces: true`",validationExpectation:"be a class options object",schema:U6({hierarchicalNamespaces:UE("Nest namespace compounds.",!0)},"Class-diagram rendering controls."),terminal:"not-applicable",terminalNote:"this option configures graphical class layout",applicableBuiltinFamilies:["class"]},architecture:{typeScript:"{ visual?: ArchitectureVisualOverrides }",description:"Sparse architecture renderer visual metric and paint overrides.",defaultLabel:"built-in metrics",validationExpectation:"be an architecture options object",schema:U6({visual:jLn},"Architecture renderer visual metric and paint overrides."),terminal:"not-applicable",terminalNote:"this option configures graphical architecture rendering",applicableBuiltinFamilies:["architecture"]},timeline:{typeScript:"{ maxWidth?: number }",description:"Timeline layout controls.",defaultLabel:"`maxWidth`: unset",validationExpectation:"be a timeline options object",schema:U6({maxWidth:JE("Best-effort width budget for horizontal timelines.")},"Timeline layout controls."),terminal:"not-applicable",terminalNote:"terminal output uses maxWidth or targetWidth",applicableBuiltinFamilies:["timeline"]},journey:{typeScript:"{ experienceCurve?: boolean }",description:"User-journey graphical controls.",defaultLabel:"`experienceCurve: true`",validationExpectation:"be a journey options object",schema:U6({experienceCurve:UE("Connect journey score markers with an experience curve.",!0)},"User-journey graphical controls."),terminal:"not-applicable",terminalNote:"experience curves are graphical-only",applicableBuiltinFamilies:["journey"]},gantt:{typeScript:"{ dependencyArrows?: boolean; criticalPath?: boolean }",description:"Gantt dependency and critical-path overlays.",defaultLabel:"both `false`",validationExpectation:"be a Gantt options object",schema:U6({dependencyArrows:UE("Draw scheduled dependency connectors.",!1),criticalPath:UE("Emphasize critical-path tasks and connectors.",!1)},"Gantt dependency and critical-path overlays."),terminal:"not-applicable",terminalNote:"graphical Gantt connector emphasis is not represented in cells",applicableBuiltinFamilies:["gantt"]},mermaidConfig:{typeScript:"MermaidRuntimeConfig",description:"Mermaid-style recursive runtime configuration.",defaultLabel:"source config",validationExpectation:"be a plain JSON object",schema:{type:"object",description:"Mermaid-style recursive runtime configuration.",additionalProperties:{$ref:"#/$defs/jsonValue"}},terminal:"consumed"},embedFontImport:{typeScript:"boolean",description:"Embed the Google Fonts import in SVG styles; PNG forces this off for offline rasterization.",defaultLabel:"`false`",validationExpectation:"be a boolean",schema:UE("Embed the Google Fonts import in SVG styles; PNG forces this off for offline rasterization.",!1),terminal:"not-applicable",terminalNote:"terminal output embeds no web-font import"},compact:{typeScript:"boolean",description:"Compact SVG serialization while preserving agent hooks.",defaultLabel:"`false`",validationExpectation:"be a boolean",schema:UE("Compact SVG serialization while preserving agent hooks.",!1),terminal:"not-applicable",terminalNote:"compact controls SVG serialization"},idPrefix:{typeScript:"string",description:"Non-empty namespace for generated SVG definition IDs and local references.",defaultLabel:"unset",validationExpectation:"be non-empty and contain only ASCII letters, digits, underscore, hyphen, dot, and colon",schema:{..._le("Non-empty namespace for generated SVG definition IDs and local references."),pattern:"^[A-Za-z0-9_.:-]+$"},terminal:"not-applicable",terminalNote:"terminal output has no SVG definition ids"},security:{typeScript:"'default' | 'strict'",description:"Active SVG content is rejected in every mode; strict additionally rejects every external reference. Raw Mermaid themeCSS is rejected in both modes.",defaultLabel:"`default`",validationExpectation:"be default or strict",schema:{type:"string",enum:["default","strict"],description:"Active SVG content is rejected in every mode; strict additionally rejects every external reference. Raw Mermaid themeCSS is rejected in both modes.",default:"default"},terminal:"not-applicable",terminalNote:"terminal text has its own control-character and HTML-color safety projection"},ganttToday:{typeScript:"string",description:"Explicit deterministic date for the Gantt today marker.",defaultLabel:"unset",validationExpectation:"be a string",schema:_le("Explicit deterministic date for the Gantt today marker."),terminal:"consumed",applicableBuiltinFamilies:["gantt"]},seed:{typeScript:"number",description:"Deterministic re-roll seed for stochastic Styles.",defaultLabel:"`0`",validationExpectation:"be a finite number",schema:$O("Deterministic re-roll seed for stochastic Styles.",0),terminal:"not-applicable",terminalNote:"terminal glyph geometry is deterministic and has no stochastic ink"}}),lk=Object.freeze(Object.keys(RO)),zLn=Object.freeze(lk.filter(r=>"applicableBuiltinFamilies"in RO[r]));function Sw(r){if(typeof r!="object"||r===null||Array.isArray(r))return!1;let i=Object.getPrototypeOf(r);return i===Object.prototype||i===null}var WLn=new Set(["__proto__","prototype","constructor"]);function TO(r){return Sw(r)?r:void 0}function cLe(r){let i=s=>Array.isArray(s)?s.map(i):Sw(s)?Object.fromEntries(Object.entries(s).map(([c,u])=>[c,i(u)])):s;return i(r)}function sBt(r){let i=String(r[0]??"");for(let s of r.slice(1))i+=typeof s=="number"?`[${s}]`:`.${s}`;return`render option "${i}"`}function aBt(r){return pH(O3e(r).map(i=>i.path.length>0?`${sBt(i.path)} ${i.message}`:`render options ${i.message}`),"render options")}function cBt(r,i){let s=r.$ref;if(typeof s!="string"||!s.startsWith("#/"))return;let c=i;for(let u of s.slice(2).split("/")){if(!Sw(c))return;let f=u.replaceAll("~1","/").replaceAll("~0","~");c=c[f]}return TO(c)}function lLe(r,i,s){let c=cBt(i,s);if(c)return lLe(r,c,s);let u=Array.isArray(i.anyOf)?i.anyOf.map(TO).filter(f=>f!==void 0):[];if(u.length>0)return u.some(f=>lLe(r,f,s));switch(i.type){case"null":return r===null;case"string":return typeof r=="string";case"number":return typeof r=="number";case"integer":return typeof r=="number";case"boolean":return typeof r=="boolean";case"array":return Array.isArray(r);case"object":return Sw(r);default:return!0}}function IO(r,i,s,c,u){let f=cBt(i,s);if(i.$ref!==void 0)return f?IO(r,f,s,c,u):[{path:c,message:"uses an unresolved schema reference",generic:!1}];let p=Array.isArray(i.anyOf)?i.anyOf.map(TO).filter(v=>v!==void 0):[];if(p.length>0){let v=p.filter(M=>lLe(r,M,s)),E=(v.length>0?v:p).map(M=>IO(r,M,s,c,u));if(!E.some(M=>M.length===0)){let M=i["x-agentic-mermaid-validation-expectation"];return v.length===0&&typeof M=="string"?[{path:c,message:`must be ${M}`,generic:!0}]:E.sort((R,P)=>R.length-P.length)[0]??[{path:c,message:"must match an allowed shape",generic:!0}]}}if("const"in i&&r!==i.const)return[{path:c,message:`must equal ${String(i.const)}`,generic:!0}];if(Array.isArray(i.enum)&&!i.enum.includes(r))return[{path:c,message:`must be one of ${i.enum.map(String).join(" | ")}`,generic:!0}];let m=i.type;if(!(m===void 0||m==="null"&&r===null||m==="string"&&typeof r=="string"||m==="number"&&typeof r=="number"&&Number.isFinite(r)||m==="integer"&&typeof r=="number"&&Number.isFinite(r)&&Number.isInteger(r)||m==="boolean"&&typeof r=="boolean"||m==="array"&&Array.isArray(r)||m==="object"&&Sw(r))){let v=m==="number"?"a finite number":m==="integer"?"a finite integer":m==="object"?"a plain JSON object":m==="array"?"an array":m==="null"?"null":`a ${String(m)}`;return[{path:c,message:`must be ${v}`,generic:!0}]}if(typeof r=="number"){if(typeof i.minimum=="number"&&r<i.minimum)return[{path:c,message:`must be at least ${i.minimum}`,generic:!0}];if(typeof i.exclusiveMinimum=="number"&&r<=i.exclusiveMinimum)return[{path:c,message:`must be greater than ${i.exclusiveMinimum}`,generic:!0}];if(typeof i.maximum=="number"&&r>i.maximum)return[{path:c,message:`must be at most ${i.maximum}`,generic:!0}]}if(typeof r=="string"&&typeof i.pattern=="string"){let v=!1;try{v=new RegExp(i.pattern).test(r)}catch{return[{path:c,message:"uses an invalid schema pattern",generic:!1}]}if(!v)return[{path:c,message:`must match ${i.pattern}`,generic:!0}]}if(Array.isArray(r)&&m==="array"){if(u.has(r))return[{path:c,message:"must be acyclic",generic:!1}];let v=TO(i.items);if(v){u.add(r);try{let S=r.flatMap((E,M)=>IO(E,v,s,[...c,M],u));if(S.length>0)return S}finally{u.delete(r)}}}if(Sw(r)&&m==="object"){if(u.has(r))return[{path:c,message:"must be acyclic",generic:!1}];u.add(r);try{let v=TO(i.properties)??{},S=Array.isArray(i.required)?i.required.filter(M=>typeof M=="string"):[],E=[];for(let M of S)Object.prototype.hasOwnProperty.call(r,M)||E.push({path:[...c,M],message:"is required",generic:!1});for(let[M,R]of Object.entries(r)){if(WLn.has(M)){E.push({path:[...c,M],message:"uses a forbidden prototype key",generic:!1});continue}let P=TO(v[M]);if(P){E.push(...IO(R,P,s,[...c,M],u));continue}if(i.additionalProperties===!1){E.push({path:[...c,M],message:"is not allowed",generic:!1});continue}let N=TO(i.additionalProperties);N&&E.push(...IO(R,N,s,[...c,M],u))}if(E.length>0)return E}finally{u.delete(r)}}let x=i["x-agentic-mermaid-runtime-validator"];if(x==="safeCssColor"&&Ks(r)===void 0)return[{path:c,message:"must be a safe, non-fetching CSS color",generic:!1}];if(x==="safeCssPaint"&&xg(r)===void 0)return[{path:c,message:"must be a safe, non-fetching CSS paint",generic:!1}];if(x==="safeCssFontFamily"&&NA(r)===void 0)return[{path:c,message:"must be a safe, non-fetching CSS font family or stack",generic:!1}];if(x==="styleInput")try{Lce(r)}catch(v){return[{path:c,message:`is invalid: ${v instanceof Error?v.message:String(v)}`,generic:!1}]}if(x==="architectureVisual"&&Sw(r)){let v=r.junctionOuterRadius,S=r.junctionInnerRadius;if(typeof v=="number"&&typeof S=="number"&&S>v)return[{path:[...c,"junctionInnerRadius"],message:"must not exceed junctionOuterRadius",generic:!1}]}return[]}function Ble(r){if(!Sw(r))return["render options must be a plain JSON object"];let i=aBt(r);if(i.length>0)return i;let s=[],c=new Set(lk),u=hLe();for(let[f,p]of Object.entries(r)){if(!c.has(f)){s.push(`unknown render option "${f}"`);continue}if(p===null){s.push(`render option "${f}" must be omitted instead of null`);continue}let m=RO[f],y=IO(p,m.schema,u,[f],new Set);y.length>0&&y.every(x=>x.generic&&x.path.length===1)?s.push(`render option "${f}" must ${m.validationExpectation}`):s.push(...y.map(x=>`${sBt(x.path)} ${x.message}`))}return pH(s,"render options")}function hLe(){let r={};for(let i of lk){let s=RO[i],c="terminalNote"in s?s.terminalNote:void 0,u="applicableBuiltinFamilies"in s?s.applicableBuiltinFamilies:void 0;r[i]={...cLe(s.schema),"x-agentic-mermaid-terminal":s.terminal,...c===void 0?{}:{"x-agentic-mermaid-terminal-note":c},...u===void 0?{}:{"x-agentic-mermaid-applicable-builtin-families":[...u]}}}return{$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://agentic-mermaid.dev/schemas/render-options.schema.json",type:"object",additionalProperties:!1,properties:r,$defs:{jsonValue:cLe(aLe)}}}function lBt(r){return{...cLe(iBt),...r===void 0?{}:{description:r}}}var OU=class extends Error{constructor(s,c){super(`Parsed Mermaid family "${s}" serialized as family "${c}"`);this.expectedFamilyId=s;this.detectedFamilyId=c}expectedFamilyId;detectedFamilyId;name="ParsedDiagramFamilyMismatchError";code="PARSED_DIAGRAM_FAMILY_MISMATCH"},qE=class extends Error{name="RenderCapabilityError";code="UNSATISFIED_RENDER_CAPABILITIES";output;family;decision;constructor(i,s,c,u){super(i),this.output=s,this.family=Object.freeze({id:c.identity.id,version:c.identity.version}),this.decision=u}toJSON(){return{name:this.name,code:this.code,message:this.message,output:this.output,family:this.family,decision:this.decision}}},gLe=new WeakMap;function JA(r){let i=gLe.get(r);if(!i)throw new Error("Resolved render request has no internal execution plan");return i}function HLn(r,i){if(r.id.startsWith("family:")){let c=new Set(r.applicableRenderOptions??[]);return Object.freeze(i.flatMap(u=>!zLn.includes(u)||c.has(u)?[]:[Object.freeze({code:"RENDER_OPTION_NOT_APPLICABLE",feature:`render-option:${u}`,message:`Render option "${u}" does not apply to extension family "${r.id}". Its FamilyDescriptor does not list the field in applicableRenderOptions.`})]))}let s=r.id;return Object.freeze(i.flatMap(c=>{let u=RO[c];if(!("applicableBuiltinFamilies"in u))return[];let f=u.applicableBuiltinFamilies;if(f.includes(s))return[];let p=f.length===0?"No built-in family currently consumes this option.":`Applicable built-in families: ${f.join(", ")}.`;return[Object.freeze({code:"RENDER_OPTION_NOT_APPLICABLE",feature:`render-option:${c}`,message:`Render option "${c}" does not apply to built-in Mermaid family "${s}". ${p}`})]}))}function ULn(r,i){let s=new Set;return Object.freeze([...r.resolutionDiagnostics??[],...i].flatMap(c=>{let u=q6(c);return s.has(u)?[]:(s.add(u),[Object.freeze({...c})])}))}function Gle(r,i=[]){let s=gLe.get(r)?.executionDecision;return Object.freeze({version:r.version,output:r.output,sharedRequestDigest:r.sharedRequestDigest,requestDigest:r.requestDigest,appearanceDigest:r.appearance.digest,capabilityDecision:r.capabilityDecision,diagnostics:ULn(r,i),...s?{executionDecision:s}:{}})}function V6(r){return Object.freeze({renderOptions:r.renderOptions,...r.appearance.face?{styleFace:r.appearance.face}:{},...r.familyConfig?{familyConfig:r.familyConfig}:{},...r.appearance.family?{familyAppearance:r.appearance.family}:{}})}function JLn(r,i,s){let c={...r},u=p=>K2[p].some(m=>s?.[m]!==void 0),f=["bg","fg","line","accent","muted","surface","border"];for(let p of f)c[p]===void 0&&!u(p)&&i.colors?.[p]!==void 0&&(c[p]=i.colors[p]);return c.font===void 0&&i.font!==void 0&&(c.font=i.font),c}function uLe(r){let i={};for(let s of lk){let c=r[s];c!==void 0&&(i[s]=c)}return i}var qLn=new Set(["padding","nodeSpacing","layerSpacing","wrappingWidth","class"]);function VLn(r){return Object.fromEntries(Object.entries(r).filter(([i,s])=>s!==void 0&&!fLe.includes(i)))}function YLn(r,i=r){return QNt(r.lines[0]??r.firstLine,r.originalText,"strict",i.wrapperSource?.length??0,i.lines[0]??i.firstLine)}function XLn(r,i,s){if(s.onConfigDiagnostic!==void 0)throw new TypeError(`Family "${r.id}" request normalizer may not return executable option "onConfigDiagnostic"`);let c=Ble(VLn(s));if(c.length>0)throw new TypeError(`Family "${r.id}" returned invalid normalized RenderOptions: ${c.join("; ")}`);let u=uLe(i),f=uLe(s);for(let p of lk)if(!qLn.has(p)&&q6(u[p])!==q6(f[p]))throw new TypeError(`Family "${r.id}" request normalizer may not rewrite non-geometry option "${p}"`)}function KLn(r,i,s){let c=new Set(["bg","fg","line","accent","muted","surface","border","shadow","font","embedFontImport"]),u=Object.keys(i).find(p=>!c.has(p));if(u)throw new TypeError(`Family "${r.id}" returned unknown appearance color field "${u}"`);let f={...s};for(let p of["bg","fg","line","accent","muted","surface","border"]){let m=i[p];if(m===void 0)continue;let y=xg(m);if(y===void 0)throw new TypeError(`Family "${r.id}" returned an unsafe ${p} paint`);f[p]=y}if(i.font!==void 0){let p=NA(i.font);if(p===void 0)throw new TypeError(`Family "${r.id}" returned an unsafe font family`);if(p!==s.font)throw new TypeError(`Family "${r.id}" request normalizer may not rewrite appearance field "font"`)}if(i.shadow!==void 0){if(typeof i.shadow!="boolean")throw new TypeError(`Family "${r.id}" returned a non-boolean shadow value`);if(i.shadow!==s.shadow)throw new TypeError(`Family "${r.id}" request normalizer may not rewrite appearance field "shadow"`)}if(i.embedFontImport!==void 0){if(typeof i.embedFontImport!="boolean")throw new TypeError(`Family "${r.id}" returned a non-boolean embedFontImport value`);if(i.embedFontImport!==s.embedFontImport)throw new TypeError(`Family "${r.id}" request normalizer may not rewrite appearance field "embedFontImport"`)}return f}var Xjt=64,Dle=1e5,Fle=2e6;function jle(r,i="$",s=0,c=new Set,u={nodes:0,chars:0}){if(typeof r=="string"){if(u.chars+=r.length,u.chars>Fle)throw new TypeError(`data exceeds the ${Fle}-character aggregate limit at ${i}`);return r}if(r===null||typeof r!="object")return r;if(s>Xjt)throw new TypeError(`data exceeds maximum depth ${Xjt} at ${i}`);if(++u.nodes>Dle)throw new TypeError(`data exceeds the ${Dle}-node aggregate limit at ${i}`);if(c.has(r))throw new TypeError(`data must be acyclic at ${i}`);if(Array.isArray(r)){if(r.length>Dle)throw new TypeError(`data array exceeds the ${Dle}-entry limit at ${i}`);c.add(r);try{let f=[];for(let p=0;p<r.length;p++){if(!Object.prototype.hasOwnProperty.call(r,p))throw new TypeError(`data must not contain a sparse array at ${i}[${p}]`);f.push(jle(r[p],`${i}[${p}]`,s+1,c,u))}return f}finally{c.delete(r)}}if(!Sw(r))return r;c.add(r);try{let f=Object.create(null);for(let[p,m]of Object.entries(r)){if(u.chars+=p.length,u.chars>Fle)throw new TypeError(`data exceeds the ${Fle}-character aggregate limit at ${i}.${p}`);m!==void 0&&(f[p]=jle(m,`${i}.${p}`,s+1,c,u))}return f}finally{c.delete(r)}}function Kjt(r,i,s){if(i===void 0)return;if(!Sw(i))throw new TypeError(`Family "${r.id}" returned ${s} data that is not a plain object`);let c;try{c=jle(i)}catch(p){throw new TypeError(`Family "${r.id}" returned invalid ${s} data: ${p instanceof Error?p.message:String(p)}`)}let u={...aLe,$defs:{jsonValue:aLe}},f=IO(c,u,u,[`family${s==="config"?"Config":"Appearance"}`],new Set);if(f.length>0){let p=f.map(m=>`${m.path.join(".")} ${m.message}`).join("; ");throw new TypeError(`Family "${r.id}" returned invalid ${s} data: ${p}`)}return Jh(c)}function QLn(r,i,s,c,u,f){if(!r.normalizeRequest)return{renderOptions:s,colors:c};let p=Object.freeze({source:Jh(i),renderOptions:Jh(s),colors:Jh(c),...u?{style:Jh(u)}:{},...f?{styleFace:Jh(f)}:{}}),m=r.normalizeRequest(p);if(m===void 0)return{renderOptions:s,colors:c};let y;try{y=mLe(m,`Family "${r.id}" request normalizer result`)}catch(N){throw new TypeError(`Family "${r.id}" request normalizer returned invalid data: ${N instanceof Error?N.message:String(N)}`)}if(!Sw(y))throw new TypeError(`Family "${r.id}" request normalizer must return a plain object`);let x=Object.keys(y).find(N=>!["renderOptions","familyConfig","appearance"].includes(N));if(x)throw new TypeError(`Family "${r.id}" request normalizer returned unknown field "${x}"`);let v=y,S=v.appearance;if(S!==void 0){let N=S;if(!Sw(N))throw new TypeError(`Family "${r.id}" request normalizer returned a non-object appearance`);let F=Object.keys(N).find(L=>!["colors","family"].includes(L));if(F)throw new TypeError(`Family "${r.id}" request normalizer returned unknown appearance field "${F}"`)}let E=v.renderOptions??s;XLn(r,s,E);let M=S?.colors?KLn(r,S.colors,c):c,R=Kjt(r,v.familyConfig,"config"),P=Kjt(r,S?.family,"appearance");return{renderOptions:E,colors:M,...R?{familyConfig:R}:{},...P?{familyAppearance:P}:{}}}function q6(r){if(r===null||typeof r!="object")return JSON.stringify(r);if(Array.isArray(r))return`[${r.map(q6).join(",")}]`;let i=r;return`{${Object.keys(i).sort().filter(s=>i[s]!==void 0).map(s=>`${JSON.stringify(s)}:${q6(i[s])}`).join(",")}}`}function UA(r){let i;try{i=mLe(r,"render contract digest input")}catch(u){let f=(u instanceof Error?u.message:String(u)).replace("data exceeds maximum depth","data exceeds maximum nesting depth");throw new TypeError(f)}SA(i,"render contract digest input",{allowUndefinedObjectProperties:!0});let s=q6(i),c=0xcbf29ce484222325n;for(let u=0;u<s.length;u++)c^=BigInt(s.charCodeAt(u)),c=BigInt.asUintN(64,c*0x100000001b3n);return`fnv1a64:${c.toString(16).padStart(16,"0")}`}function Jh(r,i="$",s=new Set){if(r===null||typeof r!="object")return r;if(s.has(r))throw new TypeError(`render request contains a cycle at ${i}`);let c=Object.getPrototypeOf(r);if(!Array.isArray(r)&&c!==Object.prototype&&c!==null)throw new TypeError(`render request contains a non-JSON object at ${i}`);s.add(r);let u=Array.isArray(r)?r.map((f,p)=>Jh(f,`${i}[${p}]`,s)):Object.fromEntries(Object.entries(r).map(([f,p])=>[f,Jh(p,`${i}.${f}`,s)]));return s.delete(r),Object.freeze(u)}function mLe(r,i){try{return Jh(jle(r))}catch(s){throw new TypeError(`${i} could not be snapshotted: ${s instanceof Error?s.message:String(s)}`)}}function ZLn(r){if(typeof r!="object"&&typeof r!="function"||r===null)throw new TypeError("Invalid RenderOptions: render options must be an object");let i=[],s;for(let[f,p]of Object.entries(r))f==="onConfigDiagnostic"?s=p:p!==void 0&&i.push([f,p]);if(s!==void 0&&typeof s!="function")throw new TypeError("Invalid RenderOptions: onConfigDiagnostic must be a function");let c=Object.fromEntries(i),u;try{u=mLe(c,"RenderOptions")}catch(f){let p=(f instanceof Error?f.message:String(f)).replace("data exceeds maximum depth","render option tree exceeds maximum nesting depth");throw new TypeError(`Invalid RenderOptions: ${p}`)}return Object.freeze({serializable:u,...s===void 0?{}:{onConfigDiagnostic:s}})}function eDn(r){let i=r===void 0?[]:Array.isArray(r)?r:[r];return Jh(i.flatMap(s=>{if(typeof s!="string"||s==="crisp")return[];let c=tU(s);return c?[{input:s,canonicalId:c.canonicalId}]:[]}))}function tDn(r){let i=new Set;for(let s of Object.values(K2))for(let c of s){let u=r.config.themeVariables?.[c];typeof u=="string"&&u.length>0&&Ks(u)===void 0&&i.add(c)}return Object.freeze([...i].sort())}var pLe="1.0.0";function XI(r,i,s=pLe){return i?[{id:r,version:s}]:[]}function kw(r,i=`^${pLe}`){return{id:r,range:i,level:"required"}}function Qjt(r){return`scene-primitive:${r.primitive}/${r.feature}/${r.operation}`}function nDn(r){let i=new Set(r.scenePrimitiveEvidence.filter(s=>s.applicability==="applicable").map(s=>s.primitive));return sF.filter(s=>i.has(s.primitive))}function Zjt(r,i){return r.backend.capabilities.some(s=>s.primitive===i.primitive&&s.feature===i.feature&&s.operation===i.operation&&s.realization!=="unsupported")}function rDn(r){return r.resolutions.filter(i=>i.level==="required"&&i.status!=="selected").map(i=>i.id).join(", ")}function iDn(r,i,s,c,u,f){let p=rDn(f),m=p?` (unsatisfied capabilities: ${p})`:"";return r==="layout"?new qE(`No public layout projection registered for Mermaid family "${i.id}"${m}`,r,i,f):r==="ascii"||r==="unicode"||r==="html"?new qE(`No ASCII renderer registered for Mermaid family ${i.id}${m}`,r,i,f):s.styled&&!i.lowerScene?new qE(`Family "${i.id}" does not support styled rendering (no SceneGraph lowering registered). Render without the style option, or register a lowerScene hook for the family.${m}`,r,i,f):c==="scene"&&i.layout&&i.lowerScene&&!u?new qE(s.styled?`Style "${s.style?.name??"(inline)"}" requires an unavailable SceneGraph backend${m}`:`Default SceneGraph backend is not registered${m}`,r,i,f):new qE(`No SVG renderer registered for Mermaid family ${i.id}${m}`,r,i,f)}function oDn(r,i,s,c,u,f){let p,m,y;s==="svg"||s==="png"?(p=i.styled||r.lowerScene?"scene":"family-svg",p==="scene"&&(y=i.styled?i.inferredBackend:"default",m=wOe(y,c.backendPolicy))):s==="layout"?p="layout":p="terminal";let x=p==="scene"?nDn(r):[],v=m?x.flatMap(F=>XI(Qjt(F),Zjt(m,F))):[],S=[{id:r.identity.id,version:r.identity.version},...XI("operation:layout",r.layout!==void 0),...XI("operation:project-positioned",r.projectPositioned!==void 0),...XI("operation:lower-scene",r.lowerScene!==void 0),...XI("operation:render-svg",r.renderSvg!==void 0),...XI("operation:render-terminal",r.renderAscii!==void 0),...XI("core:scene",p==="scene"),...XI("backend:scene-renderer",m!==void 0,m?.identity.version),...v],E=[kw("core:family-descriptor"),kw(r.identity.id,r.identity.version)],M;switch(p){case"scene":E.push(kw("core:scene"),kw("operation:layout"),kw("operation:lower-scene"),kw("backend:scene-renderer",m?.identity.version??pLe),...x.map(F=>kw(Qjt(F)))),M=!!(r.layout&&r.lowerScene&&m&&x.every(F=>Zjt(m,F)));break;case"family-svg":E.push(kw("operation:layout"),kw("operation:render-svg")),M=!!(r.layout&&r.renderSvg);break;case"terminal":E.push(kw("operation:render-terminal")),M=r.renderAscii!==void 0;break;case"layout":E.push(kw("operation:layout"),kw("operation:project-positioned")),M=!!(r.layout&&r.projectPositioned);break}let R=dPt(s,{offers:S,requirements:E,outputAvailable:M});if(!R.accepted)throw iDn(s,r,i,p,m,R);let P;if(p==="scene"||p==="family-svg"){let F=Object.freeze(p==="scene"?{mode:"scene",requestedId:y,selectedId:m.identity.id,version:m.identity.version,hostPolicy:c.backendPolicy!==void 0}:{mode:"family-svg"}),L={family:Object.freeze({id:r.identity.id,version:r.identity.version}),backend:F};P=Object.freeze({...L,digest:UA(L)})}let N=u===void 0?void 0:Object.freeze(qjt(r.id,u,r.config).map(F=>Object.freeze({...F})));return Object.freeze({output:s,mode:p,family:r,...m?{backend:m}:{},...y?{requestedBackendId:y}:{},...N===void 0?{}:{configDiagnostics:N},...f?{onConfigDiagnostic:f}:{},capabilityDecision:R,...P?{executionDecision:P}:{}})}function eBt(r){return!r.id.startsWith("output:")&&!r.id.startsWith("operation:")&&!r.id.startsWith("backend:")&&!r.id.startsWith("scene-primitive:")&&r.id!=="core:scene"}function sDn(r){let{family:i,source:s,options:c,style:u,styleFace:f}=r,p=c.security==="strict"?{...c,embedFontImport:!1}:{...c},m=u!==void 0&&i6t(u);m&&(p=JLn(p,u,s.config.themeVariables));let y=c.font??s.config.fontFamily??ENe(s.config.themeVariables,"fontFamily")??p.font??"Inter",x={...p,font:y,mermaidConfig:s.config},v={...Qae(x,s.config,y)},S=QLn(i,s,x,v,u,f),E=Jh(S.colors),M=eDn(c.style),R=tDn(s),P={version:J6,colors:E,font:y,style:Jh(u),face:Jh(f),styled:m,inferredBackend:u?DE(u):"default",styleReferences:M,...R.length>0?{unsafeThemeColorKeys:R}:{},...S.familyAppearance?{family:S.familyAppearance}:{}},N=Jh({...P,digest:UA(P)});return Jh({renderOptions:Jh(S.renderOptions),appearance:N,...S.familyConfig?{familyConfig:S.familyConfig}:{}})}function zle(r,i={},s="svg",c,u={}){let f=ZLn(i),p=f.serializable,m=p,y=aBt(m);if(y.length>0)throw new TypeError(`Invalid RenderOptions: ${y.join("; ")}`);let x=r6t(p.style),v=x.style,S=Jh(x.face),E=Ble(m);if(E.length>0)throw new TypeError(`Invalid RenderOptions: ${E.join("; ")}`);let M=py(r),R=k4t(M,p.mermaidConfig??{}),P=M===r?R:J2(r),N=Object.freeze({...R,originalText:r}),F=u.familyDescriptor??YLn(N,P);if(u.expectedFamilyId!==void 0&&F.id!==u.expectedFamilyId)throw new OU(u.expectedFamilyId,F.id);let L=V5t(N.config.themeCSS,p.security??"default");if(L)throw new TypeError(L);let _=Object.freeze(lk.filter(Me=>p[Me]!==void 0)),j=HLn(F,_),z=sDn({family:F,source:N,options:p,...v?{style:v}:{},...S?{styleFace:S}:{}}),{appearance:W,renderOptions:Z,familyConfig:V}=z,H=oDn(F,W,s,u,p.mermaidConfig,f.onConfigDiagnostic),q=H.capabilityDecision,X=Object.freeze({version:q.version,accepted:q.resolutions.filter(eBt).every(Me=>Me.level!=="required"||Me.status==="selected"),resolutions:Object.freeze(q.resolutions.filter(eBt))}),ee={version:J6,authoredSource:N.originalText,source:N.text,options:uLe(Z),appearance:W.digest,...V?{familyConfig:V}:{},capabilities:X},oe=UA(ee),ge={...ee,output:s,outputOptions:c,capabilities:q},Ne=Object.freeze({version:J6,output:s,source:Jh(N),renderOptions:Z,appearance:W,...V?{familyConfig:V}:{},capabilityDecision:q,explicitOptionFields:_,...j.length===0?{}:{resolutionDiagnostics:j},sharedRequestDigest:oe,requestDigest:UA(ge)});return gLe.set(Ne,H),Ne}function aDn(r){return"positioned"in r?r:{positioned:r}}function LU(r,i,s=i.source){let c=JA(i).family;if(c.id!==r)throw new Error(`Resolved request planned family ${c.id}, not ${r}`);if(!c.layout)throw new Error(`No layout registered for Mermaid family ${r}`);let u=V6(i);return aDn(c.layout({source:s,renderOptions:u.renderOptions,...u.styleFace?{styleFace:u.styleFace}:{},...u.familyConfig?{familyConfig:u.familyConfig}:{},...u.familyAppearance?{familyAppearance:u.familyAppearance}:{}}))}function Dt(r){return kW(Math.round(r))}function KI(r,i){return kW(Math.round(r+i)-Math.round(r))}function bLe({positioned:r,options:i}){return Djt(r,i)}function fBt({positioned:r}){let i=r.nodes.map(c=>({id:c.id,x:Dt(c.x),y:Dt(c.y),w:Dt(c.width),h:Dt(c.height),shape:c.shape==="circle"?"ellipse":"rectangle",label:c.label})),s=r.edges.map((c,u)=>({id:`edge#${u}:${c.from}->${c.to}`,from:c.from,to:c.to,path:c.points.map(f=>[Dt(f.x),Dt(f.y)])}));return{version:1,nodes:i,edges:s,groups:[],bounds:{w:Dt(r.width),h:Dt(r.height)}}}function hBt({positioned:r}){let i=r.commits.map(u=>{let f=u.customType??u.type;return{id:u.id,x:Dt(u.x-10),y:Dt(u.y-10),w:Dt(20),h:Dt(20),shape:f==="CHERRY_PICK"?"diamond":f==="HIGHLIGHT"?"rectangle":"ellipse",label:u.message||u.id}}),s=r.edges.map((u,f)=>({id:`edge#${f}:${u.from}->${u.to}`,from:u.from,to:u.to,path:u.points.map(p=>[Dt(p.x),Dt(p.y)])})),c=r.showBranches?r.branches.map(u=>{let f=r.commits.filter(v=>v.branch===u.name),p=Math.min(u.x1,u.x2,...f.map(v=>v.x-10)),m=Math.min(u.y1,u.y2,...f.map(v=>v.y-10)),y=Math.max(u.x1,u.x2,...f.map(v=>v.x+10)),x=Math.max(u.y1,u.y2,...f.map(v=>v.y+10));return{id:`branch:${u.name}`,x:Dt(p),y:Dt(m),w:Dt(Math.max(1,y-p)),h:Dt(Math.max(1,x-m)),members:f.map(v=>v.id),label:u.name}}):[];return{version:1,nodes:i,edges:s,groups:c,bounds:{w:Dt(r.width),h:Dt(r.height)}}}function gBt({positioned:r,options:i}){let s=r.classes.map(p=>({id:p.id,x:Dt(p.x),y:Dt(p.y),w:KI(p.x,p.width),h:KI(p.y,p.height),shape:"rectangle",label:p.label})),c=new Map(r.classes.map(p=>[p.id,{x:p.x,y:p.y,width:p.width,height:p.height}])),u=r.relationships.map((p,m)=>({id:`rel#${m}:${p.from}->${p.to}`,from:p.from,to:p.to,path:p.points.map(y=>[Dt(y.x),Dt(y.y)]),label:p.label&&p.labelPosition?{x:Dt(p.labelPosition.x),y:Dt(p.labelPosition.y),text:p.label}:void 0,route:i.debug?pBt("class",m,p.points,c.get(p.from),c.get(p.to)):void 0})),f=r.namespaces.map(p=>({id:p.id,x:Dt(p.x),y:Dt(p.y),w:KI(p.x,p.width),h:KI(p.y,p.height),members:[...p.classIds],label:p.label,parentId:p.parentId}));return{version:1,nodes:s,edges:u,groups:f,bounds:{w:Dt(r.width),h:Dt(r.height)}}}function mBt({positioned:r,options:i}){let s=r.entities.map(m=>({id:m.id,x:Dt(m.x),y:Dt(m.y),w:KI(m.x,m.width),h:KI(m.y,m.height),shape:"rectangle",label:m.label})),c=new Map(r.entities.map(m=>[m.id,{x:m.x,y:m.y,width:m.width,height:m.height}])),u=DOe(r,Gi({},rU)),f=r.relationships.map((m,y)=>{let x=u.get(m);return{id:`rel#${y}:${m.entity1}->${m.entity2}`,from:m.entity1,to:m.entity2,path:m.points.map(v=>[Dt(v.x),Dt(v.y)]),label:m.label&&x?{x:Dt(x.x),y:Dt(x.y),text:m.label}:void 0,route:i.debug?pBt("er",y,m.points,c.get(m.entity1),c.get(m.entity2)):void 0}}),p=r.groups.map(m=>({id:m.id,x:Dt(m.x),y:Dt(m.y),w:KI(m.x,m.width),h:KI(m.y,m.height),members:[...r.entities.filter(y=>y.groupId===m.id).map(y=>y.id),...r.groups.filter(y=>y.parentId===m.id).map(y=>y.id)],label:m.label,parentId:m.parentId}));return{version:1,nodes:s,edges:f,groups:p,bounds:{w:Dt(r.width),h:Dt(r.height)}}}function pBt(r,i,s,c,u){let f=!!(c&&s[0]&&uBt(s[0].x,s[0].y,c,1)),p=!!(u&&s[s.length-1]&&uBt(s[s.length-1].x,s[s.length-1].y,u,1)),m=yLe(s);return{family:r,edgeIndex:i,routeClass:"family-layout",invariant:f&&p&&m?"orthogonal-box":"unverified-family-route",bendCount:wLe(s),orthogonal:m,sourceBoundary:f,targetBoundary:p}}function yLe(r){for(let i=1;i<r.length;i++){let s=r[i-1],c=r[i];if(Math.abs(s.x-c.x)>.5&&Math.abs(s.y-c.y)>.5)return!1}return!0}function wLe(r){if(r.length<3)return 0;let i=0;for(let s=1;s<r.length-1;s++){let c=r[s-1],u=r[s],f=r[s+1],p=Math.abs(c.x-u.x)<=.5&&Math.abs(u.x-f.x)<=.5,m=Math.abs(c.y-u.y)<=.5&&Math.abs(u.y-f.y)<=.5;!p&&!m&&i++}return i}function uBt(r,i,s,c){let u=(Math.abs(r-s.x)<=c||Math.abs(r-(s.x+s.width))<=c)&&i>=s.y-c&&i<=s.y+s.height+c,f=(Math.abs(i-s.y)<=c||Math.abs(i-(s.y+s.height))<=c)&&r>=s.x-c&&r<=s.x+s.width+c;return u||f}function DU(r,i,s,c,u="bounds"){let f=new Map;for(let p of i.groups)for(let m of p.members)f.set(m,p);return i.nodes.map(p=>{let m=cDn(p,i.bounds),y=f.get(p.id)??c,x=y?u==="center"?uDn(p,y):lDn(p,y):void 0;return{family:r,elementId:p.id,routeClass:"family-layout",invariant:m&&(x??!0)?s:"unverified-family-layout",bounds:{x:p.x,y:p.y,w:p.w,h:p.h},center:{x:Dt(p.x+p.w/2),y:Dt(p.y+p.h/2)},containment:u,withinBounds:m,...y?{groupId:y.id,withinGroup:x}:{}}})}function cDn(r,i,s=.5){return r.x>=-s&&r.y>=-s&&r.x+r.w<=i.w+s&&r.y+r.h<=i.h+s}function lDn(r,i,s=.5){return r.x>=i.x-s&&r.y>=i.y-s&&r.x+r.w<=i.x+i.w+s&&r.y+r.h<=i.y+i.h+s}function uDn(r,i,s=.5){let c=r.x+r.w/2,u=r.y+r.h/2;return c>=i.x-s&&u>=i.y-s&&c<=i.x+i.w+s&&u<=i.y+i.h+s}function bBt({positioned:r,options:i}){let s=new Map(r.lifelines.map(u=>[u.actorId,u.x]));return{version:1,nodes:[...r.actors.map(u=>({id:u.id,x:Dt(u.x-u.width/2),y:Dt(u.y),w:Dt(u.width),h:Dt(u.height),shape:"rectangle",label:u.label,role:"box"})),...r.notes.map((u,f)=>({id:`note#${f}`,x:Dt(u.x),y:Dt(u.y),w:Dt(u.width),h:Dt(u.height),shape:"note",label:u.text,role:"box"}))],edges:r.messages.map((u,f)=>{let p=dDn(u);return{id:`msg#${f}:${u.from}->${u.to}`,from:u.from,to:u.to,path:p.map(m=>[Dt(m.x),Dt(m.y)]),label:u.label?fDn(u):void 0,route:i.debug?hDn(f,u,p,s):void 0}}),groups:r.blocks.map((u,f)=>({id:`block#${f}:${u.type}`,x:Dt(u.x),y:Dt(u.y),w:Dt(u.width),h:Dt(u.height),members:[],label:u.label})),bounds:{w:Dt(r.width),h:Dt(r.height)}}}function dDn(r){if(!r.isSelf)return[{x:r.x1,y:r.y},{x:r.x2,y:r.y}];let i=30,s=20;return[{x:r.x1,y:r.y},{x:r.x1+i,y:r.y},{x:r.x1+i,y:r.y+s},{x:r.x2,y:r.y+s}]}function fDn(r){return r.isSelf?{x:Dt(r.x1+38),y:Dt(r.y+10),text:r.label}:{x:Dt((r.x1+r.x2)/2),y:Dt(r.y-10),text:r.label}}function hDn(r,i,s,c){let u=c.get(i.from),f=c.get(i.to),p=s[0],m=s[s.length-1],y=u!==void 0&&p!==void 0&&Math.abs(p.x-u)<=1,x=f!==void 0&&m!==void 0&&Math.abs(m.x-f)<=1,v=!i.isSelf&&s.every(E=>Math.abs(E.y-i.y)<=1),S=yLe(s);return{family:"sequence",edgeIndex:r,routeClass:"family-layout",invariant:y&&x&&S?i.isSelf?"self-message":"lifeline-message":"unverified-family-route",bendCount:wLe(s),horizontal:v,sourceLifeline:y,targetLifeline:x,selfMessage:i.isSelf}}function yBt({positioned:r,options:i}){let s=[],c=[];for(let f of r.sections){let p=[];for(let m of f.periods){let y=`${m.id}:period`;s.push({id:y,x:Dt(m.pillX),y:Dt(m.pillY),w:Dt(m.pillWidth),h:Dt(m.pillHeight),shape:"rounded",label:m.label}),p.push(y);for(let x of m.events)s.push({id:x.id,x:Dt(x.x),y:Dt(x.y),w:Dt(x.width),h:Dt(x.height),shape:"rectangle",label:x.text}),p.push(x.id)}f.framed&&c.push({id:f.id,x:Dt(f.x),y:Dt(f.y),w:Dt(f.width),h:Dt(f.height),members:p,label:f.label})}let u={version:1,nodes:s,edges:[],groups:c,bounds:{w:Dt(r.width),h:Dt(r.height)}};return i.debug&&(u.certificates=DU("timeline",u,"timeline-interval")),u}function wBt({positioned:r}){let i=[],s=[];for(let c of r.sections){let u=[];for(let p of c.tasks)i.push({id:p.id,x:Dt(p.x),y:Dt(p.y),w:Dt(p.width),h:Dt(p.height),shape:"rectangle",label:p.text}),u.push(p.id);let f=c.tasks.length>0?Math.max(c.y+c.height,...c.tasks.map(p=>p.y+p.height)):c.y+c.height;s.push({id:c.id,x:Dt(c.x),y:Dt(c.y),w:Dt(c.width),h:Dt(f-c.y),members:u,label:c.label})}return{version:1,nodes:i,edges:[],groups:s,bounds:{w:Dt(r.width),h:Dt(r.height)}}}function xBt({positioned:r,options:i}){let s=[...r.services.map(x=>({id:x.id,x:Dt(x.x),y:Dt(x.y),w:Dt(x.width),h:Dt(x.height),shape:"service",label:x.label,role:"box"})),...r.junctions.map(x=>({id:x.id,x:Dt(x.x),y:Dt(x.y),w:Dt(x.width),h:Dt(x.height),shape:"circle",label:void 0,role:"mark"}))],c=new Map,u=[],f=x=>{c.set(x.id,x),u.push({id:x.id,x:Dt(x.x),y:Dt(x.y),w:Dt(x.width),h:Dt(x.height),members:[...r.services.filter(v=>v.parentId===x.id).map(v=>v.id),...r.junctions.filter(v=>v.parentId===x.id).map(v=>v.id)],label:x.label,parentId:x.parentId});for(let v of x.children)f(v)};for(let x of r.groups)f(x);let p=new Map(r.services.map(x=>[x.id,x])),m=new Map(r.junctions.map(x=>[x.id,x])),y=r.edges.map((x,v)=>({id:`edge#${v}:${x.source.id}->${x.target.id}`,from:x.source.id,to:x.target.id,path:x.points.map(S=>[Dt(S.x),Dt(S.y)]),label:x.label&&x.labelPosition?{x:Dt(x.labelPosition.x),y:Dt(x.labelPosition.y),text:x.label}:void 0,route:i.debug?gDn(v,x,p,m,c):void 0}));return{version:1,nodes:s,edges:y,groups:u,bounds:{w:Dt(r.width),h:Dt(r.height)}}}function gDn(r,i,s,c,u){let f=M=>{if(M.boundary==="group"){let R=s.get(M.id);return R?.parentId?u.get(R.parentId):void 0}return s.get(M.id)??c.get(M.id)},p=f(i.source),m=f(i.target),y=i.points[0],x=i.points[i.points.length-1],v=!!(y&&p&&dBt(y,p,i.source.side,1)),S=!!(x&&m&&dBt(x,m,i.target.side,1)),E=yLe(i.points);return{family:"architecture",edgeIndex:r,routeClass:"family-layout",invariant:v&&S&&E&&i.obstacleFree?"side-anchored":"unverified-family-route",bendCount:wLe(i.points),orthogonal:E,sourceSide:i.source.side,targetSide:i.target.side,sourceBoundary:i.source.boundary,targetBoundary:i.target.boundary,sourceAnchored:v,targetAnchored:S,placement:i.placement,sourceFacesTarget:i.sourceFacesTarget,targetFacesSource:i.targetFacesSource,obstacleFree:i.obstacleFree}}function dBt(r,i,s,c){switch(s){case"L":return Math.abs(r.x-i.x)<=c&&r.y>=i.y-c&&r.y<=i.y+i.height+c;case"R":return Math.abs(r.x-(i.x+i.width))<=c&&r.y>=i.y-c&&r.y<=i.y+i.height+c;case"T":return Math.abs(r.y-i.y)<=c&&r.x>=i.x-c&&r.x<=i.x+i.width+c;case"B":return Math.abs(r.y-(i.y+i.height))<=c&&r.x>=i.x-c&&r.x<=i.x+i.width+c}}function ABt({positioned:r,options:i}){let s=[],c=new Map;r.bars.forEach(p=>{let m=c.get(p.seriesIndex)??0;c.set(p.seriesIndex,m+1),s.push({id:`bar#${p.seriesIndex}:pt#${m}`,x:Dt(p.x),y:Dt(p.y),w:Dt(p.width),h:Dt(p.height),shape:"rectangle",label:p.label,role:"labelled-mark"})}),r.lines.forEach(p=>{p.points.forEach((m,y)=>{s.push({id:`line#${p.seriesIndex}:pt#${y}`,x:Dt(m.x-3),y:Dt(m.y-3),w:Dt(6),h:Dt(6),shape:"circle",label:m.label,role:m.label?"labelled-mark":"mark"})})});let u=[{id:"plot",x:Dt(r.plotArea.x),y:Dt(r.plotArea.y),w:Dt(r.plotArea.width),h:Dt(r.plotArea.height),members:s.filter(p=>p.x+p.w/2>=r.plotArea.x&&p.x+p.w/2<=r.plotArea.x+r.plotArea.width&&p.y+p.h/2>=r.plotArea.y&&p.y+p.h/2<=r.plotArea.y+r.plotArea.height).map(p=>p.id)}],f={version:1,nodes:s,edges:[],groups:u,bounds:{w:Dt(r.width),h:Dt(r.height)}};return i.debug&&(f.certificates=DU("xychart",f,"plot-contained",u[0],"center")),f}function vBt({positioned:r,options:i}){let u={version:1,nodes:r.legend.map((f,p)=>{let m=`${f.label} (${BI(f.fraction)})`,y=Math.max(f.swatchSize,m.length*7+f.swatchSize);return{id:`slice#${p}:${f.label}`,x:Dt(f.x),y:Dt(f.y),w:Dt(y),h:Dt(f.swatchSize),shape:"rectangle",label:m}}),edges:[],groups:[],bounds:{w:Dt(r.width),h:Dt(r.height)}};return i.debug&&(u.certificates=DU("pie",u,"legend-contained")),u}function kBt({positioned:r,options:i}){let s=r.plot.x+r.plot.w,c=r.bars.map(p=>{let m=p.id??`task#${p.taskIndex}`;if(p.milestoneX!==void 0){let v=p.h/2;return{id:m,x:Dt(p.milestoneX-v),y:Dt(p.y),w:Dt(p.h),h:Dt(p.h),shape:"diamond",label:p.label}}let y=Math.max(2,p.w),x=Math.min(p.x,s-y);return{id:m,x:Dt(x),y:Dt(p.y),w:Dt(y),h:Dt(p.h),shape:"rectangle",label:p.label}}),u=r.sections.map((p,m)=>({id:`section#${m}`,x:Dt(r.plot.x),y:Dt(p.y),w:Dt(r.plot.w),h:Dt(p.h),members:r.bars.filter(y=>y.sectionIndex===m).map(y=>y.id??`task#${y.taskIndex}`),label:p.label})),f={version:1,nodes:c,edges:[],groups:u,bounds:{w:Dt(r.width),h:Dt(r.height)}};return i.debug&&(f.certificates=DU("gantt",f,"section-contained")),f}function SBt({positioned:r,options:i}){let s=r.points.map((f,p)=>({id:`point#${p}:${f.label}`,x:Dt(f.cx-f.radius),y:Dt(f.cy-f.radius),w:Dt(f.radius*2),h:Dt(f.radius*2),shape:"circle",label:f.label,role:"labelled-mark"})),c=r.regions.map(f=>({id:`quadrant#${f.number}`,x:Dt(f.x),y:Dt(f.y),w:Dt(f.width),h:Dt(f.height),members:r.points.map((p,m)=>({point:p,index:m})).filter(({point:p})=>f.number===(p.nx>=.5?p.ny>=.5?1:4:p.ny>=.5?2:3)).map(({point:p,index:m})=>`point#${m}:${p.label}`),label:f.label})),u={version:1,nodes:s,edges:[],groups:c,bounds:{w:Dt(r.width),h:Dt(r.height)}};return i.debug&&(u.certificates=DU("quadrant",u,"plot-contained")),u}function EBt({positioned:r}){let i=r.typography,s=[],c=r.rings.map((p,m)=>({id:`ring:${m}`,x:Dt(r.cx-p.r),y:Dt(r.cy-p.r),w:Dt(p.r*2),h:Dt(p.r*2),members:[]}));r.axes.forEach((p,m)=>{let y=8;for(let S of p.lines)y=Math.max(y,Qo(S,i.axisFontSize,i.axisFontWeight));let x=Math.max(i.axisFontSize,p.lines.length*i.axisFontSize*1.2),v=p.anchor==="start"?p.labelX:p.anchor==="end"?p.labelX-y:p.labelX-y/2;s.push({id:`axis#${m}:${p.id}`,x:Dt(v),y:Dt(p.labelY-x/2),w:Dt(y),h:Dt(x),shape:"rectangle",label:p.label,role:"labelled-mark"})}),r.tickLabels.forEach((p,m)=>{let y=Qo(p.text,i.tickFontSize,i.tickFontWeight),x=i.tickFontSize*1.2;s.push({id:`tick:${m}`,x:Dt(p.x-y/2),y:Dt(p.y-x/2),w:Dt(y),h:Dt(x),shape:"rectangle",label:p.text,role:"labelled-mark"})});let u=new Map;for(let p of r.curves)u.set(p.id,(u.get(p.id)??0)+1);let f=new Map;r.curves.forEach(p=>{let m=f.get(p.id)??0;f.set(p.id,m+1);let y=(u.get(p.id)??0)>1?`${p.id}#${m}`:p.id;p.vertices.forEach((x,v)=>{s.push({id:`dot:${y}:${v}`,x:Dt(x.x-3),y:Dt(x.y-3),w:Dt(6),h:Dt(6),shape:"circle",role:"mark"})})});for(let[p,m]of r.legend.entries()){s.push({id:`legend-swatch#${p}`,x:Dt(m.x),y:Dt(m.y),w:Dt(m.swatchSize),h:Dt(m.swatchSize),shape:"rectangle",role:"mark"});let y=8;for(let v of m.lines)y=Math.max(y,Qo(v,i.legendFontSize,i.legendFontWeight));let x=Math.max(i.legendFontSize,m.lines.length*i.legendFontSize*1.2);s.push({id:`legend-label#${p}`,x:Dt(m.textX),y:Dt(m.textY-x/2),w:Dt(y),h:Dt(x),shape:"rectangle",label:m.lines.join(" "),role:"labelled-mark"})}if(r.title){let p=Qo(r.title.text,r.title.fontSize,i.titleFontWeight),m=r.title.fontSize*1.2;s.push({id:"title",x:Dt(r.title.x-p/2),y:Dt(r.title.y-m/2),w:Dt(p),h:Dt(m),shape:"rectangle",label:r.title.text,role:"labelled-mark"})}return{version:1,nodes:s,edges:[],groups:c,bounds:{w:Dt(r.width),h:Dt(r.height)}}}function Np(r){return i=>r(i)}function Op(r){return i=>r(i)}function Lp(r,i={}){return{positioned:r,...i}}function mDn(r){let i=r.familyAppearance?.visual;return Lp(h6(uI(r.source.familyText),{...r.renderOptions,...r.styleFace?{styleFace:r.styleFace}:{},...i?{stateVisual:i}:{}}))}function pDn(r){let i=uI(r.source.familyText);return T5t(i,r.renderOptions,r.styleFace),Lp(h6(i,{...r.renderOptions,...r.styleFace?{styleFace:r.styleFace}:{}}))}function bDn(r){let i=uI(r.source.familyText),s={...r.config};i.direction==="LR"||i.direction==="RL"?(s.graphDirection="LR",s.reverseDirection=i.direction==="RL"):s.graphDirection="TD";let c=Sle(i,s);return $le(c),Ile(c),i.direction==="BT"&&(vle(c.canvas),kle(c.roleCanvas)),Cm(c.canvas,{roleCanvas:c.roleCanvas,colorMode:r.colorMode,theme:r.theme})}function yDn(r){let i=uI(r.source.familyText),s={...r.config};return s.graphDirection=i.direction==="LR"||i.direction==="RL"?"LR":"TD",s.reverseDirection=i.direction==="RL",ejt(i,s,r.colorMode,r.theme,r.options.targetWidth)}function wDn(r){let i=r.familyConfig,s=$N(D6(r.source.familyLines),r.source.accessibility);return Lp(ble(s,r.renderOptions,i?.layout),{injectAccessibility:!1})}function xDn(r){return Pjt(r.source.familyLines,r.config,r.colorMode,r.theme,r.options)}var ADn={normalizeRequest:r=>({renderOptions:M5t(r.source.frontmatter,r.renderOptions)}),layout:pDn,projectPositioned:Op(bLe),lowerScene:Np(AOe),renderAscii:bDn},vDn={normalizeRequest:r=>{let i=R5t(r.source.frontmatter,r.renderOptions),{stateVisual:s,...c}=i;return{renderOptions:c,...s?{appearance:{family:{visual:s}}}:{}}},layout:mDn,projectPositioned:Op(bLe),lowerScene:Np(AOe),renderAscii:yDn},kDn={normalizeRequest:r=>{let i=D8t(r.source.frontmatter,r.colors,r.renderOptions,r.styleFace);return{renderOptions:{...r.renderOptions,padding:r.renderOptions.padding??i.padding,nodeSpacing:r.renderOptions.nodeSpacing??i.nodeSpacing,layerSpacing:r.renderOptions.layerSpacing??i.layerSpacing},familyConfig:{layout:i.layout},appearance:{family:{visual:i.visual}}}},layout:wDn,projectPositioned:Op(xBt),lowerScene:Np(Y8t),renderAscii:xDn},SDn={normalizeRequest:r=>({familyConfig:{sequence:a6t(r.source.frontmatter)}}),layout:r=>{let i=r.familyConfig?.sequence??{},s=$N(Xoe(r.source.familyLines,i),r.source.accessibility);return Lp(o6t(s,r.renderOptions,i,r.styleFace))},projectPositioned:Op(bBt),lowerScene:Np(d6t),renderAscii:r=>Q9t(r.source.familyText,r.config,r.colorMode,r.theme,r.familyConfig?.sequence??{},r.options.targetWidth)},EDn={normalizeRequest:r=>({renderOptions:m6t(r.source.frontmatter,r.renderOptions)}),layout:r=>Lp(p6t($N(Hoe(r.source.familyLines),r.source.accessibility),r.renderOptions,r.styleFace)),projectPositioned:Op(gBt),lowerScene:Np(x6t),renderAscii:r=>rjt(r.source.familyText,r.config,r.colorMode,r.theme,r.options.targetWidth)},CDn={normalizeRequest:r=>({renderOptions:S6t(r.source.frontmatter,r.renderOptions)}),layout:r=>{let i=k6t($N(Joe(r.source.familyLines),r.source.accessibility),r.source.frontmatter);return Lp(E6t(i,r.renderOptions,r.styleFace))},projectPositioned:Op(mBt),lowerScene:Np(M6t),renderAscii:r=>ijt(r.source.familyText,r.config,r.colorMode,r.theme,r.options.targetWidth)},MDn={normalizeRequest:r=>({appearance:{family:{...D6t(r.renderOptions)}}}),layout:r=>Lp(N6t(jce(r.source.familyLines,r.source.accessibility),r.renderOptions,r.styleFace)),projectPositioned:Op(yBt),lowerScene:Np(O6t),renderAscii:r=>ojt(r.source.familyLines,r.config,r.colorMode,r.theme,r.options.maxWidth)},TDn={normalizeRequest:r=>({appearance:{family:GOe(r.renderOptions)}}),layout:r=>Lp(j6t(Gce(r.source.familyLines,r.source.accessibility),r.familyAppearance??GOe(r.renderOptions),r.renderOptions,r.styleFace)),projectPositioned:Op(wBt),lowerScene:Np(Q6t),renderAscii:r=>ujt(r.source.familyText,r.config,r.colorMode,r.theme,r.options.maxWidth,r.styleFace)},IDn={normalizeRequest:r=>{let i=uU(r.source.frontmatter),s=dU(r.source.frontmatter);return{familyConfig:{config:i},appearance:{...r.renderOptions.bg===void 0&&s.backgroundColor?{colors:{bg:s.backgroundColor}}:{},family:{theme:s}}}},layout:r=>{let i=r.familyConfig,s=r.familyAppearance,c=lU(EPe(Jce(r.source.familyLines),r.source.accessibility),i?.config??uU({}),s?.theme??dU({}));return Lp(v_t(c,r.renderOptions,r.styleFace),{injectAccessibility:!1})},projectPositioned:Op(ABt),lowerScene:Np(N_t),renderAscii:r=>{let i=r.familyConfig?.config,s=r.familyAppearance?.theme;return gjt(r.source.familyText,r.config,r.colorMode,r.theme,{},r.options.targetWidth,i&&s?{config:i,theme:s}:void 0)}},$Dn={normalizeRequest:r=>({familyConfig:{visual:pU(r.source.frontmatter)}}),layout:r=>Lp(F_t(yF(r.source.familyLines),r.renderOptions,r.familyConfig?.visual??pU(),r.styleFace)),projectPositioned:Op(vBt),lowerScene:Np(j_t),renderAscii:r=>kjt(r.source.familyLines,r.config,r.colorMode,r.theme,{},r.options.targetWidth,r.familyConfig?.visual,r.styleFace)},RDn={normalizeRequest:r=>({familyConfig:{visual:o4e(r.source.frontmatter)}}),layout:r=>Lp(H_t(EPe(xF(r.source.familyLines),r.source.accessibility),r.renderOptions,r.familyConfig?.visual??o4e(),r.styleFace)),projectPositioned:Op(SBt),lowerScene:Np(U_t),renderAscii:r=>Ejt(r.source.familyLines,r.config,r.colorMode,r.theme,r.options.targetWidth)},PDn={normalizeRequest:r=>({familyConfig:{visual:wU(r.source.frontmatter)}}),layout:r=>Lp(q_t(VF(r.source.lines,{title:typeof r.source.frontmatter.title=="string"?r.source.frontmatter.title:void 0}),r.renderOptions,r.familyConfig?.visual??wU(r.source.frontmatter),r.styleFace),{injectAccessibility:!1}),projectPositioned:Op(EBt),lowerScene:Np(Q_t),renderAscii:r=>Ijt(r.source.familyLines,r.config,r.colorMode,r.theme,r.source.frontmatter,r.options.targetWidth,r.styleFace)},NDn={normalizeRequest:r=>({familyConfig:{config:WF(r.source.frontmatter)}}),layout:r=>{let i=r.familyConfig?.config??WF(void 0),s=u8t(r.source.familyLines,i,{clock:{today:r.renderOptions.ganttToday},layout:{renderOptions:r.renderOptions,...r.styleFace?{styleFace:r.styleFace}:{}}});return Lp(s.positioned)},projectPositioned:Op(kBt),lowerScene:Np(w8t),renderAscii:r=>ljt(r.source.familyLines,r.config,r.colorMode,r.theme,void 0,{maxWidth:r.options.maxWidth,today:r.options.ganttToday,resolvedConfig:r.familyConfig?.config,styleFace:r.styleFace})},ODn={normalizeRequest:r=>({familyConfig:{position:x4e(r.source.config.mindmap,r.source.config.layout)}}),layout:r=>Lp(E8t($N(ME(r.source.familyBody),r.source.accessibility),r.familyConfig?.position??x4e(void 0,void 0)),{injectAccessibility:!1}),projectPositioned:Op(fBt),lowerScene:Np(C8t),renderAscii:r=>Ojt(ME(r.source.familyBody),r.config,r.colorMode,r.theme,r.options.targetWidth)},LDn={normalizeRequest:r=>({familyConfig:{position:k4e(r.source.config.gitGraph,r.source.config.themeVariables),...typeof r.source.frontmatter.title=="string"?{title:r.source.frontmatter.title}:{}},appearance:{family:{themeVariables:$8t(r.source.config.themeVariables)}}}),layout:r=>{let i=r.familyConfig,s=i?.position??k4e(void 0),c=$N(AI(r.source.familyBody,{mainBranchName:s.mainBranchName,mainBranchOrder:s.mainBranchOrder,title:i?.title}),r.source.accessibility);return Lp(I8t(c,s),{injectAccessibility:!1})},projectPositioned:Op(hBt),lowerScene:Np(R8t),renderAscii:r=>{let i=r.familyConfig;return Ljt(AI(r.source.familyBody,{mainBranchName:i?.position?.mainBranchName,mainBranchOrder:i?.position?.mainBranchOrder,title:i?.title}),r.config,r.colorMode,r.theme,r.options.targetWidth,r.familyAppearance?.themeVariables)}},CBt=Object.freeze({flowchart:ADn,state:vDn,sequence:SDn,timeline:MDn,class:EDn,er:CDn,journey:TDn,xychart:IDn,architecture:kDn,pie:$Dn,quadrant:RDn,radar:PDn,gantt:NDn,mindmap:ODn,gitgraph:LDn});var Wle=["detection","source-preservation","parse","serialize","mutation","verify","layout","scene","svg","terminal"],xLe=64*1024,PBt=2,MBt=2,f4r=Object.freeze({detection:"diagnosed","source-preservation":"source-preserved",parse:"diagnosed",serialize:"source-preserved",mutation:"diagnosed",verify:"diagnosed",layout:"diagnosed",scene:"diagnosed",svg:"diagnosed",terminal:"diagnosed"});function DDn(r,i,s){let c=[];for(let u of i){let f=new Map(u.primitives.map(p=>{let m=typeof p=="string"?{primitive:p,realization:"native"}:p;return[m.primitive,m]}));for(let p of bE){let m=f.get(p);c.push(m?{role:u.role,primitive:p,applicability:"applicable",realization:m.realization,evidence:s,...m.diagnostic?{diagnostic:m.diagnostic}:{}}:{role:u.role,primitive:p,applicability:"not-applicable",realization:"unsupported",evidence:s,diagnostic:`${r}/${u.role} does not lower to the ${p} primitive.`})}}return c}function FDn(r){let i=["src/__tests__/section-a-family-descriptor-conformance.test.ts"],s=r==="flowchart"||r==="state"?[...i,"src/__tests__/characterization-layout.test.ts"]:i;return[{capability:"detection",state:"native",evidence:i},{capability:"source-preservation",state:"native",evidence:i},{capability:"parse",state:"native",evidence:i},{capability:"serialize",state:"native",evidence:i},{capability:"mutation",state:"native",evidence:i},{capability:"verify",state:"native",evidence:i},{capability:"layout",state:"native",evidence:i},{capability:"scene",state:"native",evidence:i},{capability:"svg",state:"native",evidence:i},{capability:"terminal",state:"native",evidence:s}]}function ln(r,...i){return{role:r,primitives:i}}var ALe=[{id:"flowchart",upstreamId:"flowchart-v2",maturity:"stable",label:"Flowchart",headers:["flowchart","graph"],narrower:"asFlowchart",editorDiagramType:"Flowchart",editorLabel:"Flowchart",editorDescription:"Decision flow with labeled branches.",editorExampleId:"flowchart-basic",editorGlyph:"F",config:{section:"flowchart",keys:["nodeSpacing","rankSpacing","wrappingWidth","titleTopMargin","subGraphTitleMargin","arrowMarkerAbsolute","diagramPadding","htmlLabels","curve","padding","defaultRenderer","inheritDir"],noopKeys:["arrowMarkerAbsolute","curve","defaultRenderer","diagramPadding","htmlLabels","inheritDir","padding","subGraphTitleMargin","titleTopMargin"]},aliases:["swimlane"],semanticChannels:[],detect:VPe,sceneRoles:[ln("prelude","document"),ln("defs","document","marker"),ln("chrome","document","shape"),ln("group","container","shape"),ln("group-header","text","shape"),ln("edge","connector"),ln("edge-label","container"),ln("node","container","shape"),ln("label","text"),ln("icon","document","text")],example:`flowchart TD
544
+ `;throw new Error(`No serializer registered for diagram kind "${i}"`)}var MLn=new Set(["state","sequence","quadrant","xychart","pie","gantt","mindmap","gitgraph","radar"]);function Wjt(r){let i=r.body.kind==="extension"||MLn.has(r.kind);return r.body.kind!=="opaque"&&i?PU(r):r.canonicalSource}function ck(r){if(typeof r=="string")return{source:r};if(r.body.kind==="preserved")throw new DN(KNt(r.body));return{source:Wjt(r),expectedFamilyId:r.kind}}var YI=3,WE=1;function CO(r,i){if(!r||typeof r!="object"||Array.isArray(r))return;let s=r[i];return s&&typeof s=="object"&&!Array.isArray(s)?s:void 0}function TLn(r,i,s){if(!s)return[];let c=i&&typeof i=="object"&&!Array.isArray(i)?i:void 0,u=CO(i,s.section);if(!u)return c&&s.section in c?[{code:"INEFFECTIVE_CONFIG",field:s.section,message:`${r} config section "${s.section}" must be an object; the invalid value has no effect.`}]:[];let f=new Set(s.keys);return Object.keys(u).filter(p=>!f.has(p)).sort().map(p=>({code:"INEFFECTIVE_CONFIG",field:`${s.section}.${p}`,message:`${r} config field "${p}" is unknown and has no effect; check the spelling or remove it.`}))}var Rm=(r,i)=>({expected:r,valid:i}),$m=Rm("a finite positive number",r=>typeof r=="number"&&Number.isFinite(r)&&r>0),vw=Rm("a finite non-negative number",r=>typeof r=="number"&&Number.isFinite(r)&&r>=0),ILn=Rm("a finite number",r=>typeof r=="number"&&Number.isFinite(r)),$f=Rm("a boolean",r=>typeof r=="boolean"),rLe=Rm("a non-empty string",r=>typeof r=="string"&&r.trim().length>0),iLe=Rm("a non-empty array of strings",r=>Array.isArray(r)&&r.length>0&&r.every(i=>typeof i=="string")),Hjt=(...r)=>Rm(`one of: ${r.join(", ")}`,i=>typeof i=="string"&&r.includes(i)),Ujt=(...r)=>Rm(`one of: ${r.join(", ")} (case-insensitive)`,i=>typeof i=="string"&&r.some(s=>s.toLowerCase()===i.toLowerCase())),W6=(r,i,s=!0)=>Rm(`a finite number ${s?"from":"greater than"} ${r} through ${i}`,c=>typeof c=="number"&&Number.isFinite(c)&&(s?c>=r:c>r)&&c<=i),HE=r=>Rm(`a finite positive number no greater than ${r}`,i=>typeof i=="number"&&Number.isFinite(i)&&i>0&&i<=r),Lle=r=>Rm(`a finite non-negative number no greater than ${r}`,i=>typeof i=="number"&&Number.isFinite(i)&&i>=0&&i<=r),$Ln=Rm("a finite positive number or non-empty CSS size string",r=>typeof r=="number"&&Number.isFinite(r)&&r>0||typeof r=="string"&&r.trim().length>0),NU=(r,i=!1)=>Rm(`a numeric value${i?` greater than ${r}`:` of at least ${r}`}`,s=>{let c=typeof s=="number"?s:typeof s=="string"&&/^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:px)?$/i.test(s.trim())?Number.parseFloat(s):Number.NaN;return Number.isFinite(c)&&(i?c>r:c>=r)}),RLn={flowchart:{nodeSpacing:$m,rankSpacing:$m,wrappingWidth:$m},sequence:Object.fromEntries([...["actorMargin","width","height","diagramMarginX","diagramMarginY","messageMargin","noteMargin","activationWidth"].map(r=>[r,vw]),["showSequenceNumbers",$f]]),timeline:{disableMulticolor:$f,sectionFills:iLe,sectionColours:iLe},journey:Object.fromEntries([...["diagramMarginX","diagramMarginY","leftMargin","maxLabelWidth","width","height","taskMargin"].map(r=>[r,$m]),...["taskFontSize","titleFontSize"].map(r=>[r,$Ln]),...["taskFontFamily","titleColor","titleFontFamily"].map(r=>[r,rLe]),...["actorColours","sectionFills","sectionColours"].map(r=>[r,iLe]),["useMaxWidth",$f]]),radar:{width:HE(Kl.dimension),height:HE(Kl.dimension),marginTop:Lle(Kl.margin),marginRight:Lle(Kl.margin),marginBottom:Lle(Kl.margin),marginLeft:Lle(Kl.margin),axisScaleFactor:HE(Kl.factor),axisLabelFactor:W6(Kl.axisLabelFactorMin,Kl.factor),curveTension:W6(0,1),useMaxWidth:$f,tickLabels:$f},class:{nodeSpacing:vw,rankSpacing:vw,hierarchicalNamespaces:$f},er:{layoutDirection:Ujt("TB","TD","BT","LR","RL"),nodeSpacing:vw,rankSpacing:vw},architecture:{padding:NU(0),iconSize:NU(0,!0),fontSize:NU(0,!0),nodeSeparation:NU(0),idealEdgeLengthMultiplier:NU(0,!0)},xychart:{width:$m,height:$m,useMaxWidth:$f,useWidth:$m,titleFontSize:$m,titlePadding:vw,chartOrientation:Hjt("vertical","horizontal"),plotReservedSpacePercent:W6(0,100,!1),showDataLabel:$f,showTitle:$f,showLegend:$f,legendFontSize:$m,legendPadding:vw,xAxis:Rm("an axis-config object",r=>!!r&&typeof r=="object"&&!Array.isArray(r)),yAxis:Rm("an axis-config object",r=>!!r&&typeof r=="object"&&!Array.isArray(r))},pie:{textPosition:W6(0,1),donutHole:W6(0,.9),legendPosition:Hjt("top","bottom","left","right","center")},quadrant:Object.fromEntries([...["chartWidth","chartHeight","titleFontSize","quadrantLabelFontSize","xAxisLabelFontSize","yAxisLabelFontSize","pointLabelFontSize","pointRadius"].map(r=>[r,$m]),...["titlePadding","quadrantPadding","xAxisLabelPadding","yAxisLabelPadding","pointTextPadding","quadrantInternalBorderStrokeWidth","quadrantExternalBorderStrokeWidth"].map(r=>[r,vw]),["useMaxWidth",$f]]),gantt:{displayMode:Ujt("compact"),barHeight:$m,topAxis:$f,axisFormat:rLe,tickInterval:Rm('a positive Mermaid interval such as "1day" or "2week"',r=>typeof r=="string"&&/^[1-9]\d*(?:millisecond|second|minute|hour|day|week|month)$/i.test(r.trim()))},mindmap:{padding:vw,maxNodeWidth:$m},gitgraph:{showBranches:$f,showCommitLabel:$f,parallelCommits:$f,rotateCommitLabel:$f,mainBranchName:rLe,mainBranchOrder:ILn}},PLn={showLabel:$f,labelFontSize:$m,labelPadding:vw,showTitle:$f,titleFontSize:$m,titlePadding:vw,showTick:$f,tickLength:vw,tickWidth:$m,showAxisLine:$f,axisLineWidth:$m};function NLn(r){let i=CO(r,"themeVariables");if(!i||!("radar"in i))return[];let s=CO(i,"radar");if(!s)return[{code:"INEFFECTIVE_CONFIG",field:"themeVariables.radar",message:"themeVariables.radar must be an object; the invalid value has no effect."}];let c=new Set(V_t),u=[],f=new Set(["axisStrokeWidth","curveStrokeWidth","graticuleStrokeWidth"]),p=new Set(["axisLabelFontSize","legendFontSize"]),m=new Set(["curveOpacity","graticuleOpacity"]),y=new Set(["axisColor","graticuleColor"]);for(let x of Object.keys(s).sort(dc)){let v=s[x],S;c.has(x)?f.has(x)&&!HE(Kl.lineWidth).valid(v)?S=HE(Kl.lineWidth).expected:p.has(x)&&!HE(Kl.fontSize).valid(v)?S=HE(Kl.fontSize).expected:x==="legendBoxSize"&&!HE(Kl.legendBoxSize).valid(v)?S=HE(Kl.legendBoxSize).expected:m.has(x)&&!W6(0,1).valid(v)?S="a finite number from 0 through 1":y.has(x)&&!Ks(v)&&(S="a safe CSS color without url(), variables, or context-breaking characters"):S="a documented radar theme field",S&&u.push({code:"INEFFECTIVE_CONFIG",field:`themeVariables.radar.${x}`,message:`themeVariables.radar.${x} must be ${S}; the invalid value has no effect.`})}return u}function OLn(r,i,s){if(r==="state")return[];if(!s)return[];let c=CO(i,s.section),u=r==="radar"?NLn(i):[],f=(p,m)=>{u.push({code:"INEFFECTIVE_CONFIG",field:p,message:`${p} must be ${m}; the invalid value has no effect.`})};if(r==="mindmap"){let p=i&&typeof i=="object"&&!Array.isArray(i)?i:void 0;p&&"layout"in p&&!["tidy-tree","cose-bilkent","radial"].includes(String(p.layout))&&f("layout",'"cose-bilkent", "radial", or "tidy-tree" for mindmap diagrams')}if(!c)return u;for(let[p,m]of Object.entries(RLn[r]??{}))p in c&&!m.valid(c[p])&&f(`${s.section}.${p}`,m.expected);if(r==="xychart")for(let p of["xAxis","yAxis"]){let m=c[p];if(!m||typeof m!="object"||Array.isArray(m))continue;let y=m;for(let x of Object.keys(y).sort()){let v=PLn[x];v?v.valid(y[x])||f(`xyChart.${p}.${x}`,v.expected):f(`xyChart.${p}.${x}`,"a documented axis-config field")}}return u}function LLn(r,i,s){if(!s)return[];let c=CO(i,s.section);if(!c)return[];let u=new Set(s.noopKeys??[]);return Object.keys(c).filter(f=>u.has(f)).sort().map(f=>({code:"INEFFECTIVE_CONFIG",field:`${s.section}.${f}`,message:`${r} config field "${f}" is accepted for Mermaid compatibility but has no effect on this renderer.`}))}function Jjt(r){let i=new Set;return r.sort((s,c)=>dc(s.field,c.field)||dc(s.message,c.message)).filter(s=>{let c=`${s.code}\0${s.field}\0${s.message}`;return i.has(c)?!1:(i.add(c),!0)})}function DLn(r,i,s){if(!s)return[];let c=i.flatMap(u=>{let f=TLn(r,u,s),p=CO(u,s.section);return r==="state"?p?$5t([p],!0):f:[...f,...OLn(r,u,s),...LLn(r,u,s)]});return Jjt(c)}function qjt(r,i,s){let c=s??HNt(r)?.config;if(!c)return[];if(r.includes(":")){let u=i&&typeof i=="object"&&!Array.isArray(i)?i:void 0,f=CO(i,c.section);if(!f)return u&&c.section in u?[{code:"INEFFECTIVE_CONFIG",field:c.section,message:`${r} config section "${c.section}" must be an object; the invalid value has no effect.`}]:[];let p=new Set(c.keys),m=new Set(c.noopKeys??[]);return Jjt(Object.keys(f).flatMap(y=>p.has(y)?m.has(y)?[{code:"INEFFECTIVE_CONFIG",field:`${c.section}.${y}`,message:`${r} config field "${y}" is accepted for compatibility but has no effect on this renderer.`}]:[]:[{code:"INEFFECTIVE_CONFIG",field:`${c.section}.${y}`,message:`${r} config field "${y}" is unknown and has no effect; check the spelling or remove it.`}]))}return DLn(r,[i],c)}var J6=2,H6=`render-contract@${J6}`,FLn={svg:{availability:"public",security:"enforced",color:"srgb",terminal:"not-applicable",transports:{library:{availability:"direct",entrypoint:"renderMermaidSVG",evidence:["src/index.ts"]},cli:{availability:"direct",entrypoint:"am render",selector:"--format svg",evidence:["src/cli/index.ts"],format:"svg",order:0,help:"SVG markup",default:!0},codeMode:{availability:"direct",entrypoint:"mermaid.renderMermaidSVGWithReceipt",evidence:["src/mcp/facade.ts","src/mcp/sdk-decl.ts"],method:"renderMermaidSVGWithReceipt",optionsType:"SvgRenderOptions",returnType:"RenderedSvg"},localMcp:{availability:"indirect",entrypoint:"execute",selector:"mermaid.renderMermaidSVGWithReceipt",evidence:["src/mcp/server.ts","src/mcp/facade.ts"]},hostedMcp:{availability:"direct",entrypoint:"render_svg",evidence:["src/mcp/hosted-server.ts"]},editor:{availability:"direct",entrypoint:"diagram preview / Save SVG",selector:"renderMermaidSVGWithReceipt",evidence:["editor/js/rendering.js","editor/js/export.js"]},website:{availability:"direct",entrypoint:"website build-time renderMermaidSVG",selector:"embedded examples and diagram assets",evidence:["website/build.ts"]}},evidence:["output-security@2",H6]},png:{availability:"public",security:"enforced",color:"srgb",terminal:"not-applicable",transports:{library:{availability:"direct",entrypoint:"renderMermaidPNG / createMermaidBrowserPNGRenderer",selector:"native Node/Bun or injected browser rasterizer",evidence:["src/agent/png.ts","src/browser-png.ts","src/index.ts"]},cli:{availability:"direct",entrypoint:"am render",selector:"--format png",evidence:["src/cli/index.ts"],format:"png",order:3,help:"PNG bytes; requires --output <file.png>; no watch/multi-input"},codeMode:{availability:"unavailable",entrypoint:"none",reason:"PNG rasterization is a host tool, not a sandbox SDK method",evidence:["src/mcp/sdk-decl.ts","src/mcp/facade.ts"]},localMcp:{availability:"direct",entrypoint:"render_png",evidence:["src/mcp/server.ts"]},hostedMcp:{availability:"direct",entrypoint:"render_png",evidence:["src/mcp/hosted-server.ts"]},editor:{availability:"direct",entrypoint:"Save PNG / Copy PNG",selector:"renderMermaidPNGInBrowserWithReceipt",evidence:["editor/js/export.js","src/browser-png.ts"]},website:{availability:"unavailable",entrypoint:"none",reason:"The site build copies curated PNG assets but exposes no PNG render adapter",evidence:["website/build.ts"]}},evidence:["output-security@2","output-color-profile@1",`png-output-policy@${3}`,H6]},ascii:{availability:"public",security:"enforced",color:"terminal-projected",terminal:"projected",transports:{library:{availability:"direct",entrypoint:"renderMermaidASCII",selector:"useAscii: true",evidence:["src/ascii/index.ts"]},cli:{availability:"direct",entrypoint:"am render",selector:"--format ascii",evidence:["src/cli/index.ts"],format:"ascii",order:1,help:"7-bit ASCII art"},codeMode:{availability:"direct",entrypoint:"mermaid.renderMermaidASCIIWithReceipt",selector:"useAscii: true",evidence:["src/mcp/facade.ts","src/mcp/sdk-decl.ts"],method:"renderMermaidASCIIWithReceipt",optionsType:"AsciiRenderOptions",returnType:"RenderedAscii"},localMcp:{availability:"indirect",entrypoint:"execute",selector:"mermaid.renderMermaidASCIIWithReceipt({ useAscii: true })",evidence:["src/mcp/server.ts","src/mcp/facade.ts"]},hostedMcp:{availability:"direct",entrypoint:"render_ascii",selector:"useAscii: true",evidence:["src/mcp/hosted-server.ts"]},editor:{availability:"direct",entrypoint:"ASCII canvas tab",selector:"renderMermaidASCII({ useAscii: true })",evidence:["editor/js/rendering.js","editor/html/right-panel.html"]},website:{availability:"unavailable",entrypoint:"none",reason:"The site build emits one Unicode diagram asset but no 7-bit ASCII output",evidence:["website/build.ts"]}},evidence:["terminal-style@1",`terminal-output-policy@${1}`,"terminal-control-sanitization",H6]},unicode:{availability:"public",security:"enforced",color:"terminal-projected",terminal:"projected",transports:{library:{availability:"direct",entrypoint:"renderMermaidASCII",selector:"useAscii: false (default)",evidence:["src/ascii/index.ts"]},cli:{availability:"direct",entrypoint:"am render",selector:"--format unicode",evidence:["src/cli/index.ts"],format:"unicode",order:2,help:"Unicode box-drawing text"},codeMode:{availability:"direct",entrypoint:"mermaid.renderMermaidASCIIWithReceipt",selector:"useAscii: false (default)",evidence:["src/mcp/facade.ts","src/mcp/sdk-decl.ts"],method:"renderMermaidASCIIWithReceipt",optionsType:"AsciiRenderOptions",returnType:"RenderedAscii"},localMcp:{availability:"indirect",entrypoint:"execute",selector:"mermaid.renderMermaidASCIIWithReceipt({ useAscii: false })",evidence:["src/mcp/server.ts","src/mcp/facade.ts"]},hostedMcp:{availability:"direct",entrypoint:"render_ascii",selector:"useAscii: false (default)",evidence:["src/mcp/hosted-server.ts"]},editor:{availability:"direct",entrypoint:"Unicode canvas tab",selector:"renderMermaidASCII({ useAscii: false })",evidence:["editor/js/rendering.js","editor/html/right-panel.html"]},website:{availability:"direct",entrypoint:"website build-time renderMermaidASCII",selector:"diagrams/workflow.txt; useAscii: false",evidence:["website/build.ts"]}},evidence:["terminal-style@1",`terminal-output-policy@${1}`,"terminal-control-sanitization",H6]},html:{availability:"public",security:"enforced",color:"terminal-projected",terminal:"projected",transports:{library:{availability:"projected",entrypoint:"renderMermaidASCII",selector:"colorMode: 'html'",evidence:["src/ascii/index.ts"]},cli:{availability:"unavailable",entrypoint:"none",reason:"HTML text is not a standalone CLI format",evidence:["src/cli/index.ts"]},codeMode:{availability:"projected",entrypoint:"mermaid.renderMermaidASCIIWithReceipt",selector:"colorMode: 'html' (terminal projection; not a standalone CLI format)",evidence:["src/mcp/facade.ts","src/mcp/sdk-decl.ts"],method:"renderMermaidASCIIWithReceipt",optionsType:"AsciiRenderOptions",returnType:"RenderedAscii"},localMcp:{availability:"indirect",entrypoint:"execute",selector:"mermaid.renderMermaidASCIIWithReceipt({ colorMode: 'html' })",evidence:["src/mcp/server.ts","src/mcp/facade.ts"]},hostedMcp:{availability:"indirect",entrypoint:"execute",selector:"mermaid.renderMermaidASCIIWithReceipt({ colorMode: 'html' })",evidence:["src/mcp/hosted-server.ts","src/mcp/facade.ts"]},editor:{availability:"unavailable",entrypoint:"none",reason:"The editor exposes diagram, Unicode and ASCII canvas tabs only",evidence:["editor/js/buttons.js","editor/html/right-panel.html"]},website:{availability:"unavailable",entrypoint:"none",reason:"The site does not emit terminal-HTML diagram artifacts",evidence:["website/build.ts"]}},evidence:["terminal-style@1",`terminal-output-policy@${1}`,"terminal-control-sanitization","html-text-escaping",H6]},layout:{availability:"public",security:"not-applicable",color:"not-applicable",terminal:"not-applicable",transports:{library:{availability:"direct",entrypoint:"layoutMermaid",evidence:["src/agent/core.ts"]},cli:{availability:"direct",entrypoint:"am render",selector:"--format layout",evidence:["src/cli/index.ts"],format:"layout",order:4,help:"Layout JSON (nodes, edges, groups, bounds)"},codeMode:{availability:"direct",entrypoint:"mermaid.layoutMermaidWithReceipt",evidence:["src/mcp/facade.ts","src/mcp/sdk-decl.ts"],method:"layoutMermaidWithReceipt",optionsType:"LayoutRenderOptions",returnType:"RenderedLayoutArtifact"},localMcp:{availability:"indirect",entrypoint:"execute",selector:"mermaid.layoutMermaidWithReceipt",evidence:["src/mcp/server.ts","src/mcp/facade.ts"]},hostedMcp:{availability:"indirect",entrypoint:"execute",selector:"mermaid.layoutMermaidWithReceipt",evidence:["src/mcp/hosted-server.ts","src/mcp/facade.ts"]},editor:{availability:"indirect",entrypoint:"verification panel",selector:"verifyMermaid(source).layout (consumed, not exported)",evidence:["editor/js/rendering.js"]},website:{availability:"unavailable",entrypoint:"none",reason:"Website verification consumes layout internally but publishes no layout artifact",evidence:["website/build.ts"]}},evidence:["positioned-artifact@1",H6]}};function MO(r){return Object.freeze({...r,evidence:Object.freeze([...r.evidence])})}var gNr=Object.freeze(["library","cli","codeMode","localMcp","hostedMcp","editor","website"]),dLe=Object.freeze(vN.map(r=>{let i=FLn[r];return Object.freeze({id:r,...i,transports:Object.freeze({library:MO(i.transports.library),cli:MO(i.transports.cli),codeMode:MO(i.transports.codeMode),localMcp:MO(i.transports.localMcp),hostedMcp:MO(i.transports.hostedMcp),editor:MO(i.transports.editor),website:MO(i.transports.website)}),evidence:Object.freeze([...i.evidence])})})),tBt=Object.freeze(dLe.filter(r=>r.transports.cli.availability==="direct").sort((r,i)=>r.transports.cli.order-i.transports.cli.order)),mNr=Object.freeze(tBt.map(r=>r.transports.cli.format)),nBt=tBt.filter(r=>r.transports.cli.default);if(nBt.length!==1)throw new Error("Render output contract must declare exactly one default CLI format");var pNr=nBt[0].transports.cli.format;var fLe=["onConfigDiagnostic"],_le=(r,i)=>({type:"string",description:r,...i===void 0?{}:{default:i}}),$O=(r,i,s={})=>({type:"number",description:r,...i===void 0?{}:{default:i},...s}),Pm=(r,i)=>$O(r,i,{minimum:0}),JE=(r,i)=>$O(r,i,{exclusiveMinimum:0}),oLe=r=>$O(r,void 0,{minimum:1,maximum:1e3}),UE=(r,i)=>({type:"boolean",description:r,...i===void 0?{}:{default:i}}),Nm=(r,i)=>({..._le(r,i),"x-agentic-mermaid-runtime-validator":"safeCssPaint"}),rBt=(r,i)=>({..._le(r,i),"x-agentic-mermaid-runtime-validator":"safeCssFontFamily"}),U6=(r,i,s=[])=>({type:"object",description:i,additionalProperties:!1,properties:r,...s.length===0?{}:{required:s}}),sLe={type:"string",enum:["uppercase","lowercase","capitalize"]},_Ln={groupHeaderHeight:JE("Architecture group-header height."),groupFontSize:JE("Architecture group-label font size."),groupFontWeight:oLe("Architecture group-label font weight."),groupLetterSpacing:$O("Architecture group-label letter spacing."),groupFont:rBt("Architecture group-label font family."),groupTextTransform:{...sLe,description:"Architecture group-label text transform."},groupPaddingX:Pm("Horizontal padding inside architecture groups."),groupPaddingY:Pm("Vertical padding inside architecture groups."),groupLabelPaddingX:Pm("Horizontal padding around architecture group labels."),groupCornerRadius:Pm("Architecture group corner radius."),groupLineWidth:Pm("Architecture group border width."),groupText:Nm("Architecture group-label color."),serviceFontSize:JE("Architecture service-label font size."),serviceFontWeight:oLe("Architecture service-label font weight."),serviceLetterSpacing:$O("Architecture service-label letter spacing."),serviceTextTransform:{...sLe,description:"Architecture service-label text transform."},servicePaddingX:Pm("Horizontal padding inside architecture services."),servicePaddingY:Pm("Vertical padding inside architecture services."),serviceCornerRadius:Pm("Architecture service corner radius."),serviceLineWidth:Pm("Architecture service border width."),serviceText:Nm("Architecture service-label color."),edgeFontSize:JE("Architecture connector-label font size."),edgeFontWeight:oLe("Architecture connector-label font weight."),edgeLetterSpacing:$O("Architecture connector-label letter spacing."),edgeTextTransform:{...sLe,description:"Architecture connector-label text transform."},edgeLineWidth:Pm("Architecture connector width."),edgeBendRadius:Pm("Architecture connector bend radius."),edgeStroke:Nm("Architecture connector color."),edgeText:Nm("Architecture connector-label color."),iconSize:JE("Architecture group icon size."),serviceIconSize:JE("Architecture service icon size."),junctionOuterRadius:JE("Architecture junction outer radius."),junctionInnerRadius:Pm("Architecture junction inner radius."),groupSurface:Nm("Architecture group surface color."),groupHeaderSurface:Nm("Architecture group-header surface color."),groupBorder:Nm("Architecture group border color."),serviceSurface:Nm("Architecture service surface color."),serviceBorder:Nm("Architecture service border color.")},jLn={...U6(_Ln,"Sparse architecture visual overrides merged over resolved defaults."),"x-agentic-mermaid-runtime-validator":"architectureVisual"},BLn=(()=>{let r=ZH(),i=r.$defs,s=m=>{if(Array.isArray(m))return m.map(s);if(m===null||typeof m!="object")return m;let y=m,x=y.$ref;if(typeof x=="string"&&x.startsWith("#/$defs/")){let v=i?.[x.slice(8)];if(!v)throw new Error(`StyleSpec schema has unresolved local reference ${x}`);return s(v)}return Object.fromEntries(Object.entries(y).filter(([v])=>v!=="$defs").map(([v,S])=>[v,s(S)]))},{$schema:c,$id:u,title:f,...p}=r;return s(p)})(),Vjt={anyOf:[{type:"string",description:"Registered Style or Palette name."},BLn],"x-agentic-mermaid-validation-expectation":"a registered Style name or StyleSpec"},iBt={anyOf:[Vjt,{type:"array",items:Vjt,description:"Style stack merged from left to right."}],description:"A registered name, inline StyleSpec, or left-to-right stack of either.","x-agentic-mermaid-runtime-validator":"styleInput"},aLe={anyOf:[{type:"null"},{type:"string"},{type:"number"},{type:"boolean"},{type:"array",items:{$ref:"#/$defs/jsonValue"}},{type:"object",additionalProperties:{$ref:"#/$defs/jsonValue"}}],description:"A finite, acyclic JSON value without prototype keys.","x-agentic-mermaid-validation-expectation":"a finite, acyclic JSON value without prototype keys"};function oBt(r){if(typeof r!="object"||r===null||Object.isFrozen(r))return r;for(let i of Object.values(r))oBt(i);return Object.freeze(r)}var Yjt=["flowchart","state","class","er","architecture"],GLn=["flowchart","state","sequence","timeline","class","er","journey","xychart","pie","quadrant","gantt","mindmap","gitgraph"],RO=oBt({bg:{typeScript:"string",description:"Background color or CSS variable.",defaultLabel:"`#FFFFFF`",validationExpectation:"be a safe non-fetching CSS paint",schema:Nm("Background color or CSS variable.","#FFFFFF"),terminal:"consumed"},fg:{typeScript:"string",description:"Primary foreground and text color.",defaultLabel:"`#27272A`",validationExpectation:"be a safe non-fetching CSS paint",schema:Nm("Primary foreground and text color.","#27272A"),terminal:"consumed"},line:{typeScript:"string",description:"Connector and secondary-line color.",defaultLabel:"derived",validationExpectation:"be a safe non-fetching CSS paint",schema:Nm("Connector and secondary-line color."),terminal:"consumed"},accent:{typeScript:"string",description:"Arrowhead, highlight, and data accent color.",defaultLabel:"derived",validationExpectation:"be a safe non-fetching CSS paint",schema:Nm("Arrowhead, highlight, and data accent color."),terminal:"consumed"},muted:{typeScript:"string",description:"Secondary text and label color.",defaultLabel:"derived",validationExpectation:"be a safe non-fetching CSS paint",schema:Nm("Secondary text and label color."),terminal:"projected",terminalNote:"terminal themes have no dedicated muted-text role"},surface:{typeScript:"string",description:"Node and group surface color.",defaultLabel:"derived",validationExpectation:"be a safe non-fetching CSS paint",schema:Nm("Node and group surface color."),terminal:"projected",terminalNote:"terminal cells do not paint graphical surfaces"},border:{typeScript:"string",description:"Node and group border color.",defaultLabel:"derived",validationExpectation:"be a safe non-fetching CSS paint",schema:Nm("Node and group border color."),terminal:"consumed"},font:{typeScript:"string",description:"CSS font family or stack.",defaultLabel:"`Inter`",validationExpectation:"be a safe non-fetching CSS font family or stack",schema:rBt("CSS font family or stack.","Inter"),terminal:"projected",terminalNote:"the host terminal owns the font face"},style:{typeScript:"StyleInput | StyleInput[]",description:"Registered Style/Palette name, inline StyleSpec, or left-to-right stack.",defaultLabel:"`crisp`",validationExpectation:"be a registered Style name or StyleSpec, or an array of them",schema:iBt,terminal:"consumed"},padding:{typeScript:"number",description:"Canvas padding in SVG user units.",defaultLabel:"`40`",validationExpectation:"be a non-negative finite number",schema:Pm("Canvas padding in SVG user units.",40),terminal:"not-applicable",terminalNote:"terminal output uses paddingX, paddingY, and boxBorderPadding",applicableBuiltinFamilies:["flowchart","state","architecture"]},nodeSpacing:{typeScript:"number",description:"Horizontal spacing between sibling nodes.",defaultLabel:"`24`",validationExpectation:"be a non-negative finite number",schema:Pm("Horizontal spacing between sibling nodes.",24),terminal:"not-applicable",terminalNote:"terminal layout has a cell-grid spacing contract",applicableBuiltinFamilies:Yjt},layerSpacing:{typeScript:"number",description:"Vertical spacing between graph layers.",defaultLabel:"`40`",validationExpectation:"be a non-negative finite number",schema:Pm("Vertical spacing between graph layers.",40),terminal:"not-applicable",terminalNote:"terminal layout has a cell-grid spacing contract",applicableBuiltinFamilies:Yjt},wrappingWidth:{typeScript:"number",description:"Flowchart measured-label wrapping budget in pixels.",defaultLabel:"unset",validationExpectation:"be a positive finite number",schema:JE("Flowchart measured-label wrapping budget in pixels."),terminal:"not-applicable",terminalNote:"terminal output uses maxWidth or targetWidth",applicableBuiltinFamilies:["flowchart"]},componentSpacing:{typeScript:"number",description:"Spacing between disconnected graph components for compatible extension families; no built-in family currently consumes it.",defaultLabel:"extension-defined",validationExpectation:"be a non-negative finite number",schema:Pm("Spacing between disconnected graph components for compatible extension families; no built-in family currently consumes it."),terminal:"not-applicable",terminalNote:"terminal layout has a cell-grid spacing contract",applicableBuiltinFamilies:[]},transparent:{typeScript:"boolean",description:"Omit the painted SVG canvas background.",defaultLabel:"`false`",validationExpectation:"be a boolean",schema:UE("Omit the painted SVG canvas background.",!1),terminal:"projected",terminalNote:"terminal output has no painted canvas background"},interactive:{typeScript:"boolean",description:"Enable hover tooltips for supported chart data points.",defaultLabel:"`false`",validationExpectation:"be a boolean",schema:UE("Enable hover tooltips for supported chart data points.",!1),terminal:"projected",terminalNote:"terminal output is a static semantic projection",applicableBuiltinFamilies:["xychart","pie","quadrant"]},shadow:{typeScript:"boolean",description:"Paint explicit drop shadows on node shapes.",defaultLabel:"`false`",validationExpectation:"be a boolean",schema:UE("Paint explicit drop shadows on node shapes.",!1),terminal:"projected",terminalNote:"elevation projects to borders and labels",applicableBuiltinFamilies:GLn},class:{typeScript:"{ hierarchicalNamespaces?: boolean }",description:"Class-diagram rendering controls.",defaultLabel:"`hierarchicalNamespaces: true`",validationExpectation:"be a class options object",schema:U6({hierarchicalNamespaces:UE("Nest namespace compounds.",!0)},"Class-diagram rendering controls."),terminal:"not-applicable",terminalNote:"this option configures graphical class layout",applicableBuiltinFamilies:["class"]},architecture:{typeScript:"{ visual?: ArchitectureVisualOverrides }",description:"Sparse architecture renderer visual metric and paint overrides.",defaultLabel:"built-in metrics",validationExpectation:"be an architecture options object",schema:U6({visual:jLn},"Architecture renderer visual metric and paint overrides."),terminal:"not-applicable",terminalNote:"this option configures graphical architecture rendering",applicableBuiltinFamilies:["architecture"]},timeline:{typeScript:"{ maxWidth?: number }",description:"Timeline layout controls.",defaultLabel:"`maxWidth`: unset",validationExpectation:"be a timeline options object",schema:U6({maxWidth:JE("Best-effort width budget for horizontal timelines.")},"Timeline layout controls."),terminal:"not-applicable",terminalNote:"terminal output uses maxWidth or targetWidth",applicableBuiltinFamilies:["timeline"]},journey:{typeScript:"{ experienceCurve?: boolean }",description:"User-journey graphical controls.",defaultLabel:"`experienceCurve: true`",validationExpectation:"be a journey options object",schema:U6({experienceCurve:UE("Connect journey score markers with an experience curve.",!0)},"User-journey graphical controls."),terminal:"not-applicable",terminalNote:"experience curves are graphical-only",applicableBuiltinFamilies:["journey"]},gantt:{typeScript:"{ dependencyArrows?: boolean; criticalPath?: boolean }",description:"Gantt dependency and critical-path overlays.",defaultLabel:"both `false`",validationExpectation:"be a Gantt options object",schema:U6({dependencyArrows:UE("Draw scheduled dependency connectors.",!1),criticalPath:UE("Emphasize critical-path tasks and connectors.",!1)},"Gantt dependency and critical-path overlays."),terminal:"not-applicable",terminalNote:"graphical Gantt connector emphasis is not represented in cells",applicableBuiltinFamilies:["gantt"]},mermaidConfig:{typeScript:"MermaidRuntimeConfig",description:"Mermaid-style recursive runtime configuration.",defaultLabel:"source config",validationExpectation:"be a plain JSON object",schema:{type:"object",description:"Mermaid-style recursive runtime configuration.",additionalProperties:{$ref:"#/$defs/jsonValue"}},terminal:"consumed"},embedFontImport:{typeScript:"boolean",description:"Embed the Google Fonts import in SVG styles; PNG forces this off for offline rasterization.",defaultLabel:"`false`",validationExpectation:"be a boolean",schema:UE("Embed the Google Fonts import in SVG styles; PNG forces this off for offline rasterization.",!1),terminal:"not-applicable",terminalNote:"terminal output embeds no web-font import"},compact:{typeScript:"boolean",description:"Compact SVG serialization while preserving agent hooks.",defaultLabel:"`false`",validationExpectation:"be a boolean",schema:UE("Compact SVG serialization while preserving agent hooks.",!1),terminal:"not-applicable",terminalNote:"compact controls SVG serialization"},idPrefix:{typeScript:"string",description:"Non-empty namespace for generated SVG definition IDs and local references.",defaultLabel:"unset",validationExpectation:"be non-empty and contain only ASCII letters, digits, underscore, hyphen, dot, and colon",schema:{..._le("Non-empty namespace for generated SVG definition IDs and local references."),pattern:"^[A-Za-z0-9_.:-]+$"},terminal:"not-applicable",terminalNote:"terminal output has no SVG definition ids"},security:{typeScript:"'default' | 'strict'",description:"Active SVG content is rejected in every mode; strict additionally rejects every external reference. Raw Mermaid themeCSS is rejected in both modes.",defaultLabel:"`default`",validationExpectation:"be default or strict",schema:{type:"string",enum:["default","strict"],description:"Active SVG content is rejected in every mode; strict additionally rejects every external reference. Raw Mermaid themeCSS is rejected in both modes.",default:"default"},terminal:"not-applicable",terminalNote:"terminal text has its own control-character and HTML-color safety projection"},ganttToday:{typeScript:"string",description:"Explicit deterministic date for the Gantt today marker.",defaultLabel:"unset",validationExpectation:"be a string",schema:_le("Explicit deterministic date for the Gantt today marker."),terminal:"consumed",applicableBuiltinFamilies:["gantt"]},seed:{typeScript:"number",description:"Deterministic re-roll seed for stochastic Styles.",defaultLabel:"`0`",validationExpectation:"be a finite number",schema:$O("Deterministic re-roll seed for stochastic Styles.",0),terminal:"not-applicable",terminalNote:"terminal glyph geometry is deterministic and has no stochastic ink"}}),lk=Object.freeze(Object.keys(RO)),zLn=Object.freeze(lk.filter(r=>"applicableBuiltinFamilies"in RO[r]));function Sw(r){if(typeof r!="object"||r===null||Array.isArray(r))return!1;let i=Object.getPrototypeOf(r);return i===Object.prototype||i===null}var WLn=new Set(["__proto__","prototype","constructor"]);function TO(r){return Sw(r)?r:void 0}function cLe(r){let i=s=>Array.isArray(s)?s.map(i):Sw(s)?Object.fromEntries(Object.entries(s).map(([c,u])=>[c,i(u)])):s;return i(r)}function sBt(r){let i=String(r[0]??"");for(let s of r.slice(1))i+=typeof s=="number"?`[${s}]`:`.${s}`;return`render option "${i}"`}function aBt(r){return pH(O3e(r).map(i=>i.path.length>0?`${sBt(i.path)} ${i.message}`:`render options ${i.message}`),"render options")}function cBt(r,i){let s=r.$ref;if(typeof s!="string"||!s.startsWith("#/"))return;let c=i;for(let u of s.slice(2).split("/")){if(!Sw(c))return;let f=u.replaceAll("~1","/").replaceAll("~0","~");c=c[f]}return TO(c)}function lLe(r,i,s){let c=cBt(i,s);if(c)return lLe(r,c,s);let u=Array.isArray(i.anyOf)?i.anyOf.map(TO).filter(f=>f!==void 0):[];if(u.length>0)return u.some(f=>lLe(r,f,s));switch(i.type){case"null":return r===null;case"string":return typeof r=="string";case"number":return typeof r=="number";case"integer":return typeof r=="number";case"boolean":return typeof r=="boolean";case"array":return Array.isArray(r);case"object":return Sw(r);default:return!0}}function IO(r,i,s,c,u){let f=cBt(i,s);if(i.$ref!==void 0)return f?IO(r,f,s,c,u):[{path:c,message:"uses an unresolved schema reference",generic:!1}];let p=Array.isArray(i.anyOf)?i.anyOf.map(TO).filter(v=>v!==void 0):[];if(p.length>0){let v=p.filter(M=>lLe(r,M,s)),E=(v.length>0?v:p).map(M=>IO(r,M,s,c,u));if(!E.some(M=>M.length===0)){let M=i["x-agentic-mermaid-validation-expectation"];return v.length===0&&typeof M=="string"?[{path:c,message:`must be ${M}`,generic:!0}]:E.sort((R,P)=>R.length-P.length)[0]??[{path:c,message:"must match an allowed shape",generic:!0}]}}if("const"in i&&r!==i.const)return[{path:c,message:`must equal ${String(i.const)}`,generic:!0}];if(Array.isArray(i.enum)&&!i.enum.includes(r))return[{path:c,message:`must be one of ${i.enum.map(String).join(" | ")}`,generic:!0}];let m=i.type;if(!(m===void 0||m==="null"&&r===null||m==="string"&&typeof r=="string"||m==="number"&&typeof r=="number"&&Number.isFinite(r)||m==="integer"&&typeof r=="number"&&Number.isFinite(r)&&Number.isInteger(r)||m==="boolean"&&typeof r=="boolean"||m==="array"&&Array.isArray(r)||m==="object"&&Sw(r))){let v=m==="number"?"a finite number":m==="integer"?"a finite integer":m==="object"?"a plain JSON object":m==="array"?"an array":m==="null"?"null":`a ${String(m)}`;return[{path:c,message:`must be ${v}`,generic:!0}]}if(typeof r=="number"){if(typeof i.minimum=="number"&&r<i.minimum)return[{path:c,message:`must be at least ${i.minimum}`,generic:!0}];if(typeof i.exclusiveMinimum=="number"&&r<=i.exclusiveMinimum)return[{path:c,message:`must be greater than ${i.exclusiveMinimum}`,generic:!0}];if(typeof i.maximum=="number"&&r>i.maximum)return[{path:c,message:`must be at most ${i.maximum}`,generic:!0}]}if(typeof r=="string"&&typeof i.pattern=="string"){let v=!1;try{v=new RegExp(i.pattern).test(r)}catch{return[{path:c,message:"uses an invalid schema pattern",generic:!1}]}if(!v)return[{path:c,message:`must match ${i.pattern}`,generic:!0}]}if(Array.isArray(r)&&m==="array"){if(u.has(r))return[{path:c,message:"must be acyclic",generic:!1}];let v=TO(i.items);if(v){u.add(r);try{let S=r.flatMap((E,M)=>IO(E,v,s,[...c,M],u));if(S.length>0)return S}finally{u.delete(r)}}}if(Sw(r)&&m==="object"){if(u.has(r))return[{path:c,message:"must be acyclic",generic:!1}];u.add(r);try{let v=TO(i.properties)??{},S=Array.isArray(i.required)?i.required.filter(M=>typeof M=="string"):[],E=[];for(let M of S)Object.prototype.hasOwnProperty.call(r,M)||E.push({path:[...c,M],message:"is required",generic:!1});for(let[M,R]of Object.entries(r)){if(WLn.has(M)){E.push({path:[...c,M],message:"uses a forbidden prototype key",generic:!1});continue}let P=TO(v[M]);if(P){E.push(...IO(R,P,s,[...c,M],u));continue}if(i.additionalProperties===!1){E.push({path:[...c,M],message:"is not allowed",generic:!1});continue}let N=TO(i.additionalProperties);N&&E.push(...IO(R,N,s,[...c,M],u))}if(E.length>0)return E}finally{u.delete(r)}}let x=i["x-agentic-mermaid-runtime-validator"];if(x==="safeCssColor"&&Ks(r)===void 0)return[{path:c,message:"must be a safe, non-fetching CSS color",generic:!1}];if(x==="safeCssPaint"&&xg(r)===void 0)return[{path:c,message:"must be a safe, non-fetching CSS paint",generic:!1}];if(x==="safeCssFontFamily"&&NA(r)===void 0)return[{path:c,message:"must be a safe, non-fetching CSS font family or stack",generic:!1}];if(x==="styleInput")try{Lce(r)}catch(v){return[{path:c,message:`is invalid: ${v instanceof Error?v.message:String(v)}`,generic:!1}]}if(x==="architectureVisual"&&Sw(r)){let v=r.junctionOuterRadius,S=r.junctionInnerRadius;if(typeof v=="number"&&typeof S=="number"&&S>v)return[{path:[...c,"junctionInnerRadius"],message:"must not exceed junctionOuterRadius",generic:!1}]}return[]}function Ble(r){if(!Sw(r))return["render options must be a plain JSON object"];let i=aBt(r);if(i.length>0)return i;let s=[],c=new Set(lk),u=hLe();for(let[f,p]of Object.entries(r)){if(!c.has(f)){s.push(`unknown render option "${f}"`);continue}if(p===null){s.push(`render option "${f}" must be omitted instead of null`);continue}let m=RO[f],y=IO(p,m.schema,u,[f],new Set);y.length>0&&y.every(x=>x.generic&&x.path.length===1)?s.push(`render option "${f}" must ${m.validationExpectation}`):s.push(...y.map(x=>`${sBt(x.path)} ${x.message}`))}return pH(s,"render options")}function hLe(){let r={};for(let i of lk){let s=RO[i],c="terminalNote"in s?s.terminalNote:void 0,u="applicableBuiltinFamilies"in s?s.applicableBuiltinFamilies:void 0;r[i]={...cLe(s.schema),"x-agentic-mermaid-terminal":s.terminal,...c===void 0?{}:{"x-agentic-mermaid-terminal-note":c},...u===void 0?{}:{"x-agentic-mermaid-applicable-builtin-families":[...u]}}}return{$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://agentic-mermaid.dev/schemas/render-options.schema.json",type:"object",additionalProperties:!1,properties:r,$defs:{jsonValue:cLe(aLe)}}}function lBt(r){return{...cLe(iBt),...r===void 0?{}:{description:r}}}var OU=class extends Error{constructor(s,c){super(`Parsed Mermaid family "${s}" serialized as family "${c}"`);this.expectedFamilyId=s;this.detectedFamilyId=c}expectedFamilyId;detectedFamilyId;name="ParsedDiagramFamilyMismatchError";code="PARSED_DIAGRAM_FAMILY_MISMATCH"},qE=class extends Error{name="RenderCapabilityError";code="UNSATISFIED_RENDER_CAPABILITIES";output;family;decision;constructor(i,s,c,u){super(i),this.output=s,this.family=Object.freeze({id:c.identity.id,version:c.identity.version}),this.decision=u}toJSON(){return{name:this.name,code:this.code,message:this.message,output:this.output,family:this.family,decision:this.decision}}},gLe=new WeakMap;function JA(r){let i=gLe.get(r);if(!i)throw new Error("Resolved render request has no internal execution plan");return i}function HLn(r,i){if(r.id.startsWith("family:")){let c=new Set(r.applicableRenderOptions??[]);return Object.freeze(i.flatMap(u=>!zLn.includes(u)||c.has(u)?[]:[Object.freeze({code:"RENDER_OPTION_NOT_APPLICABLE",feature:`render-option:${u}`,message:`Render option "${u}" does not apply to extension family "${r.id}". Its FamilyDescriptor does not list the field in applicableRenderOptions.`})]))}let s=r.id;return Object.freeze(i.flatMap(c=>{let u=RO[c];if(!("applicableBuiltinFamilies"in u))return[];let f=u.applicableBuiltinFamilies;if(f.includes(s))return[];let p=f.length===0?"No built-in family currently consumes this option.":`Applicable built-in families: ${f.join(", ")}.`;return[Object.freeze({code:"RENDER_OPTION_NOT_APPLICABLE",feature:`render-option:${c}`,message:`Render option "${c}" does not apply to built-in Mermaid family "${s}". ${p}`})]}))}function ULn(r,i){let s=new Set;return Object.freeze([...r.resolutionDiagnostics??[],...i].flatMap(c=>{let u=q6(c);return s.has(u)?[]:(s.add(u),[Object.freeze({...c})])}))}function Gle(r,i=[]){let s=gLe.get(r)?.executionDecision;return Object.freeze({version:r.version,output:r.output,sharedRequestDigest:r.sharedRequestDigest,requestDigest:r.requestDigest,appearanceDigest:r.appearance.digest,capabilityDecision:r.capabilityDecision,diagnostics:ULn(r,i),...s?{executionDecision:s}:{}})}function V6(r){return Object.freeze({renderOptions:r.renderOptions,...r.appearance.face?{styleFace:r.appearance.face}:{},...r.familyConfig?{familyConfig:r.familyConfig}:{},...r.appearance.family?{familyAppearance:r.appearance.family}:{}})}function JLn(r,i,s){let c={...r},u=p=>K2[p].some(m=>s?.[m]!==void 0),f=["bg","fg","line","accent","muted","surface","border"];for(let p of f)c[p]===void 0&&!u(p)&&i.colors?.[p]!==void 0&&(c[p]=i.colors[p]);return c.font===void 0&&i.font!==void 0&&(c.font=i.font),c}function uLe(r){let i={};for(let s of lk){let c=r[s];c!==void 0&&(i[s]=c)}return i}var qLn=new Set(["padding","nodeSpacing","layerSpacing","wrappingWidth","class"]);function VLn(r){return Object.fromEntries(Object.entries(r).filter(([i,s])=>s!==void 0&&!fLe.includes(i)))}function YLn(r,i=r){return QNt(r.lines[0]??r.firstLine,r.originalText,"strict",i.wrapperSource?.length??0,i.lines[0]??i.firstLine)}function XLn(r,i,s){if(s.onConfigDiagnostic!==void 0)throw new TypeError(`Family "${r.id}" request normalizer may not return executable option "onConfigDiagnostic"`);let c=Ble(VLn(s));if(c.length>0)throw new TypeError(`Family "${r.id}" returned invalid normalized RenderOptions: ${c.join("; ")}`);let u=uLe(i),f=uLe(s);for(let p of lk)if(!qLn.has(p)&&q6(u[p])!==q6(f[p]))throw new TypeError(`Family "${r.id}" request normalizer may not rewrite non-geometry option "${p}"`)}function KLn(r,i,s){let c=new Set(["bg","fg","line","accent","muted","surface","border","shadow","font","embedFontImport"]),u=Object.keys(i).find(p=>!c.has(p));if(u)throw new TypeError(`Family "${r.id}" returned unknown appearance color field "${u}"`);let f={...s};for(let p of["bg","fg","line","accent","muted","surface","border"]){let m=i[p];if(m===void 0)continue;let y=xg(m);if(y===void 0)throw new TypeError(`Family "${r.id}" returned an unsafe ${p} paint`);f[p]=y}if(i.font!==void 0){let p=NA(i.font);if(p===void 0)throw new TypeError(`Family "${r.id}" returned an unsafe font family`);if(p!==s.font)throw new TypeError(`Family "${r.id}" request normalizer may not rewrite appearance field "font"`)}if(i.shadow!==void 0){if(typeof i.shadow!="boolean")throw new TypeError(`Family "${r.id}" returned a non-boolean shadow value`);if(i.shadow!==s.shadow)throw new TypeError(`Family "${r.id}" request normalizer may not rewrite appearance field "shadow"`)}if(i.embedFontImport!==void 0){if(typeof i.embedFontImport!="boolean")throw new TypeError(`Family "${r.id}" returned a non-boolean embedFontImport value`);if(i.embedFontImport!==s.embedFontImport)throw new TypeError(`Family "${r.id}" request normalizer may not rewrite appearance field "embedFontImport"`)}return f}var Xjt=64,Dle=1e5,Fle=2e6;function jle(r,i="$",s=0,c=new Set,u={nodes:0,chars:0}){if(typeof r=="string"){if(u.chars+=r.length,u.chars>Fle)throw new TypeError(`data exceeds the ${Fle}-character aggregate limit at ${i}`);return r}if(r===null||typeof r!="object")return r;if(s>Xjt)throw new TypeError(`data exceeds maximum depth ${Xjt} at ${i}`);if(++u.nodes>Dle)throw new TypeError(`data exceeds the ${Dle}-node aggregate limit at ${i}`);if(c.has(r))throw new TypeError(`data must be acyclic at ${i}`);if(Array.isArray(r)){if(r.length>Dle)throw new TypeError(`data array exceeds the ${Dle}-entry limit at ${i}`);c.add(r);try{let f=[];for(let p=0;p<r.length;p++){if(!Object.prototype.hasOwnProperty.call(r,p))throw new TypeError(`data must not contain a sparse array at ${i}[${p}]`);f.push(jle(r[p],`${i}[${p}]`,s+1,c,u))}return f}finally{c.delete(r)}}if(!Sw(r))return r;c.add(r);try{let f=Object.create(null);for(let[p,m]of Object.entries(r)){if(u.chars+=p.length,u.chars>Fle)throw new TypeError(`data exceeds the ${Fle}-character aggregate limit at ${i}.${p}`);m!==void 0&&(f[p]=jle(m,`${i}.${p}`,s+1,c,u))}return f}finally{c.delete(r)}}function Kjt(r,i,s){if(i===void 0)return;if(!Sw(i))throw new TypeError(`Family "${r.id}" returned ${s} data that is not a plain object`);let c;try{c=jle(i)}catch(p){throw new TypeError(`Family "${r.id}" returned invalid ${s} data: ${p instanceof Error?p.message:String(p)}`)}let u={...aLe,$defs:{jsonValue:aLe}},f=IO(c,u,u,[`family${s==="config"?"Config":"Appearance"}`],new Set);if(f.length>0){let p=f.map(m=>`${m.path.join(".")} ${m.message}`).join("; ");throw new TypeError(`Family "${r.id}" returned invalid ${s} data: ${p}`)}return Jh(c)}function QLn(r,i,s,c,u,f){if(!r.normalizeRequest)return{renderOptions:s,colors:c};let p=Object.freeze({source:Jh(i),renderOptions:Jh(s),colors:Jh(c),...u?{style:Jh(u)}:{},...f?{styleFace:Jh(f)}:{}}),m=r.normalizeRequest(p);if(m===void 0)return{renderOptions:s,colors:c};let y;try{y=mLe(m,`Family "${r.id}" request normalizer result`)}catch(N){throw new TypeError(`Family "${r.id}" request normalizer returned invalid data: ${N instanceof Error?N.message:String(N)}`)}if(!Sw(y))throw new TypeError(`Family "${r.id}" request normalizer must return a plain object`);let x=Object.keys(y).find(N=>!["renderOptions","familyConfig","appearance"].includes(N));if(x)throw new TypeError(`Family "${r.id}" request normalizer returned unknown field "${x}"`);let v=y,S=v.appearance;if(S!==void 0){let N=S;if(!Sw(N))throw new TypeError(`Family "${r.id}" request normalizer returned a non-object appearance`);let F=Object.keys(N).find(L=>!["colors","family"].includes(L));if(F)throw new TypeError(`Family "${r.id}" request normalizer returned unknown appearance field "${F}"`)}let E=v.renderOptions??s;XLn(r,s,E);let M=S?.colors?KLn(r,S.colors,c):c,R=Kjt(r,v.familyConfig,"config"),P=Kjt(r,S?.family,"appearance");return{renderOptions:E,colors:M,...R?{familyConfig:R}:{},...P?{familyAppearance:P}:{}}}function q6(r){if(r===null||typeof r!="object")return JSON.stringify(r);if(Array.isArray(r))return`[${r.map(q6).join(",")}]`;let i=r;return`{${Object.keys(i).sort().filter(s=>i[s]!==void 0).map(s=>`${JSON.stringify(s)}:${q6(i[s])}`).join(",")}}`}function UA(r){let i;try{i=mLe(r,"render contract digest input")}catch(u){let f=(u instanceof Error?u.message:String(u)).replace("data exceeds maximum depth","data exceeds maximum nesting depth");throw new TypeError(f)}SA(i,"render contract digest input",{allowUndefinedObjectProperties:!0});let s=q6(i),c=0xcbf29ce484222325n;for(let u=0;u<s.length;u++)c^=BigInt(s.charCodeAt(u)),c=BigInt.asUintN(64,c*0x100000001b3n);return`fnv1a64:${c.toString(16).padStart(16,"0")}`}function Jh(r,i="$",s=new Set){if(r===null||typeof r!="object")return r;if(s.has(r))throw new TypeError(`render request contains a cycle at ${i}`);let c=Object.getPrototypeOf(r);if(!Array.isArray(r)&&c!==Object.prototype&&c!==null)throw new TypeError(`render request contains a non-JSON object at ${i}`);s.add(r);let u=Array.isArray(r)?r.map((f,p)=>Jh(f,`${i}[${p}]`,s)):Object.fromEntries(Object.entries(r).map(([f,p])=>[f,Jh(p,`${i}.${f}`,s)]));return s.delete(r),Object.freeze(u)}function mLe(r,i){try{return Jh(jle(r))}catch(s){throw new TypeError(`${i} could not be snapshotted: ${s instanceof Error?s.message:String(s)}`)}}function ZLn(r){if(typeof r!="object"&&typeof r!="function"||r===null)throw new TypeError("Invalid RenderOptions: render options must be an object");let i=[],s;for(let[f,p]of Object.entries(r))f==="onConfigDiagnostic"?s=p:p!==void 0&&i.push([f,p]);if(s!==void 0&&typeof s!="function")throw new TypeError("Invalid RenderOptions: onConfigDiagnostic must be a function");let c=Object.fromEntries(i),u;try{u=mLe(c,"RenderOptions")}catch(f){let p=(f instanceof Error?f.message:String(f)).replace("data exceeds maximum depth","render option tree exceeds maximum nesting depth");throw new TypeError(`Invalid RenderOptions: ${p}`)}return Object.freeze({serializable:u,...s===void 0?{}:{onConfigDiagnostic:s}})}function eDn(r){let i=r===void 0?[]:Array.isArray(r)?r:[r];return Jh(i.flatMap(s=>{if(typeof s!="string"||s==="crisp")return[];let c=tU(s);return c?[{input:s,canonicalId:c.canonicalId}]:[]}))}function tDn(r){let i=new Set;for(let s of Object.values(K2))for(let c of s){let u=r.config.themeVariables?.[c];typeof u=="string"&&u.length>0&&Ks(u)===void 0&&i.add(c)}return Object.freeze([...i].sort())}var pLe="1.0.0";function XI(r,i,s=pLe){return i?[{id:r,version:s}]:[]}function kw(r,i=`^${pLe}`){return{id:r,range:i,level:"required"}}function Qjt(r){return`scene-primitive:${r.primitive}/${r.feature}/${r.operation}`}function nDn(r){let i=new Set(r.scenePrimitiveEvidence.filter(s=>s.applicability==="applicable").map(s=>s.primitive));return sF.filter(s=>i.has(s.primitive))}function Zjt(r,i){return r.backend.capabilities.some(s=>s.primitive===i.primitive&&s.feature===i.feature&&s.operation===i.operation&&s.realization!=="unsupported")}function rDn(r){return r.resolutions.filter(i=>i.level==="required"&&i.status!=="selected").map(i=>i.id).join(", ")}function iDn(r,i,s,c,u,f){let p=rDn(f),m=p?` (unsatisfied capabilities: ${p})`:"";return r==="layout"?new qE(`No public layout projection registered for Mermaid family "${i.id}"${m}`,r,i,f):r==="ascii"||r==="unicode"||r==="html"?new qE(`No ASCII renderer registered for Mermaid family ${i.id}${m}`,r,i,f):s.styled&&!i.lowerScene?new qE(`Family "${i.id}" does not support styled rendering (no SceneGraph lowering registered). Render without the style option, or register a lowerScene hook for the family.${m}`,r,i,f):c==="scene"&&i.layout&&i.lowerScene&&!u?new qE(s.styled?`Style "${s.style?.name??"(inline)"}" requires an unavailable SceneGraph backend${m}`:`Default SceneGraph backend is not registered${m}`,r,i,f):new qE(`No SVG renderer registered for Mermaid family ${i.id}${m}`,r,i,f)}function oDn(r,i,s,c,u,f){let p,m,y;s==="svg"||s==="png"?(p=i.styled||r.lowerScene?"scene":"family-svg",p==="scene"&&(y=i.styled?i.inferredBackend:"default",m=wOe(y,c.backendPolicy))):s==="layout"?p="layout":p="terminal";let x=p==="scene"?nDn(r):[],v=m?x.flatMap(F=>XI(Qjt(F),Zjt(m,F))):[],S=[{id:r.identity.id,version:r.identity.version},...XI("operation:layout",r.layout!==void 0),...XI("operation:project-positioned",r.projectPositioned!==void 0),...XI("operation:lower-scene",r.lowerScene!==void 0),...XI("operation:render-svg",r.renderSvg!==void 0),...XI("operation:render-terminal",r.renderAscii!==void 0),...XI("core:scene",p==="scene"),...XI("backend:scene-renderer",m!==void 0,m?.identity.version),...v],E=[kw("core:family-descriptor"),kw(r.identity.id,r.identity.version)],M;switch(p){case"scene":E.push(kw("core:scene"),kw("operation:layout"),kw("operation:lower-scene"),kw("backend:scene-renderer",m?.identity.version??pLe),...x.map(F=>kw(Qjt(F)))),M=!!(r.layout&&r.lowerScene&&m&&x.every(F=>Zjt(m,F)));break;case"family-svg":E.push(kw("operation:layout"),kw("operation:render-svg")),M=!!(r.layout&&r.renderSvg);break;case"terminal":E.push(kw("operation:render-terminal")),M=r.renderAscii!==void 0;break;case"layout":E.push(kw("operation:layout"),kw("operation:project-positioned")),M=!!(r.layout&&r.projectPositioned);break}let R=dPt(s,{offers:S,requirements:E,outputAvailable:M});if(!R.accepted)throw iDn(s,r,i,p,m,R);let P;if(p==="scene"||p==="family-svg"){let F=Object.freeze(p==="scene"?{mode:"scene",requestedId:y,selectedId:m.identity.id,version:m.identity.version,hostPolicy:c.backendPolicy!==void 0}:{mode:"family-svg"}),L={family:Object.freeze({id:r.identity.id,version:r.identity.version}),backend:F};P=Object.freeze({...L,digest:UA(L)})}let N=u===void 0?void 0:Object.freeze(qjt(r.id,u,r.config).map(F=>Object.freeze({...F})));return Object.freeze({output:s,mode:p,family:r,...m?{backend:m}:{},...y?{requestedBackendId:y}:{},...N===void 0?{}:{configDiagnostics:N},...f?{onConfigDiagnostic:f}:{},capabilityDecision:R,...P?{executionDecision:P}:{}})}function eBt(r){return!r.id.startsWith("output:")&&!r.id.startsWith("operation:")&&!r.id.startsWith("backend:")&&!r.id.startsWith("scene-primitive:")&&r.id!=="core:scene"}function sDn(r){let{family:i,source:s,options:c,style:u,styleFace:f}=r,p=c.security==="strict"?{...c,embedFontImport:!1}:{...c},m=u!==void 0&&i6t(u);m&&(p=JLn(p,u,s.config.themeVariables));let y=c.font??s.config.fontFamily??ENe(s.config.themeVariables,"fontFamily")??p.font??"Inter",{style:x,...v}=p,S={...v,...u?{style:u}:{},font:y,mermaidConfig:s.config},E={...Qae(S,s.config,y)},M=QLn(i,s,S,E,u,f),R=Jh(M.colors),P=eDn(c.style),N=tDn(s),F={version:J6,colors:R,font:y,style:Jh(u),face:Jh(f),styled:m,inferredBackend:u?DE(u):"default",styleReferences:P,...N.length>0?{unsafeThemeColorKeys:N}:{},...M.familyAppearance?{family:M.familyAppearance}:{}},L=Jh({...F,digest:UA(F)});return Jh({renderOptions:Jh(M.renderOptions),appearance:L,...M.familyConfig?{familyConfig:M.familyConfig}:{}})}function zle(r,i={},s="svg",c,u={}){let f=ZLn(i),p=f.serializable,m=p,y=aBt(m);if(y.length>0)throw new TypeError(`Invalid RenderOptions: ${y.join("; ")}`);let x=r6t(p.style),v=x.style,S=Jh(x.face),E=Ble(m);if(E.length>0)throw new TypeError(`Invalid RenderOptions: ${E.join("; ")}`);let M=py(r),R=k4t(M,p.mermaidConfig??{}),P=M===r?R:J2(r),N=Object.freeze({...R,originalText:r}),F=u.familyDescriptor??YLn(N,P);if(u.expectedFamilyId!==void 0&&F.id!==u.expectedFamilyId)throw new OU(u.expectedFamilyId,F.id);let L=V5t(N.config.themeCSS,p.security??"default");if(L)throw new TypeError(L);let _=Object.freeze(lk.filter(Me=>p[Me]!==void 0)),j=HLn(F,_),z=sDn({family:F,source:N,options:p,...v?{style:v}:{},...S?{styleFace:S}:{}}),{appearance:W,renderOptions:Z,familyConfig:V}=z,H=oDn(F,W,s,u,p.mermaidConfig,f.onConfigDiagnostic),q=H.capabilityDecision,X=Object.freeze({version:q.version,accepted:q.resolutions.filter(eBt).every(Me=>Me.level!=="required"||Me.status==="selected"),resolutions:Object.freeze(q.resolutions.filter(eBt))}),ee={version:J6,authoredSource:N.originalText,source:N.text,options:uLe(Z),appearance:W.digest,...V?{familyConfig:V}:{},capabilities:X},oe=UA(ee),ge={...ee,output:s,outputOptions:c,capabilities:q},Ne=Object.freeze({version:J6,output:s,source:Jh(N),renderOptions:Z,appearance:W,...V?{familyConfig:V}:{},capabilityDecision:q,explicitOptionFields:_,...j.length===0?{}:{resolutionDiagnostics:j},sharedRequestDigest:oe,requestDigest:UA(ge)});return gLe.set(Ne,H),Ne}function aDn(r){return"positioned"in r?r:{positioned:r}}function LU(r,i,s=i.source){let c=JA(i).family;if(c.id!==r)throw new Error(`Resolved request planned family ${c.id}, not ${r}`);if(!c.layout)throw new Error(`No layout registered for Mermaid family ${r}`);let u=V6(i);return aDn(c.layout({source:s,renderOptions:u.renderOptions,...u.styleFace?{styleFace:u.styleFace}:{},...u.familyConfig?{familyConfig:u.familyConfig}:{},...u.familyAppearance?{familyAppearance:u.familyAppearance}:{}}))}function Dt(r){return kW(Math.round(r))}function KI(r,i){return kW(Math.round(r+i)-Math.round(r))}function bLe({positioned:r,options:i}){return Djt(r,i)}function fBt({positioned:r}){let i=r.nodes.map(c=>({id:c.id,x:Dt(c.x),y:Dt(c.y),w:Dt(c.width),h:Dt(c.height),shape:c.shape==="circle"?"ellipse":"rectangle",label:c.label})),s=r.edges.map((c,u)=>({id:`edge#${u}:${c.from}->${c.to}`,from:c.from,to:c.to,path:c.points.map(f=>[Dt(f.x),Dt(f.y)])}));return{version:1,nodes:i,edges:s,groups:[],bounds:{w:Dt(r.width),h:Dt(r.height)}}}function hBt({positioned:r}){let i=r.commits.map(u=>{let f=u.customType??u.type;return{id:u.id,x:Dt(u.x-10),y:Dt(u.y-10),w:Dt(20),h:Dt(20),shape:f==="CHERRY_PICK"?"diamond":f==="HIGHLIGHT"?"rectangle":"ellipse",label:u.message||u.id}}),s=r.edges.map((u,f)=>({id:`edge#${f}:${u.from}->${u.to}`,from:u.from,to:u.to,path:u.points.map(p=>[Dt(p.x),Dt(p.y)])})),c=r.showBranches?r.branches.map(u=>{let f=r.commits.filter(v=>v.branch===u.name),p=Math.min(u.x1,u.x2,...f.map(v=>v.x-10)),m=Math.min(u.y1,u.y2,...f.map(v=>v.y-10)),y=Math.max(u.x1,u.x2,...f.map(v=>v.x+10)),x=Math.max(u.y1,u.y2,...f.map(v=>v.y+10));return{id:`branch:${u.name}`,x:Dt(p),y:Dt(m),w:Dt(Math.max(1,y-p)),h:Dt(Math.max(1,x-m)),members:f.map(v=>v.id),label:u.name}}):[];return{version:1,nodes:i,edges:s,groups:c,bounds:{w:Dt(r.width),h:Dt(r.height)}}}function gBt({positioned:r,options:i}){let s=r.classes.map(p=>({id:p.id,x:Dt(p.x),y:Dt(p.y),w:KI(p.x,p.width),h:KI(p.y,p.height),shape:"rectangle",label:p.label})),c=new Map(r.classes.map(p=>[p.id,{x:p.x,y:p.y,width:p.width,height:p.height}])),u=r.relationships.map((p,m)=>({id:`rel#${m}:${p.from}->${p.to}`,from:p.from,to:p.to,path:p.points.map(y=>[Dt(y.x),Dt(y.y)]),label:p.label&&p.labelPosition?{x:Dt(p.labelPosition.x),y:Dt(p.labelPosition.y),text:p.label}:void 0,route:i.debug?pBt("class",m,p.points,c.get(p.from),c.get(p.to)):void 0})),f=r.namespaces.map(p=>({id:p.id,x:Dt(p.x),y:Dt(p.y),w:KI(p.x,p.width),h:KI(p.y,p.height),members:[...p.classIds],label:p.label,parentId:p.parentId}));return{version:1,nodes:s,edges:u,groups:f,bounds:{w:Dt(r.width),h:Dt(r.height)}}}function mBt({positioned:r,options:i}){let s=r.entities.map(m=>({id:m.id,x:Dt(m.x),y:Dt(m.y),w:KI(m.x,m.width),h:KI(m.y,m.height),shape:"rectangle",label:m.label})),c=new Map(r.entities.map(m=>[m.id,{x:m.x,y:m.y,width:m.width,height:m.height}])),u=DOe(r,Gi({},rU)),f=r.relationships.map((m,y)=>{let x=u.get(m);return{id:`rel#${y}:${m.entity1}->${m.entity2}`,from:m.entity1,to:m.entity2,path:m.points.map(v=>[Dt(v.x),Dt(v.y)]),label:m.label&&x?{x:Dt(x.x),y:Dt(x.y),text:m.label}:void 0,route:i.debug?pBt("er",y,m.points,c.get(m.entity1),c.get(m.entity2)):void 0}}),p=r.groups.map(m=>({id:m.id,x:Dt(m.x),y:Dt(m.y),w:KI(m.x,m.width),h:KI(m.y,m.height),members:[...r.entities.filter(y=>y.groupId===m.id).map(y=>y.id),...r.groups.filter(y=>y.parentId===m.id).map(y=>y.id)],label:m.label,parentId:m.parentId}));return{version:1,nodes:s,edges:f,groups:p,bounds:{w:Dt(r.width),h:Dt(r.height)}}}function pBt(r,i,s,c,u){let f=!!(c&&s[0]&&uBt(s[0].x,s[0].y,c,1)),p=!!(u&&s[s.length-1]&&uBt(s[s.length-1].x,s[s.length-1].y,u,1)),m=yLe(s);return{family:r,edgeIndex:i,routeClass:"family-layout",invariant:f&&p&&m?"orthogonal-box":"unverified-family-route",bendCount:wLe(s),orthogonal:m,sourceBoundary:f,targetBoundary:p}}function yLe(r){for(let i=1;i<r.length;i++){let s=r[i-1],c=r[i];if(Math.abs(s.x-c.x)>.5&&Math.abs(s.y-c.y)>.5)return!1}return!0}function wLe(r){if(r.length<3)return 0;let i=0;for(let s=1;s<r.length-1;s++){let c=r[s-1],u=r[s],f=r[s+1],p=Math.abs(c.x-u.x)<=.5&&Math.abs(u.x-f.x)<=.5,m=Math.abs(c.y-u.y)<=.5&&Math.abs(u.y-f.y)<=.5;!p&&!m&&i++}return i}function uBt(r,i,s,c){let u=(Math.abs(r-s.x)<=c||Math.abs(r-(s.x+s.width))<=c)&&i>=s.y-c&&i<=s.y+s.height+c,f=(Math.abs(i-s.y)<=c||Math.abs(i-(s.y+s.height))<=c)&&r>=s.x-c&&r<=s.x+s.width+c;return u||f}function DU(r,i,s,c,u="bounds"){let f=new Map;for(let p of i.groups)for(let m of p.members)f.set(m,p);return i.nodes.map(p=>{let m=cDn(p,i.bounds),y=f.get(p.id)??c,x=y?u==="center"?uDn(p,y):lDn(p,y):void 0;return{family:r,elementId:p.id,routeClass:"family-layout",invariant:m&&(x??!0)?s:"unverified-family-layout",bounds:{x:p.x,y:p.y,w:p.w,h:p.h},center:{x:Dt(p.x+p.w/2),y:Dt(p.y+p.h/2)},containment:u,withinBounds:m,...y?{groupId:y.id,withinGroup:x}:{}}})}function cDn(r,i,s=.5){return r.x>=-s&&r.y>=-s&&r.x+r.w<=i.w+s&&r.y+r.h<=i.h+s}function lDn(r,i,s=.5){return r.x>=i.x-s&&r.y>=i.y-s&&r.x+r.w<=i.x+i.w+s&&r.y+r.h<=i.y+i.h+s}function uDn(r,i,s=.5){let c=r.x+r.w/2,u=r.y+r.h/2;return c>=i.x-s&&u>=i.y-s&&c<=i.x+i.w+s&&u<=i.y+i.h+s}function bBt({positioned:r,options:i}){let s=new Map(r.lifelines.map(u=>[u.actorId,u.x]));return{version:1,nodes:[...r.actors.map(u=>({id:u.id,x:Dt(u.x-u.width/2),y:Dt(u.y),w:Dt(u.width),h:Dt(u.height),shape:"rectangle",label:u.label,role:"box"})),...r.notes.map((u,f)=>({id:`note#${f}`,x:Dt(u.x),y:Dt(u.y),w:Dt(u.width),h:Dt(u.height),shape:"note",label:u.text,role:"box"}))],edges:r.messages.map((u,f)=>{let p=dDn(u);return{id:`msg#${f}:${u.from}->${u.to}`,from:u.from,to:u.to,path:p.map(m=>[Dt(m.x),Dt(m.y)]),label:u.label?fDn(u):void 0,route:i.debug?hDn(f,u,p,s):void 0}}),groups:r.blocks.map((u,f)=>({id:`block#${f}:${u.type}`,x:Dt(u.x),y:Dt(u.y),w:Dt(u.width),h:Dt(u.height),members:[],label:u.label})),bounds:{w:Dt(r.width),h:Dt(r.height)}}}function dDn(r){if(!r.isSelf)return[{x:r.x1,y:r.y},{x:r.x2,y:r.y}];let i=30,s=20;return[{x:r.x1,y:r.y},{x:r.x1+i,y:r.y},{x:r.x1+i,y:r.y+s},{x:r.x2,y:r.y+s}]}function fDn(r){return r.isSelf?{x:Dt(r.x1+38),y:Dt(r.y+10),text:r.label}:{x:Dt((r.x1+r.x2)/2),y:Dt(r.y-10),text:r.label}}function hDn(r,i,s,c){let u=c.get(i.from),f=c.get(i.to),p=s[0],m=s[s.length-1],y=u!==void 0&&p!==void 0&&Math.abs(p.x-u)<=1,x=f!==void 0&&m!==void 0&&Math.abs(m.x-f)<=1,v=!i.isSelf&&s.every(E=>Math.abs(E.y-i.y)<=1),S=yLe(s);return{family:"sequence",edgeIndex:r,routeClass:"family-layout",invariant:y&&x&&S?i.isSelf?"self-message":"lifeline-message":"unverified-family-route",bendCount:wLe(s),horizontal:v,sourceLifeline:y,targetLifeline:x,selfMessage:i.isSelf}}function yBt({positioned:r,options:i}){let s=[],c=[];for(let f of r.sections){let p=[];for(let m of f.periods){let y=`${m.id}:period`;s.push({id:y,x:Dt(m.pillX),y:Dt(m.pillY),w:Dt(m.pillWidth),h:Dt(m.pillHeight),shape:"rounded",label:m.label}),p.push(y);for(let x of m.events)s.push({id:x.id,x:Dt(x.x),y:Dt(x.y),w:Dt(x.width),h:Dt(x.height),shape:"rectangle",label:x.text}),p.push(x.id)}f.framed&&c.push({id:f.id,x:Dt(f.x),y:Dt(f.y),w:Dt(f.width),h:Dt(f.height),members:p,label:f.label})}let u={version:1,nodes:s,edges:[],groups:c,bounds:{w:Dt(r.width),h:Dt(r.height)}};return i.debug&&(u.certificates=DU("timeline",u,"timeline-interval")),u}function wBt({positioned:r}){let i=[],s=[];for(let c of r.sections){let u=[];for(let p of c.tasks)i.push({id:p.id,x:Dt(p.x),y:Dt(p.y),w:Dt(p.width),h:Dt(p.height),shape:"rectangle",label:p.text}),u.push(p.id);let f=c.tasks.length>0?Math.max(c.y+c.height,...c.tasks.map(p=>p.y+p.height)):c.y+c.height;s.push({id:c.id,x:Dt(c.x),y:Dt(c.y),w:Dt(c.width),h:Dt(f-c.y),members:u,label:c.label})}return{version:1,nodes:i,edges:[],groups:s,bounds:{w:Dt(r.width),h:Dt(r.height)}}}function xBt({positioned:r,options:i}){let s=[...r.services.map(x=>({id:x.id,x:Dt(x.x),y:Dt(x.y),w:Dt(x.width),h:Dt(x.height),shape:"service",label:x.label,role:"box"})),...r.junctions.map(x=>({id:x.id,x:Dt(x.x),y:Dt(x.y),w:Dt(x.width),h:Dt(x.height),shape:"circle",label:void 0,role:"mark"}))],c=new Map,u=[],f=x=>{c.set(x.id,x),u.push({id:x.id,x:Dt(x.x),y:Dt(x.y),w:Dt(x.width),h:Dt(x.height),members:[...r.services.filter(v=>v.parentId===x.id).map(v=>v.id),...r.junctions.filter(v=>v.parentId===x.id).map(v=>v.id)],label:x.label,parentId:x.parentId});for(let v of x.children)f(v)};for(let x of r.groups)f(x);let p=new Map(r.services.map(x=>[x.id,x])),m=new Map(r.junctions.map(x=>[x.id,x])),y=r.edges.map((x,v)=>({id:`edge#${v}:${x.source.id}->${x.target.id}`,from:x.source.id,to:x.target.id,path:x.points.map(S=>[Dt(S.x),Dt(S.y)]),label:x.label&&x.labelPosition?{x:Dt(x.labelPosition.x),y:Dt(x.labelPosition.y),text:x.label}:void 0,route:i.debug?gDn(v,x,p,m,c):void 0}));return{version:1,nodes:s,edges:y,groups:u,bounds:{w:Dt(r.width),h:Dt(r.height)}}}function gDn(r,i,s,c,u){let f=M=>{if(M.boundary==="group"){let R=s.get(M.id);return R?.parentId?u.get(R.parentId):void 0}return s.get(M.id)??c.get(M.id)},p=f(i.source),m=f(i.target),y=i.points[0],x=i.points[i.points.length-1],v=!!(y&&p&&dBt(y,p,i.source.side,1)),S=!!(x&&m&&dBt(x,m,i.target.side,1)),E=yLe(i.points);return{family:"architecture",edgeIndex:r,routeClass:"family-layout",invariant:v&&S&&E&&i.obstacleFree?"side-anchored":"unverified-family-route",bendCount:wLe(i.points),orthogonal:E,sourceSide:i.source.side,targetSide:i.target.side,sourceBoundary:i.source.boundary,targetBoundary:i.target.boundary,sourceAnchored:v,targetAnchored:S,placement:i.placement,sourceFacesTarget:i.sourceFacesTarget,targetFacesSource:i.targetFacesSource,obstacleFree:i.obstacleFree}}function dBt(r,i,s,c){switch(s){case"L":return Math.abs(r.x-i.x)<=c&&r.y>=i.y-c&&r.y<=i.y+i.height+c;case"R":return Math.abs(r.x-(i.x+i.width))<=c&&r.y>=i.y-c&&r.y<=i.y+i.height+c;case"T":return Math.abs(r.y-i.y)<=c&&r.x>=i.x-c&&r.x<=i.x+i.width+c;case"B":return Math.abs(r.y-(i.y+i.height))<=c&&r.x>=i.x-c&&r.x<=i.x+i.width+c}}function ABt({positioned:r,options:i}){let s=[],c=new Map;r.bars.forEach(p=>{let m=c.get(p.seriesIndex)??0;c.set(p.seriesIndex,m+1),s.push({id:`bar#${p.seriesIndex}:pt#${m}`,x:Dt(p.x),y:Dt(p.y),w:Dt(p.width),h:Dt(p.height),shape:"rectangle",label:p.label,role:"labelled-mark"})}),r.lines.forEach(p=>{p.points.forEach((m,y)=>{s.push({id:`line#${p.seriesIndex}:pt#${y}`,x:Dt(m.x-3),y:Dt(m.y-3),w:Dt(6),h:Dt(6),shape:"circle",label:m.label,role:m.label?"labelled-mark":"mark"})})});let u=[{id:"plot",x:Dt(r.plotArea.x),y:Dt(r.plotArea.y),w:Dt(r.plotArea.width),h:Dt(r.plotArea.height),members:s.filter(p=>p.x+p.w/2>=r.plotArea.x&&p.x+p.w/2<=r.plotArea.x+r.plotArea.width&&p.y+p.h/2>=r.plotArea.y&&p.y+p.h/2<=r.plotArea.y+r.plotArea.height).map(p=>p.id)}],f={version:1,nodes:s,edges:[],groups:u,bounds:{w:Dt(r.width),h:Dt(r.height)}};return i.debug&&(f.certificates=DU("xychart",f,"plot-contained",u[0],"center")),f}function vBt({positioned:r,options:i}){let u={version:1,nodes:r.legend.map((f,p)=>{let m=`${f.label} (${BI(f.fraction)})`,y=Math.max(f.swatchSize,m.length*7+f.swatchSize);return{id:`slice#${p}:${f.label}`,x:Dt(f.x),y:Dt(f.y),w:Dt(y),h:Dt(f.swatchSize),shape:"rectangle",label:m}}),edges:[],groups:[],bounds:{w:Dt(r.width),h:Dt(r.height)}};return i.debug&&(u.certificates=DU("pie",u,"legend-contained")),u}function kBt({positioned:r,options:i}){let s=r.plot.x+r.plot.w,c=r.bars.map(p=>{let m=p.id??`task#${p.taskIndex}`;if(p.milestoneX!==void 0){let v=p.h/2;return{id:m,x:Dt(p.milestoneX-v),y:Dt(p.y),w:Dt(p.h),h:Dt(p.h),shape:"diamond",label:p.label}}let y=Math.max(2,p.w),x=Math.min(p.x,s-y);return{id:m,x:Dt(x),y:Dt(p.y),w:Dt(y),h:Dt(p.h),shape:"rectangle",label:p.label}}),u=r.sections.map((p,m)=>({id:`section#${m}`,x:Dt(r.plot.x),y:Dt(p.y),w:Dt(r.plot.w),h:Dt(p.h),members:r.bars.filter(y=>y.sectionIndex===m).map(y=>y.id??`task#${y.taskIndex}`),label:p.label})),f={version:1,nodes:c,edges:[],groups:u,bounds:{w:Dt(r.width),h:Dt(r.height)}};return i.debug&&(f.certificates=DU("gantt",f,"section-contained")),f}function SBt({positioned:r,options:i}){let s=r.points.map((f,p)=>({id:`point#${p}:${f.label}`,x:Dt(f.cx-f.radius),y:Dt(f.cy-f.radius),w:Dt(f.radius*2),h:Dt(f.radius*2),shape:"circle",label:f.label,role:"labelled-mark"})),c=r.regions.map(f=>({id:`quadrant#${f.number}`,x:Dt(f.x),y:Dt(f.y),w:Dt(f.width),h:Dt(f.height),members:r.points.map((p,m)=>({point:p,index:m})).filter(({point:p})=>f.number===(p.nx>=.5?p.ny>=.5?1:4:p.ny>=.5?2:3)).map(({point:p,index:m})=>`point#${m}:${p.label}`),label:f.label})),u={version:1,nodes:s,edges:[],groups:c,bounds:{w:Dt(r.width),h:Dt(r.height)}};return i.debug&&(u.certificates=DU("quadrant",u,"plot-contained")),u}function EBt({positioned:r}){let i=r.typography,s=[],c=r.rings.map((p,m)=>({id:`ring:${m}`,x:Dt(r.cx-p.r),y:Dt(r.cy-p.r),w:Dt(p.r*2),h:Dt(p.r*2),members:[]}));r.axes.forEach((p,m)=>{let y=8;for(let S of p.lines)y=Math.max(y,Qo(S,i.axisFontSize,i.axisFontWeight));let x=Math.max(i.axisFontSize,p.lines.length*i.axisFontSize*1.2),v=p.anchor==="start"?p.labelX:p.anchor==="end"?p.labelX-y:p.labelX-y/2;s.push({id:`axis#${m}:${p.id}`,x:Dt(v),y:Dt(p.labelY-x/2),w:Dt(y),h:Dt(x),shape:"rectangle",label:p.label,role:"labelled-mark"})}),r.tickLabels.forEach((p,m)=>{let y=Qo(p.text,i.tickFontSize,i.tickFontWeight),x=i.tickFontSize*1.2;s.push({id:`tick:${m}`,x:Dt(p.x-y/2),y:Dt(p.y-x/2),w:Dt(y),h:Dt(x),shape:"rectangle",label:p.text,role:"labelled-mark"})});let u=new Map;for(let p of r.curves)u.set(p.id,(u.get(p.id)??0)+1);let f=new Map;r.curves.forEach(p=>{let m=f.get(p.id)??0;f.set(p.id,m+1);let y=(u.get(p.id)??0)>1?`${p.id}#${m}`:p.id;p.vertices.forEach((x,v)=>{s.push({id:`dot:${y}:${v}`,x:Dt(x.x-3),y:Dt(x.y-3),w:Dt(6),h:Dt(6),shape:"circle",role:"mark"})})});for(let[p,m]of r.legend.entries()){s.push({id:`legend-swatch#${p}`,x:Dt(m.x),y:Dt(m.y),w:Dt(m.swatchSize),h:Dt(m.swatchSize),shape:"rectangle",role:"mark"});let y=8;for(let v of m.lines)y=Math.max(y,Qo(v,i.legendFontSize,i.legendFontWeight));let x=Math.max(i.legendFontSize,m.lines.length*i.legendFontSize*1.2);s.push({id:`legend-label#${p}`,x:Dt(m.textX),y:Dt(m.textY-x/2),w:Dt(y),h:Dt(x),shape:"rectangle",label:m.lines.join(" "),role:"labelled-mark"})}if(r.title){let p=Qo(r.title.text,r.title.fontSize,i.titleFontWeight),m=r.title.fontSize*1.2;s.push({id:"title",x:Dt(r.title.x-p/2),y:Dt(r.title.y-m/2),w:Dt(p),h:Dt(m),shape:"rectangle",label:r.title.text,role:"labelled-mark"})}return{version:1,nodes:s,edges:[],groups:c,bounds:{w:Dt(r.width),h:Dt(r.height)}}}function Np(r){return i=>r(i)}function Op(r){return i=>r(i)}function Lp(r,i={}){return{positioned:r,...i}}function mDn(r){let i=r.familyAppearance?.visual;return Lp(h6(uI(r.source.familyText),{...r.renderOptions,...r.styleFace?{styleFace:r.styleFace}:{},...i?{stateVisual:i}:{}}))}function pDn(r){let i=uI(r.source.familyText);return T5t(i,r.renderOptions,r.styleFace),Lp(h6(i,{...r.renderOptions,...r.styleFace?{styleFace:r.styleFace}:{}}))}function bDn(r){let i=uI(r.source.familyText),s={...r.config};i.direction==="LR"||i.direction==="RL"?(s.graphDirection="LR",s.reverseDirection=i.direction==="RL"):s.graphDirection="TD";let c=Sle(i,s);return $le(c),Ile(c),i.direction==="BT"&&(vle(c.canvas),kle(c.roleCanvas)),Cm(c.canvas,{roleCanvas:c.roleCanvas,colorMode:r.colorMode,theme:r.theme})}function yDn(r){let i=uI(r.source.familyText),s={...r.config};return s.graphDirection=i.direction==="LR"||i.direction==="RL"?"LR":"TD",s.reverseDirection=i.direction==="RL",ejt(i,s,r.colorMode,r.theme,r.options.targetWidth)}function wDn(r){let i=r.familyConfig,s=$N(D6(r.source.familyLines),r.source.accessibility);return Lp(ble(s,r.renderOptions,i?.layout),{injectAccessibility:!1})}function xDn(r){return Pjt(r.source.familyLines,r.config,r.colorMode,r.theme,r.options)}var ADn={normalizeRequest:r=>({renderOptions:M5t(r.source.frontmatter,r.renderOptions)}),layout:pDn,projectPositioned:Op(bLe),lowerScene:Np(AOe),renderAscii:bDn},vDn={normalizeRequest:r=>{let i=R5t(r.source.frontmatter,r.renderOptions),{stateVisual:s,...c}=i;return{renderOptions:c,...s?{appearance:{family:{visual:s}}}:{}}},layout:mDn,projectPositioned:Op(bLe),lowerScene:Np(AOe),renderAscii:yDn},kDn={normalizeRequest:r=>{let i=D8t(r.source.frontmatter,r.colors,r.renderOptions,r.styleFace);return{renderOptions:{...r.renderOptions,padding:r.renderOptions.padding??i.padding,nodeSpacing:r.renderOptions.nodeSpacing??i.nodeSpacing,layerSpacing:r.renderOptions.layerSpacing??i.layerSpacing},familyConfig:{layout:i.layout},appearance:{family:{visual:i.visual}}}},layout:wDn,projectPositioned:Op(xBt),lowerScene:Np(Y8t),renderAscii:xDn},SDn={normalizeRequest:r=>({familyConfig:{sequence:a6t(r.source.frontmatter)}}),layout:r=>{let i=r.familyConfig?.sequence??{},s=$N(Xoe(r.source.familyLines,i),r.source.accessibility);return Lp(o6t(s,r.renderOptions,i,r.styleFace))},projectPositioned:Op(bBt),lowerScene:Np(d6t),renderAscii:r=>Q9t(r.source.familyText,r.config,r.colorMode,r.theme,r.familyConfig?.sequence??{},r.options.targetWidth)},EDn={normalizeRequest:r=>({renderOptions:m6t(r.source.frontmatter,r.renderOptions)}),layout:r=>Lp(p6t($N(Hoe(r.source.familyLines),r.source.accessibility),r.renderOptions,r.styleFace)),projectPositioned:Op(gBt),lowerScene:Np(x6t),renderAscii:r=>rjt(r.source.familyText,r.config,r.colorMode,r.theme,r.options.targetWidth)},CDn={normalizeRequest:r=>({renderOptions:S6t(r.source.frontmatter,r.renderOptions)}),layout:r=>{let i=k6t($N(Joe(r.source.familyLines),r.source.accessibility),r.source.frontmatter);return Lp(E6t(i,r.renderOptions,r.styleFace))},projectPositioned:Op(mBt),lowerScene:Np(M6t),renderAscii:r=>ijt(r.source.familyText,r.config,r.colorMode,r.theme,r.options.targetWidth)},MDn={normalizeRequest:r=>({appearance:{family:{...D6t(r.renderOptions)}}}),layout:r=>Lp(N6t(jce(r.source.familyLines,r.source.accessibility),r.renderOptions,r.styleFace)),projectPositioned:Op(yBt),lowerScene:Np(O6t),renderAscii:r=>ojt(r.source.familyLines,r.config,r.colorMode,r.theme,r.options.maxWidth)},TDn={normalizeRequest:r=>({appearance:{family:GOe(r.renderOptions)}}),layout:r=>Lp(j6t(Gce(r.source.familyLines,r.source.accessibility),r.familyAppearance??GOe(r.renderOptions),r.renderOptions,r.styleFace)),projectPositioned:Op(wBt),lowerScene:Np(Q6t),renderAscii:r=>ujt(r.source.familyText,r.config,r.colorMode,r.theme,r.options.maxWidth,r.styleFace)},IDn={normalizeRequest:r=>{let i=uU(r.source.frontmatter),s=dU(r.source.frontmatter);return{familyConfig:{config:i},appearance:{...r.renderOptions.bg===void 0&&s.backgroundColor?{colors:{bg:s.backgroundColor}}:{},family:{theme:s}}}},layout:r=>{let i=r.familyConfig,s=r.familyAppearance,c=lU(EPe(Jce(r.source.familyLines),r.source.accessibility),i?.config??uU({}),s?.theme??dU({}));return Lp(v_t(c,r.renderOptions,r.styleFace),{injectAccessibility:!1})},projectPositioned:Op(ABt),lowerScene:Np(N_t),renderAscii:r=>{let i=r.familyConfig?.config,s=r.familyAppearance?.theme;return gjt(r.source.familyText,r.config,r.colorMode,r.theme,{},r.options.targetWidth,i&&s?{config:i,theme:s}:void 0)}},$Dn={normalizeRequest:r=>({familyConfig:{visual:pU(r.source.frontmatter)}}),layout:r=>Lp(F_t(yF(r.source.familyLines),r.renderOptions,r.familyConfig?.visual??pU(),r.styleFace)),projectPositioned:Op(vBt),lowerScene:Np(j_t),renderAscii:r=>kjt(r.source.familyLines,r.config,r.colorMode,r.theme,{},r.options.targetWidth,r.familyConfig?.visual,r.styleFace)},RDn={normalizeRequest:r=>({familyConfig:{visual:o4e(r.source.frontmatter)}}),layout:r=>Lp(H_t(EPe(xF(r.source.familyLines),r.source.accessibility),r.renderOptions,r.familyConfig?.visual??o4e(),r.styleFace)),projectPositioned:Op(SBt),lowerScene:Np(U_t),renderAscii:r=>Ejt(r.source.familyLines,r.config,r.colorMode,r.theme,r.options.targetWidth)},PDn={normalizeRequest:r=>({familyConfig:{visual:wU(r.source.frontmatter)}}),layout:r=>Lp(q_t(VF(r.source.lines,{title:typeof r.source.frontmatter.title=="string"?r.source.frontmatter.title:void 0}),r.renderOptions,r.familyConfig?.visual??wU(r.source.frontmatter),r.styleFace),{injectAccessibility:!1}),projectPositioned:Op(EBt),lowerScene:Np(Q_t),renderAscii:r=>Ijt(r.source.familyLines,r.config,r.colorMode,r.theme,r.source.frontmatter,r.options.targetWidth,r.styleFace)},NDn={normalizeRequest:r=>({familyConfig:{config:WF(r.source.frontmatter)}}),layout:r=>{let i=r.familyConfig?.config??WF(void 0),s=u8t(r.source.familyLines,i,{clock:{today:r.renderOptions.ganttToday},layout:{renderOptions:r.renderOptions,...r.styleFace?{styleFace:r.styleFace}:{}}});return Lp(s.positioned)},projectPositioned:Op(kBt),lowerScene:Np(w8t),renderAscii:r=>ljt(r.source.familyLines,r.config,r.colorMode,r.theme,void 0,{maxWidth:r.options.maxWidth,today:r.options.ganttToday,resolvedConfig:r.familyConfig?.config,styleFace:r.styleFace})},ODn={normalizeRequest:r=>({familyConfig:{position:x4e(r.source.config.mindmap,r.source.config.layout)}}),layout:r=>Lp(E8t($N(ME(r.source.familyBody),r.source.accessibility),r.familyConfig?.position??x4e(void 0,void 0)),{injectAccessibility:!1}),projectPositioned:Op(fBt),lowerScene:Np(C8t),renderAscii:r=>Ojt(ME(r.source.familyBody),r.config,r.colorMode,r.theme,r.options.targetWidth)},LDn={normalizeRequest:r=>({familyConfig:{position:k4e(r.source.config.gitGraph,r.source.config.themeVariables),...typeof r.source.frontmatter.title=="string"?{title:r.source.frontmatter.title}:{}},appearance:{family:{themeVariables:$8t(r.source.config.themeVariables)}}}),layout:r=>{let i=r.familyConfig,s=i?.position??k4e(void 0),c=$N(AI(r.source.familyBody,{mainBranchName:s.mainBranchName,mainBranchOrder:s.mainBranchOrder,title:i?.title}),r.source.accessibility);return Lp(I8t(c,s),{injectAccessibility:!1})},projectPositioned:Op(hBt),lowerScene:Np(R8t),renderAscii:r=>{let i=r.familyConfig;return Ljt(AI(r.source.familyBody,{mainBranchName:i?.position?.mainBranchName,mainBranchOrder:i?.position?.mainBranchOrder,title:i?.title}),r.config,r.colorMode,r.theme,r.options.targetWidth,r.familyAppearance?.themeVariables)}},CBt=Object.freeze({flowchart:ADn,state:vDn,sequence:SDn,timeline:MDn,class:EDn,er:CDn,journey:TDn,xychart:IDn,architecture:kDn,pie:$Dn,quadrant:RDn,radar:PDn,gantt:NDn,mindmap:ODn,gitgraph:LDn});var Wle=["detection","source-preservation","parse","serialize","mutation","verify","layout","scene","svg","terminal"],xLe=64*1024,PBt=2,MBt=2,f4r=Object.freeze({detection:"diagnosed","source-preservation":"source-preserved",parse:"diagnosed",serialize:"source-preserved",mutation:"diagnosed",verify:"diagnosed",layout:"diagnosed",scene:"diagnosed",svg:"diagnosed",terminal:"diagnosed"});function DDn(r,i,s){let c=[];for(let u of i){let f=new Map(u.primitives.map(p=>{let m=typeof p=="string"?{primitive:p,realization:"native"}:p;return[m.primitive,m]}));for(let p of bE){let m=f.get(p);c.push(m?{role:u.role,primitive:p,applicability:"applicable",realization:m.realization,evidence:s,...m.diagnostic?{diagnostic:m.diagnostic}:{}}:{role:u.role,primitive:p,applicability:"not-applicable",realization:"unsupported",evidence:s,diagnostic:`${r}/${u.role} does not lower to the ${p} primitive.`})}}return c}function FDn(r){let i=["src/__tests__/section-a-family-descriptor-conformance.test.ts"],s=r==="flowchart"||r==="state"?[...i,"src/__tests__/characterization-layout.test.ts"]:i;return[{capability:"detection",state:"native",evidence:i},{capability:"source-preservation",state:"native",evidence:i},{capability:"parse",state:"native",evidence:i},{capability:"serialize",state:"native",evidence:i},{capability:"mutation",state:"native",evidence:i},{capability:"verify",state:"native",evidence:i},{capability:"layout",state:"native",evidence:i},{capability:"scene",state:"native",evidence:i},{capability:"svg",state:"native",evidence:i},{capability:"terminal",state:"native",evidence:s}]}function ln(r,...i){return{role:r,primitives:i}}var ALe=[{id:"flowchart",upstreamId:"flowchart-v2",maturity:"stable",label:"Flowchart",headers:["flowchart","graph"],narrower:"asFlowchart",editorDiagramType:"Flowchart",editorLabel:"Flowchart",editorDescription:"Decision flow with labeled branches.",editorExampleId:"flowchart-basic",editorGlyph:"F",config:{section:"flowchart",keys:["nodeSpacing","rankSpacing","wrappingWidth","titleTopMargin","subGraphTitleMargin","arrowMarkerAbsolute","diagramPadding","htmlLabels","curve","padding","defaultRenderer","inheritDir"],noopKeys:["arrowMarkerAbsolute","curve","defaultRenderer","diagramPadding","htmlLabels","inheritDir","padding","subGraphTitleMargin","titleTopMargin"]},aliases:["swimlane"],semanticChannels:[],detect:VPe,sceneRoles:[ln("prelude","document"),ln("defs","document","marker"),ln("chrome","document","shape"),ln("group","container","shape"),ln("group-header","text","shape"),ln("edge","connector"),ln("edge-label","container"),ln("node","container","shape"),ln("label","text"),ln("icon","document","text")],example:`flowchart TD
545
545
  A[Start] --> B{Ship?}
546
546
  B -->|yes| C[Deploy]
547
547
  B -->|no| D[Fix]`,editorExample:`flowchart TD